Example: Using the BGF to Provide VoIP Solutions in a Next-Generation Network

This example describes how to configure the BGF VoIP solution on a router in the service provider core network. Topics include:

Requirements

This example uses the following software and hardware components:

Overview and Topology

Figure 27: Voice Solution Topology Diagram

Image g016995.gif

Table 13 shows the voice configuration components.

Table 13: Addresses Used in the Voice Solution Topology

Device

Interfaces/Virtual BGF/NAT Pools

Address

SP BGF
(Service Provider
BGF)

sp–1/2/0.10 (inside service domain for BGF-1)

sp-1/2/0.20 (outside service domain for BGF-1)

sp-1/2/0.30 (inside service domain for BGF-2)

sp-1/2/0.40 (outside service domain for BGF-2)

Not applicable

sp-1/2/1.10 (inside service domain for BGF-3)

sp-1/2/1.20 (outside service domain for BGF 3)

Not applicable

BGF-1—Provides both SIP and RTP over IPv4

BGF-2—Provides RTP (video) over IPv4

BGF-3—Provides media over IPv6

172.16.10.1

172.16.20.2

172.16.30.3

Media (RTP) NAT Pools

  • bgf1_peer_rtp-nat-pool-1
  • bgf2_peer_rtp-nat-pool-2
  • bgf3_peer_rtp-nat-pool-3
  • bgf1_core_rtp-nat-pool-4
  • bgf2_core_rtp-nat-pool-5
  • bgf3_core_rtp-nat-pool-6

Pool Address

  • 11.0.0.5
  • 11.0.0.25
  • 2001:db8:10:3::100/128
  • 10.0.0.5
  • 10.0.0.25
  • 2001:db8:13:2::100/128

Signaling (SIP) NAT Pools

  • bgf1_peer_sip-nat-pool-7
  • bgf1_core_sip-nat-pool-8

Pool Address

  • 11.0.0.2
  • 10.0.0.2

Gateway Controller

 

33.0.0.1

Peering Router

 

22.0.0.1

Configuration

Configuring the SP BGF Router

CLI Quick Configuration

To quickly configure this example on the SP BGF router, copy the following commands and paste them into the router terminal window:

[edit]set interfaces sp-1/2/0 description bgf1_bgf2_pgcp_service_ipv4set interfaces sp-1/2/0 unit 0 family inetset interfaces sp-1/2/0 unit 10 family inetset interfaces sp-1/2/0 unit 20 family inetset interfaces sp-1/2/0 unit 30 family inetset interfaces sp-1/2/0 unit 40 family inetset interfaces sp-1/2/0 traceoptions flag allset interfaces sp-1/2/0 services-options syslog host local services anyset interfaces sp-1/2/1 description bgf3_pgcp_service_ipv6set interfaces sp-1/2/1 unit 0 family inet6set interfaces sp-1/2/1 unit 10 family inet6set interfaces sp-1/2/1 unit 20 family inet6set interfaces sp-1/2/1 traceoptions flag allset interfaces sp-1/2/1 services-options syslog host local services anyset services service-interface-pools pool int-pool-1 pool sp-1/2/0.10;set services service-interface-pools pool int-pool-1 pool sp-1/2/0.20;set services service-interface-pools pool int-pool-1 pool sp-1/2/0.30;set services service-interface-pools pool int-pool-1 pool sp-1/2/0.40;set services service-interface-pools pool int-pool-2 pool sp-1/2/1.10;set services service-interface-pools pool int-pool-2 pool sp-1/2/1.20;set services pgcp gateway bgf-1 gateway-address 172.16.10.1set services pgcp gateway bgf-1 gateway-port 2944set services pgcp gateway bgf-1 cleanup-timeout 3600set services pgcp gateway bgf-2 gateway-address 172.16.20.2set services pgcp gateway bgf-2 gateway-port 2944set services pgcp gateway bgf-2 cleanup-timeout 3600set services pgcp gateway bgf-3 gateway-address 172.16.30.3set services pgcp gateway bgf-3 gateway-port 2944set services pgcp gateway bgf-3 cleanup-timeout 3600set services pgcp gateway bgf-1 gateway-controller gc-1 controller-address 33.0.0.1set services pgcp gateway bgf-1 gateway-controller gc-1 controller-port 2944set services pgcp gateway bgf-1 gateway-controller gc-1 interim-ah-scheme algorithm hmac-nullset services pgcp gateway bgf-2 gateway-controller gc-1 controller-address 33.0.0.1set services pgcp gateway bgf-2 gateway-controller gc-1 controller-port 2944set services pgcp gateway bgf-2 gateway-controller gc-1 interim-ah-scheme algorithm hmac-nullset services pgcp gateway bgf-3 gateway-controller gc-1 controller-address 33.0.0.1set services pgcp gateway bgf-3 gateway-controller gc-1 controller-port 2944set services pgcp gateway bgf-3 gateway-controller gc-1 interim-ah-scheme algorithm hmac-nullset services nat pool bgf1_peer_rtp-nat-pool-1 address 11.0.0.5set services nat pool bgf1_peer_rtp-nat-pool-1 port automaticset services nat pool bgf1_peer_rtp-nat-pool-1 pgcpset services nat pool bgf1_peer_rtp-nat-pool-1 pgcp ports-per-session 2set services nat pool bgf2_peer_rtp-nat-pool-2 address 11.0.0.25set services nat pool bgf2_peer_rtp-nat-pool-2 port automaticset services nat pool bgf2_peer_rtp-nat-pool-2 pgcpset services nat pool bgf2_peer_rtp-nat-pool-2 pgcp ports-per-session 2set services nat pool bgf3_peer_rtp-nat-pool-3 address 2001:db8:10:3::100/128set services nat pool bgf3_peer_rtp-nat-pool-3 port automaticset services nat pool bgf3_peer_rtp-nat-pool-3 pgcpset services nat pool bgf3_peer_rtp-nat-pool-3 pgcp ports-per-session 2set services nat pool bgf1_core_rtp-nat-pool-4 address 10.0.0.5set services nat pool bgf1_core_rtp-nat-pool-4 port automaticset services nat pool bgf1_core_rtp-nat-pool-4 pgcpset services nat pool bgf1_core_rtp-nat-pool-4 pgcp ports-per-session 2set services nat pool bgf2_core_rtp-nat-pool-5 address 10.0.0.25set services nat pool bgf2_core_rtp-nat-pool-5 port automaticset services nat pool bgf2_core_rtp-nat-pool-5 pgcpset services nat pool bgf2_core_rtp-nat-pool-5 pgcp ports-per-session 4set services nat pool bgf3_core_rtp-nat-pool-6 address 2001:db8:13:2::100/128set services nat pool bgf3_core_rtp-nat-pool-6 port automaticset services nat pool bgf3_core_rtp-nat-pool-6 pgcpset services nat pool bgf3_core_rtp-nat-pool-6 pgcp ports-per-session 2set services nat pool vgp1_peer_sip-nat-pool-7 address 11.0.0.2set services nat pool vgp1_peer_sip-nat-pool-7 port range low 10000 high 50000set services nat pool vgp1_peer_sip-nat-pool-7 pgcpset services nat pool vgp1_peer_sip-nat-pool-7 pgcp remotely-controlledset services nat pool vgp1_peer_sip-nat-pool-7 pgcp ports-per-session 2set services nat pool bgf1_core_sip-nat-pool-8 address 10.0.0.2set services nat pool bgf1_core_sip-nat-pool-8 port range low 10000 high 50000set services nat pool bgf1_core_sip-nat-pool-8 pgcpset services nat pool bgf1_core_sip-nat-pool-8 pgcp remotely-controlledset services nat pool bgf1_core_sip-nat-pool-8 pgcp ports-per-session 2set services pgcp media-service bgf1_peer_rtp_ms1 nat-pool bgf1_peer_rtp-nat-pool-1set services pgcp media-service bgf1_core_rtp_ms4 nat-pool bgf1_core_rtp-nat-pool-4set services pgcp media-service bgf1_peer_sip_ms7 nat-pool bgf1_peer_sip-nat-pool-7set services pgcp media-service bgf1_core_sip_ms8 nat-pool bgf1_core_sip-nat-pool-8set services pgcp media-service bgf2_peer_rtp_ms2 nat-pool bgf2_peer_rtp-nat-pool-2set services pgcp media-service bgf2_core_rtp_ms5 nat-pool bgf2_core_rtp-nat-pool-5set services pgcp media-service bgf3_peer_rtp_ms3 nat-pool bgf3_peer_rtp-nat-pool-3set services pgcp media-service bgf3_core_rtp_ms6 nat-pool bgf3_core_rtp-nat-pool-6set services pgcp virtual-interface 1 media-service bgf1_core_rtp_ms4set services pgcp virtual-interface 1 media-service bgf1_core_sip_ms8set services pgcp virtual-interface 1 media-service bgf2_core_rtp_ms5set services pgcp virtual-interface 1 media-service bgf3_core_rtp_ms6set services pgcp virtual-interface 2 media-service bgf1_peer_rtp_ms1set services pgcp virtual-interface 2 media-service bgf1_peer_sip_ms7set services pgcp virtual-interface 2 media-service bgf2_peer_rtp_ms2set services pgcp virtual-interface 2 media-service bgf3_peer_rtp_ms3set services pgcp rule bgf-rule1 gateway bgf-1 media-service bgf1_peer_rtp_ms1set services pgcp rule bgf-rule1 gateway bgf-1 media-service bgf1_peer_sip_ms7set services pgcp rule bgf-rule1 gateway bgf-1 media-service bgf1_core_rtp_ms4 set services pgcp rule bgf-rule1 gateway bgf-1 media-service bgf1_core_sip_ms8set services pgcp rule bgf-rule2 gateway bgf-2 media-service bgf2_peer_rtp_ms2set services pgcp rule bgf-rule2 gateway bgf-2 media-service bgf2_core_rtp_ms5set services pgcp rule bgf-rule3 gateway bgf-3 media-service bgf3_peer_rtp_ms3set services pgcp rule bgf-rule3 gateway bgf-3 media-service bgf3_core_rtp_ms6 set services stateful-firewall rule r1 match-direction input-output term t1 then rejectset services service-set bgf1-svc-set pgcp-rules bgf-rule1set services service-set bgf1-svc-set stateful-firewall-rules r1set services service-set bgf1-svc-set next-hop-service service-interface-pool int-pool-1set services service-set bgf1-svc-set syslog host local-1 services anyset services service-set bgf2-svc-set pgcp-rules bgf-rule2set services service-set bgf2-svc-set stateful-firewall-rules r1set services service-set bgf2-svc-set next-hop-service service-interface-pool int-pool-2set services service-set bgf2-svc-set syslog host local-1 services anyset services service-set bgf3-svc-set pgcp-rules bgf-rule3set services service-set bgf3-svc-set stateful-firewall-rules r1set services service-set bgf3-svc-set next-hop-service service-interface-pool int—pool—1set services service-set bgf3-svc-set syslog host local-1 services any set services pgcp gateway bgf-1 h248-properties diffserv default dscp 0x1D

