Sie sind auf Seite 1von 55

R2 Signalling

Presentation_ID

Cisco Systems Confidential

E1 - Frame Structure
1 Multiframe, 4096 Bits 2 msec 16 Frames
1 8 16

1 Frame, 256 Bits125us, 32 Time Slots


0 31

1 Channel Time Slot Bit Rate = 2.048 Mbps

Presentation_ID

Cisco Systems Confidential

E1 - Frame Structure
Time Slot 0 Synchronization 0011011 Bits 2 to 8 16th Time Slot Contains Multi-Frame Alignment Signal ABCD signalling Bits for Time Slots 1 and 17

16 Frames per Multiframe

ABCD signalling Bits for Time Slots 15 and 31 32 Time Slots125usec

Presentation_ID

Cisco Systems Confidential

E1 - Frame Structure
8 bits TS0 TS1 TS2 Signalling

TS16

TS30 TS31

Framing, Synch & Alarms

256 bits = 32 Time Slots = 125 sec

Time Slot 0
Frame Synch CRC4 Alarms National Specific Stuff

Time Slot 16 - Signalling


Presentation_ID

Cisco Systems Confidential

Time Slot 0 Framing


Bit number 1 Alternate frames Si (Note 1) Si (Note 1) 1 (Note 2) A (Note 3) 0 0 1 1 0 1 1 2 3 4 5 6 7 8

Frame containing the frame alignment signal

Frame alignment signal Sa4 Sa5 Sa6 (Note 4) Sa7 Sa8

Frame not containing the frame alignment signal

Note 1 Si = bits reserved for international use Note 3 A = Remote alarm indication. In alarm condition, set to 1 Note 4 Sa4 to Sa8 = Additional spare bits
Presentation_ID

Cisco Systems Confidential

Channel Associated Signalling


E-1
16th Time Slot

Supervisory/State Line Signalling


Address Signalling Register Signalling (DTMF, R2/MF) and Audio
Presentation_ID

Supervision On/Off Hook

A, B, C and D bits

Cisco Systems Confidential

Time Slot 16 -- Channel Associated Signalling (CAS)


Time slot 16 of frame 0 0000 xyxx Time slot 16 of frame 1 abcd channel 1 abcd channel 16 Time slot 16 of frame 2 abcd channel 2 abcd channel 17 Time slot 16 of frame 15 abcd channel 15 abcd channel 30

x = Spare bit, to be set to 1 if not used y = Alarm indication; in an alarm condition, set to 1 CAS Multiframe consists of 16 frames independent of the CRC-4 Multiframe delineated in TS0 When bits b, c or d are not used they should have the values: b = 1, c = 0, d = 1
Cisco Systems Confidential

Presentation_ID

ITU-T Recommendations
1. 2. 3. 4. 5. 6. 7. 8. 9. Q.400: Definitions Q.411: Analog line signalling - (Continuous) Q.421: Digital line signalling Q.440: Register signalling Q.450: Multi-Frequency Signalling Equipment Q.460: Signalling Procedures Q.490: Testing and Maintenance Supplement 5: Analog line signalling with Metering Supplement 6: Digital line signalling with Metering

10. Supplement 7: Semi-Compelled / Non-Compelled register signalling and Pulsed Analog line signalling

Presentation_ID

Cisco Systems Confidential

Two parts of R2 signalling

Line Signalling (Supervisory Signals) Interregister Signalling (Call Setup Control Signals)

Presentation_ID

Cisco Systems Confidential

Line Signalling
yoghourt(config-controller)#cas-group 0 timeslots 1-31 type ? e&m-fgb E & M Type II FGB e&m-fgd E & M Type II FGD e&m-immediate-start E & M Immediate Start fxs-ground-start FXS Ground Start fxs-loop-start FXS Loop Start p7 P7 Switch r1-modified R1 Modified r2-analog R2 ITU Q411 r2-digital R2 ITU Q421 r2-pulse R2 ITU Supplement 7 sas-ground-start SAS Ground Start sas-loop-start SAS Loop Start

Presentation_ID

Cisco Systems Confidential

10

