IP Library Granted Patent US 10,680,962
Granted Patent B2
US 10,680,962 · App. 16/092,906 · Granted Jun 9, 2020

Method and system for managing traffic of application programs, and terminal device containing the system

Inventors: Zidao Fan (Shanghai, CN); Hailong Hu (Shanghai, CN)
Assignee: WANGSU SCIENCE & TECHNOLOGY CO., LTD.
H04L47/2475H04L45/745H04L67/10H04L69/16
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,680,962
App. No.
16/092,906
Granted
Jun 9, 2020
Kind
B2
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 (47)

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,

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.

2. The method according to claim 1 , 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.

3. The method according to claim 1 , 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.

4. The method according to claim 1 , wherein:

the designated broadcasting tool is MediaServer component of an Android system.

5. A system for managing traffic of application programs, comprising a plurality of functional modules implemented by computer programs stored in a memory and executable by a processor, the plurality of functional modules 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,

wherein the management module is specifically configured to:

convert the attribute information of the data packet to an identifier corresponding to the application program that sends the data packet;

determine whether the identifier corresponding to the application program is an identifier of the designated broadcasting tool; and

in response to the identifier corresponding to the application program being an identifier of the designated broadcasting tool, determine that the application program is the designated broadcasting tool, query a foreground process, and map a package name of the data packet to a package name of the foreground process.

6. The system according to claim 5 , 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 management module 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.

7. The system according to claim 5 , wherein the management module is further configured to:

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, look 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, search for the package name of the application program; and

convert the identifier of the application program to the package name of the application program.

8. A terminal device, comprising:

a system for managing traffic of application programs, wherein the system includes a plurality of functional modules implemented by computer programs stored in a memory and executable by a processor, the plurality of functional modules 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,

wherein the management module is specifically configured to:

convert the attribute information of the data packet to an identifier corresponding to the application program that sends the data packet;

determine whether the identifier corresponding to the application program is an identifier of the designated broadcasting tool; and

in response to the identifier corresponding to the application program being an identifier of the designated broadcasting tool, determine that the application program is the designated broadcasting tool, query a foreground process, and map a package name of the data packet to a package name of the foreground process.

9. The terminal device according to claim 8 , 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 management module 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.

10. The terminal device according to claim 8 , wherein the management module is further configured to:

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, look 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, search for the package name of the application program; and

convert the identifier of the application program to the package name of the application program.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Oct 11, 2018
From: FAN, ZIDAO; HU, HAILONG
To: WANGSU SCIENCE & TECHNOLOGY CO., LTD.
Reel/Frame 047134/0199 →
Priority Claims (1)
CN 2016 1 0882916 · Oct 10, 2016 · national
Continuity (1)
Related Publication 20190173799A1 · Jun 6, 2019