Configuring the Service Interfaces

CLI Quick Configuration

To quickly configure the service interfaces, copy the following commands and paste them into the router terminal window:

[edit interfaces]set sp-1/2/0 description bgf1_bgf2_pgcp_service_ipv4set sp-1/2/0 unit 0 family inetset sp-1/2/0 unit 10 family inetset sp-1/2/0 unit 20 family inetset sp-1/2/0 unit 30 family inetset sp-1/2/0 unit 40 family inetset sp-1/2/0 traceoptions flag allset sp-1/2/0 services-options syslog host local services anyset sp-1/2/1 description bgf3_pgcp_service_ipv6set sp-1/2/1 unit 0 family inet6set sp-1/2/1 unit 10 family inet6set sp-1/2/1 unit 20 family inet6set sp-1/2/1 traceoptions flag allset sp-1/2/1 services-options syslog host local services any

Configuring the Service Interface

Step-by-Step Procedure

To configure the service interface:

  1. Create the interface, and enter edit mode for the interface.
    [edit interfaces]user@sp-bgf-router# edit sp-1/2/0
  2. Configure an IPv4 service interface for BGF–1 and BGF–2.
    [edit interfaces sp-1/2/0]user@sp-bgf-router# set description bgf1_bgf2_pgcp_service_ipv4user@sp-bgf-router# set unit 0 family inetuser@sp-bgf-router# set unit 10 family inetuser@sp-bgf-router# set unit 20 family inetuser@sp-bgf-router# set unit 30 family inetuser@sp-bgf-router# set unit 40 family inetuser@sp-bgf-router# set traceoptions flag alluser@sp-bgf-router# set services-options syslog host local services any
  3. Configure an IPv6 service interface for BGF–3.
    [edit interfaces sp-1/2/1]user@sp-bgf-router# set sp-1/2/1 description bgf3_pgcp_service_ipv6user@sp-bgf-router# set sp-1/2/1 unit 0 family inet6user@sp-bgf-router# set sp-1/2/1 unit 10 family inet6user@sp-bgf-router# set sp-1/2/1 unit 20 family inet6user@sp-bgf-router# set sp-1/2/1 traceoptions flag alluser@sp-bgf-router# set sp-1/2/1 services-options syslog host local services any

Results

Display the results of the configuration.

