CN111371568B - Expense determination method and device - Google Patents

Expense determination method and device Download PDF

Info

Publication number
CN111371568B
CN111371568B CN201811595175.6A CN201811595175A CN111371568B CN 111371568 B CN111371568 B CN 111371568B CN 201811595175 A CN201811595175 A CN 201811595175A CN 111371568 B CN111371568 B CN 111371568B
Authority
CN
China
Prior art keywords
bandwidth
bandwidth range
ranges
range
domain
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
CN201811595175.6A
Other languages
Chinese (zh)
Other versions
CN111371568A (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.)
Beijing Huawei Digital Technologies Co Ltd
Original Assignee
Beijing Huawei Digital Technologies Co Ltd
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 Beijing Huawei Digital Technologies Co Ltd filed Critical Beijing Huawei Digital Technologies Co Ltd
Priority to CN201811595175.6A priority Critical patent/CN111371568B/en
Publication of CN111371568A publication Critical patent/CN111371568A/en
Application granted granted Critical
Publication of CN111371568B publication Critical patent/CN111371568B/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/1439Metric aspects time-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
    • H04L12/1442Charging, metering or billing arrangements for data wireline or wireless communications at network operator level

Abstract

A cost determination method and a device are provided, wherein the method comprises the following steps: the method comprises the steps that a remote broadband access server BRAS determines the service time of a terminal device in a preset K bandwidth range and in each bandwidth range; k is an integer greater than 0; the BRAS sends accounting messages to an authentication, authorization and accounting AAA server; the charging message comprises the K bandwidth ranges and the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges; the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the usage duration of the terminal device in each bandwidth range of the K bandwidth ranges.

Description

