Understanding, Integrating, and TblhtiFCTroubleshooting Commun itiiications in Today's Enterprise Networks

BRKUCC-2021 Agenda

. Fundamental Concepts . Fax Transport Methods . QoS Considerations . Design Best Practices . Troubleshooting . Fax Servers

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 2 Fundamental Concepts

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 3 Fax Communications

. Fax invented by Alexander Bain in 1843 (patented 30 years before the telephone) . Fax is a ubiquitous form of communication today and Fax over IP (FoIP) is often overlooked iIPTlhin IP Telephony . Group 3 (G3) is today’s fax standard (speeds up to 14. 4 kbps) . Super G3 is an optional extension of G3 that allows for spppeeds up to

33.6 kbps Alexander Bain’s Facsimile Apparatus, British Patent 9745

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 4 G3 Fax Protocols

. Modern fax communication is based on the Group 3 (G3) fax standard, which is composed of the ITU-T specifications of T.30, T.4, and T.6 . T.30 details the signaling, T. 4 specifies the Modified Huffman (MH) and Modified Read (MR) encoding methods, and T.6 covers Modified Modified Read (MMR)

T.4/T.6 —Specifies the Fax Page Encoding Algorithm

PSTN

T.30 —Signaling and Negotiation Between Fax Machines

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 5 Basic G3 Fax Transaction Sending Fax Receiving Fax . The optional Called Ringing, Offhook, Subscriber Identification OffhookAnsw, erthen dial (CSI) and Non-Standard Facilities (NSF) messages Calling Tone (CNG) may be transmitted along with the DIS message Called Tone (CED) . The optional Transmitting Digital Identification Signal (DIS) Subscriber Identification Digital Command Signal (DCS) (TSI) message may be transmitted along with the TiiTraining Ch Chk(TCF)eck (TCF) DCS message . Blue messages indicate Confirmation (CFR) low speed T.30 signaling and gold messages Fax Page Transmission represent higher speed modulations used in training End of Procedure (EOP) and page transmission Message Confirmation (MCF) Disconnect (DCN)

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 6 Super G3 Fax G3 Fax Call Initiation

Originating CNG Terminating . Super G3 uses the V.34 Fax Fax modltidulation to ac hieve CED

page transmission DIS speeds up to 33.6 Kbps compared to the Super G3 Fax Call Initiation maximum G3 speed of 14.4 Kbps Originating CNG Terminating Fax Fax . The signals used by SG3 ANSam are different than G3 and Calling Menu (CM) are currently incompatible with T.38 Joint Menu (JM) and Cisco fax relay. CJ Terminator DIS

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 7 Transporting Fax Over IP

. The default behavior for Cisco voice ggyateways is to initially handle all calls as voice calls so all fax calls start as voice calls . CdiCompressed voice codecs are notdt desi gne dtd to handle modulated data so alternative, real-time transport methods must be utilized . There are two principal methods of transporting fax communications 1. Passthrough 2. Relay

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8 Transporting G3 Fax Protocols Over IP

T.4/T.6 —Specifies the Fax Page Encoding Algorithm

PSTN

T.30 —Signaling and Negotiation Between Fax Machines How Do Standard Fax Communications Integrate With IP Networks?

T.4/T.6 —Specifies the Fax Page Encoding Algorithm

Passthrough or Relay Transport IP

T.30 —Signaling and Negotiation Between Fax Machines

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 9 Passthrough

. Modulated fax data information is sampled and encoded as standard Pulse Code Modulation (PCM) (i.e., G.711) and encapsulated in Real Time Protocol (RTP) for transport over IP just like a voice codec does for human speech . From the gateway perspective, this is more or less a G.711 voice call . Commonly referred to as Voice Band Data (VBD)

End-to-End Modulated Data AlAnalog RTP Packet with PCM Payload AlAnalog Modulated Data Modulated Data RTP RTP RTP

IP

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 10 Relay

. The analog modulated fax data is demodulated by a Digital Signal Processor (DSP) on the gateway and the binary information is extracted . Binaryyp information is passed over IP usin g one of several available relay protocols . A DSP on the destination gateway takes the binary information from the relay packets and re-modulates it into a fax data signal on the telephony side

Analog Relay Protocol Analog Modulated Data Modulated Data Relay Relay Relay Relay

01101010 11000111 10100101 00101011

IP

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 11 The Switchover

OGW TGW . All modulated calls begin as voice calls . The process that transitions a gateway VoIP Call from a VoIP call to the final fax media stream is kthithknown as the switchover Switchover . There are a variety of different switchover mechanisms that we will discuss throughout this Fax Call presentation

Fax/ Media Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 12 Fax Transport Methods

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 13 Fax Transport Methods

Fax over IP

Passthrough Relay

Fax Fax T.38 T.38 Passthrough Pass-through Fax Relay Fax Relay Cisco (()NSE) (Protocol) (Protocol) (NSE) Fax Relay

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 14 Fax Passthrough Switchover Methods

Voice Mode

NSE-Based Protocol-Based Switchover Switchover

Passthrough Switchover: Fax 1. Codec upspeed Fax Passthrough Pass-through 2. VAD disabled on DSP 3. Jitter buffer transitions from adaptive to a fixed optimum value Fax Passthrough

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 15 Passthrough Terminology

. “Fax Passthrough” generically refers to passing fax calls over the G.711 codec . “Fax Passthrough” can also refer to the more specific passthrough transport method using an NSE switchover to pass over G.711 . “Modem Passthrough” is a general term used to refer to an NSE- based switchover to passthrough for both fax and modem calls because it is the syntax used by the configuration command for this feature . The underlying operation of “modem passthrough” is different depending on whether it is a fax or a high speed modem call, so to avoid confusion we will refer to “modem passthrough” for a fax call as “fax passthrough ” and “modem passthrough ” for a modem call as “modem passthrough” . “Fax pass-through” details a switchover to passthrough using the call control protocol

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 16 Passthrough Switchover Mechanisms

NSE-Based Tone RTP NSE RTP NSE RTP NSE Switchover 2 1 Detection

IP OGW Protocol-Based TGW H.323 SIP Switchover 3 1 Terminating Gateway (TGW) initiates the switchover to passthrough upon detection of fax signals played by the answering fax device 2 If NSE-based passthrough is configured, the TGW sends NSE switchover packets in the RTP media stream upon detection of CED (G3 fax) or ANSam (SG3 fax) tones 3 If fax pass-through is configured, the TGW initiates the switc hover in the H. 323 or SIP call con trol prot ocol s upon detection of fax message flags

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 17 Payload Types Used for Modulated Data

. The Payload Type field identifies the type of data being carried in the RTP pack et