[edit interfaces]user@sp-bgf-router# showsp-1/2/0 {description bgf1_bgf2_pgcp_service_ipv4;traceoptions {flag all;}services-options {syslog {host local {services any;}}}unit 0 {family inet;}unit 10 {family inet;}unit 20 {family inet;}unit 30 {family inet;}unit 40 {family inet;}}sp-1/2/1 {description bgf3_pgcp_service_ipv6;traceoptions {flag all;}services-options {syslog {host local {services any;}}}unit 0 {family inet6;}unit 10 {family inet6;}unit 20 {family inet6;}}

Configuring the Virtual BGFs

CLI Quick Configuration

To quickly configure the virtual BGFs, copy the following commands and paste them into the router terminal window:

[edit services pgcp]set gateway bgf-1 gateway-address 172.16.10.1set gateway bgf-1 gateway-port 2944set gateway bgf-1 cleanup-timeout 3600set gateway bgf-1 gateway-controller gc-1 controller-address 33.0.0.1set gateway bgf-1 gateway-controller gc-1 controller-port 2944set gateway bgf-1 gateway-controller gc-1 interim-ah-scheme algorithm hmac-nullset gateway bgf-2 gateway-address 172.16.20.2set gateway bgf-2 gateway-port 2944set gateway bgf-2 cleanup-timeout 3600set gateway bgf-2 gateway-controller gc-1 controller-address 33.0.0.1set gateway bgf-2 gateway-controller gc-1 controller-port 2944set gateway bgf-2 gateway-controller gc-1 interim-ah-scheme algorithm hmac-nullset gateway bgf-3 gateway-address 172.16.30.3set gateway bgf-3 gateway-port 2944set gateway bgf-3 cleanup-timeout 3600set gateway bgf-3 gateway-controller gc-1 controller-address 33.0.0.1set gateway bgf-3 gateway-controller gc-1 controller-port 2944set gateway bgf-3 gateway-controller gc-1 interim-ah-scheme algorithm hmac-null

Step-by-Step Procedure

To configure the virtual BGFs:

  1. Configure BGF-1.
    [edit services pgcp]user@sp-bgf-router# edit gateway bgf-1 [edit services pgcp gateway bgf-1]user@sp-bgf-router# set gateway-address 172.16.10.1user@sp-bgf-router# set gateway-port 2944user@sp-bgf-router# set cleanup-timeout 3600user@sp-bgf-router# set gateway-controller gc-1 controller-address 33.0.0.1user@sp-bgf-router# set gateway-controller gc-1 controller-port 2944user@sp-bgf-router# set gateway-controller gc-1 interim-ah-scheme algorithm hmac-null
  2. Configure BGF-2.
    [edit services pgcp]user@sp-bgf-router# edit gateway bgf-2 [edit services pgcp gateway bgf-2]user@sp-bgf-router# set gateway-address 172.16.20.2user@sp-bgf-router# set gateway-port 2944user@sp-bgf-router# set cleanup-timeout 3600user@sp-bgf-router# set gateway-controller gc-1 controller-address 33.0.0.1user@sp-bgf-router# set gateway-controller gc-1 controller-port 2944user@sp-bgf-router# set gateway-controller gc-1 interim-ah-scheme algorithm hmac-null
  3. Configure BGF-3.
    [edit services pgcp]user@sp-bgf-router# edit gateway bgf-3 [edit services pgcp gateway bgf-3]user@sp-bgf-router# set gateway-address 172.16.30.3user@sp-bgf-router# set gateway-port 2944user@sp-bgf-router# set cleanup-timeout 3600user@sp-bgf-router# set gateway-controller gc-1 controller-address 33.0.0.1user@sp-bgf-router# set gateway-controller gc-1 controller-port 2944user@sp-bgf-router# set gateway-controller gc-1 interim-ah-scheme algorithm hmac-null

Configuring NAT Pools

CLI Quick Configuration

To quickly configure the NAT pools, copy the following commands and paste them into the router terminal window:

[edit services nat]set pool bgf1_peer_rtp-nat-pool-1 address 11.0.0.5set pool bgf1_peer_rtp-nat-pool-1 port automaticset pool bgf1_peer_rtp-nat-pool-1 pgcpset pool bgf1_peer_rtp-nat-pool-1 pgcp ports-per-session 2set pool bgf2_peer_rtp-nat-pool-2 address 11.0.0.25set pool bgf2_peer_rtp-nat-pool-2 port automaticset pool bgf2_peer_rtp-nat-pool-2 pgcpset pool bgf2_peer_rtp-nat-pool-2 pgcp ports-per-session 2set pool bgf3_peer_rtp-nat-pool-3 address 2001:db8:10:3::100/128set pool bgf3_peer_rtp-nat-pool-3 port automaticset pool bgf3_peer_rtp-nat-pool-3 pgcpset pool bgf3_peer_rtp-nat-pool-3 pgcp ports-per-session 2set pool bgf1_core_rtp-nat-pool-4 address 10.0.0.5set pool bgf1_core_rtp-nat-pool-4 port automaticset pool bgf1_core_rtp-nat-pool-4 pgcpset pool bgf1_core_rtp-nat-pool-4 pgcp ports-per-session 2set pool bgf2_core_rtp-nat-pool-5 address 10.0.0.25set pool bgf2_core_rtp-nat-pool-5 port automaticset pool bgf2_core_rtp-nat-pool-5 pgcpset pool bgf2_core_rtp-nat-pool-5 pgcp ports-per-session 4set pool bgf3_core_rtp-nat-pool-6 address 2001:db8:13:2::100/128set pool bgf3_core_rtp-nat-pool-6 port automaticset pool bgf3_core_rtp-nat-pool-6 pgcpset pool bgf3_core_rtp-nat-pool-6 pgcp ports-per-session 2set pool vgp1_peer_sip-nat-pool-7 address 11.0.0.2set pool vgp1_peer_sip-nat-pool-7 port range low 10000 high 50000set pool vgp1_peer_sip-nat-pool-7 pgcpset pool vgp1_peer_sip-nat-pool-7 pgcp remotely-controlledset pool vgp1_peer_sip-nat-pool-7 pgcp ports-per-session 2set pool bgf1_core_sip-nat-pool-8 address 10.0.0.2set pool bgf1_core_sip-nat-pool-8 port range low 10000 high 50000set pool bgf1_core_sip-nat-pool-8 pgcpset pool bgf1_core_sip-nat-pool-8 pgcp remotely-controlledset pool bgf1_core_sip-nat-pool-8 pgcp ports-per-session 2

Step-by-Step Procedure

