-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #129 from andy89923/doc/update-info
feat: add PCF charging design docs
- Loading branch information
Showing
5 changed files
with
65 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# PCF Charging Software Design Architecture | ||
|
||
>[!NOTE] | ||
> Author: [Andy Chen (CTFang)](https://www.linkedin.com/in/tsung-fang-chen-437a71191/) | ||
> Date: 2024/05/07 | ||
|
||
|
||
**PCF: Policy Control Function** | ||
|
||
Relative specs: | ||
|
||
- *TS 29.507 Access and Mobility Policy Control Service* | ||
- *TS 23.503 Policy and Charging Control Framework for the 5G System (5GS)* | ||
- *Ts 29.513 Policy and Charging Control Signalling flows and QoS parameter mapping* | ||
- *Ts 23.255 Telecommunication management; Charging management; 5G data connectivity domain charging* | ||
|
||
|
||
|
||
The 3GPP defines the FBC(Flow-Based Charging) and QBC (QoS-Based Charging). | ||
|
||
However, *free5GC v3.4.1* supports **FBC** only. | ||
|
||
|
||
|
||
## RatingGroup Allocate | ||
|
||
![PDU session establishment](./../Chf/image-1.png) | ||
|
||
> PDU session establishment, described in *3GPP TS 32.255 clause 5.2.2.2.2* | ||
Charging on PDU Session is achieved by **FBC charging, with specific rating group/service identifier**: | ||
|
||
- The **rating group** would be allocated by PCF during SM Policy Authorization (Step 6). | ||
- Get chargingData from MongoDB collection `policyData.ues.chargingData`. | ||
- Allocate **rating group** to each charging rule. | ||
- Create new chargingData with rating group in MongoDB. | ||
- Create PCC Rule for charging with rating group, SDF template, and charging method. | ||
- Make Decision from PCC Rule to SMF. | ||
|
||
- When PCF `HandleDeleteSmPolicyContextRequest`, the new chargingData with rating group would be deleted. | ||
|
||
|
||
|
||
## CHF | ||
|
||
CHF would use rating group from MongoDB (`policyData.ues.chargingData`) to calculate the usage and grant quota. | ||
|
||
- ABMF (Account Balance Management Function) | ||
- Rating Function | ||
|
||
|
||
|
||
![pcf_charging](./images/pcf_charging.png) | ||
|
||
|
||
|
||
## Others | ||
|
||
- [CHF design document](./../Chf/design.md) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters