You are on page 1of 39

Security Level:

SGSN9810 Charging Data Configuration


ISSUE2.0
www.huawei.com

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

References

SGSN9810 Configuration Guide

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Contents
1. Charging Principle

2. Data Configuration

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Functions of the Charging Subsystem

Functions of the charging subsystem:


MM CDR: M-CDR SM CDR: S-CDR & G-CDR SMS CDR: S-SMO-CDR & S-SMT-CDR

Location service CDR: LCS-MT-CDR &LCS-MO-CDR& LCS-NI-CDR

BS

CG
M-CDR S-CDR S-SMO-CDR S-SMT-CDR Ga Ga G-CDR

SGSN

Gn/Gp

GGSN

Gi

Internet

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Causes for Generation of Partial CDRs

Causes for generation of partial CDRs

Causes for CDR closure


The session ends. The SGSN changes (inter-SGSN RAU including system handovers). An abort occurs.

The service duration threshold is


reached. The traffic volume threshold is reached. The charging condition changes, for example, the tariff changes.

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

CDR Formats
CDR Type
R98 (GPRS)

CDR Format
CMCCV130, GSM1215V760, and USI1215V760 3GPP32015V360, 3GPP32015V3a0, and AIS32015V360 3GPP32215V440 and VOX32215V440 GPP32215V560

R99 (GPRS&UMTS) R4 (GPRS&UMTS) R5 (GPRS&UMTS) R6 (GPRS&UMTS) R7 (GPRS&UMTS)

GPP32251V660 GPP32251V740

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Tariff Fields

Traffic volume

Tariff for uplink traffic and tariff for downlink traffic


Tariff change condition and time stamp
QoS Negotiated = QoS2 Data Volume Uplink = 5 Data Volume Downlink = 6 Change Condition = Tariff change Time Stamp = TIME2 Data Volume Uplink = 3 Data Volume Downlink = 4 Change Condition = Record closed Time Stamp = TIME3

QoS Requested = QoS1 QoS Negotiated = QoS1 Data Volume Uplink = 1 Data Volume Downlink = 2 Change Condition = QoS change Time Stamp = TIME1

index

QoS1+Tariff1 QoS2+Tariff1 QoS2+Tariff2 QoS1 QoS2 Tariff1 Tariff2

uplink = 1, downlink = 2 uplink = 5, downlink = 6 uplink = 3, downlink = 4 uplink = 1, downlink = 2 uplink = 8, downlink = 10 uplink = 6, downlink = 8 uplink = 3, downlink = 4

1 2 3 1 2+3 1+2 1

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

User Types
Roaming user
46001

Visitor Home user GGSN


46000

GGSN

SGSN

46000

46000 46001
HUAWEI TECHNOLOGIES CO., LTD.

46001 46000

Huawei Confidential

Charging Characteristics of the SGSN


Charging Characteristic
Normal

Description
Indicates that users are charged after they use services. Indicates that users deposit an amount of funds before they use services. Indicates that users are charged at a flat fee. Indicates that users are charged in real time when they use services.

Prepaid

Flat rate

Hot billing

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Charging Characteristic Selection Mode


Charging Characteristic Selection Mode Home default Visiting default Roaming default
This selection mode indicates that users are charged with the APN-specific charging mode to which users subscribe on the home location register (HLR), that is, the PDP context-specific charging mode to which users subscribe on the HLR.
This selection mode indicates that users are charged with the charging mode to which users subscribe on the HLR. This selection mode indicates that users are charged with the default charging mode configured on the SGSN.

Description

APN specific

Subscription specific

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Charging Behaviors

Charging behaviors:

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Contents
1. Charging Principle

2. Data Configuration

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Configuration Procedure
Step Action Command

1.Add boards and configure process groups.


(1) Add boards ADD BRD

(2)

Configure the process group

ADD PROCESSGRP

2.Configure the IP route to the CG Set the IP address for the CDP process. Note that the IP address for the CDP process must be the same as an existing board IP address. Set the IP address for the interface. Configure the static route

(3)

ADD CHGCDPIP

(4) (5)

ADD IFIP ADD IPRT

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Configuration Procedure (Cont.)


Step Action Command

3.Configure the basic charging information for the CG.