Line Signalling
Line Signalling (Supervisory Signals)
The handshaking between two offices for call setup and termination Signals are On-Hook, Off-Hook, LineSeizure, Answered, ... In timeslot 16 of the multiframe (A, B, C and D bits)

Presentation_ID

Cisco Systems Confidential

11

Line Signalling
Digital: where A & B bits are used (ITU-T Q.421) Analog: (Continuous): where a Tone or A-bit is used (ITU-T Q.411)
Analog is not really analog, but it is called so because it reflects the on/off switching of a tone (tone-on-idle) in FDM (Frequency Division Multiplexing) circuits that were common before TDM circuits. For a given channel, the tone-on or off is mapped to A bit for the respective direction
Presentation_ID

Cisco Systems Confidential

12

Line Signalling

Pulsed: where a Tone or A-bit is pulsed (ITU-T Supplement 7)


Pulsed is reflecting the same states as the analog signalling, however, Analog is steady state, and Pulsed is not, it just sends a single pulse to reflect a state change

Presentation_ID

Cisco Systems Confidential

13

Backward And Forward


Forward: towards the called party Backward: towards the calling party
Forward

Backward

calling
Cisco Systems Confidential

called
14

Presentation_ID

R2 Digital
Signalling code State of the circuit af Idle/R eleased Seized Seizure acknowledged Answered C lear-back C lear-forward 1 0 0 0 0 1 Forward bf 0 0 0 0 0 0 ab 1 1 1 0 1 0 or 1 B locked 1 0 1 1 1 Backward bb 0 0 1 1 1 1

Presentation_ID

Cisco Systems Confidential

15

Example Digital Signalling

May 19 10:44:50.831: neat msg at slot 0: (3/8): Rx SEIZURE May 19 10:44:50.975: neat msg at slot 0: (3/8): Tx SEIZURE_ACK May 19 10:44:56.327: neat msg at slot 0: (3/8): Tx ANSWERED ... May 19 10:46:19.503: neat msg at slot 0: (3/8): Tx BWD_CLEAR May 19 10:46:21.399: neat msg at slot 0: (3/8): Rx IDLE May 19 10:46:23.423: neat msg at slot 0: (3/8): Tx IDLE May 19 10:46:23.483: neat msg at slot 0: (3/8): Rx BLOCKED May 19 10:46:23.827: neat msg at slot 0: (3/8): Wait for IDLE May 19 10:46:23.979: neat msg at slot 0: (3/8): Rx IDLE

Presentation_ID

Cisco Systems Confidential

16

R2 Analog
State of the circuit Line signalling condition Forward Backward

1. Idle 2. Seized 3. Answered 4. Clear-back 5. Release 6. Blocked

Tone-on Tone-off Tone-off Tone-off Tone-on Tone-on

Tone-on Tone-on Tone-off Tone-on Tone-on or off Tone-off

Presentation_ID

Cisco Systems Confidential

17

Example Analog Signalling

May 19 11:01:09.719: neat msg at slot 0: (3/6): Rx Tone-off May 19 11:01:18.939: neat msg at slot 0: (3/6): Tx Tone-off ... May 19 11:02:14.879: neat msg at slot 0: (3/6): Tx Tone-on May 19 11:02:16.851: neat msg at slot 0: (3/6): Rx Tone-on

Presentation_ID

Cisco Systems Confidential

18

Interregister Signalling
Interregister Signalling (Call Setup Control Signals)
The handshaking between two offices to collect digits for the terminating office to complete/route the call to the destination phone number In-band in each timeslot Multi-Frequency Signalling (some countries use DTMF instead)
Presentation_ID

Cisco Systems Confidential

19

Interregister Signalling
The MF signals used during the interregister signalling are divided in forward signal groups (Group-I, Group-II) and backward signal groups (Group A, Group B) Interregister signalling starts after the Seize-Ack line signal

Presentation_ID

Cisco Systems Confidential

20

Interregister Signalling

Most country-specific variations to R2 are seen in the interregister signalling

Presentation_ID

Cisco Systems Confidential

21