Expense determination method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for determining a cost.
Background
At present, the charging modes for the operator to access the internet mainly include charging according to flow, charging according to online time and charging according to bandwidth. Wherein, charging according to bandwidth refers to using fixed bandwidth in fixed time duration. For example, in each month, the user can surf the internet at any time, the used traffic is not limited, but the network bandwidth allocated by the operator to the user does not exceed the bandwidth when the user signs a contract with the operator, that is, the bandwidth used by the user can only be the bandwidth when the user signs a contract. For example, a user subscribes to a network package which is charged by bandwidth in the next year, and the maximum bandwidth of the package is 100M. At this time, the maximum bandwidth used by the user for surfing the internet every time in the next year is 100M.
The bandwidth signed by the user generally can meet the requirement of the user for use at ordinary times, however, when the user needs to use a service with a large data transmission quantity and occupies a bandwidth exceeding the bandwidth signed by the user, the service cannot be normally used due to the bandwidth limitation. For example, a user signs up at 100M bandwidth, and when the user needs to watch a live sporting event, 300M bandwidth is required. Since the fixed bandwidth is 100M, the demand for bandwidth in excess of 100M cannot be met, resulting in a lack of smooth viewing of the sporting event. If the user wants to meet the demand, the contracted bandwidth is changed to 300M.
Therefore, when a user signs a fixed bandwidth and provides a bandwidth exceeding the signed bandwidth for the user, how to determine the exceeded bandwidth and charge is an urgent problem to be solved.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining fees, which are used for solving the problem of how to determine and charge the exceeded bandwidth when the bandwidth exceeding the contracted bandwidth is provided for a user.
The embodiment of the application provides a cost determination method, which comprises the following steps: the method comprises the steps that a remote broadband access server BRAS determines the service time of a terminal device in a preset K bandwidth range and in each bandwidth range; k is an integer greater than 0; the BRAS sends accounting messages to an authentication, authorization and accounting AAA server; the charging message comprises the K bandwidth ranges and the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges; and the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges.
By the method provided by the embodiment of the application, the BRAS includes the use duration of each bandwidth range in the sent charging message, so that the AAA server can charge according to the bandwidth range used by the terminal equipment, and when the terminal equipment uses the bandwidth exceeding the signed bandwidth, the terminal equipment pays according to the part exceeding the signed bandwidth, thereby meeting the large bandwidth requirement of a user, and an operator can increase income by reasonably formulating the rates in different bandwidth ranges.
In one possible design, the remote broadband access server BRAS determines a usage duration of a terminal device in preset K bandwidth ranges, where each bandwidth range includes: the BRAS acquires network flow used by the terminal equipment in N time intervals; n is an integer greater than 0; the BRAS determines N bandwidths according to the network traffic used in the N time intervals; one bandwidth of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals; and aiming at any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, the BRAS increases the service duration of the first bandwidth range by a time interval corresponding to the bandwidth.
By the method, the BRAS converts the flow used by the terminal equipment into the bandwidth, thereby realizing the calculation of the service duration of the terminal equipment in each bandwidth range and improving the charging flexibility.
In one possible design, the method further includes: the BRAS receives the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
The embodiment of the application provides a cost determination method, which comprises the following steps: the authentication, authorization and accounting AAA server receives an accounting message from a remote broadband access server BRAS; the charging message comprises preset K bandwidth ranges and the service time of the terminal equipment in each bandwidth range in the K bandwidth ranges, wherein K is an integer larger than 0; and the AAA server determines the total cost corresponding to the K bandwidth ranges according to the service time of each bandwidth range in the K bandwidth ranges.
By the method provided by the embodiment of the application, the charging message comprises the use duration of each bandwidth range, so that the AAA server can charge according to the bandwidth range used by the terminal equipment, and when the use of the terminal equipment exceeds the contracted bandwidth, the AAA server pays according to the part exceeding the contracted bandwidth, thereby meeting the large bandwidth requirement of a user, and an operator can increase income by reasonably formulating rates in different bandwidth ranges.
In one possible design, the determining, by the AAA server, a total cost corresponding to each of the K bandwidth ranges according to the usage duration of each of the K bandwidth ranges includes: the AAA server determines the cost corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and takes the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges as the total cost; and aiming at any bandwidth range in the K bandwidth ranges, the AAA server determines the charge corresponding to the service time of the bandwidth range according to the charge rate corresponding to the bandwidth range.
In one possible design, the method further comprises: the AAA server sends the total cost to the BRAS.
An embodiment of the present application further provides a cost determining apparatus, including: the processing unit is used for determining the service time of the terminal equipment in each preset K bandwidth ranges; k is an integer greater than 0;
a receiving and transmitting unit, which is used for sending the accounting message to the authentication, authorization and accounting AAA server; the charging message comprises the K bandwidth ranges and the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges; and the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges.
In a possible design, the processing unit is specifically configured to:
acquiring network flow used by the terminal equipment in N time intervals; n is an integer greater than 0;
determining N bandwidths according to the network traffic used in the N time intervals; one of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals;
and for any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, increasing the use duration of the first bandwidth range by a time interval.
In one possible design, the transceiver unit is further configured to:
receiving the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
An embodiment of the present application further provides a cost determining apparatus, including:
a receiving and sending unit, which is used for receiving the charging message from the remote broadband access server BRAS; the charging message comprises preset K bandwidth ranges and the service time of each bandwidth range of the terminal equipment in the K bandwidth ranges, and K is an integer larger than 0;
and the processing unit is used for determining the total cost corresponding to the K bandwidth ranges according to the use duration of each bandwidth range in the K bandwidth ranges.
In one possible design, the processing unit is specifically configured to:
determining the cost corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and taking the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges as the total cost; and aiming at any bandwidth range in the K bandwidth ranges, determining the charge corresponding to the service life of the bandwidth range according to the charge rate corresponding to the bandwidth range.
In one possible design, the transceiver unit is further configured to:
and sending the total cost to the BRAS.
Embodiments of the present application provide a cost determination device, comprising at least one processor coupled with at least one memory: the at least one processor is configured to execute the computer program or instructions stored in the at least one memory to cause the apparatus to perform any of the above possible design cost determination methods.
Embodiments of the present application provide a readable storage medium containing a program or instructions that when executed perform any of the above possible design cost determination methods.
Embodiments of the present application provide a computer program product that, when read and executed by a fee determination device, causes the fee determination device to perform any of the above possible fee determination methods of the designs.
The embodiment of the present application provides a chip, where the chip is connected to a memory, and is used to read and execute a software program stored in the memory, so as to implement any one of the above possible cost determination methods in design.
Drawings
FIG. 1 is a schematic diagram of a system architecture suitable for use in embodiments of the present application;
FIG. 2 is a schematic view of a cost determination provided by an embodiment of the present application;
fig. 3 is a schematic diagram of a charging process provided in the embodiment of the present application;
FIG. 4 is a schematic structural diagram of a fee determination device according to an embodiment of the present application;
FIG. 5 is a schematic structural diagram of an expense determination apparatus according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an expense determination apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a cost determination apparatus according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described in detail below with reference to the drawings.
For the convenience of understanding the embodiments of the present application, a communication system applicable to the embodiments of the present application will be first described in detail by taking the system shown in fig. 1 as an example. Fig. 1 shows a schematic diagram of a system structure suitable for the embodiment of the present application. As shown in fig. 1, the system includes a terminal device, a Digital Subscriber Line Access Multiplexer (DSLAM), a Broadband Remote Access Server (BRAS), and an authentication, authorization, and accounting (AAA) Server.
The DSLAM is a local side device of various digital subscriber line systems, and belongs to last kilometer access equipment. The terminal equipment can realize network access by accessing the DSLAM.
BRAS can count information such as flow information, internet surfing time and the like generated in a network by the terminal equipment, and send the information to the AAA server through the accounting message. The AAA server may implement accounting through the accounting message.
In the embodiment of the present application, the terminal device is a device having a wireless or wired transceiving function or a chip that can be set in the device. The apparatus having wireless or wired transceiving function may also be referred to as a User Equipment (UE), an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a user agent, or a user equipment. In practical applications, the terminal device in the embodiment of the present application may be a personal computer, a mobile phone (mobile phone), a tablet computer (Pad), a computer with a wireless transceiving function, a Virtual Reality (VR) terminal, an Augmented Reality (AR) terminal, a terminal in industrial control (industrial control), a terminal in self driving (self driving), a wireless terminal in remote medical (remote medical), a terminal in smart grid (smart grid), a terminal in transportation safety (transportation safety), a terminal in smart city (smart city), a terminal in smart home (smart home), and the like. The embodiments of the present application do not limit the application scenarios.
In addition, in the embodiments of the present application, the word "exemplary" is used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the word using examples is intended to present concepts in a concrete fashion.
The network architecture and the service scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation on the technical solution provided in the embodiment of the present application, and it can be known by a person of ordinary skill in the art that the technical solution provided in the embodiment of the present application is also applicable to similar technical problems with the evolution of the network architecture and the occurrence of a new service scenario.
Referring to fig. 2, a schematic flow chart of a cost determination method provided in the embodiment of the present application is shown.
The method comprises the following steps:
step 201: the BRAS determines the use duration of the terminal equipment in each preset K bandwidth ranges.
Wherein K is an integer greater than 0.
In step 201, the preset K bandwidth ranges may exist in various forms. For example, K is 3, and the contracted bandwidth of the terminal device is 100Mbps, the preset K bandwidth range may be [0,100], (100, 200], (200, + ∞ ]. Although the above is only an example, and the preset K bandwidth range may be other forms, and is not illustrated one by one herein.
It should be noted that the preset K bandwidth ranges may be configured in the BRAS in a pre-configured manner. For example, the command line radius-server bandwidth-step may be newly added, and for example, when the command line radius-server bandwidth-step 0 is 100 200, it means that 3 bandwidth ranges are allocated, which are [0,100], (100, 200], (200, + ∞).
Step 202: and the BRAS sends a charging message to the AAA server.
The charging message comprises the K bandwidth ranges and the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges; and the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges.
Step 203: the AAA server receives accounting messages from the BRAS.
The charging message comprises preset K bandwidth ranges and the service time of the terminal equipment in each bandwidth range in the K bandwidth ranges, wherein K is an integer larger than 0;
step 204: and the AAA server determines the total cost corresponding to the K bandwidth ranges according to the service time of each bandwidth range in the K bandwidth ranges.
By the method, the AAA server can charge according to the bandwidth used by the terminal equipment, can charge according to the rate of subscription when the bandwidth used by the terminal equipment is less than or equal to the subscription bandwidth, and can charge according to the excess bandwidth when the bandwidth used by the terminal equipment is greater than the subscription bandwidth, so that the terminal equipment can charge alone the excess bandwidth of subscription on the basis of not changing the existing subscription bandwidth, and the flexibility of charging is improved.
In this embodiment, before step 201, after the terminal device accesses the network, the BRAS may obtain the user entry of the terminal device. The user table entry includes information such as an identifier of the terminal device, a size of a subscription bandwidth of the terminal device, subscription expiration time of the terminal device, and location information of the terminal device, which is not limited in this embodiment of the present application.
For example, the identifier of the terminal device may be a unique identifier number allocated by an operator to the terminal device, or may be another identifier. The location information of the terminal device may be longitude and latitude coordinates of the terminal device, geographical location information, an installation point code of the terminal device, and the like, which is not described herein again.
The BRAS can regularly acquire the network traffic used by the terminal equipment corresponding to the user table entry.
For example, the BRAS may periodically acquire network traffic used by the terminal device for a time interval. The specific length of one time interval may be determined according to actual circumstances, and may be, for example, 5 seconds, 1 minute, or half an hour, which is not limited in the embodiment of the present application.
The BRAS may determine the bandwidth used by the terminal device during a time interval based on network traffic used by the terminal device during the time interval. Illustratively, the BRAS may divide the network traffic used in the time interval by the time interval to obtain the bandwidth. For example, the BRAS determines that the network traffic used by the terminal device is 1000 bits within 5 seconds, and the bandwidth used by the terminal device within the 5 seconds is 1000/5=200bps.
Further, in combination with the above description, in step 201, the BRAS may determine the usage duration of the terminal device in each bandwidth range according to the network traffic used by the terminal device in N time intervals; n is an integer greater than 0.
Specifically, the BRAS may determine, according to the network traffic used in the N time intervals, the bandwidth used by the terminal device in the N time intervals, to obtain N bandwidths; one of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals.
And aiming at any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, the BRAS increases the service duration of the first bandwidth range by a time interval corresponding to the bandwidth.
For example, if K is 3, the contracted bandwidth of the terminal device is 100Mbps, the preset K bandwidth ranges may be [0,100], (100, 200], (200, + ∞ ] with 10 seconds for one time interval, and the network traffic used by the terminal device in 5 time intervals is 0, 800M, 1600M, 1800M, 2200M, respectively.
Through the method, the BRAS can count the service time of each preset bandwidth range in the K bandwidth ranges in N time intervals.
In step 202, in the accounting message sent by the BRAS, a newly added attribute field of a Remote Authentication Dial In User Service (RADIUS) may be used to carry the K bandwidth ranges and the usage duration of the terminal device In each bandwidth range of the K bandwidth ranges. It should be noted that other names may also exist in the RADIUS attribute field, and this embodiment of the present application is not limited to this.
For example, the format of the added RADIUS attribute field may be as follows:
the format is as follows: and Min-Max, wherein Min represents the lower bandwidth limit of a bandwidth range, max represents the upper bandwidth limit of the bandwidth range, and online-time represents the use time of the bandwidth range. One accounting packet may carry a plurality of RADIUS attribute fields, and may be configured specifically according to actual conditions, which is not described herein again. For example, one accounting packet carries RADIUS attribute fields with three different values, which are: 0-0, 0-100 and 100-200, representing a terminal device online for 5500 seconds, a usage time of 2000 seconds when the bandwidth is in the range of 0, a usage time of 3000 seconds when the bandwidth is in the range of 0 to 100M, and a usage time of 500 seconds when the bandwidth is in the range of 100M to 200M.
In step 203, after receiving the accounting message, the AAA server may determine the cost corresponding to the usage duration of each bandwidth range in the K bandwidth ranges, and take the sum of the costs corresponding to the usage duration of each bandwidth range in the K bandwidth ranges as the total cost; and aiming at any bandwidth range in the K bandwidth ranges, the AAA server determines the charge corresponding to the service duration of the bandwidth range according to the charge rate corresponding to the bandwidth range.
In this embodiment, the rate corresponding to the bandwidth range may refer to a cost required for using the bandwidth in the bandwidth range in a unit time length. For example, the unit duration is 1 second, and the cost of the bandwidth within the bandwidth range (100, 200) is 1 yuan, which means that the rate corresponding to the bandwidth range (100, 200) is 1 yuan per second.
For example, K is 3, the contracted bandwidth of the terminal device is 100Mbps, the preset K bandwidth range is [0,100], (100,200 ], (200, + ∞ ], and the corresponding rates are 0, 0.1 yuan per second and 0.15 yuan per second, respectively, when the accounting message carries three different values of RADIUS attribute field, 0-100.
Further optionally, in this embodiment of the present application, the AAA server may further send the total cost to the BRAS.
The BRAS receiving the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
By the method provided by the embodiment of the application, the terminal equipment is not limited by the contract bandwidth, and when the use of the over contract bandwidth is required, the payment is carried out according to the part of the over contract bandwidth, so that the large bandwidth requirement of a user can be met, and an operator can increase income by reasonably formulating rates in different bandwidth ranges.
The foregoing process is described below by way of a specific example.
Fig. 3 is a schematic diagram of a charging process provided in the embodiment of the present application.
Step 301: the terminal equipment accesses the network and sends a notification message to the BRAS, wherein the notification message is used for notifying the terminal equipment that the terminal equipment has accessed the network.
The notification message may include information such as an identifier of the terminal device, which is not limited in this embodiment and is not described herein again.
Step 302: the BRAS acquires the network traffic used by the terminal equipment in a time interval at preset time intervals.
The BRAS has a function of converging the traffic of the terminal equipment, so that the network traffic of the terminal equipment can be acquired.
Step 303: the BRAS calculates the bandwidth used by the terminal device in a time interval according to the network traffic used by the terminal device in the time interval.
For example, the network traffic used by the terminal device in 1 time interval is 500M, and the time interval is 1 minute. By calculation, it can be determined that the bandwidth used by the terminal device in the time interval is 8.33Mbps.
Step 304: and the BRAS increases the use duration of the bandwidth range corresponding to the bandwidth used by the terminal equipment in the time interval by a time interval.
Step 305: the BRAS sends an accounting message to the AAA server.
For example, the accounting packet sent by the BRAS carries three RADIUS attribute fields with different values, which are: 0-0, 0-100 and 100-200, representing a terminal device online for 5500 seconds, a usage time of 2000 seconds when the bandwidth is in the range of 0, a usage time of 3000 seconds when the bandwidth is in the range of 0 to 100M, and a usage time of 500 seconds when the bandwidth is in the range of 100M to 200M.
Step 306: and the AAA server calculates the total cost according to the accounting message.
In conjunction with the description of step 305, the subscription bandwidth of the terminal device is 100Mbps, the preset K bandwidth ranges are [0,100], (100,200 ], (200, + ∞ ], and the corresponding rates are 0, 0.01 yuan per second and 0.05 yuan per second, respectively, at which time the total cost determined by the AAA server is 0+0.01 + 2000+0.05 + 3000=170 yuan.
Step 307: and the AAA server sends a charging response message to the BRAS, wherein the charging response message comprises the total cost.
Fig. 4 is a schematic structural diagram of a fee determination device according to an embodiment of the present application. The apparatus 400 comprises: a processing unit 401 and a transceiving unit 402, the apparatus 400 may be configured to perform the actions of the BRAS in the foregoing method embodiments.
A processing unit 401, configured to determine a duration of use of the terminal device in each preset K bandwidth ranges; k is an integer greater than 0;
a transceiving unit 402, configured to send an accounting packet to an authentication, authorization, and accounting AAA server; the charging message comprises the K bandwidth ranges and the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges; and the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges.
In one possible design, the processing unit 401 is specifically configured to:
acquiring network flow used by the terminal equipment in N time intervals; n is an integer greater than 0;
determining N bandwidths according to the network traffic used in the N time intervals; one of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals;
and for any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, increasing the use duration of the first bandwidth range by a time interval.
In one possible design, the transceiver unit 402 is further configured to:
receiving the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
Fig. 5 is a schematic structural diagram of a fee determination device according to an embodiment of the present application. The apparatus 500 comprises: a processing unit 501 and a transceiving unit 502, which apparatus 500 may be used to perform the actions of the AAA server in the embodiments of the methods described above.
A transceiving unit 502, configured to receive a charging packet from a remote broadband access server BRAS; the charging message comprises preset K bandwidth ranges and the service time of each bandwidth range of the terminal equipment in the K bandwidth ranges, and K is an integer larger than 0;
a processing unit 501, configured to determine, according to the usage duration of each bandwidth range in the K bandwidth ranges, a total cost corresponding to the K bandwidth ranges.
In one possible design, the processing unit 501 is specifically configured to:
determining the cost corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and taking the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges as the total cost; and determining the charge corresponding to the service duration of the bandwidth range according to the charge rate corresponding to the bandwidth range aiming at any one of the K bandwidth ranges.
In one possible design, the transceiver unit 502 is further configured to:
and sending the total cost to the BRAS.
Fig. 6 is a schematic structural diagram of a fee determination device according to an embodiment of the present application. The communication device shown in fig. 6 may be a hardware circuit implementation of the device shown in fig. 4. The apparatus 600 may be configured to perform the actions of the BRAS in the embodiments of the methods described above. The apparatus 600 comprises: a processor 601, a memory 602, a communication interface 603.
The Processor 601 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components.
Memory 602 may include both read-only memory and random access memory and may provide instructions and data to processor 601. A portion of the Memory 602 may also include Non-Volatile Random Access Memory (NVRAM).
The various components of the device 600 are coupled together by a bus system 604, where the bus system 604 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 604.
A processor 701, configured to determine a duration of use of a terminal device in a preset K bandwidth ranges within each bandwidth range; k is an integer greater than 0;
a communication interface 603, configured to send an accounting packet to an authentication, authorization, and accounting AAA server; the charging message comprises the K bandwidth ranges and the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges; the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the usage duration of the terminal device in each bandwidth range of the K bandwidth ranges.
In one possible design, the processor 701 is specifically configured to:
acquiring network flow used by the terminal equipment in N time intervals; n is an integer greater than 0;
determining N bandwidths according to the network traffic used in the N time intervals; one bandwidth of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals;
and for any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, increasing the use duration of the first bandwidth range by a time interval.
In one possible design, the communication interface 603 is further configured to:
receiving the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
Fig. 7 is a schematic structural diagram of a fee determination apparatus according to an embodiment of the present application. The communication device shown in fig. 7 may be a hardware circuit implementation of the device shown in fig. 5. The apparatus 700 may be configured to perform the actions of the AAA server in the embodiments of the methods described above. The apparatus 700 comprises: a processor 701, a memory 702, and a communication interface 703.
The processor 701 may be a general purpose processor, a digital signal processor, or the like.
Memory 702 may include both read-only memory and random access memory and may provide instructions and data to processor 701. A portion of memory 702 may also include non-volatile random access memory.
The various components of the device 700 are coupled together by a bus system 704, where the bus system 704 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are designated in the figure as the bus system 704.
A communication interface 703, configured to receive a charging packet from a remote broadband access server BRAS; the charging message comprises preset K bandwidth ranges and the service time of each bandwidth range of the terminal equipment in the K bandwidth ranges, and K is an integer larger than 0;
a processor 701, configured to determine a total cost corresponding to the K bandwidth ranges according to a usage duration of each bandwidth range in the K bandwidth ranges.
In one possible design, the processor 701 is specifically configured to:
determining the cost corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and taking the sum of the costs corresponding to the use durations of each bandwidth range in the K bandwidth ranges as the total cost; and aiming at any bandwidth range in the K bandwidth ranges, determining the charge corresponding to the service life of the bandwidth range according to the charge rate corresponding to the bandwidth range.
In one possible design, the communication interface 703 is further configured to:
and sending the total cost to the BRAS.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (15)

