Cisco IOS Mobile Wireless Configuration Guide, Release 12.2
Configuring Charging on the GGSN

Table Of Contents

Configuring Charging on the GGSN

Configuring the Charging Gateway

Changing the Default Charging Gateway

Configuring the Transport Protocol for the Charging Gateway

Configuring TCP as the Charging Gateway Path Protocol

Configuring UDP as the Charging Gateway Path Protocol

Customizing the Charging Gateway

Disabling Charging Processing


Configuring Charging on the GGSN


This chapter describes how to configure the charging function on the GGSN. Charging processing is enabled by default on the GGSN. There are several ways to customize communication with a charging gateway. Many of the default values for the charging options will provide a satisfactory configuration until you become more familiar with your network and decide to customize the charging interface.

For a complete description of the GPRS commands in this chapter, refer to the Cisco IOS Mobile Wireless Command Reference. To locate documentation of other commands that appear in this chapter, use the command reference master index or search online.

This chapter includes the following sections:

Configuring the Charging Gateway (Required)

Configuring the Transport Protocol for the Charging Gateway (Optional)

Customizing the Charging Gateway (Optional)

Disabling Charging Processing (Optional)

Configuring the Charging Gateway

To configure the default charging gateway, use the following command in global configuration mode:

Command
Purpose

router(config)# gprs default charging-gateway {ip-address | name} [{ip-address | name}]


Specifies a primary charging gateway (and backup), where:

ip-address—Specifies the IP address of a charging gateway. The second (optional) ip-address argument specifies the IP address of a secondary charging gateway.

name—Specifies the host name of a charging gateway. The second (optional) name argument specifies the host name of a secondary charging gateway.


Changing the Default Charging Gateway

To change the default charging gateway, use the following commands beginning in global configuration mode:

 
Command
Purpose

Step 1 

router(config)# gprs default charging-gateway 10.1.1.1

Specifies a primary charging gateway at IP address 10.1.1.1.

Step 2 

router(config)#  no gprs default charging-gateway 10.1.1.1

Removes the primary charging gateway at IP address 10.1.1.1.

Step 3 

router(config)# gprs default charging-gateway 10.2.2.2

Specifies the new default primary charging gateway at IP address 10.2.2.2.

Configuring the Transport Protocol for the Charging Gateway

You can configure the GGSN to support either Transport Control Protocol (TCP) or User Datagram Protocol (UDP) as the transport path protocol for communication with the charging gateway.

The GPRS default configuration specifies UDP, which is a connectionless protocol that is considered an unreliable transport method but can yield greater performance.

Configuring TCP as the Charging Gateway Path Protocol

TCP is a connection-based protocol that provides reliable transmission through packet acknowledgment. To specify TCP as the transport path protocol, use the following commands beginning in global configuration mode:

 
Command
Purpose

Step 1 

router(config)# gprs charging path-protocol tcp

Specifies that the TCP networking protocol is used by the GGSN to transmit and receive charging data.

Step 2 

router(config)# gprs charging cg-path-requests 1


Specifies that the GGSN waits 1 minute before retrying a request over the data path to the charging gateway.

Configuring UDP as the Charging Gateway Path Protocol

The GPRS default configuration specifies UDP as the transport path protocol to the charging gateway. If you need to reconfigure the charging gateway for UDP transport, use the following commands beginning in global configuration mode:

 
Command
Purpose

Step 1 

router(config)# gprs charging path-protocol udp

Specifies that the UDP networking protocol is used by the GGSN to transmit and receive charging data. The default value is UDP.

Step 2 

router(config)# gprs gtp path-echo-interval interval


Specifies the number of seconds that the GGSN waits before sending an echo-request message to check for GTP path failure. The default value is 60 seconds.

Customizing the Charging Gateway

For the GPRS charging options, the default values represent recommended values. Other optional commands also are set to default values, but Cisco Systems recommends modifying these commands to optimize your network as necessary, or according to your router hardware.

Use the following global configuration commands to fine-tune charging processing on the GGSN:

Command
Purpose
router(config)# gprs charging 
cdr-aggregation-limit CDR_limit

Specifies the maximum number of CDRs that the GGSN aggregates in a charging data transfer message to a charging gateway.

router(config)# gprs charging cdr-option 
local-record-sequence-number 

Enables the GGSN to use the local record sequence number field in G-CDRs.

router(config)# gprs charging cdr-option 
node-id

Enables the GGSN to specify the node that generated the CDR in the node ID field in G-CDRs.

router(config)# gprs charging cdr-option 
no-partial-cdr-generation

Disables the GGSN from creating non-primary partial G-CDRs.

router(config)# gprs charging cdr-option 
packet-count

Enables the GGSN to provide uplink and downlink packet counts in the optional record extension field in G-CDRs.

router(config)# gprs charging cdr-option 
served-msisdn

Enables the GGSN to provide the MSISDN number from the create PDP context request in G-CDRs.

router(config)# gprs charging cg-path-requests 
minutes

Specifies the number of minutes that the GGSN waits before trying to establish the TCP path to the charging gateway when TCP is the specified path protocol.

router(config)# gprs charging container 
volume-threshold threshold_value

Specifies the maximum number of bytes that the GGSN maintains in a user's charging container before closing it and updating the CDR.

router(config)# gprs charging disable

Disables charging transactions on the GGSN.

router(config)# gprs charging flow-control 
private-echo

Implements an echo request with private extensions for maintaining flow control on packets transmitted to the charging gateway.

router(config)# gprs charging map data tos 
tos_value

Specifies an IP ToS mapping for GPRS charging packets.

router(config)# gprs charging packet-queue-size 
queue_size

Specifies the maximum number of unacknowledged charging data transfer requests that the GGSN maintains in its queue.

router(config)# gprs charging path-protocol 
{udp | tcp}

Specifies the protocol that the GGSN uses to transmit and receive charging data.

router(config)# gprs charging 
server-switch-timer seconds

Specifies a timeout value that determines when the GGSN attempts to find an alternate charging gateway after a destination charging gateway cannot be located or becomes unusable.

router(config)# gprs charging tariff-time time

Specifies a time of day when GPRS charging tariffs change.

router(config)# gprs charging transfer interval 
seconds

Specifies the number of seconds that the GGSN waits before it transfers charging data to the charging gateway.


For information about configuring GPRS GTP options, see the "Customizing the GPRS Configuration" section in the "Configuring GGSN Services" chapter.

Disabling Charging Processing


Caution The gprs charging disable command removes charging data processing on the GGSN, which means that the data required to bill customers for network usage is not being collected by the GGSN nor sent to the charging gateway. Cisco Systems, Inc. recommends that you avoid using this command in production GPRS network environments. When necessary to use this command, use it with extreme care and reserve its usage only under non-production network conditions.

You can disable charging on the GGSN only when all open CDRs have been processed and sent to the charging gateway. To clear the current GPRS CDRs, use the clear gprs charging cdr privileged EXEC command.

To disable charging processing on the GGSN, use the following command beginning in global configuration mode:

Command
Purpose

router(config)# gprs charging disable


Disables charging transactions on the GGSN.