You are on page 1of 40

GGSN9811 V900R007C02Offline Charging

www.huawei.com

TSD Core Network Introduction Dept Yu Chunhui August 20, 2009 Yu_chunhui@huawei.com

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Objectives

Upon completion of this course, you will be able to:

Familiarize yourself with the architecture of the charging data record (CDR).

Familiarize yourself with the management configuration related to offline charging.

Different from the offline/online charging, the content-based charging is from another dimension and thus it is not described in this document.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page1

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page2

Charging Network Summary


Billing Center SPR

HLR

OCS(IN/RE) CGF

PCRF Rx

IMS
AF

Gr

Ga Gz

Gy

Gx

GPRS SGSN

Gn/Gp GGSN

Gi Firewall

PDN

Portal
UMTS AAA

GGSN charging consists of offline charging, online charging, and authentication, authorization and accounting (AAA) charging.

Content-based charging can be performed on both online charging and offline charging.
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page3

Charging Architecture
CGF: The charging gateway functionality (CGF) processes the offline charging. OCS: The online charging system (OCS) processes the online charging. AAA: The AAA server processes the AAA charging.
CGF OCS AAA Server

SPU

SRU
CDR Processing Radius Client CDR Storage

Note:
The content-based charging is processed in the User Management module.
User Profile PDP Context Management

DCCA Client

Offline Charging

Online Charging

Hard Disk

It is in different
dimensions compared with online/offline charging.
Data Flow

User Management

Charging Processing and Control

Charging Data Collection

Charging
Packets Forwarding and Service Control

GGSN

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page4

Charging Configuration Architecture


OCS host Online Charging CCR Trigger Initial RG Failback CCR Threshold Total/Delta report CCFH Behavior CCR AVP Switch Return Code Behavior

CG

Charging

GCDR Version GCDR Trigger

Tariff Time Container Trigger

CC and CCSelection-Mode GCDR Fields Switch

Offline Charging

GCDR Threshold GCDR Audit

Radius Accounting

Radius ACCT Server Interim Accounting Threshold

Radius ACCT AVP Switch

ACCT On/Off Control Radius ACCT Buffer

Interim Accounting Trigger

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page5

Charging Classify
Offline Charging
Normal Billing

Online Charging

Offline Charging at PDP Online Charging at PDP level. level.

Content Based Billing Offline Charging at


service level.

Online Charging at service


level.

Note: AAA charging does not support content-based charging and supports only traffic report. Charging by the Internet service provider (ISP) is implemented through the interworking between the GGSN9811 and the AAA server on the external network. ISPs vary according to the accessed PDNs and therefore charging should be based on APNs.
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page6

Charging Modes Selection (Offline/Online)


Activate users Charge-control
Check the offline/online charging function based on the roaming attributes. visit both Priority High home both roam online

Based on user profile

online
enable

offline
disable

charge-method

Based on APN

online
enable

offline
disable online enable disable offline disable enable

N
Priority Low Offline charging: No CDRs Online charging: No interaction with the OCS

Based on CC

charge-characteristic prepaid postpaid

Two CC values: prepaid and


postpaid. Postpaid is the combination of normal, hot billing, and flat-billing.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page7

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page8

Offline Charging Overview


Subscriber DB

Billing System
Active/standby CGs CDR Auditing Server CG F AAA

FTP

GTP '
Gn

Radius

Gi

PDN

SGSN

GGSN

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page9

CG Configuration
CG0
CG1
retransmit 3 timeout 3

3. CG resend GGSN 2. IP address and protocol type of the CG Ga interface


ip 10.100.3.19 10.100.3.20 grade 0 1 cg-type r7 r7 destination-port 3386 3386

mechanism

interface
Gaif3/0/0 Gaif3/1/0

workmod
NA NA

description
Ga_Logical_Int erface Ga_Logical_Int erface

vpn-instance
tmd_ga tmd_ga

ip address
10.241.225.81/32 10.241.225.82/32

1. Logical address

and physical
address of the Ga interface on the GGSN

eth-trunk 8

backup

Ga_trunk

tmd_ga

10.241.226.193/28

The table lists only the key contents. The actual commands and parameters may be different.
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page10

G-CDR Version and CGF Selection


The CDR version can be configured based on the APN, which has higher priority than the CDR version configured globally.
APN internet.t Priority High mms.t cg-type r6 r5

R98

R99

R4 APN CDR Version Global R5 CG

Priority Low CG-ip 10.100.3.19 grade 0 cg-type r7

R6

10.100.3.20

r7

R7

If the APN is not configured with CDR-version, adopt the global configuration.
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page11

CG Redirection Procedure

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page12

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page13

G-CDR Trigger Mechanism (Triggering Condition)


cdr-trigger container-trigger
rat-change sgsn-plmn-id-change sgsn-change rai-change qos-change tariff-switch-change uli-change

Global
CDR and container generation conditions CDR generation conditions are slightly different.

rat-change sgsn-plmn-id-change sgsn-change mbms-cdr-switch ms-time-zone-change max-cond-change

APN
CDR and container generation conditions

cdr-trigger-binding
rat-change sgsn-plmn-id-change

container-trigger-binding
rat-change sgsn-plmn-id-change

sgsn-change
ms-time-zone-change max-cond-change

sgsn-change
rai-change qos-change tariff-switch-change uli-change

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page14

G-CDR Trigger Mechanism (Condition Field Value)


Global
Charge-type-property (CDR generation field value) Configured based on the charging characteristic value If this table is configured with data, the priority takes effect based on this. Otherwise, the priority takes effect based on charge-general-property.

Charge-general-property (CDR generation field value) Configured based on the CDR version

charge-conditionchange-threshold

volumethreshold

timethreshold

sgsn-changethreshold

3
sgsnchangethreshold

1024
timerecordthresh sequenceold number

60
mbmsvolumethreshold

3
mbmstimethreshold

volumethreshold

charge-conditionchange-threshold

gsnnode-id

offlineqct

10

GGNF FM11

30

1024

60

If the APN is configured with data,

APN
charge-threshold
[apn] bypassall .huawei timethreshold 10

the priority is the highest.


volumethreshold 0 charge-conditionchange-threshold 10 sgsn-changethreshold 0

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page15

Forcible CDR Generation


Force-generate-cdr
Using the force-generate-cdr command, you can enable the system to forcedly generate CDRs. This command is used to test the charging system. During the test, if the thresholds for the GGSN to generate CDRs are not reached and the condition for automatically generating CDRs is not met, you can run the force-generate-cdr command to manually generate CDRs.

This command can be executed for MSISDN, IMSI, SPU slot, and all GGSNs.00

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page16

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page17

Charging Characteristics Description


Charging characteristics refer to users' charging

HLR

Gr

If the SGSN charging characteristics are not used or the SGSN does not have the charging characteristics, use the GGSN charging characteristics.

types, including normal charging, hot billing, prepaid, and flat-billing. CDRs can be generated in different modes for different charging types. Users' charging characteristics comply with characteristics configured on the SGSN or the

GGSN.
The four charging characteristics values of the GGSN are categorized into two

Gn/Gp
SGSN GGSN
Charging Characteristics

types, namely, prepaid and postpaid.

Prepaid Postpaid Hot billing

Prepaid

Postpaid

SGSN get CC from HLR

Flat rate

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page18

Charging Characteristics Description


CC configuration template. You can name it to "Free charging"
Local Configuration

Charging-Characteristic-Selection-mode SGSN supplied SGSN not supplied SGSN supplied prepaid normal hotbilling

Home Roam Visit In actual configuration, this parameter is called chargecharacteristic-name, which might be confused with the charging characteristic value. The charging characteristic values are prepaid, normal, hotbilling, and flat-billing.

CC-value