1. A method of determining a cost, comprising:
the method comprises the steps that a remote broadband access server BRAS determines the service time of a terminal device in a preset K bandwidth range and in each bandwidth range; k is an integer greater than 0;
the BRAS sends accounting messages to an authentication, authorization and accounting AAA server; the charging message comprises K remote user dial authentication system RADIUS attribute fields, each RADIUS attribute field corresponds to one bandwidth range in the K bandwidth ranges, each RADIUS attribute field comprises a minimum domain, a maximum domain and an online time length domain, the minimum domain is used for indicating the lower bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, the maximum domain is used for indicating the upper bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, and the online time length domain is used for indicating the use time length of the bandwidth range corresponding to the RADIUS attribute field; the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the usage duration of the terminal device in each bandwidth range of the K bandwidth ranges.
2. The method of claim 1, wherein the remote broadband access server (BRAS) determines the use time of the terminal equipment in preset K bandwidth ranges, and each bandwidth range comprises the following steps:
the BRAS acquires network flow used by the terminal equipment in N time intervals; n is an integer greater than 0;
the BRAS determines N bandwidths according to the network flow used in the N time intervals; one of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals;
and aiming at any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, the BRAS increases the service duration of the first bandwidth range by a time interval corresponding to the bandwidth.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
the BRAS receiving the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
4. A method of determining a cost, comprising:
the authentication, authorization and accounting AAA server receives accounting messages from a remote broadband access server BRAS; the charging message comprises K remote user dial-up authentication system (RADIUS) attribute fields, each RADIUS attribute field corresponds to one of K preset bandwidth ranges, each RADIUS attribute field comprises a minimum domain, a maximum domain and an online time length domain, the minimum domain is used for indicating the lower bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, the maximum domain is used for indicating the upper bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, and the online time length domain is used for indicating the use time length of the bandwidth range corresponding to the RADIUS attribute field; k is an integer greater than 0;
and the AAA server determines the total cost corresponding to the K bandwidth ranges according to the service time of each bandwidth range in the K bandwidth ranges.
5. The method of claim 4, wherein the AAA server determines a total cost corresponding to the K bandwidth ranges according to the usage duration of each bandwidth range in the K bandwidth ranges, and comprises:
the AAA server determines the cost corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and takes the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges as the total cost; and aiming at any bandwidth range in the K bandwidth ranges, the AAA server determines the charge corresponding to the service time of the bandwidth range according to the charge rate corresponding to the bandwidth range.
6. The method according to claim 4 or 5, characterized in that the method further comprises:
the AAA server sends the total cost to the BRAS.
7. A cost determination apparatus, comprising:
the processing unit is used for determining the service time of the terminal equipment in each preset K bandwidth ranges; k is an integer greater than 0;
a receiving and transmitting unit, which is used for sending the accounting message to the authentication, authorization and accounting AAA server; the charging message comprises K remote user dial-up authentication system (RADIUS) attribute fields, each RADIUS attribute field corresponds to one bandwidth range in the K bandwidth ranges, each RADIUS attribute field comprises a minimum domain, a maximum domain and an online time length domain, the minimum domain is used for indicating the lower bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, the maximum domain is used for indicating the upper bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, and the online time length domain is used for indicating the use time length of the bandwidth range corresponding to the RADIUS attribute field; and the accounting message is used for indicating the AAA server to determine the total cost corresponding to the K bandwidth ranges according to the service duration of the terminal equipment in each bandwidth range in the K bandwidth ranges.
8. The apparatus according to claim 7, wherein the processing unit is specifically configured to:
acquiring network flow used by the terminal equipment in N time intervals; n is an integer greater than 0;
determining N bandwidths according to the network traffic used in the N time intervals; one of the N bandwidths is a bandwidth used by the terminal device in one of the N time intervals;
and for any one of the N bandwidths, when the bandwidth belongs to a first bandwidth range in the K bandwidth ranges, increasing the use duration of the first bandwidth range by a time interval corresponding to the bandwidth.
9. The apparatus according to claim 7 or 8, wherein the transceiver unit is further configured to:
receiving the total cost from the AAA server; the total cost is the sum of the costs corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and for any bandwidth range in the K bandwidth ranges, the cost corresponding to the use duration of the bandwidth range is determined according to the rate corresponding to the bandwidth range and the use duration of the bandwidth range.
10. A cost determination apparatus, comprising:
a receiving and sending unit, which is used for receiving the charging message from the remote broadband access server BRAS; the charging message comprises K remote user dial-up authentication system (RADIUS) attribute fields, each RADIUS attribute field corresponds to one of K preset bandwidth ranges, each RADIUS attribute field comprises a minimum domain, a maximum domain and an online time length domain, the minimum domain is used for indicating the lower bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, the maximum domain is used for indicating the upper bandwidth limit of the bandwidth range corresponding to the RADIUS attribute field, and the online time length domain is used for indicating the use time length of the bandwidth range corresponding to the RADIUS attribute field; k is an integer greater than 0;
and the processing unit is used for determining the total cost corresponding to the K bandwidth ranges according to the using time length of each bandwidth range in the K bandwidth ranges.
11. The apparatus according to claim 10, wherein the processing unit is specifically configured to:
determining the cost corresponding to the use duration of each bandwidth range in the K bandwidth ranges, and taking the sum of the costs corresponding to the use durations of each bandwidth range in the K bandwidth ranges as the total cost; and aiming at any bandwidth range in the K bandwidth ranges, determining the charge corresponding to the service life of the bandwidth range according to the charge rate corresponding to the bandwidth range.
12. The apparatus according to claim 10 or 11, wherein the transceiver unit is further configured to:
sending the total cost to the BRAS.
13. A cost determination device comprising at least one processor coupled to at least one memory:
the at least one processor configured to execute computer programs or instructions stored in the at least one memory to cause the apparatus to perform the method of any of claims 1-6.
14. A readable storage medium, comprising a program or instructions which, when executed, perform the method of any of claims 1 to 6.
15. A computer program product, characterized in that, when read and executed by a charge determining apparatus, causes the charge determining apparatus to perform the method of any one of claims 1 to 6.
CN201811595175.6A 2018-12-25 2018-12-25 Expense determination method and device Active CN111371568B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811595175.6A CN111371568B (en) 2018-12-25 2018-12-25 Expense determination method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811595175.6A CN111371568B (en) 2018-12-25 2018-12-25 Expense determination method and device

