RFC 2889

Benchmarking Methodology for LAN Switching Devices

๐Ÿ“… published August 2000, from ietf

RFC 2889 ๐Ÿ’– Benchmarking Methodology for LAN Switching Devices

Network Working Group ยท Request for Comments: 2889 ยท August 2000 ๐ŸŽ€

Authors: R. Mandeville (CQOS Inc.) and J. Perser (Spirent Communications) ๐Ÿ‘ฏโ€โ™€๏ธ

Category: Informational ๐Ÿ“š This one gives info to the Internet community. It doesn't set an Internet standard.

Obsoletes / Updates: This title block doesn't list any RFCs that it obsoletes or updates. ๐ŸŒธ


Status of this Memo โœจ

okay so this memo is informational, lowkey a reference doc, not a standard ๐Ÿงš Anyone can read it and it's unlimited to distribute. no cap ๐Ÿ’…

Copyright (C) The Internet Society (2000). All Rights Reserved. ๐Ÿ’œ

Table of Contents ๐Ÿ—‚๏ธ

1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  2
2. Requirements . . . . . . . . . . . . . . . . . . . . . . . . .  2
3. Test setup . . . . . . . . . . . . . . . . . . . . . . . . . .  2
4. Frame formats and sizes  . . . . . . . . . . . . . . . . . . .  3
5. Benchmarking Tests . . . . . . . . . . . . . . . . . . . . . .  3
   5.1  Fully meshed throughput, frame loss and forwarding rates   4
   5.2  Partially meshed one-to-many/many-to-one  . . . . . . . .  7
   5.3  Partially meshed multiple devices . . . . . . . . . . . . 10
   5.4  Partially meshed unidirectional traffic . . . . . . . . . 13
   5.5  Congestion Control  . . . . . . . . . . . . . . . . . . . 16
   5.6  Forward Pressure and Maximum Forwarding Rate  . . . . . . 19
   5.7  Address caching capacity  . . . . . . . . . . . . . . . . 22
   5.8  Address learning rate . . . . . . . . . . . . . . . . . . 25
   5.9  Errored frames filtering. . . . . . . . . . . . . . . . . 27
   5.10 Broadcast frame Forwarding and Latency  . . . . . . . . . 28
6. Security Considerations  . . . . . . . . . . . . . . . . . . . 30
7. References . . . . . . . . . . . . . . . . . . . . . . . . . . 30
8. Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . 30
   Appendix A: Formulas . . . . . . . . . . . . . . . . . . . . . 31
   Appendix B: Generating Offered Load  . . . . . . . . . . . . . 32
   Full Copyright Statement . . . . . . . . . . . . . . . . . . . 35

1. Introduction ๐ŸŒˆ

okay bestie, this doc is basically the methodology for benchmarking LAN switching devices ๐Ÿ“ It takes the playbook from RFC 2544 [3] and extends it to switches.

This RFC is mostly about devices that switch frames at the Medium Access Control (MAC) layer. It covers how to benchmark forwarding performance, congestion control, latency, address handling and filtering. It also explains how to report the test results in specific formats. ๐Ÿ“Š

There's a companion doc, "Benchmarking Terminology for LAN Switching Devices" [2], that defines a lot of the terms used here. You SHOULD read the terminology doc before you try to use this one. ๐Ÿ“–โœจ

2. Requirements ๐ŸŽ€

Before you use this doc, you SHOULD check out RFC 1242 [1], RFC 2285 [2], and RFC 2544 [3]. ๐Ÿง 

For clarity and continuity, this RFC uses the template for benchmarking tests from Section 26 of RFC 2544. ๐Ÿชž

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119. ๐Ÿ”‘

3. Test setup ๐Ÿงš

This doc extends the general test setup from section 6 of RFC 2544 [3] so it works for LAN switches. ๐Ÿ› ๏ธ RFC 2544 mostly covers non-meshed traffic, where the input and output interfaces are split into mutually exclusive sending and receiving pairs. With fully meshed traffic, though, every interface on the DUT/SUT is set up to both receive and transmit frames to all the other interfaces under test. it's giving full mesh energy ๐Ÿ•ธ๏ธโœจ

Before each test run, the DUT/SUT MUST learn the MAC addresses used in the test, and address learning SHOULD be verified. Addresses that aren't learned get forwarded as flooded frames, and that cuts down on the number of correctly forwarded frames ๐Ÿ˜ญ The rate at which address learning frames are offered may need to drop to 50 frames per second or even lower so the learning actually succeeds. The DUT/SUT address aging time SHOULD be set to something greater than the learning phase of the test, plus the trial duration, plus any configuration time the testing device needs. Addresses SHOULD NOT age out until the trial duration is finished. It can take more than one learning trial before an address gets associated with a port. ๐Ÿซถ

If a DUT/SUT uses a hashing algorithm with address learning, it may not learn the addresses it needs to run the tests. ๐Ÿ™ˆ The format of the MAC addresses MUST be adjustable, so the address mapping can be rearranged and the DUT/SUT learns all of the addresses. ๐Ÿ”ฅ

4. Frame formats and sizes ๐Ÿ’…

The test frame format is defined in section 8 of RFC 2544 [3]. The frame MUST contain a unique signature field in the UDP DATA area of the Test Frame (see Appendix C [3]). The signature field's whole job is to filter out frames that aren't part of the offered load. ๐Ÿ—‘๏ธ

The signature field MUST be unique enough to identify frames that didn't come from the DUT/SUT. It SHOULD be located after byte 56 (collision window [4]) or at the end of the frame. The length, contents and detection method are not defined in this memo. ๐Ÿคทโ€โ™€๏ธ

The signature field MAY have a unique identifier per port. That helps filter out misforwarded frames. It's possible for a DUT/SUT to strip off the MAC layer, send the frame through its switching matrix, and transmit it with the correct destination MAC address but the wrong payload. ๐Ÿ˜ณ

For frame sizes, check section 9 of RFC 2544 [3]. ๐Ÿ“

There are three possible frame formats for layer 2 Ethernet switches: standard MAC Ethernet frames, standard MAC Ethernet frames with vendor-specific tags added, and IEEE 802.3ac frames tagged to accommodate 802.1p&Q. ๐Ÿท๏ธ The two types of tagged frames can go over the standard maximum length of 1518 bytes, and some DUT/SUT interface controllers might not accept them. It's recommended to check that the DUT/SUT is compatible with tagged frames before you start testing. โœ…

Devices switching tagged frames over 1518 bytes will have a different maximum forwarding rate than they do with untagged frames. ๐Ÿ“‰

5. Benchmarking Tests ๐ŸŽฏ

These tests offer objectives, procedures, and reporting formats for benchmarking LAN switching devices. ๐Ÿ’œ

5.1. Fully meshed throughput, frame loss and forwarding rates ๐Ÿ•ธ๏ธ

5.1.1. Objective ๐ŸŽฏ

The goal is to determine the throughput, frame loss and forwarding rates of DUT/SUTs that get fully meshed traffic, as defined in RFC 2285 [2]. ๐Ÿ’–

5.1.2. Setup Parameters ๐ŸŽ›๏ธ

When you offer full meshed traffic, the following parameters MUST be defined. Each one gets configured with these considerations:

  • Frame Size: The recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per section 9 of RFC 2544 [3]. The four CRC bytes are included in the frame size you specify. ๐Ÿ“ฆ
  • Interframe Gap (IFG): The IFG between frames inside a burst MUST be at the minimum the standard specifies for the medium being tested: 9.6 us for 10Mbps Ethernet, 960 ns for 100Mbps Ethernet, and 96 ns for 1 Gbps Ethernet. โฑ๏ธ
  • Duplex mode: Half duplex or full duplex. ๐Ÿ”
  • ILoad: The intended load per port is expressed as a percentage of the medium's maximum theoretical load, no matter the traffic orientation or duplex mode. Some test configurations will theoretically over-subscribe the DUT/SUT. ๐Ÿ“ˆ
  • In half duplex, an ILoad over 50% will over-subscribe the DUT/SUT. ๐Ÿšจ
  • Burst Size: The burst size is the number of frames sent back-to-back at the minimum legal IFG [4] before transmission pauses to receive frames. Burst sizes SHOULD vary between 1 and 930 frames. A burst size of 1 will simulate constant load [1]. ๐ŸŒŠ
  • Addresses per port: This is how many addresses are being tested for each port. The number of addresses SHOULD be a binary exponential (i.e. 1, 2, 4, 8, 16, 32, 64, 128, 256, ...). The recommended value is 1. ๐Ÿ”ข
  • Trial Duration: The recommended trial duration is 30 seconds. The trial duration SHOULD be adjustable between 1 and 300 seconds. โณ