Multi Frequency
Combinations Forward direction (signals of Groups I and II) No. Numeral value = x+y Backward direction (signals of Groups A and B) Index (x) Weight (y) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 0+1 0+2 1+2 0+4 1+4 2+4 0+7 1+7 2+7 3+7 0 + 11 1 + 11 2 + 11 3 + 11 4 + 11 x x x x x x x x x x x x Frequencies (Hz) 1380 1140 f0 0 x x x 1500 1020 f1 1 y y y y y y y y y y y y y y y 1620 900 f2 2 1740 780 f3 4 1860 660 f4 7 1980 540 f5 11

Presentation_ID

Cisco Systems Confidential

22

Group I Forward Signals

Presentation_ID

Cisco Systems Confidential

23

Group II Forward Signals


Group II forward signals
Combination (a) Designation of the signal (b) Meaning of the signal (c) Remarks (d)

1 2 3 4 5 6

II-1 II-2 II-3 II-4 II-5 II-6

Subscriber without priority Subscriber with priority Maintenance equipment Spare Operator Data transmission

7 8 9 10

II-7 II-8 II-9 II-10

Subscriber (or operator without forward transfer facility) Data transmission Subscriber with priority Operator with forward transfer facility

11 12 13 14 15

II-11 II-12 II-13 II-14 II-15

Presentation_ID

Cisco Systems Confidential

24

Group A Backward Signals


Group A backward signals
Combination (a) Designation of the signal (b) Meaning of the signal (c)

1 2 3 4 5 6 7 8 9 10 11 12 13 14

A-1 A-2 A-3 A-4 A-5 A-6 A-7 A-8 A-9 A-10 A-11 A-12 A-13 A-14

Send next digit (n + 1) Send last but one digit (n -1) Address-complete, changeover to reception of Group B signals Congestion in the national network Send calling party's category Address-complete, charge, set-up speech conditions Send last but two digit (n - 2) Send last but three digit (n - 3)

Send country code indicator Send language or discrimination digit Send nature of circuit Request for information on use of an echo suppressor (is an incoming half-echo suppressor required ?) Congestion in an international exchange or at its output

15

A-15

Presentation_ID

Cisco Systems Confidential

25

Group B Backward Signals

Presentation_ID

Cisco Systems Confidential

26

Interregister Signalling
The same MF tones get different meanings, i.e. switched between different groups, during the interaction This change between groups are triggered by specific MF tones

Presentation_ID

Cisco Systems Confidential

27

Interregister Signalling

yoghourt(config-controller)#cas-group 0 timeslots 1-31 type r2-digital ? dtmf DTMF tone signalling r2-compelled R2 Compelled Register Signalling r2-non-compelled R2 Non Compelled Register Signalling r2-semi-compelled R2 Semi Compelled Register Signalling

Presentation_ID

Cisco Systems Confidential

28

Interregister Signalling

Interregister signalling can be done in different ways:


Compelled Semi-compelled Non-compelled

Presentation_ID

Cisco Systems Confidential

29

Interregister Signalling
Compelled:
When a tone-pair is sent from the switch, the tones stay on until the converter responds/acks back with a tone-pair, that signals the switch to turn the tones off, ... So the tones are 'compelled' to stay on until we tell them to turn off

Semi-compelled:
Forward tone-pairs are sent as compelled (from switch to router). The backward tones (from router to switch) are sent as pulses
Presentation_ID

Cisco Systems Confidential

30

Interregister Signalling
Non-compelled:
The tone-pairs are sent as pulses, i.e. they stay on for a short duration, and the response back to the switch is sent as pulses

A reason not to use compelled signalling is on slow (satellite) links, in case of compelled the call setup would be very long
Presentation_ID

Cisco Systems Confidential

31

Compelled
Outgoing register Incoming register Forward signal Acknowledging backward signal Time

Next forward signal Acknowledging backward signal

Sending

Receiving

Presentation_ID

Cisco Systems Confidential

32

Example Compelled
Switch
DNIS digit 3

as5x00
A-1 Send next digit A-1 Send next digit A-1 Send next digit timeout 3 sec A-3 Address complete B-6 Subscribers line free, charge

I-3 I-2 I-1

DNIS digit 2

DNIS digit 1

