May 2004 Fax and Modem Training 1 Modem

  • Slides: 26
Download presentation
May 2004 Fax and Modem Training 1

May 2004 Fax and Modem Training 1

Modem Types 2

Modem Types 2

T. 30 FAX protocol • T. 30 is control protocol between fax machines. It

T. 30 FAX protocol • T. 30 is control protocol between fax machines. It is used for call establishment, capabilities exchange, end-of page and multipage signaling and call release • The T. 30 control signals are send at speed of 300 bps and are modulated according to ITU V. 21 standard • Image data is send at speed of 2, 400 – 14, 400 bps 3

T. 30 FAX Tones • CNG – Originating FAX calling tone, short periodic tone

T. 30 FAX Tones • CNG – Originating FAX calling tone, short periodic tone of 1100 Hz, 0. 5 sec every 3. 5 seconds • CED – FAX answering tone, continuous 2100 Hz , 2. 6 to 4. 0 seconds duration • V. 21 Preamble – series of HDLC flags send for 1. 5 seconds, modulated on 1650 Hz 4

Fax basic call CNG Answer CED Preamble followed by DIS Preamble followed by DCS

Fax basic call CNG Answer CED Preamble followed by DIS Preamble followed by DCS Training (TCF) Preamble followed by CFR Training (TCF) Transmit Fax page) End of procedure (EOP) 5

T. 30 FAX signal messages • DIS – Digital Identification signal indicating terminating fax

T. 30 FAX signal messages • DIS – Digital Identification signal indicating terminating fax capabilities (such as data rate) • DCS – Digital Command signal indicating mtransmission mode (such as rate) that will be used by originating fax. • TCF – Training check sequence sent for 1. 5 seconds • CFR – Confirm to receive message, indicating that the fax is ready to receive the document. • MPS – Multi. Page signal, send after each page (if more than one page is send) • MCF – Message Confirmation that the page was received • EOP – End of procedure message, indicating that there are no more page to be sent. • DCN – Disconnect message 6

Fax T. 30 Diagram CNG DCS/TCF Fax Image P 1/MPS Fax Image P 2/EOP

Fax T. 30 Diagram CNG DCS/TCF Fax Image P 1/MPS Fax Image P 2/EOP DCN PCM In ORG L CED/DIS CFR MCF PCM In ANS R 8 7

T. 38 messages are divided into three groups: 1) T. 30 Indicator messages –

T. 38 messages are divided into three groups: 1) T. 30 Indicator messages – 1 byte packets indicating No signal, CNG, CED, V. 21 preamble, …) – such as "00 00 01 06“ “ 00 00” – are the T. 38 packet sequence number “ 01” – number of bytes, 1 byte in this example “ 06” – code of V. 21 preamble “ 04” – code of CED signal 2) Low speed data control messages (V. 21 data) – usually 6 bytes packets carrying T 30 control messages such as DIS, DCS, EOP, DCN (used for FAX capabilities exchange, end of page and call release)…. – such as "00 02 06 c 0 01 80 00 00 c 0" (packets starting with c 0 01 80. . are the V. 21 data) 3) High speed data type message– usually 50 bytes (or more) packets containing fax image. 8

T. 38 Packets The following parameters define the T. 38 packet redundancy. a) Fax.

T. 38 Packets The following parameters define the T. 38 packet redundancy. a) Fax. Relay. Enhanced. Redundancy. Depth = 0 to 4 b) Fax. Relay. Redundancy. Depth = 0 to 2 The "'Fax. Relay. Enhanced. Redundancy. Depth" parameter defines the redundancy level (or number of repetitions) of T. 30 Indicator messages and redundancy level of low speed data control messages. For example if "Fax. Relay. Enhanced. Redundancy. Depth = 2" each indicator message will be send three times: 00 00 01 06 The Low speed data control messages with Fax. Relay. Enhanced. Redundancy. Depth =4 00 09 06 c 0 01 80 00 00 8 c 00 04 06 c 0 01 80 00 00 c 2 06 c 0 01 80 00 00 c 0 06 c 0 01 80 00 00 ff 06 c 0 01 80 00 00 c 8 In the example above the first six bytes are current data (c 0 01 80 00 00 8 c), while the other 4 groups of six bytes contain data of earlier four T. 38 packets. The "Fax. Relay. Redundancy. Depth" parameter defines the redundancy of high speed data packets. For example if "Fax. Relay. Redundancy. Depth = 2" each T. 38 packet will carry current data and the data of previous two packets. 9

Annex D Real-time facsimile over H. 323 systems • Annex defines H. 323 procedure

Annex D Real-time facsimile over H. 323 systems • Annex defines H. 323 procedure to transfer T. 38 packets. 10

Replacing an existing audio stream with a T. 38 fax stream 11

Replacing an existing audio stream with a T. 38 fax stream 11

SIP T. 38 Call Flow 12