(6) (7) (8) (9) Set the attribute of the Ga interface. Set the charging characteristics. Set the contents contained in CDRs. Configure the CG. SET CHGGA SET CHGCHAR SET CHGCDR ADD CHGCG

4.Set special tariffs.


(10) (11) (12) Set the tariff for festivals and holidays Set the tariffs for a week. Set the tariff period in a day. ADD CHGHOLI SET CHGWKDY ADD CHGTARI

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Typical Charging Network

CG 1 IP=10.161.68.2/24 SGSN 10.161.70.2/24 LAN Router 10.161.70.1/24 LAN

E C U

E P U

CG 2 IP=10.161.71.3/24

CG 3 IP=10.161.73.3/24

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 1: Add Boards

Hardware related to the Ga interface:

ECU: collects charging information for the signaling plane, and collects,

E C U

encodes, sends, and caches CDRs.

EPU: collects charging information for the user plane, processes the IP protocol, and provides external

EP U

CG

interfaces.

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 2: Configure the Process Group

ADD PROCESSGRP

Add a process group on the ECU. Skip this step if a process group is
already available.

ADD PROCESSGRP: SRN=0, SN=2, PSN=3, PROCGRP=ECUGP_2;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 3: Set the IP Address for the CDP Process

ADD CHGCDPIP

Set the IP address and port number for the CDP process. If no board
IP address is available, you need to set the board IP address by running ADD BRDIP

ADD BRDIP

This command is used to set the IP address for the EPU

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 4: Set the IP address for the Interface

ADD IFIP

Set the IP address for the network interface connecting the EPU with
the CG. ADD IFIP: SRN=0, SN=10, PN=4, IPT=PRI, IP=" 10.161.70.2 ", MSK="255.255.255.0";

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 5: Configure the Static Route

ADD IPRT

Add the IP routes to CG 1, CG 2, and CG 3.

ADD IPRT: IP="10.161.73.3", MSK="255.255.255.0", GATE="10.161.70.1";

GATE represents the IP address of the interface on the router.

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 6: Set the Parameters of the Ga Interface

SET CHGGA

This command is used to set the version of GSM and UMTS CDRs and the interval for retransmitting the CDRs. For example:

To set the version of GSM and UMTS CDRs to R4 V32215V440, run the following command: SET CHGGA: GCR=R4, UCR=R4, CHGVER4=GPP32215V440;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 7: Set the Charging Characteristic Parameters

SET CHGCHAR

This command is used to set the parameters of charging characteristics and set the priorities of charging characteristics.

Charging characteristic to which a user subscribes on the HLR

High priority

Charging characteristic configured for a specific APN by running the ADD CHGAPN command
Charging characteristic configured for non-home users of a specific PLMN by running the SET CHGDCHAR command Charging characteristic configured by running the SET CHGCDR command

Low priority

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 7 Configure to Ignore the Subscribed Charging Characteristics (Cont.)

SET CHGCDR

This command is used to configure to ignore the subscribed charging characteristics. Example:

To ignore all charging characteristics subscribed on the HLR, run the


following command: SET CHGCDR: IGNOREFLG=HOME_SUBSCRIBER1&ROAM_SUBSCRIBER-1&VISIT_SUBSCRIBER-1&HOME_APN-

1&ROAM_APN-1&VISIT_APN-1;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 7 Set the Charging Characteristic of an APN

ADD CHGAPN

This command is used to set the charging characteristic of an APN. Example:

To set the charging characteristic of APN huawei.com to prepaid charging,


run the following command: ADD CHGAPN: APNNI="huawei1.com", CC=PREPAID;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 7 Set the Charging Characteristic (Cont.)

SET CHGDCHAR

This command is used to configure the default charging characteristic for non-home users according to the user MCCs and MNCs. Example:

To set the default charging characteristic of the roaming user with MCC 460 and MNC 00 to prepaid charging, run the following command: SET CHGDCHAR: ST=ROAMING, MCC="460", MNC="00", DCC=PREPAID;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 7 Set the Charging Characteristics (Cont.)

SET CHGCDR

This command is used to set the charging characteristics for different types of users.

Home user/visitor/roaming user

Example:

To set the charging characteristic of all types of users to NORMAL, run the following command:

SET CHGCDR: HCC=NORMAL, VCC=NORMAL, RCC=NORMAL;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 8: Set Parameters of CDRs

SET CHGCDR

This command is used to set CDR parameters, such as the SGSN


node ID. Example:

To set parameters of S-CDRs, run the following command:

IMEI & MSISDN & Location information :LAC & RAC & node
ID & Cell ID

SET CHGCDR: SL=SERVED_IMEI-1&SERVED_MSISDN-1&LAC-1&RAC1&CI-1&NODE_ID-1,

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 9: Set Parameters of the CG

There are different command to set IP address of CG. Selection


priority for CG is as the following:

ADD CHGPLMNCG

High priority

ADD CHGBEHA
SET CHGCHAR ADD CHGCG Low priority

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 9.1 Configure the CG for the Specified MCC and MNC

ADD CHGPLMNCG

This command is used to set the IP address of the CG for the specified PLMN. Example:

To set the IP address of the CG for PLMN 46000, run the following command: ADD CHGPLMNCG: MCC="460", MNC="001", CGIP1="10.161.73.3";

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 9.2 Configure the Charging Behavior of the CG

ADD CHGBEHA

This command is used to configure the charging behavior of the CG with the specified IP address. Example:

To configure the charging behavior of the CG with a specified IP address to HOTBILLING, run the following command: ADD CHGBEHA: CB=B8, BA=CGIP, CGIP="10.161.71.3", ACC=HOTBILLING-1&FLATRATE-0&PREPAID-0&NORMAL-0;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 9.3 Set the CG IP Addresses for Charging Characteristics

SET CHGCHAR

This command is used to set CG IP addresses for different charging


characteristics. Example:

SET CHGCHAR: CC=NORMAL, CGIP="10.10.10.27";

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 9.4 Configure the CG

ADD CHGCG

This command is used to set the IP address, port number, and priority
of a CG. Example:

To configure CG 1, run the following command:

ADD CHGCG: IP="10.161.68.2", GRD=0, PRO=UDP, CGR=R4,


SPN=3386;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Steps 10 to 12: Set Special Tariffs


Option
Holiday Charging mode of holidays and festivals Weekend Charging mode of weekends Weekday Charging mode of weekdays Normal Weekends Normal Weekdays (from Monday to Friday) Normal

Value
October 1, 2005

Period for adopting a special tariff on holidays


Charging mode of a special tariff Period for adopting a special tariff on weekends Charging mode of a special tariff

10:0020:00
Normal 10:0020:00 Normal

Period for adopting a special tariff on weekdays


Charging mode of a special tariff

10:0020:00
Normal

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 10: Set Charging Characteristics for Holidays and Festivals

ADD CHGHOLI

This command is used to set parameters, such as date and charging


mode, of holidays and festivals. Example:

ADD CHGHOLI: YEAR=2005, MONTH=10, DAY=1, CC=NORMAL;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 11: Set Charging Characteristics for Weeks

SET CHGWKDY

This command is used to set the tariffs from Monday to Sunday.


Example:

To set the tariff for Sunday, run the following command:

SET CHGWKDY: WKDAY=SUN, CC=NORMAL, TT=WEEKEND;

To set the tariff on a weekday, run the following command:

SET CHGWKDY: WKDAY=MON, CC=NORMAL, TT=WORK;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Step 12: Set Tariffs

ADD CHGTARI

This command is used to set different tariffs for holidays and festivals,

weekends, and weekdays.

Example:

To set the tariff for holidays and festivals, run the following command:

ADD CHGTARI: TT=FESTIVAL, ST=10&00, ET=20&00, CC=NORMAL;

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Commissioning

DSP CHGCG

DSP CHGCG: SRN=3, SN=10;

If Status = Normal communication is displayed, it indicates that the communication between the SGSN and the CG is normal. If Status = Communication failure is displayed, check the running status of the CG and the IP routes between the SGSN and the CG.

EPU

Ping

CG

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Commissioning (Cont.)

TST CHGCDR

This command is used to simulate the SGSN to generate S-CDRs,


and then to check whether the CG can receive S-CDRs normally.

DSP CHGFILE

This command is used to query CDR file information on the hard disk

of the ECU.

HUAWEI TECHNOLOGIES CO., LTD.

Huawei Confidential

Thank you
www.huawei.com