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
|
Internet Engineering Task Force (IETF) R. Mahy
Request for Comments: 6447 Individual
Category: Standards Track B. Rosen
ISSN: 2070-1721 NeuStar
H. Tschofenig
Nokia Siemens Networks
January 2012
Filtering Location Notifications in
the Session Initiation Protocol (SIP)
Abstract
This document describes filters that limit asynchronous location
notifications to compelling events. These filters are designed as an
extension to RFC 4661, an XML-based format for event notification
filtering, and based on RFC 3856, the SIP presence event package.
The resulting location information is conveyed in existing location
formats wrapped in the Presence Information Data Format Location
Object (PIDF-LO).
Status of This Memo
This is an Internet Standards Track document.
This document is a product of the Internet Engineering Task Force
(IETF). It represents the consensus of the IETF community. It has
received public review and has been approved for publication by the
Internet Engineering Steering Group (IESG). Further information on
Internet Standards is available in Section 2 of RFC 5741.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
http://www.rfc-editor.org/info/rfc6447.
Mahy, et al. Standards Track [Page 1]
^L
RFC 6447 Location Filters January 2012
Copyright Notice
Copyright (c) 2012 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(http://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . . 4
3. Filter Definitions . . . . . . . . . . . . . . . . . . . . . . 4
3.1. Movement . . . . . . . . . . . . . . . . . . . . . . . . . 4
3.2. Speed Changes . . . . . . . . . . . . . . . . . . . . . . 5
3.3. Element Value Changes . . . . . . . . . . . . . . . . . . 5
3.4. Entering or Exiting a Region . . . . . . . . . . . . . . . 8
3.5. Location Type . . . . . . . . . . . . . . . . . . . . . . 10
3.6. Rate Control . . . . . . . . . . . . . . . . . . . . . . . 12
4. XML Schema . . . . . . . . . . . . . . . . . . . . . . . . . . 14
5. Security Considerations . . . . . . . . . . . . . . . . . . . 15
6. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 16
6.1. URN Sub-Namespace Registration for
urn:ietf:params:xml:ns:location-filter . . . . . . . . . . 16
6.2. Schema Registration for location-filter . . . . . . . . . 16
7. Contributors . . . . . . . . . . . . . . . . . . . . . . . . . 17
8. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 17
9. References . . . . . . . . . . . . . . . . . . . . . . . . . . 17
9.1. Normative References . . . . . . . . . . . . . . . . . . . 17
9.2. Informative References . . . . . . . . . . . . . . . . . . 18
Mahy, et al. Standards Track [Page 2]
^L
RFC 6447 Location Filters January 2012
1. Introduction
Conveying location information encapsulated with a Presence
Information Data Format Location Object (PIDF-LO) [RFC4119] document
within SIP is described in [SIP-LOC]. An alternative signaling
approach to location conveyance, which uses asynchronous
communication, is available with the SIP event notification
mechanisms (see RFC 3265 [RFC3265]). This approach conveys location
information in PIDF-LO format using the presence event package
[RFC3856]. This document focuses on the event notification paradigm.
Determining when to send event notifications with location
information is technically more challenging than deciding when to
send other categories of notifications, since location may be
measured as a continuous gradient. Unlike notifications using
discrete-valued quantities, it is difficult to know when a change in
location is sufficiently large to warrant a notification. Event
notifications [RFC3265] can be used with filters (see RFC 4661
[RFC4661]) that allow the number of notifications to be reduced. The
mechanism described in this document defines an extension to RFC 4661
[RFC4661], which limits location notification to events that are of
relevance to the subscriber. These filters persist until they are
replaced with a newer filter or until the subscription itself is
terminated.
The frequency of notifications necessary for various geographic
location applications varies dramatically. The subscriber should be
able to get asynchronous notifications with appropriate frequency and
granularity, without being flooded with a large number of
notifications that are not important to the application.
This document defines new event filters and describes others using
existing mechanisms that may be relevant to a subscriber in the
context of location filtering. Based on the functionality defined in
this document, notifications can be provided in the following cases:
1. the Target moves more than a specified distance since the last
notification (see Section 3.1).
2. the Target exceeds a specified speed (see Section 3.2).
3. the Target enters or exits a 2-dimensional region, described by a
circle or a polygon (see Section 3.4).
4. one or more of the values of the specified civic location have
changed for the location of the Target (see Section 3.3). For
example, the value of the civic address '<A1>' element has
changed from 'California' to 'Nevada'.
Mahy, et al. Standards Track [Page 3]
^L
RFC 6447 Location Filters January 2012
5. the type of location information requested (see Section 3.5)
changes, for example, from civic to geodetic location or vice
versa.
6. a certain amount of time passes (see Section 3.6).
2. Terminology
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 RFC 2119 [RFC2119].
This document reuses terminology from [RFC6280].
3. Filter Definitions
This specification builds on a number of other specifications, as
noted in Section 1. In order to reduce the number of options (and
thereby decrease the chance of interoperability problems), the
functionality described in the following sub-sections of [RFC4661]
MUST be implemented: the <ns-bindings> element (see Section 3.3 of
[RFC4661]); the <filter> element (Section 3.4 of [RFC4661]); and the
<trigger> element (Section 3.6 of [RFC4661]), except for the <added>
and <removed> sub-elements.
3.1. Movement
The <moved> element MUST contain a value in meters indicating the
minimum distance that the resource must have moved from the location
of the resource since the last notification was sent in order to
trigger this event. The distance MUST be measured in meters
absolutely from the point of the last notification, and must include
vertical movement. The <moved> element MUST NOT appear more than
once as a child element of the <filter> element.
<?xml version="1.0" encoding="UTF-8"?>
<filter-set
xmlns="urn:ietf:params:xml:ns:simple-filter"
xmlns:lf="urn:ietf:params:xml:ns:location-filter">
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<lf:moved>300</lf:moved>
</trigger>
</filter>
</filter-set>
Figure 1: Movement Filter Example
Mahy, et al. Standards Track [Page 4]
^L
RFC 6447 Location Filters January 2012
3.2. Speed Changes
Speed changes can be filtered by combining functionality from RFC
4661 with the PIDF-LO extensions for spatial orientation, speed,
heading, and acceleration defined in [RFC5962]. The value of the
<speed> element from [RFC5962] MUST be defined in meters per second.
Note that the condition could be met by a change in any axis,
including altitude.
Figure 2 shows an example for a trigger that fires when the speed of
the Target changes by 3 meters per second.
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="dyn"
urn="urn:ietf:params:xml:schema:pidf:dynamic"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<changed by="3">
//dyn:speed
</changed>
</trigger>
</filter>
</filter-set>
Figure 2: Speed Change Example
An implementation MUST support <ns-bindings> to replace the namespace
prefix. The XPath expression MUST start with a '//' followed by a
single element. No other form of XPath expression is supported. The
<changed> element comes with a few attributes but only the 'by'
attribute MUST be implemented by this specification.
3.3. Element Value Changes
Changes in values, for example related to civic location information,
is provided by the base functionality offered with RFC 4661 utilizing
the <changed> element.
The following example illustrates a filter that triggers when the
Target's location changes from 'FR' (France) to some other country.
Mahy, et al. Standards Track [Page 5]
^L
RFC 6447 Location Filters January 2012
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="ca"
urn="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<changed from="FR">//ca:country</changed>
</trigger>
</filter>
</filter-set>
Figure 3: Element Value Change Example (Country Change)
At times when it is desirable to know if any one element of a list of
CAtypes changes, then they have to be put into separate <changes>
filters to ensure the subscriber is notified when any of the element
values change. Figure 4 shows such an example that illustrates the
difference.
Mahy, et al. Standards Track [Page 6]
^L
RFC 6447 Location Filters January 2012
(A change in value of ANY of the five tokens triggers an event.)
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="ca"
urn="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<changed>//ca:country</changed>
</trigger>
<trigger>
<changed>//ca:A1</changed>
</trigger>
<trigger>
<changed>//ca:A2</changed>
</trigger>
<trigger>
<changed>//ca:A3</changed>
</trigger>
<trigger>
<changed>//ca:PC</changed>
</trigger>
</filter>
</filter-set>
Figure 4: Element Value Change Example
Finally, Figure 5 shows an example where a notification is sent when
the civic address tokens A3 and PC change (BOTH elements must change
in order to let the <trigger> element evaluate to TRUE).
Mahy, et al. Standards Track [Page 7]
^L
RFC 6447 Location Filters January 2012
(Only a change in BOTH tokens triggers an event.)
<?xml version="1.0" encoding="UTF-8"?>
<filter-set xmlns="urn:ietf:params:xml:ns:simple-filter">
<ns-bindings>
<ns-binding prefix="ca"
urn="urn:ietf:params:xml:ns:pidf:geopriv10:civicAddr"/>
</ns-bindings>
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<changed>//ca:A3</changed>
<changed>//ca:PC</changed>
</trigger>
</filter>
</filter-set>
Figure 5: Element Value Change Example
Note: The civic address tokens country, A1, A2, ..., A6 are
hierarchical. It is likely that a change in one civic address token
therefore leads to changes of tokens lower in the hierarchy, e.g., a
change in A3 ('city or town') may cause a change in A4, A5, and A6.
An implementation MUST support <ns-bindings> to replace the namespace
prefix. The XPath expression MUST start with a '//' followed by a
single element. No other form of XPath expression is supported. No
other variant is supported. The <changed> element comes with a few
attributes and the 'by', 'to', and 'from' attribute MUST be
implemented to support this specification.
3.4. Entering or Exiting a Region
The <enterOrExit> condition is satisfied when the Target enters or
exits a 2-dimensional region described by a polygon (as defined in
Section 5.2.2 of [RFC5491]) or a circle (as defined in Section 5.2.3
of [RFC5491]). The <enterOrExit> element MUST contain either a
polygon or a circle as a child element. The <enterOrExit> element
MUST NOT have more than one polygon and/or circle.
If the Target was previously outside the region, the notifier sends a
notification when the Target's location is within the region with at
least 50% confidence. Similarly, when a Target starts within the
region, a notification is sent when the Target's location moves
outside the region with at least 50% confidence.
Note that having 50% confidence that the Target is inside the area
does not correspond to 50% outside. The confidence that the location
is within the region, plus the confidence that the location is
Mahy, et al. Standards Track [Page 8]
^L
RFC 6447 Location Filters January 2012
outside the region is limited to the confidence of the location. The
total confidence depends on the confidence in the location, which is
always less than 100% (95% is recommended in [RFC5491]). The benefit
of this is that notifications are naturally limited: small movements
(relative to the uncertainty of the location) at the borders of the
region do not trigger notifications.
Figure 6 shows filter examples whereby a notification is sent when
the Target enters or exits an area described by a circle, and
Figure 7 describes an area using a polygon.
<?xml version="1.0" encoding="UTF-8"?>
<filter-set
xmlns="urn:ietf:params:xml:ns:simple-filter"
xmlns:lf="urn:ietf:params:xml:ns:location-filter"
xmlns:gml="http://www.opengis.net/gml"
xmlns:gs="http://www.opengis.net/pidflo/1.0">
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<lf:enterOrExit>
<gs:Circle
srsName="urn:ogc:def:crs:EPSG::4326">
<gml:pos>42.5463 -73.2512</gml:pos>
<gs:radius
uom="urn:ogc:def:uom:EPSG::9001">
850.24
</gs:radius>
</gs:Circle>
</lf:enterOrExit>
</trigger>
</filter>
</filter-set>
Figure 6: <enterOrExit> Circle Filter Example
Mahy, et al. Standards Track [Page 9]
^L
RFC 6447 Location Filters January 2012
<?xml version="1.0" encoding="UTF-8"?>
<filter-set
xmlns="urn:ietf:params:xml:ns:simple-filter"
xmlns:lf="urn:ietf:params:xml:ns:location-filter"
xmlns:gml="http://www.opengis.net/gml">
<filter id="123" uri="sip:presentity@example.com">
<trigger>
<lf:enterOrExit>
<gml:Polygon srsName="urn:ogc:def:crs:EPSG::4326">
<gml:exterior>
<gml:LinearRing>
<gml:pos>43.311 -73.422</gml:pos>
<!--A-->
<gml:pos>43.111 -73.322</gml:pos>
<!--F-->
<gml:pos>43.111 -73.222</gml:pos>
<!--E-->
<gml:pos>43.311 -73.122</gml:pos>
<!--D-->
<gml:pos>43.411 -73.222</gml:pos>
<!--C-->
<gml:pos>43.411 -73.322</gml:pos>
<!--B-->
<gml:pos>43.311 -73.422</gml:pos>
<!--A-->
</gml:LinearRing>
</gml:exterior>
</gml:Polygon>
</lf:enterOrExit>
</trigger>
</filter>
</filter-set>
Figure 7: <enterOrExit> Polygon Filter Example
3.5. Location Type
The <locationType> element MAY be included as a child element of the
<what> element. It contains a list of location information types
that are requested by the subscriber. The following list describes
the possible values:
any: The Notifier SHOULD attempt to provide location information in
all forms available to it.
Mahy, et al. Standards Track [Page 10]
^L
RFC 6447 Location Filters January 2012
geodetic: The Notifier SHOULD return a location by value in the form
of a geodetic location.
civic: The Notifier SHOULD return a location by value in the form of
a civic address.
The Notifier SHOULD return the requested location type or types. The
location types the Notifier returns also depends on the setting of
the optional 'exact' attribute. If the 'exact' attribute is set to
"true", then the Notifier MUST return either the requested location
type or no location information. The 'exact' attribute does not
apply (is ignored) for a request for a location type of "any".
In the case of a request for specific locationType(s) and the 'exact'
attribute is "false", the Notifier MAY provide additional location
types, or it MAY provide alternative types if the request cannot be
satisfied for a requested location type.
If the <locationType> element is absent, a value of "any" MUST be
assumed as the default.
The Notifier SHOULD provide civic and geodetic location information
in the response in the same order in which they were included in the
"locationType" element in the request, if both were explicitly
requested. Indeed, the primary advantage of including specific
location types in a request when the 'exact' attribute is set to
"false" is to ensure that one receives the available locations in a
specific order. For example, a subscription for "civic" (with the
'exact' attribute set to "false") could yield any of the following
location types in the response:
o civic
o civic, geodetic
o geodetic (only if civic is not available)
The default value of "false" for the 'exact' attribute allows the
Notifier the option of returning something beyond what is specified,
such as a set of location URIs when only a civic location was
requested.
An example is shown in Figure 8 that utilizes the <locationType>
element with the 'exact' attribute.
Mahy, et al. Standards Track [Page 11]
^L
RFC 6447 Location Filters January 2012
<?xml version="1.0" encoding="UTF-8"?>
<filter-set
xmlns="urn:ietf:params:xml:ns:simple-filter"
xmlns:lf="urn:ietf:params:xml:ns:location-filter">
<filter id="123" uri="sip:presentity@example.com">
<what>
<lf:locationType exact="true">
geodetic
</lf:locationType>
</what>
</filter>
</filter-set>
Figure 8: <locationType> Filter Example
3.6. Rate Control
[RFC6446] extends the SIP events framework by defining three Event
header field parameters that allow a subscriber to set a minimum, a
maximum, and an adaptive minimum of event notifications generated by
the notifier. This allows a subscriber to have overall control over
the stream of notifications, for example to avoid being flooded. Two
of the parameters, namely "min-rate" (which specifies a minimum
notification rate per second) and "max-rate" (which specifies a
maximum notification rate per second) are used by this document.
Only the implementation of these two attributes is required from the
attributes defined in [RFC6446]. Whenever the time since the most
recent notification exceeds the interval corresponding to 1 / "min-
rate", the current state would be sent in its entirety, just like
after a subscription refresh.
A notifier is required to send a NOTIFY request immediately after
creation of a subscription. If state is not available at that time,
then the NOTIFY request may be sent with no content. A separate
NOTIFY containing location is subsequently generated so that the rate
of notification since the last NOTIFY falls between "min-rate" and
"max-rate". An important use case for location-based applications
focuses on the behavior of the initial NOTIFY message(s) and the
information it returns, for example in case of emergency call
routing. When an initial NOTIFY is transmitted, it might not include
complete state.
Mahy, et al. Standards Track [Page 12]
^L
RFC 6447 Location Filters January 2012
Subscriber Notifier
|---SUBSCRIBE(1)--->| Create subscription (w/large value
|<-------200--------| for min-rate and max-rate)
|<-----NOTIFY(2)----| Return initial notify with no state
|--------200------->|
| ... |
|<-----NOTIFY(3)----| Return full state (between min-rate
|--------200------->| and max-rate)
|---SUBSCRIBE(4)--->| Update subscription (to update
|<-------200--------| min-rate and max-rate)
Figure 9: SUBSCRIBE/NOTIFY with Rate Control
Figure 9 shows a SUBSCRIBE/NOTIFY exchange. The initial SUBSCRIBE
message (1) has filters attached and contains a "min-rate" rate
control parameter. In certain situations, it is important to obtain
some amount of location information within a relatively short and
pre-defined period of time, even if the obtained location information
contains a high amount of uncertainty and location information with
less uncertainty could be available at a later point in time. An
example is emergency call routing where an emergency services routing
proxy may need to obtain location information suitable for routing
rather quickly and subsequently a Public Safety Answering Point
requests location information for dispatch.
To obtain location information in a timely fashion using the
SUBSCRIBE/NOTIFY mechanism, it is RECOMMENDED that the initial
SUBSCRIBE contain a "min-rate" rate control parameter (with a large
value, corresponding to a very short delay before the next
notification) that is updated in a later message to a more sensible
value. This provides equivalent functionality to the 'responseTime'
attribute in Section 6.1 of [RFC5985]. The "min-rate" for this first
request is therefore much larger (much more rapid) than the updated
"min-rate" value. Depending on the value in the "min-rate"
parameter, the Notifier may immediately send the initial NOTIFY
message (see message 2) without a body if no location information is
available at this point in time. The desired location information
may then arrive in the subsequent NOTIFY message (see message 3).
Updating the "min-rate" for the subscription can be performed in the
200 response (see message 3) to the NOTIFY that contains location
state, or in a subsequent SUBSCRIBE request (as in message 4).
Mahy, et al. Standards Track [Page 13]
^L
RFC 6447 Location Filters January 2012
4. XML Schema
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema
targetNamespace="urn:ietf:params:xml:ns:location-filter"
xmlns:filter="urn:ietf:params:xml:ns:location-filter"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:gml="http://www.opengis.net/gml">
<xs:element name="enterOrExit" type="gml:GeometryPropertyType"/>
<xs:element name="moved" type="filter:movedType"/>
<xs:complexType name="movedType">
<xs:simpleContent>
<xs:extension base="xs:double">
<xs:anyAttribute namespace="##any" processContents="lax"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
<xs:element name="locationType" type="filter:locationTypeType"/>
<xs:simpleType name="locationTypeBase">
<xs:union>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="any"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType>
<xs:restriction base="filter:locationTypeList">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
</xs:union>
</xs:simpleType>
<xs:simpleType name="locationTypeList">
<xs:list>
<xs:simpleType>
<xs:restriction base="xs:token">
<xs:enumeration value="civic"/>
<xs:enumeration value="geodetic"/>
</xs:restriction>
</xs:simpleType>
</xs:list>
</xs:simpleType>
Mahy, et al. Standards Track [Page 14]
^L
RFC 6447 Location Filters January 2012
<xs:complexType name="locationTypeType">
<xs:simpleContent>
<xs:extension base="filter:locationTypeBase">
<xs:attribute name="exact" type="xs:boolean"
use="optional" default="false"/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
Figure 10: XML Schema
5. Security Considerations
This document specifies one element, namely filters, utilized in
larger systems. As such, this document builds on a number of
specifications for the security of the complete solution, namely
o the SIP event notification mechanism, described in RFC 3265
[RFC3265], defining the SUBSCRIBE/NOTIFY messages.
o the presence event package, described in RFC 3856 [RFC3856], which
is a concrete instantiation of the general event notification
framework.
o the filter framework, described in RFC 4661 [RFC4661], to offer
the ability to reduce the amount of notifications being sent.
Finally, this document indirectly (via the SIP presence event
package) relies on PIDF-LO, described in RFC 4119 [RFC4119], as the
XML container that carries location information.
Each of the documents listed above comes with a Security
Considerations section but the security and privacy aspects are best
covered by the SIP presence event package; see Section 9 of
[RFC3856], and with the GEOPRIV architectural description found in
[RFC6280].
The functionality offered by authorization policies to limit access
to location information is provided by other protocols, such as
Common Policy [RFC4745], Geolocation Policy [GEO-POLICY], or more
recent work around HTTP-Enabled Location Delivery (HELD) context
[HELD]. Although [GEO-POLICY] defines a standardized format for
geolocation authorization policies, it does not define specific
policies for controlling filters.
The functionality described in this document extends the filter
framework with location-specific filters. Local policies might be
Mahy, et al. Standards Track [Page 15]
^L
RFC 6447 Location Filters January 2012
associated with the usage of certain filter constructs and with the
amount of notifications that specific filter settings might cause.
Uploading filters have a significant effect on the ways in which the
request is handled at a server. As a result, it is especially
important that messages containing this extension be authenticated
and authorized. RFC 4661 [RFC4661] discusses this security threat
and proposes authentication and authorization solutions applicable to
this specification.
6. IANA Considerations
6.1. URN Sub-Namespace Registration for
urn:ietf:params:xml:ns:location-filter
This section registers a new XML namespace, as per the guidelines in
[RFC3688].
URI: urn:ietf:params:xml:ns:location-filter
Registrant Contact: IETF, GEOPRIV working group, <geopriv@ietf.org>,
as delegated by the IESG <iesg@ietf.org>.
XML:
BEGIN
<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN"
"http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type"
content="text/html;charset=iso-8859-1"/>
<title>Location Filter Namespace</title>
</head>
<body>
<h1>Namespace for PIDF-LO Location Filters</h1>
<h2>urn:ietf:params:xml:ns:location-filter</h2>
<p>See <a href="http://www.rfc-editor.org/rfc/rfc6447.txt">
RFC 6447</a>.</p>
</body>
</html>
END
6.2. Schema Registration for location-filter
This specification registers a schema, as per the guidelines in
[RFC3688].
Mahy, et al. Standards Track [Page 16]
^L
RFC 6447 Location Filters January 2012
URI: urn:ietf:params:xml:schema:location-filter
Registrant Contact: IETF, GEOPRIV Working Group
(geopriv@ietf.org), as delegated by the IESG (iesg@ietf.org).
XML: The XML can be found as the sole content of Section 4.
7. Contributors
We would like to thank Martin Thomson and James Polk for their
contributions to this document.
8. Acknowledgments
Thanks to Richard Barnes, Alissa Cooper, Randall Gellens, Carl Reed,
Ben Campbell, Adam Roach, Allan Thomson, and James Winterbottom for
their comments.
Furthermore, we would like to thank Alexey Melnikov for his IESG
review comments.
9. References
9.1. Normative References
[GML] OpenGIS, "Open Geography Markup Language (GML)
Implementation Specification", OpenGIS OGC 02-023r4,
January 2003,
<http://www.opengis.org/techno/implementation.htm>.
[RFC2119] Bradner, S., "Key words for use in RFCs to Indicate
Requirement Levels", BCP 14, RFC 2119, March 1997.
[RFC3265] Roach, A., "Session Initiation Protocol (SIP)-Specific
Event Notification", RFC 3265, June 2002.
[RFC3856] Rosenberg, J., "A Presence Event Package for the
Session Initiation Protocol (SIP)", RFC 3856,
August 2004.
[RFC4119] Peterson, J., "A Presence-based GEOPRIV Location Object
Format", RFC 4119, December 2005.
[RFC4661] Khartabil, H., Leppanen, E., Lonnfors, M., and J.
Costa-Requena, "An Extensible Markup Language (XML)-
Based Format for Event Notification Filtering",
RFC 4661, September 2006.
Mahy, et al. Standards Track [Page 17]
^L
RFC 6447 Location Filters January 2012
[RFC5491] Winterbottom, J., Thomson, M., and H. Tschofenig,
"GEOPRIV Presence Information Data Format Location
Object (PIDF-LO) Usage Clarification, Considerations,
and Recommendations", RFC 5491, March 2009.
[RFC5962] Schulzrinne, H., Singh, V., Tschofenig, H., and M.
Thomson, "Dynamic Extensions to the Presence
Information Data Format Location Object (PIDF-LO)",
RFC 5962, September 2010.
[RFC6280] Barnes, R., Lepinski, M., Cooper, A., Morris, J.,
Tschofenig, H., and H. Schulzrinne, "An Architecture
for Location and Location Privacy in Internet
Applications", BCP 160, RFC 6280, July 2011.
[RFC6446] Niemi, A., Kiss, K., and S. Loreto, "Session Initiation
Protocol (SIP) Event Notification Extension for
Notification Rate Control", RFC 6446, January 2012.
9.2. Informative References
[GEO-POLICY] Schulzrinne, H., Tschofenig, H., Cuellar, J., Polk, J.,
Morris, J., and M. Thomson, "Geolocation Policy: A
Document Format for Expressing Privacy Preferences for
Location Information", Work in Progress, October 2011.
[HELD] Winterbottom, J., Tschofenig, H., and M. Thomson,
"Location URI Contexts in HTTP-Enabled Location
Delivery (HELD)", Work in Progress, October 2009.
[RFC3688] Mealling, M., "The IETF XML Registry", BCP 81,
RFC 3688, January 2004.
[RFC4745] Schulzrinne, H., Tschofenig, H., Morris, J., Cuellar,
J., Polk, J., and J. Rosenberg, "Common Policy: A
Document Format for Expressing Privacy Preferences",
RFC 4745, February 2007.
[RFC5985] Barnes, M., "HTTP-Enabled Location Delivery (HELD)",
RFC 5985, September 2010.
[SIP-LOC] Polk, J., Rosen, B., and J. Peterson, "Location
Conveyance for the Session Initiation Protocol", Work
in Progress, September 2011.
Mahy, et al. Standards Track [Page 18]
^L
RFC 6447 Location Filters January 2012
Authors' Addresses
Rohan Mahy
Individual
EMail: rohan@ekabal.com
Brian Rosen
NeuStar
470 Conrad Dr.
Mars, PA 16046
US
Phone: +1 724 382 1051
EMail: br@brianrosen.net
Hannes Tschofenig
Nokia Siemens Networks
Linnoitustie 6
Espoo 02600
Finland
Phone: +358 (50) 4871445
EMail: Hannes.Tschofenig@gmx.net
URI: http://www.tschofenig.priv.at
Mahy, et al. Standards Track [Page 19]
^L
|