The GGSN supports three types of users, local users, roaming users, and visitors. Local users are users who subscribe to the local PLMN, are not roaming to another PLMN, and are activated on the local GGSN. Roamers are users who subscribe to the local PLMN, roam to another PLMN, and are activated on the local GGSN. Visitors are users who subscribe to another PLMN, roam to the local PLMN, and are activated on the local GGSN. Local users and roamers are called home users of the local PLMN.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page19

Charging Characteristics Applications


Userprofile CC-Name
[userprofile] up1
Note: When the user profile is matched according to the charging characteristic value, this configuration is invalid.

{chargecharacteristic} Free-charging

Priority High

Apn

[apn] wap

chargecharacteristic Free-charging

Free-charging

Local Configuration

Charging-Characteristic-Selection-mode SGSN supplied SGSN not supplied SGSN supplied prepaid normal hotbilling

Home Roam Visit

special-charging ......

Indicates that the charging characteristic of the local user is based on the charging characteristic when the user is activated. If the charging characteristic is not carried, set it to prepaid.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page20

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page21

Tariff Description
Tariff refers to the configuration of tariff change time. You can set multiple tariff change time template in advance.

Step2: Set workdays and weekends. workday weekend


charge-type global global global day-of-week Monday Tuesday Wednesday Thursday Friday Saturday sunday tariff-type workday workday workday workday workday workday workday

Festival

Step1: Set the festivals

charge-type prepaid

year NA

month 10

day 1

global global global

Global Hotbilling prepaid Normal


tariff-group-name
Set charge type for three of
charging characteristics and plus a global configuration.

global

Tariff group

Step3: Set the tariff change of a charge type.


charge-type prepaid global tariff-type Festival workday start-time 01:00 0:00 end-time 07:00 0:00

Friend-user massmarket

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page22

Tariff-Group Applications
user-profile tariff-group Friend-user

Userprofile

up1

Priority High

Tariff-group

[apn]

tariff-group global

Apn

wap

tariff-group-name
Friend-user massmarket

charge-type
prepaid global

tariff-type
Festival workday

start-time
01:00 0:00

end-time
07:00 0:00

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page23

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page24

G-CDR Parameter Management


The GGSN9811 supports customized APN network-identifier APN Selection Mode Charging characteristic selection mode CDR formats. Thus, operators can set the 23 optional fields of CDRs based on actual requirements. The default values of all optional fields are enable. list-of-service-data network-initiated-pdp-context served-imeisv served-pdp-address dynamic-address-flag record-sequence-number user-location-information ims-signalling-context external-charging-identifier For details, see 3GPP TS 23.060, Stage 2. and 3GPP TS 29.061. ps-furnish-charging-information rat-type ms-time-zone

Whether diagnosis information is carried


Whether container ID is carried Local Record Sequence Number Served MSISDN Node ID PDP context type SGSN PLMN flag recordExtensions field

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page25

G-CDR Format Definition


Item LocalRecordSequenceNumber Detail Consecutive record number created by this node. The number is allocated sequentially including all CDR types. MSISDN NodeID APNSelectionMode ChargeCharacteristicSelectionMode SGSNPLMNIdentifier APNNetworkIdentifier The primary MSISDN of the subscriber. Name of the recording entity. An index indicating how the APN was selected. Holds information about how Charging Characteristics were selected. SGSN PLMN identifier (MCC and MNC) used during this record. The logical name of the connected access point to the external packet data network (network identifier part of APN). PDPType Diagnostics PDP type, i.e. IP, PPP, or IHOSS:OSP A more detailed reason for the release of the connection.

ListofTrafficVolume

A list of changes in charging conditions for this PDP context, each time stamped.
Charging conditions are used to categorise traffic volumes, such as per tariff period. Initial and subsequently changed QoS and corresponding data values are listed.

RecordExtensions

A set of network/ manufacturer specific extensions to the record.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page26

G-CDR Format Definition (Continued)


