summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc4411.txt
blob: 25555a170f284209dd3ab24013d13956b4cbb736 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
Network Working Group                                            J. Polk
Request for Comments: 4411                                 Cisco Systems
Category: Standards Track                                  February 2006


            Extending the Session Initiation Protocol (SIP)
                  Reason Header for Preemption Events

Status of This Memo

   This document specifies an Internet standards track protocol for the
   Internet community, and requests discussion and suggestions for
   improvements.  Please refer to the current edition of the "Internet
   Official Protocol Standards" (STD 1) for the standardization state
   and status of this protocol.  Distribution of this memo is unlimited.

Copyright Notice

   Copyright (C) The Internet Society (2006).

Abstract

   This document proposes an IANA Registration extension to the Session
   Initiation Protocol (SIP) Reason Header to be included in a BYE
   Method Request as a result of a session preemption event, either at a
   user agent (UA), or somewhere in the network involving a
   reservation-based protocol such as the Resource ReSerVation Protocol
   (RSVP) or Next Steps in Signaling (NSIS).  This document does not
   attempt to address routers failing in the packet path; instead, it
   addresses a deliberate tear down of a flow between UAs, and informs
   the terminated UA(s) with an indication of what occurred.




















Polk                        Standards Track                     [Page 1]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


Table of Contents

   1. Introduction ....................................................2
      1.1. Conventions Used in This Document ..........................4
   2. Access Preemption Events ........................................4
      2.1. Effects of Preemption at the User Agent ....................6
      2.2. Reason Header Requirements for Access Preemption Events ....6
   3. Network Preemption Events .......................................7
      3.1. Reason Header Requirements for Network Preemption Events ..10
   4. Including a Hybrid Infrastructure ..............................10
      4.1. Hybrid Infrastructure Requirements ........................11
   5. Preemption Reason Header Cause Codes and Semantics .............11
      5.1. Access Preemption Event Reason Code .......................12
           5.1.1. Access Preemption Event Call Flow ..................12
      5.2. Network Preemption Events Reason Code .....................14
           5.2.1. Network Preemption Event Call Flow .................15
      5.3. Generic Preemption Event Reason Code ......................16
      5.4. Non-IP Preemption Event Reason Code .......................16
           5.4.1. Non-IP Preemption Event Call Flow ..................17
   6. Security Considerations ........................................17
   7. IANA Considerations ............................................17
      7.1. "Preemption" Namespace Registry ...........................18
      7.2. Default Reason-Text IANA Registry for the SIP
           Reason Header .............................................20
   8. Contributions ..................................................20
   9. Acknowledgements ...............................................20
   10. References ....................................................21
      10.1. Normative References .....................................21
      10.2. Informative References ...................................21

1.  Introduction

   With the introduction of the SIP Resource-Priority (R-P) header [4],
   there became the possibility of sessions being torn down for (scarce)
   resource reasons, meaning there weren't enough resources for a
   particular session to continue.  Certain domains will implement this
   mechanism where resources may become constrained either at the user
   agent (UA) or at congested router interfaces where more important
   sessions are to be completed at the expense of less important
   sessions.  Which sessions are more or less important than others will
   not be discussed here.  What is proposed here is a SIP [2] extension
   to synchronize SIP elements as to why a preemption event occurred and
   which type of preemption event occurred, as viewed by the element
   that performed the preemption of a session.

   The SIP Reason Header is an application layer feedback mechanism to
   synchronize SIP elements of events; the particular event explained
   here deals with preemption of a session.  Q.850 [5] provides an



Polk                        Standards Track                     [Page 2]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


   indication for preemption (cause=8) and for preemption "circuit
   reserved for reuse" (cause=9).  Q.850 Cause=9 does not apply to IP,
   as IP has no concept of circuits.  Some domains wish to differentiate
   appropriate IP reasons for preemption of sessions and to indicate
   topologically where the preemption event occurred.  No other means
   exists today to give feedback as to why a session was torn down on
   preemption grounds.

   In the event that a session is terminated for a specific reason that
   can (or should) be shared with SIP Servers and UAs sharing dialog,
   the Reason Header [1] was created to be included in the BYE Request.
   This was not the only Method for this new Header; [1] also discusses
   the CANCEL Method usage.

   This document will define two use cases in which new preemption
   Reason values are necessary:

      Access Preemption Event - This is when a UA receives a new SIP
            session request message with a valid R-P value that is
            higher than the one associated with the currently active
            session at that UA.  The UA must discontinue the existing
            session in order to accept the new one (according to local
            policy of some domains).

      Network Preemption Event - This is when a network element - such
            as a router - reaches capacity on a particular interface and
            has the ability to statefully choose which session(s) will
            remain active when a new session/reservation is signaled for
            under the parameters outlined in SIP Preconditions per [3]
            that would otherwise overload that interface (perhaps
            adversely affecting all sessions).  In this case, the router
            must terminate one or more reservations of lower priority in
            order to allow this higher priority reservation access to
            the requested amount of bandwidth (according to local policy
            of some domains).

   This document will cover the semantics for these two cases and
   request IANA registration of the new protocol value "Preemption" for
   the Reason Header field, with 4 cause values for the above preemption
   conditions.  Additionally, this document will create a new IANA
   Registry for reason-text strings that are not currently defined
   through existing SIP Response codes or Q.850 cause codes.  This new
   Registry will be useful for future protocols used by the SIP Reason
   header.

   This document will emphasize an existing SIP RFC [3] as the starting
   point for network preemption events.  RFC 3312 set rules surrounding
   SIP interaction using a reservation protocol for QoS preconditions,