Normal subscriber

II-1

Presentation_ID

Cisco Systems Confidential

33

Semi-Compelled
Outgoing register Incoming register Forward signal Acknowledging backward signal Time

Next forward signal Acknowledging backward signal

Sending

Receiving

Presentation_ID

Cisco Systems Confidential

34

Example Semi-Compelled
Switch
DNIS: 321 I-3 I-2 I-1

as5x00
A-1 (Pulse) A-1 (Pulse) A-1 (Pulse) timeout 3 sec A-3 (Pulse) B-6 (Pulse)
35

II-1

Presentation_ID

Cisco Systems Confidential

Non-Compelled
Outgoing register Incoming register Forward signal

Time

Next forward signal

Sending

Receiving

Presentation_ID

Cisco Systems Confidential

36

Example Non-Compelled
Switch
DNIS: 321 I-3 I-2 I-1 timeout 3 sec B-6

as5x00

Presentation_ID

Cisco Systems Confidential

37

Example - Digital Compelled


Switch
Seize I-3 I-2 I-1

as5x00
Seize_Ack A-1 A-1 A-1
timeout 3 sec

Line signalling
(Timeslot 16)

Interregister signalling (In-band)

II-1

A-3

B-6 Answer
Cisco Systems Confidential
38

Presentation_ID

Custom Configurations
yoghourt(config-controller)#cas-custom 0 yoghourt(config-ctrl-cas)#? CAS custom commands: answer-signal Answer signal to be used caller-digits Digits to be collected before requesting CallerID category Category signal country Country Name default Set a command to its defaults dnis-digits Expected number of DNIS digits exit Exit from cas custom mode invert-abcd invert the ABCD bits before tx and after rx ka KA Signal kd KD Signal metering R2 network is sending metering signal nc-congestion Non Compelled Congestion signal no Negate a command or set its defaults unused-abcd Unused ABCD bit values
Presentation_ID

Cisco Systems Confidential

39

Dnis-digits
Expected number of DNIS digits If the as5x00 doesnt know the number of DNIS digits beforehand, it has to rely on a timeout mechanism (3 seconds) to detect the end of DNIS Configuring this will speed up the connect time with 3 seconds since the number of DNIS digits is known beforehand

Presentation_ID

Cisco Systems Confidential

41

Dnis-digits
DNIS: 321 dnis-digits 3

Switch
First DNIS digit I-3 Second DNIS digit I-2 Third DNIS digit I-1 NO 3 second timeout! II-1

as5x00
A-1 A-1 A-3 B-6

Presentation_ID

Cisco Systems Confidential

42

Request ANI
ANI is CallerID DNIS is always sent, ANI can only be sent if the line is provisioned for it Usually (always?) the first ANI digit is the Caller Category By default, ANI will be requested after reception of first DNIS digit

Presentation_ID

Cisco Systems Confidential

43

Request ANI
DNIS: 321 ANI: 456

Switch
First DNIS digit I-3 Caller Category I-1 First ANI digit I-4 I-5 I-6 End of ANI digits I-15 Second DNIS digit I-2 I-1

as5x00
A-5 A-5 A-5 A-5 A-5 A-1 A-1 A-1 timeout 3 sec A-3 B-6
44

II-1
Presentation_ID

Cisco Systems Confidential

Caller-digits

Specifies the number of digits the access server needs to collect before it requests ANI information. Default is 1, which is the ITU default

Presentation_ID

Cisco Systems Confidential

45

Caller-digits
DNIS: 321 ANI: 456 caller-digits 2

Switch
First DNIS digit I-3 Second DNIS digit I-2 Caller Category I-1 First ANI digit I-4 Second ANI digit I-5 Third ANI digit I-6 End of ANI digits I-15 Third DNIS digit I-1

as5x00
A-1 A-5 A-5 A-5 A-5 A-5 A-1 A-1 timeout 3 sec A-3 B-6
46

II-1
Presentation_ID

Cisco Systems Confidential