Payload Type Payload Encoding 0 G.711 µ-law Static 8 G.711 a-law 18 G.729 90 RFC 2198 Passthrough Redundancy 96 Cisco Fax Relay Switchover Dynamic 97 Cisco Fax Relay Switchover ACK And 100 Named Signaling Event (NSE) Unassigned 119 Cisco Text Relay 122 Cisco Fax Relay Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 18 Named Signaling Events (NSE)

. Cisco ppproprietar y messa ge sent as part of the RTP stream to signal an event, such as a switchover . This form of signaling is call control independent . The Event ID field uses Cisco-defined event numbers to signal a specific task in-band RTP H ea der RTP P ayl oad

PT NSE

Payload Type =100

Event ID E R Volume Duration

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 19 NSE Events Used for Modulated Data

. The NSE Event ID field uses Cisco-defined values to signal in-band a variety of tasks NSE Description

192 Triggered by 2100Hz tone. Signals switchover to passthrough 193 Triggered by ANSam tone detection. Signal to disable ECANs 194 Triggered by 4s silence or carrier loss. Signals return to voice mode 199 Triggered by ANSam tone. Signals support of Cisco Modem Relay 200 TiTriggered db by fax V21PV.21 Pream ble. Signa ls sw ithitchover to T38T.38 201 ACK to NSE-200 confirming peer gateway switchover to T.38 202 NACK to NSE -200 implying peer gateway cannot switchover to T. 38 203 Triggered by V.8 CM detection. Signals transition to Modem Relay

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 20 Fax Passthrough Switchover (G3)

OGW TGW

The in itia l Vo IP ca ll can be setup by any of the common call control protocols OGW: Upspeed codec VoIP Call andihd switch to (H. 323, SIP , MGCP , or Passthrough mode SCCP)

NSE-192 CED

NSE-192 The underlying call control protocol is TGW: Upspeed codec unaware ofthf the and switch to Passthrough mode transition to fax Fax Passthrough Call passthrough due to the protocol independent natfthNSEture of the NSE switchover

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 21 Fax Passthrough Switchover (SG3)

OGW TGW

The initial VoIP call can be setup by any of the common call control protocols VoIP Call (H. 323, SIP , MGCP , or SCCP)

NSE-192 ANSam

OGW: Upspeed NSE-192 TGW: Detect 2100 Hz codec and switch to tone. Upspeed codec NSE-193 Passthrough mode and switch to NSE-193 Passthrough mode

OGW: Disable echo cancellers SG3 Fax Call TGW: Detect phase reversal of ANSam. Disable ECAN Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 22 Confirming Fax Passthrough Switchover

Before Switchover: show call active voice brief

11F1 : 10 2924510ms.1 +10530 pid:1 Originate 200 active dur 00:00:07 tx:99/1903 rx:253/4993 IP1112:IP 1.1.1.2:1793217932 SRTP: off rtt:0ms pl:4810/0ms lost:0/0/0 delay:60/60/70ms g729r8 VoIP Call

After Switchover: show call active voice brief 11F1 : 10 2924510ms.1 +10530 pid:1 Originate 200 active dur 00:00:22 tx:877/125447 rx:1040/128809 IP 1.1.1.2:17932 SRTP: off rtt:1ms ppyl:40/0ms lost:0/0/0 delay:60/60/60ms g711ulaw TextRelay: off media inactive detected:n media contrl rcvd:n/a timestamp:n/a long duration call detected:n long duration call duration:n/a timestamp:n/a MODEMPASS nse buf:0/0 loss 0% 0/0 last 1359s dur:0/0s

Fax Passthrough CallFax Passthrough Call

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 23 Fax Passthrough Configuration

SIP/H.323: dial-peer voice 1 voip modem passthrough nse codec g711ulaw (Note: Can be configured globally under voice service voip or the dialpeer for SIP and H.323. The configuration under the dialpeer takes precedence.)

Feature: fax passthrough RTP NSERTP NSE RTP NSE IP

MGCP: mgcp modem passthrough voip mode nse mgcp modem passthrough voip codec g711ulaw

SCCP: voice service voip modem passthrough nse codec g711ulaw (Note: Can only be configured globally under voice service voip for SCCP.)

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 24 Fax Pass -through Switchover (G3)

OGW TGW

The in itia l Vo IP ca ll is setup using the SIP call control protocol VoIP Call - SIP Sigggnaling Pass-throug h CED Tone parameters for the upcoming session V.21 are established in INVITE for G.711 Pass-through Preamble the SIP INVITE and 200 OK messages 100 Trying

200 OK The V.21 Preamble of the first T .30 message ACK following the CED Tone An H.245 Request (i.e. DIS) is the trigger Mode for G.711 is used for the transition to pass- to signal the switchover Fax Pass-through Call through in H.323 to fax pass- through mode

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 25 Confirming Fax Pass-through Switchover

Before Switchover: show call active voice brief

126C : 58 11411290ms.1 +10520 pid:1 Originate 200 active dur 00:00:08 tx:112/2154 rx:307/6092 IP 1.1.1.2:17620 SRTP: off rtt:1ms pl:5930/0ms lost:0/0/0 delay:60/60/70ms g729r8 VoIP Call After Switchover: show call active voice brief 126C : 58 11411290ms.1 +10520 pid:1 Originate 200 active dur 00:00:41 tx:1677/252554 rx:1953/258112 IP1112IP 1.1.1.2:17620 SRTP : off rtt :4ms pl :40/0ms lost : 1/0/0 delay: 60/60/60ms g711ula w TextRelay: off

media inactive detected:n media contrl rcvd:n/a timestamp:n/a long duration call detected:n long duration call duration:n/a timestamp:n/a Fax Pass-through CallFax Passthrough Call

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 26 Fax Pass -through Configuration

SIP/H.323: dial-peer voice 1 voip fax protocol pass-through g711ulaw Note: Can be configured globally under voice service voip or the dialpeer for SIP and H.323. The configuration under the dialpeer takes precedence.

Feature: fax pass-through IP H.323 RM SIP INVITE

MGCP: Fax pass-through is NOT supported for MGCP

SCCP: Fax pass-through is NOT supported for SCCP

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 27 Fax Transport Methods

Fax over IP

Passthrough Relay

Fax Fax T.38 T.38 Passthrough Pass-through Fax Relay Fax Relay Cisco (()NSE) (Protocol) (Protocol) (NSE) Fax Relay

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 28 Fax Relay Switchover Methods

Voice Mode Protocol-Based Switchover (Standards-Based) RTP PT NSE-Based Switchover Switchover

T38FaxT.38 Fax T38FaxT.38 Fax Cisco Fax Relay Relay Relay

Fax Relay

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 29 Cisco Fax Relay (CFR)

. Pre-standard and proprietaryyy fax relay implementation for G3 fax transmissions (no SG3 support) . Default fax transport method on most Cisco voice gateways . Uses a unique Payload Type switchover that is not used by any other modulated communication transport method

RTP Payload Demodulated fax HDLC Type is set to data carried in the Cisco 122 for Cisco Fax Relayyp packet Fax Relay data