SIP T. 38 Call Flow 12

T. 38 REINVITE Message (F 11) 13

T. 38 REINVITE Message (F 11) 13

SIP 200 OK to T 38 REINVITE (F 14) 14

SIP 200 OK to T 38 REINVITE (F 14) 14

H 323/SIP FAX Configuration Parameters • Is. Fax. Used 0 - No 1 -

H 323/SIP FAX Configuration Parameters • Is. Fax. Used 0 - No 1 - Fax is send/received using SIP or H 323 Annex D. T 38 procedure • Det. Fax. On. Answer. Tone 0 - Receiving Gateway will initiate T 38 on receiving V. 21 preamble signal from FAX (default) 1 - Receiving GW will initiate T 38 upon receiving of CED answer tone from Fax (not recommended) • CNGDetector. Mode 0 – don’t use (default) 2 - T. 38 will start after CNG detection (applicable only for SIP and not recommended) 15

Channel Parameters (1) • DJBuf. Min. Delay 0 to 150 msec (default = 70)

Channel Parameters (1) • DJBuf. Min. Delay 0 to 150 msec (default = 70) Dynamic Jitter Buffer Minimum Delay. • DJBuf. Opt. Factor 0 to 13 (default = 7) Dynamic jitter buffer frame error/delay optimization. 13 is used for fax and modem calls • Fax. Transport. Mode Sets the Fax transport 0 = disable (transparent mode) 1 = relay, (default, to be used for T. 38) 2 = bypass. 16

Channel Parameters (2) • Fax. Relay. Enhanced. Redundancy. Depth 0 to 4 (default =0)

Channel Parameters (2) • Fax. Relay. Enhanced. Redundancy. Depth 0 to 4 (default =0) Number of repetitions to be applied to each fax control packet • Fax. Relay. Redundancy. Depth 0 to 2 (default =0) Number of repetitions to be applied to each fax relay payload when transmitting to network • Fax. Relay. Max. Rate Limits the maximum rate at which fax messages are transmitted. 0 = 2. 4 kbps 1 = 4. 8 kbps 2 = 7. 2 kbps 3 = 9. 6 kbps 4 = 12. 0 kbps 5 = 14. 4 kbps, (default) • Fax. Relay. ECMEnable 0 = Disable using ECM mode during Fax Relay 1 = Enable using ECM mode during Fax Relay. (default) 17

Channel Parameters (3) • Fax. Modem. Bypass. Basic. RTPPacket. Interval 0 – set internally,

Channel Parameters (3) • Fax. Modem. Bypass. Basic. RTPPacket. Interval 0 – set internally, default (20 msec) 1 – 5 msec (not recommended) 2 – 10 msec 3 – 20 msec • Fax. Modem. Bypass. DJBuf. Min. Delay 0 to 150 msec (default 40 msec) Jitter Buffer during Modem/Fax bypass , • NSEMode Cisco compatible modem bypass mode 0 = NSE Disabled (default) 1 = NSE Enabled Note: if used with SIP, the SDP contains “a=rtpmap: 100 X-NSE/8000” for 100 as NSE payload type • NSEPayload. Type Range 96 -127, default NSE payload type is 105. Cisco are using 100 18

Channel Parameters (4) • Fax. Modem. Bypass. Coder. Type - Coder to be used

Channel Parameters (4) • Fax. Modem. Bypass. Coder. Type - Coder to be used while performing fax/modem bypass. Refer to ac. TCoders enumeration. Usually, high bit rate coders such as G. 711 and G. 726/G. 727 should be used. 0 = G 711 A-law =0, (default) 1 = G 711 -law=1, 4 = G 726_32 11 = G 727_32. • Fax. Modem. Bypass. M Number of 20 msec payloads to be used for generating one RTP fax/modem bypass packet. 1, 2 (default = 1) • Fax. Bypass. Payload. Type - Fax Bypass RTP dynamic payload type, default 102 • Modem. Bypass. Payload. Type Modem Bypass RTP dynamic payload type, default 103 19

Channel Parameters (5) • V 21 Modem. Transport. Type 0 = Transparent, (default) 2

Channel Parameters (5) • V 21 Modem. Transport. Type 0 = Transparent, (default) 2 = Modem. Bypass. • V 22 Modem. Transport. Type 0 = Transparent 2 = Modem. Bypass, (default). • V 23 Modem. Transport. Type 0 = Transparent 2 = Modem. Bypass, (default). • V 32 Modem. Transport. Type (For V. 32 & V. 32 bis modems) 0 = Transparent 2 = Modem. Bypass, (default). • V 34 Modem. Transport. Type (For V. 34 & V. 90 modems) 0 = Transparent 2 = Modem. Bypass, (default). 20

