idnits 2.17.1 draft-ietf-bmwg-ipv6-nd-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 : ---------------------------------------------------------------------------- == There are 9 instances of lines with non-RFC3849-compliant IPv6 addresses in the document. If these are example addresses, they should be changed. Miscellaneous warnings: ---------------------------------------------------------------------------- == The copyright year in the IETF Trust and authors Copyright Line does not match the current year -- The document date (February 24, 2017) is 2618 days in the past. Is this intentional? Checking references for intended status: Informational ---------------------------------------------------------------------------- No issues found here. Summary: 0 errors (**), 0 flaws (~~), 2 warnings (==), 1 comment (--). Run idnits with the --verbose option for more detailed information about the items above. -------------------------------------------------------------------------------- 2 Network Working Group W. Cerveny 3 Internet-Draft Arbor Networks 4 Intended status: Informational R. Bonica 5 Expires: August 28, 2017 R. Thomas 6 Juniper Networks 7 February 24, 2017 9 Benchmarking The Neighbor Discovery Protocol 10 draft-ietf-bmwg-ipv6-nd-05 12 Abstract 14 This document provides benchmarking procedures for Neighbor Discovery 15 Protocol (NDP). It also proposes metrics by which an NDP 16 implementation's scaling capabilities can be measured. 18 Requirements Language 20 The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 21 "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this 22 document are to be interpreted as described in RFC 2119 [RFC2119]. 24 Status of This Memo 26 This Internet-Draft is submitted in full conformance with the 27 provisions of BCP 78 and BCP 79. 29 Internet-Drafts are working documents of the Internet Engineering 30 Task Force (IETF). Note that other groups may also distribute 31 working documents as Internet-Drafts. The list of current Internet- 32 Drafts is at http://datatracker.ietf.org/drafts/current/. 34 Internet-Drafts are draft documents valid for a maximum of six months 35 and may be updated, replaced, or obsoleted by other documents at any 36 time. It is inappropriate to use Internet-Drafts as reference 37 material or to cite them other than as "work in progress." 39 This Internet-Draft will expire on August 28, 2017. 41 Copyright Notice 43 Copyright (c) 2017 IETF Trust and the persons identified as the 44 document authors. All rights reserved. 46 This document is subject to BCP 78 and the IETF Trust's Legal 47 Provisions Relating to IETF Documents 48 (http://trustee.ietf.org/license-info) in effect on the date of 49 publication of this document. Please review these documents 50 carefully, as they describe your rights and restrictions with respect 51 to this document. Code Components extracted from this document must 52 include Simplified BSD License text as described in Section 4.e of 53 the Trust Legal Provisions and are provided without warranty as 54 described in the Simplified BSD License. 56 Table of Contents 58 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 59 2. Test Setup . . . . . . . . . . . . . . . . . . . . . . . . . 4 60 2.1. Device Under Test (DUT) . . . . . . . . . . . . . . . . . 4 61 2.1.1. Interfaces . . . . . . . . . . . . . . . . . . . . . 4 62 2.1.2. Neighbor Discovery Protocol (NDP) . . . . . . . . . . 4 63 2.1.3. Routing . . . . . . . . . . . . . . . . . . . . . . . 5 64 2.2. Tester . . . . . . . . . . . . . . . . . . . . . . . . . 5 65 2.2.1. Interfaces . . . . . . . . . . . . . . . . . . . . . 5 66 2.2.2. Neighbor Discovery Protocol (NDP) . . . . . . . . . . 6 67 2.2.3. Routing . . . . . . . . . . . . . . . . . . . . . . . 6 68 2.2.4. Test Traffic . . . . . . . . . . . . . . . . . . . . 6 69 2.2.5. Counters . . . . . . . . . . . . . . . . . . . . . . 7 70 3. Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 71 3.1. Baseline Test . . . . . . . . . . . . . . . . . . . . . . 8 72 3.1.1. Procedure . . . . . . . . . . . . . . . . . . . . . . 8 73 3.1.2. Results . . . . . . . . . . . . . . . . . . . . . . . 8 74 3.2. Scaling Test . . . . . . . . . . . . . . . . . . . . . . 9 75 3.2.1. Procedure . . . . . . . . . . . . . . . . . . . . . . 9 76 3.2.2. Results . . . . . . . . . . . . . . . . . . . . . . . 10 77 4. Measurements Explicitly Excluded . . . . . . . . . . . . . . 11 78 4.1. DUT CPU Utilization . . . . . . . . . . . . . . . . . . . 11 79 4.2. Malformed Packets . . . . . . . . . . . . . . . . . . . . 11 80 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 11 81 6. Security Considerations . . . . . . . . . . . . . . . . . . . 11 82 7. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 12 83 8. Normative References . . . . . . . . . . . . . . . . . . . . 12 84 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 12 86 1. Introduction 88 When an IPv6 node forwards a packet, it executes the following 89 procedure: 91 o Identify the outbound interface and IPv6 next-hop 93 o Query a local Neighbor Cache (NC) to determine the IPv6 next-hop's 94 link-layer address 96 o Encapsulate the packet in a link-layer header. The link-layer 97 header includes the IPv6 next-hop's link-layer address 99 o Forward the packet to the IPv6 next-hop 101 IPv6 nodes use the Neighbor Discovery Protocol (NDP) [RFC4861] to 102 maintain the NC. Operational experience [RFC6583] shows that when an 103 implementation cannot maintain a sufficiently complete NC, its 104 ability to forward packets is impaired. 106 NDP, like any other protocol, consumes processing, memory, and 107 bandwidth resources. Its ability to maintain a sufficiently complete 108 NC depends upon the availability of the above-mentioned resources. 110 This document provides benchmarking procedures for NDP. Benchmarking 111 procedures include a Baseline Test and an NDP Scaling Test. In both 112 tests, the Device Under Test (DUT) is an IPv6 router. Two physical 113 links (A and B) connect the DUT to a Tester. The Tester sends 114 traffic through Link A to the DUT. The DUT forwards that traffic, 115 through Link B, back to the Tester. 117 The above-mentioned traffic stream contains one or more interleaved 118 flows. An IPv6 Destination Address uniquely identifies each flow. 119 Or, said another way, every packet within a flow has the same IPv6 120 Destination Address. 122 In the Baseline Test, the traffic stream contains exactly one flow. 123 Because every packet in the stream has the same IPv6 Destination 124 Address, the DUT can forward the entire stream using exactly one NC 125 entry. NDP is exercised minimally and no packet loss should be 126 observed. 128 The NDP Scaling Test is identical to the Baseline Test, except that 129 the traffic stream contains many flows. In order to forward the 130 stream without loss, the DUT must maintain one NC entry for each 131 flow. If the DUT cannot maintain one NC entry for each flow, packet 132 loss will be observed and attributed to NDP scaling limitations. 134 This document proposes an NDP scaling metric, called NDP-MAX- 135 NEIGHBORS. NDP-MAX-NEIGHBORS is the maximum number of neighbors to 136 which an IPv6 node can send traffic during periods of high NDP 137 activity. 139 The procedures described herein reveal how many IPv6 neighbors an NDP 140 implementation can discover. They also provide a rough estimate of 141 the time required to discover those neighbors. However, that 142 estimate does not reflect the maximum rate at which the 143 implementation can discover neighbors. Maximum rate discovery is a 144 topic for further exploration. 146 The test procedures described herein assume that NDP does not compete 147 with other applications for resources on the DUT. When NDP competes 148 for resources, its scaling characteristics may differ from those 149 reported by the benchmarks described, and may vary over time. 151 2. Test Setup 153 +---------------+ +-----------+ 154 | | | | 155 | | Link A | Device | 156 | |------------>| Under | 157 | Tester | | Test | 158 | |<------------| (DUT) | 159 | | Link B | | 160 +---------------+ +-----------+ 162 Figure 1: Test Setup 164 The DUT is an IPv6 router. Two links (A and B) connect the DUT to 165 the Tester. Link A capabilities must be identical to Link B 166 capabilities. For example, if the interface to Link A is a 10 167 Gigabit Ethernet port, the interface to Link B must also be a 10 168 Gigabit Ethernet port. 170 2.1. Device Under Test (DUT) 172 2.1.1. Interfaces 174 DUT interfaces are numbered as follows: 176 o Link A - 2001:2:0:0::2/64 178 o Link B- 2001:2:0:1::1/64 180 Both DUT interfaces should be configured with a 1500-byte MTU. 181 However, if they cannot support a 1500-byte MTU, they may be 182 configured with a 1280-byte MTU. 184 2.1.2. Neighbor Discovery Protocol (NDP) 186 NDP is enabled on both DUT interfaces. Therefore, the DUT emits both 187 solicited and unsolicited Router Advertisement (RA) messages. The 188 DUT emits an RA message at least once every 600 seconds and no more 189 frequently than once every 200 seconds. 191 When the DUT sends an RA message, it includes the following 192 information: 194 o Router Lifetime - 1800 seconds 196 o Reachable Time - 0 seconds 198 o Retrans Time - 0 seconds 200 o Source Link Layer Address - Link layer address of DUT interface 202 o M-bit is clear (0) 204 o O-bit is clear (0) 206 The above-mentioned values are chosen because they are the default 207 values specified in RFC 4861. 209 NDP manages the NC. Each NC entry represents an on-link neighbor and 210 is identified by the neighbor's on-link unicast IP address. As per 211 RFC 4861, each NC entry needs to be refreshed periodically. NDP 212 refreshes NC entries by exchanging Neighbor Solicitation (NS) and 213 Neighbor Advertisement (NA) messages. 215 No static NC entries are configured on the DUT. 217 2.1.3. Routing 219 The DUT maintains a direct route to 2001:2:0:0/64 through Link A. It 220 also maintains a direct route to 2001:2:0:1/64 through Link B. No 221 static routes or dynamic routing protocols are configured on the DUT. 223 2.2. Tester 225 2.2.1. Interfaces 227 Interfaces are numbered as follows: 229 o Link A - 2001:2:0:0::1/64 231 o Link B - Multiple addresses are configured on Link B. These 232 addresses are drawn sequentially from the 2001:2:0:1::/64 address 233 block. The first address is 2001:2:0:1::2/64. Subsequent 234 addresses are 2001:2:0:1::3/64, 2001:2:0:1::4/64, 235 2001:2:0:1::5/64, et cetera. The number of configured addresses 236 should be the expected value of NDP-MAX-NEIGHBORS times 1.1. 238 Both Tester interfaces should be configured with a 1500-byte MTU. 239 However, if they cannot support a 1500-byte MTU, they may be 240 configured with a 1280-byte MTU. 242 2.2.2. Neighbor Discovery Protocol (NDP) 244 NDP is enabled on both Tester interfaces. Therefore, upon 245 initiation, the Tester sends Router Solicitation (RS) messages and 246 waits for Router Advertisement (RA) messages. The Tester also 247 exchanges Neighbor Solicitation (NS) and Neighbor Advertisement (NA) 248 messages with the DUT. 250 No static NC entries are configured on the Tester. 252 2.2.3. Routing 254 The Tester maintains a direct route to 2001:2:0:0/64 through Link A. 255 It also maintains a direct route to 2001:2:0:1/64 through Link B. No 256 static routes or dynamic routing protocols are configured on the 257 Tester. 259 2.2.4. Test Traffic 261 The Tester sends a stream of test traffic through Link A to the DUT. 262 The test traffic stream contains one or more interleaved flows. 263 Flows are numbered 1 through N, sequentially. 265 Within each flow, each packet contains an IPv6 header and each IPv6 266 header contains the following information: 268 o Version - 6 270 o Traffic Class - 0 272 o Flow Label - 0 274 o Payload Length - 0 276 o Next Header - IPv6-NoNxt (59) 278 o Hop Limit - 255 280 o Source Address - 2001:2:0:0::1 282 o Destination Address - The first 64 bits of the Destination Address 283 are 2001:2:0:1::. The next 64 are uniquely associated with the 284 flow. Every packet in the first flow carries the Destination 285 address 2001:2:0:1::2. Every subsequent flow has an IP address 286 one greater than the last (i.e., 2001:2:0:1::3, 2001:2:0:1::4, 287 etc.) 289 In order to avoid link congestion, test traffic is offered at a rate 290 not to exceed 50% of available link bandwidth. In order to avoid 291 burstiness and buffer occupancy, every packet in the stream is 292 exactly 40 bytes long (i.e., the length of an IPv6 header with no 293 IPv6 payload). Furthermore, the gap between packets is identical. 295 During the course of a test, the number of flows that the test stream 296 contains may increase. When this occurs, the rate at which test 297 traffic is offered remains constant. For example, assume that a test 298 stream is offered at a rate of 1,000 packets per second. This stream 299 contains two flows, each contributing 500 packets per second to the 300 1,000 packet per second aggregate. When a third stream is added to 301 the flow, all three streams must contribute 333 packets per second in 302 order to maintain the 1,000 packet per second limit. (As in this 303 example, rounding error is acceptable.) 305 The DUT attempts to forward every packet in the test stream through 306 Link B to the Tester. It does this because: 308 o Every packet in the test stream has a destination address drawn 309 from the 2001:2:0:1::/64 address block 311 o The DUT has a direct route to 2001:2:0:1/64 through Link B 313 2.2.5. Counters 315 On the Tester, two counters are configured for each flow. One 316 counter, configured on Link A, increments when the Tester sends a 317 packet belonging to the flow. The other counter, configured on Link 318 B, increments when the Tester receives packet from the flow. In 319 order for a packet to be associated with a flow, the following 320 conditions must all be true: 322 o The IPv6 Destination Address must be that of the flow 324 o The IPv6 Next Header must be IPv6-NoNxt (59) 326 The following counters also are configured on both Tester Interfaces: 328 o RS packets sent 330 o RA packets received 332 o NS packets sent 333 o NS packets received 335 o NA packets sent 337 o NA packets received 339 o Total packets sent 341 o Total packets received 343 3. Tests 345 3.1. Baseline Test 347 The purpose of the Baseline Test is to ensure that the DUT can 348 forward every packet in the test stream, without loss, when NDP is 349 minimally exercised and not operating near its scaling limit. 351 3.1.1. Procedure 353 o On the DUT, clear the NC 355 o On the Tester, clear all counters 357 o On the Tester, set a timer to expire in 60 seconds 359 o On the Tester, start the test stream with exactly one flow (i.e., 360 IPv6 Destination Address equals 2001:2:0:1::2) 362 o Wait for either the timer to expire or the packets-received 363 counter associated with the flow to increment 365 o If the timer expires, stop the test stream and end the test 367 o If the packets-received counter increments, pause the traffic 368 stream, log the initial counter values, clear the counters, reset 369 the timer to expire in 1800 seconds and restart the traffic stream 371 o When the timer expires, stop the test stream, wait sufficient time 372 for any queued packets to exit, log the final counter values and 373 end the test 375 3.1.2. Results 377 The log contains initial and final values for the following counters: 379 o packets-sent 380 o packets-received 382 The final values of packets-packets sent and packets-received should 383 be equal to one another. If they are not, an error has occurred. 384 Because this error is likely to affect Scaling Test results, the 385 error must be corrected before the Scaling Test is executed. 387 The initial values of packets-packets sent and packets-received may 388 be equal to one another. If these values are identical, none of the 389 initial packets belonging to the flow were lost. However, if 390 packets-sent is greater than packets received, initial packets were 391 lost. This loss of initial packets is acceptable. 393 3.2. Scaling Test 395 The purpose of the Scaling Test is to discover the number of 396 neighbors to which an IPv6 node can send traffic during periods of 397 high NDP activity. We call this number NDP-MAX-NEIGHBORS. 399 3.2.1. Procedure 401 Execute the following procedure: 403 o On the DUT, clear the NC 405 o On the Tester, clear all counters 407 o On the Tester, set a timer to expire in 60 seconds 409 o On the Tester, start the test stream with exactly one flow (i.e., 410 IPv6 Destination Address equals 2001:2:0:1::2) 412 o Wait for either the timer to expire or the packets-received 413 counter associated with the flow to increment 415 o If the timer expires, stop the test stream and end the test 417 o If the packets-received counter increments, proceed as described 418 below: 420 Execute the following procedure N times, starting at 2 and ending at 421 the number of expected value of NDP-MAX-NEIGHBORS times 1.1. 423 o Pause the test stream 425 o Log the time and the value of N minus one 426 o Clear the packets-sent and packets-received counters associated 427 with the previous flow (i.e., N minus one) 429 o Reset the timer to expire in 60 seconds 431 o Add the next flow to the test stream (i.e.,IPv6 Destination 432 Address is a function of N) 434 o Restart the test stream 436 o Wait for either the timer to expire or the packets-received 437 counter associated with the new flow to increment 439 After the above described procedure had been executed N times, clear 440 the timer and reset it to expire in 1800 seconds. When the timer 441 expires, stop the stream, log all counters and end the test (after 442 waiting sufficient time for any queued packets to exit). 444 3.2.2. Results 446 The test report includes the following: 448 o A description of the DUT (make, model, processor, memory, 449 interfaces) 451 o Rate at which the Tester offers test traffic to the DUT (measured 452 in packets per second) 454 o A log that records the time at which each flow was introduced to 455 the test stream and the final value of all counters 457 o The expected value of NDP-MAX-NEIGHBORS 459 o The actual value of NDP-MAX-NEIGHBORS 461 NDP-MAX-NEIGHBORS is equal to the number of counter pairs where 462 packets-sent is equal to packets-received. Two counters are members 463 of a pair if they are both associated with the same flow. If 464 packets-sent is equal to packets-recieved for every counter pair, the 465 test should be repeated with a larger expected value of NDP-MAX- 466 NEIGHBORS. 468 If an implementation abides by the recommendation of Section 7.1 of 469 RFC 6583, for any given counter pair, packets-received will either be 470 equal to zero or packets-sent. 472 The log documents the time at which each flow was introduced to the 473 test stream. This log reveals the effect of NC size to the time 474 required to discover a new IPv6 neighbor. 476 4. Measurements Explicitly Excluded 478 These are measurements which aren't recommended because of the 479 itemized reasons below: 481 4.1. DUT CPU Utilization 483 This measurement relies on the DUT to provide utilization 484 information, which is not externally observable (not black-box). 485 However, some testing organizations may find the CPU utilization is 486 useful auxiliary information specific to the DUT model, etc. 488 4.2. Malformed Packets 490 This benchmarking test is not intended to test DUT behavior in the 491 presence of malformed packets. 493 5. IANA Considerations 495 This document makes no request of IANA. 497 Note to RFC Editor: this section may be removed on publication as an 498 RFC. 500 6. Security Considerations 502 Benchmarking activities as described in this memo are limited to 503 technology characterization using controlled stimuli in a laboratory 504 environment, with dedicated address space and the constraints 505 specified in the sections above. 507 The benchmarking network topology will be an independent test setup 508 and MUST NOT be connected to devices that may forward the test 509 traffic into a production network, or misroute traffic to the test 510 management network. 512 Further, benchmarking is performed on a "black-box" basis, relying 513 solely on measurements observable external to the DUT/SUT. Special 514 capabilities SHOULD NOT exist in the DUT/SUT specifically for 515 benchmarking purposes. 517 Any implications for network security arising from the DUT/SUT SHOULD 518 be identical in the lab and in production networks. 520 7. Acknowledgments 522 Helpful comments and suggestions were offered by Al Morton, Joel 523 Jaeggli, Nalini Elkins, Scott Bradner, and Ram Krishnan, on the BMWG 524 e-mail list and at BMWG meetings. Precise grammatical corrections 525 and suggestions were offered by Ann Cerveny. 527 8. Normative References 529 [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate 530 Requirement Levels", BCP 14, RFC 2119, 531 DOI 10.17487/RFC2119, March 1997, 532 . 534 [RFC4861] Narten, T., Nordmark, E., Simpson, W., and H. Soliman, 535 "Neighbor Discovery for IP version 6 (IPv6)", RFC 4861, 536 DOI 10.17487/RFC4861, September 2007, 537 . 539 [RFC6583] Gashinsky, I., Jaeggli, J., and W. Kumari, "Operational 540 Neighbor Discovery Problems", RFC 6583, 541 DOI 10.17487/RFC6583, March 2012, 542 . 544 Authors' Addresses 546 Bill Cerveny 547 Arbor Networks 548 2727 South State Street 549 Ann Arbor, MI 48104 550 USA 552 Email: wcerveny@arbor.net 554 Ron Bonica 555 Juniper Networks 556 2251 Corporate Park Drive 557 Herndon, VA 20170 558 USA 560 Email: rbonica@juniper.net 561 Reji Thomas 562 Juniper Networks 563 Elnath-Exora Business Park Survey 564 Bangalore, KA 560103 565 India 567 Email: rejithomas@juniper.net