-
Notifications
You must be signed in to change notification settings - Fork 2
/
draft-ietf-dots-signal-channel-04.txt
2968 lines (2088 loc) · 109 KB
/
draft-ietf-dots-signal-channel-04.txt
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
DOTS T. Reddy
Internet-Draft McAfee
Intended status: Standards Track M. Boucadair
Expires: April 5, 2018 Orange
P. Patil
Cisco
A. Mortensen
Arbor Networks, Inc.
N. Teague
Verisign, Inc.
October 2, 2017
Distributed Denial-of-Service Open Threat Signaling (DOTS) Signal
Channel
draft-ietf-dots-signal-channel-04
Abstract
This document specifies the DOTS signal channel, a protocol for
signaling the need for protection against Distributed Denial-of-
Service (DDoS) attacks to a server capable of enabling network
traffic mitigation on behalf of the requesting client. A companion
document defines the DOTS data channel, a separate reliable
communication layer for DOTS management and configuration.
Status of This Memo
This Internet-Draft is submitted in full conformance with the
provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering
Task Force (IETF). Note that other groups may also distribute
working documents as Internet-Drafts. The list of current Internet-
Drafts is at https://datatracker.ietf.org/drafts/current/.
Internet-Drafts are draft documents valid for a maximum of six months
and may be updated, replaced, or obsoleted by other documents at any
time. It is inappropriate to use Internet-Drafts as reference
material or to cite them other than as "work in progress."
This Internet-Draft will expire on April 5, 2018.
Copyright Notice
Copyright (c) 2017 IETF Trust and the persons identified as the
document authors. All rights reserved.
Reddy, et al. Expires April 5, 2018 [Page 1]
Internet-Draft DOTS Signal Channel October 2017
This document is subject to BCP 78 and the IETF Trust's Legal
Provisions Relating to IETF Documents
(https://trustee.ietf.org/license-info) in effect on the date of
publication of this document. Please review these documents
carefully, as they describe your rights and restrictions with respect
to this document. Code Components extracted from this document must
include Simplified BSD License text as described in Section 4.e of
the Trust Legal Provisions and are provided without warranty as
described in the Simplified BSD License.
Table of Contents
1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 3
2. Notational Conventions and Terminology . . . . . . . . . . . 3
3. Solution Overview . . . . . . . . . . . . . . . . . . . . . . 4
4. Happy Eyeballs for DOTS Signal Channel . . . . . . . . . . . 5
5. DOTS Signal Channel . . . . . . . . . . . . . . . . . . . . . 7
5.1. Overview . . . . . . . . . . . . . . . . . . . . . . . . 7
5.2. DOTS Signal YANG Module . . . . . . . . . . . . . . . . . 8
5.2.1. Mitigation Request YANG Module Tree Structure . . . . 8
5.2.2. Mitigation Request YANG Module . . . . . . . . . . . 8
5.2.3. Session Configuration YANG Module Tree Structure . . 10
5.2.4. Session Configuration YANG Module . . . . . . . . . . 11
5.3. Mitigation Request . . . . . . . . . . . . . . . . . . . 12
5.3.1. Requesting mitigation . . . . . . . . . . . . . . . . 13
5.3.2. Withdraw a DOTS Signal . . . . . . . . . . . . . . . 19
5.3.3. Retrieving a DOTS Signal . . . . . . . . . . . . . . 20
5.3.4. Efficacy Update from DOTS Client . . . . . . . . . . 25
5.4. DOTS Signal Channel Session Configuration . . . . . . . . 27
5.4.1. Discover Configuration Parameters . . . . . . . . . . 28
5.4.2. Convey DOTS Signal Channel Session Configuration . . 30
5.4.3. Delete DOTS Signal Channel Session Configuration . . 33
5.4.4. Retrieving DOTS Signal Channel Session Configuration 34
5.5. Redirected Signaling . . . . . . . . . . . . . . . . . . 34
5.6. Heartbeat Mechanism . . . . . . . . . . . . . . . . . . . 36
6. Mapping parameters to CBOR . . . . . . . . . . . . . . . . . 36
7. (D)TLS Protocol Profile and Performance considerations . . . 37
7.1. MTU and Fragmentation Issues . . . . . . . . . . . . . . 38
8. (D)TLS 1.3 considerations . . . . . . . . . . . . . . . . . . 39
9. Mutual Authentication of DOTS Agents & Authorization of DOTS
Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
10. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 42
10.1. CoAP Response Code . . . . . . . . . . . . . . . . . . . 42
10.2. DOTS signal channel CBOR Mappings Registry . . . . . . . 42
10.2.1. Registration Template . . . . . . . . . . . . . . . 42
10.2.2. Initial Registry Contents . . . . . . . . . . . . . 43
11. Implementation Status . . . . . . . . . . . . . . . . . . . . 46
11.1. nttdots . . . . . . . . . . . . . . . . . . . . . . . . 47
Reddy, et al. Expires April 5, 2018 [Page 2]
Internet-Draft DOTS Signal Channel October 2017
12. Security Considerations . . . . . . . . . . . . . . . . . . . 47
13. Contributors . . . . . . . . . . . . . . . . . . . . . . . . 48
14. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 48
15. References . . . . . . . . . . . . . . . . . . . . . . . . . 49
15.1. Normative References . . . . . . . . . . . . . . . . . . 49
15.2. Informative References . . . . . . . . . . . . . . . . . 50
Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 52
1. Introduction
A distributed denial-of-service (DDoS) attack is an attempt to make
machines or network resources unavailable to their intended users.
In most cases, sufficient scale can be achieved by compromising
enough end-hosts and using those infected hosts to perpetrate and
amplify the attack. The victim in this attack can be an application
server, a host, a router, a firewall, or an entire network.
In many cases, it may not be possible for an network administrators
to determine the causes of an attack, but instead just realize that
certain resources seem to be under attack. This document defines a
lightweight protocol permitting a DOTS client to request mitigation
from one or more DOTS servers for protection against detected,
suspected, or anticipated attacks . This protocol enables cooperation
between DOTS agents to permit a highly-automated network defense that
is robust, reliable and secure.
The requirements for DOTS signal channel protocol are obtained from
[I-D.ietf-dots-requirements].
This document satisfies all the use cases discussed in
[I-D.ietf-dots-use-cases] except the Third-party DOTS notifications
use case in Section 3.2.3 of [I-D.ietf-dots-use-cases] which is an
optional feature and not a core use case. Third-party DOTS
notifications are not part of the DOTS requirements document.
Moreover, the DOTS architecture does not assess whether that use case
may have an impact on the architecture itself and/or the DOTS trust
model.
This is a companion document to the DOTS data channel specification
[I-D.ietf-dots-data-channel] that defines a configuration and bulk
data exchange mechanism supporting the DOTS signal channel.
2. Notational Conventions and Terminology
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
"OPTIONAL" in this document are to be interpreted as described in
[RFC2119].
Reddy, et al. Expires April 5, 2018 [Page 3]
Internet-Draft DOTS Signal Channel October 2017
(D)TLS: For brevity this term is used for statements that apply to
both Transport Layer Security [RFC5246] and Datagram Transport Layer
Security [RFC6347]. Specific terms will be used for any statement
that applies to either protocol alone.
The reader should be familiar with the terms defined in
[I-D.ietf-dots-architecture].
3. Solution Overview
Network applications have finite resources like CPU cycles, number of
processes or threads they can create and use, maximum number of
simultaneous connections it can handle, limited resources of the
control plane, etc. When processing network traffic, such
applications are supposed to use these resources to offer the
intended task in the most efficient fashion. However, an attacker
may be able to prevent an application from performing its intended
task by causing the application to exhaust the finite supply of a
specific resource.
TCP DDoS SYN-flood, for example, is a memory-exhaustion attack on the
victim and ACK-flood is a CPU exhaustion attack on the victim
([RFC4987]). Attacks on the link are carried out by sending enough
traffic such that the link becomes excessively congested, and
legitimate traffic suffers high packet loss. Stateful firewalls can
also be attacked by sending traffic that causes the firewall to hold
excessive state. The firewall then runs out of memory, and can no
longer instantiate the state required to pass legitimate flows.
Other possible DDoS attacks are discussed in [RFC4732].
In each of the cases described above, the possible arrangements
between the DOTS client and DOTS server to mitigate the attack are
discussed in [I-D.ietf-dots-use-cases]. An example of network
diagram showing a deployment of these elements is shown in Figure 1.
Architectural relationships between involved DOTS agents is explained
in [I-D.ietf-dots-architecture]. In this example, the DOTS server is
operating on the access network.
Network
Resource CPE router Access network __________
+-----------+ +--------------+ +-------------+ / \
| |____| |_______| |___ | Internet |
|DOTS client| | DOTS gateway | | DOTS server | | |
| | | | | | | |
+-----------+ +--------------+ +-------------+ \__________/
Figure 1: Sample DOTS Deployment (1)
Reddy, et al. Expires April 5, 2018 [Page 4]
Internet-Draft DOTS Signal Channel October 2017
The DOTS server can also be running on the Internet, as depicted in
Figure 2.
Network DDoS mitigation
Resource CPE router __________ service
+-----------+ +-------------+ / \ +-------------+
| |____| |_______| |___ | |
|DOTS client| |DOTS gateway | | Internet | | DOTS server |
| | | | | | | |
+-----------+ +-------------+ \__________/ +-------------+
Figure 2: Sample DOTS Deployment (2)
In typical deployments, the DOTS client belongs to a different
administrative domain than the DOTS server. For example, the DOTS
client is a firewall protecting services owned and operated by an
domain, while the DOTS server is owned and operated by a different
domain providing DDoS mitigation services. That domain providing
DDoS mitigation service might, or might not, also provide Internet
access service to the website operator.
The DOTS server may (not) be co-located with the DOTS mitigator. In
typical deployments, the DOTS server belongs to the same
administrative domain as the mitigator.
The DOTS client can communicate directly with the DOTS server or
indirectly via a DOTS gateway.
This document focuses on the DOTS signal channel.
4. Happy Eyeballs for DOTS Signal Channel
DOTS signaling can happen with DTLS [RFC6347] over UDP and TLS
[RFC5246] over TCP. A DOTS client can use DNS to determine the IP
address(es) of a DOTS server or a DOTS client may be provided with
the list of DOTS server IP addresses. The DOTS client MUST know a
DOTS server's domain name; hard-coding the domain name of the DOTS
server into software is NOT RECOMMENDED in case the domain name is
not valid or needs to change for legal or other reasons. The DOTS
client performs A and/or AAAA record lookup of the domain name and
the result will be a list of IP addresses, each of which can be used
to contact the DOTS server using UDP and TCP.
If an IPv4 path to reach a DOTS server is found, but the DOTS
server's IPv6 path is not working, a dual-stack DOTS client can
experience a significant connection delay compared to an IPv4-only
DOTS client. The other problem is that if a middlebox between the
DOTS client and DOTS server is configured to block UDP, the DOTS
Reddy, et al. Expires April 5, 2018 [Page 5]
Internet-Draft DOTS Signal Channel October 2017
client will fail to establish a DTLS session with the DOTS server and
will, then, have to fall back to TLS over TCP incurring significant
connection delays. [I-D.ietf-dots-requirements] discusses that DOTS
client and server will have to support both connectionless and
connection-oriented protocols.
To overcome these connection setup problems, the DOTS client can try
connecting to the DOTS server using both IPv6 and IPv4, and try both
DTLS over UDP and TLS over TCP in a fashion similar to the Happy
Eyeballs mechanism [RFC6555]. These connection attempts are
performed by the DOTS client when its initializes, and the client
uses that information for its subsequent alert to the DOTS server.
In order of preference (most preferred first), it is UDP over IPv6,
UDP over IPv4, TCP over IPv6, and finally TCP over IPv4, which
adheres to address preference order [RFC6724] and the DOTS preference
that UDP be used over TCP (to avoid TCP's head of line blocking).
DOTS client DOTS server
| |
|--DTLS ClientHello, IPv6 ---->X |
|--TCP SYN, IPv6-------------->X |
|--DTLS ClientHello, IPv4 ---->X |
|--TCP SYN, IPv4----------------------------------------->|
|--DTLS ClientHello, IPv6 ---->X |
|--TCP SYN, IPv6-------------->X |
|<-TCP SYNACK---------------------------------------------|
|--DTLS ClientHello, IPv4 ---->X |
|--TCP ACK----------------------------------------------->|
|<------------Establish TLS Session---------------------->|
|----------------DOTS signal----------------------------->|
| |
Figure 3: Happy Eyeballs
In reference to Figure 3, the DOTS client sends two TCP SYNs and two
DTLS ClientHello messages at the same time over IPv6 and IPv4. In
this example, it is assumed that the IPv6 path is broken and UDP is
dropped by a middle box but has little impact to the DOTS client
because there is no long delay before using IPv4 and TCP. The DOTS
client repeats the mechanism to discover if DOTS signaling with DTLS
over UDP becomes available from the DOTS server, so the DOTS client
can migrate the DOTS signal channel from TCP to UDP, but such probing
SHOULD NOT be done more frequently than every 24 hours and MUST NOT
be done more frequently than every 5 minutes.
Reddy, et al. Expires April 5, 2018 [Page 6]
Internet-Draft DOTS Signal Channel October 2017
5. DOTS Signal Channel
5.1. Overview
The DOTS signal channel is built on top of the Constrained
Application Protocol (CoAP) [RFC7252], a lightweight protocol
originally designed for constrained devices and networks. CoAP's
expectation of packet loss, support for asynchronous non-confirmable
messaging, congestion control, small message overhead limiting the
need for fragmentation, use of minimal resources, and support for
(D)TLS make it a good foundation on which to build the DOTS signaling
mechanism.
The DOTS signal channel is layered on existing standards (Figure 4).
TBD: The default port number for DOTS signal channel is 5684
(Section 12.7 of [RFC7252] and Section 10.4 of
[I-D.ietf-core-coap-tcp-tls]), for both UDP and TCP.
+--------------+
| DOTS |
+--------------+
| CoAP |
+--------------+
| TLS | DTLS |
+--------------+
| TCP | UDP |
+--------------+
| IP |
+--------------+
Figure 4: Abstract Layering of DOTS signal channel over CoAP over
(D)TLS
The signal channel is initiated by the DOTS client. Once the signal
channel is established, the DOTS agents periodically send heartbeats
to keep the channel active. At any time, the DOTS client may send a
mitigation request message to the DOTS server over the active
channel. While mitigation is active, the DOTS server periodically
sends status messages to the client, including basic mitigation
feedback details. Mitigation remains active until the DOTS client
explicitly terminates mitigation, or the mitigation lifetime expires.
Messages exchanged between DOTS client and server are serialized
using Concise Binary Object Representation (CBOR) [RFC7049], CBOR is
a binary encoding designed for small code and message size. CBOR
encoded payloads are used to convey signal channel specific payload
messages that convey request parameters and response information such
Reddy, et al. Expires April 5, 2018 [Page 7]
Internet-Draft DOTS Signal Channel October 2017
as errors. This specification uses the encoding rules defined in
[I-D.ietf-core-yang-cbor] for representing mitigation scope and DOTS
signal channel session configuration data defined using YANG
(Section 5.2) as CBOR data.
DOTS agents MUST support GET, PUT, and DELETE CoAP methods. The
payload included in CoAP responses with 2.xx and 3.xx Response Codes
MUST be of content type "application/cbor" (Section 5.5.1 of
[RFC7252]). CoAP responses with 4.xx and 5.xx error Response Codes
MUST include a diagnostic payload (Section 5.5.2 of [RFC7252]). The
Diagnostic Payload may contain additional information to aid
troubleshooting.
5.2. DOTS Signal YANG Module
This document defines a YANG [RFC6020] module for mitigation scope
and DOTS signal channel session configuration data.
5.2.1. Mitigation Request YANG Module Tree Structure
This document defines the YANG module "ietf-dots-signal", which has
the following tree structure:
module: ietf-dots-signal
+--rw mitigation-scope
+--rw scope* [mitigation-id]
+--rw mitigation-id int32
+--rw target-ip* inet:ip-address
+--rw target-prefix* inet:ip-prefix
+--rw target-port-range* [lower-port upper-port]
| +--rw lower-port inet:port-number
| +--rw upper-port inet:port-number
+--rw target-protocol* uint8
+--rw fqdn* inet:domain-name
+--rw uri* inet:uri
+--rw alias-name* string
+--rw lifetime? int32
5.2.2. Mitigation Request YANG Module
<CODE BEGINS> file "[email protected]"
module ietf-dots-signal {
namespace "urn:ietf:params:xml:ns:yang:ietf-dots-signal";
prefix "signal";
import ietf-inet-types {
prefix "inet";
}
Reddy, et al. Expires April 5, 2018 [Page 8]
Internet-Draft DOTS Signal Channel October 2017
organization "McAfee, Inc.";
contact "Konda, Tirumaleswar Reddy <[email protected]>";
description
"This module contains YANG definition for DOTS
signal sent by the DOTS client to the DOTS server.";
revision 2017-08-03 {
reference
"https://tools.ietf.org/html/draft-reddy-dots-signal-channel";
}
container mitigation-scope {
description
"Top level container for a mitigation request.";
list scope {
key mitigation-id;
description "Identifier for the mitigation request.";
leaf mitigation-id {
type int32;
description "Mitigation request identifier.";
}
leaf-list target-ip {
type inet:ip-address;
description
"IPv4 or IPv6 address identifyting the target.";
}
leaf-list target-prefix {
type inet:ip-prefix;
description
"IPv4 or IPv6 prefix identifyting the target.";
}
list target-port-range {
key "lower-port upper-port";
description "Port range. When only lower-port is present,
it represents a single port.";
leaf lower-port {
type inet:port-number;
mandatory true;
description "Lower port number.";
}
leaf upper-port {
type inet:port-number;
Reddy, et al. Expires April 5, 2018 [Page 9]
Internet-Draft DOTS Signal Channel October 2017
must ". >= ../lower-port" {
error-message
"The upper port number must be greater than or
equal to lower port number.";
}
description "Upper port number.";
}
}
leaf-list target-protocol {
type uint8;
description "Identifies the target protocol number.";
}
leaf-list fqdn {
type inet:domain-name;
description "FQDN";
}
leaf-list uri {
type inet:uri;
description "URI";
}
leaf-list alias-name {
type string;
description "alias name";
}
leaf lifetime {
type int32;
description
"Indicates the lifetime of the mitigation request.";
}
}
}
}
<CODE ENDS>
5.2.3. Session Configuration YANG Module Tree Structure
This document defines the YANG module "ietf-dots-signal-config",
which has the following structure:
Reddy, et al. Expires April 5, 2018 [Page 10]
Internet-Draft DOTS Signal Channel October 2017
module: ietf-dots-signal-config
+--rw signal-config
+--rw session-id? int32
+--rw heartbeat-interval? int16
+--rw missing-hb-allowed? int16
+--rw max-retransmit? int16
+--rw ack-timeout? int16
+--rw ack-random-factor? decimal64
+--rw trigger-mitigation? boolean
5.2.4. Session Configuration YANG Module
<CODE BEGINS> file "[email protected]"
module ietf-dots-signal-config {
namespace "urn:ietf:params:xml:ns:yang:ietf-dots-signal-config";
prefix "config";
organization "McAfee, Inc.";
contact "Konda, Tirumaleswar Reddy <[email protected]>";
description
"This module contains YANG definition for DOTS
signal channel session configuration.";
revision 2016-11-28 {
reference
"https://tools.ietf.org/html/draft-reddy-dots-signal-channel";
}
container signal-config {
description "Top level container for DOTS signal channel session
configuration.";
leaf session-id {
type int32;
description "An identifier for the DOTS signal channel
session configuration data.";
}
leaf heartbeat-interval {
type int16;
description
"DOTS agents regularly send heartbeats to each other
after mutual authentication in order to keep
the DOTS signal channel open.";
}
Reddy, et al. Expires April 5, 2018 [Page 11]
Internet-Draft DOTS Signal Channel October 2017
leaf missing-hb-allowed {
type int16;
description
"Maximum number of missing heartbeats allowed";
}
leaf max-retransmit {
type int16;
description
"Maximum number of retransmissions of a
Confirmable message.";
}
leaf ack-timeout {
type int16;
description
"Initial retransmission timeout value.";
}
leaf ack-random-factor {
type decimal64 {
fraction-digits 2;
}
description
"Random factor used to influence the timing of
retransmissions";
}
leaf trigger-mitigation {
type boolean;
default true;
description
"If false, then mitigation is triggered
only when the DOTS server channel session is lost";
}
}
}
<CODE ENDS>
5.3. Mitigation Request
The following methods are used to request or withdraw mitigation
requests:
PUT: DOTS clients use the PUT method to request mitigation
(Section 5.3.1). During active mitigation, DOTS clients may use
PUT requests to convey mitigation efficacy updates to the DOTS
server (Section 5.3.4).
Reddy, et al. Expires April 5, 2018 [Page 12]
Internet-Draft DOTS Signal Channel October 2017
DELETE: DOTS clients use the DELETE method to withdraw a request for
mitigation from the DOTS server (Section 5.3.2).
GET: DOTS clients may use the GET method to subscribe to DOTS server
status messages, or to retrieve the list of existing mitigations
(Section 5.3.3).
Mitigation request and response messages are marked as Non-
confirmable messages. DOTS agents should follow the data
transmission guidelines discussed in Section 3.1.3 of [RFC8085] and
control transmission behavior by not sending on average more than one
UDP datagram per RTT to the peer DOTS agent. Requests marked by the
DOTS client as Non-confirmable messages are sent at regular intervals
until a response is received from the DOTS server and if the DOTS
client cannot maintain a RTT estimate then it SHOULD NOT send more
than one Non-confirmable request every 3 seconds, and SHOULD use an
even less aggressive rate when possible (case 2 in Section 3.1.3 of
[RFC8085]).
5.3.1. Requesting mitigation
When a DOTS client requires mitigation for any reason, the DOTS
client uses CoAP PUT method to send a mitigation request to the DOTS
server (Figure 5, illustrated in JSON diagnostic notation). The DOTS
server can enable mitigation on behalf of the DOTS client by
communicating the DOTS client's request to the mitigator and relaying
selected mitigator feedback to the requesting DOTS client.
Reddy, et al. Expires April 5, 2018 [Page 13]
Internet-Draft DOTS Signal Channel October 2017
Header: PUT (Code=0.03)
Uri-Host: "host"
Uri-Path: "version"
Uri-Path: "dots-signal"
Uri-Path: "signal"
Content-Type: "application/cbor"
{
"mitigation-scope": {
"scope": [
{
"mitigation-id": integer,
"target-ip": [
"string"
],
"target-prefix": [
"string"
],
"target-port-range": [
{
"lower-port": integer,
"upper-port": integer
}
],
"target-protocol": [
integer
],
"fqdn": [
"string"
],
"uri": [
"string"
],
"alias-name": [
"string"
],
"lifetime": integer
}
]
}
}
Figure 5: PUT to convey DOTS signals
The parameters are described below.
mitigation-id: Identifier for the mitigation request represented
using an integer. This identifier MUST be unique for each
mitigation request bound to the DOTS client, i.e., the mitigation-
Reddy, et al. Expires April 5, 2018 [Page 14]
Internet-Draft DOTS Signal Channel October 2017
id parameter value in the mitigation request needs to be unique
relative to the mitigation-id parameter values of active
mitigation requests conveyed from the DOTS client to the DOTS
server. This identifier MUST be generated by the DOTS client.
This document does not make any assumption about how this
identifier is generated. This is a mandatory attribute.
target-ip: A list of IP addresses under attack. This is an optional
attribute.
target-prefix: A list of prefixes under attack. Prefixes are
represented using CIDR notation [RFC4632]. This is an optional
attribute.
target-port-range: A list of ports under attack. The port range,
lower-port for lower port number and upper-port for upper port
number. When only lower-port is present, it represents a single
port. For TCP, UDP, SCTP, or DCCP: the range of ports (e.g.,
1024-65535). This is an optional attribute.
target-protocol: A list of protocols under attack. Values are taken
from the IANA protocol registry [proto_numbers]. The value 0 has
a special meaning for 'all protocols'. This is an optional
attribute.
fqdn: A list of Fully Qualified Domain Names. Fully Qualified
Domain Name (FQDN) is the full name of a system, rather than just
its hostname. For example, "venera" is a hostname, and
"venera.isi.edu" is an FQDN. This is an optional attribute.
uri: A list of Uniform Resource Identifiers (URI). This is an
optional attribute.
alias-name: A list of aliases. Aliases can be created using the
DOTS data channel (Section 3.1.1 of [I-D.ietf-dots-data-channel])
or direct configuration, or other means and then used in
subsequent signal channel exchanges to refer more efficiently to
the resources under attack. This is an optional attribute.
lifetime: Lifetime of the mitigation request in seconds. Upon the
expiry of this lifetime, and if the request is not refreshed, the
mitigation request is removed. The request can be refreshed by
sending the same request again. The default lifetime of the
mitigation request is 3600 seconds (60 minutes) -- this value was
chosen to be long enough so that refreshing is not typically a
burden on the DOTS client, while expiring the request where the
client has unexpectedly quit in a timely manner. A lifetime of
negative one (-1) indicates indefinite lifetime for the mitigation
Reddy, et al. Expires April 5, 2018 [Page 15]
Internet-Draft DOTS Signal Channel October 2017
request. The server MUST always indicate the actual lifetime in
the response and the remaining lifetime in status messages sent to
the client. This is an optional attribute in the request.
The CBOR key values for the parameters are defined in Section 6. The
IANA Considerations section defines how the CBOR key values can be
allocated to standards bodies and vendors. FQDN and URI mitigation
scopes may be thought of as a form of scope alias, in which the
addresses to which the domain name or URI resolve represent the full
scope of the mitigation. In the PUT request at least one of the
attributes target-ip or target-prefix or fqdn or uri or alias-name
MUST be present. DOTS agents can safely ignore Vendor-Specific
parameters they don't understand. The relative order of two
mitigation requests from a DOTS client is determined by comparing
their respective mitigation-id values. If two mitigation requests
have overlapping mitigation scopes the mitigation request with higher
numeric mitigation-id value will override the mitigation request with
a lower numeric mitigation-id value. Two mitigation-ids are
overlapping if there is a common IP, IP Prefix, FQDN, URI or alias-
name. The overlapped lower numeric mitigation-id is automatically
deleted and no longer available at the DOTS server. The Uri-Path
option carries a major and minor version nomenclature to manage
versioning and DOTS signal channel in this specification uses v1
major version.
In both DOTS signal and data channel sessions, the DOTS client MUST
authenticate itself to the DOTS server (Section 9). The DOTS server
can use the algorithm discussed in Section 7 of [RFC7589] to derive
the DOTS client identity or username from the client certificate.
The DOTS server couples the DOTS signal and data channel sessions
using the DOTS client identity, so the DOTS server can validate
whether the aliases conveyed in the mitigation request were indeed
created by the same DOTS client using the DOTS data channel session.
If the aliases were not created by the DOTS client then the DOTS
server returns 4.00 (Bad Request) in the response. The DOTS server
couples the DOTS signal channel sessions using the DOTS client
identity, and the DOTS server uses mitigation-id parameter value to
detect duplicate mitigation requests. If the mitigation request
contains both alias-name and other parameters identifying the target
resources (such as, target-ip, target-prefix, target-port-range,
fqdn, or uri) then the DOTS server appends the parameter values in
alias-name with the corresponding parameter values in target-ip,
target-prefix, target-port-range, fqdn, or uri.
Figure 6 shows an PUT request example to signal that ports 80, 8080,
and 443 on the servers 2001:db8:6401::1 and 2001:db8:6401::2 are
being attacked (illustrated in JSON diagnostic notation).
Reddy, et al. Expires April 5, 2018 [Page 16]
Internet-Draft DOTS Signal Channel October 2017
Header: PUT (Code=0.03)
Uri-Host: "www.example.com"
Uri-Path: "v1"
Uri-Path: "dots-signal"
Uri-Path: "signal"
Content-Format: "application/cbor"
{
"mitigation-scope": {
"scope": [
{
"mitigation-id": 12332,
"target-ip": [
"2001:db8:6401::1",
"2001:db8:6401::2"
],
"target-port-range": [
{
"lower-port": 80
},
{
"lower-port": 443
},
{
"lower-port": 8080
}
],
"target-protocol": [
6
]
}
]
}
}
The CBOR encoding format is shown below:
a1 # map(1)
01 # unsigned(1)
a1 # map(1)
02 # unsigned(2)
81 # array(1)
a4 # map(4)
03 # unsigned(3)
19 302c # unsigned(12332)
04 # unsigned(4)
82 # array(2)
70 # text(16)
323030313A6462383A363430313A3A31 # "2001:db8:6401::1"
Reddy, et al. Expires April 5, 2018 [Page 17]
Internet-Draft DOTS Signal Channel October 2017
70 # text(16)
323030313A6462383A363430313A3A32 # "2001:db8:6401::2"
05 # unsigned(5)
83 # array(3)
a1 # map(1)
06 # unsigned(6)
18 50 # unsigned(80)
a1 # map(1)
06 # unsigned(6)
19 01bb # unsigned(443)
a1 # map(1)
06 # unsigned(6)
19 1f90 # unsigned(8080)
08 # unsigned(8)
81 # array(1)
06 # unsigned(6)
Figure 6: PUT for DOTS signal
The DOTS server indicates the result of processing the PUT request
using CoAP response codes. CoAP 2.xx codes are success. CoAP 4.xx
codes are some sort of invalid requests. Figure 7 shows an PUT
response for CoAP 2.xx response codes.
{
"mitigation-scope": {
"scope": [
{
"mitigation-id": integer,
"lifetime": integer
}
]
}
}
Figure 7: 2.xx response body
COAP 5.xx codes are returned if the DOTS server has erred or is
currently unavailable to provide mitigation in response to the
mitigation request from the DOTS client. If the DOTS server does not
find the mitigation-id parameter value conveyed in the PUT request in
its configuration data then the server MAY accept the mitigation