Polk                        Standards Track                     [Page 3]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


   using RSVP as the example protocol.  That effort did not preclude
   other preconditions or future protocol work from becoming a means of
   preconditions.  NSIS is a new reservation protocol effort that
   specifies a preemption operation similar to RSVP's ResvErr message
   involving the NSIS NOTIFY message in [8] with a Transient error code
   0x04000005 (Resources Pre-empted).

   Note that SIP itself does not cause RSVP or NSIS reservation
   signaling to start or end.  That operation is part of a separate API
   within each UA.

1.1.  Conventions Used in This Document

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
   document are to be interpreted as described in [6].

2.  Access Preemption Events

   As mentioned previously, Access Preemption Events (APE) occur at the
   user agent.  It does not matter which UA in a unicast or multicast
   session this happens to (the UAC or UAS of a session).  If local
   policy dictates in a particular domain rules regarding the
   functionality of a UA, there must be a means by which that UA (not
   the user) informs the other UA(s) why a session was just torn down
   prematurely.  The appropriate mechanism is the BYE Method.  The user
   of the other far side UA will not understand why that session "just
   went away" without there being a means of informing the UA of what
   occurred (if this event was purposeful).  Through this type of
   indication to the preempted UA, it can indicate to the user of that
   device appropriately.

   The rules within a domain surrounding the UA to be informed can be
   different from the rules for informing the user.  Local policy should
   determine if the user should be informed of the specific reason.
   This indication in SIP will provide a means for the UA to react in a
   locally determined way, if appropriate (play a certain tone or tone
   sequence, point towards a special announcement uri, cause the UA's
   visual display to do something, etc.).

   Figure 1 illustrates the scenario.  UA1 invites UA2 to a session with
   the Resource Priority level of 3 (levels 1 and 2 are higher is this
   domain, and the namespace element is not necessary for this
   discussion).







Polk                        Standards Track                     [Page 4]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


      UA1                      UA2                       UA3
       |                        |                         |
       |      INVITE (R-P:3)    |                         |
       |----------------------->|                         |
       |         200 OK         |                         |
       |<-----------------------|                         |
       |          ACK           |                         |
       |----------------------->|                         |
       |          RTP           |                         |
       |<======================>|                         |
       |                        |      INVITE (R-P:2)     |
       |                        |<------------------------|
       |    BYE (Reason : ? )   |                         |
       |<-----------------------|                         |
       |                        |         200 OK          |
       |                        |------------------------>|
       |         200 OK         |                         |
       |----------------------->|                         |
       |                        |          ACK            |
       |                        |<------------------------|
       |                        |          RTP            |
       |                        |<=======================>|
       |                        |                         |

          Figure 1. Access Preemption with obscure Reason

   After the session between UA1 and UA2 is established, UA3 invites UA2
   to a new session with an R-P of 2 (a higher priority than the current
   session between UA1 and UA2).  Local policy within this domain
   dictates that UA2 must preempt all existing calls of lower priority
   in order to accept a higher priority call.

   What Reason value could be inserted above to mean "preemption" at a
   UA?  There are several choices: 410 "Gone", 480 "Temporarily
   Unavailable", 486 "Busy Here", and 503 "Service Unavailable".  The
   use of any of these here is questionable because the session is
   already established.  It is further complicated if there needs to be
   a difference in the Reason value for an Access versus a Network
   Preemption Event (which is a requirement here).  The limits of Q.850
   [5] have been stated previously in this document.

   It should be possible to configure UAs receiving a preemption
   indication to indicate to the user that no particular type of
   preemption occurred.  There are some domains that might prefer their
   users to remain unaware of the specifics of network behavior.  This
   should not ever prevent a known preemption indication from being sent
   in a BYE from a UA.




