CN114257464B - Charging method, charging device, communication equipment and readable storage medium - Google Patents

Charging method, charging device, communication equipment and readable storage medium Download PDF

Info

Publication number
CN114257464B
CN114257464B CN202011008271.3A CN202011008271A CN114257464B CN 114257464 B CN114257464 B CN 114257464B CN 202011008271 A CN202011008271 A CN 202011008271A CN 114257464 B CN114257464 B CN 114257464B
Authority
CN
China
Prior art keywords
information
charging
terminal
traffic
statistical information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011008271.3A
Other languages
Chinese (zh)
Other versions
CN114257464A (en
Inventor
杜宗鹏
耿亮
刘鹏
姚惠娟
张晓秋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Communications Ltd Research Institute
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Communications Ltd Research Institute filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011008271.3A priority Critical patent/CN114257464B/en
Priority to PCT/CN2021/119286 priority patent/WO2022063075A1/en
Publication of CN114257464A publication Critical patent/CN114257464A/en
Application granted granted Critical
Publication of CN114257464B publication Critical patent/CN114257464B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1432Metric aspects
    • H04L12/1435Metric aspects volume-based
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/14Charging, metering or billing arrangements for data wireline or wireless communications
    • H04L12/1403Architecture for metering, charging or billing
    • H04L12/1407Policy-and-charging control [PCC] architecture

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a charging method, a charging device, communication equipment and a readable storage medium, and belongs to the technical field of communication. The specific implementation scheme comprises the following steps: the terminal determines that the network access equipment supports the function of charging initiated by the terminal; and sending a first message to the network access equipment, wherein the first message is used for starting charging of special flow. According to the scheme in the embodiment, the flow charging can be initiated by the terminal, so that the terminal is supported to adjust the charging strategy in real time according to the service requirement, a flexible charging mode is realized, and diversified requirements are met.

Description

Charging method, charging device, communication equipment and readable storage medium
Technical Field
The invention belongs to the technical field of fixed or wireless communication, and particularly relates to a charging method, a charging device, communication equipment and a readable storage medium.
Background
In the existing fixed network charging method, generally, after the user passes the authentication, the broadband access server charges according to the customized service of the user. Common charging modes can be statistics according to time length, statistics according to flow and the like. Therefore, the existing charging mode is single, and under the condition that a complex service occurs and a complex charging strategy is required, the diversified requirements are difficult to meet.
Disclosure of Invention
Embodiments of the present invention provide a charging method, an apparatus, a communication device, and a readable storage medium, so as to solve the problem that the existing charging method is relatively single and is difficult to meet diversified requirements.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a charging method, applied to a terminal, including:
determining that the network access equipment supports a function of initiating charging by a terminal;
sending a first message to the network access equipment;
wherein, the first message is used for starting the charging of special flow.
Optionally, the first packet includes first traffic statistical information generated by the terminal;
the first traffic statistical information is used for the network access device to compare the first traffic statistical information with second traffic statistical information, and when the deviation between the first traffic statistical information and the second traffic statistical information meets a preset condition, the first traffic statistical information is determined to be reasonable, or when the deviation between the first traffic statistical information and the second traffic statistical information does not meet the preset condition, the first traffic statistical information is determined to be unreasonable;
wherein the second traffic statistics are generated by the network access device.
Optionally, before determining that the network access device supports the function of initiating charging by the terminal, the method further includes:
receiving function information of the network access equipment;
the determining that the network access device supports a function of initiating charging by a terminal includes:
and determining that the network access equipment supports the function of initiating charging by the terminal according to the function information.
Optionally, the Function information is SRv6Function of the network access device, where the Function information supports a statistical Function; the Function information comprises an LOC field, an FUNCT field and an ARGS field, wherein the LOC field is used for routing and forwarding a message to the network access equipment, the FUNCT field is used for pointing to SRv Function supporting a statistical Function, and the ARGS field is used for pointing to a specific statistical type.
Optionally, the receiving the function information of the network access device includes:
and receiving the function information of the network access equipment through an extension option field of a Dynamic Host Configuration Protocol (DHCP).
Optionally, the first traffic statistic information is stored in a segment routing header of the first packet.
In a second aspect, an embodiment of the present invention provides a charging method, applied to a network access device, including:
receiving a first message sent by a terminal;
wherein, the first message is used for starting the charging of special flow.
Optionally, the first packet includes first traffic statistical information generated by the terminal;
after receiving the first message sent by the terminal, the method further includes:
comparing the first traffic statistic with a second traffic statistic; wherein the second traffic statistics are generated by a network access device;
determining that the first flow statistic information is reasonable under the condition that the deviation between the first flow statistic information and the second flow statistic information meets a preset condition;
and charging according to the first flow statistical information.
Optionally, after comparing the first traffic statistic with the second traffic statistic, the method further includes:
determining that the first flow statistic information is unreasonable under the condition that the deviation between the first flow statistic information and the second flow statistic information does not meet a preset condition;
sending alarm information to the terminal; wherein the alarm information is used for indicating that the first traffic statistic information is unreasonable.
Optionally, the first message further includes a terminal signature; prior to said comparing said first traffic statistic with said second traffic statistic, said method further comprising:
determining a type of the first traffic statistic information;
and determining the legality of the terminal according to the terminal signature.
In a third aspect, an embodiment of the present invention provides a charging apparatus, which is applied to a terminal, and includes:
the first determining module is used for determining that the network access equipment supports the function of initiating charging by the terminal;
a first sending module, configured to send a first packet to the network access device;
wherein, the first message is used for starting the charging of special flow.
Optionally, the first packet includes first traffic statistical information generated by the terminal;
the first traffic statistical information is used for the network access device to compare the first traffic statistical information with second traffic statistical information, and when the deviation between the first traffic statistical information and the second traffic statistical information meets a preset condition, the first traffic statistical information is determined to be reasonable, or when the deviation between the first traffic statistical information and the second traffic statistical information does not meet the preset condition, the first traffic statistical information is determined to be unreasonable;
wherein the second traffic statistics are generated by the network access device.
Optionally, the apparatus further comprises:
a first receiving module, configured to receive function information of the network access device;
the first determining module is specifically configured to: and determining that the network access equipment supports the function of initiating charging by the terminal according to the function information.
Optionally, the Function information is SRv6Function of the network access device, where the Function information supports a statistical Function; the Function information comprises an LOC field, an FUNCT field and an ARGS field, wherein the LOC field is used for routing and forwarding a message to the network access equipment, the FUNCT field is used for pointing to SRv Function supporting a statistical Function, and the ARGS field is used for pointing to a specific statistical type.
Optionally, the first receiving module is specifically configured to: and receiving the function information of the network access equipment through an extension option field of a Dynamic Host Configuration Protocol (DHCP).
Optionally, the first traffic statistic information is stored in a segment routing header of the first packet.
In a fourth aspect, an embodiment of the present invention provides a charging apparatus, applied to a network access device, including:
the second receiving module is used for receiving the first message sent by the terminal;
wherein, the first message is used for starting the charging of special flow.
Optionally, the first packet includes first traffic statistical information generated by the terminal; the device further comprises:
the comparison module is used for comparing the first flow statistical information with the second flow statistical information; wherein the second traffic statistics are generated by a network access device;
the second determining module is used for determining that the first flow statistical information is reasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information meets a preset condition;
and the charging module is used for charging according to the first flow statistical information.
Optionally, the apparatus further comprises:
the third determining module is used for determining that the first flow statistical information is unreasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information does not meet a preset condition;
the second sending module is used for sending alarm information to the terminal; wherein the alarm information is used for indicating that the first traffic statistic information is unreasonable.
Optionally, the first message further includes a terminal signature; the device further comprises:
a fourth determining module, configured to determine a type of the first traffic statistic information;
and the fifth determining module is used for determining the legality of the terminal according to the terminal signature.
In a fifth aspect, embodiments of the present invention provide a communication device, which includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method according to the first aspect, or implement the steps of the method according to the second aspect.
In a sixth aspect, the embodiments of the present invention provide a computer-readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect, or implement the steps of the method according to the second aspect.
In the embodiment of the present invention, after determining that the network access device supports the function of initiating charging by the terminal, the terminal may send a first message to the network access device, where the first message is used to start charging for a special flow. Therefore, the flow charging can be initiated by the terminal, so that the terminal is supported to adjust the charging strategy in real time according to the service requirement, a flexible charging mode is realized, and diversified requirements are met.
Drawings
Fig. 1 is a flowchart of a charging method according to an embodiment of the present invention;
fig. 2 is a flowchart of another charging method provided in the embodiment of the present invention;
FIG. 3 is a flow chart of a charging process in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a SRv Accounting FUNCT format in an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a charging apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of another charging apparatus provided in the embodiment of the present invention;
fig. 7 is a schematic structural diagram of a communication device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
The terms first, second and the like in the description and in the claims of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the invention may be practiced other than those illustrated or described herein, and that the objects identified as "first," "second," etc. are generally a class of objects and do not limit the number of objects, e.g., a first object may be one or more.
Aiming at the existing charging mode, the following problems also exist:
problem 1: when some more complex services (such as a power network) are opened, a more complex charging policy may be involved. For example, part of the traffic of the terminal may only require a conventional charging policy, but part of the traffic needs to be better served, such as deterministic transmission, computationally intensive guarantees, etc. At this time, a flexible charging mode is required to support real-time adjustment of the charging policy. However, the existing charging mode is difficult to satisfy the real-time adjustment of the charging policy.
Problem 2: the charging of the terminal flow depends on the public credibility of the operator and the flow filter (Traffic Filters) pre-configured by the operator, the user terminal is difficult to participate, and the capability of data-drive (data-drive) is not available, that is, the capability negotiated between the user and the operator is not provided in the current mechanism. For example, when a user temporarily has an important file to be transmitted, or an important conference to be participated, it is impossible to go to the operator on site to customize the relevant service and then access the service. The on-demand charging mode is predicted by operation Shang Hennan or configured in real time, and needs a more flexible activation mode and a charging mode.
In order to solve the problem that the existing charging mode is single and difficult to meet diversified requirements, the embodiment of the invention provides a charging method, which can initiate flow/duration/service charging by a terminal, namely, the terminal starts the charging of special flow, so that the terminal is supported to adjust a charging strategy in real time according to the service requirements, thereby realizing a flexible charging mode and meeting diversified requirements; furthermore, the terminal can be incorporated into the charging operation to realize the charging mode negotiated with the operator, so that the intelligence of the network service can be improved.
Optionally, the embodiment of the present invention may be applicable to some scenarios in which charging is relatively complex, including but not limited to a Mobile Edge Computing (MEC) scenario of a Mobile network. In the MEC scenario, separation of the user plane and the control plane can be supported, so that flexible deployment of the user plane is facilitated.
The following describes the charging method provided by the embodiment of the present invention in detail through a specific embodiment and an application scenario thereof with reference to the accompanying drawings.
Referring to fig. 1, fig. 1 is a flowchart of a charging method according to an embodiment of the present invention, where the method is applied to a terminal, and as shown in fig. 1, the method includes the following steps:
step 11: and determining that the network access equipment supports the function of charging initiated by the terminal.
Optionally, the charging method in the embodiment of the present invention may be used in an Application-aware network (APN), and may adopt a network-based programmable charging mechanism. For network programmability, it means that besides the basic forwarding according to the destination address of the packet, the network device can flexibly support other operations, such as source routing, new protocol/field analysis, etc., so as to support the on-demand processing of data traffic and provide a simpler differentiated service mechanism. Through network programming, the terminal can put forward the demand of the self flow and start the charging of special flow. In one embodiment, the network programming involved in this embodiment is primarily SRv network programming in Segment Routing Header (SRH).
And under the function of initiating charging by the terminal, the terminal is allowed to carry out related charging function calling. In one embodiment, the function of initiating charging by the terminal may be SRv FUNCT.
Step 12: and sending the first message to the network access equipment.
In this embodiment, the first packet is used to start charging for a special flow. The network access device is, for example, a terminal egress gateway, which may also be referred to as a user egress gateway, an egress gateway, a charging gateway, or the like. In one embodiment, the network access device may be a charging gateway, that is, may be one of charging points of terminal traffic.
Optionally, in the service use process, the terminal may send the first packet. The first packet may be a data packet, that is, relevant information such as SRv FUNCT information is inserted into an original data packet to obtain the first packet, or a packet whose header is consistent with the data packet (for example, the packet includes the same source and destination addresses) may be separately constructed, and the constructed packet also includes SRv FUNCT information, but may not include a specific load. The first message may be sent at specific intervals, or may be sent on demand, and need not be sent all the time.
In the charging method of the embodiment of the invention, after the network access equipment determines to support the function of charging initiated by the terminal, the terminal can send the first message to the network access equipment, and the first message is used for starting charging of special flow. Therefore, the flow charging can be initiated by the terminal, so that the terminal is supported to adjust the charging strategy in real time according to the service requirement, a flexible charging mode is realized, and diversified requirements are met.
That is to say, the embodiment of the present invention extends the network programming capability in the data plane, for example, extends the SRv network programming charging, and can implement a more flexible charging manner compared with the charging manner in the existing control plane. Furthermore, the terminal is incorporated into the charging operation to realize the charging mode negotiated with the operator, so that the intelligence of the network service can be improved.
In this embodiment of the present invention, optionally, the first packet may include first traffic statistical information generated by the terminal, where the first traffic statistical information is used by the network access device to compare the first traffic statistical information with the second traffic statistical information, and when a deviation between the first traffic statistical information and the second traffic statistical information satisfies a preset condition (for example, is smaller than a preset threshold), it is determined that the first traffic statistical information is reasonable, or when a deviation between the first traffic statistical information and the second traffic statistical information does not satisfy the preset condition, it is determined that the first traffic statistical information is unreasonable. The second traffic statistics are generated by the network access device.
Then, if the network access device determines that the first traffic statistic information is reasonable, charging can be performed according to the first traffic statistic information. Or, if the network access device determines that the first traffic statistic information is not reasonable, the network access device may send alarm information to the terminal, even disconnect the service; the alarm information is used to indicate that the first traffic statistics generated by the terminal are not reasonable. Therefore, normal operation of the service can be ensured.
Optionally, the first traffic statistic information may be stored in a Segment Routing Header (SRH) of the first packet. For example, when calling SRv Function of the network access device that supports the statistical Function, the terminal may occupy the length of four SIDs in a Segment Identifier (SID) list of the SRH header, where the first SID is used to store SRv Function that supports the statistical Function, the second SID and the third SID are used to store signature information of the terminal, and the fourth SID is used to store the first traffic statistics information.
Optionally, in order to ensure the security of the information, the first traffic statistic information included in the first message may be encryption information. In addition, the first message may further include a terminal signature to verify the validity of the terminal.
In one embodiment, there is an encryption key between the terminal and the network access device. The terminal signs the first message by using the encryption key and encrypts the first traffic statistical information so as to protect the privacy of the user. After the network access equipment acquires the first message, the terminal identification is determined according to the terminal session to further determine the encryption key of the terminal, then the terminal signature is decrypted according to the encryption key to verify the legality of the terminal, and the first flow statistical information is decrypted under the condition of verifying the legality, so that whether the first flow statistical information is reasonable or not is determined.
In the embodiment of the invention, the terminal can receive the function information of the network access equipment before determining that the network access equipment supports the function of charging initiated by the terminal, and then can determine that the network access equipment supports the function of charging initiated by the terminal according to the function information. Optionally, the function information may be sent by a network access device, such as a terminal egress gateway, or may be sent by some server, such as a Dynamic Host Configuration Protocol (DHCP) server, which is not limited herein. For example, taking SRv FUNCT as an example, the terminal egress gateway may send relevant SRv FUNCT information to the terminal to allow the terminal to make the relevant charging function call.
Optionally, the Function information may be SRv6Function of the network access device, where the Function information supports a statistical Function; the Function information may include a LOC (location) field, a FUNCT (Function) field, and an ARGS (parameter) field, where the LOC field is used to route and forward a packet to the network access device, the FUNCT field is used to point to SRv Function supporting a statistical Function, and the ARGS field is used to point to a specific statistical type.
Optionally, the receiving the function information of the network access device may be: the terminal receives the function information of the network access equipment through an extension option field of a dynamic host configuration protocol DHCP.
Referring to fig. 2, fig. 2 is a flowchart of a charging method according to an embodiment of the present invention, where the method is applied to a network access device, such as a terminal egress gateway, and the terminal egress gateway may also be referred to as a user egress gateway, an egress gateway, a charging gateway, and the like. As shown in fig. 2, the method comprises the steps of:
step 21: and receiving a first message sent by a terminal.
In this embodiment, the first message is used to start charging for a special flow. The network access device may be a charging gateway, i.e. may be one of the charging points for terminal traffic.
Optionally, in the service use process, the terminal may send the first packet. The first packet may be a data packet, that is, relevant information such as SRv FUNCT information is inserted into an original data packet to obtain the first packet, or a packet whose header is consistent with the data packet (for example, the packet includes the same source and destination addresses) may be separately constructed, and the constructed packet also includes SRv FUNCT information, but may not include a specific load. The first message may be sent at specific intervals, or may be sent on demand, and need not be sent all the time.
In the charging method of the embodiment of the invention, the terminal can initiate flow charging, thereby supporting the terminal to adjust the charging strategy in real time according to the service requirement, realizing a flexible charging mode and meeting diversified requirements.
In this embodiment of the present invention, optionally, the first packet includes first traffic statistical information generated by the terminal; after receiving the first message sent by the terminal, the method further includes:
comparing the first traffic statistic with a second traffic statistic; wherein the second traffic statistics are generated by a network access device;
determining that the first flow statistic information is reasonable under the condition that the deviation between the first flow statistic information and the second flow statistic information meets a preset condition;
and charging according to the first flow statistical information.
Optionally, after comparing the first traffic statistic with the second traffic statistic, the method further includes:
determining that the first flow statistical information is unreasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information does not meet a preset condition;
sending alarm information to the terminal; wherein the alarm information is used for indicating that the first traffic statistic information is unreasonable. Therefore, normal operation of the business service can be ensured.
Optionally, the first message further includes a terminal signature, and before comparing the first traffic statistical information with the second traffic statistical information, the network access device may further determine a type of the first traffic statistical information, for example, a duration or a traffic, and determine validity of the terminal according to the terminal signature. In one embodiment, the network access device may determine the type of the first traffic statistic information according to parameter information in the first message.
The following describes the specific example of the present invention in detail with reference to fig. 3, taking a charging process based on SRv6 network programming as an example.
In the specific example of the present invention, a network access device such as an egress gateway may send relevant SRv FUNCT information to a terminal such as a client, allowing a user to perform relevant charging function call. This related SRv FUNCT, end.acc, as described later, is a variant of the END function of SRv. The SID of a node in SRv, also called a FUNCT, typically includes a LOC (location): the FUNCT field, for a total of 128bits, specific LOC and FUNCT field lengths are preconfigured, e.g., 64bits for LOC field length and 64bits for FUNCT field length.
Optionally, the FUNCT part may further include an ARGS (parameters) field, in this case, the SID format of SRv is LOC: FUNCT: ARGS, wherein the lengths of the FUNCT field and the ARGS field also need to be configured in advance, and the node using this function needs to know the related length information. In a SRv network, these SIDs are typically distributed via protocols such as IGP/BGP for network node programming. However, the client concerned in the present application is not a network node but a terminal node, and does not run the IGP/BGP network protocol, so if the client wants to invoke the capability of the network node, the client may send the FUNCT of the gateway to the client through some other means, and then perform simpler network programming by the client, and the reason that the client can only support the simpler network programming is that the client can know less network information.
Optionally, the terminal may receive SRv SID, that is, the above-mentioned SRv FUNCT, through the DHCPv6 message. The DHCP server may issue the relevant charging SRv Function to the terminal through the DHCPv6, and in one possibility, the DHCP server is the charging point, i.e., the egress gateway of the terminal traffic, or the DHCP server knows the charging point/egress gateway information of the terminal and knows the SID used for charging, so as to send the relevant information to the terminal.
In the specific example of the present invention, for some temporary flows with special requirements, the terminal may propose related service requirements to the network through the mechanism of the APN. For example, it is possible to let the network better provide services on demand by carrying traffic demands in the packet packets, e.g. entering different tunnel or SR policies on the network side. As shown in fig. 3, the corresponding charging process may include:
step 31: the terminal and the exit gateway (authentication point access device) complete authentication and authorization.
Step 32: and the terminal and the exit gateway finish the DHCP address allocation.
Step 33: the egress gateway and the authentication server initiate a charging process, for example, the egress gateway sends a charging-Start Request (Accounting-Request Start) to the authentication server and receives a charging-Response (Accounting-Response) fed back by the authentication service.
Step 34: the terminal accesses the Internet network.
Step 35: the terminal needs to access a special service, such as an MEC service.
Step 36: the terminal starts a special Service through an APN message, and the APN message can carry a terminal identification ID, service Level Agreement (SLA) information and the like.
Step 37: the terminal starts information statistics of special services, such as starting statistics of special traffic, through a specific FUNCT of SRv of the egress gateway, and adds the information into a message as required to send the message to the egress gateway, such as sending an APN message, which at least includes flow ID, charging statistical information, and the like.
Optionally, the sent message needs to include a related signature, encrypted charging information, and the like.
Alternatively, the FUNCT need not be inserted into the data packet of each flow, and may be sent at a specific time interval, or sent on demand. Specifically, the SRH header containing the FUNCT of SRv may be inserted into a data packet, or a packet whose header is identical to the data packet and does not contain a specific payload may be separately constructed.
Step 38: and the exit gateway carries out charging according to the terminal identification and the identification Flow ID of the user Flow. If the received message contains the flow statistic information (SRv 6 Accounting function of the gateway is contained in the message), the message is forwarded normally, and the relevant information is recorded for processing.
Optionally, the terminal identifier may be an IP address of the terminal, or other identifiers.
Optionally, the Flow ID may be carried in an APN encapsulation, or may be carried in another location of the IPv6 message. The Flow ID may be encapsulated in a format specified in the APN, or may reuse, for example, the Flow label field of IPv 6.
Optionally, the Flow ID may also be selected as other content, such as a five-tuple of the terminal traffic, such as a source address, a destination address, a source port, a destination port, and a protocol type.
Optionally, SRv6 Accounting FUNCT may record the message information of the terminal, for example: 1) The gateway determines a terminal identifier according to the terminal session, so as to further determine a secret key of the terminal; 2) The gateway decrypts the signature of the terminal and verifies the validity of the terminal; 3) The gateway decrypts the flow statistic information of the terminal, compares the flow statistic information with the flow statistic information of the gateway, and determines that the flow statistic information is reasonable and charges if the deviation is within a certain reasonable range; and if the deviation exceeds a certain reasonable range, starting a flow capturing function, and alarming the terminal, even cutting off the service.
Step 39: and the gateway feeds back the information.
Optionally, if it is determined that the traffic statistics of the terminal is reasonable or unreasonable, the gateway may notify the terminal through some way. For example, an IPv6 packet sent to the terminal may be constructed, which does not contain actual user data information, but contains some TLV information in the header (e.g. in options of DOH or in payload) to inform about whether the traffic statistics is reasonable or unreasonable. Or some TLV information may be inserted into the message of the terminal, and then the message arrives at the server, and the server inserts the relevant information into a feedback message of the stream, and the inserted position may also be in options of DOH.
In the embodiment of the present invention, the SRv6 Accounting FUNCT may have the following characteristics:
1) Between the terminal and the gateway there may be a key for signing. The terminal uses this key to sign the message content and encrypt the billing information (protecting the user's privacy). The gateway uses this key to identify the relevant terminal and decrypt the relevant information.
2) Through some mechanisms, such as Domain Name System (DNS), DHCP, or Stateless Address Auto Configuration (SLAAC), the gateway may send SRv FUNCT to the terminal, allowing the user to make a call to the related charging function.
3) The SRv Accounting FUNCT in the message sent by the terminal can be stripped off at the gateway, for example, inserted as a separate SRH header.
For example, the format of SRv Accounting FUNCT may include at least encrypted traffic statistics, signatures (e.g., the first 128bits of a 256-bit signature), signature cont. (other part storing signatures), and SRv Accounting FUNCT (ARGs), as shown in fig. 4. For example, SRv6 Accounting function is A1::00AC 0001, A1 is the address of the gateway, 00AC is the function, and 0001 is the parameter, representing statistics according to the flow. The signature occupies two SRv SID spaces, and the encrypted traffic information occupies one SRv SID space.
Note that this FUNCT follows LOC of SRv: FUNCT: format of ARGS, can be referred to as end. The feature of this function is for charging and three 128bits SIDs followed by it is the information provided for this function, e.g. from the terminal client to the "charging point". The order of the SID in fig. 4 is reverse, mainly because in the SRH header of IPv6, the SID list is reverse, and needs to be processed by a SL (Segment Left) pointer before and after.
For example, the source and destination addresses of the terminal accessing the server are < E:, D:, and the charging SRH header is inserted, which can be changed into < E:, A1::00AC 0001> < D:, statistical information, signature information (cont), A1::00AC 0001, SL =4>.
For another example, assuming that a message without inserting end.acc into the client is < E:, D: >, and the inserted message is < E:, A1:: 00ac.
In one embodiment, when issuing the relevant charging SRv Function information Function to the terminal through the DHCPv6, a new Option field Option, for example 200, of the DHCPv6 may be applied, which is specifically used for SIDs carrying gateways. Acc type in this embodiment may be set to 100, and it is assumed that the option _ gateway _ SID may optionally carry SRv SID, which is only one of them.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a charging apparatus according to an embodiment of the present invention, where the charging apparatus is applied to a terminal, and as shown in fig. 5, the charging apparatus 50 may include:
a first determining module 51, configured to determine that the network access device supports a function of initiating charging by a terminal;
a first sending module 52, configured to send a first packet to the network access device;
wherein, the first message is used for starting the charging of special flow.
Optionally, the first packet includes first traffic statistical information generated by the terminal;
the first traffic statistical information is used for the network access device to compare the first traffic statistical information with second traffic statistical information, and when the deviation between the first traffic statistical information and the second traffic statistical information meets a preset condition, the first traffic statistical information is determined to be reasonable, or when the deviation between the first traffic statistical information and the second traffic statistical information does not meet the preset condition, the first traffic statistical information is determined to be unreasonable;
wherein the second traffic statistics are generated by a network access device.
Optionally, the charging apparatus 50 further includes:
a first receiving module, configured to receive function information of the network access device;
the first determining module 51 is specifically configured to: and determining that the network access equipment supports the function of initiating charging by the terminal according to the function information.
Optionally, the Function information is SRv6Function of the network access device, where the Function information supports a statistical Function; the Function information comprises an LOC field, an FUNCT field and an ARGS field, wherein the LOC field is used for routing and forwarding a message to the network access equipment, the FUNCT field is used for pointing to SRv Function supporting a statistical Function, and the ARGS field is used for pointing to a specific statistical type.
Optionally, the first receiving module 52 is specifically configured to: and receiving the function information of the network access equipment through an extension option field of a Dynamic Host Configuration Protocol (DHCP).
Optionally, the first traffic statistic information is stored in a segment routing header of the first packet.
It can be understood that, the charging apparatus 50 according to the embodiment of the present invention can implement each process of the method embodiment shown in fig. 1, and can achieve the same technical effect, and for avoiding repetition, details are not repeated here.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a charging apparatus according to an embodiment of the present invention, where the charging apparatus is applied to a network access device, for example, a terminal exit gateway, which may also be referred to as a user exit gateway, an exit gateway, a charging gateway, and the like. As shown in fig. 6, the charging apparatus 60 may include:
a second receiving module 61, configured to receive a first message sent by a terminal;
wherein, the first message is used for starting the charging of special flow.
Optionally, the first packet includes first traffic statistical information generated by the terminal; the charging apparatus 60 further includes:
the comparison module is used for comparing the first flow statistical information with the second flow statistical information; wherein the second traffic statistics are generated by a network access device;
the second determining module is used for determining that the first flow statistical information is reasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information meets a preset condition;
and the charging module is used for charging according to the first flow statistical information.
Optionally, the charging device 60 further includes:
the third determining module is used for determining that the first flow statistical information is unreasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information does not meet a preset condition;
the second sending module is used for sending alarm information to the terminal; wherein the alarm information is used for indicating that the first traffic statistic information is unreasonable.
Optionally, the first message further includes a terminal signature; the charging apparatus 60 further includes:
a fourth determining module, configured to determine a type of the first traffic statistic information;
and the fifth determining module is used for determining the legality of the terminal according to the terminal signature.
It can be understood that the charging device 60 according to the embodiment of the present invention can implement the processes of the method embodiment shown in fig. 1, and can achieve the same technical effects, and for avoiding repetition, the details are not described here again.
In addition, an embodiment of the present invention further provides a communication device, which includes a memory, a processor, and a program or an instruction stored in the memory and executable on the processor, where the program or the instruction, when executed by the processor, may implement each process of the method embodiment shown in fig. 1 or fig. 2 and achieve the same technical effect, and in order to avoid repetition, details are not repeated here. Optionally, the communication device may be the terminal or the network access device described above.
Referring to fig. 7, the embodiment of the present invention further provides a communication device 70, which includes a bus 71, a transceiver 72, an antenna 73, a bus interface 74, a processor 75 and a memory 76.
In the embodiment of the present invention, the communication device 70 further includes: programs or instructions stored on the memory 76 and executable on the processor 75. Optionally, when being executed by the processor 75, the program or the instruction may implement each process of the method embodiment shown in fig. 1 or fig. 2 and achieve the same technical effect, and in order to avoid repetition, details are not described here again.
In fig. 7, a bus architecture (represented by bus 71), the bus 71 may include any number of interconnected buses and bridges, the bus 71 linking together various circuits including one or more processors, represented by processor 75, and memory, represented by memory 76. The bus 71 may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. A bus interface 74 provides an interface between the bus 71 and the transceiver 72. The transceiver 72 may be one element or a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 75 is transmitted over a wireless medium via the antenna 73, and further, the antenna 73 receives the data and transmits the data to the processor 75.
The processor 75 is responsible for managing the bus 71 and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 76 may be used to store data used by the processor 75 in performing operations.
Alternatively, the processor 75 may be a CPU, ASIC, FPGA or CPLD.
An embodiment of the present invention further provides a computer-readable storage medium, on which a program or an instruction is stored, where the program or the instruction, when executed by a processor, can implement each process of the method embodiment shown in fig. 1 or fig. 2 and achieve the same technical effect, and in order to avoid repetition, the program or the instruction is not described herein again.
Computer-readable media include permanent and non-permanent, removable and non-removable media and may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, a computer readable medium does not include a transitory computer readable medium such as a modulated data signal and a carrier wave.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention or portions thereof contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a service classifying device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (14)