5.1.3. Procedure ๐Ÿงฉ

All ports on the tester MUST transmit test frames in either a Frame Based or Time Based mode (Appendix B). All ports SHOULD start transmitting within 1% of the trial duration. For a 30-second trial duration, all ports SHOULD have started transmitting frames within 300 milliseconds of each other. ๐Ÿšฆ

Each port in the test MUST send test frames to all other ports in a round robin type fashion. The sequence of addresses MUST NOT change when congestion control is applied. The table below shows how each port in a test MUST transmit test frames to all the other ports in the test. In this example there are six ports with 1 address per port: ๐Ÿ”„

Source Port       Destination Ports (in order of transmission)

Port #1           2       3       4       5       6       2...
Port #2           3       4       5       6       1       3...
Port #3           4       5       6       1       2       4...
Port #4           5       6       1       2       3       5...
Port #5           6       1       2       3       4       6...
Port #6           1       2       3       4       5       1...

As the table shows, every transmit opportunity has an equal distribution of destination addresses. That keeps the test balanced, so no destination port gets overloaded by the test algorithm, and all the ports stay equally and fully loaded the whole time. Not following this algorithm exactly will produce inconsistent results. โš–๏ธ

For tests using multiple addresses per port, the actual port destinations are the same as above, and the actual source/destination address pairs SHOULD be chosen randomly to exercise the DUT/SUT's ability to do address lookups. ๐ŸŽฒ

For every address, learning frames MUST be sent to the DUT/SUT so it can update its address tables properly. ๐Ÿ“

5.1.4. Measurements ๐Ÿ“

Each port should receive the same number of test frames that it transmitted. Each receiving port MUST categorize the frames, then count them into one of two groups:

  • 1.) Received Frames: received frames MUST have the correct destination MAC address and SHOULD match a signature field. ๐Ÿ“ฅ
  • 2.) Flood count [2]. ๐ŸŒŠ

Any frame that originates from the DUT/SUT (spanning tree, SNMP, RIP, ...) MUST not be counted as a received frame. Frames originating from the DUT/SUT MAY be counted as flooded frames or not counted at all. ๐Ÿ™…โ€โ™€๏ธ

Frame loss rate of the DUT/SUT SHOULD be reported as defined in section 26.3 [3], with these notes: frame loss rate SHOULD be measured at the end of the trail duration. For this measurement only, the term "rate" doesn't imply units like "per second." ๐Ÿงพ

5.1.4.1. Throughput ๐Ÿ†

Throughput measurement is defined in section 26.1 [3]. A search algorithm is used to find the maximum Oload [2] with a zero frame loss rate [1]. The algorithm MUST adjust Iload to find the throughput. ๐Ÿ’œโœจ

5.1.4.2. Forwarding Rate

okay so forwarding rate (FR) of the DUT/SUT SHOULD be reported as the number of test frames per second that the device is observed to successfully forward to the correct destination interface in response to a specified Oload ๐Ÿ’… The Oload MUST also be cited โœจ

Forwarding rate at maximum offered load (FRMOL) MUST be reported as the number of test frames per second that a device can successfully transmit to the correct destination interface in response to the MOL, as defined in section 3.6 [2] ๐ŸŽ€ The MOL MUST also be cited ๐Ÿ’–

Maximum forwarding rate (MFR) MUST be reported as the highest forwarding rate of a DUT/SUT taken from an iterative set of forwarding rate measurements ๐Ÿ”ฅ That iterative set is made by adjusting Iload, and the Oload applied to the device MUST also be cited ๐Ÿซถ

5.1.5. Reporting format

the results for these tests SHOULD be shown in a graph ๐Ÿ“Š The x coordinate SHOULD be the frame size and the y coordinate SHOULD be the test results โœจ There SHOULD be at least two lines on the graph, one plotting the theoretical results and one plotting the test results ๐Ÿฆ‹

to check how well the DUT/SUT can switch traffic while doing lots of different address lookups, the number of addresses per port MAY be increased across a series of tests ๐Ÿงš

5.2. Partially meshed one-to-many/many-to-one

5.2.1. Objective

this test is all about throughput when transmitting from and to multiple ports and to or from one port ๐ŸŒธ Just like the fully meshed throughput test, it measures how well the DUT can switch frames without frame loss ๐Ÿ’œ The results can show how well the DUT uses an Ethernet port when it's switching traffic that comes in from multiple Ethernet ports ๐Ÿ‘‘

5.2.2. Setup Parameters

when offering bursty meshed traffic, the following parameters MUST be defined ๐Ÿ“ Each parameter gets configured with the following considerations:

  • Frame Size: the recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per RFC 2544 section 9 [3] ๐Ÿ“ The four CRC bytes are included in the frame size specified.
  • Traffic Direction: traffic can be generated in one direction, the reverse direction, or both directions โ†”๏ธ
  • Interframe Gap (IFG): the IFG between frames inside a burst MUST be at the minimum specified by the standard of the medium being tested: 9.6 us for 10Mbps Ethernet, 960 ns for 100Mbps Ethernet, and 96 ns for 1 Gbps Ethernet ๐ŸŒˆ
  • Duplex mode: half duplex or full duplex ๐ŸŽ€
  • ILoad: the intended load per port is expressed as a percentage of the medium's maximum theoretical load, no matter the traffic orientation or duplex mode ๐Ÿ’… Certain test configurations will theoretically over-subscribe the DUT/SUT ๐Ÿ˜ญ
    • In half duplex bidirectional traffic, an ILoad over 50% will over-subscribe the DUT/SUT ๐Ÿ’€
  • Burst Size: the burst size is how many frames get sent back-to-back at the minimum legal IFG [4] before transmission pauses to receive frames ๐Ÿฆ‹ Burst sizes SHOULD vary between 1 and 930 frames ๐Ÿ”ฅ A burst size of 1 will simulate constant load [1] โœจ
  • Addresses per port: this is how many addresses are being tested for each port ๐ŸŒธ The number of addresses SHOULD be a binary exponential (i.e. 1, 2, 4, 8, 16, 32, 64, 128, 256, ...) ๐Ÿ’œ The recommended value is 1 ๐Ÿ’–
  • Trial Duration: the recommended Trial Duration is 30 seconds โฑ๏ธ The Trial duration SHOULD be adjustable between 1 and 300 seconds ๐Ÿซถ

5.2.3. Procedure

okay the procedure: all ports on the tester MUST transmit test frames in either a Frame Based or Time Based mode (Appendix B) ๐Ÿงš Depending on the traffic direction, some or all of the ports will be transmitting ๐ŸŒˆ All ports SHOULD start transmitting their frames within 1% of the trial duration ๐Ÿซถ For a 30 second trial duration, all ports SHOULD have started transmitting frames within 300 milliseconds of each other โฑ๏ธ

test frames sent from the Many Ports MUST be destined for the One port ๐Ÿ’… Test frames sent from the One Port MUST be destined for the Many ports in a round robin type fashion ๐ŸŽ€ See section 5.1.3 for a description of the round robin fashion ๐Ÿฆ‹

for tests using multiple addresses per port, the actual port destinations are the same as described above ๐ŸŒธ The actual source/destination address pairs SHOULD be chosen randomly so the DUT/SUT's ability to perform address lookups gets a real workout ๐Ÿ’œ

        +----------+
        |          |
        |   Many   | <--------
        |          |          \
        +----------+           \
                                \
        +----------+             \               +-------------+
        |          |              ------------>  |             |
        |   Many   |  <----------------------->  |     One     |
        |          |              ------------>  |             |
        +----------+             /               +-------------+
                                /
        +----------+           /
        |          |          /
        |   Many   |  <-------
        |          |
        +----------+