Item dynamic-address-flag external-charging-id ims-signalling-context list-of-service-data Detail Indicates whether served PDP address is dynamic, which is allocated during PDP context activation. Holds a Charging Identifier and is present only if it is received from a non-GPRS, external network entity. Included if the IM-CN Subsystem Signalling Flag is set, see PDP context is used for IMS signalling.
A list of changes in charging conditions for all service data flows within this PDP context, each change is time stamped. Charging conditions are used to categorize traffic volumes, such as per tariff period and per service data flow. Initial and subsequently changed QoS and corresponding data values are also listed.

ms-time-zone

This field contains the MS Time Zone the MS is currently located as defined in TS 29.060, if provided by SGSN.

network-initiated-pdpcontext ps-furnish-charginginformation rat-type record-sequence-number served-imeisv served-pdp-address user-location-information

Present if this is a network initiated PDP context.

Online charging session specific information.

the Radio Acces Technology (RAT) type Partial record sequence number. IMEISV of the ME, if available. PDP address, i.e. IPv4 or IPv6 This field contains the User Location Information of the MS as defined in TS 29.060, if provided by SGSN.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page27

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page28

Charging Mode Selection (AAA)


Activate user

Check whether the APN of the user is configured with the RADIUS server group

Radius server accounting


radius-server group ipaddress 10.111.23. 7 port vpn tmd_ mm key TMDH N0206 SC carbon-copy | secondary

Y
mm 1813

NA

N Perform charging interaction with the AAA server No charging interaction with the AAA server

For details about the AAA charging procedure, see the


protocol signaling documents delivered with the GGSN versions.
radius-server group mm retransmit 1 timeout 3 Set the AAA server retransmission mechanism

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page29

AAA Charging Procedure


TE MT SGSN GGSN AAA Server PDN
PDP Context Activate Request Create PDP Context Request

Access-Request Access-Accept Create PDP Context Response Activate PDP Context Accept Accounting-Request (start) Accounting-Response (start)

User Data Deactivate PDP Context Request

Session

Delete PDP Context Request Accounting-Request (stop) Delete PDP Context Response Accounting-Response (stop)

Deactivate PDP Context Accept

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page30

AAA Charging Basic Information Element Control


1. Configure the AAA charging 3GPP private extended attribute of the RADIUS server group.

radius-server acct-3gppvsa
...... enable

[radius-server group] mm

3gpp enable

charging-id enable

2. Configure the attributes of the optional accounting messages of a RADIUS server group. The attributes include whether the GGSN sends the Accounting Request ON and Accounting Request OFF messages after restarting, expiration time of the messages, number of retransmission times, waiting time, and whether a user is allowed to be activated before a response is received.

radius-server acct-onoffsig

radius-server group mm

optional-account-message enable

timeout 3

retransmit 3

waittime 9

active disable

3. Configure the AAA charging private extended attribute of the RADIUS server group.

radius-server acct-attribute
imsi disable charging-id disable ...... disable

radius-server group mm

calling-station-id enable

Note:
For AAA charging, if not special requirement, use the default value. If the customer has special requirements, you must communicate with them about the parameters.
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page31

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page32

Envelop Reporting Description (Effective Only in Content-based Charging)


Envelope Reporting: The GGSN9811 supports the envelope reporting function to provide more detailed charging information for the online/offline charging system based on the standard duration reporting. The detailed charging information including start time, end time, and traffic volume of a service can be identified for operators to control credit and charge the user appropriately. The envelope records continuous traffic volume in a period. The traffic generation time spans multiple base time intervals (BTIs). The BTI is the basic unit for calculating the service duration. When there is data traffic for a service in a BTI, the service duration is recorded as one BTI. The traffic volume and the duration are recorded in an envelope. When there is no data traffic for a service in a BTI, the envelope corresponding to the service is closed and the traffic volume and duration are no longer recorded. The traffic volume and duration that are already recorded are reported as one envelope. At present, the following types of envelop reporting are supported. You can run time-quota-mechanism to enable the APN envelop reporting. CTP DTP Modified CTP Continuous time period (CTP) records in envelopes the duration of BTIs during which no traffic is available; however, modified CTP does not. Discrete time period (DTP) generates one envelope in one BTI.