Polk                        Standards Track                     [Page 5]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


2.1.  Effects of Preemption at the User Agent

   If 2 UAs are in a session and one UA must preempt that session to
   accept another session, a BYE Method message is the appropriate
   mechanism to perform this task.  However, taking this a step further,
   if a UA is the common point of a 3-way (or more) ad hoc conference
   and must preempt all sessions in that conference due to receipt of a
   higher-priority session request (that this UA must accept), then a
   BYE message must be sent to all UAs in that ad hoc conference.

2.2.  Reason Header Requirements for Access Preemption Events

   The following is a list of requirements for adding an appropriate
   Reason value for an Access Preemption Event (APE) as described above
   and shown in Figure 1:

      APE_REQ#1 - create a means by which one UA can inform another UA
                  (within the same active session) that the active
                  session between the two devices is being purposely
                  preempted at one UA for a higher-priority session
                  request from another UA.

      APE_REQ#2 - create a means by which all relevant SIP elements can
                  be informed of this Access Preemption Event to a
                  specific session.

   For example: perhaps SIP Servers that have incorporated a Record-
   Route header into that session set up need to be informed of this
   occurrence.

      APE_REQ#3 - create a means of informing all participants in an ad
                  hoc conference that the primary UA (the mixer) has
                  preempted the conference by accepting a higher-
                  priority session request.

      APE_REQ#4 - create a separate indication for the access preemption
                  event than the one used for a Network Preemption Event
                  (described in the next section) in the session BYE
                  message.

      APE_REQ#5 - create a means to generate a specific indication of a
                  preemption event at the user agent to inform all
                  relevant SIP entities, yet have the ability to
                  generalize this indication (based on local policy) to
                  the receiving UA such that this UA cannot display more
                  information than the domain wants the user to see.





Polk                        Standards Track                     [Page 6]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


3.  Network Preemption Events

   Network Preemption Events (NPE) are instances in which an
   intermediate router between SIP user agents preempts one or more
   sessions at one of its interfaces to place a higher-priority session
   through that interface.  Within RSVP, there exists a means to execute
   this functionality per [7]: ResvErr messages, which travel downstream
   towards appropriate receivers.  The ResvErr message has the ability
   to carry within it a code indicating why a reservation is being torn
   down.  The ResvErr does not travel upstream to the other UA.  This
   document proposes that a SIP message be generated to synchronize all
   relevant SIP elements to this preemption event, including the
   upstream UA.  Creating another Reason value describing that a network
   element preempted the session is necessary in certain domains.

   Figures 2 and 3 illustrate a network preemption scenario with RSVP.
   NSIS, not shown in examples here, can be imagined from [8] with a
   NOTIFY error message indicating that a reservation has been preempted
   with the Transient ERROR_SPEC 0x04000005.  SIP behavior will be
   identical using either reservation protocol.

   UA1 invites UA2 to a session with the Resource Priority level of 3
   (levels 1 and 2 are higher in this domain) and is accepted.  This SIP
   signaling translated the Resource Priority value to an appropriate
   RSVP priority level for that flow.  The link between Router 1 and
   Router 2 became saturated with this session reservation between UA1
   and UA2 (in this example).

             UA1                                  UA2
                \                                /
                 \                              /
                  +--------+          +--------+
                  |        |          |        |
                  | RTR1   |          |  RTR2  |
                  |       Int7-------Int5      |
                  |        |          |        |
                  +--------+          +--------+
                 /                              \
                /                                \
             UA3                                  UA4

                Figure 2. Network Diagram Scenario A

   After the session between UA1 and UA2 is established, UA3 invites UA4
   to a new session with a Resource Priority level of 2 (a higher
   priority than the current reservation between UA1 and UA2).  Again,
   the priority value within the Resource-Priority header of this INVITE
   is translated into an appropriate RSVP priority (that is also higher



Polk                        Standards Track                     [Page 7]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


   in relative priority to the UA1_UA2 session/RSVP flow).  When this
   second, higher-priority session is signaled, one Path message goes
   from UA3 to UA4, resulting in the RESV message going from UA4 back to
   UA3.  Because this link between the two routers is at capacity (at
   Int7 in Figure 5), Router 1 will (in this example) make the decision
   or will communicate with another network entity that will make the
   decision to preempt lower-priority BW to ensure that this higher-
   priority session reservation is completed.  A ResvErr message is sent
   to UA2.  The result is that UA2 will know that there has been a
   preemption event in a router (because the ResvErr message has a error
   code within it, stating "preemption").  At this point, UA1 will not
   know anything of this preemption.  If there are any SIP Proxies
   between UAs 1 and 2 (perhaps that inserted a Record-Route Header),
   each will also need to be informed as to why this reservation was
   torn down.

   Figure 3 shows the call flow with Router 2 from Figure 2 included at
   the RSVP layer sending the ResvErr message.  A complete call flow
   including all UAs and Routers is not shown here for diagram
   complexity reasons.  The complete signaling between UA3 and UA4 is
   also not included.






























