T.30 Overview APAC FAE Training October 2004
Purpose of the training This training is intend for help to debug T.30 transmit problem over Mindspeed product. It is not for debug fax terminal application. Thus we care about external procedure, signal, timing, handshake. We do not care much about the fax internal theory, message contain, data compress and etc. By understand the T.30 procedure, help to debug Fax issue base on TDM trace and FPT signal wave from IP trace.
3.1) Protocol Stack We will focusing on T.30 and mention a little bit of T.4 and HDLC FAX APPLICATION Image Compression T.4/T.6 Handshaking T.30 T.30 Protocol Stack Data Link HDLC DATA PUMP V.27ter, V.29, V.17, V.34
3.3) Terms of fax device: Originate/Caller: start the call(Dialer) Answer/Called/Callee: answer the call Sender: device send fax page data (may be not the caller) Receiver: device receive fax page
3.2) terms of fax signal: Spectra and frequency analyze: Tone: CNG, CED. Low speed for signaling: V.21 (300bps) High speed for Data transmit V.27ter - up to 4800bps V.29 - up to 9600bps V.17 - up to 14400bps
4) Time sequence of a facsimile call: A general ideal Fax procedure was been cut into 5 Phase
5) Time sequence of a facsimile call(caller automatic operation) . Off hook . Dial Phase A . Device identification Phase B . Capability negotiation . Channel probing Phase C . Fax message exchange Phase D . Post message handshaking Phase E . Disconnect and . On hook
5.a) Phase Procedure
6) Typical Fax: GLcomm (TDM) Trace (Listen the signal wave)
A Typical Fax: FaxLab Trace (non-ECM mode 1page)
Phase Procedure Detail (cont.)
Phase A Call establishment Call establishment can be realized manually and/or automatically. (It is very few people in North America are using Manual fax. Automatic fax are more popular) Caller fax send CND Called fax send CED (it is optional on manual mode)
CNG (Calling tone) Spec
CNG Tone Wave CNG spectral
9) CED,(NSF,CSI,)DIS
CED Signal A continuous 2100 Hz ± 15 Hz tone for a duration of not less than 2.6 seconds and not more than 4.0 seconds. A 200ms ahead and 75 ± 20 ms silence after transmitting the CED
Phase B – Pre-message Procedure The pre-message procedure consists of the identification of capabilities and the commanding of the chosen conditions as well as the confirmation of acceptable conditions. i.e. Exchange ID; Negotiate transmit protocol and speed; Training(channel probing) DIS-digital identification signal(capabilities identification) DCS-digital command signal(the response of DIS, indicate what capability will been used in the transmit) CFR-confirmation to receive(the training is successful) FTT-failure to train(the training is failed) (CSI)-called subscriber identification (NSF)-non-standard facilities
11) preamble + (NSF)+(CSI) + DIS Low speed data. Binary @ HDLC frame structure @ V.21:300bps(FSK). Preamble The preamble shall precede all binary coded signalling whenever a new transmission of information begins in any direction (i.e. for each line turnaround). This preamble assures that all elements of the communication channel (e.g. echo suppressors) are properly conditioned so that the subsequent data may be passed unimpaired. This preamble shall be a series of flag sequences for 1 s +/- 15%. Flag sequence Format: 0111 1110 (in short: 1sec 0x7E)
11) preamble + (NSF)+(CSI) + DIS (CSI) - Called Subscriber Identification Optional frame (non-terminal) that provides the specific identity of the called subscriber by its international phone number . FCF(Facsimile Control Field) format - 0000 0010 . FIF(Facsimile Information Field) length - 20 bytes (NSF) -Non-Standard Facilities Optional frame (non-terminal) that may be used to identify specific user requirements which are not covered by T.30 number . FCF format - 0000 0100 . FIF length - min 3 bytes (the only standard portion of NSF) DIS - Digital Identification Signal Mandatory frame (terminal frame) that characterizes the capabilities of the called terminal . FCF format: 0000 0001 . FIF length - min 3 bytes (basic capabilities), 10 bytes defined as of 1996 (optional enhancements) Each bit or bit combination in the FIF maps over a capability
preamble + (NSF)+(CSI) + DIS Low speed signal spectral
Frame Structure of Message 1sec 0x7E BCD HDLC frame 1 HDLC frame 2 HDLC frame 3 0x7E 0x7E 0xFF 0xC8/C0 FCF FIF FCS 0x7E
Page Data Signal Spectral
Switch Back to Low Speed (Defined on T.4) Minimum 6 EOL on non-ECM; 2 EOL on ECM mode.
RTC (return to control from T.4)
5.2) Typical Message Exchanged in Fax Session (non-ECM) Caller Off Hook, Dial, CNG, 0.5 s ON at 1100 Hz, 3 s OFF Callee Off Hook, CED, 3 s ON at 2100 Hz Phase A DIS, at V.21 300 bps containing callee capabilities DCS, at V.21 300 bps containing the call settings Tone TCF, 1.5 s of 0s at the data rate selected by previous DCS Low Speed FTT, at V.21 300 bps indicating TCF not properly received Phase B High Speed DCS, at V.21 300 bps containing the call settings TCF, 1.5 s of 0s at the data rate selected by previous DCS CFR, at V.21 300 bps indicating that TCF was properly received Facsimile Message, at the data rate selected by previous DCS Phase C MPS, at V.21 300 bps indicating more pages are to be sent MCF, at V.21 300 bps, previous fax message was properly received Phase D Facsimile Message, at the data rate selected by previous DCS Phase C EOP, at V.21 300 bps indicating no more pages are to be sent MCF, at V.21 300 bps, previous fax message was properly received Phase D DCN, at V.21 300 bps indicating the and of the call, On Hook Phase E
Message Exchange for Fax Session (Call Map, ECM no error )
Message Exchange for Fax Session(Procedure Detail)
Procedure understanding CNG (-->Hello, I am the Calling fax terminal) CED (<==Hi, This is Called fax terminal) (NSF) (<~~I support this private protocol) (CSI) (<~~this is my phone number or ID) DIS (<==And, here is all my capability) (TSI) (~~>this is my ID) (NSS) (~~>response to NSF, the rest procedure not defined by ITU) DCS (==>Hello, let's start from this config: v.29,200x200,A4...) [TCF] (##>Training, can you recognize this speed signal???) CFR (<==Yes, You can send me the page in this speed) (/FTT) (<==No, try lower speed or protocol) [Page] (##>Attention, by the speed you agreed, here is the page!!!) MPS (==>And, I have more page to send to you) MCF (<==Good, I got the page, go on) (/RTP) (<==OK, but please retrain before rest of the page) (/RTN) (<==Sorry, I did not get the page. please retrain and resend the page) EOP (==>It is the last page for you) MCF (<==Good, I got the page) DCN (==>bye bye) (This is just the typical procedure. refer T.30 for some other option for the message)
FCF index (useful for FAXSTAT)
Distinguish each signal and command 6) Review Distinguish each signal and command
Automatic operation and manual operation Call establishment can be realized manually and/or automatically. (It is very few people in North America are using Manual fax. Automatic fax are more popular) T.30 Call establishment operateing method 1: Manual mode on both end T.30 Call establishment operateing method 2: Calling manual mode, Called auto mode T.30 Call establishment operateing method 3: Calling auto mode, Called manual mode T.30 Call establishment operateing method 4: Auto modemon both end T.30 Call establishment operateing method 4 bis a&b: V.34 fax
T.30 Call establishment method 1 CED is optional when called side in on manual mode (mode 1 and mode 3) According to T.30, CNG should always present at least once (But I experience some Fax it will not send CNG if it has detected CED already)
Timer T2: (6s +/- 5s) Time-out T2 makes use of the tight control between commands and responses to detect the loss of command/response synchronization. T2 is 6 +/- 1 seconds and begins when initiating a command search (e.g. the first entrance into the "command received" subroutine, reference flow diagram in 5.2). T2 is reset when an HDLC flag is received or when T2 times out. (6s. The time the receiver fax wait for next command after previous command was received. Will disconnect if time out) T3: (10s +/- 5s) Time-out T3 defines the amount of time a terminal will attempt to alert the local operator in response to a procedural interrupt. Failing to achieve operator intervention, the terminal will discontinue this attempt and shall issue other commands or responses. T3 is 10 +/- 5 seconds, begins on the first detection of a procedural interrupt command/response signal (i.e. PIN/PIP or PRI-Q) and is reset when T3 times out or when the operator initiates a line request. (10s. The time wait for the operator to press a bottom or insert a paper or pick up handset) T4 (3s +/- 15%) Defines how long the receiver waits for HDLC command flags. 3s +/- 15% for automatic units and 4.5s +/- 15% for manual units. Begins when first entering in the Response Received routine Reset when an HDLC Flag is received or when it times out. (3s. The time the sender fax wait for the command response after it resent the command)
T2, T4 Example Receiver Fax will start T2 (6s) timer when receive a command (and responds the command). Will time out after 6 sec if the command doesn’t come. It will disconnect the line. Receiver Fax will start T4 (3s) timer after send DIS to sender. Will time out and resend this message 3 times if time out. Sender Fax will start T4 timer after send command to receiver Fax. Will time out after 3 sec if a response doesn’t come. It will retry 3 times (except DIS) and send DCN to disconnect the line. T.30 assume the telephone line should at least support low speed signal transmit and not generate any error. Otherwise the line is not good enough for a fax transaction.
T4 and RTN Example (non-ECM with error) Sender resend MPS after T4 timeout and receiver return RTN indication the page is not acceptable and ask go back to Phase B
T4 Example ( Re-send DIS )
ECM Error Correction Mode ECM is a transmission mode for fax (receiver) to automaticly inform and (for sender)resend the corrupted page data. Sender set bit 27 in DIS/DTC command to indicate ECM capability. Receiver set bit 27 in DCS command to confirm ECM mode. The method of ECM is to divide the page data to 64 or 256 bytes a frame; packed as HDLC frame format(with sequence number and FCS); combine 256 frame to a Block. Sender send one block every time. Receiver receive and check the contain for the transmit error. And send back information to sender to inform any error frame. Sender resend error frame and receiver to check again. Repeat this procedure up to four(4) times. A data block call a Partial Page.
New Command for ECM By implementing this, some new message for ECM was been added upon non-ECM mode: PPS: Partial Page Signal. End of Partial Page. EOP, MPS, EOM have been replaced with PPS_EOP, PPS_MPS, PPS_EOM PPS_NULL indicate next Partial Page contains a block for the same page image PPR: Partial Page Request. Request to resend some error. CTC: Continue To Correct. Request to repeat error correction over 4 times. RNR/RR: to buy time for the low end receivers to rebuild the image buffer, decompress and print the image EOR/ERR signals to decide to drop the transmission of the current block and move to the next one ….
ECM Challenges Low end machines used to print as the image arrives Low memory was needed Lines were decompressed as they arrived ECM, a whole block needs to be received before the device can start printing Higher memory requirements Faster processing and printing unit Due to the error correction mechanism, on noisy lines the call can take much longer due to retransmissions
6.a) A Typical Fax: FaxLab Trace (ECM mode 2page no error) When no error the procedure is almost same with non-ECM mode
PPR(Partial Page Request when error) The FIF of PPR signal is 256 bits(32bytes), each bit corresponds to an FCD frame, bit=0: received correctly, bit=1: received incorrectly or not received. This example is for a short page.
ECM Frame Error Correction Mechanism
V.34 ANSam: Modified Answer Tone(defined on V.8) Tonal signal (sinewave) at 2100 Hz with phase reversals at each 425 +/- 25 ms, amplitude modulated with a sinewave of 15 +/- 0.1 Hz
V.34 (has different handshake procedure than T.30)
V.34 Handshake: Follow V.34 procedure
A V.34 procedure example Physically Similar to a V.34 Modem call. But logically follow T.30 procedure.