IP UDP RTP Cisco Fax Relay Packet Header Header Header

Cisco Proprietary Formatting

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 30 Cisco Fax Relay Switchover (G3)

OGW TGW

The TGW notifies the VoIP Call OGW of the impending switchover with a special RTP message V.21 using a PT value of 96 PT-96 CFR Switchover Preamble

PT-97 CFR Switchover ACK

PT-96 CFR Switchover The detection of fax PT-97 CFR Switchover ACK flags (V.21 Preamble) at The CFR switchover the TGW triggers the packet is ACK’d with transition to CFR. PT-97 message Cisco Fax Relay Call

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 31 Confirming Cisco Fax Relay Switchover

Before Switchover: show call active voice brief

121C : 26 1027355900ms.1 +10510 pid:1 Originate 200 active dur 00:00:11 tx:117/2244 rx:424/8432 IP 1.1.1.2:18274 SRTP: off rtt:2ms pl:7810/0ms lost:0/0/0 delay:60/60/70ms g729r8

VoIP Call

After Switchover: show call active voice brief 121C : 26 1027355900ms.1 +10510 pid:1 Originate 200 active dur 00:00:45 tx:1113/22164 rx:1001/19972 IP11121824SRTPIP 1.1.1.2:18274 SRTP: o ff rtt: 2ms p l0/0l:0/0ms lost: 0/0/0d0/0/0 de lay: 0/0/0ms cisco TRlTextRelay: off

media inactive detected:n media contrl rcvd:n/a timestamp:n/a long duration call detected:n long duration call duration:n/a timestamp:n/a

Cisco Fax Relay CallFax Passthrough Call

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 32 Cisco Fax Relay Configuration SIP/H.323: dial-peer voice 1 voip fax protocol cisco Note: CFR is the default fax configuration on most IOS gateways.

Feature: Cisco Fax Relay RTP PT-97 RTP PT-96 IP

MGCP: ccm-manager fax protocol cisco mgcp fax t38 inhibit SCCP: Note: Like CFR, T.38 is also enabled by default for MGCP. However T.38 takes precedence over CFR and voice service voip must be explicitly disabled with mgcp fax t38 inhibit. fax protocol cisco Note: CFR can only be configured under voice service voip for SCCP starting in IOS Release 12.4(11)T.

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 33 T.38 Fax Relay