Polk                        Standards Track                     [Page 8]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


      UA1                      Rtr2                      UA2
       |                        |                         |
       |         INVITE with QoS Preconditions (R-P:3)    |
       |------------------------------------------------->|
       |    ********************************************  |
       |    *  - QoS Preconditions established UA1-UA2 *  |
       |    *  - SIP signaling continues...            *  |
       |    ********************************************  |
       |         200 OK                                   |
       |<-------------------------------------------------|
       |          ACK                                     |
       |------------------------------------------------->|
       |          RTP                                     |
       |<================================================>|
       |    ********************************************  |
       |    *  -UA3 sends INV with QoS Preconditions   *  |
       |    *     to UA4 w/ RP:2;                      *  |
       |    *  -Reservation set-up occurs between UA3  *  |
       |    *     and UA4                              *  |
       |    *  -Router 2 in Figure 2 must preempt      *  |
       |    *     reservation between UA1 & UA2        *  |
       |    * ******************************************  |
       |                                                  |
       |                        |     ResvErr             |
       |                        |------------------------>|
       |                        |                         |
       |                                                  |
       |                          BYE (Reason : ? )       |
       |<-------------------------------------------------|
       |                              200 OK              |
       |------------------------------------------------->|
       |                                                  |

          Figure 3. Network Preemption with obscure Reason

   What Reason value could be inserted above to mean "preemption at a
   router interface"?  There are several choices: 410 "Gone", 480
   "Temporarily Unavailable", 486 "Busy Here", and 503 "Service
   Unavailable".  The use of any of these here is questionable because
   the session is already established.  It is further complicated if
   there needs to be a difference between the Reason value for an Access
   Preemption Event versus a Network Preemption Event.  The limits of
   Q.850 [5] have already been stated previously, showing there is
   nothing in that spec to indicate a problem in an IP network.

   To state that all preemptions are equal is possible, but will not
   provide adequate information.  Therefore, another Reason Header value
   is necessary to differentiate the APE from the NPE.



Polk                        Standards Track                     [Page 9]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


3.1.  Reason Header Requirements for Network Preemption Events

   The following are the requirements for the appropriate SIP signaling
   in reaction to a Network Preemption Event (NPE):

      NPE_REQ#1 - create a means of informing the far-end UA that a
                  Network Preemption Event has occurred in an
                  intermediate router.

      NPE_REQ#2 - create a means by which all relevant SIP elements can
                  be informed of a Network Preemption Event to a
                  specific session.

   For example: perhaps SIP Servers have incorporated a Record-Route
   header into that session set up.

      NPE_REQ#3 - create a means of informing all participants in an ad
                  hoc conference that the primary UA (the mixer) has
                  been preempted by a Network Preemption Event.

      NPE_REQ#4 - create a separate description of the Network
                  Preemption Event relative to an Access Preemption
                  Event in SIP.

4.  Including a Hybrid Infrastructure

   If User 1 is in a non-IP portion of infrastructure (using a TDM
   phone) in a session with a UA through a SIP gateway, and if the TDM
   portion had the ability to preempt the session and indicate to the
   SIP gateway when it did such a preemption, the SIP GW would need to
   be able to convey this preemption event into the SIP portion of this
   session just as if User 1 were a UA in the session.  Below is a
   diagram of this:

       **************************
       *       TDM network      *
       *                    +---------+
       *   User 1           |         |
       *     O   ==========>| SIP GW1 |================> UA2
       *    /|\  ^          |         |                   |
       *    / \  |          +---------+                   |
       *         |              *                         |
       **********|***************  |                      |
                 |                 |   Preemption         |
            Preemption  ---------> |--------------------->|
               Event                   Indication

                 Figure 4. TDM/IP Preemption Event



Polk                        Standards Track                    [Page 10]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


4.1.  Hybrid Infrastructure Requirements

   The following are the requirements unique to the topology involving
   both IP infrastructure and TDM (or non-IP) infrastructure.

      HYB_REQ#1 - create a means of informing the far-end UA in a dialog
                  through a SIP gateway with a non-IP phone that the TDM
                  portion of the session indicated to the SIP gateway
                  that a preemption event terminated the session.

      HYB_REQ#2 - create a means of identifying this preemption event
                  uniquely with respect to an access preemption and
                  network preemption event.

