Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Presentation_ID
Cisco Public
Agenda
Fundamental Concepts
Fax Transport Methods
QoS Considerations
Design Best Practices
Troubleshooting
Fax Servers
BRKVVT-2021_c1
Cisco Public
Fundamental Concepts
BRKVVT-2021_c1
Cisco Public
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 in IP Telephony
Group 3 (G3) is todays fax standard
(speeds up to 14.4 kbps)
Super G3 is an optional extension of G3
that allows for speeds up to 33.6 kbps
Cisco Public
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.6Specifies the Fax Page Encoding Algorithm
PSTN
T.30Signaling and Negotiation Between Fax Machines
BRKVVT-2021_c1
Cisco Public
Sending Fax
The optional Called
Subscriber Identification
(CSI) and Non-Standard
Facilities (NSF) messages
may be transmitted along
with the DIS message
The optional Transmitting
Subscriber Identification
(TSI) message may be
transmitted along with the
DCS message
Blue messages indicate
low speed T.30 signaling
and gold messages
represent higher speed
modulations used in training
and page transmission
Ringing, Offhook,
Offhook,
then dial
Answer
Calling Tone (CNG)
Called Tone (CED)
Digital Identification Signal (DIS)
Digital Command Signal (DCS)
Training Check (TCF)
Confirmation (CFR)
Fax Page Transmission
End of Procedure (EOP)
Message Confirmation (MCF)
Disconnect (DCN)
BRKVVT-2021_c1
Cisco Public
PSTN
T.30Signaling and Negotiation Between Fax Machines
How Do Standard Fax Communications Integrate With IP Networks?
IP
T.30Signaling and Negotiation Between Fax Machines
BRKVVT-2021_c1
Cisco Public
Passthrough
Modulated fax data information is sampled and encoded as
standard PCM (i.e., G.711) and encapsulated in 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
Analog
Modulated Data
RTP
Analog
Modulated Data
RTP
IP
BRKVVT-2021_c1
Cisco Public
Relay
The analog modulated fax data is demodulated by a DSP on
the gateway and the binary information is extracted
Binary information is passed over IP using 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
Modulated Data
Relay Protocol
Relay
Relay
Relay
Relay
Analog
Modulated Data
00101011
IP
BRKVVT-2021_c1
Cisco Public
10
The Switchover
OGW
TGW
VoIP Call
Switchover
Fax Call
Fax/Modem Media
BRKVVT-2021_c1
Cisco Public
11
BRKVVT-2021_c1
Cisco Public
12
Passthrough
Fax
Fax
Passthrough Pass-through
(NSE)
(Protocol)
BRKVVT-2021_c1
Cisco Public
T.38
Fax Relay
(Protocol)
T.38
Fax Relay
(NSE)
Cisco
Fax Relay
13
Fax
Passthrough
Protocol-Based
Switchover
Passthrough Switchover
1.
Codec upspeed
2.
3.
Fax
Pass-through
Fax Passthrough
BRKVVT-2021_c1
Cisco Public
14
Fax A
RTP
NSE
RTP
OGW
Protocol-Based
Switchover
H.323
Fax
NSE
RTP
IP
SIP
Call Direction
NSE
TGW
Tone
Detection
Fax B
BRKVVT-2021_c1
Cisco Public
16
RTP Payload
NSE Data
PT
Event ID
BRKVVT-2021_c1
Cisco Public
Volume
Duration
18
Description
192
193
194
199
200
201
202
203
BRKVVT-2021_c1
Cisco Public
19
TGW
VoIP Call
NSE-192
NSE-192
Cisco Public
20
TGW
VoIP Call
NSE-192
NSE-192
OGW: Upspeed
codec and switch to
Passthrough mode
NSE-193
NSE-193
BRKVVT-2021_c1
Cisco Public
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 pl: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
Cisco Public
22
NSE
RTP
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.)
BRKVVT-2021_c1
Cisco Public
23
TGW
The initial VoIP call is
setup using the SIP
call control protocol
Pass-through
parameters for the
upcoming session
are established in
the SIP INVITE and
200 OK messages
ACK
BRKVVT-2021_c1
V.21
Preamble
100 Trying
200 OK
An H.245 Request
Mode for G.711 is used
to signal the switchover
in H.323 to fax passthrough mode
CED Tone
Cisco Public
24
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
IP 1.1.1.2:17620 SRTP: off rtt:4ms pl:40/0ms lost:1/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
Cisco Public
25
RM
SIP INVITE
IP
MGCP:
Fax pass-through is NOT supported for MGCP
SCCP:
Fax pass-through is NOT supported for SCCP
BRKVVT-2021_c1
Cisco Public
26
Passthrough
Fax
Fax
Passthrough Pass-through
(NSE)
(Protocol)
BRKVVT-2021_c1
Cisco Public
T.38
Fax Relay
(Protocol)
T.38
Fax Relay
(NSE)
Cisco
Fax Relay
27
T.38 Fax
Relay
NSE-Based
Switchover
T.38 Fax
Relay
RTP PT
Switchover
Cisco Fax
Relay
Fax Relay
BRKVVT-2021_c1
Cisco Public
28
UDP
Header
RTP
Header
Cisco Public
29
UDP
Header
UDPTL
Header
Cisco Public
33
T.38 SwitchoverNSE
OGW
TGW
VoIP Call
NSE-200
NSE-201
Cisco Public
34
T.38 SwitchoverH.323
OGW
TGW
The initial VoIP call is
setup using the H.323
call control protocol
V.21
Preamble
Cisco Public
35
VoIP Call
After Switchover: show call active voice brief
11E2 : 4 2956390ms.1 +10500 pid:1 Originate 200 active
dur 00:00:46 tx:707/13770 rx:914/12339
IP 1.1.1.2:18496 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
Cisco Public
NSE
RTP
NSE
RTP
NSE
IP
MGCP:
no mgcp fax t38 inhibit
Note: Default MGCP configuration but behavior varies
if downloading gateway config from CUCM.
SCCP:
Cisco Public
39
RM
SIP INVITE
MGCP
NTFY
IP
MGCP:
mgcp package-capability fxr-package
mgcp default-package fxr-package
SCCP:
SCCP does not support
protocol-based T.38
BRKVVT-2021_c1
40
QoS Considerations
BRKVVT-2021_c1
Cisco Public
41
IP
Branch 1
BRKVVT-2021_c1
Cisco Public
Branch 2
Branch 3
42
Jitter
Originating
Gateway
Terminating
Gateway
T.38
T.38
T.38
T.38
T.38
Delay
Cisco Public
43
Originating
Gateway
IFP 2
(Secondary)
IFP 3
(Primary)
IFP 1
(Secondary)
IFP 2
(Primary)
Terminating
Gateway
IFP 1
(Primary)
BRKVVT-2021_c1
Cisco Public
44
IP
PSTN
Satellite links
cause large
amounts of delay
IP
Cisco Public
45
IP
11
10
Fax
Fax Fax
9
Fax
Evenly spaced
packets are played
out to the DSP for
transmission on
the PSTN
3
Fax
Fax
Fax
DSP
Codec
(T.38)
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 large playout buffers, FoIP can handle larger amounts of jitter
than VoIP but as a best practice it is still recommended to keep jitter to
a minimum
BRKVVT-2021_c1
Cisco Public
46
Voice
Jitter
Packet Loss
< 150 ms
< 30 ms
(one-way,
(average,
(mouth to ear) one-way)
< 1%
< 1000 ms
None*, unless
using T.38
with
redundancy
Fax
*Fax passthrough is very sensitive to packet loss and may be able to handle 0.1%0.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.
BRKVVT-2021_c1
Cisco Public
47
Gateway
T.38
dial-peer voice 100 voip
destination-pattern 100
session target ipv4:10.1.1.1
fax protocol t38 ls-redundancy 0 hs-redundancy 0
fallback cisco
ip qos dscp cs3 signaling
T.38
IP
Fax, modem, and text QoS marking via DSCP can be simply 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 dialpeer voice
Default dial-peer QoS markings are af31 for signaling and ef
for media
Cisco recommended best practice is to use cs3 for signaling
BRKVVT-2021_c1
Cisco Public
48
Fax
Queuing
Marking
F DD V
F D D DD V V F
Fax
OGW
TGW
IP
Phone
Phone
PC
PC
Cisco Public
BRKVVT-2021_c1
Cisco Public
50
Design considerations
Bandwidth utilization
Super G3
ECM
T.38 Fallback
Protocol and product support
T.38: de facto standard
BRKVVT-2021_c1
Cisco Public
51
Gateway to Gateway
H.323/SIP Voice Signaling
H.323/SIP Fax Signaling
Fax
Gateway
Gateway
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
payload type switchovers (Cisco fax relay) happen within the voice media
stream while protocol-based switchovers (fax pass-through and protocolbased T.38) happen within the call control protocol
BRKVVT-2021_c1
Cisco Public
52
H.323/SIP/MGCP/SCCP
Gateway
Gateway
Fax
IP
Voice media is
established by Unified
CM using the H.323,
SIP, MGCP, or SCCP
protocols
Voice Media
NSE/PT Switchover
Fax Media
Cisco Public
53
Gateway
r
hove
c
t
i
Sw
T.38
GCP
M
/
P
3/SI
2
3
.
H
Unified CM
IP
T.38
Swi
tc h o
ver
H .3
23/S
IP/M
GC
P
Voice Media
Voice media is
established by Unified
CM using the H.323,
SIP, or MGCP protocols
T.38 Media
isco
Pra Best
ctic
e
Gateway
Fax
Cisco Public
55
Cisco Unified
Communications Manager
Software Release
H.323
Cisco Public
57
Design considerations
Bandwidth utilization
Super G3
ECM
T.38 Fallback
Protocol and product support
T.38: de facto standard
BRKVVT-2021_c1
Cisco Public
58
BRKVVT-2021_c1
Cisco Public
Codec
Bandwidth1
83 Kbps
G.729 (8 Kbps)
27 Kbps
19 Kbps
Fax passthrough/
pass-through (G.711)
83 Kbps
170 Kbps
25 Kbps2
41 Kbps2
57 Kbps2
48 Kbps2
59
Super G3 Fax
Originating
Fax
Originating
Fax
Cisco Public
CNG
Terminating
Fax
CED
DIS
Terminating
Fax
ANSam
Calling Menu (CM)
Joint Menu (JM)
CJ Terminator
DIS
60
Sending Fax
TGW
Receiving Fax
CNG
ANSam
Sending fax
initiates SG3 call
by sending CM
CM
Sg3-to-g3 spoofing
feature on OGW
blocks CM message
DIS
Cisco Public
61
OGW
TGW
Receiving Fax
CNG
CED
DIS (ECM disabled)
Sending fax believes receiving
fax does not support ECM
TGW overwrites
ECM setting to disabled
Cisco Public
62
T.38 Fallback
dial-peer voice 100 voip
fax protocol t38 ls-redundancy 0
hs-redundancy 0 fallback cisco
Sending Fax
OGW
3845 TGW
8
T.3
T.3
8
IP
Receiving Fax
Receiving Fax
Cisco fax re
lay
Cisco Public
63
H.323
SIP
MGCP
SCCP
Cisco fax
relay
Yes*
Yes*
Yes*
Yes*
NSE-based
T.38
Yes
Yes
Yes
Yes
Protocolbased T.38
Yes
Yes
Yes
No
Fax passthrough
Yes
Yes
No
No
Modem
passthrough
Yes
Yes
Yes
Yes
Cisco Public
64
CFR
Fax Passthrough
Fax
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!
BRKVVT-2021_c1
Cisco Public
66
G.711 Voice
Pass-through
Pros
Cons
Interoperability between
different vendors
Not offered by many
Service Providers
Interoperability between
different vendors
Not supported by Cisco Unified
Communications Manager
Sensitive to impairments, no
redundancy
BRKVVT-2021_c1
Cisco Public
67
Troubleshooting
BRKVVT-2021_c1
Cisco Public
68
Gateway
Gateway
2. Switchover
3. Fax Media
Voice Media
Fax Media
BRKVVT-2021_c1
Cisco Public
69
Packet Captures
Unified CM
Capture media
and call control
Fax
Voice
Gateway
Capture media
and call control
Capture
call control
Voice
Gateway
Fax
IP
Cisco Public
70
BRKVVT-2021_c1
Cisco Public
72
Troubleshooting NSE-Based
Switchovers
debug voip rtp session named-event
Jan 10 22:01:58.471:
timestamp 0x20631C26
Jan 10 22:01:58.471:
Pt:100
Evt:192
Pkt:00 00 00 <Snd>>>
Jan 10 22:01:58.483:
timestamp 0xADA80F0A
Jan 10 22:01:58.483: <<<Rcv> Pt:100
Evt:192
Pkt:00 00 00
Cisco Public
73
BRKVVT-2021_c1
Cisco Public
74
Troubleshooting Protocol-Based
SwitchoversH.323 and T.38
BRKVVT-2021_c1
Cisco Public
Voice
Gateway
Voice
Gateway
Voice Media
T.38
76
Troubleshooting Protocol-Based
SwitchoverSIP and T.38
BRKVVT-2021_c1
Cisco Public
Voice
Gateway
Voice
Gateway
Voice Media
re-INVITE
200 OK
ACK
T.38
77
Unified CM
de
o
5 st M
4
2
H. que
Re
3
2
3
H.
de
bu
gm
gc
pp
A NTFY containing
FXR/t38(start) initiates the
MGCP T.38 switchover
ac
ke
ts
Troubleshooting Protocol-Based
SwitchoverMGCP and T.38
NT
FX FY
R/
t3
M
8(
GC
st
ar
P
t)
BRKVVT-2021_c1
T.38
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
Current active Call Manager:
<SNIP>
Voice Media
Voice
Gateway
(Sending)
172.18.110.85
Voice
TIP: Omission of the configuration
Gateway
(Receiving) command mgcp package-capability fxrpackage is the most common cause of
MGCP T.38 failing
Cisco Public
78
Troubleshooting Protocol-Based
Switchovers With Cisco RTMT
Cisco Public
79
Cisco Public
80
Voice
Message received by DSP Gateway
fr-msg-det
IP
fr-msg-tx
Message transmitted by DSP
Cisco Public
81
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
BRKVVT-2021_c1
Cisco Public
82
Voice
Gateway
PSTN
NSF/CSI/DIS
IP
debug fax
relay t30 all-level-1
fr-entered (10ms)
fr-msg-det NSF
fr-msg-det CSI
NSF/CSI/DIS
fr-msg-det DIS
DCS (train) fr-msg-tx DCS
fr-msg-det CSI
fr-msg-det DIS
NSF/CSI/DIS
fr-msg-tx DCS
fr-msg-det NSF
DCS (train)
fr-msg-det CSI
fr-msg-det DIS
fr-msg-tx DCS
DCS (train)
BRKVVT-2021_c1
Cisco Public
T.30 Negotiation
Failure With a Likely
Cause of Too Much
Delay Between the
Fax Endpoints
Voice
Gateway
PSTN
NSF/DIS
TSI/DCS (train)
IP
debug fax
relay t30 all-level1
fr-entered=10(ms)
fr-msg-det NSF
FTT
fr-msg-det DIS
fr-msg-tx TSI
TSI/DCS (train) fr-msg-tx DCS
fr-msg-det FTT
FTT
fr-msg-tx TSI
fr-msg-tx DCS
TSI/DCS (train) fr-msg-det FTT
fr-msg-tx TSI
FTT
fr-msg-tx DCS
fr-msg-det FTT
BRKVVT-2021_c1
T.30 Negotiation
Failure With a Likely
Cause of a Corrupted
Training Signal
Cisco Public
85
Cisco Public
86
Cisco Public
87
Cisco Public
88
DCS-train
Page
DIS
BRKVVT-2021_c1
CFR
Cisco Public
EOP
MCF
89
Fax Servers
BRKVVT-2021_c1
Cisco Public
91
Fax
Engine
Application Software
Cisco Public
93
Workflow
Integration
Archiving
Accountability
MFP Integration
Email Integration
BRKVVT-2021_c1
Cisco Public
94
API
IP
Mail
Server
Client
Software
Application
MFP
Cisco Public
95
MGCP
T.38
T.3 Fax
T.3 8 Fax
8F
ax
Unified CM
SI P
Fax
Server
H.323/SIP
H.323/SIP
H.323/SIP
Cisco Voice
Gateways
Cisco Public
96
Fax
Server
Fax
Client
Unified CM
MFP
Email
Client
Voice
Gateway
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)
BRKVVT-2021_c1
Cisco Public
97
AXP
APPRE
Module
XMediusFAX
Cisco Public
99
Q&A
BRKVVT-2021_c1
Cisco Public
100
Recommended Reading
For more detailed information
on fax, modem, and text
technologies for IPT, check
out the book:
BRKVVT-2021_c1
Cisco Public
101
BRKVVT-2021_c1
Cisco Public
BRKVVT-2021_c1
Cisco Public
103