To configure NAT pools:

  1. Create a media (RTP) NAT pool for BGF-1 for the access (peering) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf1_peer_rtp-nat-pool-1 [edit services nat pool bgf1_peer_rtp-nat-pool-1]user@sp-bgf-router# set address 11.0.0.5user@sp-bgf-router# set port automaticuser@sp-bgf-router# set pgcpuser@sp-bgf-router# set pool pg1_peer_rtp-nat-pool-1 pgcp ports-per-session 2
  2. Create a media (RTP) NAT pool for BGF-2 for the access (peering) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf2_peer_rtp-nat-pool-2[edit services nat pool bgf2_peer_rtp-nat-pool-2]user@sp-bgf-router# set address 11.0.0.25user@sp-bgf-router# set port automaticuser@sp-bgf-router# set pgcpuser@sp-bgf-router# set pgcp ports-per-session 2
  3. Create a media (RTP) NAT pool for BGF-3 for the access (peering) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf3_peer_rtp-nat-pool-3[edit services nat pool bgf3_peer_rtp-nat-pool-3]user@sp-bgf-router# set address 2001:db8:10:3::100/128user@sp-bgf-router# set port automaticuser@sp-bgf-router# set pgcpuser@sp-bgf-router# set pgcp ports-per-session 2
  4. Create a media (RTP) NAT pool for BGF-1 for the backbone (service provider) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf1_core_rtp-nat-pool-4 [edit services nat pool bgf1_core_rtp-nat-pool-4]user@sp-bgf-router# set address 10.0.0.5user@sp-bgf-router# set port automaticuser@sp-bgf-router# set pgcpuser@sp-bgf-router# set pgcp ports-per-session 2
  5. Create a media (RTP) NAT pool for BGF-2 for the backbone (service provider) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf2_core_rtp-nat-pool-5[edit services nat pool bgf2_core_rtp-nat-pool-5]user@sp-bgf-router# set address 10.0.0.25user@sp-bgf-router# set port automaticuser@sp-bgf-router# set pgcpuser@sp-bgf-router# set ports-per-session 4
  6. Create a media (RTP) NAT pool for BGF-3 for the backbone (service provider) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf3_core_rtp-nat-pool-6[edit services nat pool bgf3_core_rtp-nat-pool-6]user@sp-bgf-router# set address 2001:db8:13:2::100/128user@sp-bgf-router# set port automaticuser@sp-bgf-router# set pgcpuser@sp-bgf-router# set pgcp ports-per-session 2
  7. Configure a signaling (SIP) NAT pool for BGF-1 for the access (peering) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool vgp1_peer_sip-nat-pool-7 [edit services nat pool vgp1_peer_sip-nat-pool-7]user@sp-bgf-router# set address 11.0.0.2user@sp-bgf-router# set port range low 10000 high 50000user@sp-bgf-router# set pgcpuser@sp-bgf-router# set pgcp remotely-controlleduser@sp-bgf-router# set ports-per-session 2
  8. Configure a signaling (SIP) NAT pool for the backbone (service provider) side of the network.
    [edit services nat]user@sp-bgf-router# edit pool bgf1_core_sip-nat-pool-8[edit services nat pool bgf1_core_sip-nat-pool-8]user@sp-bgf-router# set address 10.0.0.2user@sp-bgf-router# set port range low 10000 high 50000user@sp-bgf-router# set pgcpuser@sp-bgf-router# set pgcp remotely-controlleduser@sp-bgf-router# set pgcp ports-per-session 2

Results

Display the results of the configuration:

[edit services nat]user@sp-bgf-router# showpool bgf1_peer_rtp-nat-pool-1 {pgcp {ports-per-session 2;}address 11.0.0.5/32;port automatic;}pool bgf2_peer_rtp-nat-pool-2 {pgcp {ports-per-session 2;}address 11.0.0.25/32;port automatic;}pool bgf3_peer_rtp-nat-pool-3 {pgcp {ports-per-session 2;}address 2001:db8:10:3::100/128;port automatic;}pool bgf1_core_rtp-nat-pool-4 {pgcp {ports-per-session 2;}address 10.0.0.5/32;port automatic;}pool bgf2_core_rtp-nat-pool-5 {pgcp {ports-per-session 4;}address 10.0.0.25/32;port automatic;}pool bgf3_core_rtp-nat-pool-6 {pgcp {ports-per-session 2;}address 2001:db8:13:2::100/128;port automatic;}pool vgp1_peer_sip-nat-pool-7 {pgcp {remotely-controlled;ports-per-session 2;}address 11.0.0.2/32;port range low 10000 high 50000;}pool bgf1_core_sip-nat-pool-8 {pgcp {remotely-controlled;ports-per-session 2;}address 10.0.0.2/32;port range low 10000 high 50000;}

Assigning NAT Pools to a Media Service

CLI Quick Configuration

To quickly create media services and assign NAT pools to a media service, copy the following commands and paste them into the router terminal window:

[edit services pgcp]set media-service bgf1_peer_rtp_ms1 nat-pool bgf1_peer_rtp-nat-pool-1set media-service bgf1_core_rtp_ms4 nat-pool bgf1_core_rtp-nat-pool-4set media-service bgf1_peer_sip_ms7 nat-pool bgf1_peer_sip-nat-pool-7set media-service bgf1_core_sip_ms8 nat-pool bgf1_core_sip-nat-pool-8set media-service bgf2_peer_rtp_ms2 nat-pool bgf2_peer_rtp-nat-pool-2set media-service bgf2_core_rtp_ms5 nat-pool bgf2_core_rtp-nat-pool-5set media-service bgf3_peer_rtp_ms3 nat-pool bgf3_peer_rtp-nat-pool-3set media-service bgf3_core_rtp_ms6 nat-pool bgf3_core_rtp-nat-pool-6

Step-by-Step Procedure

To configure a media service:

  1. Configure media services for each of the NAT pools for BGF-1.
    [edit services pgcp]user@sp-bgf-router# set media-service bgf1_peer_rtp_ms1 nat-pool bgf1_peer_rtp-nat-pool-1user@sp-bgf-router# set media-service bgf1_core_rtp_ms4 nat-pool bgf1_core_rtp-nat-pool-4user@sp-bgf-router# set media-service bgf1_peer_sip_ms7 nat-pool vgp1_peer_sip-nat-pool-7user@sp-bgf-router# set media-service bgf1_core_sip_ms8 nat-pool bgf1_core_sip-nat-pool-8
  2. Configure a media service for each of the NAT pools for BGF-2.
    [edit services pgcp]user@sp-bgf-router# set media-service bgf2_peer_rtp_ms2 nat-pool bgf2_peer_rtp-nat-pool-2user@sp-bgf-router# set media-service bgf2_core_rtp_ms5 nat-pool bgf2_core_rtp-nat-pool-5
  3. Configure media services for each of the NAT pools for BGF-3.
    [edit services pgcp]user@sp-bgf-router# set media-service bgf3_peer_rtp_ms3 nat-pool bgf3_peer_rtp-nat-pool-3user@sp-bgf-router# set media-service bgf3_core_rtp_ms6 nat-pool bgf3_core_rtp-nat-pool-6