Answer-signal
Answer signal to be used. This is the last signal to be sent from the as5x00 to the switch to signal that the register signalling is complete. You can specify the group A signal or the group B signal. Default is group-b 6, which is the ITU default. Configuring a group-a signal has as effect that the II-1; B-6 sequence doesnt take place (I think because of CSCdj42960)
Presentation_ID

Cisco Systems Confidential

47

Answer-signal
DNIS: 321 answer-signal group-a 6

Switch
First DNIS digit I-3 Second DNIS digit I-2 Third DNIS digit I-1

as5x00
A-1 A-1 A-1 timeout 3 sec A-6

Presentation_ID

Cisco Systems Confidential

48

Answer-signal
DNIS: 321 answer-signal group-b 8

Switch
First DNIS digit I-3 Second DNIS digit I-2 Third DNIS digit I-1

as5x00
A-1 A-1 A-1 timeout 3 sec A-3 B-8

II-1

Presentation_ID

Cisco Systems Confidential

49

Category

Specifies the type of incoming call (E.g. Subscriber with priority, Normal subscriber). Default is 1 (Normal subscriber), which is the ITU default.

Presentation_ID

Cisco Systems Confidential

50

Category
DNIS: 321 category 2

Switch
First DNIS digit I-3 Second DNIS digit I-2 Third DNIS digit I-1

as5x00
A-1 A-1 A-1 timeout 3 sec A-3 B-6

II-2

Presentation_ID

Cisco Systems Confidential

51

Debugging
Interregister signalling: debug modem csm Line signalling: modem-mgmt csm debug-rbs
(Note: You need to configure service internal)

Presentation_ID

Cisco Systems Confidential

52