for every address, the testing device MUST send learning frames so the DUT/SUT can update its address tables properly ๐Ÿง 

5.2.4. Measurements

each receiving port MUST sort, then count, the frames into one of two groups ๐Ÿ“Š

  1. Received Frames: received frames MUST have the correct destination MAC address and SHOULD match a signature field โœจ
  2. Flood count [2] ๐ŸŒŠ

any frame originating from the DUT/SUT MUST not be counted as a received frame ๐Ÿ™ˆ Frames originating from the DUT/SUT MAY be counted as flooded frames or not counted at all ๐Ÿซถ

Forwarding rate (FR) of the DUT/SUT SHOULD be reported as the number of test frames per second that the device is observed to successfully transmit to the correct destination interface in response to a specified Oload ๐Ÿ’… The Oload MUST also be cited โœจ

Forwarding rate at maximum offered load (FRMOL) MUST be reported as the number of test frames per second that a device can successfully transmit to the correct destination interface in response to the MOL, as defined in section 3.6 [2] ๐ŸŽ€ The MOL MUST also be cited ๐Ÿ’–

Maximum forwarding rate (MFR) MUST be reported as the highest forwarding rate of a DUT/SUT taken from an iterative set of forwarding rate measurements ๐Ÿ”ฅ That iterative set is made by adjusting Iload, and the Oload applied to the device MUST also be cited ๐Ÿซถ

5.2.5. Reporting Format

the results for these tests SHOULD be shown in a graph ๐Ÿ“Š The x coordinate SHOULD be the frame size and the y coordinate SHOULD be the test results โœจ There SHOULD be at least two lines on the graph, one plotting the theoretical results and one plotting the test results ๐Ÿฆ‹

to check how well the DUT/SUT can switch traffic while doing lots of different address lookups, the number of addresses per port MAY be increased across a series of tests ๐Ÿงš

5.3. Partially meshed multiple devices

5.3.1. Objective

this one checks throughput, frame loss and forwarding rates for two switching devices with multiple ports and one high speed backbone uplink (Gigabit Ethernet, ATM, SONET) ๐Ÿš€

5.3.2. Setup Parameters

when offering bursty partially meshed traffic, the following parameters MUST be defined ๐Ÿ“ Each variable gets configured with the following considerations:

  • Frame Size: the recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per RFC 2544 section 9 [3] ๐Ÿ“ The four CRC bytes are included in the frame size specified.
  • Interframe Gap (IFG): the IFG between frames inside a burst MUST be at the minimum specified by the standard of the medium being tested: 9.6 us for 10Mbps Ethernet, 960 ns for 100Mbps Ethernet, and 96 ns for 1 Gbps Ethernet ๐ŸŒˆ
  • Duplex mode: half duplex or full duplex ๐ŸŽ€
  • ILoad: the intended load per port is expressed as a percentage of the medium's maximum theoretical load, no matter the traffic orientation or duplex mode ๐Ÿ’… Certain test configurations will theoretically over-subscribe the DUT/SUT ๐Ÿ˜ญ
    • In half duplex, an ILoad over 50% will over-subscribe the DUT/SUT ๐Ÿ’€
  • Burst Size: the burst size is how many frames get sent back-to-back at the minimum legal IFG [4] before transmission pauses to receive frames ๐Ÿฆ‹ Burst sizes SHOULD vary between 1 and 930 frames ๐Ÿ”ฅ A burst size of 1 will simulate constant load [1] โœจ
  • Addresses per port: this is how many addresses are being tested for each port ๐ŸŒธ The number of addresses SHOULD be a binary exponential (i.e. 1, 2, 4, 8, 16, 32, 64, 128, 256, ...) ๐Ÿ’œ The recommended value is 1 ๐Ÿ’–
  • Trial Duration: the recommended Trial Duration is 30 seconds โฑ๏ธ The Trial duration SHOULD be adjustable between 1 and 300 seconds ๐Ÿซถ
  • Local Traffic: a Boolean value of ON or OFF ๐Ÿ”€ The frame sequence algorithm MAY be altered to remove local traffic ๐Ÿ™Œ With local traffic ON, the algorithm is exactly the same as a fully meshed throughput test ๐Ÿ’– With local traffic OFF, the port sends frames to all other ports on the other side of the backbone uplink in a round robin type fashion ๐Ÿงš

5.3.3. Procedure

all ports on the tester MUST transmit test frames in either a Frame Based or Time Based mode (Appendix B) ๐Ÿงš All ports SHOULD start transmitting their frames within 1% of the trial duration ๐Ÿซถ For a 30 second trial duration, all ports SHOULD have started transmitting frames within 300 milliseconds of each other โฑ๏ธ

each port in the test MUST send test frames to all other ports in a round robin type fashion, as defined in section 5.1.3 ๐ŸŽ€ Local traffic MAY be removed from the round robin list so the entire load goes across the backbone uplink ๐Ÿš€

for tests using multiple addresses per port, the actual port destinations are the same as described above ๐ŸŒธ The actual source/destination address pairs SHOULD be chosen randomly so the DUT/SUT's ability to perform address lookups gets tested properly ๐Ÿ’œ

for every address, the testing device MUST send learning frames so the DUT/SUT can update its address tables properly ๐Ÿง 

to check how well the DUT/SUT can switch traffic while doing lots of different address lookups, the number of addresses per port MAY be increased across a series of tests ๐Ÿงš

5.3.4. Measurements

each receiving port MUST sort, then count, the frames into one of two groups ๐Ÿ“Š

  1. Received frames: received frames MUST have the correct destination MAC address and SHOULD match a signature field โœจ
  2. Flood count [2] ๐ŸŒŠ

any frame originating from the DUT/SUT MUST not be counted as a received frame ๐Ÿ™ˆ Frames originating from the DUT/SUT MAY be counted as flooded frames or not counted at all ๐Ÿซถ

Frame loss rate of the DUT/SUT SHOULD be reported as defined in section 26.3 [3], with the following notes: Frame loss rate SHOULD be measured at the end of the trial duration ๐Ÿ The term "rate", for this measurement only, does not imply units in the fashion of "per second" ๐Ÿ’…

5.3.4.1. Throughput

throughput measurement is defined in section 26.1 [3] ๐ŸŒŸ A search algorithm is used to find the maximum Oload [2] with a zero Frame loss rate [1] ๐Ÿ” The algorithm MUST adjust Iload to find the throughput ๐Ÿ‘‘

5.3.4.2 Forwarding rate

okay so forwarding rate (FR) is basically how many test frames per second the DUT/SUT actually forwards to the correct destination interface for a given Oload ๐Ÿ’– this SHOULD get reported, and you MUST also cite the Oload you used. no skipping that part bestie ๐Ÿซถ

forwarding rate at maximum offered load (FRMOL) is the frames-per-second number a device can successfully push out to the correct destination in response to the MOL from section 3.6 [2] โœจ the MOL MUST be cited too, obvi.

maximum forwarding rate (MFR) is the highest forwarding rate you get from a whole bunch of forwarding rate measurements ๐Ÿฆ‹ to build that set, you keep adjusting Iload, and the Oload applied to the device MUST also be cited. main character energy for sure ๐Ÿ‘‘

5.3.5 Reporting format

these results SHOULD be shown as a graph ๐Ÿ“Š the x coordinate SHOULD be the frame size and the y coordinate SHOULD be the test results. there SHOULD be at least two lines on that graph: one for the theoretical numbers and one for the actual test results ๐ŸŒˆ

and if you wanna check how well the DUT/SUT switches traffic while it's doing a ton of different address lookups ๐Ÿงš the number of addresses per port MAY be increased across a series of tests. iykyk ๐Ÿ’œ

5.4 Partially meshed unidirectional traffic

5.4.1 Objective

this one is about finding the throughput of the DUT/SUT when it's hit with a bunch of unidirectional streams ๐ŸŒธ like, half the ports are sending frames to the other half of the ports. it's giving traffic jam but make it organized ๐Ÿ’…

5.4.2 Setup Parameters