1. A charging method is applied to a terminal, and is characterized by comprising the following steps:
determining that the network access equipment supports a function of initiating charging by a terminal;
sending a first message to the network access equipment;
the first message is used for starting charging of special flow, and the first message comprises first flow statistical information generated by the terminal;
the first traffic statistical information is used for the network access device to compare the first traffic statistical information with second traffic statistical information, and when the deviation between the first traffic statistical information and the second traffic statistical information meets a preset condition, the first traffic statistical information is determined to be reasonable, or when the deviation between the first traffic statistical information and the second traffic statistical information does not meet the preset condition, the first traffic statistical information is determined to be unreasonable;
wherein the second traffic statistics are generated by the network access device.
2. The method of claim 1, wherein prior to determining that the network access device supports the terminal-initiated charging function, the method further comprises:
receiving function information of the network access equipment;
the function of determining that the network access equipment supports the charging initiated by the terminal comprises the following steps:
and determining that the network access equipment supports the function of initiating charging by the terminal according to the function information.
3. The method of claim 2, wherein the Function information is a SRv Function of the network access device that supports a statistical Function; the Function information comprises an LOC field, an FUNCT field and an ARGS field, wherein the LOC field is used for routing and forwarding a message to the network access equipment, the FUNCT field is used for pointing to SRv Function supporting a statistical Function, and the ARGS field is used for pointing to a specific statistical type.
4. The method of claim 3, wherein the receiving the capability information of the network access device comprises:
and receiving the function information of the network access equipment through an extension option field of a Dynamic Host Configuration Protocol (DHCP).
5. The method of claim 1, wherein the first traffic statistic is stored in a segment routing header of the first packet.
6. A charging method is applied to network access equipment, and is characterized by comprising the following steps:
receiving a first message sent by a terminal;
the first message is used for starting charging of special flow, and the first message comprises first flow statistical information generated by the terminal;
after receiving the first message sent by the terminal, the method further includes:
comparing the first traffic statistic with a second traffic statistic; wherein the second traffic statistics are generated by a network access device;
determining that the first flow statistic information is reasonable under the condition that the deviation between the first flow statistic information and the second flow statistic information meets a preset condition;
and charging according to the first flow statistical information.
7. The method of claim 6, wherein after comparing the first traffic statistic to the second traffic statistic, the method further comprises:
determining that the first flow statistic information is unreasonable under the condition that the deviation between the first flow statistic information and the second flow statistic information does not meet a preset condition;
sending alarm information to the terminal; wherein the alarm information is used for indicating that the first traffic statistic information is unreasonable.
8. The method of claim 6, wherein the first message further comprises a terminal signature; prior to said comparing said first traffic statistic with said second traffic statistic, said method further comprising:
determining a type of the first traffic statistic information;
and determining the validity of the terminal according to the terminal signature.
9. A charging device applied to a terminal is characterized by comprising:
a first determining module, configured to determine that a network access device supports a function of initiating charging by a terminal;
a first sending module, configured to send a first packet to the network access device;
the first message is used for starting charging of special flow, and the first message comprises first flow statistical information generated by the terminal;
the first traffic statistical information is used for the network access device to compare the first traffic statistical information with second traffic statistical information, and when the deviation between the first traffic statistical information and the second traffic statistical information meets a preset condition, the first traffic statistical information is determined to be reasonable, or when the deviation between the first traffic statistical information and the second traffic statistical information does not meet the preset condition, the first traffic statistical information is determined to be unreasonable;
wherein the second traffic statistics are generated by the network access device.
10. The apparatus of claim 9, further comprising:
a first receiving module, configured to receive function information of the network access device;
the determining module is specifically configured to: and determining that the network access equipment supports the function of initiating charging by the terminal according to the function information.
11. A charging device applied to a network access device is characterized by comprising:
the second receiving module is used for receiving the first message sent by the terminal;
the first message is used for starting charging of special flow, and the first message comprises first flow statistical information generated by the terminal;
the device further comprises:
the comparison module is used for comparing the first flow statistical information with the second flow statistical information; wherein the second traffic statistics are generated by a network access device;
the second determining module is used for determining that the first flow statistical information is reasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information meets a preset condition;
and the charging module is used for charging according to the first flow statistical information.
12. The apparatus of claim 11, further comprising:
the third determining module is used for determining that the first flow statistical information is unreasonable under the condition that the deviation between the first flow statistical information and the second flow statistical information does not meet a preset condition;
the second sending module is used for sending alarm information to the terminal; wherein the alarm information is used for indicating that the first traffic statistic information is unreasonable.
13. A communications device comprising a processor, a memory and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the charging method according to any one of claims 1 to 5 or implementing the steps of the charging method according to any one of claims 6 to 8.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the charging method according to any one of claims 1 to 5, or implement the steps of the charging method according to any one of claims 6 to 8.
CN202011008271.3A 2020-09-23 2020-09-23 Charging method, charging device, communication equipment and readable storage medium Active CN114257464B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011008271.3A CN114257464B (en) 2020-09-23 2020-09-23 Charging method, charging device, communication equipment and readable storage medium
PCT/CN2021/119286 WO2022063075A1 (en) 2020-09-23 2021-09-18 Billing method and apparatus, communication device, and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011008271.3A CN114257464B (en) 2020-09-23 2020-09-23 Charging method, charging device, communication equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN114257464A CN114257464A (en) 2022-03-29
CN114257464B true CN114257464B (en) 2022-12-27