Results

Display the results of the configuration.

[edit services pgcp]user@sp-bgf-router# show...media-service bgf1_peer_rtp_ms1 {nat-pool bgf1_peer_rtp-nat-pool-1;}media-service bgf1_core_rtp_ms4 {nat-pool bgf1_core_rtp-nat-pool-4;}media-service bgf2_peer_rtp_ms2 {nat-pool bgf2_peer_rtp-nat-pool-2;}media-service bgf2_core_rtp_ms5 {nat-pool bgf2_core_rtp-nat-pool-5;}media-service bgf3_peer_rtp_ms3 {nat-pool bgf3_peer_rtp-nat-pool-3;}media-service bgf3_core_rtp_ms6 {nat-pool bgf3_core_rtp-nat-pool-6;}media-service bgf1_peer_sip_ms7 {nat-pool bgf1_peer_sip-nat-pool-7;}media-service bgf1_core_sip_ms8 {nat-pool bgf1_core_sip-nat-pool-8;}## Warning: missing mandatory statement(s): 'virtual-interface'

Configuring the Virtual Interfaces

CLI Quick Configuration

To quickly configure the virtual interfaces, copy the following commands and paste them into the router terminal window:

[edit services pgcp]set virtual-interface 1 media-service bgf1_core_rtp_ms4set virtual-interface 1 media-service bgf1_core_sip_ms8set virtual-interface 1 media-service bgf2_core_rtp_ms5set virtual-interface 1 media-service bgf3_core_rtp_ms6set virtual-interface 2 media-service bgf1_peer_rtp_ms1set virtual-interface 2 media-service bgf1_peer_sip_ms7set virtual-interface 2 media-service bgf2_peer_rtp_ms2set virtual-interface 2 media-service bgf3_peer_rtp_ms3

Step-by-Step Procedure

To configure a virtual interface:

  1. Create a virtual interface for the backbone (service provider) side of the network. Specify the names of the media services that contains the NAT pool to be used for gates on the virtual interface that you are configuring.
    [edit services pgcp]edit virtual-interface 1[edit services pgcp virtual-interface 1]user@sp-bgf-router# set media-service bgf1_core_rtp_ms4user@sp-bgf-router# set media-service bgf1_core_sip_ms8user@sp-bgf-router# set media-service bgf2_core_rtp_ms5user@sp-bgf-router# set media-service bgf3_core_rtp_ms6
  2. Create a virtual interface for the access (peering) side of the network. Specify the names of the media services that contains the NAT pool to be used for gates on the virtual interface that you are configuring.
    [edit services pgcp]edit virtual-interface 2[edit services pgcp virtual-interface 2]user@sp-bgf-router# set media-service bgf1_peer_rtp_ms1user@sp-bgf-router# set media-service bgf1_peer_sip_ms7user@sp-bgf-router# set media-service bgf2_peer_rtp_ms2user@sp-bgf-router# set media-service bgf3_peer_rtp_ms3

Results

Display the results of the configuration.

[edit services pgcp virtual-interface 1]user@sp-bgf-router# showvirtual-interface 1 {media-service [ bgf1_core_rtp_ms4 bgf1_core_sip_ms8 bgf2_core_rtp_ms5 bgf3_core_rtp_ms6 ];}virtual-interface 2 {media-service [ bgf1_peer_rtp_ms1 bgf1_peer_sip_ms7 bgf2_peer_rtp_ms2 bgf3_peer_rtp_ms3 ];}

Configuring Rules for the BGF

CLI Quick Configuration

To quickly define the rules, copy the following commands and paste them into the router terminal window:

[edit services pgcp]set rule bgf-rule1 gateway bgf-1 media-service bgf1_peer_rtp_ms1set rule bgf-rule1 gateway bgf-1 media-service bgf1_peer_sip_ms7set rule bgf-rule1 gateway bgf-1 media-service bgf1_core_rtp_ms4 set rule bgf-rule1 gateway bgf-1 media-service bgf1_core_sip_ms8set rule bgf-rule2 gateway bgf-2 media-service bgf2_peer_rtp_ms2set rule bgf-rule2 gateway bgf-2 media-service bgf2_core_rtp_ms5set rule bgf-rule3 gateway bgf-3 media-service bgf3_peer_rtp_ms3set rule bgf-rule3 gateway bgf-3 media-service bgf3_core_rtp_ms6

Step-by-Step Procedure

To configure the rules for the BGF:

  1. Create a rule for BGF-1, and specify the media services that contains the NAT pools to be used for this virtual BGF.
    [edit services pgcp]user@sp-bgf-router# edit rule bgf-rule1[edit services pgcp rule bgf-rule1]user@sp-bgf-router# set gateway bgf-1 user@sp-bgf-router# set media-service bgf1_peer_rtp_ms1user@sp-bgf-router# set media-service bgf1_peer_sip_ms7user@sp-bgf-router# set media-service bgf1_core_rtp_ms4 user@sp-bgf-router# set media-service bgf1_core_sip_ms8
  2. Create a rule for BGF-2, and specify the media services that contains the NAT pools to be used for this virtual BGF.
    [edit services pgcp]user@sp-bgf-router# edit rule bgf-rule2[edit services pgcp rule bgf-rule2]user@sp-bgf-router# set gateway bgf-2user@sp-bgf-router# set media-service bgf2_peer_rtp_ms2user@sp-bgf-router# set media-service bgf2_core_rtp_ms5
  3. Create a rule for BGF-3, and specify the media services that contains the NAT pools to be used for this virtual BGF.
    [edit services pgcp]user@sp-bgf-router# edit rule bgf-rule3[edit services pgcp rule bgf-rule3]user@sp-bgf-router# set gateway bgf-3set rule bgf-rule3 gateway bgf-3 media-service bgf3_peer_rtp_ms3set rule bgf-rule3 gateway bgf-3 media-service bgf3_core_rtp_ms6

Results

Display the results of the configuration.

[edit services pgcp]user@sp-bgf-router# show. . .rule bgf-rule1 {gateway bgf-1;media-service [ bgf1_peer_rtp_ms1 bgf1_peer_sip_ms7 bgf1_core_rtp_ms4 bgf1_core_sip_ms8 ];}rule bgf-rule2 {gateway bgf-2;media-service [ bgf2_peer_rtp_ms2 bgf2_core_rtp_ms5 ];}rule bgf-rule3 {gateway bgf-3;media-service [ bgf3_peer_rtp_ms3 bgf3_core_rtp_ms6 ];}

Configuring a Stateful Firewall

CLI Quick Configuration

To quickly define the rules, copy the following commands and paste them into the router terminal window:

[edit services stateful-firewall]set rule r1 match-direction input-outputset rule r1 term t1 then reject

Step-by-Step Procedure

To create a stateful firewall:

  1. Create a stateful firewall rule.
    [edit services stateful-firewall]user@host# edit rule r1
  2. Set the match direction for the rule.
    [edit services stateful-firewall rule r1]user@host# set match-direction input-output
  3. Add a term to the rule with the action set to reject.
    [edit services stateful-firewall rule r1]user@host# set term t1 then reject

Results

Display the results of the configuration.

[edit services stateful-firewall]user@sp-bgf-router# showrule r1 {match-direction input-output;term t1 {then {reject;}}}

Configuring a Service Set

CLI Quick Configuration

To quickly define a service set, copy the following commands and paste them into the router terminal window:

[edit services]set service-set bgf1-svc-set pgcp-rules bgf-rule1set service-set bgf1-svc-set stateful-firewall-rules r1set service-set bgf1-svc-set next-hop-service service-interface-pool int–pool–1set service-set bgf1-svc-set syslog host local-1 services anyset service-set bgf2-svc-set pgcp-rules bgf-rule2set service-set bgf2-svc-set stateful-firewall-rules r1set service-set bgf2-svc-set next-hop-service service-interface-pool int-pool-2set service-set bgf2-svc-set syslog host local-1 services anyset service-set bgf3-svc-set pgcp-rules bgf-rule3set service-set bgf3-svc-set stateful-firewall-rules r1set service-set bgf3-svc-set next-hop-service service-interface-pool int-pool–3set service-set bgf3-svc-set syslog host local-1 services any

Step-by-Step Procedure

To configure the service sets:

  1. Configure a service set for bgf-1.
    [edit services]user@sp-bgf-router# edit service-set bgf1-svc-set
    [edit services service-set bgf1-svc-set]user@sp-bgf-router# set pgcp-rules bgf-rule1user@sp-bgf-router# set stateful-firewall-rules r1 user@sp-bgf-router# set next-hop-service service-interface-pool int-pool–1 user@sp-bgf-router# set syslog host local-1 services any
  2. Configure a service set for BGF-2.
    [edit services]user@sp-bgf-router# edit service-set bgf2-svc-set [edit services service-set bgf2-svc-set]user@sp-bgf-router# set pgcp-rules bgf-rule2user@sp-bgf-router# set stateful-firewall-rules r1 user@sp-bgf-router# set next-hop-service service-interface-pool int-pool–2user@sp-bgf-router# set syslog host local-1 services any
  3. Configure a service set for BGF-3.
    [edit services]user@sp-bgf-router# edit service-set bgf3-svc-set [edit services service-set bgf3-svc-set]user@sp-bgf-router# set pgcp-rules bgf-rule3user@sp-bgf-router# set stateful-firewall-rules r1 user@sp-bgf-router# set next-hop-service service-interface-pool int-pool–3 user@sp-bgf-router# set syslog host local-1 services any

Results

[edit services]user@sp-bgf-router# show service-set bgf1-svc-set syslog {host local-1 {services any;}}stateful-firewall-rules r1;pgcp-rules bgf-rule1;next-hop-service {service-interface-pool int-pool-1}
[edit services]user@sp-bgf-router# show service-set bgf2-svc-set syslog {host local-1 {services any;}}stateful-firewall-rules r1;pgcp-rules bgf-rule2;next-hop-service {service-interface-pool int-pool-1}
[edit services]user@sp-bgf-router# show service-set bgf3-svc-set syslog {host local-1 {services any;}}stateful-firewall-rules r1;pgcp-rules bgf-rule3;next-hop-service {service-interface-pool int-pool-1}

Configuring QoS for Voice Calls

CLI Quick Configuration

To quickly configure a default value for the Differentiated Services (DiffServ) code point (DSCP), copy the following command and paste it into the router terminal window:

[edit services pgcp]set gateway bgf-1 h248-properties diffserv dscp default 0x1D

Step-by-Step Procedure

To configure default values for H.248 DiffServ properties:

  1. Access the configuration of the H.248 DiffServ properties.
    [edit services pgcp gateway bgf-1]user@sp-bgf-router# edit h248-properties diffserv
  2. Configure a value for the DSCP.
    [edit services pgcp gateway bgf-1 h248-properties diffserv]user@sp-bgf-router# set dscp default 0x1D

Results

Display results of the configuration.

[edit services pgcp gateway bgf-1 h248-properties diffserv]user@sp-bgf-router# showdscp { default 0x1D;

Verification

To confirm that the configuration is working properly, perform these tasks:

Verifying the Active BGF Configuration

Purpose

Verify the active BGF configuration that is running on your router.

Action


user@sp-bgf-router> show services pgcp active-configuration gateway *
Packet gateway media service configuration:
 Media service name: bgf1_peer_rtp_ms1
  Nat pool             :  bgf1_peer_rtp-nat-pool-1

Packet gateway media service configuration:
 Media service name: bgf2_peer_rtp_ms2
  Nat pool             :  bgf2_peer_rtp-nat-pool-2

Packet gateway media service configuration:
 Media service name: bgf3_peer_rtp_ms3
  Nat pool             :  bgf3_peer_rtp-nat-pool-3

Packet gateway media service configuration:
 Media service name: bgf1_core_rtp_ms4
  Nat pool             :  bgf1_core_rtp-nat-pool-4

Packet gateway media service configuration:
 Media service name: bgf2_core_rtp_ms5
  Nat pool             :  core_rtp-nat-pool-5

Packet gateway media service configuration:
 Media service name:  bgf3_core_rtp_ms6
  Nat pool             :  bgf3_core_rtp-nat-pool-6

Packet gateway media service configuration:
 Media service name: bgf1_peer_sip_ms7
  Nat pool             :  bgf1_peer_sip-nat-pool-7

Packet gateway media service configuration:
 Media service name: bgf1_core_sip_ms8
  Nat pool             :  bgf1_core_sip-nat-pool-8

 Packet gateway virtual interface configuration:
  Virtual Interface name: 1
  Status               :  In-Service
  Media Service Name   :  bgf1_core_rtp_ms4
  Media Service Name   :  bgf1_core_sip_ms8
  Media Service Name   :  bgf2_core_rtp_ms5 
  Media Service Name   :  bgf2_core_rtp_ms5

 Packet gateway virtual interface configuration:
  Virtual Interface name: 2
  Status               :  In-Service
  Media Service Name   :  bgf1_peer_rtp_ms1
  Media Service Name   :  bgf1_peer_sip_ms7
  Media Service Name   :  bgf2_peer_rtp_ms2 
  Media Service Name   :  bgf3_peer_rtp_ms3