apn
internet

time-quota-mechanism
enable

type
ctp

bti
10

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page33

Envelope Reporting (Traffic-based)


Rating Group:RG 1 Rating Group:RG 2 Base-Time-Interval: 4 minutes Scenario 1: GCDR generation with Volume limit = 100 Kbytes

T1

T2
7 Minutes 5 Minutes 1.5

T3
4.5 Minutes 6 Minutes

T4

T5
10 Minutes

T6

T7

T8

40K
BTI1

40K
BTI2 Envelope 1

15 K

5 K idle

30K
BTI1 Envelope 2
1 0 K

BTI3

BTI4

20 K
BTI1

40K
BTI2

40K

5K

35K
BTI5

idle

1 0 K BTI1 Envelope2

BTI3 BTI4 Envelope1

BTI6

BTI7

The specific
GCDR 1: Duration = 7m LoTVD =100K LoSD = {} Reason = volume limit GCDR 2: Duration = 6.5m LoTVD =100K LoSD = {} Reason = volume limit GCDR 3: Duration = 20.5m LoTVD = 90K LoSD = { RG2 = 150K, T1, T4}, { RG1 = 100K, T2, T3}, { RG1 = 30K, T5, T7 }, { RG2 = 10K, T6, T8 } Reason = PDP release

envelop reporting content is carried in the next CDR after the envelop is generated.

Rating group (RG) is described in content-based charging, which refers to that a subscriber corresponds to two different services and the services are recorded to different RGs.

Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page34

Envelope Reporting (Time-based)

T1 2KB 10KB

T2

T3 3KB

T4

T5 3.1KB 3.2KB

T6

GCDR1 Duration=10m Lotvd=2kB LoSd={} Reason=time limited

GCDR2 Duration=10m Lotvd=10kB LoSd={} Reason=time limited

GCDR3 Duration=10m Lotvd=3kB LoSd={rg1=12k,T1,T2} Reason=time limited

GCDR5 Duration=8m Lotvd=3.2kB LoSd={rg1=6.3kB,T5,T6} Reason=pdp release GCDR4 Duration=10m Lotvd=3.1kB LoSd={rg1=3k,T3,T4} Reason=time limited

The GCDR generation is based on time only. PM is BTI. Some carriers prefer this name.
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved.

Page35

Contents
1. Overview of GGSN Charging

2. CG Server Configuration Management


3. CDR Triggering Management 4. Charging Characteristic Control Management 5. Tariff Switch Control Management 6. CDR Format Management 7. AAA Charging Management 8. Envelop Report Management 9. G-CDR Audit Function
Copyright 2008 Huawei Technologies Co., Ltd. All rights reserved. Page36

CDR Audit
The CDR audit function of the GGSN ensures that the CDRs can be traced. Each time the GGSN generates a CDR, the GGSN generates an associated CDR audit record. The CDR audit records are stored in CDR audit files, which provide reliable data for tracing faults.

CDR audit record contains the following information:


CDR opening timestamp Served IMSI Served MSISDN Charging ID Local record sequence number CDR Sequence Number Duration Rating Group CDR corruption indication The GGSN stores CDR audit files in the specified directory of the hard disk and periodically sends them to the File Transfer Protocol (FTP) server through FTP or secure shell FTP (SFTP). After a CDR audit file is sent to the FTP server successfully, the automatically deletes the CDR audit file from the hard disk.

HUAWEI TECHNOLOGIES Co., Ltd.

HUAWEI Confidential

CDR Audit
GGS SRU N
Hard Disk FTP Client for GCDR File Transfer
GCDR file Download and upload

FTP Server

CDR Auditing

FTP Client LPU

FTP Server for CDR Auditing

CDR Auditing

SPU

Charging Processing

CDR Auditing Buffer

Charging Gateway

CDR Proces s

HUAWEI TECHNOLOGIES Co., Ltd.

HUAWEI Confidential

Thank you
www.huawei.com

You might also like