# US 2017/0257220 A1 · Directional-traffic statistics method, 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 2017/0257220 A1
- Document ID: US20170257220A1
- Status: Published application
- Kind: A1
- Application number: 15/598,672
- Filed: 2017-05-18
- Published: 2017-09-07
- Earliest claimed: 2014-11-19
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Jiancheng Guo
- Web page: https://patentgrep.com/patent/US20170257220A1

## CPC

- H04L 9/3263: {involving certificates, e.g. public key certificate [PKC] or attribute certificate [AC]; Public key infrastructure [PKI] arrangements (network architectures or network communication protocols for supporting authentication of entities using certificates in a packet data network H04L63/0823)}
- H04L 12/14: Charging, metering or billing arrangements specially adapted for data communications, e.g. authentication, authorisation and accounting [AAA] framework
- H04L 12/1435: {volume-based}
- H04L 43/00: Arrangements for monitoring or testing data switching networks
- H04L 63/0428: {wherein the data content is protected, e.g. by encrypting or encapsulating the payload}
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure provides a directional-traffic statistics collection method, device, and system. A service packet of user equipment is parsed, and whether a feature field in the service packet is valid is determined, to determine whether to report, to a charging server that is configured to perform directional-traffic-based charging on a service provider, an amount of traffic used in a process in which the user equipment uses a service provided by the service provider. According to the solutions in embodiments of the present disclosure, a fraud risk such as fraudulently using a packet feature can be avoided, and accuracy of performing directional-traffic statistics collection on a service provider can be improved.

## Claims

### Claim 1

A directional-traffic statistics collection method, comprising:
obtaining, by a node, a certificate provided by a certificate issuance server;
receiving, by the node, a first service packet sent by user equipment, and obtaining a first feature field from the first service packet that is related to a directional-traffic-based charging service;
determining, by the node according to the certificate, whether the first feature field is valid; and
if the node determines that the first feature field is valid, calculating, by the node, a first amount of traffic used in a process in which the user equipment uses a service provided by the service provider, and reporting the first amount of traffic to a charging server.

### Claim 2 (depends on 1)

The method according to claim 1, wherein determining, by the node according to the certificate, whether the first feature field is valid comprises:
determining, by the node, that the certificate is a valid certificate;
decrypting, by the node, the first feature field according to a key and a decryption algorithm that are provided by the certificate;
determining, by the node, whether data obtained by decrypting the first feature field is consistent with content provided by the certificate and content of the first service packet; and
if determining that the data obtained by decrypting the first feature field is consistent with the content provided by the certificate and the content of the first service packet, determining, by the node, that the first feature field is valid.

### Claim 3 (depends on 2)

The method according to claim 2, wherein:
the data obtained by decrypting the first feature field comprises a certificate version number, a certificate service name, and a first packet digest; and
determining, by the node, whether data obtained by decrypting the first feature field is consistent with content provided by the certificate and content of the first service packet comprises:
determining, by the node, whether the certificate version number and the certificate service name are consistent with a certificate version number and a certificate service name that are comprised in the certificate,
determining, by the node, whether the first packet digest is consistent with the content of the first service packet, and
if the node determines that the certificate version number and the certificate service name are consistent with the certificate version number and the certificate service name that are comprised in the certificate and determines that the first packet digest is consistent with the content of the first service packet, determining, by the node, that the first feature field is valid.

### Claim 4 (depends on 2)

The method according to claim 2, wherein
before obtaining, by a node, a certificate provided by a certificate issuance server, the method further comprises:
receiving, by the node, an algorithm database sent by the certificate issuance server; and
decrypting, by the node, the first feature field according to a key and a decryption algorithm that are provided by the certificate comprises:
decrypting, by the node, the first feature field with reference to the key according to a function that is used for supporting the decryption algorithm and that is provided by the algorithm database.

### Claim 5 (depends on 1)

The method according to claim 1, wherein after calculating, by the node, a first amount of traffic used in a process in which the user equipment uses a service provided by the service provider, and reporting the first amount of traffic to a charging server, the method further comprises:
receiving, by the node, a second service packet sent by a service server;
obtaining, by the node, a second feature field that is in the second service packet and that is related to the directional-traffic-based charging service;
determining, by the node according to the certificate, whether the second feature field is valid; and
if the node determines that the second feature field is valid, calculating, by the node, a second amount of traffic used in a process in which the service server supports the user equipment in using the service provided by the service provider, and reporting the second amount of traffic to the charging server.

### Claim 6

A service packet sending method, comprising:
obtaining, by user equipment, a certificate related to a directional-traffic-based charging service for which a service provider applies;
generating, by the user equipment, a feature field based on the certificate; and
sending, by the user equipment to a node, a service packet comprising the feature field.

### Claim 7 (depends on 6)

The method according to claim 6, wherein before obtaining, by user equipment, a certificate related to a directional-traffic-based charging service for which the service provider applies, the method further comprises:
sending, by the user equipment, a registration request to a certificate push server; and
receiving, by the user equipment, a registration response sent by the certificate push server, wherein the registration response carries the certificate, and the certificate is sent and issued by the certificate issuance server for the directional-traffic-based charging service for which the service provider applies.

### Claim 8 (depends on 6)

The method according to claim 6, wherein generating, by the user equipment, a feature field based on the certificate comprises:
generating, by the user equipment, a packet digest based on content of the service packet;
determining, by the user equipment, that the certificate is a valid certificate; and
generating, by the user equipment, the feature field according to the packet digest and content provided by the certificate.

### Claim 9 (depends on 8)

The method according to claim 8, wherein generating, by the user equipment, the feature field according to the packet digest and content provided by the certificate comprises:
obtaining, by the user equipment, a certificate version number and a certificate service name from the certificate; and
generating, by the user equipment, the feature field by encrypting the certificate version number, the certificate service name, and the packet digest according to a key and an encryption algorithm that are provided by the certificate.

### Claim 10 (depends on 9)

The method according to claim 9, wherein generating, by the user equipment, the feature field by encrypting the certificate version number, the certificate service name, and the packet digest according to a key and an encryption algorithm that are provided by the certificate comprises:
obtaining, by the user equipment, an algorithm database, wherein the algorithm database is obtained from service program data provided by the service provider by using a service server; and
encrypting, by the user equipment, the certificate version number, the certificate service name, and the packet digest with reference to the key according to a function that is used for supporting the encryption algorithm and that is provided by the algorithm database, to generate the feature field.

### Claim 11

A node device, comprising:
an input apparatus configured to: receive a first service packet sent by user equipment, and obtain a first feature field from the first service packet related to a directional-traffic-based charging service;
an output apparatus;
a memory configured to store program code; and
a processor configured to invoke the program code stored in the memory which, when executed by the processor, causes the processor to:
obtain a certificate provided by a certificate issuance server,
determine, according to the certificate, whether the first feature field is valid, and
when determining that the first feature field is valid, calculate a first amount of traffic used in a process in which the user equipment uses a service provided by the service provider, and report the first amount of traffic to a charging server.

### Claim 12 (depends on 11)

The node device according to claim 11, wherein the program code stored in the memory, when executed by the processor, further causes the processor to:
determine that the certificate is a valid certificate;
decrypt the first feature field according to a key and a decryption algorithm that are provided by the certificate;
determine whether data obtained by decrypting the first feature field is consistent with content provided by the certificate and content of the first service packet; and
if determined that the data obtained by decrypting the first feature field is consistent with the content provided by the certificate and the content of the first service packet, determine that the first feature field is valid.

### Claim 13 (depends on 12)

The node device according to claim 12, wherein:
the data obtained by decrypting the first feature field comprises a certificate version number, a certificate service name, and a first packet digest; and
the program code stored in the memory, when executed by the processor, further causes the processor to:
determine whether the certificate version number and the certificate service name are consistent with a certificate version number and a certificate service name that are comprised in the certificate,
determine whether the first packet digest is consistent with the content of the first service packet, and
if determined that the certificate version number and the certificate service name are consistent with the certificate version number and the certificate service name that are comprised in the certificate and if determined that the first packet digest is consistent with the content of the first service packet, determine that the first feature field is valid.

### Claim 14 (depends on 12)

The node device according to claim 12, wherein:
prior to the processor obtaining a certificate provided by a certificate issuance server, the input apparatus is further configured to:
receive an algorithm database sent by the certificate issuance server; and
the program code stored in the memory, when executed by the processor, further causes the processor to:
decrypt the first feature field with reference to the key according to a function that is used for supporting the decryption algorithm and that is provided by the algorithm database.

### Claim 15 (depends on 11)

The node device according to claim 11, wherein:
after the processor calculates a first amount of traffic used in a process in which the user equipment uses a service provided by the service provider, and reports the first amount of traffic to a charging server, the input apparatus is further configured to:
receive a second service packet sent by a service server; and
the program code stored in the memory, when executed by the processor, further causes the processor to:
obtain a second feature field that is in the second service packet and that is related to the directional-traffic-based charging service;
determine, according to the certificate, whether the second feature field is valid; and
if determined that the second feature field is valid, calculate a second amount of traffic used in a process in which the service server supports the user equipment in using the service provided by the service provider, and report the second amount of traffic to the charging server.

### Claim 16

A user equipment, comprising:
an input apparatus;
memory configured to store program code;
a processor configured to invoke the program code stored in the memory which, when executed by the processor, causes the processor to:
obtain a certificate that is related to a directional-traffic-based charging service for which a service provider applies, and
generate a feature field based on the certificate; and
an output apparatus configured to send, to a node, a service packet comprising the feature field.

### Claim 17 (depends on 16)

The user equipment according to claim 16, wherein:
before the processor obtains a certificate that is related to a directional-traffic-based charging service for which the service provider applies, the output apparatus is further configured to:
send a registration request to a certificate push server; and
the input apparatus is further configured to:
receive a registration response sent by the certificate push server, wherein the registration response carries the certificate, and the certificate is sent and issued by the certificate issuance server for the directional-traffic-based charging service for which the service provider applies.

### Claim 18 (depends on 16)

The user equipment according to claim 16, wherein the program code stored in the memory, when executed by the processor, further causes the processor to:
generate a packet digest based on content of the service packet;
determine that the certificate is a valid certificate; and
generate the feature field according to the packet digest and content provided by the certificate.

### Claim 19 (depends on 18)

The user equipment according to claim 18, wherein the program code stored in the memory, when executed by the processor, further causes the processor to:
obtain a certificate version number and a certificate service name from the certificate; and
generate the feature field by encrypting the certificate version number, the certificate service name, and the packet digest according to a key and an encryption algorithm that are provided by the certificate.

### Claim 20 (depends on 19)

The user equipment according to claim 19, wherein the program code stored in the memory, when executed by the processor, further causes the processor to:
obtain an algorithm database, wherein the algorithm database is obtained from service program data provided by the service provider by using a service server; and
encrypt the certificate version number, the certificate service name, and the packet digest with reference to the key according to a function that is used for supporting the encryption algorithm and that is provided by the algorithm database, to generate the feature field.