okay so these parameters MUST be defined ๐Ÿ“‹ each variable has its own little rules, so read carefully bestie ๐ŸŽ€

  • Frame Size: recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per RFC 2544 section 9 [3]. the four CRC bytes are counted inside the frame size you pick โœจ
  • Interframe Gap (IFG): the IFG between frames inside a burst MUST be the minimum the standard says for the medium being tested. that's 9.6 us for 10Mbps Ethernet, 960 ns for 100Mbps Ethernet, and 96 ns for 1 Gbps Ethernet ๐Ÿ“
  • Duplex mode: half duplex or full duplex ๐Ÿฆ‹
  • ILoad: the intended load per port, written as a percentage of the medium's maximum theoretical load, no matter the traffic orientation or duplex mode ๐Ÿ’– some test setups will theoretically over-subscribe the DUT/SUT, but ILoad will not over-subscribe the DUT/SUT in this test ๐Ÿ™ˆ
  • Burst Size: this is how many frames get sent back-to-back at the minimum legal IFG [4] before the transmitter pauses to receive frames ๐Ÿญ burst sizes SHOULD vary between 1 and 930 frames. a burst size of 1 will simulate constant load [1] ๐Ÿ’œ
  • Addresses per port: how many addresses are being tested for each port ๐ŸŒˆ the number of addresses SHOULD be a binary exponential (like 1, 2, 4, 8, 16, 32, 64, 128, 256, ...). the recommended value is 1 ๐ŸŽ€
  • Trial Duration: the recommended Trial Duration is 30 seconds โฑ๏ธ the trial duration SHOULD be adjustable between 1 and 300 seconds โœจ

5.4.3 Procedure

so ports don't send and receive test frames at the same time ๐Ÿ™Œ that means there should be no collisions unless the DUT is misforwarding frames, generating flooded or Spanning-Tree frames, or is enabling some flow control mechanism ๐Ÿšฆ each port is either transmitting or receiving, never both. the transmitting ports send test frames to addresses that belong to each of the receiving ports, and boom, you've got a unidirectional mesh ๐Ÿ•ธ๏ธโœจ

all ports on the tester MUST transmit test frames in either a Frame Based or Time Based mode (Appendix B) ๐Ÿ’… all ports SHOULD start transmitting within 1% of the trial duration. for a 30 second trial duration, all ports SHOULD have started transmitting frames within 300 milliseconds of each other โฐ

each transmitting port MUST send frames to all of the receiving ports in a round robin kind of way ๐Ÿ” the sequence of addresses MUST NOT change when congestion control is applied. here's the table showing how each port has to send test frames to all the other ports. in this 8 port example, ports 1 through 4 are transmitting and ports 5 through 8 are receiving, with 1 address per port ๐Ÿซถ

Source Port, then Destination Ports (in order of transmission)

Port #1              5       6       7       8       5       6...
Port #2              6       7       8       5       6       7...
Port #3              7       8       5       6       7       8...
Port #4              8       5       6       7       8       5...

see how every transmit opportunity gives each destination an equal share? ๐Ÿ’– that keeps things balanced, so no single destination port gets overloaded by the algorithm and all the receiving ports are equally and fully loaded the whole time. if you don't follow this algorithm exactly, you'll product inconsistent results ๐Ÿ’€

for tests with multiple addresses per port, the actual port destinations stay the same as above, but the source/destination address pairs SHOULD be picked randomly to really test the DUT/SUT's address lookups ๐ŸŽฒ

for every address, the testing device MUST send learning frames so the DUT/SUT can load its address tables properly ๐Ÿง  the address table's aging time SHOULD be set way longer than the learning time and trial duration combined โณ if the address table ages out mid-test, the results will show a lower performing DUT/SUT, so don't let that happen bestie ๐Ÿ˜ญ

and again, to measure how well the DUT/SUT switches while doing many different address lookups ๐Ÿงš the number of addresses per port MAY be increased in a series of tests ๐Ÿ’œ

5.4.4 Measurements

each receiving port MUST sort and then count frames into one of two groups ๐Ÿ—‚๏ธ

  1. Received Frames: received frames MUST have the correct destination MAC address and SHOULD match a signature field โœจ
  2. Flood count [2].

any frame that comes from the DUT/SUT MUST not be counted as a received frame ๐Ÿ™…โ€โ™€๏ธ frames originating from the DUT/SUT MAY be counted as flooded frames, or not counted at all ๐ŸŒธ

the frame loss rate of the DUT/SUT SHOULD be reported as defined in section 26.3 [3], with a couple of notes ๐Ÿ“ the frame loss rate SHOULD be measured at the end of the trial duration. and the word "rate" here, just for this measurement, doesn't mean "per second" ๐Ÿ™ˆ

5.4.4.1 Throughput

throughput is defined in section 26.1 [3] ๐Ÿฆ‹ a search algorithm finds the maximum Oload [2] with a zero frame loss rate [1]. the algorithm MUST adjust Iload to find the throughput ๐Ÿ’–

5.4.4.2 Forwarding rate

forwarding rate (FR) of the DUT/SUT SHOULD be reported as the number of test frames per second that the device is observed to successfully forward to the correct destination interface in response to a specified Oload ๐Ÿ’… the Oload MUST also be cited.

forwarding rate at maximum offered load (FRMOL) MUST be reported as the number of test frames per second that a device can successfully transmit to the correct destination interface in response to the MOL as defined in section 3.6 [2] โœจ the MOL MUST also be cited.

maximum forwarding rate (MFR) MUST be reported as the highest forwarding rate of a DUT/SUT taken from an iterative set of forwarding rate measurements ๐Ÿ‘‘ those measurements are made by adjusting Iload, and the Oload applied to the device MUST also be cited.

5.4.5 Reporting format

these results SHOULD be reported as a graph ๐Ÿ“Š the x coordinate SHOULD be the frame size and the y coordinate SHOULD be the test results. there SHOULD be at least two lines on the graph, one for the theoretical numbers and one for the test results ๐ŸŒˆ

and once more, to measure the DUT/SUT's ability to switch traffic while doing lots of different address lookups ๐Ÿงš the number of addresses per port MAY be increased in a series of tests ๐Ÿ’œ

5.5 Congestion Control

5.5.1 Objective

this one is all about how a DUT handles congestion ๐Ÿšจ does the device actually implement congestion control? and does congestion on one port spill over and mess with a port that's totally fine? this procedure figures out if Head of Line Blocking and/or Backpressure are showing up ๐Ÿ˜ญ๐Ÿ”ฅ

5.5.2 Setup Parameters

the following parameters MUST be defined ๐Ÿ“‹ each variable comes with its own considerations, so pay attention bestie ๐ŸŽ€

  • Frame Size: recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per RFC 2544 section 9 [3]. the four CRC bytes are included in the frame size specified โœจ
  • Interframe Gap (IFG): the IFG between frames inside a burst MUST be the minimum the standard specifies for the medium being tested: 9.6 us for 10Mbps Ethernet, 960 ns for 100Mbps Ethernet, and 96 ns for 1 Gbps Ethernet ๐Ÿ“
  • Duplex mode: half duplex or full duplex ๐Ÿฆ‹
  • Addresses per port: how many addresses are being tested for each port ๐ŸŒˆ the number of addresses SHOULD be a binary exponential (like 1, 2, 4, 8, 16, 32, 64, 128, 256, ...). the recommended value is 1 ๐ŸŽ€
  • Trial Duration: the recommended Trial Duration is 30 seconds โฑ๏ธ the trial duration SHOULD be adjustable between 1 and 300 seconds โœจ

that's the whole vibe for this part bestie, more to come ๐Ÿฆ‹๐Ÿ’œ

5.5.3 Procedure

okay so bestie, this test MUST consist of a multiple of four ports, all with the same MOL ๐Ÿ’…โœจ Four ports are REQUIRED, and you MAY expand in increments of four to fully flex on the DUT/SUT ๐Ÿฆ‹ Each group of four is a test block with two source transmitters and two receivers. Here's the traffic flow, and it's giving main character energy:

        +----------+   50 % MOL                  +-------------+
        |          |  ------------------------>  |             |
        |          |   50 % MOL                  | uncongested |
        |          |  ---------                  |             |
        +----------+            \                +-------------+
                                 \
                                  \
                                   \
        +----------+                \            +-------------+
        |          |                 --------->  |             |
        |          |   100 % MOL                 | congested   |
        |          |  ------------------------>  |             |
        +----------+                             +-------------+