5.  Preemption Reason Header Cause Codes and Semantics

   This document defines the following new protocol value for the
   protocol field of the Reason header field in RFC 3326 [1]:

      Preemption: The cause parameter contains a preemption cause code.

   We define the following preemption cause codes:

   Value    Default Text        Description

     1      UA Preemption       The session has been preempted by a UA.

     2      Reserved Resources  The session preemption has been
            Preempted           initiated within the network via a
                                purposeful RSVP preemption occurrence,
                                and not a link error.

     3      Generic Preemption  This is a limited-use preemption
                                indication to be used on the final leg
                                to the preempted UA to generalize the
                                event.

     4      Non-IP Preemption   The session preemption has occurred in
                                a non-IP portion of the infrastructure,
                                and this is the Reason cause code given
                                by the SIP Gateway.

   Example syntax for the above preemption types are as follows:

      Reason: preemption ;cause=1 ;text="UA Preemption"
      Reason: preemption ;cause=2 ;text="Reserved Resources Preempted"
      Reason: preemption ;cause=3 ;text="Generic Preemption"
      Reason: preemption ;cause=4 ;text="Non-IP Preemption"



Polk                        Standards Track                    [Page 11]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


   Sections 5.1, 5.2, 5.3, and 5.4 provide use cases and extended
   definitions for the above four cause codes with message flow
   diagrams.

5.1.  Access Preemption Event Reason Code

   A more elaborate description of the Access Preemption Event cause=1
   is as follows:

      A user agent in a session has purposely preempted a session and is
      informing the far-end user agent, or user agents (if part of a
      conference), and SIP Proxies (if stateful of the session's
      transactions)

   An example usage of this header value would be:

      Reason: preemption ;cause=1 ;text="UA Preemption"

5.1.1.  Access Preemption Event Call Flow

   Figure 5 replicates the call flow from Figure 1, but with an
   appropriate Reason value indication that was proposed in Section 4.1,
   above:




























Polk                        Standards Track                    [Page 12]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


      UA1                                 UA2                  UA3
       |                                   |                    |
       |         INVITE (R-P:3)            |                    |
       |---------------------------------->|                    |
       |           200 OK                  |                    |
       |<----------------------------------|                    |
       |            ACK                    |                    |
       |---------------------------------->|                    |
       |            RTP                    |                    |
       |<=================================>|                    |
       |                                   |    INVITE (R-P:2)  |
       |                                   |<-------------------|
       |    BYE (Reason: Preemption ;      |                    |
       |    cause=1 ;text="UA Preemption") |                    |
       |<----------------------------------|                    |
       |                                   |        200 OK      |
       |                                   |------------------->|
       |         200 OK                    |                    |
       |---------------------------------->|                    |
       |                                   |        ACK         |
       |                                   |<-------------------|
       |                                   |        RTP         |
       |                                   |<==================>|
       |                                   |                    |

        Figure 5. Access Preemption with Reason: UA Preemption

   UA1 invites UA2 to a session with the Resource Priority level of 3
   (levels 1 and 2 are higher in this domain).  After the session
   between UA1 and UA2 is established, UA3 invites UA2 to a new session
   with an R-P of 2 (a higher priority than the current session to UA1).
   Local policy within this domain dictates that UA2 must preempt all
   existing calls of lower priority in order to accept a higher-priority
   call.

   UA2 sends a BYE Request message with a Reason header with a value of
   UA Preemption.  This will inform the far-end UA (UA1) and all
   relevant SIP elements (for example, SIP Proxies).  The cause code is
   unique to what is proposed in the RSVP Preemption Event for
   differentiation purposes.











Polk                        Standards Track                    [Page 13]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


5.2.  Network Preemption Events Reason Code

   A more elaborate description of the Reserved Resources Preempted
   Event cause=2 is as follows:

      A router has preempted a reservation flow and generated a
      reservation error message: a ResvErr traveling downstream in RSVP,
      and a NOTIFY in NSIS.  The UA receiving the preemption error
      message generates a BYE request towards the far-side UA with a
      Reason Header with this value indicating that somewhere between
      two or more UAs, a router has administratively preempted this
      session.

   An example usage of this header value would be:

      Reason: Preemption :cause=2 ;text="Reserved Resources Preempted"



































Polk                        Standards Track                    [Page 14]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