. T.38 is the de facto standard for handling fax transmissions today . Cisco has always supported the 1998 version (known as version 0) of the ITU-T T.38 specification with UDP/UDPTL encapsulation . In IOS version 15.1(1)T Cisco started supporting SG3 fax over T.38 ()(version 3) . Cisco products can use either NSEs (proprietary) or the call control pp(rotocol (standards-based) to switch a call to T.38 mode

UDP Transport Layer T.38 Fax Packets (IFP) (UDPTL) header is simply and optional redundancy packets a 2 byte sequence number are carried in the UDPTL payload

IP UDP UDPTL UDPTL Payload (T .38 IFPs) Header Header Header UDP Encapsulated T.38

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 34 T.38 Switchover —NSE (G3)

OGW TGW The initial VoIP call can be setup by any of the common call OGW: Transition from control protocols voice mode to T.38 VoIP Call (H.323, SIP, MGCP, or SCCP) V.21 NSE-200 Preamble

NSE-201 The detection of fax flags (V.21 Preamble) at the TGW triggers the tititT38transition to T.38 T.38 Fax Relay Call

TGW: T.38 ACK received, start T.38 session Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 35 T.38 Switchover —H.323 (G3)

OGW TGW

The in itia l Vo IP ca ll is setup using the H.323 call control protocol T.38 parameters for the upcoming fax relay VoIP Call—H.323 Sigggnaling session are negotiated in the H.245 Request V.21 Mode messages H.245 Request Mode T.38 Preamble

H.245 Request Mode T.38 ACK

Each gateway closes Closing of Voice Logical Channels its voice media channel and opens a Opening of T.38 Logical Channels The detection of fax T.38 fax relay media flags (V.21 Preamble) channel while at the TGW triggers the acknowledging the transition to T.38 T38FaxRelayCallT.38 Fax Relay Call same events by the other side

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 36 T.38 Switchover —SIP (G3)

OGW TGW

The in itia l Vo IP ca ll is setup using the SIP T.38 parameters for the call control protocol upcoming fax relay session are negotiated VoIP Call - SIP Sigggnaling in the SIP INVITE and 200 OK messages V.21 INVITE for T.38 mode Preamble

100 Trying The detection of fax 200 OK flags (V.21 Preamble) at the TGW triggers the ACK transition to T.38

T.38 fax relay T38FaxRelayCallT.38 Fax Relay Call switchover process using the SIP protocol stack is complete Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 37 T.38 Switchover —MGCP (G3)

OGW TGW Call Agent The in itia l Vo IP ca ll is setup using the MGCP call control protocol VoIP Call - MGCP Signaling

V.21 MGCP NTFY Preamble

200 OK CA instructs OGW to TGW notifies the CA that fax V.21 flags are switchover to T.38 MDCX - T.38 with an MDCX detected message 200 OK

MDCX- T.38 CA instructs TGW to 200 OK switchover to T. 38 with an MDCX T.38 Fax Relay Call message Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 38 T.38 Switchover—SIP (SG3)

OGW TGW The initial VoIP call is setup using the SIP ANSam is sent across in call control protocol the RTP media stream VoIP Call - SIP Signaling

ANSam (ANSam tunneled in voice codec) ANSam

T.38 fax relay CM INVITE for T.38 mode switchover process 100 Trying using the SIP protocol stack is complete 200 OK The detection of Calling Menu (CM) at ACK the OGW triggers the Note: CM is squelched transition to T.38 by the OGW DSP and sent over T.38. The T38T.38 SG3 Fax Relay Call CM/JM exchange is done entirely over T.38 prior to T.30 negotiation Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 39 Confirming T.38 Fax Relay Switchover

Before Switchover: show call active voice brief

11E2 : 4 2956390ms.1 +10500 pid:1 Originate 200 active dur 00:00:11 tx:117/2244 rx:436/8643 IP 1.1.1.2:18496 SRTP: off rtt:3ms pl:4800/0ms lost:0/0/0 delay:60/60/70ms g729r8 VoIP Call

After Sw itc hover: shlltiibifhow call active voice brief 11E2 : 4 2956390ms.1 +10500 pid:1 Originate 200 active dur 00:00:46 tx:707/13770 rx:914/12339 IP1112:IP 1.1.1.2:1849618496 SRTP: off rtt:3ms pl:4800/0ms lost:0/0/0 delay:60/60/70ms t38 TextRelay: off

media inactive detected:n media contrl rcvd:n/a timestamp:n/a long duration call detected:n long duration call duration:n/a timestamp:n/a T.38 Fax Relay Call Fax Passthrough Call

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 40 NSE-Based T.38 Configuration SIP/H.323: dial-peer voice 1 voip fax protocol t38 nse ls-redundancy 0 hs-redundancy 0 fallback cisco Note: Configured globally under voice service voip or the dialpeer for SIP and H.323. The dialpeer configuration takes precedence.

Feature: NSE-Based T.38 RTP NSERTP NSE RTP NSE IP

MGCP: Enabled by default SCCP: Note: no mgcp fax t38 inhibit is required but is default. voice service voip fax protocol t38 nse ls-redundancy 0 hs-redundancy 0 fallback cisco NtNote: Can on ly be confi gured und er voiiice service voip for SCCP . Cisco IOS gat eway support for NSE-based T.38 fax relay with the SCCP voice signaling protocol is introduced in Cisco IOS Release 12.4(11)T.

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 41 Protocol-Based T.38 Configuration

SIP/H.323: dial-peer voice 1 voip fax protocol t38 version [0|3] ls-redundancy 0 hs-redundancy 0 fallback cisco Note: version 0 configures legacy T.38 G3 fax support, whereas version 3 enables the newly supported SG3 over T.38 feature [as of 15.1(1)T]

Feature: Protocol-Based T.38 H.323 RM SIP INVITE MGCP NTFY IP

MGCP: mgcp package-capability fxr-package mgcp default-package fxr-package Note: These two commands are needed to go from SCCP: the default configuration of NSE-based T.38 to SCCP does not support protocol-based T.38. The command no mgcp fax t38 protocol-based (version 0 inhibit is required for both NSE and protocol-based or version 3) T.38 T.38, but it is the default. MGCP does not offer any version 3 support. Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 42 QoS Considerations

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 43 Are VoIP QoS Policies Sufficient for Fax? Headquarters . In many cases, fax devices are located where VoIP is already installed . You can “piggyback” fax traffic onto the same QoS policy implemented fVIPfor VoIP IP . As a rule of thumb, if good voice quality exists between locations, then fax communications should also work

Branch 1 Branch 2 Branch 3 Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 44 QoS Network Factors Packet Loss Jitter Originating Terminating Gateway Gateway

T.38 T.38 T.38 T.38 T.38 Delay

. Delay or latency: the amount of time it takes a packet to travel from source to destination . Packet loss: the amount of packets that are unsuccessfliful in arr iiiving a tthdt the des tititination . Jitter: the measure of the variability over time of the latency across a network

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 45 FoIP and Packet Loss

Originating T.38 Fax Packets Terminating Gateway Gateway

IFP 2 IFP 3 IFP 1 IFP 2 IFP 1 (Secondary) (Primary) (Secondary) (Primary) (Primary)

T.38 Fax Relay With Redundancy Level Set to 1

. Fax over IP (FoIP) is generally more affected by packet loss than VoIP . Ideally no packet loss should occur for a fax call . If packet loss is present then use T.38 with redundancy . Enabling T.38 redundancy requires more bandwidth

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 46 FoIP and Delay

Multiple IP and PSTN hops are ppyrime sources of additional delay

PSTN

Satellite links IP IP PSTN cause large amounts of delay

. Delay is not as impacting to FoIP compared to VoIP . FoIP calls have been known to handle network delays of 1 second or more . However, as a best practice it is still recommended to minimize network delays as much as reasonably possible because too much delay will cause FoIP calls to fail . Watch out for multiple IP and PSTN hops and satellite links

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 47 FoIP and Jitter

Variably spaced T.38 Evenly spaced packets arrive at the Packets are re-sequenced packets are played ppylayout buffer and if necessary and placed in out to the DSP for some may even be the required order for transmission on out of sequence playout the PSTN

DSP 11 10 8 9 7 6 5 4 3 2 1 Codec IP Fax Fax Fax Fax Fax Fax Fax Fax Fax Fax Fax (T.38)

300 ms Fixed Playout Buffer . T.38 and Cisco fax relay use 300 ms fixed jitter or playout buffers . Fax passthrough uses the last voice mode setting before the switchover . With larggpye playout buffers, FoIP can handle lar ger amounts of jitter than VoIP but as a best practice it is still recommended to keep jitter to a minimum

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 48 QoS Design Parameters for Fax

Delay Jitter Packet Loss

< 150 ms < 30 ms < 1% Voice (one-way, (average, (mouth to ear) one-way)

< 1000 ms < 300 ms for None*, unless fax relay, using T.38 Fax < 30 ms for with ppgassthrough redundancy

*Fax passthrough is very sensitive to packet loss and may be able to handle 0. 1%–02%loss0.2% loss depending on when in the fax transaction the loss occurs and if it is consecutive packets. Cisco fax relay can handle more loss than passthrough but T.38 with redundancy is still the best choice for fax calls when packet loss is occurring. Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 49 QoS Marking Configuration on Gateways Fax Gateway T.38 T.38 IP dial-peer voice 100 voip cae-dh-3660#show dial-peer voice 100 destination-pattern 100 session target ipv4:10.1.1.1 type = voip, session-target = `ipv4:10.1.1.1', fax protocol t38 ls-redundancy 0 hs -redundancy 0 technology prefix: fallback cisco settle-call = disabled ip qos dscp cs3 signaling ip media DSCP = ef, ip signaling DSCP = cs3, . FddttFax, modem, and text QSQoS marking v ia DSCP can be s imp ly added at the dial-peer level for H.323 and SIP or globally for MGCP with the command “mgcp ip qos dscp” . Dial-peer QoS markings can be viewed with the command show dial-peer voice . Default dial-peer QoS markings are af31 for signaling and ef for media . Cisco recommended best practice is to use cs3 for signaling

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 50 QoS Marking and Shaping Example CLASSIFICATION & MARKING QUEUEING & DROPPING POST-QUEUING OPERATIONS

Fax OGW TGW Fax I P Phone PC PC Phone class-map match-all fax_voice dial-peer voice 919 voip match ip dscp ef destination-pattern 919...... class-map match-any call_signaling session target ipv4:10.0.0.19 match ip dscp cs3 match ip dscp af31 fax protocol t38 ls-redundancy 0 hs-redundancy 0 ! fallback cisco policy-map WAN ip qos dscp cs3 signaling class fax_voice no vad priority percent 33 class call_signaling bandwidth percent 5 Voice and T.38 fax traffic can share the same class class-default QoS marking and shaping. fair-queue Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 51 Design Best Practices

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 52 Design Best Practices

. Unified Communications Integration Methods Cisco Unified Communications Manager, Gateway- Controlled Cisco Unified Communications Manager, CA-Controlled . Design considerations Bandwidth utilization Super G3 Protocol and product support SIP Trunking and FoIP Support T.38: de facto standard

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 53 Gateway to Gateway H.323/SIP Voice Signaling

H.323/SIP Fax Signaling Gateway Gateway Fax Fax IP

Voice Media Voice Media NSE/PT Switchover

Fax Media

. All signaling and media packets are exchanged between the voice gateways . NSE-based switchovers (fax passthrough and NSE-based T.38) and pa yload t ype switchovers (Cisco fax rela y) ha ppen within the voice media stream while protocol-based switchovers (fax pass-through and protocol- based T.38) happen within the call control protocol

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 54 Cisco Unified Communications Manager, Gateway -Controlled

Unified CM

H.323/SIP/MGCP/SCCP H.323/SIP/MGCP/SCCP

Gateway Gateway Fax Fax IP

Voice media is Switchover for fax established by Unified Voice Media passthrough, NSE- CM using the H.323, NSE/PT Switchover based T.38, and Cisco SIP, MGCP, or SCCP fax relay occurs within protocols the voice media stream

Fax Media

. Cisco Unified Communications Manager (Unified CM) controls the setup of the initial voice call between the gateways using standard call control signaling such as H.323, SIP, MGCP, and SCCP . The switchover to a fax media stream is handled by the gateways themselves without the knowledge of Unified CM

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 55 Cisco Unified Communications Manager, Gateway Controlled

. Use Cisco Unified Communications Manager, Gateway- CtlldhControlled, when a CiUifidCCisco Unified Commun itiications Manager version does not support a certain fax media negotiation in the call control protocol (like T.38) . NSE-based T.38 allows for T.38 to occur even if a Cisco Unified Communications Manager version does not offer T.38 support within the call control protocol . This integration method must also be used with non- standard switchover mechanisms such as fax passthrough and Cisco fax relay . Remember that NSE and PT switchovers are Cisco proprietary and this integration method only works with Cisco devices and not third-ppyqparty equipment

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 56 Cisco Unified Communications Manager, CA-Controlled

Unified CM

Gateway Gateway Fax Fax IP

Voice media is Voice Media Switchover for protocol- established by Unified based T.38 is handled by CM using the H.323, Unified CM within the SIP, or MGCP protocols T.38 Media call control protocol

. Cisco Unified Communications Manager controls the setup of the initial voillbtthitice call between the voice gateways and contlthtrols the sw ithitchover tT38to T.38 fax relay . Instead of the gateways independently handling the switchover, Cisco Unified Communications Manager coordinates the switchover using the call control protocol

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 57 Cisco Unified Communications Manager, CA-Controlled

. Recommended as a best practice! . Only protocol-based T.38 (using H.323, SIP, or MGCP) is capable of this integration method . This integration method is standards-based and allows for interoperability with third-party devices such as gateways and fax servers . If Ci sco Un ifie d Commun ica tions Manager an d vo ice gateways support this integration method then this is recommended compared to the Cisco Unified Communications Manager, Gateway-Controlled method which depends on proprietary switchover mechanisms . T.38 support within Cisco Unified Communications Manager varies depending on software version

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 58 Cisco Unified Communications Manager and T.38 Support

Call Control Protocol Cisco Unified Support for T.38 Communications Manager SfSoftware Release H.323 4.1(1), 4.2(3), 5.0(1), and 6.0(1) H.323 and MGCP 4.2(3) and 6.0(1) H.323 and SIP 5.0(1) and 6.0(1) H. 323, SIP, and MGCP 6. 0(1) and later

. Only release 6.0(1) and later offers support for T.38 w ithin the ca ll con tro l pro toco ls o f H. 323, SIP, and MGCP . The SCCP protocol only handles T. 38 using an NSE-based switchover

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 59 Design Best Practices

. Unified Communications Integration Methods Cisco Unified Communications Manager, Gateway- Controlled Cisco Unified Communications Manager, CA-Controlled . Design considerations Bandwidth utilization Super G3 Protocol and product support SIP Trunking and FoIP Support T.38: de facto standard

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 60 FoIP Bandwidth Utilization

. Different FoIP transports Codec Bandwidth1 use varying amounts of G.711 (64 Kbps) 83 Kbps bandwidth . On links where saving G.729 (8 Kbps) 27 Kbps bandwidth is a priority then G.723 (6.3 Kbps) 19 Kbps relay is a better choice Fax passthrough/ 83 Kbps . T.38 redundancy handles pass-through (G.711) packet loss much better Fax passthrough (G.711) 170 Kbps than fax passthrough/ pass- with redundancy through with redundancy T.38 ((y)no redundancy) 25 Kbps2

1Values are approximate with Ethernet or T.38 (redundancy level 1) 41 Kbps2 Frame Relay headers 2 2Values are peak and only occur during the T.38 ((y)redundancy level 2) 57 Kbps sending of a page at 14.4 Kbps; gateways can force lower fax speeds for additional Cisco fax relay 48 Kbps2 bandwidth savings Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 61 Methods for Handling SG3 Fax Calls OGW TGW Sending Fax Receiving Fax

CNG

ANSam

Sending fax Sg3-to-g3 spoofing Absence of SG3 CM causes iiiinitiates SG3 ca ll CM feature on OGW receiving fGfax to initiate G3 by sending CM blocks CM message fax procedures (DIS message) DIS

. The sg3-to-g3 spoofing feature forces Super G3 fax calls to negotiate down to G3 speeds for compatibility with T.38 or Cisco fax relay . Modem passthrough will handle SG3 calls at their native speeds . Fax pass-through is not compatible with SG3 because of its dependency on the V.21 flags found in G3 negotiations for initiating the switchover . Starting in IOS 15. 1(1)T SG3 over T. 38 is supported and these other methods for handling SG3 faxes are not necessary

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 62 Error Correction Mode (ECM) OGW TGW Sending Fax Receiving Fax

CNG

CED

DIS (()ECM disabled) DIS (()ECM enabled)

TGW overwrites ECM support indicated Sending fax believes receiving ECM setting to disabled in DIS message fax does not support ECM

DCS (ECM disabled)

. ECM ensures error-free transmission of fax pages . When ECM is disabled, fax pages can proceed with minor errors that may or may not be noticeable . Cisco gateways can force ECM to be disabled when configured for T.38 or Cisco fax relay . Disabling ECM may be useful for scenarios where network impairments make it difficult for ECM to be efficient

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 63 T.38 Fallback dial-peer voice 100 voip fax protocol t38 ls-redundancy 0 3845 TGW Receiving Fax hs-redundancy 0 fallback cisco

T.38 supported by 3845 Sending Fax OGW and call is successful IP

6608 TGW T.38 call fails to 6608 Receiving Fax but fallback to Cisco fax relay is successful

. For increased interoperability, T.38 fax relay can fall back to Cisco fax relay or fax pass-through if the initial T.38 negotiation fails . T.38 also has an automatic fallback mechanism that tries a protocol-based T. 38 fax relay switchover if the configured NSE-based switchover fails

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 64 FoIP Call Control Protocol Support

Transport H.323 SIP MGCP SCCP MthdMethod Cisco fax Yes* Yes* Yes* Yes* relay NSE-based Yes Yes Yes Yes T.38 Protocol- Yes Yes Yes No based T.38 Fax pass- Yes Yes No No through Modem Yes Yes Yes Yes passthrough

*IOS platforms such as the 5350, 5400, and 5850 utilizing the Nextport DSP cards do not support Cisco fax relay

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 65 FoIP Product Support Caveats

. Cisco ATA only supports NSE-based passthrough (d(modem pass thh)through) . SCCP voice gateways (IOS or VG248) do not support anyyp protocol-based switchovers((plike fax pass-through and protocol-based T.38), so NSE-based T.38 and modem passthrough must be used . MGCP gateways do not support fax pass-through, only modem passthrough can be utilized . Legacy Nextport DSP platforms (AS5350, AS5400, and AS5850) do not support Cisco fax relay . Legacy 6608 and 6624 cards only support Cisco fax relay and modem passthrough

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 66 SIP Trunks and FoIP

. SIP Trunks typically use three different methods to transport standard G3 fax calls G.711 Voice - All calls (voice and fax) are always sent using the G.711 voice codec Pass-through - A SIP RE-INVITE message is used to up-speed to G.711 when a fax tone is detected T.38 Fax Relay – Call is switched to T.38 fax relay using a SIP RE-INVITE when a fax tone is detected

Fax Method T38FaxRelayT.38 Fax Relay G711VoiceG.711 Voice Pass-through Pros . Highest fax success rates . Most widely deployed . Provides bandwidth savings as can be achieved . Simplest solution G.729 voice call only upspeeds . Cleanest solution from to G.711 if call is fax signaling and media point ofif view . Use less bandwidth than G.711 Cons . Interoperability between . Consumes a large amount of . Interoperability between different vendors bandwidth for all calls different vendors . Not offered by many . Sensitive to impairments, no . Not supported by Cisco Unified Service Providers redundancy Communications Manager . Sensitive to impairments, no redundancy Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 67 T.38: De Facto Standard for FoIP Fax Pass- Fax T.38 CFR through Passthrough Standards-Based, Third-Party Integration Low Bandwidth

Redundancy Fallback Mechanisms SRTP and CRTP Support Legacy Platform Support

T.38 Should Always Be Your First Choice When Handling FoIP Traffic!

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 68 Troubleshooting

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 69 Call Troubleshooting Stages

Gateway Gateway . Any fax call can be broken down into three troubleshooting stages H.323/SIP/MGCP/SCCP Call Setup 1. Initial Voice Call 2. Switchover Voice Media 3. Fax Media . Once the problem has been narrowed down to NSE or Protocol-Based Switchover a specific stage, then the appropriate troubleshooting strategy Fax Media can be implemented

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 70 Packet Captures

Unified CM Capture media Capture media and call control and call control Capture Voice call control Voice Fax Gateway Gateway Fax IP

. Packet captures are one of the best tools for troubleshooting fax problems . Ideally captures should be made at both endpoints to ensure that both signaling and media are seen . Cisco Unified Communications Managgyer only participates in the call control signaling

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 71 Packet Captures

. Packet capture software such as Wireshark is one of the bes t tool s for t roubl esh ooti ng eith er NSE or protocol-based switchovers as well as the fax media

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 72 Packet Captures: VoIP Call Analysis

. For protocol-based switchovers like fax pass- through and T.38, the “VoIP Call Analysis” feature in Wireshark offers a graphical means for analyzing the switchover . “VoIP Call Analysis” also breaks down the T.38 media stream, showing the T.30 signaling and page transmission . SlSelect “Si“Statist ics ”f” from top of Wireshark window, “VoIP Calls”, click on a call, and then click “Graph”

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 73 Troubleshooting NSE-Based Switchovers debug voip rtp session named-event Jan 10 22:01:58.471: s=DSP d=VoIP payload 0x64 ssrc 0x1EF2 sequence 0x1FBD timestamp 0x20631C26 Jan 10 22:01:58.471: Pt:100 Evt:192 Pkt:00 00 00 >>

Jan 10 22:01:58.483: s=VoIP d=DSP payload 0x64 ssrc 0x9A20101 sequence 0x18C2 timestamp 0xADA80F0A Jan 10 22:01:58.483: << Pt:100 Evt:192 Pkt:00 00 00 . Use the command debug voip rtp session named-event to view NSE-related switchovers and events on IOS gateways, such as fax passthrough and NSE-bdT38based T.38 . Most common cause of problems with NSE-based switchovers are an incorrect configuration or a transcoder or proxy in the call path

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 74 Packet Captures: NSE Switchover

The default RTP payload type for NSE messages is 100

The NSE Event ID is shown in the payload as a hex value. In this case 0xC8 is 200 in decimal (NSE-200), which is a T.38 fax relay switchover request

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 75 Troubleshooting PT -Based Switchovers debug voip rtp session named-event

Jan 10 16:03:32. 838: s=VoIP d=DSP payload 0x60 ssrc 0x0 sequence 0x0 timestamp 0x0 Jan 10 16:03:32.838: << Pt:96 Evt:0 Pkt:03 00 02 Jan 10 16:03:32.838: s=DSP d=VoIP ppyayload 0x61 ssrc 0xFFEB sequence 0x0 timestamp 0x0 Jan 10 16:03:32.838: Pt:97 Evt:0 Pkt:07 00 02 >> Jan 10 16:03:32.842: s=DSP d=VoIP payload 0x60 ssrc 0xFFE2 sequence 0x0 timestamp 0x0 Jan 10 16:03:32.842: Pt:96 Evt:0 Pkt:07 00 02 >> Jan 10 16:03:32.842: s=VoIP d=DSP payload 0x61 ssrc 0x0 sequence 0x0 timestamp 0x0 Jan 10 16:03:32. 842: << Pt:97 Evt:1 Pkt:B8 01 E0 . Like NSE-based switchovers, confirm RTP payload type (PT) switchovers as utilized by Cisco fax relay usithing the comman d dbdebug voiprtpsessidion named- event

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 76 Troubleshooting Protocol-Based Switchovers—H.323 and T.38

H.245 Request Mode message ((g)from the terminating side) Voice Voice Gateway Gateway initiates the T.38 switchover

*Feb 3 04:34:53.070: H245 MSC OUTGOING PDU ::= value MultimediaSystemControlMessage ::= request : requestMod e : Voice Media type dataMode : { application t38fax : { asn1 t38FaxProtocol udp : NULL H. 245 R equest M od e and ACK t38FaxProfile { fillBitRemoval FALSE Closing of G.711 Logical Channels transcodingJBIG FALSE

transcodingMMR FALSE ug h245

bb Opening of T .38 Logical Channels version 0 t38FaxRateManagement transferredTCF : NULL de t38FaxUdpOptions { t38FaxMaxBuffer 200 T.38 t38FaxMaxDatagram 72 t38FaxUdpEC t38UDPRedundancy : NULL

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 77 Troubleshooting Protocol-Based Switchover—SIP and T.38

SIP re-INVITE message (from the terminatingg) side) initiates the Voice Voice switchover to T.38 GtGateway GtGateway

*Feb 3 22:32:18.514: //-1/xxxxxxxxxxxx/SIP/Msg/ccsipDisplayMsg: Sent: INVITE sip:1 72 .18 .110 . 86:5 060 SIP /2. 0 Via: SIP/2.0/UDP 14.1.97.15:5060;branch=z9hG4bK618FF Voice Media From: ;tag=4320068C-1F6B v=0 o=CiscoSystemsSIP-GW-UserAgent 8190 1299 IN IP4 14.1.97.15 essages s=SIP Call re-INVITE c=IN IP4 14.1.97.15 t=0 0 m=image 16582 udptl t38 200 OK c=IN IP4 14.1.97.15 a=T38FaxVersion:0 g ccsip m uu ACK a=T38MaxBitRate:14400 a=T38FaxFillBitRemoval:0 a=T38FaxTranscodingMMR:0 deb a=T38FaxTranscodingJBIG:0 a=T38FaxRateManagement:transferredTCF T.38 a= T38FaxMaxBuffer:200 a=T38FaxMaxDatagram:72 a=T38FaxUdpEC:t38UDPRedundancy

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 78 Troubleshooting Protocol-Based Switchover—MGCP and T.38

A NTFY containing *Feb 4 17:01:36.597: MGCP Packet sent to 172.18.110.85:2427---> NTFY 935850485 S2/SU0/DS1 -0/23@CAE-DH-3845-2 MGCP 0.1 FXR/t38(start) initiates N: [email protected]:2427 the MGCP T.38 X: 17 O: FXR/t38(start) switchover <--- Unified CM

CAE-DH-3845-2#show ccm-manager MGCP Domain Name: CAE-DH-3845-2 Priority Status Host ======Primary Registered CAE-DH-7845 (172 . 18. 110. 85) First Backup None Second Backup None

Voice Media Current active Call Manager: 172.18.110.85 Voice Voice T.38 Gateway Gateway TIP: Omission of the configuration (Sending) (Receiving) command mgcp package-capability fxr- package is the most common cause of MGCP T.38 failing

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 79 Troubleshooting Protocol-Based Switchovers With Cisco RTMT

. Cisco Rea l Time Mon itor ing Too l (RTMT) log v iewer can show protocol-based switchover information

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 80 Troubleshooting the Fax/Modem Media: Gateway DSP Statistics

CAE-DH-3845-2#terminal monitor CAE-DH-3845-2#show voice call 0/1/1 0/1/1 vtsp ll0ttlevel 0 state = SCONNECTS_CONNECTvpm level 1 st at e = FXSLS _CONNECT vpm level 0 state = S_UP calling number , calling name unavailable, calling time 02/03 04:20 CAE-DH-3845-2# ***DSP FAX RELAY STATISTICS*** Max Jit Depp,th: 36, Max Nwk RxQ Depp,th 3, Jitter Overflow Pkt Drops: 0 Nwk RxQ Overflow: 0, Tx Pkts: 247, Tx Pkts Drops(Nwk Busy): 0 Rx Pkts: 677, Rx Pkts Loss: 0, Rx Invalid Pkts: 0, Rx Pkts Out Of Seq: 0 Recent Hi-Speed Modulation: V.17/long/14400TX Pages: 2 Max SendInQ Depth 2, Max RecvOutQ Depth 2 Max Hi-Speed Buf Usage 54, SendInQ Overflow 0, RecvOutQ Overflow 0 . DSP packet statistics on Cisco voice gateways provide IP network information about the active, incoming media stream for fax/modem passthrough, Cisco fax relay, and T. 38 . Errors in these stats typically indicate packet loss and/or jitter problems . The command “show call active voice brief” also provides some DSP statistics and information about the media stream

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 81 Fax Relay Message Debugging

fr-msg-det Voice Fax Messaggye received by DSP Gateway IP

fr-msg-tx Message transmitted by DSP

. The command debug fax relay t30 all-level-1 displays T.30 messages for T.38 and Cisco fax relay from the DSP’s perspective on the POTS/PSTN side of the gat ew ay . Inbound messages are flagged fr-msg-det and messages sent by the DSP out the telephony interface are indicated by fr-msg-tx

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 82 Sample Output From “debug fax relay t30 all-level-1”

Nov 2 17:19:22.928: 0/0/0 (42) 626612205 fr-entered=10(ms) timestamp= 626613325 fr-msg-det NSF timestamp=626614305 fr-msg-det CSI timestamp=626615005 fr-msg-det DIS timestamp=626617385 fr-msg-tx TSI Output from the Cisco timestamp=626618185 fr-msg-tx DCS voice gateway command: debug fax relay t30 all-level-1 timestamp=626623295 fr-msg-det CFR timestamp=626648365 fr-msg-tx EOP timestamp=626649985 fr-msg-det MCF timestamp=626652165 fr-msg-tx DCN Nov 2 17:20:03.208: 0/0/0 (42) 626652485 fr-end-dcn . This debug is only valid for T.38 and Cisco fax relay as the gateway plays an active role in modulating and demodulating the T.30 fax messages

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 83 Tips for Using “debug fax relay t30 all-level-1”

. Primary debug used for troubleshooting T.38 and Cisco flfax relay probl blCiiems on a Cisco voice ga teway . Only low-speed T.30 messages are displayed so high sppgpgeed communications such as trainings and page transmissions are not shown . If there are multiple fax calls occurring at once you can specify a called or calling number to only view the debug messages for a specific call . The “level-2” option for this debug is only readable by the DSP vendor and it should not be enabled . This debug (as well as packet captures) is useful for viewing unique T.30 problem signatures

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 84 Unique T.30 Debug Signature: Delay

T.30 Negotiation Voice Voice Failure With a Likely GtGateway GtGateway Cause of Too Much Delay Between the PSTN IP Fax Endpoints

. T.30 messages are not being NSF/CSI/DIS debug fax relay t30 all-level-1 received before previous messages are retransmitted DCS (train) fr-entered (10ms) fr-msg-det NSF . Common cau ses of delay fr-msg-det CSI NSF/CSI/DIS are satellite links or multiple VoIP fr-msg-det DIS hops fr-msg-tx DCS DCS (train) fr-msg-det CSI . Adjusting the playout buffer on fr-msg-det DIS Cisco voice gateways may help NSF/CSI/DIS fr-msg-tx DCS fr-msg-det NSF . For example, configure playout- DCS (train) fr-msg-det CSI delay fax 100 under the fr-msg-det DIS appropriate dial-peer to lower the fr-msg-tx DCS playout buffer to 100 ms

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 85 Unique T.30 Debug Signature: Corruption

Voice Voice Gateway Gateway T.30 Negotiation Failure With a Likely PSTN IP CfCtdCause of a Corrupted Training Signal NSF/DIS debug fax relt30lllay t30 all-ll1level1 TSI/DCS (train) fr-entered=10(ms) . Fax machine is receiving a fr-msg-det NSF corrupted training signal and FTT fr-msg-det DIS sendinggg an FTT message ffr-msg-tx TSI TSI/DCS (train) fr-msg-tx DCS . Most common cause of a fr-msg-det FTT corrupted training is PSTN FTT fr-msg-tx TSI impairments, such as clock slips ffr-msg-tx DCS . First step is to always confirm TSI/DCS (train) fr-msg-det FTT fr-msg-tx TSI that any digital circuits are free FTT fr-msg-tx DCS of errors fr-msg-det FTT

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 86 Viewing Digital Circuit Errors

T1 0/1/0 is up. Output from the Cisco Applique type is Channelized T1 voice gateway command: Cablelength is long gain36 0db show controller t1 No alarms detected. alarm-trigger is not set Skiti3ClSoaking time: 3, Clearance ti10time: 10 AIS State:Clear LOS State:Clear LOF State:Clear Version info Firmware: 20060711, FPGA: 13, spm_count = 0 Framing is ESF, Line Code is B8ZS, Clock Source is Line. CRC Threshold is 320. Reported from firmware is 320. Data in current interval (729 seconds elapsed): 0 Line Code Violations, 0 Path Code Violations 24 Slip Secs, 0 Fr Loss Secs, 0 Line Err Secs,,g 0 Degraded Mins 24 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs Total Data (last 24 hours) 0 Line Code Violations, 0 Path Code Violations, 2989 Slip Secs, 0 Fr Loss Secs, 0LineErr0 Line Err Secs, 0 Degraded Mins, 2989 Errored Secs, 0 Bursty Err Secs, 0 Severely Err Secs, 0 Unavail Secs

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 87 Confirming the Training in T.38

. The TCF or training signal is a pattern of all 0s . Other hex values shown in the TCF decode can cause the training to fail . This training pattern can be checked within Wireshark to confirm its integrity

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 88 Scan Line Corruption Snippet from a corrupted fax page

. In addition to training problems, PSTN errors and impairments can also cause scan lines to become corrupted . Problem will not be viewable with Error Correction Mode (ECM) faxes but instead faxes will take a long time to complete or fail completely

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 89 Audio Trace of Scan Line and Training Corruption

DCS-train DCN

Page EOP

DIS CFR MCF

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 90 Preventing Corruption of the Training and Scan Lines

. Ensure that all digital circuits in the fax path are error free . Configure the clocking correctly on Cisco voice gateways to avoid slips on digital PSTN interfaces, which are notorious for causing training and scan line corruption . Mak e sure th at th e IP path i s f ree f rom jitt er and packet loss . Major corruption problems prevent the fax endpoints from training while less severe problems may allow training to occur but fax page data is affected

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 91 Fax Servers

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 92 What Is a ?

H.323/SIP Call Setup G711VoiceG.711 Voice T.38 Fax

Fax Cisco Voice Server Gateway

. A software application running on a server that processes fax calls over a PSTN or IP connection . A “Cisco Unified Communications Manager” for handling fax traffic . Provides secure, automated, and efficient handling of an organitifizations fax t tffiraffic

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 93 Fax Server Components

Server Fax Hardware Engine Application Software

. Server hardware requirements are defined by fax server vendors . Application software is produced by a variety of vendors and it handles administration , configuration, and integration functions . Fax engine is either hardware (typically a PCI fax board installed into the server) or software-based

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 94 Why Migrate to a Fax Server?

Faxes can be directed to a specific user or Security storaggye system with limited access Fax servers can help automate process Workflow management procedures and specific Integration workflow applications Faxes can efficiently stored and indexed to Archiving comply with industry mandates such as Sarbox or SOx and HIPAA All faxes sent or received along with Accountability confirmation of their success or failure can be handled with a fax server solution MFPs integrate directly with fax servers for MFP Integration increased cost savings and flexibility Users have the ability to send/receive faxes Integration directly via email

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 95 Fax Server Access Methods Fax Server

API Web Browser

IP

Client Mail Software Server Application MFP

. Users can access a fax server through interfaces such as a web browser, email, an MFP, and client software . Other devices and automated processes can communicate directly with a fax server through different APIs

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 96 Fax Server Integration With Cisco Unified Communications Manager H.323/SIP Fax H.323/SIP H.323/SIP Unified CM Server

Cisco Voice GtGateways . Fax servers communicate with Cisco Unified Communications Manager using H.323 or SIP . Regardless of the call control protocol between the fax server and Cisco Unified Communications Manager, H.323, SIP, or MGCP can be used between Cisco Unified Communications Manager and the ggyateway . T.38 media flows between the fax server and the voice gateways

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 97 Integrating a Fax Server with a SIP Trunk . T.38 fax relay is the best choice for sending faxes over SIP trunks . No special modifications or configurations are typically necessary on a fax server to utilize SIP trunks, especially when a border element is present

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 98 Cisco Fax Server: Centralized Solution

Fax Fax Email Fax Server Client Client

Voice Gateway

Unified CM MFP

. Cisco fax server is the Open Text Fax Server (RightFax) application on a Cisco MCS server . A full featured, scalable enterprise solution that is centralized and supports both hardware and software-based fax engines to handle various integration solutions . Deployed internally by Cisco in conjunction with Multifunction Peripherals (MFPs)

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 99 AXP-XMediusFAX: Branch Solution

. Branches typicall y have little IT infrastructure and staff to maintain server and application hardware . Integrate fax server directly into the local ISR gateway

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 100 Cisco AXP: XmediusFAX Solution

APPRE AXP Module XMediusFAX Cisco ISR Gateway

. XmediusFAX server on an ISR blade . AXP runs a hardened Linux OS and provides a virtualized hosting environment . XmediusFAX integgyrates directly with ISR architecture and is able to be configured and managed through the IOS CLI . Functionality of a standalone fax server with no footprint . Addresses th e need f or effi ci entl y h andli ng f ax t raffi c at th e l ocal branch level

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 101 Complete Your Online Session Evaluation

. Give us your feedback and you could w in fa bu lous pr izes. Winners announced daily. . Receive 20 Cisco Preferred AitfhiAccess points for each session evaluation you complete. . Complete your session evaluation online now (open a browser through our wireless network to access our portal) or visit one of the Internet Don’t forggyet to activate your stations throughout the Cisco Live and Networkers Virtual Convention Center. account for access to all session materials, communities, and on-demand and live activities througyghout the year. Activate your account at any internet station or visit www.ciscolivevirtual.com.

Presentation_ID © 2010 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 102