Both source transmitters MUST send the exact same number of test frames ๐ŸŽ€ The first source MUST send test frames at the MOL, alternating the destination between the two receive ports. So one goes to the uncongested receive port, the next goes to the congested one, and then it repeats ๐Ÿ” The second source transmitter MUST send test frames at the MOL, but only to the congested receive port. Very focused, very intentional ๐Ÿ˜ค

Both receive ports SHOULD tell apart test frames coming from the source ports and frames coming from the DUT/SUT ๐Ÿงš Only the test frames from the source ports SHOULD be counted, because we only want our girls in the count ๐Ÿ’–

Here's the vibe check for the numbers. The uncongested receive port should be receiving at half the MOL ๐ŸŒธ The number of test frames received on the uncongested port SHOULD be 50% of the test frames the first source transmitter sent. The congested receive port should be receiving at the MOL ๐Ÿ”ฅ The number of test frames received on the congested port should be between 100% and 150% of the test frames sent by one source transmitter. Iconic range, no notes โœจ

Test frames headed for uncongested ports in a switch device should not get dropped just because other ports are congested ๐Ÿ˜ญ That's true even when the source is sending to both the congested and the uncongested ports. Protect the uncongested ones at all costs ๐Ÿซถ

5.5.4 Measurements

Any frame received without the correct destination address MUST not be counted as a received frame ๐Ÿ™ˆ It SHOULD be counted as part of a flood count instead, bye bye ๐Ÿ‘‹

Any frame coming from the DUT/SUT MUST not be counted as a received frame ๐Ÿ’… Frames from the DUT/SUT MAY be counted as flooded frames, or they may not be counted at all. Totally your call, babe ๐ŸŒˆ

The frame loss rate of the DUT/SUT's congested and uncongested ports MUST be reported as defined in section 26.3 [3], with a few extra notes ๐Ÿ“ The frame loss rate SHOULD be measured at the end of the trial duration. And for this measurement only, the word "rate" does not mean units "per second," so don't let your brain go there ๐Ÿง ๐Ÿ’€

The Offered Load to the DUT/SUT MUST be reported as the number of test frames per second that the DUT/SUT was observed to accept ๐Ÿ“ This may be different from the MOL, so don't panic if the numbers don't match ๐Ÿฅฐ

The forwarding rate (FR) of the DUT/SUT's congested and uncongested ports MUST be reported as the number of test frames per second that the device is observed to successfully transmit to the correct destination interface, in response to a specified offered load โœจ The offered load MUST also be cited. Receipts, please ๐Ÿงพ

5.5.5 Reporting format

This test MUST report the frame lost rate at the uncongested port, the forwarding rate (at 50% offered load) at the uncongested port, and the frame lost rate at the congested port ๐Ÿ“Š This test MAY report the frame counts transmitted and the frame counts received by the DUT/SUT. Extra receipts are optional but cute ๐Ÿ’œ

5.5.5.1 HOLB

If there's frame loss at the uncongested port, then "Head of Line" blocking is present ๐Ÿ˜ฉ The DUT can't forward the traffic going to the congested port, so it ends up losing frames meant for the uncongested port too. Not the vibe ๐Ÿ’”

5.5.5.2 Back Pressure

If there's no frame loss on the congested port, then backpressure is present ๐ŸŒฌ๏ธ It's worth noting that this test expects the overall load to the congested port to be greater than 100%. So if the load is greater than 100% and no frame loss is detected, then the DUT must be implementing a flow control mechanism ๐Ÿฆ‹ The type of flow control mechanism used is beyond the scope of this memo, so we're not going there today ๐Ÿ™…โ€โ™€๏ธ

Also, some DUTs might not be able to handle the 100% load presented at the input port ๐Ÿ˜ต In that case, there may be frame loss reported at the uncongested port, and it comes from the load at the input port rather than the congested port's load. Not the congested port's fault, tea โ˜•

If the uncongested frame loss is reported as zero, but the maximum forwarding rate is less than 7440 (for 10Mbps Ethernet), then this may be an indication of congestion control being enforced by the DUT ๐Ÿง In that case, the congestion control is affecting the throughput of the uncongested port. Sneaky ๐Ÿ‘€

If no congestion control is detected, the expected percentage frame loss for the congested port is 33% at 150% overload ๐Ÿฐ It's receiving 100% load from one port and 50% from another, and it can only get 100% possible throughput. So the frame loss rate is 33% (150%-50%/150%). Math is mathing ๐Ÿงฎโœจ

5.6 Forward Pressure and Maximum Forwarding Rate ๐ŸŒธ

5.6.1 Objective

The Forward Pressure test overloads a DUT/SUT port and measures the output for forward pressure [2] ๐Ÿ’ฅ If the DUT/SUT transmits frames with an interframe gap less than 96 bits (section 4.2.3.2.2 [4]), then forward pressure is detected ๐Ÿšจ

The objective of the Maximum Forwarding Rate test is to measure the peak value of the Forwarding Rate when the Offered Load is varied between the throughput [1] and the Maximum Offered Load [2] ๐Ÿ“ˆ Peak performance era ๐Ÿ†

5.6.2 Setup Parameters

The following parameters MUST be defined ๐Ÿ“‹ Each variable is configured with the considerations below.

  • Frame Size: Recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per RFC 2544 section 9 [3]. The four CRC bytes are included in the frame size specified ๐ŸŽ€
  • Duplex mode: Half duplex or full duplex ๐Ÿ”
  • Trial Duration: The recommended Trial Duration is 30 seconds โฑ๏ธ Trial duration SHOULD be adjustable between 1 and 300 seconds ๐Ÿ’…
  • Step Size: The minimum incremental resolution that the Iload will be incremented in frames per second ๐Ÿชœ The smaller the step size, the more accurate the measurement and the more iterations required. As the Iload approaches the MOL, the minimum step size will increase because of gap resolution on the testing device ๐Ÿค“

5.6.3 Procedure

5.6.3.1 Maximum forwarding rate

If the Throughput [1] and the MOL [2] are the same, then MFR [2] is equal to the MOL [2] ๐Ÿ‘‘

This test MUST at a minimum be performed in a two-port configuration, as described below ๐Ÿฆ‹ Learning frames MUST be sent so the DUT/SUT can update its address tables properly ๐Ÿ“š

Test frames are transmitted to the first port (port 1) of the DUT/SUT at the Iload ๐Ÿš€ The FR [2] on the second port (port 2) of the DUT/SUT is measured. The Iload is incremented by each Step Size to find the MFR ๐Ÿ” Here's the algorithm, bestie:

  CONSTANT
    MOL = ... frames/sec; {Maximum Offered Load}
  VARIABLE
    MFR   := 0 frames/sec; {Maximum Forwarding Rate}
    ILOAD := starting throughput in frames/sec; {offered load}
    STEP  := ... frames/sec; {Step Size}
  BEGIN
    ILOAD := ILOAD - STEP;
    DO
    BEGIN
      ILOAD := ILOAD + STEP
      IF (ILOAD > MOL) THEN
      BEGIN
        ILOAD := MOL
      END
      AddressLearning; {Port 2 broadcasts with its source address}
      Transmit(ILOAD); {Port 1 sends frames to Port 2 at Offered load}
      IF (Port 2 Forwarding Rate > MFR) THEN
      BEGIN
         MFR := Port 2 Forwarding Rate; {A higher value than before}
      END

  END
  WHILE (ILOAD < MOL); {ILOAD has reached the MOL value}
  DONE

5.6.3.2 Minimum Interframe Gap

The Minimum Interframe gap test SHOULD, at a minimum, be performed in a two-port configuration as described below ๐Ÿงช Learning frames MUST be sent so the DUT/SUT can update its address tables properly ๐Ÿ—‚๏ธ

Test frames SHOULD be transmitted to the first port (port 1) of the DUT/SUT with an interframe gap of 88 bits ๐Ÿ’จ This applies forward pressure to the DUT/SUT and overloads it at a rate of one byte per frame ๐Ÿ˜ค The test frames MUST be constructed with a source address of port 1 and a destination address of port 2 ๐ŸŽฏ