Virtual BGF configuration:
  Name                                     :  bgf-1
  IP address                               :  172.16.10.1
  Port                                     :  2944
  Status                                   :  In-Service (Registered)
  Active gateway controller                :  gc–1
  Replication socket                       :  Connected (Syncing)
  Cleanup timeout [secs]                   :  3600
  Gate inactivity delay [secs]             :  240
  Gate inactivity duration (Q-MI ) [secs]  :  86400
  Latching Deadlock duration [secs]        : 15

Virtual BGF configuration:
  Name                                     :  bgf-2
  IP address                               :  172.16.20.2
  Port                                     :  2944
  Status                                   :  In-Service (Disconnected)
  Active gateway controller                :    
  Replication socket                       :  Connected (Syncing)
  Cleanup timeout [secs]                   :  3600
  Gate inactivity delay [secs]             :  240
  Gate inactivity duration (Q-MI ) [secs]  :  86400
  Latching Deadlock duration [secs]        : 15

Virtual BGF configuration:
  Name                                     :  bgf-3
  IP address                               :  172.16.30.3
  Port                                     :  2944
  Status                                   :  In-Service (Disconnected)
  Active gateway controller                :  
  Replication socket                       :  Connected (Syncing)
  Cleanup timeout [secs]                   :  3600
  Gate inactivity delay [secs]             :  240
  Gate inactivity duration (Q-MI ) [secs]  :  86400
  Latching Deadlock duration [secs]        : 15

H248 timers configuration:
 Max waiting delay (MWD) [millisec]          :  10000
 Max retransmission delay (T-MAX) [millisec] :  25000
 Initial average ack delay (I-AAD) [millisec]:  1000
 Max net propagation delay (M-NPD) [millisec]:  5000

H248 options configuration:
 Wildcard response service-change        :  NO

H248 diffserv configuration:
 dscp          :  0x00

H248 segmentation        :               minimum        maximum        default
  MG segmentation timer [millisec]         :  500          30000          4000
  MG maximum PDU size [bytes]              :  512          65507          1472
  MGC segmentation timer [millisec]        :  500          30000          4000
  MGC maximum PDU size [bytes]             :  512          65507          1472

H248 base root           :                    minimum     maximum      default
  Normal MG execution time [millisec]      :  500           29000          500
  MG Provisional response timer [millisec] :  500           30000         2000
  MG Originated pending limit              :  1               512            4
  Normal MGC execution time [millisec]     :  500           29000          500
  MGC Provisional response timer [millisec]:  500           30000         4000
  MGC Originated pending limit             :  1               512            4

Fast update filters:
 Maximum terms              : 20000
 Maximum term percentage    : 10

Packet gateway controller configuration:
 Controller name                   :  gc-1
 Controller IP address             :  33.0.0.1
 Controller port                   :  2944

Packet gateway rule configuration:
 Rule name            :  bgf-rule1
 Gateway name         :  bgf-1

Packet gateway rule configuration:
 Rule name            :  bgf-rule2
 Gateway name         :  bgf-2

Packet gateway rule configuration:
 Rule name            :  bgf-rule3
 Gateway name         :  bgf-3

Packet gateway service set configuration:
 Service set name     :  bgf1-svc-set
 Service set id       :  1
 Rule name            :  bgf-rule1

Packet gateway service set configuration:
 Service set name     :  bgf2-svc-set
 Service set id       :  2
 Rule name            :  bgf-rule2

Packet gateway service set configuration:
 Service set name     :  bgf3-svc-set
 Service set id       :  3
 Rule name            :  bgf-rule3

Packet gateway service pics status:
 Name    : sp-1/2/0
 Status  : Connected

Packet gateway service pics status:
 Name    : sp-1/2/1
 Status  : Connected

Firewall:
 Status             :  Connected
 Number of terms    :  2
 Number of filters  :  2

Meaning

Use the show services pgcp active-configuration command to see your configuration and to display the current status of your virtual interfaces, virtual BGF, and services interfaces.

In addition, make sure that:

Verifying That Gates Are Running

Purpose

Verify that gates are running on bgf-1.

Action


user@sp-bgf-router> show services pgcp gates gateway bgf-1
Virtual BGF configuration:
  Name                                     :  bgf—1              
  IP address                               :  172.16.10.1           
  Port                                     :  2944              
  Status                                   :  In-Service (Registered) 

Gate information:
Gate id: 4295033088          
Gate state:  active 
Action: forward      
Service set id: 1     
Media card: sp-1/2/0                                                
Media handler: bgf1-svc-set                                          
Termination-id-string: ip/4/vif-0/2      

Gate id: 4295033089          
Gate state:  active 
Action: forward      
Service set id: 1     
Media card: sp-1/2/0                                                
Media handler: bgf1-svc-set                                          
Termination-id-string: ip/4/vif-0/3 

Meaning

The show services pgcp gates command lists the gates on the virtual BGF. It shows whether gates are active, disabled, or closed. It also shows the current action being performed on the gate—forward, add, or drop.

Verifying Terminations

Purpose

Verify the terminations on bgf-1.

Action


user@sp-bgf-router> show services pgcp terminations gateway bgf-1
Virtual BGF configuration:
  Name                                     :  bgf–1              
  IP address                               :  172.16.10.1           
  Port                                     :  2944              
  Status                                   :  In-Service (Registered) 


Termination name                   State           Duration(msecs)         
ip/4/vif-0/2       In-service      390288          
Gate-id         Direction       State        Action
4295033088      A->B            active       forward      
4295033089      B->A            active       forward      


Termination name                   State           Duration(msecs)         
ip/4/vif-0/3       In-service      390294          
Gate-id         Direction       State        Action
4295033088      A->B            active       forward      
4295033089      B->A            active       forward      

Meaning

The show services pgcp terminations command lists the terminations on the virtual BGF. It shows whether the gates within a termination are active, disabled, or closed. You can use the termination names (termination IDs) to troubleshoot problems with voice calls.

Verifying PGCP Flows

Purpose

Verify the PGCP flows.

Action


user@sp-bgf-router> show services pgcp flows gateway bgf-1
Interface: sp-1/2/0, Service set: bgf1-svc-set
Flow                                                State    Dir       Frm count
Gate id: 4295033089          
UDP            20.0.0.1:0     ->    11.0.0.5:1024  Forward  I               0
    NAT source         20.0.0.1:0       ->     10.10.0.5:1024    
    NAT dest       11.0.0.5:1024    ->         10.0.0.1:20002   
Gate id: 4295033089          
UDP            20.0.0.1:0     ->    11.0.0.5:1025  Forward  I               0
    NAT source         20.0.0.1:0       ->     10.10.0.5:1025    
    NAT dest       11.0.0.5:1025    ->         10.0.0.1:20003   
