summaryrefslogtreecommitdiff
path: root/doc/rfc/rfc7545.txt
blob: 985d9498b5913339abe6db397a42b0aed435b576 (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
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
Internet Engineering Task Force (IETF)                      V. Chen, Ed.
Request for Comments: 7545                                        Google
Category: Standards Track                                         S. Das
ISSN: 2070-1721                           Applied Communication Sciences
                                                                  L. Zhu
                                                                  Huawei
                                                               J. Malyar
                                                               iconectiv
                                                               P. McCann
                                                                  Huawei
                                                                May 2015


            Protocol to Access White-Space (PAWS) Databases

Abstract

   Portions of the radio spectrum that are allocated to licensees are
   available for non-interfering use.  This available spectrum is called
   "white space".  Allowing secondary users access to available spectrum
   "unlocks" existing spectrum to maximize its utilization and to
   provide opportunities for innovation, resulting in greater overall
   spectrum utilization.

   One approach to managing spectrum sharing uses databases to report
   spectrum availability to devices.  To achieve interoperability among
   multiple devices and databases, a standardized protocol must be
   defined and implemented.  This document defines such a protocol, the
   "Protocol to Access White-Space (PAWS) Databases".

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/rfc7545.








Chen, et al.                 Standards Track                    [Page 1]
^L
RFC 7545                          PAWS                          May 2015


Copyright Notice

   Copyright (c) 2015 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.





































Chen, et al.                 Standards Track                    [Page 2]
^L
RFC 7545                          PAWS                          May 2015


Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   5
   2.  Conventions and Terminology . . . . . . . . . . . . . . . . .   5
     2.1.  Conventions Used in This Document . . . . . . . . . . . .   5
     2.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   6
   3.  Protocol Overview . . . . . . . . . . . . . . . . . . . . . .   7
     3.1.  Multi-ruleset Support . . . . . . . . . . . . . . . . . .   8
   4.  Protocol Functionalities  . . . . . . . . . . . . . . . . . .   9
     4.1.  Database Discovery  . . . . . . . . . . . . . . . . . . .  11
       4.1.1.  Preconfiguration  . . . . . . . . . . . . . . . . . .  11
       4.1.2.  Configuration Update: Database URI Changes  . . . . .  11
       4.1.3.  Error Handling  . . . . . . . . . . . . . . . . . . .  12
     4.2.  PAWS Version  . . . . . . . . . . . . . . . . . . . . . .  12
     4.3.  Initialization  . . . . . . . . . . . . . . . . . . . . .  12
       4.3.1.  INIT_REQ  . . . . . . . . . . . . . . . . . . . . . .  13
       4.3.2.  INIT_RESP . . . . . . . . . . . . . . . . . . . . . .  14
     4.4.  Device Registration . . . . . . . . . . . . . . . . . . .  15
       4.4.1.  REGISTRATION_REQ  . . . . . . . . . . . . . . . . . .  16
       4.4.2.  REGISTRATION_RESP . . . . . . . . . . . . . . . . . .  17
     4.5.  Available Spectrum Query  . . . . . . . . . . . . . . . .  18
       4.5.1.  AVAIL_SPECTRUM_REQ  . . . . . . . . . . . . . . . . .  21
       4.5.2.  AVAIL_SPECTRUM_RESP . . . . . . . . . . . . . . . . .  23
       4.5.3.  AVAIL_SPECTRUM_BATCH_REQ  . . . . . . . . . . . . . .  26
       4.5.4.  AVAIL_SPECTRUM_BATCH_RESP . . . . . . . . . . . . . .  28
       4.5.5.  SPECTRUM_USE_NOTIFY . . . . . . . . . . . . . . . . .  29
       4.5.6.  SPECTRUM_USE_RESP . . . . . . . . . . . . . . . . . .  31
     4.6.  Device Validation . . . . . . . . . . . . . . . . . . . .  31
       4.6.1.  DEV_VALID_REQ . . . . . . . . . . . . . . . . . . . .  32
       4.6.2.  DEV_VALID_RESP  . . . . . . . . . . . . . . . . . . .  33
   5.  Protocol Parameters . . . . . . . . . . . . . . . . . . . . .  34
     5.1.  GeoLocation . . . . . . . . . . . . . . . . . . . . . . .  34
     5.2.  DeviceDescriptor  . . . . . . . . . . . . . . . . . . . .  37
     5.3.  AntennaCharacteristics  . . . . . . . . . . . . . . . . .  38
     5.4.  DeviceCapabilities  . . . . . . . . . . . . . . . . . . .  39
     5.5.  DeviceOwner . . . . . . . . . . . . . . . . . . . . . . .  39
     5.6.  RulesetInfo . . . . . . . . . . . . . . . . . . . . . . .  40
     5.7.  DbUpdateSpec  . . . . . . . . . . . . . . . . . . . . . .  41
     5.8.  DatabaseSpec  . . . . . . . . . . . . . . . . . . . . . .  42
     5.9.  SpectrumSpec  . . . . . . . . . . . . . . . . . . . . . .  42
     5.10. SpectrumSchedule  . . . . . . . . . . . . . . . . . . . .  44
     5.11. Spectrum  . . . . . . . . . . . . . . . . . . . . . . . .  44
     5.12. SpectrumProfile . . . . . . . . . . . . . . . . . . . . .  50
     5.13. FrequencyRange  . . . . . . . . . . . . . . . . . . . . .  51
     5.14. EventTime . . . . . . . . . . . . . . . . . . . . . . . .  51
     5.15. GeoSpectrumSpec . . . . . . . . . . . . . . . . . . . . .  52
     5.16. DeviceValidity  . . . . . . . . . . . . . . . . . . . . .  53




Chen, et al.                 Standards Track                    [Page 3]
^L
RFC 7545                          PAWS                          May 2015


     5.17. Error Element . . . . . . . . . . . . . . . . . . . . . .  53
       5.17.1.  OUTSIDE_COVERAGE Error . . . . . . . . . . . . . . .  55
       5.17.2.  DATABASE_CHANGE Error  . . . . . . . . . . . . . . .  56
       5.17.3.  MISSING Error  . . . . . . . . . . . . . . . . . . .  56
   6.  Message Encoding  . . . . . . . . . . . . . . . . . . . . . .  57
     6.1.  JSON-RPC Binding  . . . . . . . . . . . . . . . . . . . .  57
       6.1.1.  Method Names  . . . . . . . . . . . . . . . . . . . .  59
       6.1.2.  JSON Encoding of Data Models  . . . . . . . . . . . .  59
     6.2.  Example Encoding: spectrum.paws.init Method . . . . . . .  61
     6.3.  Example Encoding: spectrum.paws.getSpectrum Method  . . .  62
     6.4.  Example Encoding: DeviceOwner vCard . . . . . . . . . . .  66
   7.  HTTPS Binding . . . . . . . . . . . . . . . . . . . . . . . .  66
   8.  Extensibility . . . . . . . . . . . . . . . . . . . . . . . .  68
     8.1.  Defining Ruleset Identifiers  . . . . . . . . . . . . . .  68
     8.2.  Defining New Message Parameters . . . . . . . . . . . . .  69
     8.3.  Defining Additional Error Codes . . . . . . . . . . . . .  69
   9.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  69
     9.1.  PAWS Ruleset ID Registry  . . . . . . . . . . . . . . . .  70
       9.1.1.  Registration Template . . . . . . . . . . . . . . . .  70
       9.1.2.  Initial Registry Contents . . . . . . . . . . . . . .  72
     9.2.  PAWS Parameters Registry  . . . . . . . . . . . . . . . .  78
       9.2.1.  Registration Template . . . . . . . . . . . . . . . .  78
       9.2.2.  Initial Registry Contents . . . . . . . . . . . . . .  78
     9.3.  PAWS Error Code Registry  . . . . . . . . . . . . . . . .  80
       9.3.1.  Registration Template . . . . . . . . . . . . . . . .  81
       9.3.2.  Initial Registry Contents . . . . . . . . . . . . . .  81
   10. Security Considerations . . . . . . . . . . . . . . . . . . .  81
     10.1.  Assurance of Proper Database . . . . . . . . . . . . . .  83
     10.2.  Protection against Modification  . . . . . . . . . . . .  84
     10.3.  Protection against Eavesdropping . . . . . . . . . . . .  84
     10.4.  Client Authentication Considerations . . . . . . . . . .  84
   11. References  . . . . . . . . . . . . . . . . . . . . . . . . .  85
     11.1.  Normative References . . . . . . . . . . . . . . . . . .  85
     11.2.  Informative References . . . . . . . . . . . . . . . . .  86
   Appendix A.  Database Listing Server Support  . . . . . . . . . .  88
   Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . . .  89
   Contributors  . . . . . . . . . . . . . . . . . . . . . . . . . .  89
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  90













Chen, et al.                 Standards Track                    [Page 4]
^L
RFC 7545                          PAWS                          May 2015


1.  Introduction

   This section provides some high-level introductory material.  Readers
   are strongly encouraged to read "Protocol to Access White-Space
   (PAWS) Databases: Use Cases and Requirements" [RFC6953] for use
   cases, requirements, and additional background.

   A geospatial database can track available spectrum (in accordance
   with the rules of one or more regulatory domains) and make this
   information available to devices.  This approach shifts the
   complexity of spectrum-policy conformance out of the device and into
   the database.  This approach also simplifies adoption of policy
   changes, limiting updates to a handful of databases, rather than
   numerous devices.  It opens the door for innovations in spectrum
   management that can incorporate a variety of parameters, including
   user location and time.  In the future, it also can include other
   parameters, such as user priority, signal type and power, spectrum
   supply and demand, payment or micro-auction bidding, and more.

   In providing this service, a database records and updates information
   necessary to protect primary users -- for example, this information
   may include parameters such as a fixed transmitter's call sign, its
   geolocation, antenna height, power, and periods of operation.  The
   rules that the database is required to follow, including its schedule
   for obtaining and updating protection information, protection rules,
   and information reported to devices, vary according to regulatory
   domain.  Such variations, however, should be handled by each database
   and hidden from devices to the maximum extent possible.

   This specification defines an extensible protocol, built on top of
   HTTP and TLS, to obtain available spectrum from a geospatial database
   by a device with geolocation capability.  It enables a device to
   operate in a regulatory domain that implements this protocol.

2.  Conventions and Terminology

2.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 "Key words for use in
   RFCs to Indicate Requirement Levels" [RFC2119].









Chen, et al.                 Standards Track                    [Page 5]
^L
RFC 7545                          PAWS                          May 2015


2.2.  Terminology

   Database or Spectrum Database:  A Database is an entity that contains
      current information about available spectrum at a given location
      and time, as well as other types of information related to
      spectrum availability and usage.

   Device ID:  An identifier for a device.

   EIRP:  Effective Isotropically Radiated Power

   ETSI:  European Telecommunications Standards Institute
      (http://www.etsi.org)

   FCC:  The U.S.  Federal Communications Commission
      (http://www.fcc.gov)

   Listing server:  A server that provides the URIs for one or more
      Spectrum Databases.  A regulator, for example, may operate a
      Database Listing Server to publish the list of authorized Spectrum
      Databases for its regulatory domain.

   Master Device:  A device that queries the Database, on its own behalf
      and/or on behalf of a slave device, to obtain available spectrum
      information.

   Regulatory Domain:  A location where certain rules apply to the use
      of white-space spectrum, including the operation of Databases and
      devices involved in its use.  A regulatory domain is normally
      defined by a unit of government for a particular country, but PAWS
      is agnostic as to how a regulatory domain is constructed.

   Ruleset:  A ruleset represents a set of rules that governs the
      operation of white-space devices and Spectrum Databases.  A
      regulatory authority can define its own set of rules or adopt an
      existing ruleset.  When a Database or device is said to "support a
      ruleset", it means that it contains out-of-band knowledge of the
      rules and that its hardware and software implementations conform
      to those rules.

   Ruleset Identifier:  A ruleset can be identified by an IANA-
      registered identifier (see PAWS Ruleset ID Registry
      (Section 9.1)).  When a Database or device indicates it supports a
      ruleset identifier, it means that it conforms to the rules
      associated with that identifier.  A regulatory authority can
      define and register its own ruleset identifiers, or it can use a
      previously registered identifier if it adopts an existing ruleset.




Chen, et al.                 Standards Track                    [Page 6]
^L
RFC 7545                          PAWS                          May 2015


   Slave Device:  A device that queries the Database through a master
      device.

3.  Protocol Overview

   A Master Device uses PAWS to obtain a schedule of available spectrum
   at its location.  The security necessary to ensure the accuracy,
   privacy, and confidentiality of the device's location is described in
   the Security Considerations (Section 10).  This document assumes that
   the Master Device and the Database are connected to the Internet.

   A typical sequence of PAWS operations is outlined as follows.  See
   "Protocol Functionalities" (Section 4) and "Protocol Parameters"
   (Section 5) for details:

   1.   The Master Device obtains (statically or dynamically) the URI
        for a Database appropriate for its location, to which to send
        subsequent PAWS messages.

   2.   The Master Device establishes an HTTPS session with the
        Database.

   3.   The Master Device optionally sends an initialization message to
        the Database to exchange capabilities.

   4.   If the Database receives an initialization message, it responds
        with an initialization-response message in the body of the HTTP
        response.

   5.   The Database may require the Master Device to be registered
        before providing service.

   6.   The Master Device sends an available-spectrum request message to
        the Database.  The message may be on behalf of a Slave Device
        that made a request to the Master Device.

   7.   If the Master Device is making a request on behalf of a Slave
        Device, the Master Device may verify with the Database that the
        Slave Device is permitted to operate.

   8.   The Database responds with an available-spectrum response
        message in the body of the HTTP response.









Chen, et al.                 Standards Track                    [Page 7]
^L
RFC 7545                          PAWS                          May 2015


   9.   The Master Device may send a spectrum-usage notification message
        to the Database.  The notification is purely informational; it
        notifies the Database what spectrum the Master Device intends to
        use and is not a request to the Database to get permission to
        use that spectrum.  Some Databases may require spectrum-usage
        notification.

   10.  If the Database receives a spectrum-usage notification message,
        it responds by sending the Master Device a spectrum-usage
        acknowledgement message.  Since the notification is purely
        informational, the Master Device does not need to process the
        database response.

   Different regulatory domains may impose particular requirements, such
   as requiring Master Devices to register with the Database, performing
   Slave Device verification, and sending spectrum-usage notifications.

3.1.  Multi-ruleset Support

   For a Master Device that supports multiple rulesets and operates with
   multiple Databases, PAWS supports the following sequence of
   operations for each request by the Master Device:

   1.  The Master Device includes in its request its location and
       optionally includes the identifier of all the rulesets it
       supports and any parameter values it might need for the request.

   2.  The Database uses the device location and also may use the
       ruleset list to determine its response, for example, to select
       the list of required parameters.

   3.  If required parameters are missing from the request, the Database
       responds with an error and a list of names of the missing
       parameters.

   4.  The Master Device makes the request again, adding the missing
       parameter values.

   5.  The Database responds to the request, including the identifier of
       the applicable ruleset.

   6.  The Master Device uses the indicated ruleset to determine how to
       interpret the database response.

   NOTE: Some regulatory domains specify sets of requirements for device
   behavior that may be complex and not easily parameterized.  The
   ruleset-id parameter provides a mechanism for the Database to inform
   the Master Device of an applicable ruleset, and, for devices with



Chen, et al.                 Standards Track                    [Page 8]
^L
RFC 7545                          PAWS                          May 2015


   out-of-band knowledge of the particular regulatory domain
   requirements, to satisfy those requirements without having to specify
   the device-side behavior within the protocol.  Ruleset identifiers
   will normally contain the name of the regulatory body that
   established the rules and version information, such as
   "FccTvBandWhiteSpace-2010".

   By separating the regulatory "authority" from the "ruleset-id", it
   allows the protocol to support multiple regulatory authorities that
   use the same device-side ruleset.  It also allows support for a
   single authority to define multiple rulesets.

4.  Protocol Functionalities

   PAWS consists of several components.  As noted below, some regulatory
   domains or database implementations may mandate the use of a
   component, even when its use is not mandated by PAWS.

   o  Database Discovery (Section 4.1) is a required component for the
      Master Device.

   o  Initialization (Section 4.3) is a required component for the
      Database.  Its use allows the Master Device to determine necessary
      information that has not been preconfigured.

   o  Device Registration (Section 4.4) is an optional component for the
      Database.  It can be implemented as a separate component or as
      part of the Available Spectrum Query (Section 4.5) component.  It
      is used by the Master Device when the Database requires it.  Note
      that some regulators require device registration for only specific
      device types, such as higher-power fixed (as opposed to mobile)
      devices, to allow them to contact the operators to resolve any
      interference issues.

   o  Available Spectrum Query (Section 4.5) is a required component for
      the Master Device and the Database.

   o  Spectrum Use Notify (Section 4.5.5) is an optional component for
      the Master Device and the Database.  When it is required, the
      Database informs the Master Device via its response to the
      Available Spectrum Query (Section 4.5).

   o  Device Validation (Section 4.6) as a separate component is
      optional for the Master Device and Database.  When implemented by
      the Database, its use allows the Master Device to validate Slave
      Devices without having to use the full Available Spectrum Query.





Chen, et al.                 Standards Track                    [Page 9]
^L
RFC 7545                          PAWS                          May 2015


   This section describes the protocol components and their messages.
   "Protocol Parameters" (Section 5) contains a more thorough discussion
   of the parameters that make up the PAWS request and response
   messages.  "Message Encoding" (Section 6) provides examples of
   message encodings.  "HTTPS Binding" (Section 7) describes the use of
   HTTPS ("HTTP Over TLS" [RFC2818]) for transferring PAWS messages and
   optional device authentication.

   The parameter tables in this section and "Protocol Parameters"
   (Section 5) are for reference and contain the name of each parameter,
   the data type of each parameter, and whether the existence of the
   parameter is required for the protocol transaction in question.  The
   diagrams are loosely based on the Unified Modeling Language (UML),
   and the data types are defined either in "Protocol Parameters"
   (Section 5) or are one of the following primitive or structured
   types:

   string:  A string, as defined by JSON [RFC7159], restricted to the
      UTF-8 encoding.

   int:  A number, as defined by JSON [RFC7159], without a fractional or
      exponent part.

   float:  A number, as defined by JSON [RFC7159].

   boolean:  A boolean, as defined by JSON [RFC7159].

   list:  A structured type that represents a list of elements, as
      defined by JSON [RFC7159] array type.  All elements of the list
      are of the same data type, which is indicated in its diagram and
      description.  The diagram notation and description may include
      additional constraints, such as minimum or maximum number of
      elements.

   Also:

   o  All parameter names are case sensitive.  Unless stated otherwise,
      all string values are case sensitive.

   o  All timestamps are in UTC and are expressed using exactly the
      form, YYYY-MM-DDThh:mm:ssZ, as defined by "Date and Time on the
      Internet: Timestamps" [RFC3339].

   In some cases, specific rulesets may place additional requirements on
   message parameters.  These additional requirements will be documented
   in the IANA PAWS Ruleset ID Registry (Section 9.1).  When a request
   message sent to the Database has missing parameters, whether they are




Chen, et al.                 Standards Track                   [Page 10]
^L
RFC 7545                          PAWS                          May 2015


   required by PAWS or the applicable ruleset, the Database returns the
   MISSING error (see Section 5.17.3), along with data indicating the
   missing parameters.

4.1.  Database Discovery

4.1.1.  Preconfiguration

   The Master Device can be provisioned statically (preconfigured) with
   the URI of one or more Databases.  For example, in a particular
   regulatory domain, there may be a number of certified Databases that
   any device operating in that domain is permitted to connect to, and
   those URIs can be preconfigured in the device.

   Listing Server Support: As an alternative to preconfiguring devices
   with a list of certified Databases, some regulatory domains support
   the preconfiguration of devices with the URI of a certified listing
   server, to which devices can connect to obtain the list of certified
   Databases.  See "Database Listing Server Support" (Appendix A) for
   further information.

4.1.2.  Configuration Update: Database URI Changes

   To adapt to changes in the list of certified or approved Databases,
   the device needs to update its preconfigured list of Databases.

   A Database MAY change its URI, but before it changes its URI, it MUST
   indicate the upcoming change by including the URI of one or more
   alternate Databases using DbUpdateSpec (Section 5.7) in its responses
   to devices.  The Database MUST reply with DbUpdateSpec for a minimum
   of 2 weeks before disabling the old URI.  A device will update its
   preconfigured entry for the Database sending the DbUpdateSpec by
   replacing this entry with the alternate Databases listed in the
   DbUpdateSpec; the list of alternate Databases does not affect any
   other entries.  Note that the ordering of Databases in the list does
   not imply any preference and does not need to remain the same for
   every request.  The device SHOULD detect infinite redirection loops;
   if a suitable Database cannot be contacted, the device MUST treat
   this as equivalent to a response indicating no available spectrum.
   This database-change mechanism is used, for example, before a
   Database ceases operation; it is not intended to be used for dynamic
   load balancing.









Chen, et al.                 Standards Track                   [Page 11]
^L
RFC 7545                          PAWS                          May 2015


4.1.3.  Error Handling

   The device SHOULD select another Database from its list of
   preconfigured Databases if:

   o  The selected Database is unreachable or does not respond.

   o  The selected Database returns an UNSUPPORTED error (see "Error
      Codes" (Section 5.17)), which indicates the Database does not
      support the device (based on its device type, model, etc.) or
      supports none of the rulesets specified in the request.

   If a suitable Database cannot be contacted, the device MUST treat
   this as equivalent to a response indicating no available spectrum.
   If the device had previously contacted a Database to get available
   spectrum, but subsequently fails to contact a suitable Database, the
   spectrum the device is currently using can be used for as long as the
   spectrum data is valid.  However, after that period, the device will
   no longer have valid spectrum to use.  Some regulatory domains may
   have specific rules regarding how long the spectrum data remains
   valid in these cases.

4.2.  PAWS Version

   PAWS version uses a "<major>.<minor>" numbering scheme to indicate
   versions of the protocol.  The protocol versioning policy is intended
   to allow the device or Database to indicate the format of a message
   and its understanding of PAWS functionality defined by that version.
   No change is made to the version string for the addition of message
   components that only add to extensible parameter values.  The <minor>
   number is incremented when the changes made to the protocol add
   functionalities (methods) but do not change the existing
   functionalities.  The <major> number is incremented when incompatible
   changes are made to existing functionality.

   The current PAWS version is "1.0".

4.3.  Initialization

   A Master Device SHOULD use the initialization procedure to exchange
   capability information with the Database whenever the Master Device
   powers up or initiates communication with the Database.  The
   initialization response informs the Master Device of specific
   parameterized-rule values for each supported ruleset, such as
   threshold distances and time periods beyond which the device must
   update its available-spectrum data (see "RuleSetInfo" (Section 5.6)).





Chen, et al.                 Standards Track                   [Page 12]
^L
RFC 7545                          PAWS                          May 2015


   When parameterized-rule values are not preconfigured for the
   applicable ruleset at the specified location, a Master Device MUST
   use the initialization procedure.

   It is important to note that, when parameterized-rule values are
   preconfigured in a Master Device, they are preconfigured on a per-
   ruleset basis.  That is, values preconfigured for one ruleset are not
   applicable to any other ruleset.

   For database implementations that require it, the initialization
   message also enables extra database-specific or ruleset-specific
   handshake parameters to be communicated before allowing available-
   spectrum requests.

   The Initialization request procedure is depicted in Figure 1.

   o  INIT_REQ (Section 4.3.1) is the initialization request message

   o  INIT_RESP (Section 4.3.2) is the initialization response message

                  +---------------+    +-------------------+
                  | Master Device |    | Spectrum Database |
                  +---------------+    +-------------------+
                        |                     |
                        |    INIT_REQ         |
                        |-------------------->|
                        |                     |
                        |    INIT_RESP        |
                        |<--------------------|
                        |                     |

                                 Figure 1

4.3.1.  INIT_REQ

   The initialization request message allows the Master Device to
   initiate exchange of capabilities with the Database.

   +---------------------------------------+
   |INIT_REQ                               |
   +----------------------------+----------|
   |deviceDesc:DeviceDescriptor | REQUIRED |
   |location:GeoLocation        | REQUIRED |
   |.......................................|
   |*other:any                  | OPTIONAL |
   +----------------------------+----------+





Chen, et al.                 Standards Track                   [Page 13]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   deviceDesc:  The DeviceDescriptor (Section 5.2) for the device is
      REQUIRED.  If the device descriptor does not contain any ruleset
      IDs, the Master Device is asking the Database to return a
      RulesetInfo (Section 5.6) list that specifies the rulesets that it
      supports at the specified location.

   location:  The GeoLocation (Section 5.1) of the device is REQUIRED.
      If the location is outside all regulatory domain supported by the
      Database, the Database MUST respond with an OUTSIDE_COVERAGE error
      (see Table 1).

   other:  The Master Device MAY specify additional handshake parameters
      in the INIT_REQ message.  The Database MUST ignore all parameters
      it does not understand.  To simplify its initialization logic, a
      Master Device that supports multiple Databases and rulesets can
      include the union of all required parameters for all its supported
      rulesets.  Consult the PAWS Parameters Registry (Section 9.2) for
      possible additional parameters.

4.3.2.  INIT_RESP

   The initialization response message communicates database parameters
   to the requesting device.  This response is returned only when there
   is at least one ruleset.  Otherwise, the Database returns an error
   response, as described in INIT_REQ (Section 4.3.1).

   +---------------------------------------+
   |INIT_RESP                              |
   +----------------------------+----------+   1..* +-------------+
   |rulesetInfos:list           | REQUIRED |------->| RulesetInfo |
   |databaseChange:DbUpdateSpec | OPTIONAL |        +-------------+
   |.......................................|
   |*other:any                  | OPTIONAL |
   +----------------------------+----------+

   Parameters:

   rulesetInfos:  A RulesetInfo (Section 5.6) list MUST be included in
      the response.  Each RulesetInfo corresponds to a ruleset supported
      by the Database and is applicable to the location specified in the
      INIT_REQ (Section 4.3.1) message.

      If the device included a list of ruleset IDs in the
      DeviceDescriptor of its INIT_REQ message, each RulesetInfo in the
      response MUST match one of the specified ruleset IDs.




Chen, et al.                 Standards Track                   [Page 14]
^L
RFC 7545                          PAWS                          May 2015


      If the DeviceDescriptor did not contain any ruleset IDs, the
      Database SHOULD include in the rulesetInfos list a RulesetInfo for
      each ruleset it supports at the specified location.

      If the Database does not support the device or supports none of
      the rulesets specified in the DeviceDescriptor, it MUST instead
      return an error with the UNSUPPORTED code (see Table 1) in the
      error response.

   databaseChange:  The Database MAY include a DbUpdateSpec
      (Section 5.7) to notify the Master Device of a change to the
      database URI, providing one or more alternate database URIs.  The
      device needs to update its preconfigured entry for the responding
      Database with the alternate Databases listed in the DbUpdateSpec.

   other:  The Database MAY include additional handshake parameters in
      the INIT_RESP (Section 4.3.2) message.  The Master Device MUST
      ignore all parameters it does not understand.  Consult the PAWS
      Parameters Registry (Section 9.2) for possible additional
      parameters.

4.4.  Device Registration

   Some rulesets require a Master Device to send its registration
   information to the Database in order to establish certain operational
   parameters.  FCC rules, for example, require that a 'Fixed Device'
   register its owner and operator contact information, its device
   identifier, its location, and its antenna height (see FCC CFR47-15H
   [FCC-CFR47-15H]).

   The Database MAY implement device registration as a separate Device
   Registration request, or as part of the available-spectrum request.
   If the Database does not implement a separate Device Registration
   request, it MUST return an error with the UNIMPLEMENTED code (see
   Table 1) in the error-response message.

   The Device Registration request procedure is depicted in Figure 2.

   o  REGISTRATION_REQ (Section 4.4.1) is the device-registration
      request message

   o  REGISTRATION_RESP (Section 4.4.2) is the device-registration
      response message








Chen, et al.                 Standards Track                   [Page 15]
^L
RFC 7545                          PAWS                          May 2015


                +---------------+        +-------------------+
                | Master Device |        | Spectrum Database |
                +---------------+        +-------------------+
                      |                         |
                      |    REGISTRATION_REQ     |
                      |------------------------>|
                      |                         |
                      |    REGISTRATION_RESP    |
                      |<------------------------|
                      |                         |

                                 Figure 2

4.4.1.  REGISTRATION_REQ

   The registration request message contains the required registration
   parameters.  A parameter marked as optional may be required by some
   rulesets.

   +-------------------------------------------+
   |REGISTRATION_REQ                           |
   +-------------------------------+-----------+
   |deviceDesc:DeviceDescriptor    | REQUIRED  |
   |location:GeoLocation           | REQUIRED  |
   |deviceOwner:DeviceOwner        | OPTIONAL  |
   |antenna:AntennaCharacteristics | OPTIONAL  |
   |...........................................|
   |*other:any                     | OPTIONAL  |
   +-------------------------------+-----------+

   Parameters:

   deviceDesc:  The DeviceDescriptor (Section 5.2) for the Master Device
      is REQUIRED.  The ruleset IDs included in the DeviceDescriptor
      indicate the rulesets for which the device wishes to register.

   location:  The GeoLocation (Section 5.1) for the device is REQUIRED.
      More precisely, this is the location at which the device intends
      to operate.  If the location is outside all regulatory domains
      supported by the Database, the Database MUST respond with an
      OUTSIDE_COVERAGE error (see Table 1).

   deviceOwner:  The DeviceOwner (Section 5.5) information is OPTIONAL.
      Some rulesets may require deviceOwner information under certain
      conditions.  See PAWS Ruleset ID Registry (Section 9.1) for
      ruleset-specific requirements.

   antenna:  The AntennaCharacteristics (Section 5.3) is OPTIONAL.



Chen, et al.                 Standards Track                   [Page 16]
^L
RFC 7545                          PAWS                          May 2015


   other:  Rulesets and database implementations may require additional
      registration parameters.  To simplify its registration logic, the
      Master Device MAY send a union of the registration information
      required by all supported rulesets.  The Database MUST ignore all
      parameters it does not understand.  Consult the PAWS Parameters
      Registry (Section 9.2) for possible additional parameters.

4.4.2.  REGISTRATION_RESP

   The registration response message acknowledges successful
   registration by including a RulesetInfo message for each ruleset in
   which the registration is accepted.  If the Database accepts the
   registration for none of the specified rulesets, the Database MUST
   return the NOT_REGISTERED error (see "Error Codes" (Section 5.17)).

   +---------------------------------------+
   |REGISTRATION_RESP                      |
   +----------------------------+----------+   1..* +-------------+
   |rulesetInfos:list           | REQUIRED |------->| RulesetInfo |
   |databaseChange:DbUpdateSpec | OPTIONAL |        +-------------+
   |............................|..........|
   |*other:any                  | OPTIONAL |
   +----------------------------+----------+

   Parameters:

   rulesetInfos:  A RulesetInfo (Section 5.6) list MUST be included in
      the response.  Each entry corresponds to a ruleset for which the
      registration was accepted.  The list MUST contain at least one
      entry.

      Each RulesetInfo in the response MUST match one of the ruleset IDs
      specified in the DeviceDescriptor of REGISTRATION_REQ.

      If the Database does not support the device or supports none of
      the rulesets specified in the DeviceDescriptor, it MUST instead
      return an error with the UNSUPPORTED code (see Table 1) in the
      error response.

   databaseChange:  The Database MAY include a DbUpdateSpec
      (Section 5.7) to notify the Master Device of a change to the
      database URI, providing one or more alternate database URIs.  The
      device needs to update its preconfigured entry for the responding
      Database with the alternate Databases listed in the DbUpdateSpec.







Chen, et al.                 Standards Track                   [Page 17]
^L
RFC 7545                          PAWS                          May 2015


   other:  Database implementations MAY return additional parameters in
      the registration response.  The Master Device MUST ignore any
      parameters it does not understand.  Consult the PAWS Parameters
      Registry (Section 9.2) for possible additional parameters.

4.5.  Available Spectrum Query

   To obtain the available spectrum from the Database, a Master Device
   sends a request that contains its geolocation and any parameters
   required by the ruleset (such as device identifier, capabilities, and
   characteristics).  The Database returns a response that describes
   which frequencies are available, at what permissible operating power
   levels, and a schedule of when they are available.

   The Available Spectrum Query procedure is depicted in Figure 3.

   o  AVAIL_SPECTRUM_REQ (Section 4.5.1) is the available-spectrum
      request message.

   o  AVAIL_SPECTRUM_RESP (Section 4.5.2) is the available-spectrum
      response message.

   o  AVAIL_SPECTRUM_BATCH_REQ (Section 4.5.3) is an OPTIONAL batch
      version of the available-spectrum request message that allows
      multiple locations to be specified in the request.

   o  AVAIL_SPECTRUM_BATCH_RESP (Section 4.5.4) is the response message
      for the batch version of the available-spectrum request that
      contains available spectrum for each location in the request.

   o  SPECTRUM_USE_NOTIFY (Section 4.5.5) is the spectrum-usage
      notification message.

   o  SPECTRUM_USE_RESP (Section 4.5.6) is the spectrum-usage
      acknowledgment message.
















Chen, et al.                 Standards Track                   [Page 18]
^L
RFC 7545                          PAWS                          May 2015


               +---------------+          +-------------------+
               | Master Device |          | Spectrum Database |
               +---------------+          +-------------------+
                     |                            |
                     |    AVAIL_SPECTRUM_REQ      |
                     | (AVAIL_SPECTRUM_BATCH_REQ) |
                     |--------------------------->|
                     |                            |
                     |    AVAIL_SPECTRUM_RESP     |
                     | (AVAIL_SPECTRUM_BATCH_RESP)|
                     |<---------------------------|
                     |                            |
                     |   (SPECTRUM_USE_NOTIFY)    |
                     |--------------------------->|
                     |                            |
                     |    (SPECTRUM_USE_RESP)     |
                     |<---------------------------|
                     |                            |

                                 Figure 3

   1.  First, the Master Device sends an available-spectrum request
       message to the Database.

   2.  The Database MUST respond with an error using the NOT_REGISTERED
       code (see Table 1) if:

       *  registration information is required, and

       *  the request does not include registration information, and

       *  the device has not previously registered with the Database

   3.  If the location specified in the request is outside the
       regulatory domain supported by the Database, the Database MUST
       respond with an OUTSIDE_COVERAGE error (see Table 1).  If some,
       but not all, locations within a batch request are outside the
       regulatory domain supported by the Database, the Database MUST
       return an OK response with available spectrum for only the valid
       locations; otherwise, if all locations within a batch request are
       outside the regulatory domain, the Database MUST respond with an
       OUTSIDE_COVERAGE error.









Chen, et al.                 Standards Track                   [Page 19]
^L
RFC 7545                          PAWS                          May 2015


   4.  The Database MAY perform other validation of the request, (e.g.,
       checking for missing required parameters or authorizations).  If
       validation fails, the Database returns an appropriate error code
       (Table 1).  If the request is missing required parameters, the
       Database MUST respond with a MISSING error (see Table 1) and
       SHOULD include a list of the missing parameters.

   5.  If the request is valid, the Database responds with an available-
       spectrum response message.  If the ruleset requires that devices
       must report anticipated spectrum usage, the Database will
       indicate so in the response message.

   6.  If the available-spectrum response indicates that the Master
       Device must send a spectrum-usage notification message, the
       Master Device sends the notification message to the Database.
       Even when not required by the Database, the Master Device MAY
       send a notification message.

   7.  If the Database receives a spectrum-usage notification message,
       it MUST send a spectrum-usage acknowledgment message to the
       Master Device.

   The procedure for a Master Device to ask for available spectrum on
   behalf of a Slave Device is similar, except that the process is
   initiated by the Slave Device.  The device identifier, capabilities,
   and characteristics communicated in the AVAIL_SPECTRUM_REQ message
   MUST be those of the Slave Device, and:

   o  The "masterDeviceLocation" field specifying the location of the
      Master Device is REQUIRED.

   o  The "location" field specifying the location of the Slave Device
      is OPTIONAL, since the Slave Device may not have location-sensing
      capabilities.

   Although the communication and protocol between the Slave Device and
   Master Device are outside the scope of this document (represented as
   dotted lines), the expected message sequence is shown in Figure 4.













Chen, et al.                 Standards Track                   [Page 20]
^L
RFC 7545                          PAWS                          May 2015


      +------------+     +---------------+      +-------------------+
      |Slave Device|     | Master Device |      | Spectrum Database |
      +------------+     +---------------+      +-------------------+
          |                 |                           |
          | AVAIL_SPEC_REQ  |                           |
          |................>|                           |
          |                 |                           |
          |                 |    AVAIL_SPECTRUM_REQ     |
          |                 |-------------------------->|
          |                 |                           |
          |                 |    AVAIL_SPECTRUM_RESP    |
          |                 |<--------------------------|
          | AVAIL_SPEC_RESP |                           |
          |<................|                           |
          |                 |                           |
          | (SPECTRUM_USE)  |                           |
          |................>|   (SPECTRUM_USE_NOTIFY)   |
          |                 |-------------------------->|
          |                 |                           |
          |                 |    (SPECTRUM_USE_RESP)    |
          |                 |<--------------------------|
          |                 |                           |

                                 Figure 4

4.5.1.  AVAIL_SPECTRUM_REQ

   The request message for the Available Spectrum Query protocol MUST
   include a geolocation.  Rulesets may mandate that it be the device's
   current location or allow it to be an anticipated location.  A
   parameter marked as optional may be required by some rulesets.

   +----------------------------------------------------+
   |AVAIL_SPECTRUM_REQ                                  |
   +----------------------------------+-----------------+
   |deviceDesc:DeviceDescriptor       | see description |
   |location:GeoLocation              | see description |
   |owner:DeviceOwner                 | OPTIONAL        |
   |antenna:AntennaCharacteristics    | OPTIONAL        |
   |capabilities:DeviceCapabilities   | OPTIONAL        |
   |masterDeviceDesc:DeviceDescriptor | OPTIONAL        |
   |masterDeviceLocation:GeoLocation  | see description |
   |requestType:string                | OPTIONAL        |
   |..................................|.................|
   |*other:any                        | OPTIONAL        |
   +----------------------------------+-----------------+





Chen, et al.                 Standards Track                   [Page 21]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   deviceDesc:  The DeviceDescriptor (Section 5.2) for the device
      requesting available spectrum.  When the request is made by a
      Master Device on its own behalf, the descriptor is that of the
      Master Device, and it is REQUIRED.  When the request is made on
      behalf of a Slave Device, the descriptor is that of the Slave
      Device, and it is REQUIRED if the "requestType" parameter is not
      specified.  The deviceDesc parameter may be OPTIONAL for some
      values of requestType.

   location:  The GeoLocation (Section 5.1) for the device requesting
      available spectrum.  More precisely, this is the location at which
      the device intends to operate.  When the request is made by the
      Master Device on its own behalf, the location is that of the
      Master Device, and it is REQUIRED.  When the request is made by
      the Master Device on behalf of a Slave Device, the location is
      that of the Slave Device, and it is OPTIONAL (see also
      masterDeviceLocation).  The location may be an anticipated
      position of the device to support mobile devices, but its use
      depends on the ruleset.  If the location specifies a region,
      rather than a point, the Database MAY return an error with the
      UNIMPLEMENTED code (see Table 1), if it does not implement query
      by region.

      NOTE: Technically, this is the location of the radiation center of
      the device's antenna, but that distinction may be relevant only
      for fixed devices.

   owner:  The DeviceOwner (Section 5.5) information MAY be included to
      register the device with the Database.  This enables the device to
      register and get spectrum-availability information in a single
      request.  Some rulesets mandate registration for specific device
      types.

   antenna:  The AntennaCharacteristics (Section 5.3) is OPTIONAL.

   capabilities:  The Master Device MAY include its DeviceCapabilities
      (Section 5.4) to limit the available-spectrum response to the
      spectrum that is compatible with its capabilities.  The Database
      SHOULD NOT return spectrum that is not compatible with the
      specified capabilities.

   masterDeviceDesc:  When the request is made by the Master Device on
      behalf of a Slave Device, the Master Device MAY provide its own
      descriptor.





Chen, et al.                 Standards Track                   [Page 22]
^L
RFC 7545                          PAWS                          May 2015


   masterDeviceLocation:  When the request is made by the Master Device
      on behalf of a Slave Device, the Master Device MUST provide its
      own GeoLocation (Section 5.1).

   requestType:  The request type is OPTIONAL; it may be used to modify
      the request, but its use depends on the applicable ruleset.  The
      request type may be used, for example, to indicate that the
      response should include generic Slave Device parameters without
      having to specify the device descriptor for a specific device.
      When requestType is missing, the request is for a specific device
      (Master or Slave), so deviceDesc is REQUIRED.  The maximum length
      of the value is 64 octets.  See the specifics in the Initial
      Registry Contents (Section 9.1.2) for the Ruleset ID Registry.

   other:  Rulesets and database implementations may require additional
      request parameters.  The Database MUST ignore all parameters it
      does not understand.  Consult the PAWS Parameters Registry
      (Section 9.2) for possible additional parameters.

4.5.2.  AVAIL_SPECTRUM_RESP

   The response message for the Available Spectrum Query contains one or
   more SpectrumSpec (Section 5.9) elements, one for each ruleset
   supported at the location specified in the corresponding
   AVAIL_SPECTRUM_REQ (Section 4.5.1) message.  Each SpectrumSpec
   element contains a list of one or more spectrum schedules,
   representing permissible power levels over time:

   o  Each spectrum schedule specifies the permissible power level for a
      duration defined by a pair of start and stop times.  The power
      levels refer to permissible EIRP over a resolution bandwidth.

   o  Within each list of schedules, event-time intervals MUST be
      disjoint and MUST be sorted in increasing time.

   o  A gap in the time schedule means no spectrum is available for that
      time interval.

   Consider a Database that provides a schedule of available spectrum
   for the next 24 hours.  If spectrum availability were to be different
   at different times of day, the response would contain a list of
   schedules, each transition representing some change to the spectrum
   availability.  A device might use different strategies to select
   which spectrum to use, e.g.:

   o  Always use the frequencies that permit the highest power





Chen, et al.                 Standards Track                   [Page 23]
^L
RFC 7545                          PAWS                          May 2015


   o  Use the frequencies that are available for the longest period of
      time.

   o  Just use the first set of frequencies that matches its needs.

   +---------------------------------------+
   |AVAIL_SPECTRUM_RESP                    |
   +----------------------------+----------+
   |timestamp:string            | REQUIRED |
   |deviceDesc:DeviceDescriptor | REQUIRED |
   |spectrumSpecs:list          | REQUIRED |-------+
   |............................|..........|       |
   |databaseChange:DbUpdateSpec | OPTIONAL |       |
   |*other:any                  | OPTIONAL |       |
   +----------------------------+----------+       | 1..*
                                                   V
                              +-----------------------------------+
                              |SpectrumSpec                       |
                              +------------------------+----------+
                              |rulesetInfo:RulesetInfo | REQUIRED |
                              |spectrumSchedules:list  | REQUIRED |-+
                              |timeRange:EventTime     | OPTIONAL | |
                              |frequencyRanges:list    | OPTIONAL | |
                              |needsSpectrumReport:bool| OPTIONAL | |
                              |maxTotalBwHz:float      | OPTIONAL | |
                              |maxContiguousBwHz:float | OPTIONAL | |
                              +------------------------+----------+ |
                                               +--------------------+
                                               | 1..*
                                               V
                                  +-------------------------------+
                                  |SpectrumSchedule               |
                                  +--------------------+----------+
                                  |eventTime:EventTime | REQUIRED |
                                  |spectra:list        | REQUIRED |
                                  +--------------------+----------+

   Parameters:

   timestamp:  Timestamp of the response is expressed in UTC using the
      form, YYYY-MM-DDThh:mm:ssZ, as defined by "Date and Time on the
      Internet: Timestamps" [RFC3339].  This can be used by the device
      as a reference for the start and stop times in the spectrum
      schedules.

   deviceDesc:  The Database MUST include the DeviceDescriptor
      (Section 5.2) specified in the AVAIL_SPECTRUM_REQ message.




Chen, et al.                 Standards Track                   [Page 24]
^L
RFC 7545                          PAWS                          May 2015


   spectrumSpecs:  The SpectrumSpec (Section 5.9) list MUST include at
      least one entry.  Each entry contains the schedules of available
      spectrum for a ruleset.  The Database MAY return more than one
      SpectrumSpec to represent available spectrum for multiple rulesets
      at the specified location.

   databaseChange:  The Database MAY include a DbUpdateSpec
      (Section 5.7) to notify the device of a change to the database
      URI, providing one or more alternate database URIs.  The device
      needs to update its preconfigured entry for the responding
      Database with the alternate Databases listed in the DbUpdateSpec.

   other:  Database implementations MAY return additional parameters in
      the response.  The device MUST ignore any parameters that it does
      not understand.  Consult the PAWS Parameters Registry
      (Section 9.2) for possible additional parameters and requirements
      they place on the device.

4.5.2.1.  Update Requirements

   When the stop time specified in the schedule has been reached, the
   device:

   o  MUST obtain a new spectrum-availability schedule, either by using
      the next one in the list (if provided) or making another Available
      Spectrum Query (Section 4.5).

   o  If the device is unable to contact the Database to obtain a new
      schedule, it MUST treat this as equivalent to a response with no
      available spectrum.

   Some rulesets also mandate that a device must obtain a new spectrum-
   availability schedule if the device moves beyond a threshold distance
   (established by the ruleset) from the actual location and all
   anticipated location(s) it reported in previous AVAIL_SPECTRUM_REQ or
   AVAIL_SPECTRUM_BATCH_REQ messages (see "maxLocationChange" in
   RulesetInfo (Section 5.6)).  If the device is unable to contact the
   Database to obtain a new schedule, it MUST treat this as equivalent
   to a response with no available spectrum.

   NOTE: The ruleset determines required device behavior when spectrum
   is no longer available.  The ruleset also governs whether a device
   may request and use spectrum at anticipated locations beyond the
   threshold distance from its current location.







Chen, et al.                 Standards Track                   [Page 25]
^L
RFC 7545                          PAWS                          May 2015


4.5.3.  AVAIL_SPECTRUM_BATCH_REQ

   The Database MAY implement the batch request that allows multiple
   locations to be specified.  This enables a portable Master Device,
   for example, to get available spectrum for a sequence of anticipated
   locations using a single request.  The Database interprets each
   location in the batch request as if it were an independent request
   and returns results consistent with multiple individual
   AVAIL_SPECTRUM_REQ (Section 4.5.1) messages, but it returns these
   results in a batched response (Section 4.5.4).  The request message
   for the batch Available Spectrum Query protocol MUST include at least
   one GeoLocation (Section 5.1).  If the Database does not implement
   batch requests, it MUST return an UNIMPLEMENTED error (see Table 1).

   NOTE: Whether anticipated locations are allowed depends on the
   specified ruleset.  A parameter marked as optional may be required by
   some rulesets.

   +---------------------------------------------------+
   |AVAIL_SPECTRUM_BATCH_REQ                           |
   +---------------------------------+-----------------+
   |deviceDesc:DeviceDescriptor      | see description |
   |locations:list                   | REQUIRED        |--+
   |owner:DeviceOwner                | OPTIONAL        |  |
   |antenna:AntennaCharacteristics   | OPTIONAL        |  |
   |capabilities:DeviceCapabilities  | OPTIONAL        |  |
   |masterDeviceDesc:DeviceDescriptor| OPTIONAL        |  |
   |masterDeviceLocation:GeoLocation | see description |  |
   |requestType:string               | OPTIONAL        |  |
   +.................................+.................+  |
   |*other:any                       | OPTIONAL        |  |
   +---------------------------------+-----------------+  |
                                                          |
                                                     1..* V
                                                 +-------------+
                                                 | GeoLocation |
                                                 +-------------+

   Parameters:

   deviceDesc:  The DeviceDescriptor (Section 5.2) for the device
      requesting available spectrum.  When the request is made by a
      Master Device on its own behalf, the descriptor is that of the
      Master Device, and it is REQUIRED.  When the request is made on
      behalf of a Slave Device, the descriptor is that of the Slave
      Device, and it is REQUIRED if the "requestType" parameter is not
      specified.  The deviceDesc parameter may be OPTIONAL for some
      values of requestType.



Chen, et al.                 Standards Track                   [Page 26]
^L
RFC 7545                          PAWS                          May 2015


   locations:  The GeoLocation (Section 5.1) list for the device is
      REQUIRED.  This allows the device to specify its actual location
      plus additional anticipated locations.  At least one location MUST
      be included.  This specification places no upper limit on the
      number of locations, but the Database MAY restrict the number of
      locations it supports by returning a response with fewer locations
      than specified in the request.  If the locations specify regions,
      rather than points, the Database MAY return an error with the
      UNIMPLEMENTED code (see Table 1), if it does not implement query
      by region.  When the request is made by a Master Device on its own
      behalf, the locations are those of the Master Device.  When the
      request is made by the Master Device on behalf of a Slave Device,
      the locations are those of the Slave Device (see also
      masterDeviceLocation).

   owner:  The DeviceOwner (Section 5.5) information MAY be included to
      register the device with the Database.  This enables the device to
      register and get spectrum-availability information in a single
      request.  Some rulesets mandate registration for specific device
      types.

   antenna:  The AntennaCharacteristics (Section 5.3) is OPTIONAL.

   capabilities:  The Master Device MAY include its DeviceCapabilities
      (Section 5.4) to limit the available-spectrum response to the
      spectrum that is compatible with its capabilities.  The Database
      SHOULD NOT return spectrum that is not compatible with the
      specified capabilities.

   masterDeviceDesc:  When the request is made by the Master Device on
      behalf of a Slave Device, the Master Device MAY provide its own
      descriptor.

   masterDeviceLocation:  When the request is made by the Master Device
      on behalf of a Slave Device, the Master Device MUST provide its
      own GeoLocation (Section 5.1).

   requestType:  The request type is an OPTIONAL parameter that may be
      used to modify the request, but its use depends on the applicable
      ruleset.  The request type may be used, for example, to request
      generic Slave Device parameters without having to specify the
      device descriptor for a specific device.  When the requestType
      parameter is missing, the request is for a specific device (Master
      or Slave), so deviceDesc is REQUIRED.  The maximum length is 64
      octets.  See the ruleset specifics in the Initial Registry
      Contents (Section 9.1.2) for the Ruleset ID Registry.





Chen, et al.                 Standards Track                   [Page 27]
^L
RFC 7545                          PAWS                          May 2015


   other:  Rulesets and database implementations may require additional
      request parameters.  The Database MUST ignore all parameters it
      does not understand.  Consult the PAWS Parameters Registry
      (Section 9.2) for possible additional parameters.

4.5.4.  AVAIL_SPECTRUM_BATCH_RESP

   The response message for the batch Available Spectrum Query contains
   a schedule of available spectrum for the device at multiple
   locations.

   +---------------------------------------+
   |AVAIL_SPECTRUM_BATCH_RESP              |
   +----------------------------+----------+
   |timestamp:string            | REQUIRED |
   |deviceDesc:DeviceDescriptor | REQUIRED |
   |geoSpectrumSpecs:list       | REQUIRED |-------+
   |............................|..........|       |
   |databaseChange:DbUpdateSpec | OPTIONAL |       |
   |*other:any                  | OPTIONAL |       |
   +----------------------------+----------+       | 0..*
                                                   V
                                +---------------------------------+
                                |GeoSpectrumSpec                  |
                                +----------------------+----------+
                                |location:GeoLocation  | REQUIRED |
                                |spectrumSpecs:list    | REQUIRED |
                                +----------------------+----------+

   Parameters:

   timestamp:  Timestamp of the response of the form,
      YYYY-MM-DDThh:mm:ssZ, as defined by "Date and Time on the
      Internet: Timestamps" [RFC3339].  This can be used by the device
      as a reference for the start and stop times in the spectrum
      schedules.

   deviceDesc:  The Database MUST include the DeviceDescriptor
      (Section 5.2) specified in the AVAIL_SPECTRUM_BATCH_REQ message.

   geoSpectrumSpecs:  The geoSpectrumSpecs (Section 5.15) list is
      REQUIRED (although it MAY be empty if spectrum is unavailable).
      For each location, the Database MAY return one or more
      SpectrumSpecs (Section 5.9) to represent available spectrum for
      one or more rulesets.  The Database MAY return available spectrum
      for fewer locations than requested.  The order of the entries in





Chen, et al.                 Standards Track                   [Page 28]
^L
RFC 7545                          PAWS                          May 2015


      the list is not significant, and the device MUST use the location
      value in each GeoSpectrumSpec entry to match available spectrum to
      a location.

   databaseChange:  The Database MAY include a DbUpdateSpec
      (Section 5.7) to notify the device of a change to the database
      URI, providing one or more alternate database URIs.  The device
      needs to update its preconfigured entry for the responding
      Database with the alternate Databases listed in the DbUpdateSpec.

   other:  Database implementations MAY return additional parameters in
      the response.  Consult the PAWS Parameters Registry (Section 9.2)
      for possible additional parameters and requirements they place on
      the device.

   See "Update Requirements" (Section 4.5.2.1) for when the device must
   update its available spectrum data.

4.5.5.  SPECTRUM_USE_NOTIFY

   The spectrum-use notification message indicates the spectrum
   anticipated to be used by the device.

   +---------------------------------------------------+
   |SPECTRUM_USE_NOTIFY                                |
   +---------------------------------+-----------------+
   |deviceDesc:DeviceDescriptor      | REQUIRED        |
   |location:GeoLocation             | see description |
   |masterDeviceDesc:DeviceDescriptor| OPTIONAL        |
   |masterDeviceLocation:GeoLocation | see description |
   |spectra:list                     | REQUIRED        |--+
   |...................................................|  |
   |*other:any                       | OPTIONAL        |  |
   +---------------------------------+-----------------+  | 0..*
                                                          V
                                 +--------------------------------+
                                 |Spectrum                        |
                                 +---------------------+----------+
                                 |resolutionBwHz:float | REQUIRED |
                                 |profiles:list        | REQUIRED |
                                 +---------------------+----------+










Chen, et al.                 Standards Track                   [Page 29]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   deviceDesc:  The DeviceDescriptor (Section 5.2) for the device is
      REQUIRED.

   location:  The GeoLocation (Section 5.1) for the device.  When the
      notification is made by a Master Device on its own behalf, the
      location is that of the Master Device and is REQUIRED.  When the
      notification is made by a Master Device on behalf of a Slave
      Device, the location is that of the Slave Device and is OPTIONAL
      but may be required by some rulesets.

   spectra:  The Spectrum (Section 5.11) list is REQUIRED and specifies
      the spectrum anticipated to be used by the device; this includes
      profiles of frequencies and power levels.  The list MAY be empty,
      if the device decides not to use any spectrum.  For consistency,
      the resolution bandwidth value, "resolutionBwHz", MUST match that
      from one of the Spectrum (Section 5.11) elements in the
      corresponding AVAIL_SPECTRUM_RESP message, and the maximum power
      levels in the Spectrum element MUST be expressed as power (EIRP)
      over the specified "resolutionBwHz" value.  The actual bandwidth
      to be used (as computed from the start and stop frequencies) MAY
      be different from the "resolutionBwHz" value.  As an example, when
      the ruleset expresses maximum power spectral density in terms of
      maximum power over any 100 kHz band, then the "resolutionBwHz"
      value should be set to 100 kHz, even though the actual bandwidth
      used can be 20 kHz.

   masterDeviceDesc:  When the notification is made by the Master Device
      on behalf of a Slave Device, the Master Device MAY provide its own
      descriptor.

   masterDeviceLocation:  When the notification is made by the Master
      Device on behalf of a Slave Device, the Master Device MUST include
      its own GeoLocation (Section 5.1).

   other:  Depending on the ruleset, other parameters may be required.
      To simplify its logic, the device MAY include the union of all
      parameters required by all supported rulesets.  The Database MUST
      ignore all parameters it does not understand.











Chen, et al.                 Standards Track                   [Page 30]
^L
RFC 7545                          PAWS                          May 2015


4.5.6.  SPECTRUM_USE_RESP

   The spectrum-use response message simply acknowledges receipt of the
   notification.

   +---------------------------------------+
   |SPECTRUM_USE_RESP                      |
   +----------------------------+----------+
   |databaseChange:DbUpdateSpec | OPTIONAL |
   |.......................................|
   |*other:any                  | OPTIONAL |
   +----------------------------+----------+

   Parameters:

   databaseChange:  The Database MAY include a DbUpdateSpec
      (Section 5.7) to notify the device of a change to the database
      URI, providing one or more alternate database URIs.  The device
      needs to update its preconfigured entry for the responding
      Database with the alternate Databases listed in the DbUpdateSpec.

   other:  Database implementations MAY return additional parameters in
      the response.  Consult the PAWS Parameters Registry (Section 9.2)
      for possible additional parameters.

4.6.  Device Validation

   A Slave Device needs a Master Device to ask the Database on its
   behalf for available spectrum.  Depending on the ruleset, the Master
   Device also must validate with the Database that the Slave Device is
   permitted to operate.  When the ruleset allows a Master Device to
   "cache" the available spectrum for a period of time, the Master
   Device may use the simpler Device Validation component, instead of
   the full Available Spectrum Query component, to validate a Slave
   Device.

   When validating one or more Slave Devices, the Master Device sends
   the Database a request that includes the device identifier -- and any
   other parameters required by the ruleset -- for each Slave Device.
   The Database MUST return a response with an entry for each device to
   indicate whether it is permitted to use the spectrum.

   A typical sequence for using the Device Validation request is
   illustrated in Figure 5, where the Master Device already has a valid
   set of available spectrum for Slave Devices.  Note that the
   communication and protocol between the Slave Device and Master Device
   are outside the scope of this document.




Chen, et al.                 Standards Track                   [Page 31]
^L
RFC 7545                          PAWS                          May 2015


   o  DEV_VALID_REQ (Section 4.6.1) is the device-validation request
      message.

   o  DEV_VALID_RESP (Section 4.6.2) is the device-validation response
      message.

      +------------+     +---------------+      +-------------------+
      |Slave Device|     | Master Device |      | Spectrum Database |
      +------------+     +---------------+      +-------------------+
          |                 |                           |
          | AVAIL_SPEC_REQ  |                           |
          |................>|                           |
          |                 |                           |
          |                 |    DEV_VALID_REQ          |
          |                 |-------------------------->|
          |                 |                           |
          |                 |    DEV_VALID_RESP         |
          |                 |<--------------------------|
          | AVAIL_SPEC_RESP |                           |
          |<................|                           |
          |                 |                           |
          | (SPECTRUM_USE)  |                           |
          |................>|   (SPECTRUM_USE_NOTIFY)   |
          |                 |-------------------------->|
          |                 |                           |
          |                 |    (SPECTRUM_USE_RESP)    |
          |                 |<--------------------------|

                                 Figure 5

4.6.1.  DEV_VALID_REQ

   This request is used by a Master Device to determine which Slave
   Devices are permitted to operate.

   +---------------------------------------------+
   |DEV_VALID_REQ                                |
   +----------------------------------+----------+
   |deviceDescs:list                  | REQUIRED |---+
   |masterDeviceDesc:DeviceDescriptor | OPTIONAL |   |
   +----------------------------------+----------+   |
                                                     V 1..*
                                    +----------------------+
                                    |DeviceDescriptor      |
                                    +----------------------+






Chen, et al.                 Standards Track                   [Page 32]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   deviceDescs:  A DeviceDescriptor (Section 5.2) list is REQUIRED; it
      specifies the list of Slave Devices that are to be validated.

   masterDeviceDesc:  The Master Device MAY provide its own descriptor.

4.6.2.  DEV_VALID_RESP

   +---------------------------------------+
   |DEV_VALID_RESP                         |
   +----------------------------+----------+
   |deviceValidities:list       | REQUIRED |----
   |databaseChange:DbUpdateSpec | OPTIONAL |   |
   +----------------------------+----------+   |
                                               V 1..*
                            +---------------------------------------+
                            |DeviceValidity                         |
                            +----------------------------+----------+
                            |deviceDesc:DeviceDescriptor | REQUIRED |
                            |isValid:boolean             | REQUIRED |
                            |reason:string               | OPTIONAL |
                            +----------------------------+----------+

   Parameters:

   deviceValidities:  A DeviceValidities (Section 5.16) list is REQUIRED
      to report the list of Slave Devices and whether each listed device
      is valid.  The number of entries MUST match the number of
      DeviceDescriptors (Section 5.2) listed in the DEV_VALID_REQ
      message.

   databaseChange:  The Database MAY include a DbUpdateSpec
      (Section 5.7) to notify the device of a change to the database
      URI, providing one or more alternate database URIs.  The device
      needs to update its preconfigured entry for the responding
      Database with the alternate Databases listed in the DbUpdateSpec.














Chen, et al.                 Standards Track                   [Page 33]
^L
RFC 7545                          PAWS                          May 2015


5.  Protocol Parameters

   This section presents more details of the parameters that make up the
   PAWS request and response messages.  It also includes a subsection
   that defines response codes.

5.1.  GeoLocation

   GeoLocation is used to specify one of the following:

   o  a single point with optional uncertainty

   o  a region described by a polygon

   These are represented using geometric shapes defined in Section 5 of
   "GEOPRIV Presence Information Data Format Location Object" [RFC5491],
   where:

   o  A "point" with uncertainty is represented using the Ellipse shape.

   o  A region is represented using the Polygon shape.

   The coordinates are expressed using the WGS84 datum [WGS-84], and
   units are degrees or meters.  GeoLocation MAY also include a
   confidence level, expressed as a percentage.  The confidence and
   uncertainty parameters may be required by some rulesets (see also
   [RFC7459]).
























Chen, et al.                 Standards Track                   [Page 34]
^L
RFC 7545                          PAWS                          May 2015


   The data model for GeoLocation is illustrated below:

   +------------------------------------+
   |GeoLocation                         |
   +------------------+-----------------+
   |point:Ellipse     | see description |
   |region:Polygon    | see description |
   |confidence:int    | OPTIONAL        |
   +------------------+-----------------+
   Note: Point and region are mutually exclusive.  Exactly one must
   be present.

   +-------------------------------+
   |Ellipse                        |
   +--------------------+----------+
   |center:Point        | REQUIRED |--+
   |semiMajorAxis:float | OPTIONAL |  |
   |semiMinorAxis:float | OPTIONAL |  |
   |orientation:float   | OPTIONAL |  |
   +--------------------+----------+  v
                              +---------------------------+
                              |Point                      |
                              +----------------+----------+
                              |latitude:float  | REQUIRED |
                              |longitude:float | REQUIRED |
                              +----------------+----------+

   +-------------------------------+
   |Polygon                        |
   +-------------------+-----------+  4..* +---------------------------+
   |exterior:list      | REQUIRED  |------>|Point                      |
   +-------------------+-----------+       +----------------+----------+
                                           |latitude:float  | REQUIRED |
                                           |longitude:float | REQUIRED |
                                           +----------------+----------+

   Parameters:

   point:  If present, it specifies the GeoLocation as a point.
      Paradoxically, a "point" is parameterized using an Ellipse, where
      the center represents the location of the point and the distances
      along the major and minor axes represent the uncertainty.  The
      uncertainty values may be required, depending on the ruleset.
      Exactly one of "point" or "region" MUST be present.

   region:  If present, it specifies the GeoLocation as a region.
      Exactly one of "point" or "region" MUST be present.




Chen, et al.                 Standards Track                   [Page 35]
^L
RFC 7545                          PAWS                          May 2015


   center:  The center refers to the location of a GeoLocation point and
      is represented as the center of an ellipse.

   latitude, longitude:  Floating-point numbers that express the
      latitude and longitude in degrees using the WGS84 datum [WGS-84].

   semiMajorAxis, semiMinorAxis:  This OPTIONAL parameter expresses the
      location uncertainty, in meters.  It is parameterized using
      distances along the major and minor axes of the ellipse.  The
      default value for each parameter is 0.

   orientation:  This defines the orientation of the ellipse, expressed
      as the rotation, in degrees, of the semi-major axis from North
      towards the East.  For example, when the uncertainty is greatest
      along the North-South direction, orientation is 0 degrees;
      conversely, if the uncertainty is greatest along the East-West
      direction, orientation is 90 degrees.  When orientation is not
      present, the default value is 0.

   exterior:  When GeoLocation describes a region, the "exterior"
      parameter refers to a list of latitude and longitude points that
      represents the vertices of a polygon.  The first and last points
      MUST be the same.  Thus, a minimum of 4 points is required.  The
      following polygon restrictions from [RFC5491] apply:

      *  A connecting line SHALL NOT cross another connecting line of
         the same polygon.

      *  The vertices MUST be defined in a counter-clockwise direction,
         looking at them from above.

      *  The edges of a polygon are defined by the shortest path between
         two points in space (not a geodesic curve).  Consequently, the
         length between two adjacent vertices SHOULD be restricted to a
         maximum of 130 km.

      *  Polygon shapes SHOULD be restricted to a maximum of 15 vertices
         (16 points that includes the repeated vertex).

      Additionally, all vertices are assumed to be at the same altitude.

   confidence:  The location confidence level, as a percentage, MAY be
      provided.  When this parameter is not provided, the default value
      is 95.  Valid values range from 0 to 100, but, in practice, 100%
      confidence is not achievable.  The confidence value is meaningful
      only when GeoLocation refers to a point with uncertainty.





Chen, et al.                 Standards Track                   [Page 36]
^L
RFC 7545                          PAWS                          May 2015


5.2.  DeviceDescriptor

   The device descriptor contains parameters that identify the specific
   device, such as its manufacturer serial number, manufacturer's ID,
   and any other device characteristics required by ruleset.

   +--------------------------------+
   |DeviceDescriptor                |
   +---------------------+----------+
   |serialNumber:string  | OPTIONAL |
   |manufacturerId:string| OPTIONAL |
   |modelId:string       | OPTIONAL |  1..*
   |rulesetIds:list      | OPTIONAL |------>string
   |.....................|..........|
   |*other:any           | OPTIONAL |
   +---------------------+----------+

   Parameters:

   serialNumber:  The manufacturer's device serial number is OPTIONAL,
      although rulesets typically require it.  Its maximum length is 64
      octets.

   manufacturerId:  The manufacturer's ID is OPTIONAL but may be
      required by some rulesets.  This represents the name of the device
      manufacturer, and therefore ought to be consistent across all
      devices from the same manufacturer and distinct from that of other
      manufacturers.  Its maximum length is 64 octets.

   modelId:  The device's model ID is OPTIONAL but may be required by
      some rulesets.  Its maximum length is 64 octets.

   rulesetIds:  The list of identifiers for rulesets supported by the
      device (see Ruleset ID Registry (Section 9.1)).  A Database MAY
      require that the device provides this list before servicing the
      device requests.  If the Database supports none of the rulesets
      specified in the list, the Database MAY refuse to service the
      device requests.  See RulesetInfo (Section 5.6) for discussion on
      ruleset identifiers.  If present, the list MUST contain at least
      one entry.

   other:  Depending on the ruleset, other parameters may be required.
      The Database MUST ignore all parameters in the message it does not
      understand.  See PAWS Parameters Registry (Section 9.2) for
      additional valid parameters and for the process for extending the
      message with more parameters.  Additionally, see PAWS Ruleset ID
      Registry (Section 9.1) for the valid set of parameters for each
      ruleset.



Chen, et al.                 Standards Track                   [Page 37]
^L
RFC 7545                          PAWS                          May 2015


5.3.  AntennaCharacteristics

   Antenna characteristics provide additional information, such as the
   antenna height, antenna type, etc.  Whether antenna characteristics
   must be provided in a request depends on the device type and ruleset.
   Additionally, a parameter marked as optional may be required by some
   rulesets.

   +------------------------------------+
   |AntennaCharacteristics              |
   +-------------------------+----------+
   |height:float             | OPTIONAL |
   |heightType:enum          | OPTIONAL |
   |heightUncertainty:float  | OPTIONAL |
   |.........................|..........|
   |*characteristics:        | OPTIONAL |
   |   various               |          |
   +-------------------------+----------+

   Parameters:

   height:  The antenna height in meters.  Note that the height may be
      negative.

   heightType:  Valid values are:

      AGL   - Above Ground Level (default)

      AMSL  - Above Mean Sea Level

   heightUncertainty:  The height uncertainty in meters.

   NOTE: Depending on the ruleset, additional antenna characteristics
   may be required, such as:

   o  antenna direction

   o  antenna radiation pattern

   o  antenna gain

   o  antenna polarization

   These are not defined by the base protocol but may be added to the
   PAWS Parameters Registry, as needed.






Chen, et al.                 Standards Track                   [Page 38]
^L
RFC 7545                          PAWS                          May 2015


5.4.  DeviceCapabilities

   Device capabilities provide additional information that may be used
   by the device to provide additional information to the Database that
   can help it to determine available spectrum.  If the Database does
   not support device capabilities, it MUST ignore the parameter
   altogether.

   +-------------------------------+
   |DeviceCapabilities             |
   +---------------------+---------+
   |frequencyRanges:list |OPTIONAL |--+
   |.....................|.........|  |
   |*other:any           |OPTIONAL |  |
   +---------------------+---------+  | 0..*
                                      V
                +--------------------------------+
                |FrequencyRange                  |
                +----------------------+---------+
                |startHz:float         |REQUIRED |
                |stopHz:float          |REQUIRED |
                +----------------------+---------+

   Parameters:

   frequencyRanges:  Optional FrequencyRange (Section 5.13) list.  Each
      FrequencyRange element contains start and stop frequencies in
      which the device can operate.  When specified, the Database SHOULD
      NOT return available spectrum that falls outside these ranges.

   other  Consult the PAWS Parameters Registry (Section 9.2) for
      possible additional parameters.  The Database MUST ignore all
      parameters it does not understand.

5.5.  DeviceOwner

   DeviceOwner contains information on device ownership that is provided
   as part of device registration.  Some rulesets may require additional
   parameters.

   +-----------------------------+
   |DeviceOwner                  |
   +------------------+----------+
   |owner:vcard       | REQUIRED |
   |operator:vcard    | OPTIONAL |
   +------------------+----------+





Chen, et al.                 Standards Track                   [Page 39]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   owner:  The vCard contact information for the individual or business
      that owns the device is REQUIRED.

   operator:  The vCard contact information for the device operator is
      OPTIONAL but may be required by specific rulesets.

   See PAWS Ruleset ID Registry (Section 9.1) for ruleset-specific
   requirements on mandatory vCard properties.  Depending on the
   ruleset, the Database may be required to validate the device-owner
   information.  In these cases, the Database MUST respond with an
   INVALID_VALUE error (see "Error Codes" (Section 5.17)) if validation
   fails.

   All contact information MUST be expressed using the structure defined
   by the "vCard Format Specification" [RFC6350], encoded in JSON
   [RFC7095].  Note that the vCard specification defines maximum lengths
   for each parameter.

5.6.  RulesetInfo

   RulesetInfo contains parameters for the ruleset of a regulatory
   domain that is communicated using the Initialization (Section 4.3),
   Device Registration (Section 4.4), and Available Spectrum Query
   (Section 4.5) components.

   +------------------------------------------+
   |RulesetInfo                               |
   +------------------------------------------+
   |authority:string        | REQUIRED        |
   |rulesetId:string        | REQUIRED        |
   |maxLocationChange:float | see description |
   |maxPollingSecs:int      | see description |
   |..........................................|
   |*other:any              | OPTIONAL        |
   +------------------------+-----------------+

   Parameters:

   authority:  A string that indicates the regulatory domain to which
      the ruleset applies is REQUIRED.  It will normally be a 2-letter
      country code defined by Country Codes - ISO 3166 [ISO3166-1].








Chen, et al.                 Standards Track                   [Page 40]
^L
RFC 7545                          PAWS                          May 2015


   rulesetId:  The ID of a ruleset for the specified authority (see
      Ruleset ID Registry (Section 9.1)).  The device can use this to
      determine additional device behavior required by the associated
      ruleset.  To define new ruleset IDs, see "Defining Ruleset
      Identifiers" (Section 8.1).

   maxLocationChange:  The maximum location change in meters is REQUIRED
      for the Initialization Response (Section 4.3.2), but OPTIONAL
      otherwise.  Some regulatory domains mandate that, when the device
      changes location by more than this specified distance, it contact
      the Database to get the available spectrum for the new location.
      If this value is provided by the Database within the context of an
      Available Spectrum Response (Section 4.5.2), it takes precedence
      over the value within the Initialization Response (Section 4.3.2).

   maxPollingSecs:  The maximum duration, in seconds, between requests
      for available spectrum is REQUIRED for the Initialization Response
      (Section 4.3.2), but OPTIONAL otherwise.  The device MUST contact
      the Database to get available spectrum no less frequently than
      this duration.  If this value is provided within the context of an
      Available Spectrum Response (Section 4.5.2), it takes precedence
      over the value within the Initialization Response (Section 4.3.2).

   other:  Depending on the ruleset, other parameters may be required.
      The device MUST ignore all parameters in the message it does not
      understand.  Consult the PAWS Parameters Registry (Section 9.2)
      for possible additional parameters.

5.7.  DbUpdateSpec

   This element is provided by the Database to notify devices of an
   upcoming change to the database URI.

   +-------------------------------+
   |DbUpdateSpec                   |
   +---------------------+---------+       +--------------------------+
   |databases:list       |REQUIRED |------>|DatabaseSpec              |
   +---------------------+---------+  1..* +---------------+----------+
                                           |name:string    | REQUIRED |
                                           |uri:string     | REQUIRED |
                                           +---------------+----------+

   Parameters:

   databases:  List of one or more DatabaseSpec (Section 5.8) entries.
      A device needs to update its preconfigured entry for the
      responding Database with the alternate Databases listed in the
      DbUpdateSpec.



Chen, et al.                 Standards Track                   [Page 41]
^L
RFC 7545                          PAWS                          May 2015


5.8.  DatabaseSpec

   This element contains the name and URI of a Database.

   +--------------------------+
   |DatabaseSpec              |
   +---------------+----------+
   |name:string    | REQUIRED |
   |uri:string     | REQUIRED |
   +---------------+----------+

   Parameters:

   name:  The display name.  Its maximum length is 64 octets.

   uri:  The corresponding URI of the Database.  Its maximum length is
      1024 octets.

5.9.  SpectrumSpec

   The SpectrumSpec element encapsulates the schedule of available
   spectrum for a ruleset.

   +---------------------------------------+
   |SpectrumSpec                           |
   +----------------------------+----------+
   |rulesetInfo:RulesetInfo     | REQUIRED |
   |spectrumSchedules:list      | REQUIRED |-----+
   |timeRange:EventTime         | OPTIONAL |     |
   |frequencyRanges:list        | OPTIONAL |     |
   |needsSpectrumReport:boolean | OPTIONAL |     |
   |maxTotalBwHz:float          | OPTIONAL |     |
   |maxContiguousBwHz:float     | OPTIONAL |     |
   +----------------------------+----------+     |
                                                 | 1..*
                                                 V
                                      +-------------------------------+
                                      |SpectrumSchedule               |
                                      +--------------------+----------+
                                      |eventTime:EventTime | REQUIRED |
                                      |spectra:list        | REQUIRED |
                                      +--------------------+----------+









Chen, et al.                 Standards Track                   [Page 42]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   rulesetInfo:  RulesetInfo (Section 5.6) is REQUIRED to identify the
      regulatory domain and ruleset to which the spectrum schedule
      applies (see Ruleset ID Registry (Section 9.1)).  The device needs
      to use the corresponding ruleset to interpret the response.
      Values provided within rulesetInfo, such as maxLocationChange,
      take precedence over the values provided by the Initialization
      Procedure (Section 4.3).

   spectrumSchedules:  The SpectrumSchedule (Section 5.10) list is
      REQUIRED.  At least one schedule MUST be included.  More than one
      schedule MAY be included to represent future changes to the
      available spectrum.  How far in advance a schedule may be provided
      depends on the ruleset.  If more than one schedule is included,
      the eventTime intervals MUST be disjoint and MUST be sorted in
      increasing time.  A gap in the time schedule indicates no
      available spectrum during that time-interval gap.

   timeRange:  The time range for which the specification is
      comprehensive is OPTIONAL.  When specified, any gaps in time
      intervals within the spectrumSchedules element that overlap with
      the range specified by "timeRange" are interpreted by the device
      as time intervals in which there is no available spectrum.

   frequencyRanges:  Specifying the frequency ranges for which the
      specification is comprehensive is OPTIONAL.  It is a list of
      disjoint FrequencyRange (Section 5.13) entries.  When specified,
      it typically corresponds to the frequency ranges governed by the
      ruleset, e.g., for TV white space, the frequency ranges can
      correspond to the VHF and UHF bands of the associated regulatory
      domain.  A device can combine this information with the available-
      spectrum specification within the spectrumSchedules element to
      distinguish between "unavailable spectrum" and "spectrum for which
      no information has been provided".

   needsSpectrumReport:  The Database MAY return true for this parameter
      if spectrumSchedules list is non-empty; otherwise, the Database
      MAY omit this parameter altogether, in which case, the default
      value is false.  If this parameter is present and its value is
      true, the device sends a SPECTRUM_USE_NOTIFY (Section 4.5.5)
      message to the Database; otherwise, the device SHOULD NOT send the
      SPECTRUM_USE_NOTIFY message.  Some rulesets mandate this value be
      set to true.







Chen, et al.                 Standards Track                   [Page 43]
^L
RFC 7545                          PAWS                          May 2015


   maxTotalBwHz:  The Database MAY return a constraint on the maximum
      total bandwidth (in hertz) allowed, which may or may not be
      contiguous.  Some rulesets mandate the Database to return this
      parameter.  When present in the response, the device needs to
      apply this constraint to its spectrum-selection logic to ensure
      total bandwidth does not exceed this value.

   maxContiguousBwHz:  The Database MAY return a constraint on the
      maximum contiguous bandwidth (in hertz) allowed.  Some rulesets
      mandate the Database to return this parameter.  When present in
      the response, the device needs to apply this constraint to its
      spectrum-selection logic to ensure no single block of spectrum has
      bandwidth that exceeds this value.

5.10.  SpectrumSchedule

   The SpectrumSchedule element combines EventTime (Section 5.14) with
   Spectrum (Section 5.11) to define a time period in which the spectrum
   is valid.

   +-------------------------------+
   |SpectrumSchedule               |
   +--------------------+----------+
   |eventTime:EventTime | REQUIRED |        +--------------------+
   |spectra:list        | REQUIRED |------->|Spectrum            |
   +--------------------+----------+   0..* +--------------------+
                                            |resolutionBwHz:float|
                                            |profiles:list       |
                                            +--------------------+

   Parameters:

   eventTime:  The EventTime (Section 5.14) is REQUIRED to express
      "when" this specification is valid.

   spectra:  The Spectrum (Section 5.11) list is REQUIRED to specify the
      available spectrum and permissible power levels, one per
      resolutionBwHz.  The list MAY be empty when there is no available
      spectrum.

5.11.  Spectrum

   Available spectrum can be characterized by an ordered list of
   spectrum profiles that defines permissible power levels over a set of
   frequency ranges.  Each Spectrum element defines permissible power
   levels as maximum power spectral densities over a specified
   resolution bandwidth, "resolutionBwHz".  Note that the spectrum




Chen, et al.                 Standards Track                   [Page 44]
^L
RFC 7545                          PAWS                          May 2015


   profiles represent the "availability mask", as defined by the
   governing ruleset; they are not intended to encode device-level
   transmission-mask requirements.

   NOTE: Within the contexts of the AVAIL_SPECTRUM_RESP (Section 4.5.2),
   AVAIL_SPECTRUM_BATCH_RESP (Section 4.5.4), and SPECTRUM_USE_NOTIFY
   (Section 4.5.5) messages, the power levels expressed within the
   Spectrum messages refer to EIRP.  Future extensions of PAWS may use
   Spectrum in other contexts for other definitions of power levels.

   o  To support a ruleset that defines different "wide-band" and
      "narrow-band" power levels, PAWS allows multiple Spectrum elements
      to be included in the available-spectrum response, each with a
      different resolution bandwidth.

   o  When multiple Spectrum elements are included in the response, each
      represents a constraint that the device must satisfy (logical
      AND).

   o  Each Spectrum element covers the range of frequencies governed by
      a ruleset, rather than splitting the frequencies across multiple
      Spectrum elements for the same resolution bandwidth.

   o  Each spectrum profile represents the maximum permissible power
      spectral density over a contiguous range of frequencies.

   o  When multiple spectrum profiles are included, they MUST be
      disjoint and MUST be ordered in non-decreasing frequency value.

   o  Gaps in frequencies between consecutive spectrum profiles
      represent unavailability for those frequencies.

   The following figure illustrates the Spectrum element and the
   SpectrumProfile list.

















Chen, et al.                 Standards Track                   [Page 45]
^L
RFC 7545                          PAWS                          May 2015


   +-------------------------------+
   |Spectrum                       |
   +---------------------+---------+
   |resolutionBwHz:float |REQUIRED |
   |profiles:list        |REQUIRED |---+
   +---------------------+---------+   |  0..*
                                       V
                 +-----------------------------+
                 |SpectrumProfile              |
                 +-------------------+---------+
                 |list               |REQUIRED |
                 +-------------------+---------+
                                       |
                                       V 2..*
                  +--------------------------+
                  |SpectrumProfilePoint      |
                  +----------------+---------+
                  |hz:float        |REQUIRED |
                  |dbm:float       |REQUIRED |
                  +----------------+---------+

   Parameters:

   resolutionBwHz:  This parameter defines the resolution bandwidth (in
      hertz) over which permissible power spectral density is defined.
      For example, FCC regulation would require one spectrum
      specification at a bandwidth of 6 MHz, and ETSI regulation would
      require two specifications, at 0.1 MHz and 8 MHz.

   profiles:   A SpectrumProfile (Section 5.12) list specifies
      permissible power levels over a set of frequency ranges.  The list
      MAY be empty if there is no available spectrum.



















Chen, et al.                 Standards Track                   [Page 46]
^L
RFC 7545                          PAWS                          May 2015


   The following example shows permitted power spectral densities for a
   single resolution bandwidth of 6 MHz (for illustrative purposes
   only):

   [
     {
       "resolutionBwHz": 6e6,
       "profiles": [
         [
           {"hz": 5.18e8, "dbm": 30.0},
           {"hz": 5.30e8, "dbm": 30.0}
         ],
         ...
       ]
     }
   ]

   This is interpreted as:

   o  Over any 6 MHz within the frequency range [518 MHz, 530 MHz),
      maximum permitted power is 30.0 dBm (1000 mW)

   Consider now an example with two different sets of permitted power
   spectral densities for the same set of frequencies over different
   resolution bandwidths (for illustrative purposes only):

   [
     {
       "resolutionBwHz": 6e6,
       "profiles": [
         [
           {"hz": 5.18e8, "dbm": 30.0},
           {"hz": 5.30e8, "dbm": 30.0}
         ],
         ...
       ]
     },
     {
       "resolutionBwHz": 1e5,
       "profiles": [
         [
           {"hz": 5.18e8, "dbm": 27.0},
           {"hz": 5.30e8, "dbm": 27.0}
         ],
         ...
       ]
     }
   ]



Chen, et al.                 Standards Track                   [Page 47]
^L
RFC 7545                          PAWS                          May 2015


   This is interpreted as:

   o  Over any 6 MHz within the frequency range [518 MHz, 530 MHz),
      maximum permitted power is 30.0 dBm (1000 mW), and

   o  Over any 100 kHz within the frequency range [518 MHz, 530 MHz),
      maximum permitted power is 27.0 dBm (500 mW)

   This would allow, for example, operating two 100 kHz sub-channels
   within the indicated 12 MHz range at 500 mW each, totaling 1000 mW.
   Of course, many combinations are possible, as long as they satisfy
   both conditions.







































Chen, et al.                 Standards Track                   [Page 48]
^L
RFC 7545                          PAWS                          May 2015


   The following example encodes multiple (two) spectrum profiles, each
   having a gap from 530 MHz to 536 MHz (for illustrative purposes
   only):

   [
     {
       "resolutionBwHz": 6e6,
       "profiles": [
         [
           {"hz": 5.18e8, "dbm": 30.0},
           {"hz": 5.24e8, "dbm": 30.0},
           {"hz": 5.24e8, "dbm": 36.0},
           {"hz": 5.30e8, "dbm": 36.0}
         ],
         [
           {"hz": 5.36e8, "dbm": 30.0},
           {"hz": 5.42e8, "dbm": 30.0}
         ],
         ...
       ]
     },
     {
       "resolutionBwHz": 1e5,
       "profiles": [
         [
           {"hz": 5.18e8, "dbm": 27.0},
           {"hz": 5.24e8, "dbm": 27.0},
           {"hz": 5.24e8, "dbm": 30.0},
           {"hz": 5.30e8, "dbm": 30.0}
         ],
         [
           {"hz": 5.36e8, "dbm": 27.0},
           {"hz": 5.42e8, "dbm": 27.0}
         ],
         ...
       ]
     }
   ]













Chen, et al.                 Standards Track                   [Page 49]
^L
RFC 7545                          PAWS                          May 2015


5.12.  SpectrumProfile

   A spectrum profile is characterized by an ordered list of (frequency,
   power) points that represents the shape of maximum permissible power
   levels over a range of frequencies as a piecewise linear curve.

   o  It MUST contain a minimum of two entries.

   o  The entries in the list MUST be ordered in non-decreasing
      frequency values.

   o  Two consecutive points MAY have the same frequency value to
      represent a "step function".

   o  Three or more points MUST NOT share the same frequency value.

   o  The first frequency is inclusive; the last frequency is exclusive.

   NOTE: This encoding allows presentation of "ramps" where the slope of
   a line segment may be finite and non-zero.

   The following figure illustrates the SpectrumProfile element.

   +-------------------------------+
   |SpectrumProfile                |
   +---------------------+---------+
   |list                 |REQUIRED |---+
   +---------------------+---------+   |  2..*
                                       V
                 +--------------------------+
                 |SpectrumProfilePoint      |
                 +----------------+---------+
                 |hz:float        |REQUIRED |
                 |dbm:float       |REQUIRED |
                 +----------------+---------+

   Parameters of each point in the profile:

   hz:  The frequency, in hertz, at which the power level is defined.

   dbm:   The power level, expressed as dBm per resolution bandwidth, as
      defined by the resolutionBwHz element of the enclosing Spectrum
      (Section 5.11) element.








Chen, et al.                 Standards Track                   [Page 50]
^L
RFC 7545                          PAWS                          May 2015


5.13.  FrequencyRange

   FrequencyRange specifies a frequency range.

   +--------------------------------+
   |FrequencyRange                  |
   +----------------------+---------+
   |startHz:float         |REQUIRED |
   |stopHz:float          |REQUIRED |
   +----------------------+---------+

   Parameters:

   startHz:  The inclusive start of the frequency range (in hertz) is
      REQUIRED.

   stopHz:  The exclusive end of the frequency range (in hertz) is
      REQUIRED.

5.14.  EventTime

   The EventTime element specifies the start and stop times of an
   "event".  This is used to indicate the time period for which a
   Spectrum (Section 5.11) is valid.

   +---------------------------+
   |EventTime                  |
   +-----------------+---------+
   |startTime:string |REQUIRED |
   |stopTime:string  |REQUIRED |
   +-----------------+---------+

   Parameters:

   startTime:  The inclusive start of the event is REQUIRED.

   stopTime:  The exclusive end of the event is REQUIRED.

   Both times are expressed using the format, YYYY-MM-DDThh:mm:ssZ, as
   defined by "Date and Time on the Internet: Timestamps" [RFC3339].
   The times MUST be expressed using UTC.










Chen, et al.                 Standards Track                   [Page 51]
^L
RFC 7545                          PAWS                          May 2015


   A device that does not have access to the current date and time MUST
   use the timestamp at the top level of the response message as a
   substitute for the current time (see "Available Spectrum Response"
   (Section 4.5.2) and "Available Spectrum Batch Response"
   (Section 4.5.4)).  For example,

   o  (startTime - timestamp) gives the duration that a device must wait
      before the event becomes "active".  If the value is zero or
      negative, the event is already active.

   o  If the event is already active, (stopTime - timestamp) is the
      duration that the event remains active.  If the value is zero or
      negative, the event is no longer active and MUST be ignored.

5.15.  GeoSpectrumSpec

   The GeoSpectrumSpec element encapsulates the available spectrum for a
   location.  It is returned within an AVAIL_SPECTRUM_BATCH_RESP
   (Section 4.5.4) batch response that contains multiple GeoSpectrumSpec
   entries, each matching a location provided in the batch request.

   +----------------------------------+
   |GeoSpectrumSpec                   |
   +-----------------------+----------+
   |location:GeoLocation   | REQUIRED |
   |spectrumSpecs:list     | REQUIRED |-------+
   +-----------------------+----------+       |
                                              | 1..*
                                              V
                                      +--------------+
                                      | SpectrumSpec |
                                      +--------------+

   Parameters:

   location:  The GeoLocation (Section 5.1) identifies the location at
      which the spectrum schedule applies.

   spectrumSpecs:  The SpectrumSpec (Section 5.9) list is REQUIRED.  At
      least one entry MUST be included.  Each entry represents schedules
      of available spectrum for a ruleset.  More than one entry MAY be
      included to support multiple rulesets at a location.









Chen, et al.                 Standards Track                   [Page 52]
^L
RFC 7545                          PAWS                          May 2015


5.16.  DeviceValidity

   The DeviceValidity element is used to indicate whether a device is
   valid.  See Section 4.6.2.

   +---------------------------------------+
   |DeviceValidity                         |
   +----------------------------+----------+
   |deviceDesc:DeviceDescriptor | REQUIRED |
   |isValid:boolean             | REQUIRED |
   |reason:string               | OPTIONAL |
   +----------------------------+----------+

   Parameters:

   deviceDesc:  The DeviceDescriptor (Section 5.2) that was used to
      check for validity is REQUIRED.

   isValid:  This is a REQUIRED boolean value that indicates whether the
      device is valid.

   reason:  If the device identifier is not valid, the Database MAY
      include a reason.  The reason MAY be in any language.  Its maximum
      length is 128 octets.

5.17.  Error Element

   If the Database responds to a PAWS request message with an error, it
   MUST include an Error element.

   +----------------------------------+
   |Error                             |
   +----------------+-----------------+
   |code:int        | REQUIRED        |
   |message:string  | OPTIONAL        |
   |data:any        | see description |
   +----------------+-----------------+

   Parameters:

   code:  An integer code that indicates the error type is REQUIRED.
      Values MUST be within the range -32768 to 32767, inclusive.

   message:  A description of the error is OPTIONAL.  It MAY be in any
      language.  Its maximum length is 128 octets.






Chen, et al.                 Standards Track                   [Page 53]
^L
RFC 7545                          PAWS                          May 2015


   data:  The Database MAY include additional data.  For some errors,
      additional data may be required (see Table 1).  The device MUST
      ignore any data parameters it does not understand.

   The following table lists predefined and reserved error codes.  They
   are loosely grouped into the following categories:

   -100s:  Indicates compatibility issues, e.g., version mismatch,
      unsupported or unimplemented features.

   -200s:  Indicates that the device request contains an error that
      needs to be modified before making another request.

   -300s:  Indicates authorization-related issues.

   Values that are not defined explicitly in the Error Codes
   Table (Table 1) below are unassigned.  To define new error codes, see
   PAWS Error Code Registry (Section 9.3).

   Code   Name             Description and Additional Parameters
   ------ ---------------- ---------------------------------------------
   0      (reserved)
   -100   (reserved)
   -101   VERSION          The Database does not support the specified
                           version of the message.  This error does not
                           use any additional data.
   -102   UNSUPPORTED      The Database does not support the device.
                           For example, it supports none of the rulesets
                           specified in the request or does not support
                           the device, based on its device type, model,
                           etc.  This error does not use any additional
                           data.
   -103   UNIMPLEMENTED    The Database does not implement the optional
                           request or optional feature.  This error does
                           not use any additional data.
   -104   OUTSIDE_COVERAGE The specified geolocation is outside the
                           coverage area of the Database.  The Database
                           MAY include a DbUpdateSpec (Section 5.7) to
                           provide a list of alternate Databases that
                           might be appropriate for the requested
                           location.  See OUTSIDE_COVERAGE Error
                           (Section 5.17.1) for more details.









Chen, et al.                 Standards Track                   [Page 54]
^L
RFC 7545                          PAWS                          May 2015


   -105   DATABASE_CHANGE  The Database has changed its URI.  The
                           Database MAY include a DbUpdateSpec (Section
                           5.7) in the error response to provide devices
                           with one or more alternate database URIs.
                           The device needs to update its preconfigured
                           entry for the responding Database with the
                           alternate Databases listed in the
                           DbUpdateSpec.  See DATABASE_CHANGE Error
                           (Section 5.17.2) for more details.
   -200   (reserved)
   -201   MISSING          A required parameter is missing.  The
                           Database MUST include a list of the required
                           parameter names.  The Database MAY include
                           only names of parameters that are missing,
                           but MAY include a full list. Including the
                           full list of missing parameters may reduce
                           the number of re-queries from the device.
                           See MISSING Error (Section 5.17.3) for more
                           details.
   -202   INVALID_VALUE    A parameter value is invalid in some way.
                           The Database SHOULD include a message
                           indicating which parameter and why its value
                           is invalid.  This error does not use any
                           additional data.
   -300   (reserved)
   -301   UNAUTHORIZED     The device is not authorized to used the
                           Database.   Authorization may be determined
                           by the ruleset or be dependent on prior
                           arrangement between the device and Database.
                           This error does not use any additional data.
   -302   NOT_REGISTERED   Device registration required, but the device
                           is not registered.  This error does not use
                           any additional data.
   -32000 (reserved)       Reserved for JSON-RPC error codes.
   to
   -32768

                           Table 1: Error Codes

5.17.1.  OUTSIDE_COVERAGE Error

   When the error code is OUTSIDE_COVERAGE, the Database MAY include an
   ErrorData element within its Error response as the "data" parameter,
   and, if present, the ErrorData contains a DbUpdateSpec (Section 5.7)
   element that provides a list of alternate Databases that might be
   appropriate for the requested location.





Chen, et al.                 Standards Track                   [Page 55]
^L
RFC 7545                          PAWS                          May 2015


   +---------------------------+
   |Error                      |
   +----------------+----------+
   |code:int        | REQUIRED |
   |message:string  | OPTIONAL |    +-----------------------------+
   |data:ErrorData  | OPTIONAL |--->|ErrorData                    |
   +----------------+----------+    +------------------+----------+
                                    |spec:DbUpdateSpec | OPTIONAL |
                                    +------------------+----------+

5.17.2.  DATABASE_CHANGE Error

   When the error code is DATABASE_CHANGE, the Database MAY include an
   ErrorData element within its Error response as the "data" parameter,
   and, if present, the ErrorData contains a DbUpdateSpec (Section 5.7)
   element that provides a list of alternate Databases.

   +---------------------------+
   |Error                      |
   +----------------+----------+
   |code:int        | REQUIRED |
   |message:string  | OPTIONAL |    +-----------------------------+
   |data:ErrorData  | OPTIONAL |--->|ErrorData                    |
   +----------------+----------+    +------------------+----------+
                                    |spec:DbUpdateSpec | REQUIRED |
                                    +------------------+----------+

5.17.3.  MISSING Error

   When the error code is MISSING, the Database MUST include an
   ErrorData element within its Error response as the "data" parameter,
   and the ErrorData element MUST include a list of the missing required
   parameters and MAY include the list of all required parameters.

   +---------------------------+
   |Error                      |
   +----------------+----------+
   |code:int        | REQUIRED |
   |message:string  | OPTIONAL |    +---------------------------+
   |data:ErrorData  | REQUIRED |--->|ErrorData                  |
   +----------------+----------+    +----------------+----------+ 1..*
                                    |parameters:list | REQUIRED |--+
                                    +----------------+----------+  |
                                                                   v
                                                                 string






Chen, et al.                 Standards Track                   [Page 56]
^L
RFC 7545                          PAWS                          May 2015


   Parameters:

   parameters:  List of one or more parameter names (strings).  The name
      of a parameter is expressed using dotted notation, when
      appropriate, e.g., "deviceDesc.serialNumber".

6.  Message Encoding

   PAWS is encoded using JSON-RPC [JSON-RPC] (see also "The JavaScript
   Object Notation (JSON) Data Interchange Format" [RFC7159]).  Each
   component described in Protocol Functionalities (Section 4)
   corresponds to one or more JSON-RPC methods.  This section discusses
   how to encode the data models presented in Sections 4 and 5 into JSON
   and provides some example encodings.  The JSON examples may contain
   ellipses (...) to represent additional properties or elements that
   have been omitted in order to make the examples more concise.

6.1.  JSON-RPC Binding

   The JSON-RPC [JSON-RPC] protocol consists of two basic objects,
   Request and Response:

   o  The JSON-RPC Request object encapsulates a PAWS functionality
      (operation) and the request message.

   o  The JSON-RPC Response object encapsulates a PAWS response message
      and an Error element.

   The Database and device MUST support JSON-RPC 2.0 encoding, with the
   restriction that the "id" parameter in the messages MUST be a string.
   The device should generate the "id" uniquely enough to allow the use
   of JSON-RPC batch.

   The JSON-RPC Request for PAWS has the following form:

   {
     "jsonrpc": "2.0",
     "method": "spectrum.paws.methodName",
     "params": <PAWS_REQ>,
     "id": "idString"
   }

   where "method" is the name of a PAWS functionality (operation), and
   <PAWS_REQ> represents one of the PAWS request messages associated
   with the method (see Sections 4.3 through 4.6).  Method names are
   defined with the prefix "spectrum.paws.".





Chen, et al.                 Standards Track                   [Page 57]
^L
RFC 7545                          PAWS                          May 2015


   The non-error JSON-RPC Response for PAWS has the following form:

   {
     "jsonrpc": "2.0",
     "result": <PAWS_RESP>,
     "id": "idString"
   }

   where <PAWS_RESP> represents one of the PAWS response messages
   associated with the method, and "id" is copied from the request.

   The error JSON-RPC Response for PAWS has the following form:

   {
     "jsonrpc": "2.0",
     "error": {
       "code": -102,
       "message": "An appropriate error message.",
       "data": { ... }
     },
     "id": "idString"
   }

   where the "error" object corresponds to the Error Element
   (Section 5.17), and "code" is an error code described in the same
   section.  The Database SHOULD attempt to use the most specific
   applicable PAWS error code.  When an accurate one is not available,
   it SHOULD fall back to standard JSON-RPC error codes as defined in
   the JSON-RPC specification.  For example, if the Database receives
   invalid JSON from the device, it should respond with "-32700",
   signifying a parse error.  As a last resort, the Database MAY send a
   suitable HTTP 5xx response.



















Chen, et al.                 Standards Track                   [Page 58]
^L
RFC 7545                          PAWS                          May 2015


6.1.1.  Method Names

   Table 2 defines the method name, request object, and response object
   for each functionality defined in Protocol Functionalities
   (Section 4).

   +-------------------------------------------------------------------+
   | Method Name                                                       |
   |    Request                                                        |
   |    Response                                                       |
   +-------------------------------------------------------------------+
   | spectrum.paws.init                                                |
   |    INIT_REQ (Section 4.3.1)                                       |
   |    INIT_RESP (Section 4.3.2)                                      |
   |                                                                   |
   | spectrum.paws.register                                            |
   |    REGISTRATION_REQ (Section 4.4.1)                               |
   |    REGISTRATION_RESP (Section 4.4.2)                              |
   |                                                                   |
   | spectrum.paws.getSpectrum                                         |
   |    AVAIL_SPECTRUM_REQ (Section 4.5.1)                             |
   |    AVAIL_SPECTRUM_RESP (Section 4.5.2)                            |
   |                                                                   |
   | spectrum.paws.getSpectrumBatch                                    |
   |    AVAIL_SPECTRUM_BATCH_REQ (Section 4.5.3)                       |
   |    AVAIL_SPECTRUM_BATCH_RESP (Section 4.5.4)                      |
   |                                                                   |
   | spectrum.paws.notifySpectrumUse                                   |
   |    SPECTRUM_USE_NOTIFY (Section 4.5.5)                            |
   |    SPECTRUM_USE_RESP (Section 4.5.6)                              |
   |                                                                   |
   | spectrum.paws.verifyDevice                                        |
   |    DEV_VALID_REQ (Section 4.6.1)                                  |
   |    DEV_VALID_RESP (Section 4.6.2)                                 |
   +-------------------------------------------------------------------+

                        Table 2: Method Names

6.1.2.  JSON Encoding of Data Models

   JSON [RFC7159] encoding of the data models described in Sections 4
   and 5 is straightforward:

   o  Each data model describes the contents of a JSON object.







Chen, et al.                 Standards Track                   [Page 59]
^L
RFC 7545                          PAWS                          May 2015


   o  Each parameter of a data model corresponds to a member of the
      corresponding JSON object:

      *  The parameter name of the data model is the same as the member
         name of the JSON object.

      *  The parameter data type describes the type of the member value.

   o  Primitive types map to JSON type, as described in Section 4 and
      repeated here:

      string:  A JSON string, restricted to UTF-8 encoding

      int:  A JSON number, without a fractional or exponent part

      float:  A JSON number

      boolean:  One of the JSON values, true or false

   o  The list type maps to a JSON array, except that all values in the
      array are of the same type.

   o  When the parameter data type refers to another data model, that
      data model describes a nested JSON object.

   o  The encoded JSON object for each of the Request and Response
      message listed in the Method Names Table (Table 2) also includes
      the following members:

      type:  The name of the message, e.g., "INIT_REQ"

      version:  The PAWS version, e.g., "1.0"

   See the following sections for examples.

















Chen, et al.                 Standards Track                   [Page 60]
^L
RFC 7545                          PAWS                          May 2015


6.2.  Example Encoding: spectrum.paws.init Method

   An example of the "spectrum.paws.init" JSON-RPC request is shown
   below.

   {
    "jsonrpc": "2.0",
    "method": "spectrum.paws.init",
    "params": {
     "type": "INIT_REQ",
     "version": "1.0",
     "deviceDesc": {
      "serialNumber": "XXX",
      "fccId": "YYY",
      "rulesetIds": ["FccTvBandWhiteSpace-2010"]
     },
     "location": {
      "point": {
       "center": {"latitude": 37.0, "longitude": -101.3}
      }
     }
    },
    "id": "xxxxxx"
   }

   An example of the corresponding JSON-RPC response is shown below.

   {
    "jsonrpc": "2.0",
    "result": {
     "type": "INIT_RESP",
     "version": "1.0",
     "rulesetInfos": [
       {
         "authority": "us",
         "rulesetId": "FccTvBandWhiteSpace-2010",
         "maxLocationChange": 100,
         "maxPollingSecs": 86400
       }
     ]
    },
    "id": "xxxxxx"
   }








Chen, et al.                 Standards Track                   [Page 61]
^L
RFC 7545                          PAWS                          May 2015


6.3.  Example Encoding: spectrum.paws.getSpectrum Method

   An example of the "spectrum.paws.getSpectrum" JSON-RPC request is
   shown below:

   {
    "jsonrpc": "2.0",
    "method": "spectrum.paws.getSpectrum",
    "params": {
     "type": "AVAIL_SPECTRUM_REQ",
     "version": "1.0",
     "deviceDesc": {
      "serialNumber": "XXX",
      "fccId": "YYY",
      "rulesetIds": ["FccTvBandWhiteSpace-2010"]
     },
     "location": {
      "point": {
       "center": {"latitude": 37.0, "longitude": -101.3}
      }
     },
     "antenna": {"height": 10.2, "heightType": "AGL"}
    },
    "id": "xxxxxx"
   }

   The following example "spectrum.paws.getSpectrum" JSON-RPC response
   contains:

   o  A schedule with two time ranges

   o  A spectrum profile for one resolution bandwidth (6 MHz)

   o  The power levels for two frequency segments:

      *  From 518 MHz to 542 MHz

      *  From 620 MHz to 626 MHz

   o  In practice, each "profiles" list contains (frequency, power)
      points to cover all frequencies governed by the associated
      ruleset.  See "Spectrum" (Section 5.11) for a more detailed
      discussion on the representation.








Chen, et al.                 Standards Track                   [Page 62]
^L
RFC 7545                          PAWS                          May 2015


   {
    "jsonrpc": "2.0",
    "result": {
     "type": "AVAIL_SPECTRUM_RESP",
     "version": "1.0",
     "timestamp": "2013-03-02T14:30:21Z",
     "deviceDesc": {
      "serialNumber": "XXX",
      "fccId": "YYY",
      "rulesetIds": ["FccTvBandWhiteSpace-2010"]
     },
     "spectrumSpecs": [
      {
       "rulesetInfo": {
         "authority": "us",
         "rulesetId": "FccTvBandWhiteSpace-2010"
       },
       "needsSpectrumReport": false,
       "spectrumSchedules": [
        {
         "eventTime": {
          "startTime": "2013-03-02T14:30:21Z",
          "stopTime": "2013-03-02T20:00:00Z"
         },
         "spectra": [
           {
            "resolutionBwHz": 6e6,
            "profiles": [
              ...
              [
               {"hz":5.18e8, "dbm":30.0},
               {"hz":5.36e8, "dbm":30.0},
               {"hz":5.36e8, "dbm":36.0},
               {"hz":5.42e8, "dbm":36.0}
              ],
              [
               {"hz":6.20e8, "dbm":30.0},
               {"hz":6.26e8, "dbm":30.0}
              ],
              ...
            ]
           }
         ]
        },
        {
         "eventTime": {
          "startTime": "2013-03-02T22:00:00Z",
          "stopTime": "2013-03-03T14:30:21Z"



Chen, et al.                 Standards Track                   [Page 63]
^L
RFC 7545                          PAWS                          May 2015


         },
         "spectra": [
          ...
         ]
        }
       ]
      }
     ]
    },
    "id": "xxxxxx"
   }

   The following example "spectrum.paws.getSpectrum" JSON-RPC response
   includes a spectrum profile that contains specifications for two
   different bandwidth resolutions (6 MHz and 100 kHz):

   {
    "jsonrpc": "2.0",
    "result": {
     "type": "AVAIL_SPECTRUM_RESP",
     "version": "1.0",
     "timestamp": "2013-03-02T14:30:21Z",
     "deviceDesc": {
      "serialNumber": "XXX",
      ...
     },
     "spectrumSpecs": [
      {
       "rulesetInfo": {
         "authority": "xx",
         ...
       },
       "needsSpectrumReport": false,
       "spectrumSchedules": [
        {
         "eventTime": {
          "startTime": "2013-03-02T14:30:21Z",
          "stopTime": "2013-03-02T20:00:00Z"
         },
         "spectra": [
           {
            "resolutionBwHz": 6e6,
            "profiles": [
              ...
              [
               {"hz":5.18e8, "dbm":30.0},
               {"hz":5.36e8, "dbm":30.0},
               {"hz":5.36e8, "dbm":36.0},



Chen, et al.                 Standards Track                   [Page 64]
^L
RFC 7545                          PAWS                          May 2015


               {"hz":5.42e8, "dbm":36.0}
              ],
              [
               {"hz":6.20e8, "dbm":30.0},
               {"hz":6.26e8, "dbm":30.0}
              ],
              ...
            ]
           },
           {
            "resolutionBwHz": 1e5,
            "profiles": [
              ...
              [
               {"hz":5.18e8, "dbm":27.0},
               {"hz":5.36e8, "dbm":27.0},
               {"hz":5.36e8, "dbm":30.0},
               {"hz":5.42e8, "dbm":30.0}
              ],
              [
               {"hz":6.20e8, "dbm":27.0},
               {"hz":6.26e8, "dbm":27.0}
              ],
              ...
            ]
           }
         ]
        },
        {
         "eventTime": {
          "startTime": "2013-03-02T22:00:00Z",
          "stopTime": "2013-03-03T14:30:21Z"
         },
         "spectra": [
          ...
         ]
        }
       ]
      }
     ]
    },
    "id": "xxxxxx"
   }








Chen, et al.                 Standards Track                   [Page 65]
^L
RFC 7545                          PAWS                          May 2015


6.4.  Example Encoding: DeviceOwner vCard

   The DeviceOwner (Section 5.5) data model contains member values that
   are JSON encodings of vCard, as described in "jCard: The JSON format
   for vCard" [RFC7095].  An example fragment is provided below:

     {
       ...
       "deviceOwner": {
         "owner": [
           "vcard", [
             ["version", {}, "text", "4.0"],
             ["kind", {}, "text", "org"],
             ["fn", {}, "text", "Racafrax, Inc."]
           ]
         ],
         "operator": [
           "vcard", [
             ["version", {}, "text", "4.0"],
             ["fn", {}, "text", "John Frax"],
             ["adr", {}, "text",
               ["", "", "100 Main Street",
                "Summersville", "CA", "90034", "USA"
               ]
             ],
             ["tel", {}, "uri", "tel:+1-213-555-1212"],
             ["email", {}, "text", "j.frax@rackafrax.com"]
           ]
         ]
       }
     }

7.  HTTPS Binding

   This section describes the use of "HTTP Over TLS" [RFC2818] (HTTPS)
   as the transfer mechanism for PAWS.  TLS provides message integrity
   and confidentiality between the Master Device and the Database, but
   only when best current practices are adopted, including use of
   recommended cipher suites and modes of operation.  Consequently, to
   improve PAWS security and interoperability, implementations of the
   Database and Master Device MUST follow best current practices defined
   by "Recommendations for Secure Use of Transport Layer Security (TLS)
   and Datagram Transport Layer Security (DTLS)" [RFC7525].

   Depending on a prior relationship between a Database and device, the
   server MAY require client authentication, as described in the
   "Transport Layer Security (TLS) Protocol" [RFC5246], to authenticate




Chen, et al.                 Standards Track                   [Page 66]
^L
RFC 7545                          PAWS                          May 2015


   the device.  When client authentication is required, the Database
   MUST specify, by prior arrangement, acceptable root Certification
   Authorities (CAs) to serve as trust anchors for device certificates.

   To enable Databases to handle large numbers of requests from large
   numbers of devices, the Database MAY support and devices SHOULD
   support "Stateless TLS Session Resumption" [RFC5077].

   A PAWS request message is carried in the body of an HTTP POST
   request.  A PAWS response message is carried in the body of an HTTP
   response.  A PAWS response SHOULD include a Content-Length header.

   The POST method is the only method REQUIRED for PAWS.  If a Database
   chooses to support GET, it MUST be an escaped URI, but the encoding
   of the URI is outside the scope of this document.  The Database MAY
   refuse to support the GET request by returning an HTTP error code,
   such as 405 (method not allowed).

   The Database MAY redirect a PAWS request by returning a HTTP 3xx
   response (as defined by Section 6.4 of "HTTP/1.1: Semantics and
   Content" [RFC7231]).  The Database MUST provide the redirect URI in
   the Location header of the 3xx response, and the device MUST handle
   redirects by using the Location header provided by the Database.
   When redirecting, the device MUST observe the delay indicated by the
   Retry-After header.  The device MUST authenticate the Database that
   returns the redirect response before following the redirect.  Also,
   the device MUST authenticate the Database indicated in the redirect.
   Since the device may communicate with a Database (which it
   authenticated) without user interaction, when the response code is
   301 (Moved Permanently), the device MAY redirect without asking a
   user for confirmation, even thought it is in response to an HTTP POST
   method.

   The Database SHOULD use HTTP status code "307 Temporary Redirect" to
   indicate that the device SHOULD resubmit the same request to an
   alternate URI.  The device MAY revert to the original URI for the
   very next request, or it MAY continue to use the alternate URI for a
   period of time, e.g.,:

   o  For the remainder of its session, or

   o  For a fixed period of time, or

   o  Until power cycled, or

   o  Until it receives another redirect

   However, the device does not need to modify its stored list of URIs.



Chen, et al.                 Standards Track                   [Page 67]
^L
RFC 7545                          PAWS                          May 2015


   For a minimum of two weeks before the URI of the Database changes
   permanently, it MUST use the database-change (DbUpdateSpec
   (Section 5.7)) mechanism to notify devices, as described in
   "Configuration Update: Database URI Changes" (Section 4.1.2).  After
   the Database has moved, requests to the original URI MAY return HTTP
   status code 301 (Moved Permanently) to indicate that the device
   SHOULD resubmit the request, and all future requests, to the
   indicated alternate URI.

8.  Extensibility

   This section describes procedures for extending PAWS.  No extensions
   should be made that would return sensitive device-specific
   information in database responses.

8.1.  Defining Ruleset Identifiers

   A ruleset represents a set of device-side requirements for which the
   device has been certified.  It typically corresponds to, but is not
   limited to, a set of rules that govern a specific set of radio
   spectrum for a regulatory domain.

   Ruleset identifiers are defined and registered in the Ruleset ID
   Registry following the procedure in Section 9.1.  Ruleset ID values
   MUST conform to the ruleset-id ABNF.  If the Ruleset ID requires
   additional parameters, they are registered in the PAWS Parameters
   Registry, as described by Section 9.2.  The ABNF syntax [RFC5234] is
   as follows.

   ruleset-id   = 1*64ruleset-char
   ruleset-char = ALPHA / DIGIT / "_" / "."

   When defining a Ruleset ID:

   o  It can be useful for the identifier to be descriptive of the set
      of rules that allow a device to operate within one or more
      regulatory domains.  For example, it might include the name of a
      regulatory body or a certification process.

   o  The identifier SHOULD include some sort of version information,
      such as a year and/or version number.

   o  The maximum length of the identifier is 64 octets.








Chen, et al.                 Standards Track                   [Page 68]
^L
RFC 7545                          PAWS                          May 2015


8.2.  Defining New Message Parameters

   New request or response parameters for use with PAWS are defined and
   registered in the parameters registry following the procedure in
   Section 9.2.

   Parameter names MUST conform to the param-name ABNF, and parameter
   values syntax MUST be well-defined (e.g., using ABNF or a reference
   to the syntax of an existing parameter).

   param-name = 1*64name-char
   name-char  = ALPHA / DIGIT / "_"

   Parameter names use lowerCamelCase by convention.  The maximum length
   of a name is 64 octets.

   Unregistered vendor-specific parameter extensions that are not
   commonly applicable and are specific to the implementation details of
   the Database where they are used SHOULD use a vendor-specific prefix
   that is not likely to conflict with other registered values (e.g.,
   begin with 'companyname').

8.3.  Defining Additional Error Codes

   Additional error codes can be registered to extend the set listed in
   Section 5.17, following the procedures in Section 9.3.  If the error
   code requires additional response parameters, they are registered in
   the PAWS Parameters Registry, as described by Section 9.2.

   By convention, the error code is a negative integer value, using one
   of the range of values defined in Error Codes (Section 5.17).  If an
   appropriate category does not exist, a value from a different range
   may be used.

9.  IANA Considerations

   There are three registries associated with PAWS:

   o  PAWS Ruleset ID Registry (Section 9.1)

   o  PAWS Parameter Registry (Section 9.2)

   o  PAWS Error Code Registry (Section 9.3)

   All registries use the Specification Required policy [RFC5226], with
   a Designated Expert appointed by the IESG.  Specific criteria that
   the Designated Expert should use in assessing registrations are given
   below in the description of each registry.  The Designated Expert



Chen, et al.                 Standards Track                   [Page 69]
^L
RFC 7545                          PAWS                          May 2015


   should take advice from the community through the paws@ietf.org
   mailing list, and the registrant is encouraged to post to the mailing
   list before formally requesting the registration from IANA.  The
   intention is that new registrations will be accompanied by a
   published specification.  But in order to allow for the allocation of
   values prior to publication of the specification, the Designated
   Expert can approve allocations once it seems clear that the
   specification will be published.  Upon approval, IANA will post the
   registrations that are not intended to be published in an RFC.

9.1.  PAWS Ruleset ID Registry

   This specification establishes the "PAWS Ruleset ID Registry".

   Ruleset type names for inclusion in PAWS messages are registered on
   the advice of one or more Designated Experts, with Specification
   Required [RFC5226].  The specification must include a reference to
   the regulatory domain to which it applies.  To increase
   interoperability, it is more desirable to have fewer rulesets than to
   have many rulesets with small variations.  Consequently, the
   Designated Expert should avoid duplication and should encourage the
   registrant to look for alternatives if there are only small
   variations from an existing ruleset.  The Designated Expert should
   ensure that the proposed registration is complete with respect to its
   associated regulatory domain and may seek an expert familiar with
   those rules to participate in the review on the paws@ietf.org mailing
   list.

   The PAWS Ruleset ID Registry includes the following: 'Ruleset
   Identifier', 'Reference', and 'Template'.  The Template column will
   include links to the registration templates, either posted by IANA or
   linked to the relevant sections of RFCs.

9.1.1.  Registration Template

   Ruleset identifier:  The name of the ruleset.  See Section 8.1 of RFC
      7545 for the format requirements of this identifier.

   Specification document(s):  Reference to the document that specifies
      the parameter, preferably including a URI that can be used to
      retrieve a copy of the document.  An indication of the relevant
      sections also may be included but is not required.









Chen, et al.                 Standards Track                   [Page 70]
^L
RFC 7545                          PAWS                          May 2015


   Additional Parameter Requirements:  Listing of additional parameter
      requirements to associate with the ruleset.  Note that new
      parameters are registered separately in the PAWS Parameters
      Registry, as described by Section 8.2.  Two types of additional
      parameter requirements are:

      *  Addition of new parameters to existing structures, or
         modification of the REQUIRED and OPTIONAL requirements for
         existing parameters.

      *  Modification of requirements to existing parameter values.

      For adding new parameters or modifying requirements of existing
      parameters, the registration should include a table for each
      affected structure that lists the structure's parameter changes.
      Each table should include a structure name in its heading and have
      the following columns:

      Parameter name:  Name of the parameter added or modified.

      Type:  Data type of the parameter value.

      Requirement:  Whether the parameter is REQUIRED or OPTIONAL for
         the ruleset.

      Notes:  Any additional notes that might be useful to implementors.

      For modifying requirements to existing parameter values, the
      registration should include a table for each affected structure
      that lists the structure's parameter changes.  Each table should
      include a structure name in its heading and have the following
      columns:

      Parameter name:  Name of the parameter.

      Type:  Data type of the parameter value.

      Additional requirements:  Additional requirements on the parameter
         value.

   IANA will post each registration template that is not intended to be
   published in an RFC.

   Note that the Additional Parameter Requirements section can be quite
   extensive, so it will not appear directly in the IANA Ruleset ID
   Registry table.  The table, however, will contain a link to the full
   registration template for easy access to the additional requirements.




Chen, et al.                 Standards Track                   [Page 71]
^L
RFC 7545                          PAWS                          May 2015


9.1.2.  Initial Registry Contents

   The PAWS Ruleset ID Registry enables protocol extensibility to
   support any regulatory domain and ruleset.  The initial contents of
   the registry, however, include only FCC-specific and ETSI-specific
   entries, because, as of this writing, they are the only regulatory
   domains that have finalized rules.  There is no intent to restrict
   the protocol to any particular set of authorities.

   The initial contents of the PAWS Ruleset ID Registry are listed
   below; each section corresponds to a single entry in the registry.

9.1.2.1.  Federal Communications Commission (FCC)

   For the additional parameters that start with the "fcc" prefix, see
   PAWS Parameters Registry Initial Contents (Section 9.2.2) for more
   information.

   Ruleset identifier:  FccTvBandWhiteSpace-2010

   Specification document(s):  This ruleset refers to the FCC rules for
      TV-band white-space operations established in the Code of Federal
      Regulations (CFR), Title 47, Part 15, Subpart H [FCC-CFR47-15H].

   Additional Parameter Requirements

   Each of the following tables defines additional parameters for the
   indicated PAWS message.  Note that the Requirement column lists FCC,
   not PAWS, requirements/optionality rules.

   The FCC requires registration of "Fixed Devices".  Additionally,
   deviceOwner is required in the registration request:

                   Registration Request (Section 4.4.1)

   +-------------+-------------------+-------------+-------------------+
   | Parameter   | Type              | Requirement | Notes             |
   | Name        |                   |             |                   |
   +-------------+-------------------+-------------+-------------------+
   | deviceOwner | DeviceOwner       | REQUIRED    | For registering   |
   |             | (Section 5.5)     |             | Fixed Devices     |
   +-------------+-------------------+-------------+-------------------+









Chen, et al.                 Standards Track                   [Page 72]
^L
RFC 7545                          PAWS                          May 2015


                Available Spectrum Request (Section 4.5.1)

   +---------------+-----------------------------+-------------+-------+
   | Parameter     | Type                        | Requirement | Notes |
   | Name          |                             |             |       |
   +---------------+-----------------------------+-------------+-------+
   | deviceDesc    | DeviceDescriptor (Section   | REQUIRED    |       |
   |               | 5.2)                        |             |       |
   +---------------+-----------------------------+-------------+-------+

             Available Spectrum Batch Request (Section 4.5.3)

   +---------------+-----------------------------+-------------+-------+
   | Parameter     | Type                        | Requirement | Notes |
   | Name          |                             |             |       |
   +---------------+-----------------------------+-------------+-------+
   | deviceDesc    | DeviceDescriptor (Section   | REQUIRED    |       |
   |               | 5.2)                        |             |       |
   +---------------+-----------------------------+-------------+-------+

                      DeviceDescriptor (Section 5.2)

   +-------------------+--------+-------------+------------------------+
   | Parameter Name    | Type   | Requirement | Notes                  |
   +-------------------+--------+-------------+------------------------+
   | serialNumber      | string | REQUIRED    | Specifies a device's   |
   |                   |        |             | serial number.  See    |
   |                   |        |             | Section 5.2.           |
   | fccId             | string | REQUIRED    | Specifies a device's   |
   |                   |        |             | FCC certification ID   |
   |                   |        |             | (Section 9.2.2.1).     |
   | fccTvbdDeviceType | string | REQUIRED    | Specifies the FCC      |
   |                   |        |             | Device Type (Section   |
   |                   |        |             | 9.2.2.2) of TV-band    |
   |                   |        |             | white-space device, as |
   |                   |        |             | defined by the FCC     |
   |                   |        |             | rules.                 |
   +-------------------+--------+-------------+------------------------+













Chen, et al.                 Standards Track                   [Page 73]
^L
RFC 7545                          PAWS                          May 2015


   The following table lists additional requirements for DeviceOwner
   (Section 5.5) parameter values.

                         DeviceOwner (Section 5.5)

   +-----------+-------+-----------------------------------------------+
   | Parameter | Type  | Additional Requirement                        |
   | Name      |       |                                               |
   +-----------+-------+-----------------------------------------------+
   | owner     | vCard | The owner is required to contain the          |
   |           |       | formatted name of an individual or            |
   |           |       | organization using the "fn" property.  When   |
   |           |       | the name is that of an organization, the      |
   |           |       | entry also is required to contain the "kind"  |
   |           |       | property, with a value of "org".              |
   | operator  | vCard | The operator entry is required to contain the |
   |           |       | following properties for the contact person   |
   |           |       | responsible for the device's operation: "fn", |
   |           |       | "adr", "tel", and "email".                    |
   +-----------+-------+-----------------------------------------------+

9.1.2.2.  European Telecommunications Standards Institute (ETSI)

   For the additional parameters that start with the "etsi" prefix, see
   PAWS Parameters Registry Initial Contents (Section 9.2.2) for more
   information.

   Ruleset identifier:  ETSI-EN-301-598-1.1.1

   Specification document(s):  This ruleset refers to the ETSI
      Harmonised Standard [ETSI-EN-301-598] established by ETSI.

   Additional Parameter Requirements

   Each of the following tables defines additional parameters for the
   indicated PAWS message.  Note that the Requirement column lists ETSI,
   not PAWS, requirements/optionality rules.














Chen, et al.                 Standards Track                   [Page 74]
^L
RFC 7545                          PAWS                          May 2015


   +-------------------------------------------------------------------+
   | Parameter Name                                                    |
   |    Type                                                           |
   |    Requirement                                                    |
   |    Notes                                                          |
   +-------------------------------------------------------------------+
   | serialNumber                                                      |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies a device's serial number (Section 5.2).              |
   |                                                                   |
   | manufacturerId                                                    |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies a device's manufacturer's identifier                 |
   |     (Section 5.2).                                                |
   |                                                                   |
   | modelId                                                           |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies a device's model identifier (Section 5.2).           |
   |                                                                   |
   | etsiEnDeviceType                                                  |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies the device's ETSI device type (Section 9.2.2.3).     |
   |                                                                   |
   | etsiEnDeviceEmissionsClass                                        |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies the device's ETSI device emissions class             |
   |     (Section 9.2.2.4).                                            |
   |                                                                   |
   | etsiEnTechnologyId                                                |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies the device's ETSI technology ID (Section 9.2.2.5).   |
   |                                                                   |
   | etsiEnDeviceCategory                                              |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies the device's ETSI device category (Section 9.2.2.6). |
   +-------------------------------------------------------------------+








Chen, et al.                 Standards Track                   [Page 75]
^L
RFC 7545                          PAWS                          May 2015


                    AVAIL_SPECTRUM_REQ (Section 4.5.1)

   +-------------+--------+-------------+------------------------------+
   | Parameter   | Type   | Requirement | Notes                        |
   | Name        |        |             |                              |
   +-------------+--------+-------------+------------------------------+
   | requestType | string | OPTIONAL    | Modifies the available-      |
   |             |        |             | spectrum request type.  If   |
   |             |        |             | specified, the only valid    |
   |             |        |             | value is, "Generic Slave",   |
   |             |        |             | and the Database is required |
   |             |        |             | to respond with generic      |
   |             |        |             | operating parameters for any |
   |             |        |             | Slave Device.                |
   +-------------+--------+-------------+------------------------------+

             Available Spectrum Batch Request (Section 4.5.3)

   +-------------+--------+-------------+------------------------------+
   | Parameter   | Type   | Requirement | Notes                        |
   | Name        |        |             |                              |
   +-------------+--------+-------------+------------------------------+
   | requestType | string | OPTIONAL    | Modifies the available-      |
   |             |        |             | spectrum request type.  If   |
   |             |        |             | specified, the only valid    |
   |             |        |             | value is, "Generic Slave",   |
   |             |        |             | and the Database is required |
   |             |        |             | to respond with generic      |
   |             |        |             | operating parameters for any |
   |             |        |             | Slave Device.                |
   +-------------+--------+-------------+------------------------------+

   The following tables define additional requirements for the
   DeviceDescriptor (Section 5.2) and RulesetInfo (Section 5.6)
   parameters that appear in the AVAIL_SPECTRUM_RESP (Section 4.5.2) and
   AVAIL_SPECTRUM_BATCH_RESP (Section 4.5.4) messages.  Note that this
   means the Database is modifying the DeviceDescriptor sent by the
   Master Device to return device-specific restrictions.













Chen, et al.                 Standards Track                   [Page 76]
^L
RFC 7545                          PAWS                          May 2015


   +-------------------------------------------------------------------+
   | Parameter Name                                                    |
   |    Type                                                           |
   |    Requirement                                                    |
   |    Notes                                                          |
   +-------------------------------------------------------------------+
   | needsSpectrumReport                                               |
   |    boolean                                                        |
   |    REQUIRED                                                       |
   |    The Database is required to set this to true to indicate that  |
   |     the device must report spectrum usage.                        |
   |                                                                   |
   | maxTotalBwHz                                                      |
   |    float                                                          |
   |    REQUIRED                                                       |
   |    Specifies a constraint on total allowed bandwidth.             |
   |                                                                   |
   | maxContiguousBwHz                                                 |
   |    float                                                          |
   |    REQUIRED                                                       |
   |    Specifies a constraint on total allowed contiguous             |
   |     bandwidth.                                                    |
   |                                                                   |
   | etsiEnSimultaneousChannelOpera                                    |
   |    string                                                         |
   |    REQUIRED                                                       |
   |    Specifies a constraint on simultaneous channel operation       |
   |     (Section 9.2.2.7).  If it is not provided, the default value  |
   |      is "0".                                                      |
   +-------------------------------------------------------------------+

                         RulesetInfo (Section 5.6)

   +-------------------+-------+-------------+-------------------------+
   | Parameter Name    | Type  | Requirement | Notes                   |
   +-------------------+-------+-------------+-------------------------+
   | maxLocationChange | float | OPTIONAL    | Specifies a constraint  |
   |                   |       |             | on maximum location     |
   |                   |       |             | changes.                |
   +-------------------+-------+-------------+-------------------------+











Chen, et al.                 Standards Track                   [Page 77]
^L
RFC 7545                          PAWS                          May 2015


9.2.  PAWS Parameters Registry

   This specification establishes the "PAWS Parameters Registry".

   Additional parameters for inclusion in PAWS requests, responses, or
   sub-messages are registered on the advice of one or more Designated
   Experts, with Specification Required [RFC5226].

   The Designated Expert should avoid duplication, i.e., avoid adding a
   new parameter when an existing one suffices.  When a set of
   parameters is added in support of a new ruleset (Section 9.1), the
   parameters should share a common prefix that reflects the ruleset ID.
   The prefix may be omitted, of course, if a parameter has more general
   applicability.  Similarly, when a parameter is not associated with a
   ruleset, the Designated Expert should ensure that the parameter name
   does not have a prefix that is used by existing ruleset parameters
   (e.g., "fcc", "etsi") or that is the initials of an organization that
   has not yet registered anything, but reasonably might.

   The PAWS Parameters Registry includes the following: 'Parameter
   name', 'Parameter usage location', and 'Specification document(s)'.

9.2.1.  Registration Template

   Parameter name:  The name of the parameter (e.g., "example").

   Parameter usage location:  The location(s) where the parameter can be
      used.  The possible locations are the named structures defined in
      "Protocol Functionalities" (Section 4) and "Protocol Parameters"
      (Section 5).

   Specification document(s):  Reference to the document that specifies
      the parameter, preferably including a URI that can be used to
      retrieve a copy of the document.  An indication of the relevant
      sections also may be included, but is not required.

9.2.2.  Initial Registry Contents

   The PAWS Parameters Registry enables protocol extensibility to
   support any regulatory domain and ruleset.  The initial contents of
   the registry, however, include only FCC-specific and ETSI-specific
   entries, because, as of this writing, they are the only regulatory
   domains that have established rules.  There is no intent to restrict
   the protocol to any particular set of authorities.

   The initial contents of the PAWS Parameters Registry are listed
   below; each section corresponds to a row of the registry.




Chen, et al.                 Standards Track                   [Page 78]
^L
RFC 7545                          PAWS                          May 2015


9.2.2.1.  FCC ID

   Parameter name:  fccId

   Parameter usage location:  DeviceDescriptor (Section 5.2)

   Specification document(s):  This document.  Specifies the device's
      FCC certification identifier.  A valid FCC ID is limited to 19
      characters in the ASCII value range, as proposed in FCC
      Administration Topics Review [FCC-Review-2012-10].  For the
      purposes of the PAWS protocol, the maximum length of the fccId
      value is 32 octets.

9.2.2.2.  FCC Device Type

   Parameter name:  fccTvbdDeviceType

   Parameter usage location:  DeviceDescriptor (Section 5.2)

   Specification document(s):  This document.  Specifies the TV-band
      white-space device type, as defined by the FCC.  Valid values are
      "FIXED", "MODE_1", and "MODE_2".

9.2.2.3.  ETSI Device Type

   Parameter name:  etsiEnDeviceType

   Parameter usage location:  DeviceDescriptor (Section 5.2)

   Specification document(s):  Specifies the white-space device type, as
      defined by the ETSI Harmonised Standard [ETSI-EN-301-598].  Valid
      values are single-letter strings, such as "A", "B", etc.  Consult
      the documentation for details about the device types.

9.2.2.4.  ETSI Device Emissions Class

   Parameter name:  etsiEnDeviceEmissionsClass

   Parameter usage location:  DeviceDescriptor (Section 5.2)

   Specification document(s):  Specifies the white-space device
      emissions class, as defined by the ETSI Harmonised Standard
      [ETSI-EN-301-598], that characterizes the out-of-block emissions
      of the device.  The values are represented by numeric strings,
      such as "1", "2", "3", etc.  Consult the documentation for details
      about emissions classes.





Chen, et al.                 Standards Track                   [Page 79]
^L
RFC 7545                          PAWS                          May 2015


9.2.2.5.  ETSI Technology Identifier

   Parameter name:  etsiEnTechnologyId

   Parameter usage location:  DeviceDescriptor (Section 5.2)

   Specification document(s):  Specifies the white-space device
      technology identifier, as defined by the ETSI Harmonised Standard
      [ETSI-EN-301-598].  The maximum length of the string value is 64
      octets.  Consult the documentation for valid values.

9.2.2.6.  ETSI Device Category

   Parameter name:  etsiEnDeviceCategory

   Parameter usage location:  DeviceDescriptor (Section 5.2)

   Specification document(s):  Specifies the white-space device
      category, as defined by the ETSI Harmonised Standard
      [ETSI-EN-301-598].  Valid values are the strings "master" and
      "slave".  It is case insensitive.

9.2.2.7.  ETSI Simultaneous Channel Operation Restriction

   Parameter name:  etsiEnSimultaneousChannelOperationRestriction

   Parameter usage location:  SpectrumSpec (Section 5.9)

   Specification document(s):  Specifies the constraint on the device
      maximum total EIRP, as defined by the ETSI Harmonised Standard
      [ETSI-EN-301-598].  The values are represented by numeric strings,
      such as "0", "1", etc.  Consult the documentation for the
      specification of the power constraint corresponding to each
      parameter value.

9.3.  PAWS Error Code Registry

   This specification establishes the "PAWS Error Code Registry".

   Additional error codes for inclusion in PAWS error messages are
   registered on the advice of one or more Designated Experts, with
   Specification Required [RFC5226].

   Error codes are intended to be used for automated error handling by
   devices.  Before approval, the Designated Expert should consider
   whether a device would handle the new error code differently from an





Chen, et al.                 Standards Track                   [Page 80]
^L
RFC 7545                          PAWS                          May 2015


   existing error code, or whether the difference could be communicated
   effectively to the end-user via the "reason" parameter of the Error
   (Section 5.17) object.

   The PAWS Error Code Registry includes the following: 'Code', 'Name',
   'Description and Additional Parameters', and 'Specification
   Document(s)'.

9.3.1.  Registration Template

   Code:  Integer value of the error code.  The value MUST be an
      unassigned value in the range -32768 to 32767, inclusive.

   Name:  Name of the error.

   Description and Additional Parameters:  Description of the error and
      its associated parameters, if any.  It also lists additional
      parameters that are returned in the data portion of the error (see
      Section 5.17).  New parameters MUST be registered separately in
      the PAWS Parameters Registry, as described by Section 9.2.

9.3.2.  Initial Registry Contents

   Initial registry contents are defined in the Error Codes
   Table (Table 1).

   The registry will also include the error-code categories describing
   -100s, -200s, and -300s as a note (see "Error Codes" (Section 5.17)).

10.  Security Considerations

   PAWS is a protocol whereby a Master Device requests a schedule of
   available spectrum at its location (or location of its Slave Devices)
   before it (they) can operate using those frequencies.  Whereas the
   information provided by the Database must be accurate and conform to
   the applicable ruleset, the Database cannot enforce, through the
   protocol, that a client device uses only the spectrum it provided.
   In other words, devices can put energy in the air and cause
   interference without asking the Database.  Hence, PAWS security
   considerations do not include protection against malicious use of the
   white-space spectrum.  For more detailed information on specific
   requirements and security considerations associated with PAWS, see
   "Protocol to Access White-Space (PAWS) Databases: Use Cases and
   Requirements" [RFC6953].







Chen, et al.                 Standards Track                   [Page 81]
^L
RFC 7545                          PAWS                          May 2015


   By using PAWS, the Master Device and the Database expose themselves
   to the following risks:

   o  Accuracy: The Master Device receives incorrect spectrum-
      availability information.

   o  Privacy:

      *  An unauthorized entity intercepts identifying data for the
         Master Device or its Slave Devices, such as serial number and
         location.

      *  Where Databases are required to take device registrations and/
         or maintain request logs, there could be unauthorized access to
         such information.

   Protection from these risks depends on the success of the following
   steps:

   1.  The Master Device must determine the address of a proper
       Database.

   2.  The Master Device must connect to the proper Database.

   3.  The Database must determine or compute accurate spectrum-
       availability information.

   4.  PAWS messages must be transmitted unmodified between the Database
       and the Master Device.

   5.  PAWS messages must be encrypted between the Database and the
       Master Device to prevent exposing private information.

   6.  For a Slave Device, the spectrum-availability information also
       must be transmitted unmodified and securely between the Master
       Device and the Slave Device.

   7.  When a Listing Server is required, any attack that would prevent
       reaching a Listing Server would result in all devices relying on
       that Listing Server ceasing their use of any white space.

   8.  No future extensions to PAWS can allow the return of sensitive
       information, such as device information or logs.

   9.  The Database must not allow unauthorized access to device
       information and request logs and should publish and implement
       privacy policies regarding their use.




Chen, et al.                 Standards Track                   [Page 82]
^L
RFC 7545                          PAWS                          May 2015


   Of these, only steps 1, 2, 4, 5, and 8 are within the scope of this
   document.  This document addresses step 1 by allowing static
   provisioning of one or more trusted Databases; dynamic provisioning
   is out of scope.  Step 3 is dependent on specific database
   implementations and rulesets and is outside the scope of this
   document.  Step 6 requires a protocol between master and slave
   devices and is thus outside the scope of this document.

   Use of "HTTP Over TLS" [RFC2818], assuming the PKI used is not
   compromised, ensures steps 2, 4, and 5, as detailed in the following
   sections:

   o  "Assurance of Proper Database" (Section 10.1)

   o  "Protection against Modification" (Section 10.2)

   o  "Protection against Eavesdropping" (Section 10.3)

   Any specification for an alternate transport MUST define mechanisms
   that ensure each of these steps.

   In addition to the privacy risks described above, information
   provided in DeviceDescriptor (Section 5.2) and DeviceOwner
   (Section 5.5), along with device location, may allow a database
   administrator to track the activity and location of a device and its
   user over time.  Risks of secondary use of such tracking information,
   including sharing with third parties, require out-of-band mitigation,
   such as public statements or contractual terms.  Furthermore, while
   it is understandable that regulators require DeviceOwner information
   for higher-power fixed white-space devices, for privacy concerns,
   regulators should not require DeviceOwner information for mobile
   devices.  Similarly, regulators should require, and implementations
   should provide, device location at a level of granularity only as
   precise as necessary to support accurate database responses.

10.1.  Assurance of Proper Database

   This document assumes that the Database is contacted using a domain
   name or an IP address.  Using HTTP over TLS, the Database
   authenticates its identity, either as a domain name or IP address, to
   the Master Device by presenting a certificate containing that
   identifier as a "subjectAltName" (i.e., as a dNSName or IP address).
   If the Master Device has external information as to the expected
   identity or credentials of the proper Database (e.g., a certificate
   fingerprint), checks of the subjectAltName MAY be omitted.  Note that
   in order for the presented certificate to be valid at the client, the
   client must be able to validate the certificate.  In particular, the
   validation path of the certificate must end in one of the client's



Chen, et al.                 Standards Track                   [Page 83]
^L
RFC 7545                          PAWS                          May 2015


   trust anchors, even if that trust anchor is the Database's
   certificate.  A Master Device should allow for the fact that a
   Database can change its Certification Authorities (CAs) over time.

10.2.  Protection against Modification

   To prevent a PAWS response message from being modified en route,
   messages must be transmitted over an integrity-protected channel.
   Using HTTP over TLS, the channel will be protected by appropriate
   cipher suites.

10.3.  Protection against Eavesdropping

   Using HTTP over TLS, messages protected by appropriate cipher suites
   are also protected from eavesdropping or otherwise unrestricted
   reading by unauthorized parties en route.

10.4.  Client Authentication Considerations

   Although the Database can inform a device of available spectrum it
   can use, the Database cannot enforce that the Master Device uses only
   (or any of) those frequencies.  Indeed, a malicious device can
   operate without ever contacting a Database.  Note also that, whereas
   a malicious device may send fraudulent SPECTRUM_USE_NOTIFY
   (Section 4.5.5) messages, in the regulatory domains that have
   established rules, such notifications do not change the available-
   spectrum answers, so no harm can result from such messages.
   Consequently, client authentication is not required for the core PAWS
   (although it may be required by specific regulatory domains).

   Depending on a prior relationship between a Database and Master
   Device, the Database MAY require client authentication.  TLS provides
   client authentication, but there are some considerations:

   o  The Database must nominate acceptable CAs, and the Master Device
      must have a certificate rooted at one of those CAs.

   o  As indicated in Section 3.2 of "HTTP Over TLS" [RFC2818], the TLS
      client authentication procedure only determines that the device
      has a certificate chain rooted in an appropriate CA (or a self-
      signed certificate).  The Database would not know what the client
      identity ought to be, unless it has some external source of
      information.  Distribution and management of such information,
      including revocation lists, are outside the scope of this
      document.






Chen, et al.                 Standards Track                   [Page 84]
^L
RFC 7545                          PAWS                          May 2015


   o  Authentication schemes are secure only to the extent that secrets
      or certificates are kept secure.  When there are a vast number of
      deployed devices using PAWS, the possibility that device keys will
      not leak becomes small.  Implementations should consider how to
      manage the system in the eventuality that there is a leak.

11.  References

11.1.  Normative References

   [JSON-RPC]
              "JSON-RPC 2.0 Specification",
              <http://www.jsonrpc.org/specification>.

   [RFC2119]  Bradner, S., "Key words for use in RFCs to Indicate
              Requirement Levels", BCP 14, RFC 2119,
              DOI 10.17487/RFC2119, March 1997,
              <http://www.rfc-editor.org/info/rfc2119>.

   [RFC2818]  Rescorla, E., "HTTP Over TLS", RFC 2818,
              DOI 10.17487/RFC2818, May 2000,
              <http://www.rfc-editor.org/info/rfc2818>.

   [RFC3339]  Klyne, G. and C. Newman, "Date and Time on the Internet:
              Timestamps", RFC 3339, DOI 10.17487/RFC3339, July 2002,
              <http://www.rfc-editor.org/info/rfc3339>.

   [RFC5077]  Salowey, J., Zhou, H., Eronen, P., and H. Tschofenig,
              "Transport Layer Security (TLS) Session Resumption without
              Server-Side State", RFC 5077, DOI 10.17487/RFC5077,
              January 2008, <http://www.rfc-editor.org/info/rfc5077>.

   [RFC5226]  Narten, T. and H. Alvestrand, "Guidelines for Writing an
              IANA Considerations Section in RFCs", BCP 26, RFC 5226,
              DOI 10.17487/RFC5226, May 2008,
              <http://www.rfc-editor.org/info/rfc5226>.

   [RFC5234]  Crocker, D., Ed. and P. Overell, "Augmented BNF for Syntax
              Specifications: ABNF", STD 68, RFC 5234,
              DOI 10.17487/RFC5234, January 2008,
              <http://www.rfc-editor.org/info/rfc5234>.

   [RFC5246]  Dierks, T. and E. Rescorla, "The Transport Layer Security
              (TLS) Protocol Version 1.2", RFC 5246,
              DOI 10.17487/RFC5246, August 2008,
              <http://www.rfc-editor.org/info/rfc5246>.





Chen, et al.                 Standards Track                   [Page 85]
^L
RFC 7545                          PAWS                          May 2015


   [RFC5491]  Winterbottom, J., Thomson, M., and H. Tschofenig, "GEOPRIV
              Presence Information Data Format Location Object (PIDF-LO)
              Usage Clarification, Considerations, and Recommendations",
              RFC 5491, DOI 10.17487/RFC5491, March 2009,
              <http://www.rfc-editor.org/info/rfc5491>.

   [RFC6350]  Perreault, S., "vCard Format Specification", RFC 6350,
              DOI 10.17487/RFC6350, August 2011,
              <http://www.rfc-editor.org/info/rfc6350>.

   [RFC7095]  Kewisch, P., "jCard: The JSON Format for vCard", RFC 7095,
              DOI 10.17487/RFC7095, January 2014,
              <http://www.rfc-editor.org/info/rfc7095>.

   [RFC7159]  Bray, T., Ed., "The JavaScript Object Notation (JSON) Data
              Interchange Format", RFC 7159, DOI 10.17487/RFC7159, March
              2014, <http://www.rfc-editor.org/info/rfc7159>.

   [RFC7231]  Fielding, R., Ed. and J. Reschke, Ed., "Hypertext Transfer
              Protocol (HTTP/1.1): Semantics and Content", RFC 7231,
              DOI 10.17487/RFC7231, June 2014,
              <http://www.rfc-editor.org/info/rfc7231>.

   [RFC7525]  Sheffer, Y., Holz, R., and P. Saint-Andre,
              "Recommendations for Secure Use of Transport Layer
              Security (TLS) and Datagram Transport Layer Security
              (DTLS)", BCP 195, RFC 7525, DOI 10.17487/RFC7525, May
              2015, <http://www.rfc-editor.org/info/rfc7525>.

11.2.  Informative References

   [ETSI-EN-301-598]
              European Telecommunication Standards Institute (ETSI),
              "ETSI EN 301 598 (V1.1.1): White Space Devices (WSD);
              Wireless Access Systems operating in the 470 MHz to 790
              MHz TV broadcast band; Harmonized EN covering the
              essential requirements of article 3.2 of the R&TTE
              Directive", April 2014, <http://www.etsi.org/deliver/
              etsi_en/301500_301599/301598/01.01.01_60/
              en_301598v010101p.pdf>.

   [FCC-CFR47-15H]
              U. S. Government, "Electronic Code of Federal Regulations,
              Title 47, Part 15, Subpart H: Television Band Devices",
              December 2010, <http://www.ecfr.gov/cgi-bin/
              text-idx?rgn=div6&view=text&node=47:1.0.1.1.16.8>.





Chen, et al.                 Standards Track                   [Page 86]
^L
RFC 7545                          PAWS                          May 2015


   [FCC-Review-2012-10]
              Federal Communications Commission, "Administration Topics
              Review", October 2012,
              <http://transition.fcc.gov/bureaus/oet/ea/presentations/
              files/oct12/2b-TCB-Admin-Issues-Oct-2012-GT.pdf>.

   [ISO3166-1]
              "Country Codes",
              <http://www.iso.org/iso/country_codes.htm>.

   [RFC6953]  Mancuso, A., Ed., Probasco, S., and B. Patil, "Protocol to
              Access White-Space (PAWS) Databases: Use Cases and
              Requirements", RFC 6953, DOI 10.17487/RFC6953, May 2013,
              <http://www.rfc-editor.org/info/rfc6953>.

   [RFC7459]  Thomson, M. and J. Winterbottom, "Representation of
              Uncertainty and Confidence in the Presence Information
              Data Format Location Object (PIDF-LO)", RFC 7459,
              DOI 10.17487/RFC7459, February 2015,
              <http://www.rfc-editor.org/info/rfc7459>.

   [WGS-84]   National Imagery and Mapping Agency, "Department of
              Defense World Geodetic System 1984, Its Definition and
              Relationships with Local Geodetic Systems", NIMA TR8350.2,
              Third Edition, Amendment 1, January 2000,
              <http://earth-info.nga.mil/GandG/publications/tr8350.2/
              tr8350_2.html>.
























Chen, et al.                 Standards Track                   [Page 87]
^L
RFC 7545                          PAWS                          May 2015


Appendix A.  Database Listing Server Support

   As discussed in "Database Discovery" (Section 4.1), some regulatory
   domains support the preconfiguration of devices with the URI of a
   listing server, to which devices can connect to obtain a list of
   Databases certified by the regulatory domain.  Regulatory domains may
   require the device to periodically contact the Database Listing
   Server to validate and/or update its list of certified Databases.  If
   the device is unable to validate its list of certified Databases
   within the required period, regulatory rules may require the device
   to treat this inability as equivalent to the device having no
   available spectrum.

   A sample JSON response from a Database Listing Server might be
   represented as follows:

   {
     "lastUpdateTime": "2014-06-28T10:00:00Z",
     "maxRefreshMinutes": 1440
     "dbs": [
       {
         "name": "Some Operator",
         "uris": [
           {
             "uri": "https://example.some.operator.com",
             "protocol": "paws"
           },
           ...
         ]
       },
       ...
     ]
   }

   The parameters in this sample message are:

   lastUpdateTime:  The time at which the database entries were last
      updated.

   maxRefreshMinutes:  The maximum interval, expressed in minutes, that
      is allowed between device requests to the Database Listing Server.

   dbs:  A list of entries for certified Databases, each containing the
      following

      name:  The name of the database operator.





Chen, et al.                 Standards Track                   [Page 88]
^L
RFC 7545                          PAWS                          May 2015


      uris:  One or more URIs for each Database, allowing a Database to
         support more than one protocol.

      uri, protocol:  Each protocol supported by a certified Database is
         associated with a separate URI (PAWS protocol URI shown).

Acknowledgments

   The authors gratefully acknowledge the contributions of: Gabor Bajko,
   Ray Bellis, Teco Boot, Nancy Bravin, Rex Buddenberg, Gerald
   Chouinard, Stephen Farrell, Michael Fitch, Joel M. Halpern, Daniel
   Harasty, Michael Head, Jussi Kahtava, Kalle Kulsmanen, Warren Kumari,
   Paul Lambert, Andy Lee, Anthony Mancuso, Basavaraj Patil, Scott
   Probasco, Brian Rosen, Andy Sago, Peter Stanforth, John Stine, and
   Juan Carlos Zuniga.

Contributors

   This document draws heavily from draft-das-paws-protocol and
   draft-wei-paws-framework.  The editor would like to specifically call
   out and thank the contributing authors of those two documents.

      Donald Joslyn
      Spectrum Bridge Inc.
      1064 Greenwood Blvd.
      Lake Mary, FL  32746
      United States
      EMail: d.joslyn@spectrumbridge.com


      Xinpeng Wei
      Huawei
      Phone: +86 13436822355
      EMail: weixinpeng@huawei.com

















Chen, et al.                 Standards Track                   [Page 89]
^L
RFC 7545                          PAWS                          May 2015


Authors' Addresses

   Vincent Chen (editor)
   Google
   1600 Amphitheatre Parkway
   Mountain View, CA  94043
   United States

   EMail: vchen@google.com


   Subir Das
   Applied Communication Sciences
   150 Mount Airy Road
   Basking Ridge, NJ  07920
   United States

   EMail: sdas@appcomsci.com


   Lei Zhu
   Huawei

   Phone: +86 13910157020
   EMail: lei.zhu@huawei.com


   John Malyar
   iconectiv (formerly Telcordia Interconnection Solutions)
   444 Hoes Lane/RRC 4E1106
   Piscataway, NJ  08854
   United States

   EMail: jmalyar@iconectiv.com


   Peter J. McCann
   Huawei
   400 Crossing Blvd, 2nd Floor
   Bridgewater, NJ  08807
   United States

   Phone: +1 908 541 3563
   EMail: peter.mccann@huawei.com







Chen, et al.                 Standards Track                   [Page 90]
^L