The FR on the second port (port 2) of the DUT/SUT is measured ๐Ÿ“ The measured Forwarding Rate should not exceed the medium's maximum theoretical utilization (MOL) ๐Ÿ™…โ€โ™€๏ธ

5.6.4 Measurements

Port 2 MUST categorize, then count the frames into one of two groups ๐Ÿ—‚๏ธ

  1. Received Frames: received frames MUST have the correct destination MAC address and SHOULD match a signature field ๐Ÿ’–
  2. Flood count [2] ๐ŸŒŠ

Any frame coming from the DUT/SUT MUST not be counted as a received frame ๐Ÿ™ˆ Frames from the DUT/SUT MAY be counted as flooded frames, or they may not be counted at all ๐Ÿคทโ€โ™€๏ธ

5.6.5 Reporting format

MFR MUST be reported as the highest forwarding rate of a DUT/SUT, taken from an iterative set of forwarding rate measurements ๐Ÿ† The Iload applied to the device MUST also be cited.

The forwarding rate (FR) of the DUT/SUT SHOULD be reported as the number of frames per second that the device is observed to successfully transmit to the correct destination interface in response to a specified Oload ๐Ÿ’ซ The Iload MUST be cited, and the Oload MAY be recorded ๐Ÿ“

If the FR exceeds the MOL during the Minimum Interframe gap test, this MUST be highlighted with the expression "Forward Pressure detected" ๐Ÿšจ๐Ÿšจ

5.7 Address Caching Capacity ๐Ÿงš

5.7.1 Objective

The goal is to determine the address caching capacity of a LAN switching device, as defined in RFC 2285, section 3.8.1 [2] ๐ŸŽฏ

5.7.2 Setup Parameters

The following parameters MUST be defined ๐Ÿ“‹ Each variable is configured with the considerations below.

  • Age Time: The maximum time that a DUT/SUT will keep a learned address in its forwarding table โณ
  • Addresses Learning Rate: The rate at which new addresses are offered to the DUT/SUT to be learned. The rate at which address learning frames are offered may have to be adjusted to be as low as 50 frames per second or even less, to guarantee successful learning ๐Ÿข
  • Initial Addresses: The initial number of addresses to start the test with. The number MUST be between 1 and the maximum number supported by the implementation ๐Ÿ”ข

5.7.3 Procedure โœจ

Okay bestie, first things first ๐Ÿ’… The DUT/SUT's aging time has to be known, because that's the timer that wipes out learned addresses ๐Ÿ•ฐ๏ธ. The aging time MUST be longer than the time it takes to produce frames at the specified rate. If you go with a low frame rate, sending a huge pile of frames could actually take longer than the aging time, which is kinda sneaky ๐Ÿ™ˆ

This test MUST at a minimum be run in the three-port setup below ๐ŸŽ€ You MAY grow it to fully utilize the DUT/SUT in steps of two or three ports. A step of two adds one extra Learning port and one extra Test port. A step of three adds one extra Learning port, one extra Test port, and one extra Monitoring port ๐Ÿฆ‹

Now the ports, bestie ๐Ÿงš

  • The Learning port (Lport) sends learning frames to the DUT/SUT. Each frame has a different source address, and they all have one fixed destination address, which is the address of the device plugged into the Test port (Tport) of the DUT/SUT. By seeing frames with all these different source addresses, the DUT/SUT should learn them. The source addresses MAY be in sequential order ๐ŸŒธ
  • The Test port (Tport) of the DUT/SUT is the receiving port for the learning frames. Test frames get sent back out toward the addresses that were learned on the Learning port. The algorithm for this is coming up next ๐Ÿ‘‘
  • The Monitoring port (Mport) on the DUT/SUT is the watcher ๐Ÿ‘€ It listens for flooded or mis-forwarded frames. If the test spans multiple broadcast domains (VLANs), each broadcast domain REQUIRES a Monitoring port ๐Ÿ’œ

It is highly recommended that SNMP, Spanning Tree, and any other frames coming from the DUT/SUT get turned off while you run this test ๐Ÿซถ If those protocols can't be turned off, the flood count MUST be modified so that it only counts test frames that come from Lport, and it MUST NOT count frames that come from the DUT/SUT itself. Don't let the DUT's own chatter mess with your numbers ๐Ÿ˜ญ

Here's the algorithm, and it's giving binary search energy ๐Ÿ”

   CONSTANT
      AGE = ...;  {value greater that DUT aging time}
      MAX = ...;  {maximum address support by implementation}
    VARIABLE
      LOW  := 0;    {Highest passed valve}
      HIGH := MAX;  {Lowest failed value}
      N    := ...;  {user specified initial starting point}
    BEGIN
      DO
        BEGIN
        PAUSE(AGE);   {Age out any learned addresses}
          AddressLearning(TPort); {broadcast a frame with its source
                                  Address and broadcast destination}
          AddressLearning(LPort); {N frames with varying source addresses
                                  to Test Port}
        Transmit(TPort); {N frames with varying destination addresses
                           corresponding to Learning Port}
        IF (MPort receive frame != 0) OR
           (LPort receive frames < TPort transmit) THEN
          BEGIN  {Address Table of DUT/SUT was full}
            HIGH := N;
          END
        ELSE
          BEGIN  {Address Table of DUT/SUT was NOT full}
            LOW := N;
          END
        N := LOW + (HIGH - LOW)/2;
      END WHILE (HIGH - LOW >= 2);
    END {Value of N equals number of addresses supported by DUT/SUT}

Because it's a binary search, the test lands on the exact number of addresses supported per port while keeping every iteration consistent ๐Ÿ“ The catch is that each iteration might spend some time just waiting for the DUT/SUT's address tables to clear, thanks to the aging time. So if you can, set the DUT/SUT to a low aging time value, it'll save you so much waiting โณ

Once the high and low values of N meet, boom, you've found the threshold of address handling ๐ŸŽ‰

5.7.4 Measurements

The big question here is whether the offered addresses per port got forwarded successfully without any flooding ๐Ÿฆ‹

5.7.5 Reporting format

After the test runs, the results for each iteration SHOULD be shown in a table that includes the following ๐Ÿ“Š

  • The number of addresses used for each test iteration (varied) ๐ŸŒˆ
  • The intended load used for each test iteration (fixed) โญ
  • The number of test frames that were offered to Tport of the DUT/SUT. This SHOULD match the number of addresses used for the test iteration. Test frames are the frames sent with varying destination addresses, and they confirm that the DUT/SUT has learned every address for each test iteration ๐Ÿ’…
  • The flood count on Tport during the test portion of each test. If the number isn't zero, that means the DUT/SUT flooded a frame whose destination address wasn't in its address table ๐Ÿ™ˆ
  • The number of frames correctly forwarded to the test Lport during the test portion of the test. Received frames MUST have the correct destination MAC address and SHOULD match a signature field. For a passing test iteration, this number should equal the number of frames transmitted by Tport ๐Ÿ”ฅ
  • The flood count on Lport during the test portion of each test. If the number isn't zero, that means the DUT/SUT flooded a frame whose destination address wasn't in its address table ๐Ÿ’€
  • The flood count on Mport. If the value isn't zero, that means the DUT/SUT couldn't figure out the proper destination port for that many frames. In other words, its address table was full, so it flooded those frames to all ports ๐Ÿ˜ญ

5.8 Address Learning Rate

5.8.1 Objective

The goal is to figure out the rate of address learning for a LAN switching device ๐Ÿงš

5.8.2 Setup Parameters

The following parameters MUST be defined. Each variable gets configured with the considerations below ๐Ÿ“

  • Age Time - The maximum time that a DUT/SUT will keep a learned address in its forwarding table โฐ
  • Initial Addresses Learning Rate - The starting rate at which new addresses are offered to the DUT/SUT to be learned ๐ŸŒธ
  • Number of Addresses - The number of addresses that the DUT/SUT must learn. The number MUST be between 1 and the maximum number supported by the implementation. It is recommended no to exceed the address caching capacity found in section 5.9 ๐Ÿ’œ

5.8.3 Procedure

The aging time of the DUT/SUT MUST be known. The aging time MUST be longer than the time necessary to produce frames at the specified rate. If a low frame rate is used, sending a large amount of frames might actually take longer than the aging time, so keep an eye on that ๐Ÿ‘€