Gate id: 4295033088          
UDP            0.0.0.0:0     ->    10.10.0.5:1024  Forward  I               0
    NAT source         0.0.0.0:0       ->     11.0.0.5:1024    
    NAT dest       10.10.0.5:1024    ->         20.0.0.1:10002   
Gate id: 4295033088          
UDP            0.0.0.0:0     ->    10.10.0.5:1025  Forward  I               0
    NAT source         0.0.0.0:0       ->     11.0.0.5:1025    
    NAT dest       10.10.0.5:1025    ->         20.0.0.1:10003   

Verifying H.248 Parameters Set by the Gateway Controller

Purpose

Verify the H.248 parameters that are set by the gateway controller.

Action


user@sp-bgf-router> show services pgcp terminations gateway bgf-1 h248
Termination information:
ip/4/vif-0/2 {
      MEDIA {
        TERMINATIONSTATE { SERVICESTATES = INSERVICE },
        STREAM = 1 {
          LOCALCONTROL { MODE = SENDRECEIVE,
                         DS/DSCP = 00,
                         TMAN/MBS = 0,
                         TMAN/PDR = 0,
                         TMAN/POL = OFF,
                         TMAN/SDR = 0,
                         MGCINFO/DB = 00,
                         GM/RSB = ON,
                         GM/SAF = OFF,
                         GM/SPF = OFF,
                         GM/SPR = 0,
                         GM/ESAS = OFF,
                         GM/ESPS = OFF,
                         GM/LSP = 0 },
          LOCAL {
v=0
c=IN IP4 10.10.0.5
m=- 1024 RTP/AVP -
b=AS:0
          },
          REMOTE {
v=0
c=IN IP4 10.0.0.1
m=- 20002 RTP/AVP -
b=AS:0
          }
        }
      },
      EVENTS = 1001 { NT/QUALERT { TH = 99, STREAM = 1 } },
      SIGNALS
    }

ip/4/vif-0/3 {
      MEDIA {
        TERMINATIONSTATE { SERVICESTATES = INSERVICE },
        STREAM = 1 {
          LOCALCONTROL { MODE = SENDRECEIVE,
                         DS/DSCP = 00,
                         TMAN/MBS = 1500,
                         TMAN/PDR = 0,
                         TMAN/POL = OFF,
                         TMAN/SDR = 125000,
                         MGCINFO/DB = 00,
                         GM/RSB = ON,
                         GM/SAF = ON,
                         GM/SAM = "[20.0.0.1]",
                         GM/SPF = OFF,
                         GM/SPR = 0,
                         GM/ESAS = OFF,
                         GM/ESPS = OFF,
                         GM/LSP = 0 },
          LOCAL {
v=0
c=IN IP4 11.0.0.5
m=- 1024 RTP/AVP -
b=AS:0
          },
          REMOTE {
v=0
c=IN IP4 4.0.0.1
m=- 10002 RTP/AVP -
b=AS:0
          }
        }
      },
      SIGNALS
    }
{master}

Meaning

The show services pgcp terminations gateway bgf-name h248 command presents the H.248 parameters as they have been set through H.248 requests and commands from the gateway controller. Comparing this output with the expected H.248 requests reveals whether there was a problem with the requests and commands that the gateway controller sent to the virtual BGF.

Troubleshooting

No Audio is Reported on a Stream

Problem

A call completes correctly (signaling is completed), but the media (audio) stream expected to flow through the BGF fails.

Solution

Locate the failed terminations and gates.

  1. Acquire the relevant gate IDs termination IDs using the show services pgcp gates command.
  2. Display the H.248 parameters for the termination.

    user@sp-bgf-router> show services pgcp terminations gateway bgf-1 termination-prefix h248 ip/4/vif-0/2
    Termination information:
    ip/4/vif-0/2 {
          MEDIA {
            TERMINATIONSTATE { SERVICESTATES = INSERVICE },
            STREAM = 1 {
              LOCALCONTROL { MODE = SENDRECEIVE,
                             DS/DSCP = 00,
                             TMAN/MBS = 0,
                             TMAN/PDR = 0,
                             TMAN/POL = OFF,
                             TMAN/SDR = 0,
                             MGCINFO/DB = 00,
                             GM/RSB = ON,
                             GM/SAF = OFF,
                             GM/SPF = OFF,
                             GM/SPR = 0,
                             GM/ESAS = OFF,
                             GM/ESPS = OFF,
                             GM/LSP = 0 },
              LOCAL {
    v=0
    c=IN IP4 3.99.99.100
    m=- 1024 RTP/AVP -
    b=AS:0
              },
              REMOTE {
    v=0
    c=IN IP4 3.0.0.1
    m=- 20002 RTP/AVP -
    b=AS:0
              }
            }
          },
          EVENTS = 1001 { NT/QUALERT { TH = 99, STREAM = 1 } },
          SIGNALS
        }
    
    
  3. Display information about the gate.

    user@sp-bgf-router> show services pgcp gate gateway gate-id 4295033088
    Gate information:
    Gate id: 4295033088          
    Gate state:  active 
    Action: forward      
    Service set id: 1     
    Media card: sp-1/2/0                                                
    Media handler: bgf1-svc-set                                          
    Termination-id-string: ip/4/vif-0/2      
     

Using the preceding information, review and verify the following:

  1. Terminations are in the In-Service state.

    If the termination is in the Out-of-Service state, no streams are allowed access to the termination. The Out-of-Service state indicates a problem with either the resources on the BGF or incorrect parameters requested by the gateway controller.

  2. The termination H.248 parameters are as expected.

    Pay special attention to the LOCAL and REMOTE parameters, and make sure they are aligned with the Session Description Protocol (SDP) offered by both elements participating in the session. Also, missing or unknown values suggest a problem with the call setup initiated by the gateway controller.

  3. Gate actions are in the Forward state.

    If one or all gates are in the Drop state, no stream is allowed to flow through it, so one-way or no audio results. If a gate is not in the Forward state, the gateway controller might have failed to provide a required descriptor.

    Gate actions in the Forward state, but no media is flowing (frame count is zero or not advancing), can be caused by one of the following problems:

    • Networking or routing issues, including:
      • Stream fails to reach the router. A problem exists with the network path between the stream originator and the BGF gates.
      • Routing Engine, PIC, or DPC failure. The stream reaches the router, but the PIC or DPC fails to receive the stream. Use the show services pgcp active-configuration command to review the PIC or DPC status, and make sure that it is In-Service.
    • Hardware or element failure. The originator fails to send the stream. Use the debug tools available on the VoIP element to verify that the streams have left the element.
    • The originator is using a different source IP address than the one reported in the H.248 termination. Verify that the H.248 termination information matches the stream source and destination received by the BGF and the PIC or DPC. You can use the capture feature on the router to verify that the streams are received on the Packet Forwarding Engine.

Related Topics