# US 2015/0103688 A1 · Packet receiving method, deep packet inspection device and system

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

- Number: US 2015/0103688 A1
- Document ID: US20150103688A1
- Status: Published application
- Kind: A1
- Application number: 14/572,514
- Filed: 2014-12-16
- Published: 2015-04-16
- Earliest claimed: 2012-06-30
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jiancheng GUO; Zhenggang YOU
- Web page: https://patentgrep.com/patent/US20150103688A1

## CPC

- H04L 63/123: {received data contents, e.g. message integrity}
- H04L 43/10: Active monitoring, e.g. heartbeat, ping or trace-route
- H04L 47/2441: relying on flow classification, e.g. using integrated services [IntServ]
- H04L 63/0236: {Filtering by address, protocol, port number or service, e.g. IP-address or URL}
- H04L 63/0245: {Filtering by information in the payload}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Embodiments of the present invention provide a packet receiving method, a deep packet inspection device and system, which relates to the field of communications. The packet receiving method includes: receiving a service request packet sent by a terminal device, where the packet carries a terminal domain name indicating the terminal device and a server domain name indicating a service server required by the service request; resolving the received server domain name to obtain a service server Internet protocol (IP) address; and discarding the packet if the resolved service server IP address does not belong to the preset service server IP address corresponding to the received terminal domain name in a preset list. Embodiments of the present invention are applied to the processing of the packet.

## Claims

### Claim 1

A packet receiving method, comprising:
receiving a service request packet sent by a terminal device, wherein the service request packet carries a terminal domain name indicating the terminal device and a server domain name indicating a service server required by the service request packet sent by the terminal device;
resolving the received server domain name to obtain a service server Internet protocol (IP) address; and
discarding the service request packet if the resolved service server IP address does not belong to a preset service server IP address corresponding to the received terminal domain name in a preset list.

### Claim 2 (depends on 1)

The method according to claim 1, wherein, before the discarding the service request packet if the resolved service server IP address does not belong to the preset service server IP address corresponding to the received terminal domain name in a preset list, the method further comprises:
receiving a domain name system (DNS) packet sent by the terminal device, wherein the DNS packet carries the terminal domain name and a true domain name of at least one accessible service server corresponding to the terminal domain name;
resolving the received true domain name to obtain at least one accessible service server IP address; and
taking the resolved at least one accessible service server IP address as the preset service server IP address, and setting a corresponding relation between the terminal domain name and the preset service server IP address in the preset list.

### Claim 3 (depends on 2)

The method according to claim 2, wherein, before the receiving the domain name system (DNS) packet sent by the terminal device, the method further comprises:
sending a DNS query request to the terminal device, to enable the terminal device to send the DNS packet.

### Claim 4 (depends on 1)

The method according to claim 1, wherein, after the resolving the received server domain name to obtain the service server Internet protocol (IP) address, the method further comprises:
if the resolved service server IP address belongs to the preset service server IP address corresponding to the received terminal domain name in the preset list, establishing a connection between the terminal device and the service server corresponding to the service server IP address, to enable the service server to provide a service corresponding to the service request of the terminal device to the terminal device.

### Claim 5 (depends on 1)

The method according to claim 1, wherein, after the resolving the received server domain name to obtain the service server Internet protocol (IP) address, the method further comprises:
if the resolved service server IP address belongs to the preset service server IP address corresponding to the received terminal domain name in the preset list, determining a service type of the service request according to the terminal domain name of the terminal device.

### Claim 6

A deep packet inspection (DPI) device, comprising:
a receiving unit, configured to receive a service request packet sent by a terminal device, wherein the service request packet carries a terminal domain name indicating the terminal device and a server domain name indicating a service server required by the service request packet sent by the terminal device;
a resolving unit, configured to resolve the server domain name received by the receiving unit to obtain a service server Internet protocol (IP) address; and
a processing unit, configured to discard the packet if the service server IP address resolved by the resolving unit does not belong to a preset service server IP address corresponding to the received terminal domain name in a preset list.

### Claim 7 (depends on 6)

The DPI device according to claim 6, wherein,
the receiving unit is further configured to receive a domain name system (DNS) packet sent by the terminal device, wherein the DNS packet carries the terminal domain name and a true domain name of at least one accessible service server corresponding to the terminal domain name;
the resolving unit is further configured to resolve the true domain name received by the receiving unit to obtain at least one accessible service server IP address; and
the processing unit is further configured to take the at least one accessible service server IP address resolved by the resolving unit as the preset service server IP address, and set a corresponding relation between the terminal domain name and the preset service server IP address in the preset list.

### Claim 8 (depends on 7)

The DPI device according to claim 7, further comprising:
a sending unit, configured to send a DNS query request to the terminal device, to enable the terminal device to send the DNS packet.

### Claim 9 (depends on 6)

The DPI device according to claim 6, wherein,
the processing unit is further configured to: if the service server IP address resolved by the resolving unit belongs to the preset service server IP address corresponding to the received terminal domain name in the preset list which is received by the receiving unit, establish a connection between the terminal device and the service server corresponding to the service server IP address, to enable the service server to provide a service corresponding to the service request of the terminal device to the terminal device.

### Claim 10 (depends on 6)

The DPI device according to claim 6, wherein,
the processing unit is further configured to: if the service server IP address resolved by the resolving unit belongs to the preset service server IP address corresponding to the received terminal domain name in the preset list which is received by the receiving unit, determine a service type of the service request according to the terminal domain name of the terminal device.

### Claim 11

A system, comprising:
a deep packet inspection (DPI); and
a terminal device, configured to send a service request packet to the DPI device, wherein the packet carries a terminal domain name indicating the terminal device and a server domain name indicating a service server required by the service request sent by the terminal device;
the DPI device having:
a receiving unit, configured to receive the service request packet sent by the terminal device;
a resolving unit, configured to resolve the server domain name received by the receiving unit to obtain a service server Internet protocol (IP) address; and
a processing unit, configured to discard the packet if the service server IP address resolved by the resolving unit does not belong to a preset service server IP address corresponding to the received terminal domain name in a preset list.