5.2.1.  Network Preemption Event Call Flow

   Figure 6 replicates the call flow from Figure 5, but with an
   appropriate Reason value indication that was proposed in Section 4.2,
   above.

      UA1                         Rtr2                      UA2
       |                           |                         |
       |         INVITE with QoS Preconditions (R-P:3)       |
       |---------------------------------------------------->|
       |    ********************************************     |
       |    *  - QoS Preconditions established UA1-UA2 *     |
       |    *  - SIP signaling continues...              *   |
       |    ********************************************     |
       |         200 OK                                      |
       |<----------------------------------------------------|
       |          ACK                                        |
       |---------------------------------------------------->|
       |          RTP                                        |
       |<===================================================>|
       |    ********************************************     |
       |    *  -UA3 sends INV with QoS Preconditions   *     |
       |    *     to UA4 w/ RP:2;                      *     |
       |    *  -Reservation set-up occurs between UA3  *     |
       |    *     and UA4                              *     |
       |    *  -Router 2 in Figure 2 must preempt      *     |
       |    *     reservation between UA1 & UA2        *     |
       |    * *********************************************  |
       |                                                     |
       |                           |     ResvErr             |
       |                           |------------------------>|
       |                           |                         |
       |                                                     |
       |           BYE (Reason : Preemption ;cause=2 ;       |
       |                text="Reserved Resources Preempted") |
       |<----------------------------------------------------|
       |                         200 OK                      |
       |---------------------------------------------------->|
       |                                                     |

      Figure 6. Network Preemption with "Reserved Resources Preempted"

   Above is the call flow with Router 2 from Figure 2 included at the
   RSVP layer sending the Resv messages.  A complete call flow including
   all UAs and Routers is not included for diagram complexity reasons.
   The signaling between UA3 and UA4 is also not included.





Polk                        Standards Track                    [Page 15]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


   Upon receipt of the ResvErr message with the preemption error code,
   UA2 can now appropriately inform UA1 why this event occurred.  This
   BYE message will also inform all relevant SIP elements, synchronizing
   them.  The cause value is unique to that proposed in Section 4.1 for
   Access Preemption Events for differentiation purposes.

5.3.  Generic Preemption Event Reason Code

   A more elaborate description of the Generic Preemption Event cause=3
   is as follows:

      This cause code is for infrastructures that do not wish to provide
      the preempted UA with a more precise reason than just
      "preemption".  It is possible that UAs will have code that will
      indicate the type of preemption event that is contained in the
      Reason header, and certain domains have expressed this as not
      being optimal, and wanted to generalize the indication.  This MUST
      NOT be the initial indication within these domains, as valuable
      traffic analysis and other NM applications will be generalized as
      well.  If this cause value is to be implemented, it SHOULD only be
      done at the final SIP Proxy in such a way that the cause value
      indicating which type of preemption event actually occurred is
      changed to this generalized preemption indication to be received
      by the preempted UA.

   An example usage of this header value would be:

      Reason: preemption ;cause=3 ;text="Generic Preemption"

5.4.  Non-IP Preemption Event Reason Code

   A more elaborate description of the Non-IP Preemption Event cause=4
   is as follows:

      A session exists in a hybrid IP/non-IP infrastructure and the
      preemption event occurs in the non-IP portion, and was indicated
      by that portion that this call termination was due to preemption.
      This is the indication that would be generated by a SIP Gateway
      towards the SIP UA that is being preempted, traversing whichever
      SIP Proxies are involved in session signaling (a question of
      server state).

   An example usage of this header value would be:

      Reason: preemption ;cause=4 ;text="Non-IP Preemption"






Polk                        Standards Track                    [Page 16]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


5.4.1.  Non-IP Preemption Event Call Flow

   Figure 7 is a simple call flow diagram of the Non-IP Preemption
   Event.

                                                           ............
      UA1                                   SIP GW1        .  User3   .
       |                                       |           .          .
       |         INVITE (R-P:1)                |           .          .
       |-------------------------------------->|           .  Non-IP  .
       |           200 OK                      |           .          .
       |<--------------------------------------|           .  Network .
       |            ACK                        |           .          .
       |-------------------------------------->|           .          .
       |            RTP                        |           .          .
       |<=====================================>|           .          .
       |                                       |           .          .
       |    BYE (Reason: Preemption ;          |<==Preemption Indication
       |    cause=4 ;text="Non-IP Preemption") |           .          .
       |<--------------------------------------|           .          .
       |                                       |           ............

                  Figure 7. Non-IP Preemption Flow

   In this case, UA1 signals User3 to a session.  Once established,
   there is a preemption event in the non-IP portion of the
   session/call, and the TDM portion has the ability to inform the SIP
   GW of this type of event.  This non-IP signal can be translated into
   SIP signaling (into the BYE session termination message).  Within
   this BYE, there should be a Reason header indicating such an event to
   synchronize all SIP elements.