Publications (2)

Publication Number Publication Date
CN111371568A CN111371568A (en) 2020-07-03
CN111371568B true CN111371568B (en) 2023-02-07

Family

ID=71211461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811595175.6A Active CN111371568B (en) 2018-12-25 2018-12-25 Expense determination method and device

Country Status (1)

Country Link
CN (1) CN111371568B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075335A (en) * 2011-02-15 2011-05-25 中国联合网络通信集团有限公司 Dynamic bandwidth broadband service charging method and system
CN105553790A (en) * 2015-12-08 2016-05-04 中国联合网络通信集团有限公司 Data processing method and policy server

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008089681A1 (en) * 2007-01-22 2008-07-31 Huawei Technologies Co., Ltd. Method and system for charging in communication system
CN103888927B (en) * 2012-12-21 2018-05-11 中国移动通信集团上海有限公司 A kind of bandwidth expense determines method, apparatus, server and system
CN105812149B (en) * 2014-12-30 2019-05-24 华为技术有限公司 Charging method, system and the relevant device of data service

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075335A (en) * 2011-02-15 2011-05-25 中国联合网络通信集团有限公司 Dynamic bandwidth broadband service charging method and system
CN105553790A (en) * 2015-12-08 2016-05-04 中国联合网络通信集团有限公司 Data processing method and policy server

