# Sample Mobile Video Gateway Configuration File

This appendix contains a sample Mobile Video Gateway configuration file.

In the following configuration example, commented lines are labeled with the number symbol (#) and variables are identified using italics within brackets (<variable>).

Sample Integrated MVG/P-GW Configuration

This section contains a sample configuration for the Mobile Video Gateway integrated with a P-GW. This sample configuration contains commands for the Mobile Video Gateway obtaining the video policy for subscribers from a RADIUS server and from static assignment, and without a CAE server cluster deployed in the network.

    # Configure
    system settings

    configure

       logging
    disable eventid 1 to 91289

       logging
    disable eventid 91291 to 200000

       license
    key <key_value>

       aaa
    large-configuration

       system
    hostname asr5kmvg

       card
    1

          mode
    active

          exit

       card
    2

          mode
    active

          exit

       card
    3

          mode
    active

          exit

       require
    session recovery

       require
    active-charging

       exit

    # Configure
    the local context

    configure

       context
    local

          interface
    SPIO1

             ip
    address <ip_address> <subnet_mask>

          interface
    SPIO2

             ip
    address <ip_address> <subnet_mask>

             exit

             server
    ftpd

             exit

          ssh
    key <key_value>

          ssh
    key <key_value>

          ssh
    key <key_value>

          server
    sshd

             max
    servers 100

             subsystem
    sftp

             exit

          server
    telnetd

             exit

          subscriber
    default

             exit

          administrator
    admin encrypted password <password> ftp

          aaa
    group default

            exit

          gtpp
    group default

             exit

          ip
    route 0.0.0.0 0.0.0.0 <gateway_ip_addr>
    SPIO1

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_addr> SPIO2

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_addr> SPIO2

          exit

       port
    ethernet 24/1

          no
    shutdown

          bind
    interface SPIO1 local

          exit

       port
    ethernet 24/2

          no
    shutdown

          bind
    interface SPIO2 local

          exit

       end

    # Configure
    the SGi context

    configure

       context
    SGi

          ip
    vrf test

             exit

          interface
    sgi

             description
    sgi-port-2-out

             exit

          interface
    sgi-port-1

             description
    sgi-port-1-in

             ip
    address <ip_address> <subnet_mask>

             exit

          interface
    sgi-port-2

             description
    sgi-port-2-out

             ip
    address <ip_address> <subnet_mask>

             exit

          interface
    sgi-port-3

             description
    sgi-port-to-sup

             ip
    address <ip_address> <subnet_mask>

             exit

          interface
    sgi-port-4

             description
    towards-www-server

             ip
    address <ip_address> <subnet_mask>

             exit

          subscriber
    default

          accounting-mode
    none

          ip
    access-group pgw-acl in

          ip
    access-group pgw-acl out

          active-charging
    rulebase no_pacing

          no
    tpo policy

          exit

       apn
    cisco.com

          accounting-mode
    none

          ip
    access-group pgw-acl in

          ip
    access-group pgw-acl out

          ip
    context-name internet

          ip
    address pool name testpool

          active-charging
    rulebase tpo

          tpo
    policy tpo_video

          exit

       apn
    common.com

          accounting-mode
    none

          ip
    access-group pgw-acl in

          ip
    access-group pgw-acl out

          ip
    context-name internet

          ip
    address pool name testpool

          active-charging
    rulebase common

          active-charging
    link-monitor tcp log

          exit

          radius
    change-authorize-nas-ip <ip_address>
    encrypted key <key> event-timestamp-window
    0 no-reverse-path-forward-check no-nas-identification-check

          aaa
    group default

             radius
    attribute nas-ip-address address <ip_address>

             radius
    server <ip_address> encrypted
    key <key>
    port <port_number>

             exit

          aaa
    group aaa_group1

             radius
    attribute nas-ip-address address <ip_address>

             exit

          gtpp
    group default

             exit

          gtpu-service
    ggsn_gtpu

             bind
    ipv4-address <ipv4_address>

             exit

          egtp-service
    pgwgtp

             interface-type
    interface-pgw-ingress

             associate
    gtpu-service ggsn_gtpu

             gtpc
    bind ipv4-address <ipv4_address>

             exit

          exit

       end

    # Configure
    the PGW service

    configure

       context
    pgw

          pgw-service
    pgw_service_1

             plmn
    id mcc <mcc>
    mnc <mnc>

             associate
    egtp-service pgwgtp

             exit

          ip
    route 0.0.0.0 0.0.0.0 <gateway_ip_address>
    sgi-port-2

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_address> sgi-port-1

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_address> sgi-port-1

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_address> sgi-port-2

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_address> sgi-port-2

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_address> sgi-port-2

          ip
    igmp profile default

          exit

       end

    # Configure
    the Internet context

    configure

       context
    internet

          ip
    access-list ecs-acl

             exit

          ip
    access-list pgw-acl

             redirect
    css service service1 any

             permit
    any

             exit

          ip
    pool testpool range <ip_address>
    <ip_address>
    public 0 policy allow-static-allocation

          interface
    sgi-port-4

          description
    towards-www-server

             ip
    address <ip_address> <subnet_mask>

             exit

          subscriber
    default

          exit

          aaa
    group default

          exit

          gtpp
    group default

          exit

          ip
    route <ip_address> <subnet_mask>
    <gateway_ip_address> sgi-port-4

          igmp
    profile default

          exit

       end

    # Configure
    bulkstats collection

    configure

       bulkstats
    collection

       bulkstats
    mode

          sample-interval
    1

          transfer-interval
    5

          file
    1

             mvs
    schema ttl-rate format EMS,TTL-RATE,%date%,%time%,%tcplm-ttl-avrg-rate%,%tcplm-ttl-rate-220-259kbps%,%tcplm-ttl-rate-260-299kbps%,%tcplm-ttl-rate-300-339kbps%,%tcplm-ttl-rate-340-379kbps%,%tcplm-ttl-rate-380-419kbps%,%tcplm-ttl-rate-420-459kbps%,%tcplm-ttl-rate-460-499kbps%,%tcplm-ttl-rate-500-539kbps%,%tcplm-ttl-rate-540-579kbps%,%tcplm-ttl-rate-580-619kbps%,%tcplm-ttl-rate-620-719kbps%,%tcplm-ttl-rate-720-819kbps%,%tcplm-ttl-rate-820-919kbps%,%tcplm-ttl-rate-920-1019kbps%,%tcplm-ttl-rate-1020-1119kbps%,%tcplm-ttl-rate-1120-1219kbps%,%tcplm-ttl-rate-1220-1319kbps%,%tcplm-ttl-rate-1320-1419kbps%,%tcplm-ttl-rate-1420-1519kbps%,%tcplm-ttl-rate-1520-1619kbps%,%tcplm-ttl-rate-gteq-1620kbps%,

             mvs
    schema ttl-rtt format EMS,TTL-RTT,%date%,%time%,%tcplm-ttl-avrg-rtt-ms%,%tcplm-ttl-rtt-lt-50ms%,%tcplm-ttl-rtt-50-69ms%,%tcplm-ttl-rtt-70-89ms%,%tcplm-ttl-rtt-90-109ms%,%tcplm-ttl-rtt-110-129ms%,%tcplm-ttl-rtt-130-149ms%,%tcplm-ttl-rtt-150-169ms%,%tcplm-ttl-rtt-170-189ms%,%tcplm-ttl-rtt-190-209ms%,%tcplm-ttl-rtt-210-229ms%,%tcplm-ttl-rtt-230-249ms%,%tcplm-ttl-rtt-250-289ms%,%tcplm-ttl-rtt-290-329ms%,%tcplm-ttl-rtt-330-369ms%,%tcplm-ttl-rtt-370-409ms%,%tcplm-ttl-rtt-410-449ms%,%tcplm-ttl-rtt-450-489ms%,%tcplm-ttl-rtt-490-529ms%,%tcplm-ttl-rtt-530-569ms%,%tcplm-ttl-rtt-570-609ms%,%tcplm-ttl-rtt-gteq-1650ms%,

             mvs
    schema video-rate format EMS,VIDEO-RATE,%date%,%time%,%tcplm-video-avrg-rate%,%tcplm-video-rate-220-259kbps%,%tcplm-video-rate-260-299kbps%,%tcplm-video-rate-300-339kbps%,%tcplm-video-rate-340-379kbps%,%tcplm-video-rate-380-419kbps%,%tcplm-video-rate-420-459kbps%,%tcplm-video-rate-460-499kbps%,%tcplm-video-rate-500-539kbps%,%tcplm-video-rate-540-579kbps%,%tcplm-video-rate-580-619kbps%,%tcplm-video-rate-620-719kbps%,%tcplm-video-rate-720-819kbps%,%tcplm-video-rate-820-919kbps%,%tcplm-video-rate-920-1019kbps%,%tcplm-video-rate-1020-1119kbps%,%tcplm-video-rate-1120-1219kbps%,%tcplm-video-rate-1220-1319kbps%,%tcplm-video-rate-1320-1419kbps%,%tcplm-video-rate-1420-1519kbps%,%tcplm-video-rate-1520-1619kbps%,%tcplm-video-rate-gteq-1620kbps%,

             mvs
    schema video-rtt format EMS,VIDEO-RTT,%date%,%time%,%tcplm-video-avrg-rtt-ms%,%tcplm-video-rtt-lt-50ms%,%tcplm-video-rtt-50-69ms%,%tcplm-video-rtt-70-89ms%,%tcplm-video-rtt-90-109ms%,%tcplm-video-rtt-110-129ms%,%tcplm-video-rtt-130-149ms%,%tcplm-video-rtt-150-169ms%,%tcplm-video-rtt-170-189ms%,%tcplm-video-rtt-190-209ms%,%tcplm-video-rtt-210-229ms%,%tcplm-video-rtt-230-249ms%,%tcplm-video-rtt-250-289ms%,%tcplm-video-rtt-290-329ms%,%tcplm-video-rtt-330-369ms%,%tcplm-video-rtt-370-409ms%,%tcplm-video-rtt-410-449ms%,%tcplm-video-rtt-450-489ms%,%tcplm-video-rtt-490-529ms%,%tcplm-video-rtt-530-569ms%,%tcplm-video-rtt-570-609ms%,%tcplm-video-rtt-gteq-1650ms%

             exit

          file2

             exit

          local-directory /flash/mur

             exit

          exit

       end

    # Configure
    the active charging service

    configure

       active-charging
    service service1

          ruledef
    facebook

             http
    uri contains fbcdn

             exit

          ruledef
    http_all

             http
    any-match = TRUE

             exit

          ruledef
    http_youtube

             http
    uri contains videoplayback

             http
    host contains googlevideo

             multi-line-or
    all-lines

             exit

          ruledef
    route_icmp

             icmp
    any-match = TRUE

             rule-application
    routing

             exit

          ruledef
    rr_http_80

             tcp
    either-port = 80

             rule-application
    routing

             multi-line-or
    all-lines

             exit

          ruledef
    rr_http_8080

             tcp
    either-port = 8080

             rule-application
    routing

             multi-line-or
    all-lines

             exit

          ruledef
    video

             http
    uri contains .m4v

             http
    uri contains .3gp

             http
    uri contains .mp4

             http
    uri contains .mov

             http
    uri contains .f4v

             http
    request method = get

             http
    uri contains txt

             multi-line-or
    all-lines

             exit

          group-of-ruledefs
    all_video

             add-ruledef
    priority 2 ruledef video

             add-ruledef
    priority 3 ruledef http_youtube

             exit

          charging-action
    VIDEO_NO_PACING

             video
    bitrate 1000000

             exit

          charging-action
    VIDEO_PACING

             video
    bitrate 1000000

             video
    pacing by-policing initial-burst-duration 15 normal-burst-duration
    15

             exit

          charging-action
    default

             exit

          charging-action
    video_tpo

             tpo
    profile special

             exit

          charging-action
    common

             video
    bitrate 1000000

             video
    pacing by-policing initial-burst-duration 15 normal-burst-duration
    15

             exit

          rulebase
    base1

             tcp
    proxy-mode static

             action
    priority 1 ruledef no-redirect charging-action pacing

             action
    priority 2 ruledef proxy charging-action default

             exit

          rulebase
    common

             tcp
    proxy-mode static

ase

             action
    priority 10 group-of-ruledefs all_video charging-action
    common

             action
    priority 50 ruledef route_http_80 analyzer http

             action
    priority 60 ruledef route_http_8080 analyzer http

             exit

          rulebase
    default

             exit

          rulebase
    pacing

             action
    priority 10 ruledef all_video charging-action VIDEO_PACING

             route
    priority 1 ruledef rr_http_80 analyzer http

             route
    priority 2 ruledef rr_http_8080 analyzer http

             exit

          rulebase
    tcp_proxy

             tcp
    proxy-mode static

             exit

          rulebase
    tpo

             tcp
    proxy-mode dynamic all

             action
    priority 10 group-of-ruledefs all_video charging-action
    video_tpo

             route
    priority 1 ruledef rr_http_80 analyzer http

             route
    priority 2 ruledef rr_http_8080 analyzer http

             exit

          rulebase
    whitelist

             action
    priority 5 ruledef facebook charging-action VIDEO_NO_PACING

             action
    priority 10 group-of-ruledefs all_video charging-action
    VIDEO_PACING

             route
    priority 1 ruledef rr_http_80 analyzer http

             route
    priority 2 ruledef rr_http_8080 analyzer http

             exit

          tpo
    policy no_tpo

             exit

          tpo
    policy test1

             match-rule
    no-ruledef-match tpo profile special

             exit

          tpo
    policy tpo_video

             match-rule
    no-ruledef-match tpo profile special

             exit

          exit

       end

    # Configure
    the SGi interfaces

    configure

       port
    ethernet 17/1

          no
    shutdown

          bind
    interface sgi-port-1 SGi

          exit

       port
    ethernet 17/2

          no
    shutdown

          bind
    interface sgi-port-2 SGi

          exit

       port
    ethernet 17/3

          no
    shutdown

          bind
    interface sgi-port-3 SGi

          exit

       port
    ethernet 17/4

          no
    shutdown

          bind
    interface sgi-port-4 internet

          exit

       end

Notes:

- The configuration above configures the Mobile Video Gateway without a CAE server cluster deployed in the network. For instructions on configuring the Mobile Video Gateway to work with a CAE server cluster, see “Configuring CAE Re-addressing and Load Balancing” and “Sample CAE Re-addressing and Load Balancing Configuration” in Chapter 2.
- The configuration above configures the Mobile Video Gateway to obtain the video policy from a RADIUS server and from static assignment. For instructions on configuring the Mobile Video Gateway to obtain the video policy from the PCRF via the Gx interface, see “Configuring Video Policy Optimization Control” and “Sample Video Optimization Policy Control Configurations” in Chapter 2.
- The configuration above enables TPO in TCP proxy static mode. To configure TPO in TCP proxy dynamic mode, remove “match-rule” from the TPO policy “tpo_video”.
- For video pacing, under the APN, change the active charging rulebase from “tpo” to “pacing”.
- For TCP link monitoring, under the APN add “active-charging link-monitor tcp log”.