This test MUST at a minimum be run in the three-port configuration in section 5.9.3. You MAY expand it to fully utilize the DUT/SUT in steps of two or three ports. A step of two adds an extra Learning port and Test port. A step of three adds an extra Learning port, Test port, and Monitoring port ๐ŸŽ€

An algorithm similar to the one for address caching capacity can be used to find the address learning rate ๐Ÿฆ‹ This test cycles through the rate at which address learning frames get offered by the test device connected to the DUT/SUT. It is recommended to set the number of addresses offered to the DUT/SUT in this test to the maximum caching capacity ๐Ÿ‘‘

The address learning rate might get determined for different numbers of addresses, but in each test run the number MUST remain constant, and it SHOULD be equal to or less than the maximum address caching capacity ๐Ÿซถ

5.8.4 Measurements

The question here is whether the offered addresses per port were successfully forwarded without flooding at the offered learning rate ๐ŸŒˆ

5.8.5 Reporting format

After the test runs, the results for each iteration SHOULD be shown in a table ๐Ÿ“Š

  • The number of addresses used for each test iteration (fixed) โญ
  • The intended load used for each test iteration (varied) ๐Ÿ”ฅ
  • The number of test frames that were transmitted by Tport. This SHOULD match the number of addresses used for the test iteration. Test frames are the frames sent with varying destination addresses to confirm that the DUT/SUT has learned all of the addresses for each test iteration ๐Ÿ’…
  • The flood count on Tport during the test portion of each test. If the number isn't zero, that means the DUT/SUT flooded a frame whose destination address wasn't in its address table ๐Ÿ™ˆ
  • The number of frames correctly forwarded to the test Lport during the test portion of the test. Received frames MUST have the correct destination MAC address and SHOULD match a signature field. For a passing test iteration, this number should equal the number of frames transmitted by Tport ๐Ÿ“
  • The flood count on Lport during the test portion of each test. If the number isn't zero, that means the DUT/SUT flooded a frame whose destination address wasn't in its address table ๐Ÿ’€
  • The flood count on Mport. If the value isn't zero, that means the DUT/SUT couldn't figure out the proper destination port for that many frames. In other words, its address table was full, so it flooded those frames to all ports ๐Ÿ˜ญ

5.9 Errored frames filtering

5.9.1 Objective

The point of the Errored frames filtering test is to see how the DUT behaves when it gets error or abnormal frame conditions ๐Ÿง The results tell you whether the DUT/SUT filters out the errors, or just passes the errored frames along to the destination ๐Ÿฆ‹

5.9.2 Setup Parameters

The following parameters MUST be defined. Each variable gets configured with the considerations below ๐Ÿ“

  • ILoad - The intended load per port, expressed as a percentage of the medium's maximum theoretical load. The actual transmitted frames per second depend on whether the link is running half duplex or full duplex. The test SHOULD be run multiple times, with a different load per port each time ๐ŸŒธ
  • Trial Duration - The recommended Trial Duration is 30 seconds. Trial duration SHOULD be adjustable between 1 and 300 seconds โฐ

5.9.3 Procedure

Each of the illegal frames for Ethernet MUST be checked, so let's go through them one by one ๐Ÿ’…

  • Oversize - The DUT/SUT MAY filter frames larger than 1518 bytes from being propagated through the DUT/SUT section 4.2.4.2.1 [4]. Oversized frames transmitted to the DUT/SUT should not be forwarded. A DUT/SUT that supports tagged Frames MAY forward frames up to and including 1522 bytes long (section 4.2.4.2.1 [5]) ๐ŸŽ€
  • Undersize - The DUT/SUT MUST filter frames less than 64 bytes from being propagated through the DUT/SUT (section 4.2.4.2.2 [4]). Undersized frames (or collision fragments) received by the DUT/SUT must not be forwarded ๐Ÿ™ˆ
  • CRC Errors - The DUT/SUT MUST filter frames that fail the Frame Check Sequence Validation (section 4.2.4.1.2 [4]) from being propagated through the DUT/SUT. Frames with an invalid CRC transmitted to the DUT/SUT should not be forwarded ๐Ÿ”ฅ
  • Dribble Bit Errors - The DUT/SUT MUST correct and forward frames containing dribbling bits. Frames transmitted to the DUT/SUT that do not end on an octet boundary but do contain a valid frame check sequence MUST be accepted by the DUT/SUT (section 4.2.4.2.1 [4]) and forwarded to the correct receive port, with the frame ending on an octet boundary (section 3.4 [4]) ๐ŸŒˆ
  • Alignment Errors - The DUT/SUT MUST filter frames that fail the Frame Check Sequence Validation AND do not end on an octet boundary. This is a combination of a CRC error and a Dribble Bit error. When both errors show up in the same frame, the DUT/SUT MUST determine that the CRC error takes precedence and filters the frame (section 4.2.4.1.2 [4]) from being propagated ๐Ÿ’€

5.9.5 Reporting format

Okay bestie, for each error condition in section 5.6.3, a "pass" or "fail" MUST be reported โœ…โŒ. Actual frame counts MAY be reported too if you want the diagnostic details ๐Ÿ”๐Ÿ’–

5.10 Broadcast frame Forwarding and Latency

5.10.1 Objective

Okay so this test is all about how well the DUT handles broadcast traffic ๐Ÿ“กโœจ It's about throughput and latency. Forwarding broadcast frames depends on a special function that the device has built in just for that job, and since every vendor can build that function a different way, we need to check how the DUT/SUT handles broadcast frames specifically ๐Ÿฆ‹

5.10.2 Setup Parameters

The following parameters MUST be defined ๐Ÿ“ Here's how each one gets configured:

  • Frame Size: Recommended frame sizes are 64, 128, 256, 512, 1024, 1280 and 1518 bytes, per RFC 2544 section 9 [3]. The four CRC bytes are included in the frame size specified ๐ŸŽ€
  • Duplex mode: Half duplex or full duplex ๐ŸŒธ
  • ILoad: Intended Load per port is expressed as a percentage of the medium's maximum theoretical load, regardless of traffic orientation or duplex mode. Some test configurations will theoretically over-subscribe the DUT/SUT ๐Ÿ‘€
  • ILoad will not over-subscribe the DUT/SUT in this test ๐Ÿ™…โ€โ™€๏ธ
  • Trial Duration: The recommended Trial Duration is 30 seconds โฑ๏ธ Trial duration SHOULD be adjustable between 1 and 300 seconds ๐Ÿ’…

5.10.3 Procedure

There are two parts to run here, bestie ๐Ÿงš

Broadcast Frame Throughput: One source test port transmits test frames with a broadcast address, using the frame specified in RFC 2544 [3]. Then the selected receive ports measure the forwarding rate and frame loss rate ๐Ÿ“Š

Broadcast Frame Latency: Same setup as the Broadcast Frame Throughput test, but this time instead of a big stream, only ONE test frame gets sent ๐Ÿฆฉ Then we measure the latency to each receive port, in seconds โšก

5.10.4 Measurements

Frame loss rate of the DUT/SUT SHOULD be reported as defined in section 26.3 [3], with these notes ๐Ÿง Frame loss rate SHOULD be measured at the end of the trial duration. For this measurement only, "rate" does not mean "per second," so don't get confused ๐Ÿ™ˆ

Forwarding rate (FR) of the DUT/SUT SHOULD be reported as the number of test frames per second that the device is observed to successfully forward to the correct destination interface, in response to a specified Oload ๐Ÿš€ The Oload MUST also be cited ๐Ÿ“Œ

5.10.5 Reporting format

Results for these tests SHOULD be reported as a graph ๐Ÿ“ˆ The x coordinate SHOULD be the frame size and the y coordinate SHOULD be the test results. There SHOULD be at least two lines on the graph, one for the theoretical and one for the test results ๐Ÿ’œ

Also, to see how well the DUT/SUT can switch traffic while doing lots of different address lookups, the number of addresses per port MAY be increased across a series of tests ๐ŸŒˆ

6. Security Considerations

Okay, real talk, this one's chill ๐Ÿซถ This document is only about metric methodology. It doesn't describe a protocol or how a protocol gets implemented, so there are no security considerations associated with it ๐Ÿ”โœจ

