idnits 2.17.1 draft-ietf-ippm-stamp-05.txt: Checking boilerplate required by RFC 5378 and the IETF Trust (see https://trustee.ietf.org/license-info): ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/1id-guidelines.txt: ---------------------------------------------------------------------------- No issues found here. Checking nits according to https://www.ietf.org/id-info/checklist : ---------------------------------------------------------------------------- No issues found here. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year -- The document date (November 28, 2018) is 1976 days in the past. Is this intentional? Checking references for intended status: Proposed Standard ---------------------------------------------------------------------------- (See RFCs 3967 and 4897 for information about using normative references to lower-maturity documents in RFCs) == Outdated reference: A later version (-04) exists of draft-ietf-ippm-port-twamp-test-03 -- Possible downref: Non-RFC (?) normative reference: ref. 'IEEE.1588.2008' == Outdated reference: A later version (-12) exists of draft-ietf-ippm-stamp-yang-02 Summary: 0 errors (**), 0 flaws (~~), 3 warnings (==), 2 comments (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Network Working Group G. Mirsky 3 Internet-Draft ZTE Corp. 4 Intended status: Standards Track G. Jun 5 Expires: June 1, 2019 ZTE Corporation 6 H. Nydell 7 Accedian Networks 8 R. Foote 9 Nokia 10 November 28, 2018 12 Simple Two-way Active Measurement Protocol 13 draft-ietf-ippm-stamp-05 15 Abstract 17 This document describes a Simple Two-way Active Measurement Protocol 18 which enables the measurement of both one-way and round-trip 19 performance metrics like delay, delay variation, and packet loss. 21 Status of This Memo 23 This Internet-Draft is submitted in full conformance with the 24 provisions of BCP 78 and BCP 79. 26 Internet-Drafts are working documents of the Internet Engineering 27 Task Force (IETF). Note that other groups may also distribute 28 working documents as Internet-Drafts. The list of current Internet- 29 Drafts is at https://datatracker.ietf.org/drafts/current/. 31 Internet-Drafts are draft documents valid for a maximum of six months 32 and may be updated, replaced, or obsoleted by other documents at any 33 time. It is inappropriate to use Internet-Drafts as reference 34 material or to cite them other than as "work in progress." 36 This Internet-Draft will expire on June 1, 2019. 38 Copyright Notice 40 Copyright (c) 2018 IETF Trust and the persons identified as the 41 document authors. All rights reserved. 43 This document is subject to BCP 78 and the IETF Trust's Legal 44 Provisions Relating to IETF Documents 45 (https://trustee.ietf.org/license-info) in effect on the date of 46 publication of this document. Please review these documents 47 carefully, as they describe your rights and restrictions with respect 48 to this document. Code Components extracted from this document must 49 include Simplified BSD License text as described in Section 4.e of 50 the Trust Legal Provisions and are provided without warranty as 51 described in the Simplified BSD License. 53 Table of Contents 55 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 56 2. Conventions used in this document . . . . . . . . . . . . . . 3 57 2.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3 58 2.2. Requirements Language . . . . . . . . . . . . . . . . . . 3 59 3. Softwarization of Performance Measurement . . . . . . . . . . 3 60 4. Theory of Operation . . . . . . . . . . . . . . . . . . . . . 4 61 4.1. Session-Sender Behavior and Packet Format . . . . . . . . 4 62 4.1.1. Session-Sender Packet Format in Unauthenticated Mode 4 63 4.1.2. Session-Sender Packet Format in Authenticated Mode . 7 64 4.2. Session-Reflector Behavior and Packet Format . . . . . . 7 65 4.2.1. Session-Reflector Packet Format in Unauthenticated 66 Mode . . . . . . . . . . . . . . . . . . . . . . . . 8 67 4.2.2. Session-Reflector Packet Format in Authenticated Mode 10 68 4.3. Integrity and Confidentiality Protection in STAMP . . . . 12 69 4.4. Interoperability with TWAMP Light . . . . . . . . . . . . 12 70 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 13 71 6. Security Considerations . . . . . . . . . . . . . . . . . . . 13 72 7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 13 73 8. References . . . . . . . . . . . . . . . . . . . . . . . . . 13 74 8.1. Normative References . . . . . . . . . . . . . . . . . . 13 75 8.2. Informative References . . . . . . . . . . . . . . . . . 14 76 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 14 78 1. Introduction 80 Development and deployment of Two-Way Active Measurement Protocol 81 (TWAMP) [RFC5357] and its extensions, e.g., [RFC6038] that defined 82 features such as Reflect Octets and Symmetrical Size for TWAMP 83 provided invaluable experience. Several independent implementations 84 exist, have been deployed and provide important operational 85 performance measurements. At the same time, there has been 86 noticeable interest in using a simpler mechanism for active 87 performance monitoring that can provide deterministic behavior and 88 inherit separation of control (vendor-specific configuration or 89 orchestration) and test functions. One of such is Performance 90 Measurement from IP Edge to Customer Equipment using TWAMP Light from 91 Broadband Forum ([BBF.TR-390]). This document defines active 92 performance measurement test protocol, Simple Two-way Active 93 Measurement Protocol (STAMP), that enables measurement of both one- 94 way and round-trip performance metrics like delay, delay variation, 95 and packet loss. 97 2. Conventions used in this document 99 2.1. Terminology 101 AES Advanced Encryption Standard 103 CBC Cipher Block Chaining 105 ECB Electronic Cookbook 107 KEK Key-encryption Key 109 STAMP - Simple Two-way Active Measurement Protocol 111 NTP - Network Time Protocol 113 PTP - Precision Time Protocol 115 HMAC Hashed Message Authentication Code 117 OWAMP One-Way Active Measurement Protocol 119 TWAMP Two-Way Active Measurement Protocol 121 2.2. Requirements Language 123 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 124 "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and 125 "OPTIONAL" in this document are to be interpreted as described in BCP 126 14 [RFC2119] [RFC8174] when, and only when, they appear in all 127 capitals, as shown here. 129 3. Softwarization of Performance Measurement 131 Figure 1 presents Simple Two-way Active Measurement Protocol (STAMP) 132 Session-Sender and Session-Reflector with a measurement session. The 133 configuration and management of the STAMP Session-Sender, Session- 134 Reflector and management of the STAMP sessions can be achieved 135 through various means. Command Line Interface, OSS/BSS using SNMP or 136 SDN using Netconf/YANG are but a few examples. 138 o----------------------------------------------------------o 139 | Configuration and | 140 | Management | 141 o----------------------------------------------------------o 142 || || 143 || || 144 || || 145 +----------------------+ +-------------------------+ 146 | STAMP Session-Sender | <--- STAMP---> | STAMP Session-Reflector | 147 +----------------------+ +-------------------------+ 149 Figure 1: STAMP Reference Model 151 4. Theory of Operation 153 STAMP Session-Sender transmits test packets toward STAMP Session- 154 Reflector. STAMP Session-Reflector receives Session-Sender's packet 155 and acts according to the configuration and optional control 156 information communicated in the Session-Sender's test packet. STAMP 157 defines two different test packet formats, one for packets 158 transmitted by the STAMP-Session-Sender and one for packets 159 transmitted by the STAMP-Session-Reflector. STAMP supports two 160 modes: unauthenticated and authenticated. Unauthenticated STAMP test 161 packets are compatible on the wire with unauthenticated TWAMP-Test 162 [RFC5357] packet formats. 164 By default, STAMP uses symmetrical packets, i.e., size of the packet 165 transmitted by Session-Reflector equals the size of the packet 166 received by the Session-Reflector. 168 4.1. Session-Sender Behavior and Packet Format 170 4.1.1. Session-Sender Packet Format in Unauthenticated Mode 172 Because STAMP supports symmetrical test packets, STAMP Session-Sender 173 packet has a minimum size of 44 octets in unauthenticated mode, see 174 Figure 2, and 48 octets in the authenticated mode, see Figure 4. 176 For unauthenticated mode: 178 0 1 2 3 179 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 180 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 181 | Sequence Number | 182 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 183 | Timestamp | 184 | | 185 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 186 | Error Estimate | | 187 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + 188 | | 189 | | 190 | MBZ (27 octets) | 191 | | 192 | | 193 | | 194 + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 195 | | Server Octets | | 196 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + 197 | Remaining Packet Padding (to be reflected) | 198 ~ (length in octets specified in Server Octets) ~ 199 + +-+-+-+-+-+-+-+-+ 200 | | Comp.MBZ | 201 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 202 | Type | Length | 203 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 204 ~ Value ~ 205 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 207 Figure 2: STAMP Session-Sender test packet format in unauthenticated 208 mode 210 where fields are defined as the following: 212 o Sequence Number is four octets long field. For each new session 213 its value starts at zero and is incremented with each transmitted 214 packet. 216 o Timestamp is eight octets long field. STAMP node MUST support 217 Network Time Protocol (NTP) version 4 64-bit timestamp format 218 [RFC5905]. STAMP node MAY support IEEE 1588v2 Precision Time 219 Protocol truncated 64-bit timestamp format [IEEE.1588.2008]. 221 o Error Estimate is two octets long field with format displayed in 222 Figure 3 223 0 1 224 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 225 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 226 |S|Z| Scale | Multiplier | 227 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 229 Figure 3: Error Estimate Format 231 where S, Scale, and Multiplier fields are interpreted as they have 232 been defined in section 4.1.2 [RFC4656]; and Z field - as has been 233 defined in section 2.3 [RFC8186]: 235 * 0 - NTP 64 bit format of a timestamp; 237 * 1 - PTPv2 truncated format of a timestamp. 239 The STAMP Session-Sender and Session-Reflector MAY use, not use, 240 or set value of the Z field in accordance with the timestamp 241 format in use. This optional field is to enhance operations, but 242 local configuration or defaults could be used in its place. 244 o Must-be-Zero (MBZ) field in the session-sender unauthenticated 245 packet is 27 octets long. It MUST be all zeroed on the 246 transmission and ignored on receipt. 248 o Server Octets field is two octets long field. It MUST follow the 249 27 octets long MBZ field. The Reflect Octets capability defined 250 in [RFC6038]. The value in the Server Octets field equals the 251 number of octets the Session-Reflector is expected to copy back to 252 the Session-Sender starting with the Server Octets field. Thus 253 the minimal non-zero value for the Server Octets field is two. 254 Therefore, the value of one is invalid. If none of Payload to be 255 copied, the value of the Server Octets field MUST be set to zero 256 on transmit. 258 o Remaining Packet Padding is an optional field of variable length. 259 The number of octets in the Remaining Packet Padding field is the 260 value of the Server Octets field less the length of the Server 261 Octets field. 263 o Comp.MBZ is variable length field used to achieve alignment on a 264 word boundary. Thus the length of Comp.MBZ field may be only 0, 265 1, 2 or 3 octets. The value of the field MUST be zeroed on 266 transmission and ignored on receipt. 268 4.1.2. Session-Sender Packet Format in Authenticated Mode 270 For authenticated mode: 272 0 1 2 3 273 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 274 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 275 | Sequence Number | 276 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 277 | | 278 | MBZ (12 octets) | 279 | | 280 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 281 | Timestamp | 282 | | 283 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 284 | Error Estimate | | 285 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + 286 ~ ~ 287 | MBZ (70 octets) | 288 ~ ~ 289 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 290 | Type | Length | 291 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 292 ~ Value ~ 293 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 294 ~ Comp.MBZ ~ 295 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 296 | | 297 | HMAC (16 octets) | 298 | | 299 | | 300 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 302 Figure 4: STAMP Session-Sender test packet format in authenticated 303 mode 305 The field definitions are the same as the unauthenticated mode, 306 listed in Section 4.1.1. Also, Comp.MBZ field is variable length 307 field to align the packet on 16 octets boundary. Also, the packet 308 includes a key-hashed message authentication code (HMAC) ([RFC2104]) 309 hash at the end of the PDU. 311 4.2. Session-Reflector Behavior and Packet Format 313 The Session-Reflector receives the STAMP test packet, verifies it, 314 prepares and transmits the reflected test packet. 316 Two modes of STAMP Session-Reflector characterize the expected 317 behavior and, consequently, performance metrics that can be measured: 319 o Stateless - STAMP Session-Reflector does not maintain test state 320 and will reflect the received sequence number without 321 modification. As a result, only round-trip packet loss can be 322 calculated while the reflector is operating in stateless mode. 324 o Stateful - STAMP Session-Reflector maintains test state thus 325 enabling the ability to determine forward loss, gaps recognized in 326 the received sequence number. As a result, both near-end 327 (forward) and far-end (backward) packet loss can be computed. 328 That implies that the STAMP Session-Reflector MUST keep a state 329 for each accepted STAMP-test session, uniquely identifying STAMP- 330 test packets to one such session instance, and enabling adding a 331 sequence number in the test reply that is individually incremented 332 on a per-session basis. 334 4.2.1. Session-Reflector Packet Format in Unauthenticated Mode 336 For unauthenticated mode: 338 0 1 2 3 339 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 340 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 341 | Sequence Number | 342 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 343 | Timestamp | 344 | | 345 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 346 | Error Estimate | MBZ | 347 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 348 | Receive Timestamp | 349 | | 350 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 351 | Session-Sender Sequence Number | 352 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 353 | Session-Sender Timestamp | 354 | | 355 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 356 | Session-Sender Error Estimate | MBZ | 357 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 358 |Ses-Sender TTL | | 359 +-+-+-+-+-+-+-+-+ + 360 | | 361 ~ Packet Padding (reflected) ~ 362 + +-+-+-+-+-+-+-+-+ 363 | | Comp.MBZ | 364 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 365 | Type | Length | 366 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 367 ~ Value ~ 368 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 370 Figure 5: STAMP Session-Reflector test packet format in 371 unauthenticated mode 373 where fields are defined as the following: 375 o Sequence Number is four octets long field. The value of the 376 Sequence Number field is set according to the mode of the STAMP 377 Session-Reflector: 379 * in the stateless mode the Session-Reflector copies the value 380 from the received STAMP test packet's Sequence Number field; 382 * in the stateful mode the Session-Reflector counts the received 383 STAMP test packets in each test session and uses that counter 384 to set the value of the Sequence Number field. 386 o Timestamp and Receiver Timestamp fields are each eight octets 387 long. The format of these fields, NTP or PTPv2, indicated by the 388 Z flag of the Error Estimate field as described in Section 4.1. 390 o Error Estimate has the same size and interpretation as described 391 in Section 4.1. 393 o Session-Sender Sequence Number, Session-Sender Timestamp, and 394 Session-Sender Error Estimate are copies of the corresponding 395 fields in the STAMP test packet sent by the Session-Sender. 397 o Session-Sender TTL is one octet long field, and its value is the 398 copy of the TTL field from the received STAMP test packet. 400 o Packet Padding (reflected) is an optional variable length field. 401 The length of the Packet Padding (reflected) field MUST be equal 402 to the value of the Server Octets field (Figure 2). If the value 403 is non-zero, the Session-Reflector MUST copy number of octets 404 equal to the value of Server Octets field starting with the Server 405 Octets field. 407 o Comp.MBZ is variable length field used to achieve alignment on a 408 word boundary. Thus the length of Comp.MBZ field may be only 0, 409 1, 2 or 3 octets. The value of the field MUST be zeroed on 410 transmission and ignored on receipt. 412 4.2.2. Session-Reflector Packet Format in Authenticated Mode 414 For the authenticated mode: 416 0 1 2 3 417 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 418 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 419 | Sequence Number | 420 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 421 | MBZ (12 octets) | 422 | | 423 | | 424 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 425 | Timestamp | 426 | | 427 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 428 | Error Estimate | | 429 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + 430 | MBZ (6 octets) | 431 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 432 | Receive Timestamp | 433 | | 434 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 435 | MBZ (8 octets) | 436 | | 437 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 438 | Session-Sender Sequence Number | 439 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 440 | MBZ (12 octets) | 441 | | 442 | | 443 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 444 | Session-Sender Timestamp | 445 | | 446 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 447 | Session-Sender Error Estimate | | 448 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + 449 | MBZ (6 octets) | 450 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 451 |Ses-Sender TTL | | 452 +-+-+-+-+-+-+-+-+ + 453 | | 454 | MBZ (15 octets) | 455 | | 456 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 457 | Type | Length | 458 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 459 ~ Value ~ 460 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 461 ~ Comp.MBZ ~ 462 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 463 | HMAC (16 octets) | 464 | | 465 | | 466 | | 467 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 469 Figure 6: STAMP Session-Reflector test packet format in authenticated 470 mode 472 The field definitions are the same as the unauthenticated mode, 473 listed in Section 4.2.1. Additionally, the packet MAY include 474 Comp.MBZ field is variable length field to align the packet on 16 475 octets boundary. Also, STAMP Session-Reflector test packet format in 476 authenticated mode includes a key (HMAC) ([RFC2104]) hash at the end 477 of the PDU. 479 4.3. Integrity and Confidentiality Protection in STAMP 481 To provide integrity protection, each STAMP message is being 482 authenticated by adding Hashed Message Authentication Code (HMAC). 483 STAMP uses HMAC-SHA-256 truncated to 128 bits (similarly to the use 484 of it in IPSec defined in [RFC4868]); hence the length of the HMAC 485 field is 16 octets. HMAC uses own key and the definition of the 486 mechanism to distribute the HMAC key is outside the scope of this 487 specification. One example is to use an orchestrator to configure 488 HMAC key based on STAMP YANG data model [I-D.ietf-ippm-stamp-yang]. 489 HMAC MUST be verified as early as possible to avoid using or 490 propagating corrupted data. 492 If confidentiality protection for STAMP is required, encryption at 493 the higher level MUST be used. 495 4.4. Interoperability with TWAMP Light 497 One of the essential requirements to STAMP is the ability to 498 interwork with TWAMP Light device. There are two possible 499 combinations for such use case: 501 o STAMP Session-Sender with TWAMP Light Session-Reflector; 503 o TWAMP Light Session-Sender with STAMP Session-Reflector. 505 In the former case, Session-Sender MAY not be aware that its Session- 506 Reflector does not support STAMP. For example, TWAMP Light Session- 507 Reflector may not support the use of UDP port 862 as defined in 508 [I-D.ietf-ippm-port-twamp-test]. Thus STAMP Session-Sender MUST be 509 able to send test packets to destination UDP port number from the 510 Dynamic and/or Private Ports range 49152-65535, test management 511 system should find port number that both devices can use. And if any 512 of TLV-based STAMP extensions are used, the TWAMP Light Session- 513 Reflector will view them as Packet Padding field. The Session-Sender 514 SHOULD use the default format for its timestamps - NTP. And it MAY 515 use PTPv2 timestamp format. 517 In the latter scenario, the test management system should set STAMP 518 Session-Reflector to use UDP port number from the Dynamic and/or 519 Private Ports range. As for Packet Padding field that the TWAMP 520 Light Session-Sender includes in its transmitted packet, the STAMP 521 Session-Reflector will process it according to [RFC6038] and return 522 reflected packet of the symmetrical size. The Session-Reflector MUST 523 use the default format for its timestamps - NTP. 525 5. IANA Considerations 527 This document doesn't have any IANA action. This section may be 528 removed before the publication. 530 6. Security Considerations 532 Use of HMAC-SHA-256 in the authenticated mode protects the data 533 integrity of the STAMP test packets. 535 7. Acknowledgments 537 Authors express their appreciation to Jose Ignacio Alvarez-Hamelin 538 and Brian Weis for their great insights into the security and 539 identity protection, and the most helpful and practical suggestions. 541 8. References 543 8.1. Normative References 545 [BBF.TR-390] 546 "Performance Measurement from IP Edge to Customer 547 Equipment using TWAMP Light", BBF TR-390, May 2017. 549 [I-D.ietf-ippm-port-twamp-test] 550 Morton, A. and G. Mirsky, "OWAMP and TWAMP Well-Known Port 551 Assignments", draft-ietf-ippm-port-twamp-test-03 (work in 552 progress), November 2018. 554 [IEEE.1588.2008] 555 "Standard for a Precision Clock Synchronization Protocol 556 for Networked Measurement and Control Systems", 557 IEEE Standard 1588, March 2008. 559 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 560 Requirement Levels", BCP 14, RFC 2119, 561 DOI 10.17487/RFC2119, March 1997, 562 . 564 [RFC4656] Shalunov, S., Teitelbaum, B., Karp, A., Boote, J., and M. 565 Zekauskas, "A One-way Active Measurement Protocol 566 (OWAMP)", RFC 4656, DOI 10.17487/RFC4656, September 2006, 567 . 569 [RFC5357] Hedayat, K., Krzanowski, R., Morton, A., Yum, K., and J. 570 Babiarz, "A Two-Way Active Measurement Protocol (TWAMP)", 571 RFC 5357, DOI 10.17487/RFC5357, October 2008, 572 . 574 [RFC5905] Mills, D., Martin, J., Ed., Burbank, J., and W. Kasch, 575 "Network Time Protocol Version 4: Protocol and Algorithms 576 Specification", RFC 5905, DOI 10.17487/RFC5905, June 2010, 577 . 579 [RFC6038] Morton, A. and L. Ciavattone, "Two-Way Active Measurement 580 Protocol (TWAMP) Reflect Octets and Symmetrical Size 581 Features", RFC 6038, DOI 10.17487/RFC6038, October 2010, 582 . 584 [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 585 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, 586 May 2017, . 588 [RFC8186] Mirsky, G. and I. Meilik, "Support of the IEEE 1588 589 Timestamp Format in a Two-Way Active Measurement Protocol 590 (TWAMP)", RFC 8186, DOI 10.17487/RFC8186, June 2017, 591 . 593 8.2. Informative References 595 [I-D.ietf-ippm-stamp-yang] 596 Mirsky, G., Xiao, M., and W. Luo, "Simple Two-way Active 597 Measurement Protocol (STAMP) Data Model", draft-ietf-ippm- 598 stamp-yang-02 (work in progress), September 2018. 600 [RFC2104] Krawczyk, H., Bellare, M., and R. Canetti, "HMAC: Keyed- 601 Hashing for Message Authentication", RFC 2104, 602 DOI 10.17487/RFC2104, February 1997, 603 . 605 [RFC4868] Kelly, S. and S. Frankel, "Using HMAC-SHA-256, HMAC-SHA- 606 384, and HMAC-SHA-512 with IPsec", RFC 4868, 607 DOI 10.17487/RFC4868, May 2007, 608 . 610 Authors' Addresses 612 Greg Mirsky 613 ZTE Corp. 615 Email: gregimirsky@gmail.com 616 Guo Jun 617 ZTE Corporation 618 68# Zijinghua Road 619 Nanjing, Jiangsu 210012 620 P.R.China 622 Phone: +86 18105183663 623 Email: guo.jun2@zte.com.cn 625 Henrik Nydell 626 Accedian Networks 628 Email: hnydell@accedian.com 630 Richard Foote 631 Nokia 633 Email: footer.foote@nokia.com