6.  Security Considerations

   Eavesdropping on this header field should not prevent proper
   operation of the SIP protocol, although some domains utilizing this
   mechanism for notifying and synchronizing SIP elements will likely
   want the integrity to be assured.  It is therefore RECOMMENDED that
   integrity protection be applied when using this header to prevent
   unwanted changes to the field and snooping of the messages.  The
   accepted choices for providing integrity protection in SIP are TLS
   and S/MIME.

7.  IANA Considerations

   This document adds to one existing IANA Registry and creates one new
   Registry.  The existing IANA Registry for the SIP Reason Header is as
   follows:



Polk                        Standards Track                    [Page 17]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


   Protocol Value   Protocol Cause            Reference
   --------------   --------------            ---------
   SIP              Status code               RFC 3261
   Q.850            Cause value in decimal    ITU-T Q.850

   This document adds to that Registry with the following entry
   (including the '*' comment):

   Protocol Value   Protocol Cause            Reference
   --------------   --------------            ---------
   Preemption       Cause value in decimal*   RFC 4411

   * See the separate "Preemption" Registry for default reason-text
     strings.

   The cause values created by the Preemption Protocol namespace in this
   document are defined in Section 7.1.  Each cause value has a Reason-
   text string as a general description of what the cause value is for.
   This is shown for the existing Reason header in Section 2 of RFC
   3326.  Before this document, the Reason-text was taken from the SIP
   Response code string from all SIP Response codes, or the default
   description from Q.850 cause codes.  Currently, there is no place to
   register new reason-text strings other than from those two sources.
   Because this document defines a new Reason header protocol namespace,
   a new IANA Registry is created in Section 7.2 just for this and
   future Reason header protocol namespaces (other than SIP Response
   codes or Q.850 cause values) to register their respective general
   descriptive text strings.  These text strings are non-binding and
   merely the default for human understanding, but they are deemed
   important enough to have their own Registry.

7.1.  "Preemption" Namespace Registry

   RFC 4411 creates the new SIP "Reason Header" [1] protocol namespace:
   "Preemption", with 4 defined cause codes:

      In instances where this namespace is used to indicate preemption
      at a UA, the following syntax shall be used (the reason-text is a
      default string; it is not mandatory, and may be different):

         Reason: preemption ;cause=1 ;text="UA Preemption"

         Section 5.1 of this document describes in detail the semantics
         of this cause code.

         The default text above is part of a new IANA Registry for
         default text strings for any new protocol namespace cause code.
         See Section 7.2 for details.



Polk                        Standards Track                    [Page 18]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


      In instances where this namespace is used to indicate preemption
      because an RSVP ResvErr message was received at a SIP UA, the
      following syntax shall be used (the reason-text is a default
      string; it is not mandatory, and may be different):

      Reason: preemption ;cause=2 ;text="Reserved Resources Preempted"

         Section 5.2 of this document describes in detail the semantics
         of this cause code.

         The default text above is part of a new IANA Registry for
         default text strings for any new protocol namespace cause code.
         See section 7.2 for details.

      In instances where this namespace is used to indicate a
      generalized preemption event to the destination UA from a Proxy
      that modifies the Reason value only during this last SIP hop, the
      following syntax shall be used (the reason-text is a default
      string; it is not mandatory, and may be different):

         Reason: preemption ;cause=3 ;text="Generic Preemption"

         Section 5.3 of this document describes in detail the semantics
         of this cause code.

         The default text above is part of a new IANA Registry for
         default text strings for any new protocol namespace cause code.
         See Section 7.2 for details.

      In instances where this namespace is used to indicate preemption
      from a non-IP portion of a call leg, a SIP Gateway shall use the
      following syntax to inform the SIP infrastructure of this event
      (the reason-text is a default string; it is not mandatory, and may
      be different):

         Reason: preemption ;cause=4 ;text=" Non-IP Preemption"

         Section 5.4 of this document describes in detail the semantics
         of this cause code.

         The default text above is part of a new IANA Registry for
         default text strings for any new protocol namespace cause code.
         See Section 7.2 for details.

   Additional definitions of the preemption namespace and its cause
   codes MUST be defined in Standards Track documents.





Polk                        Standards Track                    [Page 19]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


