- Overview of the Cisco Mobile Wireless Home Agent
- Single IP Infrastructure
- Planning to Configure the Home Agent
- Assigning a Home Address on the Home Agent
- User Authentication and Authorization
- Home Agent Redundancy
- Configuring Load Balancing on the Home Agent
- Terminating IP Registrations
- Dynamic Domain Name Server Updates
- Per User Packet Filtering
- Home Agent Security
- Home Agent Accounting
- Multi-VPN Routing and Forwarding on the Home Agent
- Home Agent Quality of Service
- Monitoring User Traffic
- Other Configuration Tasks
- Network Management, MIBs, and SNMP on the Home Agent
- Glossary
Home Agent Accounting
This chapter discusses concepts related to Accounting on the Cisco Mobile Wireless Home Agent, and provides details about how to configure this feature.
This chapter includes the following sections:
•Single IP Home Agent Accounting Support
•Messages Not Sent By Mobile IP Home Agent
•HA Accounting Configuration Examples
Overview of HA Accounting
This feature is primarily developed to allow the HA to interoperate with the Service Selection Gateway (SSG) in the CMX solution. However, this feature can also be used without SSG interaction.
This release supports the following Accounting features:
• Home Agent Accounting in a Redundant Setup
• Packet count and Byte count in Accounting Records
•Additional Attributes in the Accounting Records
•Additional Accounting Methods—Interim Accounting is Supported.
As byte count and packet count is performed on the HA, this accounting feature does not need the SSG in the network to generate full accounting information.
The HA Accounting feature includes the following activities:
• HA will send Accounting Start record when the first binding for a mobile is created
•HA will send Accounting Stop record when the last binding for a mobile is deleted
•HA will send Accounting Update when Handoff occurs
•Start-stop, and Interim accounting methods will be supported
•When a mobileip registration reply with an error code is sent for an authenticated NAI (due and if a binding does not exit for the NAI), an accounting stop record will be sent.
•A Watchdog message will be sent with an appropriate reject code for an authenticated NAI if Re-registration fails for an existing binding.
The following attributes are sent in Accounting Records:
•NAI in Username attribute (1)
•MN IP Address in Framed IP Address attribute (8)
•Home Agent IP Address (26/7, 3gpp2 attribute)
•Care-of-address in Tunnel End Point (66)
•Network Access Server (NAS) IP Address attribute (4)
•Accounting Status Type attribute (40)
•Accounting Session ID (44)
•Accounting Terminate Cause (49) - only in accounting stop
•Accounting Delay Time (41)
•Acct-Input-Octets (42)
•Acct-Output-Octets (43)
•Acct-Input-Packets (47)
•Acct-Output-Packets (48)
•Acct-Input-Gigawords (52)
•Acct-Output-Gigawords (53)
•Registration flags in "mobileip-mn-flags" cisco-avpair attribute
•Vrf name in "mobileip:ip-vrf" cisco-avpair attribute
Single IP Home Agent Accounting Support
The Single IP Home Agent design supports the underlying ability to run AAA services on the Traffic Processor of the Single IP model. For accounting services, the Radius Accounting executes on the traffic processors. Each traffic processor uses a unique UDP source port when originating Radius traffic. The Radius response has this port as the UDP destination port which is used to identify the Traffic Processor that originated the Radius message.
These messages include Start, Update and Stop.
This feature is only supported on the Cisco 7600 Switch with SAMI blade.
To configure the Single IP HA Accounting support, perform the following tasks:
Here are some configuration examples:
Slot4#show sami port-range
Current Start Port range 30000 End port range 35999 Range Per PPC 1000
Port ranges for
Processor 3: 30000 to 30999
Processor 4: 31000 to 31999
Processor 5: 32000 to 32999
Processor 6: 33000 to 33999
Processor 7: 34000 to 34999
Processor 8: 35000 to 35999
After Reload Start Port range 30000 End port range 35999 Range Per PPC 1000
aaa authentication login default local
aaa authentication ppp default group radius
aaa authorization ipmobile default group radius
aaa authorization network default group radius
aaa accounting update periodic 1
aaa accounting network default start-stop group radius
ip local pool fasim-pool-82 16.82.0.1 16.82.100.254
ip forward-protocol nd
ip mobile home-agent revocation
ip mobile home-agent dynamic-address 48.48.48.48
ip mobile home-agent accounting default
ip mobile host nai @fasim48.com address pool local fasim-pool-82 virtual-network
16.82.0.0 255.255.0.0 aaa load-sa lifetime 7400
radius-server host 12.1.3.2 auth-port 1645 acct-port 1646 key lab
radius-server vsa send accounting
Per Domain Accounting
The Home Agent VRF feature allows you to configure accounting groups, authentication groups and whether accounting is enabled or not as part of the VRF definition. In Cisco Mobile Wireless Home Agent Release 5.0 it is now possible to define the accounting interim update interval timer as part of the per-realm configuration within a VRF.
To enable this feature, perform the following tasks:
Note The per-VRF configuration takes precedence over per-realm configuration, which takes precedence over aaa accounting update periodic configuration
The show command now includes the periodic minutes parameters in addition to those previously displayed.
Here is an example router configuration for per Domain Accounting:
ip mobile host nai @yahoo.com address pool local mypool virtual-network 60.0.0.0 255.255.0.0 aaa load-sa
ip mobile host nai @cisco.com address pool local hapool virtual-network 65.0.0.0 255.255.0.0 aaa load-sa
ip mobile host nai @xyz.com address pool local nextpool virtual-network 61.0.0.0 255.255.0.0 aaa load-sa
ip mobile host nai @abc.com address pool local vrf-pool1 virtual-network 55.1.1.0 255.255.255.0 aaa load-sa
ip mobile realm @yahoo.com aaa-group accounting mylist authentication mylist periodic 2 accounting
Accounting Interim Sync
In Home Agent Release 5.0, the following per-session fields are periodically synchronized to the standby Home Agent.
•Input octets
•Output octets
•Input bytes
•Output bytes
•Input octets gigawords
•Output octets gigawords
•Input packet gigawords
•Output packet gigawords
•Data Path Idle Timer
The update interval is configurable in minutes, and is independent of the configuration to send interim accounting update Radius messages.
The information is only sent to the standby if there is a change in value for any of the Input/Output counts.
To enable this feature, perform the following tasks:
Basic Accounting Messages
Home Agent Release 2.1 and above supports the Cisco Service Selection Gateway (SSG). In this release, the HA sends only three accounting messages without statistics information. The SSG is designed and deployed in such a way that all the network traffic passes through it.
Since all the traffic passes through the SSG, it has all of the statistical information; however, it does not have Mobile IP session information. The Home Agent has the Mobile IP session information, and sends that information to the SSG.
The HA sends the following messages to the SSG/AAA server:
•Accounting Start: The HA sends this message to the SSG/AAA server when:
–A MN successfully registers for the first time. This indicates the start of new Mobile IP session for a MN.
–In case of redundant HA configuration, a stand-by HA will send Accounting Start message only when it becomes active and it does not have any prior bindings. This allows the SSG to maintain host objects for MNs on failed HA. However, redundancy is not supported in Phase-1.
•Accounting Update: The HA generates an Accounting Update message, if periodic accounting update message is configured, and when the mobile node changes its point of attachment (POA). For a Mobile IP session, this corresponds to a successful re-registration from a mobile node when it changes its care-of address (CoA). The CoA is the current location of the mobile node on the foreign network. Additionally, the HA sends an accounting update message with correct reject code when re-registration fails for an existing binding.
•Accounting Stop: The HA sends an Accounting Stop message when RRP with error code is sent for an authenticated NAI (except for MobileIP error code 136), due and if binding does not exist for the NAI.
All the messages contain the following information:
•Network Access Identifier (NAI): This is the MN's name. It looks something like abc@service_provider1.com
•Network Access Server (NAS) IP: This is the accounting node's IP address. Since HA is the accounting node, this field carries the HA address.
•Framed IP Address: This is the IP address of the MN. Typically the HA will allot an IP address to a MN after successful registration.
•Point Of Attachment (POA): This field indicates the Point of attachment for the MN on the network. For Mobile IP session, this is MN's Care-Of-Address (COA).
System Accounting in HA
An accounting-on is sent while a home agent is brought into the service (in other words, at the time of initialization after reloading a box), and if there is no active home agent at that time.
An accounting-off could be sent when the active home agent is taken out of service (graceful or otherwise), and if there is no standby home agent to provide the home agent service. Note that, accounting-off is not guaranteed.
An accounting-off is not sent when the standby home agent is taken out of service (graceful or otherwise).
Messages Not Sent By Mobile IP Home Agent
The following messages are not sent by Mobile IP Home Agent:
•Accounting On Message (Acct-Status-Type=Accounting-On) when the HA box comes online or boots up: This message is a global entity for the platform, irrespective of Mobile IP configuration. This message is typically implemented by the platform code during initialization, and not by a service such as Mobile IP.
•Accounting Off Message (Acct-Status-Type=Accounting-Off) when the HA box is shutdown: This message is also a global entity for the platform, irrespective of Mobile IP configuration. This message is typically implemented by the platform code during reboot, and not by a service such as Mobile IP.
Configuring HA Accounting
Mobile IP currently uses AAA commands to configure authorization parameters. All of the following commands are required. By default, the HA Accounting feature will be disabled; the HA will not send accounting messages to the AAA server unless configured. To enable the HA Accounting feature, perform the following tasks:
HA Accounting Configuration Examples
The first block of commands are AAA configurations. An accounting method list (mylist) is created for network accounting. Start-Stop keywords imply that HA will send Start and Stop records. For detailed information, see the IOS Security Configuration Guide.
The Second line instructs the HA to send accounting Update records, whenever there is a change in Care-Of-Address (COA).
ip mobile home-agent accounting mylist address 10.3.3.1
ip mobile host 10.3.3.2 3.3.3.5 interface Ethernet2/2
ip mobile secure host 10.3.3.2 spi 1000 key ascii test algorithm md5 mode prefix-suffix
These are Mobile IP commands. On the first line, accounting method list mylist is applied on the Home Agent, thus enabling HA Accounting.
!
!
radius-server host 172.16.162.173 auth-port 1645 acct-port 1646
radius-server retransmit 3
radius-server key cisco
!
These are RADIUS commands. The first line specifies the RADIUS server address. Make sure the HA can reach AAA server and has proper access privileges.
Here is a sample HA Accounting configuration:
ACTIVE HA:
router#
router#show run
Building configuration...
Current configuration : 4927 bytes
!
! Last configuration change at 05:12:03 UTC Thu Oct 13 2005
!
version 12.3
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname cisco7600
!
boot-start-marker
boot-end-marker
!
!
aaa new-model
!
!
aaa authentication ppp default local group radius
aaa authorization config-commands
aaa authorization ipmobile default group radius
aaa authorization network default local group radius
aaa authorization configuration default group radius
aaa accounting update newinfo periodic 2
aaa accounting network mylist start-stop group radius
aaa accounting system default start-stop group radius
!
!
aaa session-id common
!
resource manager
!
no ip subnet-zero
!
!
ip cef
no ip dhcp use vrf connected
ip dhcp ping packets 0
!
!
ip dhcp-server 99.107.0.13
vpdn-group 1
! Default L2TP VPDN group
! Default PPTP VPDN group
accept-dialin
protocol any
virtual-template 1
!
!
no virtual-template snmp
!
!
username cisco7600 password 0 cisco
!
interface Loopback1
ip address 11.0.0.1 255.0.0.0
!
interface FastEthernet0/0
description "LINK TO HAAA................!"
ip address 150.2.13.40 255.255.0.0
no ip route-cache cef
no ip route-cache
no ip mroute-cache
duplex half
no cdp enable
standby 4 ip 150.2.0.252
standby 4 priority 110
standby 4 preempt delay reload 300
standby 4 name cisco1
!
interface FastEthernet1/0
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface FastEthernet2/0
description "LINK TO PDSN................!"
ip address 7.0.0.10 255.0.0.0
no ip route-cache cef
no ip route-cache
duplex half
standby 2 ip 7.0.0.2
standby 2 priority 110
standby 2 preempt delay reload 300
standby 2 name cisco
!
interface FastEthernet3/0
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
bridge-group 4
bridge-group 4 spanning-disabled
!
interface Ethernet6/0
description ""LINK TO REFLECTOR...."
ip address 99.107.0.19 255.255.0.0
no ip route-cache cef
no ip route-cache
no ip mroute-cache
duplex half
no cdp enable
standby 3 ip 99.107.89.67
standby 3 priority 110
standby 3 preempt delay reload 300
standby 3 name reflector
!
interface Ethernet6/1
description "LINK TO TFTP....."
ip address 1.7.130.10 255.255.0.0
no ip route-cache cef
no ip route-cache
no ip mroute-cache
duplex half
no cdp enable
!
interface Ethernet6/2
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface Ethernet6/3
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface Ethernet6/4
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface Ethernet6/5
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface Ethernet6/6
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface Ethernet6/7
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
shutdown
duplex half
no cdp enable
!
interface Virtual-Template1
no ip address
!
router mobile
!
ip local pool LNS-Pool 8.3.0.1 8.3.0.100
ip local pool ispabc-pool 40.0.0.101 40.0.0.255
ip default-gateway 10.1.2.13
ip classless
ip route 8.0.0.1 255.255.255.255 7.0.0.1
ip route 9.0.0.1 255.255.255.255 7.0.0.1
ip mobile home-agent accounting mylist broadcast
ip mobile home-agent ip mobile home-agent redundancy
ip mobile virtual-network 40.0.0.0 255.0.0.0
ip mobile host nai @ispxyz.com address pool local ispabc-pool virtual-network 40.0.0.0 255.0.0.0 aaa lifetime 250
ip mobile secure home-agent 7.0.0.2 spi 1001 key ascii cisco algorithm md5 mode prefix-suffix
ip mobile secure home-agent 7.0.0.67 spi 1001 key ascii cisco algorithm md5 mode prefix-suffix
!
no ip http server
!
!
ip radius source-interface Loopback1
access-list 120 deny ip 40.0.0.0 0.255.255.255 40.0.0.0 0.255.255.255
access-list 120 permit ip any any
dialer-list 1 protocol ip permit
!
!
radius-server host 150.2.0.2 auth-port 1645 acct-port 1646
radius-server key cisco
radius-server vsa send accounting
radius-server vsa send accounting 3gpp2
radius-server vsa send authentication 3gpp2
!
control-plane
!
dial-peer cor custom
!
!
gatekeeper
shutdown
!
alias exec shb sh ip mob bin
alias exec shr sh ip route
alias exec sht sh ip mob tun
alias exec shh sh ip mob host
alias exec clr clear ip mob bin all
!
line con 0
exec-timeout 0 0
length 0
stopbits 1
line aux 0
exec-timeout 0 0
password 7 0507070D
length 0
stopbits 1
line vty 0 4
password 7 0507070D
!
no scheduler max-task-time
ntp master 1
ntp update-calendar
ntp server 30.1.0.1
!
end
router#
STANDBY HA:
router#
router#show run
Building configuration...
Current configuration : 3995 bytes
!
! No configuration change since last restart
!
version 12.3
no service pad
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
service internal
!
hostname cisco7600
!
boot-start-marker
boot system tftp /auto/tftpboot-users/tennis/c7600-h1is-mz.123-3.8.PI2 171.69.1.129
boot-end-marker
!
enable password 7 00445566
!
no spd enable
aaa new-model
!
!
aaa authentication ppp default local group radius
aaa authorization config-commands
aaa authorization ipmobile default group radius
aaa authorization network default local group radius
aaa authorization configuration default group radius
aaa accounting update newinfo periodic 2
aaa accounting network mylist start-stop group radius
aaa accounting system default start-stop group radius
!
!
aaa session-id common
!
resource manager
!
ip subnet-zero
!
!
no ip cef
ip ftp username pdsn-team
ip ftp password 7 pdsneng
ip host PAGENT-SECURITY-V3 32.68.10.4 38.90.0.0
ip name-server 11.69.2.133
no ip dhcp use vrf connected
!
!
vpdn enable
vpdn ip udp ignore checksum
!
vpdn-group 1
! Default L2TP VPDN group
! Default PPTP VPDN group
accept-dialin
protocol any
virtual-template 1
!
!
no virtual-template snmp
!
username mwt13-7600b password 0 cisco
!
interface Loopback1
ip address 11.0.0.1 255.0.0.0
no ip route-cache
!
interface FastEthernet0/0
ip address 4.0.10.2 255.0.0.0
no ip route-cache
duplex half
no cdp enable
!
interface FastEthernet1/0
no ip address
no ip route-cache
duplex half
no cdp enable
!
interface FastEthernet2/0
description "LINK TO HAAA................!"
ip address 15.2.13.20 255.255.0.0
no ip route-cache
duplex full
no cdp enable
standby 4 ip 15.2.0.252
standby 4 name cisco1
!
interface FastEthernet5/0
description "LINK TO PDSN................!"
ip address 7.0.0.67 255.0.0.0
no ip route-cache
duplex full
standby 2 ip 7.0.0.2
standby 2 name cisco
!
interface Ethernet6/0
description "LINK TO REFLECTOR....!"
ip address 22.107.0.12 255.255.0.0
no ip route-cache
no ip mroute-cache
duplex half
no cdp enable
standby 3 ip 22.107.89.67
standby 3 name reflector
!
interface Ethernet6/1
description "LINK TO TFTP....."
ip address 1.7.130.2 255.255.0.0
no ip route-cache
duplex half
no cdp enable
!
interface Ethernet6/2
no ip address
no ip route-cache
shutdown
duplex half
no cdp enable
!
interface Ethernet6/3
no ip address
no ip route-cache
shutdown
duplex half
no cdp enable
!
router mobile
!
ip local pool LNS-Pool 8.3.0.1 8.3.0.100
ip local pool ispabc-pool 40.0.0.101 40.0.0.255
ip default-gateway 10.1.2.13
ip classless
ip route 8.0.0.1 255.255.255.255 7.0.0.1
ip route 9.0.0.1 255.255.255.255 7.0.0.1
ip mobile home-agent accounting mylist broadcast
ip mobile home-agent ip mobile home-agent redundancy
ip mobile virtual-network 40.0.0.0 255.0.0.0
ip mobile host nai @ispxyz.com address pool local ispabc-pool virtual-network 40.0.0.0 255.0.0.0 aaa lifetime 250
ip mobile secure home-agent 7.0.0.2 spi 1001 key ascii cisco algorithm md5 mode prefix-suffix
ip mobile secure home-agent 7.0.0.10 spi 1001 key ascii cisco algorithm md5 mode prefix-suffix
!
no ip http server
!
!
ip radius source-interface Loopback1
dialer-list 1 protocol ip permit
!
!
radius-server host 150.2.0.2 auth-port 1645 acct-port 1646
radius-server key cisco
radius-server vsa send accounting
radius-server vsa send accounting 3gpp2
radius-server vsa send authentication 3gpp2
!
control-plane
!
gatekeeper
shutdown
!
alias exec shb sh ip mob bin
alias exec shr sh ip route
alias exec sht sh ip mob tun
alias exec shh sh ip mob host
alias exec clr clear ip mob bin all
!
line con 0
exec-timeout 0 0
length 0
stopbits 1
line aux 0
exec-timeout 0 0
length 0
stopbits 1
line vty 0 4
password 7 0507070D
!
no scheduler max-task-time
ntp master 1
ntp update-calendar
ntp server 30.1.0.1
!
end
Verifying HA Accounting Setup
The HA Accounting status can be verified by issuing the show ip mobile global command. The current accounting status is displayed as shown below:
router# sh ip mobile global
IP Mobility global information:
Home Agent
Registration lifetime: 10:00:00 (36000 secs)
Broadcast enabled
Replay protection time: 7 secs
Reverse tunnel enabled
ICMP Unreachable enabled
Strip realm disabled
NAT Traversal disabled
HA Accounting enabled using method list: mylist
NAT UDP Tunneling support enabled
UDP Tunnel Keepalive 110
Forced UDP Tunneling disabled
Standby groups
cisco (virtual network - address 7.0.0.2)
Virtual networks
40.0.0.0 /8
Foreign Agent is not enabled, no care-of address
0 interfaces providing service
Encapsulations supported: IPIP and GRE
Tunnel fast switching enabled, cef switching enabled
Tunnel path MTU discovery aged out after 10 min
Radius Disconnect Capability disabled
router#