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
|
<pre>Internet Engineering Task Force (IETF) T. Narten
Request for Comments: 6820 IBM Corporation
Category: Informational M. Karir
ISSN: 2070-1721 Merit Network Inc.
I. Foo
Huawei Technologies
January 2013
<span class="h1">Address Resolution Problems in Large Data Center Networks</span>
Abstract
This document examines address resolution issues related to the
scaling of data centers with a very large number of hosts. The scope
of this document is relatively narrow, focusing on address resolution
(the Address Resolution Protocol (ARP) in IPv4 and Neighbor Discovery
(ND) in IPv6) within a data center.
Status of This Memo
This document is not an Internet Standards Track specification; it is
published for informational purposes.
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). Not all documents
approved by the IESG are a candidate for any level of Internet
Standard; see <a href="./rfc5741#section-2">Section 2 of RFC 5741</a>.
Information about the current status of this document, any errata,
and how to provide feedback on it may be obtained at
<a href="http://www.rfc-editor.org/info/rfc6820">http://www.rfc-editor.org/info/rfc6820</a>.
<span class="grey">Narten, et al. Informational [Page 1]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-2" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
Copyright Notice
Copyright (c) 2013 IETF Trust and the persons identified as the
document authors. All rights reserved.
This document is subject to <a href="https://www.rfc-editor.org/bcp/bcp78">BCP 78</a> and the IETF Trust's Legal
Provisions Relating to IETF Documents
(<a href="http://trustee.ietf.org/license-info">http://trustee.ietf.org/license-info</a>) 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
<a href="#section-1">1</a>. Introduction ....................................................<a href="#page-3">3</a>
<a href="#section-2">2</a>. Terminology .....................................................<a href="#page-3">3</a>
<a href="#section-3">3</a>. Background ......................................................<a href="#page-4">4</a>
<a href="#section-4">4</a>. Address Resolution in IPv4 ......................................<a href="#page-6">6</a>
<a href="#section-5">5</a>. Address Resolution in IPv6 ......................................<a href="#page-7">7</a>
<a href="#section-6">6</a>. Generalized Data Center Design ..................................<a href="#page-7">7</a>
<a href="#section-6.1">6.1</a>. Access Layer ...............................................<a href="#page-8">8</a>
<a href="#section-6.2">6.2</a>. Aggregation Layer ..........................................<a href="#page-8">8</a>
<a href="#section-6.3">6.3</a>. Core .......................................................<a href="#page-9">9</a>
<a href="#section-6.4">6.4</a>. L3/L2 Topological Variations ...............................<a href="#page-9">9</a>
<a href="#section-6.4.1">6.4.1</a>. L3 to Access Switches ...............................<a href="#page-9">9</a>
<a href="#section-6.4.2">6.4.2</a>. L3 to Aggregation Switches ..........................<a href="#page-9">9</a>
<a href="#section-6.4.3">6.4.3</a>. L3 in the Core Only ................................<a href="#page-10">10</a>
<a href="#section-6.4.4">6.4.4</a>. Overlays ...........................................<a href="#page-10">10</a>
<a href="#section-6.5">6.5</a>. Factors That Affect Data Center Design ....................<a href="#page-11">11</a>
<a href="#section-6.5.1">6.5.1</a>. Traffic Patterns ...................................<a href="#page-11">11</a>
<a href="#section-6.5.2">6.5.2</a>. Virtualization .....................................<a href="#page-11">11</a>
<a href="#section-6.5.3">6.5.3</a>. Summary ............................................<a href="#page-12">12</a>
<a href="#section-7">7</a>. Problem Itemization ............................................<a href="#page-12">12</a>
<a href="#section-7.1">7.1</a>. ARP Processing on Routers .................................<a href="#page-12">12</a>
<a href="#section-7.2">7.2</a>. IPv6 Neighbor Discovery ...................................<a href="#page-14">14</a>
<a href="#section-7.3">7.3</a>. MAC Address Table Size Limitations in Switches ............<a href="#page-15">15</a>
<a href="#section-8">8</a>. Summary ........................................................<a href="#page-15">15</a>
<a href="#section-9">9</a>. Acknowledgments ................................................<a href="#page-16">16</a>
<a href="#section-10">10</a>. Security Considerations .......................................<a href="#page-16">16</a>
<a href="#section-11">11</a>. Informative References ........................................<a href="#page-16">16</a>
<span class="grey">Narten, et al. Informational [Page 2]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-3" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
<span class="h2"><a class="selflink" id="section-1" href="#section-1">1</a>. Introduction</span>
This document examines issues related to the scaling of large data
centers. Specifically, this document focuses on address resolution
(ARP in IPv4 and Neighbor Discovery in IPv6) within the data center.
Although strictly speaking the scope of address resolution is
confined to a single L2 broadcast domain (i.e., ARP runs at the L2
layer below IP), the issue is complicated by routers having many
interfaces on which address resolution must be performed or with the
presence of IEEE 802.1Q domains, where individual VLANs effectively
form their own L2 broadcast domains. Thus, the scope of address
resolution spans both the L2 link and the devices attached to those
links.
This document identifies potential issues associated with address
resolution in data centers with a large number of hosts. The scope
of this document is intentionally relatively narrow, as it mirrors
the Address Resolution for Massive numbers of hosts in the Data
center (ARMD) WG charter. This document lists "pain points" that are
being experienced in current data centers. The goal of this document
is to focus on address resolution issues and not other broader issues
that might arise in data centers.
<span class="h2"><a class="selflink" id="section-2" href="#section-2">2</a>. Terminology</span>
Address Resolution: The process of determining the link-layer
address corresponding to a given IP address. In IPv4, address
resolution is performed by ARP [<a href="./rfc0826" title=""Ethernet Address Resolution Protocol: Or converting network protocol addresses to 48.bit Ethernet address for transmission on Ethernet hardware"">RFC0826</a>]; in IPv6, it is provided
by Neighbor Discovery (ND) [<a href="./rfc4861" title=""Neighbor Discovery for IP version 6 (IPv6)"">RFC4861</a>].
Application: Software that runs on either a physical or virtual
machine, providing a service (e.g., web server, database server,
etc.).
L2 Broadcast Domain: The set of all links, repeaters, and switches
that are traversed to reach all nodes that are members of a given
L2 broadcast domain. In IEEE 802.1Q networks, a broadcast domain
corresponds to a single VLAN.
Host (or server): A computer system on the network.
Hypervisor: Software running on a host that allows multiple VMs to
run on the same host.
Virtual Machine (VM): A software implementation of a physical
machine that runs programs as if they were executing on a
physical, non-virtualized machine. Applications (generally) do
not know they are running on a VM as opposed to running on a
<span class="grey">Narten, et al. Informational [Page 3]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-4" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
"bare" host or server, though some systems provide a
paravirtualization environment that allows an operating system or
application to be aware of the presence of virtualization for
optimization purposes.
ToR: Top-of-Rack Switch. A switch placed in a single rack to
aggregate network connectivity to and from hosts in that rack.
EoR: End-of-Row Switch. A switch used to aggregate network
connectivity from multiple racks. EoR switches are the next level
of switching above ToR switches.
<span class="h2"><a class="selflink" id="section-3" href="#section-3">3</a>. Background</span>
Large, flat L2 networks have long been known to have scaling
problems. As the size of an L2 broadcast domain increases, the level
of broadcast traffic from protocols like ARP increases. Large
amounts of broadcast traffic pose a particular burden because every
device (switch, host, and router) must process and possibly act on
such traffic. In extreme cases, "broadcast storms" can occur where
the quantity of broadcast traffic reaches a level that effectively
brings down part or all of a network. For example, poor
implementations of loop detection and prevention or misconfiguration
errors can create conditions that lead to broadcast storms as network
conditions change. The conventional wisdom for addressing such
problems has been to say "don't do that". That is, split large L2
networks into multiple smaller L2 networks, each operating as its own
L3/IP subnet. Numerous data center networks have been designed with
this principle, e.g., with each rack placed within its own L3 IP
subnet. By doing so, the broadcast domain (and address resolution)
is confined to one ToR switch, which works well from a scaling
perspective. Unfortunately, this conflicts in some ways with the
current trend towards dynamic workload shifting in data centers and
increased virtualization, as discussed below.
Workload placement has become a challenging task within data centers.
Ideally, it is desirable to be able to dynamically reassign workloads
within a data center in order to optimize server utilization, add
more servers in response to increased demand, etc. However, servers
are often pre-configured to run with a given set of IP addresses.
Placement of such servers is then subject to constraints of the IP
addressing restrictions of the data center. For example, servers
configured with addresses from a particular subnet could only be
placed where they connect to the IP subnet corresponding to their IP
addresses. If each ToR switch is acting as a gateway for its own
subnet, a server can only be connected to the one ToR switch. This
gateway switch represents the L2/L3 boundary. A similar constraint
occurs in virtualized environments, as discussed next.
<span class="grey">Narten, et al. Informational [Page 4]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-5" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
Server virtualization is fast becoming the norm in data centers.
With server virtualization, each physical server supports multiple
virtual machines, each running its own operating system, middleware,
and applications. Virtualization is a key enabler of workload
agility, i.e., allowing any server to host any application (on its
own VM) and providing the flexibility of adding, shrinking, or moving
VMs within the physical infrastructure. Server virtualization
provides numerous benefits, including higher utilization, increased
data security, reduced user downtime, and even significant power
conservation, along with the promise of a more flexible and dynamic
computing environment.
The discussion below focuses on VM placement and migration. Keep in
mind, however, that even in a non-virtualized environment, many of
the same issues apply to individual workloads running on standalone
machines. For example, when increasing the number of servers running
a particular workload to meet demand, placement of those workloads
may be constrained by IP subnet numbering considerations, as
discussed earlier.
The greatest flexibility in VM and workload management occurs when it
is possible to place a VM (or workload) anywhere in the data center
regardless of what IP addresses the VM uses and how the physical
network is laid out. In practice, movement of VMs within a data
center is easiest when VM placement and movement do not conflict with
the IP subnet boundaries of the data center's network, so that the
VM's IP address need not be changed to reflect its actual point of
attachment on the network from an L3/IP perspective. In contrast, if
a VM moves to a new IP subnet, its address must change, and clients
will need to be made aware of that change. From a VM management
perspective, management is simplified if all servers are on a single
large L2 network.
With virtualization, it is not uncommon to have a single physical
server host ten or more VMs, each having its own IP (and Media Access
Control (MAC)) addresses. Consequently, the number of addresses per
machine (and hence per subnet) is increasing, even when the number of
physical machines stays constant. In a few years, the numbers will
likely be even higher.
In the past, applications were static in the sense that they tended
to stay in one physical place. An application installed on a
physical machine would stay on that machine because the cost of
moving an application elsewhere was generally high. Moreover,
physical servers hosting applications would tend to be placed in such
a way as to facilitate communication locality. That is, applications
running on servers would be physically located near the servers
hosting the applications they communicated with most heavily. The
<span class="grey">Narten, et al. Informational [Page 5]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-6" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
network traffic patterns in such environments could thus be
optimized, in some cases keeping significant traffic local to one
network segment. In these more static and carefully managed
environments, it was possible to build networks that approached
scaling limitations but did not actually cross the threshold.
Today, with the proliferation of VMs, traffic patterns are becoming
more diverse and less predictable. In particular, there can easily
be less locality of network traffic as VMs hosting applications are
moved for such reasons as reducing overall power usage (by
consolidating VMs and powering off idle machines) or moving a VM to a
physical server with more capacity or a lower load. In today's
changing environments, it is becoming more difficult to engineer
networks as traffic patterns continually shift as VMs move around.
In summary, both the size and density of L2 networks are increasing.
In addition, increasingly dynamic workloads and the increased usage
of VMs are creating pressure for ever-larger L2 networks. Today,
there are already data centers with over 100,000 physical machines
and many times that number of VMs. This number will only increase
going forward. In addition, traffic patterns within a data center
are also constantly changing. Ultimately, the issues described in
this document might be observed at any scale, depending on the
particular design of the data center.
<span class="h2"><a class="selflink" id="section-4" href="#section-4">4</a>. Address Resolution in IPv4</span>
In IPv4 over Ethernet, ARP provides the function of address
resolution. To determine the link-layer address of a given IP
address, a node broadcasts an ARP Request. The request is delivered
to all portions of the L2 network, and the node with the requested IP
address responds with an ARP Reply. ARP is an old protocol and, by
current standards, is sparsely documented. For example, there are no
clear requirements for retransmitting ARP Requests in the absence of
replies. Consequently, implementations vary in the details of what
they actually implement [<a href="./rfc0826" title=""Ethernet Address Resolution Protocol: Or converting network protocol addresses to 48.bit Ethernet address for transmission on Ethernet hardware"">RFC0826</a>][RFC1122].
From a scaling perspective, there are a number of problems with ARP.
First, it uses broadcast, and any network with a large number of
attached hosts will see a correspondingly large amount of broadcast
ARP traffic. The second problem is that it is not feasible to change
host implementations of ARP -- current implementations are too widely
entrenched, and any changes to host implementations of ARP would take
years to become sufficiently deployed to matter. That said, it may
be possible to change ARP implementations in hypervisors, L2/L3
boundary routers, and/or ToR access switches, to leverage such
techniques as Proxy ARP. Finally, ARP implementations need to take
steps to flush out stale or otherwise invalid entries.
<span class="grey">Narten, et al. Informational [Page 6]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-7" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
Unfortunately, existing standards do not provide clear implementation
guidelines for how to do this. Consequently, implementations vary
significantly, and some implementations are "chatty" in that they
just periodically flush caches every few minutes and send new ARP
queries.
<span class="h2"><a class="selflink" id="section-5" href="#section-5">5</a>. Address Resolution in IPv6</span>
Broadly speaking, from the perspective of address resolution, IPv6's
Neighbor Discovery (ND) behaves much like ARP, with a few notable
differences. First, ARP uses broadcast, whereas ND uses multicast.
When querying for a target IP address, ND maps the target address
into an IPv6 Solicited Node multicast address. Using multicast
rather than broadcast has the benefit that the multicast frames do
not necessarily need to be sent to all parts of the network, i.e.,
the frames can be sent only to segments where listeners for the
Solicited Node multicast address reside. In the case where multicast
frames are delivered to all parts of the network, sending to a
multicast address still has the advantage that most (if not all)
nodes will filter out the (unwanted) multicast query via filters
installed in the Network Interface Card (NIC) rather than burdening
host software with the need to process such packets. Thus, whereas
all nodes must process every ARP query, ND queries are processed only
by the nodes to which they are intended. In cases where multicast
filtering can't effectively be implemented in the NIC (e.g., as on
hypervisors supporting virtualization), filtering would need to be
done in software (e.g., in the hypervisor's vSwitch).
<span class="h2"><a class="selflink" id="section-6" href="#section-6">6</a>. Generalized Data Center Design</span>
There are many different ways in which data center networks might be
designed. The designs are usually engineered to suit the particular
workloads that are being deployed in the data center. For example, a
large web server farm might be engineered in a very different way
than a general-purpose multi-tenant cloud hosting service. However,
in most cases the designs can be abstracted into a typical three-
layer model consisting of an access layer, an aggregation layer, and
the Core. The access layer generally refers to the switches that are
closest to the physical or virtual servers; the aggregation layer
serves to interconnect multiple access-layer devices. The Core
switches connect the aggregation switches to the larger network core.
<span class="grey">Narten, et al. Informational [Page 7]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-8" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
Figure 1 shows a generalized data center design, which captures the
essential elements of various alternatives.
+-----+-----+ +-----+-----+
| Core0 | | Core1 | Core
+-----+-----+ +-----+-----+
/ \ / /
/ \----------\ /
/ /---------/ \ /
+-------+ +------+
+/------+ | +/-----+ |
| Aggr11| + --------|AggrN1| + Aggregation Layer
+---+---+/ +------+/
/ \ / \
/ \ / \
+---+ +---+ +---+ +---+
|T11|... |T1x| |TN1| |TNy| Access Layer
+---+ +---+ +---+ +---+
| | | | | | | |
+---+ +---+ +---+ +---+
| |... | | | | | |
+---+ +---+ +---+ +---+ Server Racks
| |... | | | | | |
+---+ +---+ +---+ +---+
| |... | | | | | |
+---+ +---+ +---+ +---+
Typical Layered Architecture in a Data Center
Figure 1
<span class="h3"><a class="selflink" id="section-6.1" href="#section-6.1">6.1</a>. Access Layer</span>
The access switches provide connectivity directly to/from physical
and virtual servers. The access layer may be implemented by wiring
the servers within a rack to a ToR switch or, less commonly, the
servers could be wired directly to an EoR switch. A server rack may
have a single uplink to one access switch or may have dual uplinks to
two different access switches.
<span class="h3"><a class="selflink" id="section-6.2" href="#section-6.2">6.2</a>. Aggregation Layer</span>
In a typical data center, aggregation switches interconnect many ToR
switches. Usually, there are multiple parallel aggregation switches,
serving the same group of ToRs to achieve load sharing. It is no
longer uncommon to see aggregation switches interconnecting hundreds
of ToR switches in large data centers.
<span class="grey">Narten, et al. Informational [Page 8]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-9" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
<span class="h3"><a class="selflink" id="section-6.3" href="#section-6.3">6.3</a>. Core</span>
Core switches provide connectivity between aggregation switches and
the main data center network. Core switches interconnect different
sets of racks and provide connectivity to data center gateways
leading to external networks.
<span class="h3"><a class="selflink" id="section-6.4" href="#section-6.4">6.4</a>. L3/L2 Topological Variations</span>
<span class="h4"><a class="selflink" id="section-6.4.1" href="#section-6.4.1">6.4.1</a>. L3 to Access Switches</span>
In this scenario, the L3 domain is extended all the way from the core
network to the access switches. Each rack enclosure consists of a
single L2 domain, which is confined to the rack. In general, there
are no significant ARP/ND scaling issues in this scenario, as the L2
domain cannot grow very large. Such a topology has benefits in
scenarios where servers attached to a particular access switch
generally run VMs that are confined to using a single subnet. These
VMs and the applications they host aren't moved (migrated) to other
racks that might be attached to different access switches (and
different IP subnets). A small server farm or very static compute
cluster might be well served via this design.
<span class="h4"><a class="selflink" id="section-6.4.2" href="#section-6.4.2">6.4.2</a>. L3 to Aggregation Switches</span>
When the L3 domain extends only to aggregation switches, hosts in any
of the IP subnets configured on the aggregation switches can be
reachable via L2 through any access switches if access switches
enable all the VLANs. Such a topology allows a greater level of
flexibility, as servers attached to any access switch can run any VMs
that have been provisioned with IP addresses configured on the
aggregation switches. In such an environment, VMs can migrate
between racks without IP address changes. The drawback of this
design, however, is that multiple VLANs have to be enabled on all
access switches and all access-facing ports on aggregation switches.
Even though L2 traffic is still partitioned by VLANs, the fact that
all VLANs are enabled on all ports can lead to broadcast traffic on
all VLANs that traverse all links and ports, which has the same
effect as one big L2 domain on the access-facing side of the
aggregation switch. In addition, the internal traffic itself might
have to cross different L2 boundaries, resulting in significant
ARP/ND load at the aggregation switches. This design provides a good
tradeoff between flexibility and L2 domain size. A moderate-sized
data center might utilize this approach to provide high-availability
services at a single location.
<span class="grey">Narten, et al. Informational [Page 9]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-10" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
<span class="h4"><a class="selflink" id="section-6.4.3" href="#section-6.4.3">6.4.3</a>. L3 in the Core Only</span>
In some cases, where a wider range of VM mobility is desired (i.e., a
greater number of racks among which VMs can move without IP address
changes), the L3 routed domain might be terminated at the core
routers themselves. In this case, VLANs can span multiple groups of
aggregation switches, which allows hosts to be moved among a greater
number of server racks without IP address changes. This scenario
results in the largest ARP/ND performance impact, as explained later.
A data center with very rapid workload shifting may consider this
kind of design.
<span class="h4"><a class="selflink" id="section-6.4.4" href="#section-6.4.4">6.4.4</a>. Overlays</span>
There are several approaches where overlay networks can be used to
build very large L2 networks to enable VM mobility. Overlay networks
using various L2 or L3 mechanisms allow interior switches/routers to
mask host addresses. In addition, L3 overlays can help the data
center designer control the size of the L2 domain and also enhance
the ability to provide multi-tenancy in data center networks.
However, the use of overlays does not eliminate traffic associated
with address resolution; it simply moves it to regular data traffic.
That is, address resolution is implemented in the overlay and is not
directly visible to the switches of the data center network.
A potential problem that arises in a large data center is that when a
large number of hosts communicate with their peers in different
subnets, all these hosts send (and receive) data packets to their
respective L2/L3 boundary nodes, as the traffic flows are generally
bidirectional. This has the potential to further highlight any
scaling problems. These L2/L3 boundary nodes have to process ARP/ND
requests sent from originating subnets and resolve physical (MAC)
addresses in the target subnets for what are generally bidirectional
flows. Therefore, for maximum flexibility in managing the data
center workload, it is often desirable to use overlays to place
related groups of hosts in the same topological subnet to avoid the
L2/L3 boundary translation. The use of overlays in the data center
network can be a useful design mechanism to help manage a potential
bottleneck at the L2/L3 boundary by redefining where that boundary
exists.
<span class="grey">Narten, et al. Informational [Page 10]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-11" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
<span class="h3"><a class="selflink" id="section-6.5" href="#section-6.5">6.5</a>. Factors That Affect Data Center Design</span>
<span class="h4"><a class="selflink" id="section-6.5.1" href="#section-6.5.1">6.5.1</a>. Traffic Patterns</span>
Expected traffic patterns play an important role in designing
appropriately sized access, aggregation, and core networks. Traffic
patterns also vary based on the expected use of the data center.
Broadly speaking, it is desirable to keep as much traffic as possible
on the access layer in order to minimize the bandwidth usage at the
aggregation layer. If the expected use of the data center is to
serve as a large web server farm, where thousands of nodes are doing
similar things and the traffic pattern is largely in and out of a
large data center, an access layer with EoR switches might be used,
as it minimizes complexity, allows for servers and databases to be
located in the same L2 domain, and provides for maximum density.
A data center that is expected to host a multi-tenant cloud hosting
service might have some completely unique requirements. In order to
isolate inter-customer traffic, smaller L2 domains might be
preferred, and though the size of the overall data center might be
comparable to the previous example, the multi-tenant nature of the
cloud hosting application requires a smaller and more
compartmentalized access layer. A multi-tenant environment might
also require the use of L3 all the way to the access-layer ToR
switch.
Yet another example of a workload with a unique traffic pattern is a
high-performance compute cluster, where most of the traffic is
expected to stay within the cluster but at the same time there is a
high degree of crosstalk between the nodes. This would once again
call for a large access layer in order to minimize the requirements
at the aggregation layer.
<span class="h4"><a class="selflink" id="section-6.5.2" href="#section-6.5.2">6.5.2</a>. Virtualization</span>
Using virtualization in the data center further serves to increase
the possible densities that can be achieved. However, virtualization
also further complicates the requirements on the access layer, as
virtualization restricts the scope of server placement in the event
of server failover resulting from hardware failures or server
migration for load balancing or other reasons.
Virtualization also can place additional requirements on the
aggregation switches in terms of address resolution table size and
the scalability of any address-learning protocols that might be used
on those switches. The use of virtualization often also requires the
use of additional VLANs for high-availability beaconing, which would
<span class="grey">Narten, et al. Informational [Page 11]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-12" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
need to span the entire virtualized infrastructure. This would
require the access layer to also span the entire virtualized
infrastructure.
<span class="h4"><a class="selflink" id="section-6.5.3" href="#section-6.5.3">6.5.3</a>. Summary</span>
The designs described in this section have a number of tradeoffs.
The "L3 to access switches" design described in <a href="#section-6.4.1">Section 6.4.1</a> is the
only design that constrains L2 domain size in a fashion that avoids
ARP/ND scaling problems. However, that design has limitations and
does not address some of the other requirements that lead to
configurations that make use of larger L2 domains. Consequently,
ARP/ND scaling issues are a real problem in practice.
<span class="h2"><a class="selflink" id="section-7" href="#section-7">7</a>. Problem Itemization</span>
This section articulates some specific problems or "pain points" that
are related to large data centers.
<span class="h3"><a class="selflink" id="section-7.1" href="#section-7.1">7.1</a>. ARP Processing on Routers</span>
One pain point with large L2 broadcast domains is that the routers
connected to the L2 domain may need to process a significant amount
of ARP traffic in some cases. In particular, environments where the
aggregate level of ARP traffic is very large may lead to a heavy ARP
load on routers. Even though the vast majority of ARP traffic may
not be aimed at that router, the router still has to process enough
of the ARP Request to determine whether it can safely be ignored.
The ARP algorithm specifies that a recipient must update its ARP
cache if it receives an ARP query from a source for which it has an
entry [<a href="./rfc0826" title=""Ethernet Address Resolution Protocol: Or converting network protocol addresses to 48.bit Ethernet address for transmission on Ethernet hardware"">RFC0826</a>].
ARP processing in routers is commonly handled in a "slow path"
software processor, rather than directly by a hardware Application-
Specific Integrated Circuit (ASIC) as is the case when forwarding
packets. Such a design significantly limits the rate at which ARP
traffic can be processed compared to the rate at which ASICs can
forward traffic. Current implementations at the time of this writing
can support ARP processing in the low thousands of ARP packets per
second. In some deployments, limitations on the rate of ARP
processing have been cited as being a problem.
To further reduce the ARP load, some routers have implemented
additional optimizations in their forwarding ASIC paths. For
example, some routers can be configured to discard ARP Requests for
target addresses other than those assigned to the router. That way,
the router's software processor only receives ARP Requests for
<span class="grey">Narten, et al. Informational [Page 12]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-13" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
addresses it owns and must respond to. This can significantly reduce
the number of ARP Requests that must be processed by the router.
Another optimization concerns reducing the number of ARP queries
targeted at routers, whether for address resolution or to validate
existing cache entries. Some routers can be configured to broadcast
periodic gratuitous ARPs [<a href="./rfc5227" title=""IPv4 Address Conflict Detection"">RFC5227</a>]. Upon receipt of a gratuitous
ARP, implementations mark the associated entry as "fresh", resetting
the aging timer to its maximum setting. Consequently, sending out
periodic gratuitous ARPs can effectively prevent nodes from needing
to send ARP Requests intended to revalidate stale entries for a
router. The net result is an overall reduction in the number of ARP
queries routers receive. Gratuitous ARPs, broadcast to all nodes in
the L2 broadcast domain, may in some cases also pre-populate ARP
caches on neighboring devices, further reducing ARP traffic. But it
is not believed that pre-population of ARP entries is supported by
most implementations, as the ARP specification [<a href="./rfc0826" title=""Ethernet Address Resolution Protocol: Or converting network protocol addresses to 48.bit Ethernet address for transmission on Ethernet hardware"">RFC0826</a>] recommends
only that pre-existing ARP entries be updated upon receipt of ARP
messages; it does not call for the creation of new entries when none
already exist.
Finally, another area concerns the overhead of processing IP packets
for which no ARP entry exists. Existing standards specify that one
or more IP packets for which no ARP entries exist should be queued
pending successful completion of the address resolution process
[<a href="./rfc1122" title=""Requirements for Internet Hosts - Communication Layers"">RFC1122</a>] [<a href="./rfc1812" title=""Requirements for IP Version 4 Routers"">RFC1812</a>]. Once an ARP query has been resolved, any queued
packets can be forwarded on. Again, the processing of such packets
is handled in the "slow path", effectively limiting the rate at which
a router can process ARP "cache misses", and is viewed as a problem
in some deployments today. Additionally, if no response is received,
the router may send the ARP/ND query multiple times. If no response
is received after a number of ARP/ND requests, the router needs to
drop any queued data packets and may send an ICMP destination
unreachable message as well [<a href="./rfc0792" title=""Internet Control Message Protocol"">RFC0792</a>]. This entire process can be
CPU intensive.
Although address resolution traffic remains local to one L2 network,
some data center designs terminate L2 domains at individual
aggregation switches/routers (e.g., see <a href="#section-6.4.2">Section 6.4.2</a>). Such routers
can be connected to a large number of interfaces (e.g., 100 or more).
While the address resolution traffic on any one interface may be
manageable, the aggregate address resolution traffic across all
interfaces can become problematic.
Another variant of the above issue has individual routers servicing a
relatively small number of interfaces, with the individual interfaces
themselves serving very large subnets. Once again, it is the
aggregate quantity of ARP traffic seen across all of the router's
<span class="grey">Narten, et al. Informational [Page 13]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-14" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
interfaces that can be problematic. This pain point is essentially
the same as the one discussed above, the only difference being
whether a given number of hosts are spread across a few large IP
subnets or many smaller ones.
When hosts in two different subnets under the same L2/L3 boundary
router need to communicate with each other, the L2/L3 router not only
has to initiate ARP/ND requests to the target's subnet, it also has
to process the ARP/ND requests from the originating subnet. This
process further adds to the overall ARP processing load.
<span class="h3"><a class="selflink" id="section-7.2" href="#section-7.2">7.2</a>. IPv6 Neighbor Discovery</span>
Though IPv6's Neighbor Discovery behaves much like ARP, there are
several notable differences that result in a different set of
potential issues. From an L2 perspective, an important difference is
that ND address resolution requests are sent via multicast, which
results in ND queries only being processed by the nodes for which
they are intended. Compared with broadcast ARPs, this reduces the
total number of ND packets that an implementation will receive.
Another key difference concerns revalidating stale ND entries. ND
requires that nodes periodically revalidate any entries they are
using, to ensure that bad entries are timed out quickly enough that
TCP does not terminate a connection. Consequently, some
implementations will send out "probe" ND queries to validate in-use
ND entries as frequently as every 35 seconds [<a href="./rfc4861" title=""Neighbor Discovery for IP version 6 (IPv6)"">RFC4861</a>]. Such probes
are sent via unicast (unlike in the case of ARP). However, on larger
networks, such probes can result in routers receiving many such
queries (i.e., many more than with ARP, which does not specify such
behavior). Unfortunately, the IPv4 mitigation technique of sending
gratuitous ARPs (as described in <a href="#section-7.1">Section 7.1</a>) does not work in IPv6.
The ND specification specifically states that gratuitous ND "updates"
cannot cause an ND entry to be marked "valid". Rather, such entries
are marked "probe", which causes the receiving node to (eventually)
generate a probe back to the sender, which in this case is precisely
the behavior that the router is trying to prevent!
Routers implementing Neighbor Unreachability Discovery (NUD) (for
neighboring destinations) will need to process neighbor cache state
changes such as transitioning entries from REACHABLE to STALE. How
this capability is implemented may impact the scalability of ND on a
router. For example, one possible implementation is to have the
forwarding operation detect when an ND entry is referenced that needs
to transition from REACHABLE to STALE, by signaling an event that
would need to be processed by the software processor. Such an
implementation could increase the load on the service processor in
<span class="grey">Narten, et al. Informational [Page 14]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-15" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
much the same way that high rates of ARP requests have led to
problems on some routers.
It should be noted that ND does not require the sending of probes in
all cases. <a href="./rfc4861#section-7.3.1">Section 7.3.1 of [RFC4861]</a> describes a technique whereby
hints from TCP can be used to verify that an existing ND entry is
working fine and does not need to be revalidated.
Finally, IPv6 and IPv4 are often run simultaneously and in parallel
on the same network, i.e., in dual-stack mode. In such environments,
the IPv4 and IPv6 issues enumerated above compound each other.
<span class="h3"><a class="selflink" id="section-7.3" href="#section-7.3">7.3</a>. MAC Address Table Size Limitations in Switches</span>
L2 switches maintain L2 MAC address forwarding tables for all sources
and destinations traversing the switch. These tables are populated
through learning and are used to forward L2 frames to their correct
destination. The larger the L2 domain, the larger the tables have to
be. While in theory a switch only needs to keep track of addresses
it is actively using (sometimes called "conversational learning"),
switches flood broadcast frames (e.g., from ARP), multicast frames
(e.g., from Neighbor Discovery), and unicast frames to unknown
destinations. Switches add entries for the source addresses of such
flooded frames to their forwarding tables. Consequently, MAC address
table size can become a problem as the size of the L2 domain
increases. The table size problem is made worse with VMs, where a
single physical machine now hosts many VMs (in the 10's today, but
growing rapidly as the number of cores per CPU increases), since each
VM has its own MAC address that is visible to switches.
When L3 extends all the way to access switches (see <a href="#section-6.4.1">Section 6.4.1</a>),
the size of MAC address tables in switches is not generally a
problem. When L3 extends only to aggregation switches (see
<a href="#section-6.4.2">Section 6.4.2</a>), however, MAC table size limitations can be a real
issue.
<span class="h2"><a class="selflink" id="section-8" href="#section-8">8</a>. Summary</span>
This document has outlined a number of issues related to address
resolution in large data centers. In particular, this document has
described different scenarios where such issues might arise and what
these potential issues are, along with outlining fundamental factors
that cause them. It is hoped that describing specific pain points
will facilitate a discussion as to whether they should be addressed
and how best to address them.
<span class="grey">Narten, et al. Informational [Page 15]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-16" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
<span class="h2"><a class="selflink" id="section-9" href="#section-9">9</a>. Acknowledgments</span>
This document has been significantly improved by comments from Manav
Bhatia, David Black, Stewart Bryant, Ralph Droms, Linda Dunbar,
Donald Eastlake, Wesley Eddy, Anoop Ghanwani, Joel Halpern, Sue
Hares, Pete Resnick, Benson Schliesser, T. Sridhar, and Lucy Yong.
Igor Gashinsky deserves additional credit for highlighting some of
the ARP-related pain points and for clarifying the difference between
what the standards require and what some router vendors have actually
implemented in response to operator requests.
<span class="h2"><a class="selflink" id="section-10" href="#section-10">10</a>. Security Considerations</span>
This document does not create any security implications nor does it
have any security implications. The security vulnerabilities in ARP
are well known, and this document does not change or mitigate them in
any way. Security considerations for Neighbor Discovery are
discussed in [<a href="./rfc4861" title=""Neighbor Discovery for IP version 6 (IPv6)"">RFC4861</a>] and [<a href="./rfc6583" title=""Operational Neighbor Discovery Problems"">RFC6583</a>].
<span class="h2"><a class="selflink" id="section-11" href="#section-11">11</a>. Informative References</span>
[<a id="ref-RFC0792">RFC0792</a>] Postel, J., "Internet Control Message Protocol", STD 5,
<a href="./rfc792">RFC 792</a>, September 1981.
[<a id="ref-RFC0826">RFC0826</a>] Plummer, D., "Ethernet Address Resolution Protocol: Or
converting network protocol addresses to 48.bit Ethernet
address for transmission on Ethernet hardware", STD 37,
<a href="./rfc826">RFC 826</a>, November 1982.
[<a id="ref-RFC1122">RFC1122</a>] Braden, R., "Requirements for Internet Hosts -
Communication Layers", STD 3, <a href="./rfc1122">RFC 1122</a>, October 1989.
[<a id="ref-RFC1812">RFC1812</a>] Baker, F., "Requirements for IP Version 4 Routers",
<a href="./rfc1812">RFC 1812</a>, June 1995.
[<a id="ref-RFC4861">RFC4861</a>] Narten, T., Nordmark, E., Simpson, W., and H. Soliman,
"Neighbor Discovery for IP version 6 (IPv6)", <a href="./rfc4861">RFC 4861</a>,
September 2007.
[<a id="ref-RFC5227">RFC5227</a>] Cheshire, S., "IPv4 Address Conflict Detection", <a href="./rfc5227">RFC 5227</a>,
July 2008.
[<a id="ref-RFC6583">RFC6583</a>] Gashinsky, I., Jaeggli, J., and W. Kumari, "Operational
Neighbor Discovery Problems", <a href="./rfc6583">RFC 6583</a>, March 2012.
<span class="grey">Narten, et al. Informational [Page 16]</span></pre>
<hr class='noprint'/><!--NewPage--><pre class='newpage'><span id="page-17" ></span>
<span class="grey"><a href="./rfc6820">RFC 6820</a> ARMD-Problems January 2013</span>
Authors' Addresses
Thomas Narten
IBM Corporation
3039 Cornwallis Ave.
PO Box 12195
Research Triangle Park, NC 27709-2195
USA
EMail: narten@us.ibm.com
Manish Karir
Merit Network Inc.
EMail: mkarir@merit.edu
Ian Foo
Huawei Technologies
EMail: Ian.Foo@huawei.com
Narten, et al. Informational [Page 17]
</pre>
|