7.2.  Default Reason-Text IANA Registry for the SIP Reason Header

   Below is a new IANA Registry for SIP Reason Header reason-text
   strings, associated with their respective protocol type and Reason-
   param cause values.  Per RFC 3326, the Reason-text string is a quoted
   default string with only human understandability meant.  These
   strings can be changed by local policy.

                Reason-
   Protocol     param      Reason-Text         Reference
   --------     -------    ------------        ---------
   Preemption   Cause=1    UA Preemption       RFC 4411
   Preemption   Cause=2    Reserved Resources  RFC 4411
                             Preempted
   Preemption   Cause=3    Generic Preemption  RFC 4411
   Preemption   Cause=4    Non-IP Preemption   RFC 4411

8.  Contributions

   The following individuals contributed to this effort:

      Subhasri Dhesikan
      Gonzalo Camarillo
      Dave Oran

   The author thanks these individuals greatly for their aid in this
   effort.

9.  Acknowledgements

   To Haluk Keskiner for providing a valued sanity check.  To Dean
   Willis, Rohan Mahy, and Allison Mankin for their belief in and
   backing of this effort.  To Adam Roach and Arun Kumar for helpful
   comments to this document.

   Thanks to Mike Pierce for helpful comments and catching a flaw in
   this spec late in the process (before it was too late).














Polk                        Standards Track                    [Page 20]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


10.  References

10.1.  Normative References

   [1] Schulzrinne, H., Oran, D., and G. Camarillo, "The Reason Header
       Field for the Session Initiation Protocol (SIP)", RFC 3326,
       December 2002.

   [2] Rosenberg, J., Schulzrinne, H., Camarillo, G., Johnston, A.,
       Peterson, J., Sparks, R., Handley, M., and E. Schooler, "SIP:
       Session Initiation Protocol", RFC 3261, June 2002.

   [3] Camarillo, G., Marshall, W., and J. Rosenberg, "Integration of
       Resource Management and Session Initiation Protocol (SIP)", RFC
       3312, October 2002.

   [4] Schulzrinne, H. and J. Polk, "Communications Resource-Priority
       Header in the Session Initiation Protocol (SIP)", RFC 4412,
       February 2006.

   [5] ITU-T Recommendation Q.850 (1993)

   [6] Bradner, S., "Key words for use in RFCs to Indicate Requirement
       Levels", BCP 14, RFC 2119, March 1997.

   [7] Braden, R., Zhang, L., Berson, S., Herzog, S., and S. Jamin,
       "Resource ReSerVation Protocol (RSVP) -- Version 1 Functional
       Specification", RFC 2205, September 1997.

10.2.  Informative References

   [8] J. Manner, G. Karagiannis, A. McDonald, S. Van den Bosch, "NSLP
       for Quality-of-Service signalling", Work in Progress, September
       2005.

Author Information

   James M. Polk
   Cisco Systems
   2200 East President George Bush Turnpike
   Richardson, Texas 75082 USA

   EMail: jmpolk@cisco.com








Polk                        Standards Track                    [Page 21]
^L
RFC 4411        SIP Reason Header for Preemption Events    February 2006


Full Copyright Statement

   Copyright (C) The Internet Society (2006).

   This document is subject to the rights, licenses and restrictions
   contained in BCP 78, and except as set forth therein, the authors
   retain all their rights.

   This document and the information contained herein are provided on an
   "AS IS" basis and THE CONTRIBUTOR, THE ORGANIZATION HE/SHE REPRESENTS
   OR IS SPONSORED BY (IF ANY), THE INTERNET SOCIETY AND THE INTERNET
   ENGINEERING TASK FORCE DISCLAIM ALL WARRANTIES, EXPRESS OR IMPLIED,
   INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE
   INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED
   WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Intellectual Property

   The IETF takes no position regarding the validity or scope of any
   Intellectual Property Rights or other rights that might be claimed to
   pertain to the implementation or use of the technology described in
   this document or the extent to which any license under such rights
   might or might not be available; nor does it represent that it has
   made any independent effort to identify any such rights.  Information
   on the procedures with respect to rights in RFC documents can be
   found in BCP 78 and BCP 79.

   Copies of IPR disclosures made to the IETF Secretariat and any
   assurances of licenses to be made available, or the result of an
   attempt made to obtain a general license or permission for the use of
   such proprietary rights by implementers or users of this
   specification can be obtained from the IETF on-line IPR repository at
   http://www.ietf.org/ipr.

   The IETF invites any interested party to bring to its attention any
   copyrights, patents or patent applications, or other proprietary
   rights that may cover technology that may be required to implement
   this standard.  Please address the information to the IETF at
   ietf-ipr@ietf.org.

Acknowledgement

   Funding for the RFC Editor function is provided by the IETF
   Administrative Support Activity (IASA).







Polk                        Standards Track                    [Page 22]
^L