7. References

  • [1] Bradner, S., Editor, "Benchmarking Terminology for Network Interconnection Devices", RFC 1242, July 1991. ๐Ÿ“š
  • [2] Mandeville, R., "Benchmarking Terminology for LAN Switching Devices", RFC 2285, February 1998. ๐Ÿ“š
  • [3] Bradner, S. and J. McQuaid, "Benchmarking Methodology for Network Interconnect Devices", RFC 2544, March 1999. ๐Ÿ“š
  • [4] ANSI/IEEE, "CSMA/CD Access Method and Physical Layer Specifications," ISO/IEC 8802-3, ISBN 0-7381-0330-6, 1998. ๐Ÿ“š
  • [5] IEEE Draft, "Frame Extensions for Virtual Bridged Local Area Networks (VLAN) Tagging on 802.3 Networks", 802.3ac/D3.1, July 1998. ๐Ÿ“š

8. Authors' Addresses

Here are the authors' contact deets ๐Ÿ’Œ

Robert Mandeville
CQOS Inc.
21 Technology
Irvine, CA 92618
USA

Phone: +1 (949) 400-4444
EMail: bob@cqos.com


Jerry Perser
Spirent Communications
26750 Agoura Road
Calabasas, CA 91302
USA

Phone: + 1 818 676 2300
EMail: jerry_perser@netcomsystems.com

Appendix A: Formulas

Time for the math, and it's actually giving pretty ๐Ÿงฎโœจ

A.1 Calculating the InterBurst Gap

IBG is defined in RFC 2285 [2] as the interval between two bursts โณ To hit a desired load, you need to define these input parameters ๐Ÿ’•

  LENGTH - Frame size in bytes including the CRC.

  LOAD   - The intended load in percent.  Range is 0 to 100.

  BURST  - The number of frames in the burst (integer value).

  SPEED  - media's speed in bits/sec
              Ethernet is 10,000,000 bits/sec
              Fast Ethernet is 100,000,000 bits/sec
              Gigabit Ethernet is 1,000,000,000 bits/sec

  IFG    - A constant 96 bits for the minimum interframe gap.

Then the IBG (in seconds) can be calculated like this ๐Ÿง 

       [(100/LOAD - 1) * BURST * (IFG + 64 + 8*LENGTH)] + IFG
IBG = -----------------------------------------------------------
                               SPEED

A.2 Calculating the Number of Bursts for the Trial Duration

The number of bursts for the trial duration gets rounded up to the nearest integer ๐Ÿ”ข Here are the input parameters you need to define first ๐ŸŒธ

  LENGTH - Frame size in bytes including the CRC.

  BURST  - The number of frames in the burst (integer value).

  SPEED  - media's speed in bits/sec
              Ethernet is 10,000,000 bits/sec
              Fast Ethernet is 100,000,000 bits/sec
              Gigabit Ethernet is 1,000,000,000 bits/sec

  IFG    - A constant 96 bits for the minimum interframe gap.

  IBG    - Found in the above formula

  DURATION - Trial duration in seconds.

First up, calculate the burst duration as an intermediate number โฑ๏ธ

 TXTIME  =  -----------------------------------------
                            SPEED

Then the number of bursts for the trial duration (rounded up) ๐ŸŽฏ

                  DURATION
 #OFBURSTS =   --------------
               (TXTIME + IBG)

Example time, bestie ๐Ÿ“

  LENGTH   = 64  bytes per frame
  LOAD     = 100 % offered load
  BURST    = 24  frames per burst
  SPEED    = 10  Mbits/sec (Ethernet)
  DURATION = 10  seconds test


  IBG       = 1612.8 uS
   TXTIME    = 1603.2 uS
 #OFBURSTS = 3110

Appendix B: Generating Offered Load

So when you run a test, the traffic generator gets set to the Iload (Intended Load) and then measures the Oload (Offered Load) ๐Ÿ’… If the DUT/SUT does congestion control, the Iload and Oload won't match, and then the big question is: how do you generate the Oload? ๐Ÿค” This appendix covers two methods.

The Oload unit is bits per second. Both methods hold one unit constant and let the DUT/SUT vary the other one ๐Ÿฆ‹ The traffic generator SHOULD specify which method it uses ๐Ÿ“ข

B.1 Frame Based Load

Frame Based Load holds the number of bits constant, so the Trial Duration changes depending on congestion control โณ The upside is that the implementation is a simple state machine (or loop) ๐Ÿงš The downside is that Oload has to be measured on its own ๐Ÿ˜ฉ

All ports on the traffic generator MUST transmit the exact number of test frames ๐Ÿ’ฏ That number comes from multiplying each port's Iload by the Trial Duration. If the Iloads aren't all the same, the ports MAY NOT transmit the same number of frames. A partially meshed many-to-one test is an example of that ๐Ÿ•ธ๏ธ

All ports SHOULD start transmitting their frames within 1% of the trial duration. For a 30 second trial duration, that means all ports SHOULD have started transmitting frames within 300 milliseconds of each other โšก

The reported Oload SHOULD be the average during the Trial Duration ๐Ÿ“Š If the traffic generator keeps transmitting after the Trial Duration because of congestion control, the Oload MAY be averaged over the entire transmit time โฐ The Oload for the DUT/SUT MUST be the aggregate of all the per-port Oloads โž• Oload per port MAY be reported ๐ŸŽ€

B.2 Time Based Load

Time based load holds the Trial Duration constant and lets the number of octets transmitted vary ๐ŸŒˆ The perks are an accurate Trial Duration and an integrated Oload measurement ๐Ÿซถ The catch is that the starting and stopping of the traffic generator MUST be more accurate ๐Ÿ˜ฌ

All ports on the traffic generator are configured to transmit the Iload for a finite amount of time. Each port MUST count the number of octets it successfully transmitted ๐Ÿ”ข

The start and stop get triggered at a layer defined by the test parameters. That layer could be the MAC layer, the IP layer, or some other point in the protocol stack ๐Ÿงฑ When the stop time hits, the traffic generator MUST complete its layer-specific transmit process (no fragments, finish the frame) ๐Ÿ

All ports MUST start transmitting their frames within 1% of the trial duration. For a 30 second trial duration, all ports SHOULD have started transmitting frames within 300 milliseconds of each other ๐Ÿ’ซ

All ports SHOULD stop transmitting frames after the specified trail duration, within 0.01% of the trial duration ๐Ÿ›‘ Each port's stop time MUST be reference to its start time. This trial duration error controls the accuracy of the Oload measurement, so it SHOULD be reported along with the Oload measurement ๐Ÿ“

Each port gets an offset error allowance of 0.1% and a trial duration error allowance of 0.01% ๐Ÿ™†โ€โ™€๏ธ

Oload is found by taking the number of octets successfully transmitted and dividing by the trial duration ๐Ÿงฎ The Oload for the DUT/SUT MUST be the aggregate of all the per-port Oloads โœจ Oload per port MAY be reported for diagnostic purposes ๐Ÿ”

Copyright (C) The Internet Society (2000). All Rights Reserved. ๐Ÿ’œ

Okay, legal bit, but it's pretty straightforward ๐Ÿงพ You can copy and share this document, translate it, and make derivative works that comment on or explain it or help with implementing it. You can publish and distribute all of that however you like, in whole or in part, with no restrictions, as long as the copyright notice and this paragraph are included on every copy and derivative work ๐Ÿซถ

The document itself, though, can't be changed in any way. That means no removing the copyright notice or the references to the Internet Society or other Internet organizations. The exceptions are if you need it for developing Internet standards (then the copyright procedures in the Internet Standards process have to be followed), or if you're translating it into a language other than English ๐ŸŒ

These permissions are forever ๐Ÿ’– The Internet Society and its successors or assigns won't revoke them.

This document and the information in it are provided on an "AS IS" basis and THE INTERNET SOCIETY AND THE INTERNET ENGINEERING TASK FORCE DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTY THAT THE USE OF THE INFORMATION HEREIN WILL NOT INFRINGE ANY RIGHTS OR ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.

Acknowledgement

Funding for the RFC Editor function is currently provided by the Internet Society ๐ŸŒธโœจ

๐Ÿ“ฆ where this page comes from