# US 2019/0173799 A1 · Method and system for managing traffic of application programs, and terminal device containing the system

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

- Number: US 2019/0173799 A1
- Document ID: US20190173799A1
- Status: Published application
- Kind: A1
- Application number: 16/092,906
- Filed: 2016-11-16
- Published: 2019-06-06
- Earliest claimed: 2016-10-10
- Assignees: Wangsu Science & Technology Co., Ltd.
- Applicants: Wangsu Science & Technology Co., Ltd.
- Inventors: Zidao FAN; Hailong HU
- Web page: https://patentgrep.com/patent/US20190173799A1

## CPC

- H04L 47/2475: for supporting traffic characterised by the type of applications
- H04L 45/745: Address table lookup; Address filtering
- H04L 67/10: in which an application is distributed across nodes in the network (software deployment G06F8/60; multiprogramming arrangements G06F9/46)
- H04L 69/16: Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

A method for managing traffic of application programs includes: reading attribute information of a data packet sent by an application program, where the attribute information indicates a source of the data packet; based on the attribute information of the data packet, determining whether the application program that sends the data packet is a designated broadcasting tool, thereby differentially managing a data packet from the designated broadcasting tool and a data packet not from the designated broadcasting tool.

## Claims

### Claim 1

A method for managing traffic of application programs, comprising:
reading attribute information of a data packet sent by an application program, wherein the attribute information indicates a source of the data packet; and
based on the attribute information of the data packet, determining whether the application program that sends the data packet is a designated broadcasting tool, thereby differentially managing a data packet from the designated broadcasting tool and a data packet not from the designated broadcasting tool.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the determining whether the application program that sends the data packet is a designated broadcasting tool, thereby differentially managing a data packet from the designated broadcasting tool and a data packet not from the designated broadcasting tool comprises:
converting the attribute information of the data packet to an identifier corresponding to the application program that sends the data packet;
determining whether the identifier corresponding to the application program is an identifier of the designated broadcasting tool;
in response to the identifier corresponding to the application program being an identifier of the designated broadcasting tool, determining the application program to be the designated broadcasting tool, querying a foreground process, and mapping a package name of the data packet to a package name of the foreground process; and
in response to the identifier corresponding to the application program not being the identifier of the designated broadcasting tool, converting the identifier of the application program to a package name of the application program.

### Claim 3 (depends on 2)

The method according to claim 2, wherein:
the attribute information of the data packet that indicates the source of the data packet includes source port information of the data packet; and
the converting the attribute information of the data packet to an identifier corresponding to the application program that sends the data packet includes:
based on the source port information of the data packet, looking up an identifier that matches the source port information of the data packet sent by the application program in a first query table that records TCP connection states.

### Claim 4 (depends on 2)

The method according to claim 2, the in response to the identifier corresponding to the application program not being the identifier of the designated broadcasting tool, converting the identifier of the application program to a package name of the application program, comprises:
based on the identifier corresponding to the application program, looking up a package name of an application program that matches the identifier in a second query table that records package names of application programs that send data packets; or
based on a searching interface for searching package names of application programs that send data packets, searching for the package name of the application program; and
converting the identifier of the application program to the package name of the application program.

### Claim 5 (depends on 1)

The method according to claim 1, wherein:
the designated broadcasting tool is MediaServer component of an Android system.

### Claim 6

A system for managing traffic of application programs, comprising:
a reading module, configured to read attribute information of a data packet sent by an application program, wherein the attribute information indicates a source of the data packet;
a management module, configured to, based on the attribute information of the data packet, determine whether the application program that sends the data packet is a designated broadcasting tool, thereby differentially managing a data packet from the designated broadcasting tool and a data packet not from the designated broadcasting tool.

### Claim 7 (depends on 6)

The system according to claim 6, wherein the management module includes:
a converting unit, configured to convert the attribute information of the data packet to an identifier corresponding to the application program that sends the data packet; and
a processing unit, configured to determine whether the identifier corresponding to the application program is an identifier of the designated broadcasting tool;
wherein in response to the identifier corresponding to the application program being an identifier of the designated broadcasting tool, the processing unit determines that the application program is the designated broadcasting tool, queries a foreground process, and maps a package name of the data packet to a package name of the foreground process.

### Claim 8 (depends on 7)

The system according to claim 7, wherein:
the attribute information of the data packet that indicates the source of the data packet includes source port information of the data packet; and
the converting unit is configured to, based on the source port information of the data packet, look up an identifier that matches the source port information of the data packet sent by the application program in a first query table that records TCP connection states.

### Claim 9 (depends on 7)

The system according to claim 7, wherein:
in response to the identifier corresponding to the application program being the identifier of the designated broadcasting tool, based on the identifier corresponding to the application program, the processing unit looks up a package name of the application program that matches the identifier from a second query table that records package names of application programs that send data packets; or
in response to the identifier corresponding to the application program not being the identifier of the designated broadcasting tool, based on a searching interface for searching package names of application programs that send data packets, the processing unit searches for the package name of the application program; and
the processing unit coverts the identifier of the application program to the package name of the application program.

### Claim 10

A terminal device, comprising:
a system for managing traffic of application programs, wherein the system includes:
a reading module, configured to read attribute information of a data packet sent by an application program, wherein the attribute information indicates a source of the data packet;
a management module, configured to, based on the attribute information of the data packet, determine whether the application program that sends the data packet is a designated broadcasting tool, thereby differentially managing a data packet from the designated broadcasting tool and a data packet not from the designated broadcasting tool.

### Claim 11 (depends on 10)

The terminal device according to claim 10, wherein:
the management module includes:
a converting unit, configured to convert the attribute information of the data packet to an identifier corresponding to the application program that sends the data packet; and
a processing unit, configured to determine whether the identifier corresponding to the application program is an identifier of the designated broadcasting tool;
wherein in response to the identifier corresponding to the application program being an identifier of the designated broadcasting tool, the processing unit determines that the application program is the designated broadcasting tool, queries a foreground process, and maps a package name of the data packet to a package name of the foreground process.

### Claim 12 (depends on 11)

The terminal device according to claim 11, wherein:
the attribute information of the data packet that indicates the source of the data packet includes source port information of the data packet; and
the converting unit is configured to, based on the source port information of the data packet, look up an identifier that matches the source port information of the data packet sent by the application program in a first query table that records TCP connection states.

### Claim 13 (depends on 11)

The terminal device according to claim 11, wherein:
in response to the identifier corresponding to the application program not being the identifier of the designated broadcasting tool, based on the identifier corresponding to the application program, the processing unit looks up a package name of the application program that matches the identifier from a second query table that records package names of application programs that send data packets; or
in response to the identifier corresponding to the application program not being the identifier of the designated broadcasting tool, based on a searching interface for searching package names of application programs that send data packets, the processing unit searches for the package name of the application program; and
the processing unit coverts the identifier of the application program to the package name of the application program.