Debugging Example
Jun 3 15:02:53.947: neat msg at slot 0: (3/0): Rx SEIZURE (ABCD=0001) ---> receiving SEIZURE Jun 3 15:02:53.991: VDEV_ALLOCATE: slot 1 and port 0 is allocated. ---> allocate modem 1/0 to receive MF tones Jun 3 15:02:53.991: CSM_RX_CAS_EVENT_FROM_NEAT:(0000): EVENT_CALL_DIAL_IN at slot 1 and port 0 Jun 3 15:02:53.991: CSM_PROC_IDLE: CSM_EVENT_DSX0_CALL at slot 1, port 0 Jun 3 15:02:53.991: Mica Modem(1/0): Configure(0x0) Jun 3 15:02:53.991: Mica Modem(1/0): Configure(0x3) Jun 3 15:02:53.991: Mica Modem(1/0): Call Setup Jun 3 15:02:54.091: neat msg at slot 0: (3/0): Tx SEIZURE_ACK (ABCD=1101) ---> transmit SEIZURE_ACK Jun 3 15:02:54.103: Mica Modem(1/0): State Transition to Call Setup Jun 3 15:02:54.103: Mica Modem(1/0): Went offhook Jun 3 15:02:54.103: CSM_PROC_IC1_RING: CSM_EVENT_MODEM_OFFHOOK at slot 1, port 0 Jun 3 15:02:54.103: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_IDLE Jun 3 15:02:54.403: Mica Modem(1/0): Rcvd Digit detected(9) ---> received MF tone I-9 Jun 3 15:02:54.403: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_COLLECT_DNIS Jun 3 15:02:54.403: Mica Modem(1/0): Generate digits:called_party_num=1 len=1 ---> transmit MF tone A-1 (next digit) Jun 3 15:02:54.523: Mica Modem(1/0): Rcvd Digits Generated Jun 3 15:02:54.583: Mica Modem(1/0): Rcvd Digit detected(#) Jun 3 15:02:54.583: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_COLLECT_DNIS Jun 3 15:02:54.583: Mica Modem(1/0): Generate digits:called_party_num=# len=1

Presentation_ID

Cisco Systems Confidential

53

Debugging Example
Jun 3 15:02:56.267: Mica Modem(1/0): Rcvd Digit detected(5) Jun 3 15:02:56.267: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_COLLECT_DNIS Jun 3 15:02:56.267: Mica Modem(1/0): Generate digits:called_party_num=1 len=1 Jun 3 15:02:56.387: Mica Modem(1/0): Rcvd Digits Generated Jun 3 15:02:56.507: Mica Modem(1/0): Rcvd Digit detected(#) Jun 3 15:02:56.507: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_COLLECT_DNIS Jun 3 15:02:56.507: Mica Modem(1/0): Generate digits:called_party_num=# len=1 Jun 3 15:02:56.623: Mica Modem(1/0): Rcvd Digits Generated ---> 3 second timeout after last DNIS digit Jun 3 15:02:59.267: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_COLLECT_DNIS Jun 3 15:02:59.267: Mica Modem(1/0): Generate digits:called_party_num=3# len=2 ---> transmit pulsed A-3 (Address complete, change to B-signal) Jun 3 15:02:59.455: Mica Modem(1/0): Rcvd Digits Generated Jun 3 15:02:59.635: Mica Modem(1/0): Rcvd Digit detected(1) ---> receive II-1 (normal subscriber) Jun 3 15:02:59.635: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_CATEGORY Jun 3 15:02:59.635: Mica Modem(1/0): Generate digits:called_party_num=6 len=1 ---> transmit B-6 (subscribers line free, charge) Jun 3 15:02:59.755: Mica Modem(1/0): Rcvd Digits Generated Jun 3 15:02:59.875: Mica Modem(1/0): Rcvd Digit detected(#) Jun 3 15:02:59.875: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_COMPLETE Jun 3 15:02:59.875: Mica Modem(1/0): Generate digits:called_party_num=# len=1 Jun 3 15:02:59.995: Mica Modem(1/0): Rcvd Digits Generated

Presentation_ID

Cisco Systems Confidential

54

Debugging Example
Jun Jun 3 15:03:00.875: R2 Incoming Modem(1/0): DSX (0/3/0): STATE: R2_IN_WAIT_GUARD 3 15:03:00.875: CSM_PROC_IC2_COLLECT_ADDR_INFO: CSM_EVENT_ADDR_INFO_COLLECTED (DNIS=98765, ANI=) at slot 1, port 0 CSM_RX_CAS_EVENT_FROM_NEAT:(0000): EVENT_CHANNEL_CONNECTED at

3 15:03:01.175: slot 1 and port 0 Jun 3 15:03:01.175: port 0 Jun 3 15:03:01.175: Jun 3 15:03:01.179: ---> transmit ANSWERED Jun 3 15:03:01.267: Jun 3 15:03:06.395: Jun 3 15:03:15.459: Jun 3 15:03:17.091: Jun 3 15:03:17.327: yoghourt# yoghourt#! Connected

Jun

CSM_PROC_IC4_WAIT_FOR_CARRIER: CSM_EVENT_DSX0_CONNECTED at slot 1, Mica Modem(1/0): Link Initiate neat msg at slot 0: (3/0): Tx ANSWERED (ABCD=0101) Mica Mica Mica Mica Mica .... Modem(1/0): Modem(1/0): Modem(1/0): Modem(1/0): Modem(1/0): State State State State State Transition Transition Transition Transition Transition to to to to to Connect Link Trainup EC Negotiating Steady State

Presentation_ID

Cisco Systems Confidential

55

Debugging Example

yoghourt#! Connected yoghourt# yoghourt# yoghourt# ---> disconnecting call Jun 3 15:09:18.783: Jun 3 15:09:21.379: Jun 3 15:09:21.379: Jun 3 15:09:21.379: 0 Jun 3 15:09:21.379: Jun Jun Jun

....

Mica Modem(1/0): State Transition to Terminating Mica Modem(1/0): State Transition to Idle Mica Modem(1/0): Went onhook CSM_PROC_IC5_OC6_CONNECTED: CSM_EVENT_MODEM_ONHOOK at slot 1, port VDEV_DEALLOCATE: slot 1 and port 0 is deallocated

3 15:09:21.379: neat msg at slot 0: (3/0): Tx BWD_CLEAR (ABCD=1101) 3 15:09:28.491: neat msg at slot 0: (3/0): Rx IDLE (ABCD=1001) 3 15:09:30.519: neat msg at slot 0: (3/0): Tx IDLE (ABCD=1001)

Presentation_ID

Cisco Systems Confidential

56

Das könnte Ihnen auch gefallen