T. 38 FAX parameters – example 1 Is. Fax. Used = 1 /* Should

T. 38 FAX parameters – example 1 Is. Fax. Used = 1 /* Should be “ 1” for H 323/Annex D Fax. Transport. Mode = 1 (default) Det. Fax. On. Answer. Tone = 0 /* Fax Relay, shall be set automatically if Is. Fax. Used=1 /* or SIP/T 38 Rx GW will start T 38 on V. 21 Preamble – (default) ; Optional but recommended Fax. Relay. Enhanced. Redundancy. Depth = 4 Fax. Relay. Redundancy. Depth = 2 Fax. Relay. ECMEnable = 1 Fax. Relay. Max. Rate = 5 (or lower) /* /* Repetitions of control packets Repetitions of T. 38 payload packets Enable ECM mode 14. 4 kbps (default), 3 for 9, 6, … 21

Trasparent FAX parameters – example 2 Is. Fax. Used = 0 /* Don’t use

Trasparent FAX parameters – example 2 Is. Fax. Used = 0 /* Don’t use Annex D Fax. Transport. Mode = 0 Coder. Name = g 711 Ulaw 64 k V 21 Modem. Transport. Type = V 22 Modem. Transport. Type = V 23 Modem. Transport. Type = V 32 Modem. Transport. Type = V 34 Modem. Transport. Type = DJBuf. Opt. Factor = 13 SCE = 0 ECE = 1 /* /* /* 0 0 0 Transparent mode, fax is handled same as voice G. 711 A_law or U_law Transparent Transparent optimized jitter buffer for data No silence suppression Echo canceller enabled 22

Fax/Modem Bypass Mode – example 3 Is. Fax. Used = 0 /* Don’t use

Fax/Modem Bypass Mode – example 3 Is. Fax. Used = 0 /* Don’t use T 38 H 323/SIP procedures Fax. Transport. Mode = 2 Fax. Modem. Bypass. Coder. Type = 0 /* Bypass mode, fallback to G. 711 if fax /* g 711 Ulaw 64 k/A_law default bypass coder Fax. Bypass. Payload. Type = 102 /* FAX Bypass dynamic payload type Modem. Bypass. Payload. Type = 103 /* Modem Bypass dynamic payload type Fax. Modem. Bypass. Basic. RTPPacket. Interval = 3 V 21 Modem. Transport. Type V 22 Modem. Transport. Type V 23 Modem. Transport. Type V 32 Modem. Transport. Type V 34 Modem. Transport. Type = = = 2 2 2 /* /* /* 2 for 10 msec, 3 for 20 msec Bypass Bypass Fax. Modem. Bypass. DJBuf. Min. Delay = 40 /* 0 -150 msec, minimal delay for bypass 23

Modem Bypass CISCO NSE Mode parameters – example 4 Is. Fax. Used = 1

Modem Bypass CISCO NSE Mode parameters – example 4 Is. Fax. Used = 1 /* Use T 38 H 323/SIP procedures NSEMode = 1 NSEPayload. Type = 100 Fax. Modem. Bypass. Basic. RTPPacket. Interval = 2 /* 2 for 10 msec, 3 for 20 msec Modem. RTPBypass. Payload. Type = 103 /* Modem Bypass dynamic payload type V 21 Modem. Transport. Type V 22 Modem. Transport. Type V 23 Modem. Transport. Type V 32 Modem. Transport. Type = = 2 2 V 34 Modem. Transport. Type = 2 /* /* Bypass /* Bypass ; 24

V. 34 Faxes • Up to 33, 600 bit/s compared to 14400 with T.

V. 34 Faxes • Up to 33, 600 bit/s compared to 14400 with T. 30 faxes • At the start looks exactly same as modem • Can’t be transmitted using T. 38 relay, unless fallback to T. 30 • Always works with ECM enabled • Answering fax tone is called ANSam (2100 hz with amplitude-modulation. • The ANSam tone is followed by V. 8 signal • V. 34 capable terminal responds with Call Menu (CM) signal to the detection of ANSam. 25

Supporting V. 34 Faxes V. 34 fax machine full rate is available only in

Supporting V. 34 Faxes V. 34 fax machine full rate is available only in Bypass mode , when the channel is configured in one of the configurations described below: 1) Fax. Transport. Mode = 2 (Bypass) Vxx. Modem. Transport. Type = 2 (Modem bypass) In this configuration, both T. 30 and V. 34 faxes (and all other Modems) work in Bypass mode 2) Fax. Transport. Mode = 1 (Relay) Vxx. Modem. Transport. Type = 2 (Modem bypass) In this configuration, T. 30 faxes use Relay mode (T. 38) while V. 34 Fax uses Bypass mode. In order to use V. 34 fax in Relay mode (fallback to T. 38), you must configure: Fax. Transport. Mode = 1 (Relay) Vxx. Modem. Transport. Type = 0 (Transparent) This configuration forces the V. 34 fax machine to work in T. 30 mode. 26