Also Published As

Publication number Publication date
CN111371568A (en) 2020-07-03

Similar Documents

Publication Publication Date Title
CN102918881B (en) For transmitting the method and apparatus that BSR information is dispatched with assist efficient
US9392397B2 (en) Radio module, application device and method for operating an application device that exchanges application data via a cellular radio communication network
CN102984783B (en) Method and apparatus for controlling terminal's access to wireless network
CN106301805B (en) Policy and charging execution function device, online charging device and online charging method
CN104735635B (en) A kind of policy control method and device
CN103155532B (en) The method of information processor and this device of application
JP2019075134A (en) Data management device, data management method, and data communication system
CN103098540A (en) Method and apparatus for sharing wireless data service
CN105376176A (en) Method, device and system for guaranteeing the service quality of mobile Internet video services
CN115119324A (en) Resource scheduling method and device
US20150004928A1 (en) Group data plan quota allocation for mobile devices
EP2547145A1 (en) Method and equipment for controlling quality of service of user terminal device
CN111371568B (en) Expense determination method and device
CN104954487B (en) A kind of method, proxy server and system being carried out by network positioning
WO2016180112A1 (en) Bandwidth configuration method and device, and data transmission method and device
CN104980889B (en) A kind of location acquiring method based on positioning equipment, proxy server and system
CN103888927A (en) Bandwidth cost determination method, device, server and system
WO2010024135A1 (en) Distribution system for distributing common control signal, distribution device, terminal device, and method
CN110602665B (en) Method for determining sharing service index based on communication certificate sharing service
CN103731886A (en) Bandwidth allocation system, method and device
CN104980444A (en) Internet phone conversation method applied to mobile terminal, mobile terminal, proxy server, and communication system
CN112738743A (en) Business service, real-time charging method, device, edge server and charging system
CN104968049B (en) A kind of method positioned for navigator and navigator
CN114828050B (en) Method, device, equipment and medium for determining service capacity
CN110619534A (en) Marketing information pushing method and device and readable storage medium

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