Family

ID=80788118

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011008271.3A Active CN114257464B (en) 2020-09-23 2020-09-23 Charging method, charging device, communication equipment and readable storage medium

Country Status (2)

Country Link
CN (1) CN114257464B (en)
WO (1) WO2022063075A1 (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921398A (en) * 2005-08-23 2007-02-28 华为技术有限公司 Method and system for charging of communication network
CN101060414A (en) * 2007-05-25 2007-10-24 中兴通讯股份有限公司 MBMS charging method according to the traffic volume and system
CN101075885A (en) * 2007-06-29 2007-11-21 ***通信集团公司 Method and device for processing signaling flow in content charge
CN101448236A (en) * 2008-12-24 2009-06-03 中国科学技术大学 Service model-based network charging system
CN101742460A (en) * 2008-11-24 2010-06-16 ***通信集团上海有限公司 Method and system for charging and charging information determination equipment
CN102026141A (en) * 2010-12-27 2011-04-20 中兴通讯股份有限公司 Flow statistic method, terminal and system
CN106656660A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Traffic monitoring device and method
WO2017113967A1 (en) * 2015-12-28 2017-07-06 中兴通讯股份有限公司 Data packet transmission method, device and system
CN107493176A (en) * 2017-09-25 2017-12-19 中国联合网络通信集团有限公司 A kind of charging method and system
CN108199979A (en) * 2017-12-11 2018-06-22 银联商务股份有限公司 Flow processing method and device
CN108667630A (en) * 2017-03-30 2018-10-16 华为技术有限公司 A kind of charging method, relevant device and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NZ516346A (en) * 2001-12-21 2004-09-24 Esphion Ltd A device for evaluating traffic on a computer network to detect traffic abnormalities such as a denial of service attack
WO2011039348A1 (en) * 2009-10-02 2011-04-07 Telefonaktiebolaget Lm Ericsson (Publ) Charging correlation for dedicated bearers
US20180270073A1 (en) * 2017-03-17 2018-09-20 Huawei Technologies Co., Ltd. Method and apparatus for charging operations in a communication network

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921398A (en) * 2005-08-23 2007-02-28 华为技术有限公司 Method and system for charging of communication network
CN101060414A (en) * 2007-05-25 2007-10-24 中兴通讯股份有限公司 MBMS charging method according to the traffic volume and system
CN101075885A (en) * 2007-06-29 2007-11-21 ***通信集团公司 Method and device for processing signaling flow in content charge
CN101742460A (en) * 2008-11-24 2010-06-16 ***通信集团上海有限公司 Method and system for charging and charging information determination equipment
CN101448236A (en) * 2008-12-24 2009-06-03 中国科学技术大学 Service model-based network charging system
CN102026141A (en) * 2010-12-27 2011-04-20 中兴通讯股份有限公司 Flow statistic method, terminal and system
WO2017113967A1 (en) * 2015-12-28 2017-07-06 中兴通讯股份有限公司 Data packet transmission method, device and system
CN106656660A (en) * 2016-11-30 2017-05-10 努比亚技术有限公司 Traffic monitoring device and method
CN108667630A (en) * 2017-03-30 2018-10-16 华为技术有限公司 A kind of charging method, relevant device and system
CN107493176A (en) * 2017-09-25 2017-12-19 中国联合网络通信集团有限公司 A kind of charging method and system
CN108199979A (en) * 2017-12-11 2018-06-22 银联商务股份有限公司 Flow processing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
网络计费***分析;何志勇等;《微机发展》;20031210(第12期);全文 *

Also Published As

Publication number Publication date
CN114257464A (en) 2022-03-29
WO2022063075A1 (en) 2022-03-31

Similar Documents

Publication Publication Date Title
US11165604B2 (en) Method and system used by terminal to connect to virtual private network, and related device
US11750662B2 (en) Multi-access edge computing services security in mobile networks by parsing application programming interfaces
AU2020204346B2 (en) Multi-access distributed edge security in mobile networks
FI118619B (en) Method and system for encrypting and storing information
CN103188351B (en) IPSec VPN traffic method for processing business and system under IPv6 environment
US10454880B2 (en) IP packet processing method and apparatus, and network system
US10785196B2 (en) Encryption key management of client devices and endpoints within a protected network
CN101147141A (en) Cryptographic peer discovery, authentication, and authorization for on-path signaling
WO2016165505A1 (en) Connection control method and apparatus
JP2008228273A (en) Method for securing security of data stream
CN113422768B (en) Application access method and device in zero trust and computing equipment
EP4287550A1 (en) Packet processing method, client end device, server end device, and computer-readable medium
CN113872933B (en) Method, system, device, equipment and storage medium for hiding source station
EP3711311B1 (en) Method and system for providing signed user location information
US20240195839A1 (en) Data transmission method and related device
CN114257464B (en) Charging method, charging device, communication equipment and readable storage medium
CN110572415B (en) Safety protection method, equipment and system
US20080222693A1 (en) Multiple security groups with common keys on distributed networks
CN116635880A (en) Trusted service traffic handling in core network domain
AU2010245117A1 (en) Method and apparatus for secure packet transmission
EP2494760B1 (en) Method for providing security associations for encrypted packet data
WO2022187987A1 (en) Systems and methods on id swapping during data forwarding
CN117320004A (en) Mobile network zero trust system and method based on IPv6 extension head
CN117318947A (en) Message verification method, device, related equipment and storage medium
JP2015041970A (en) Communication system, communication method and communication program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant