diff options
-rwxr-xr-x[-rw-r--r--] | docs/installation.md | 5 | ||||
-rw-r--r-- | src/l2fwd/Makefile | 9 | ||||
-rwxr-xr-x[-rw-r--r--] | test_spec/vswitchperf_ltd.md | 91 |
3 files changed, 89 insertions, 16 deletions
diff --git a/docs/installation.md b/docs/installation.md index e19d0371..708de953 100644..100755 --- a/docs/installation.md +++ b/docs/installation.md @@ -1,8 +1,7 @@ # Installing toit The test suite requires Python 3.3 and relies on a number of other packages. These need to be installed for the test suite to function. -To install Python 3.3 in CentOS 7, an additional repository, Software Collections (see https://www.softwarecollections.org/en/scls/rhscl/python33) -should be enabled. +To install Python 3.3 in CentOS 7, an additional repository, Software Collections (see https://www.softwarecollections.org/en/scls/rhscl/python33) should be enabled. Install the requirements as specified below. @@ -39,7 +38,7 @@ source bin/activate pip install -r requirements.txt ``` -You need to activate the virtual environment everytime you start a new shell session. +You need to activate the virtual environment every time you start a new shell session. To activate, simple run: ```bash diff --git a/src/l2fwd/Makefile b/src/l2fwd/Makefile index 21fbe5bb..b920769e 100644 --- a/src/l2fwd/Makefile +++ b/src/l2fwd/Makefile @@ -25,13 +25,20 @@ PWD := $(shell pwd) all: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules +force_make: all + sanity: - echo "Done" + @echo "Make sanity in $(WORK_DIR) (stub) " clean: $(MAKE) -C $(KERNELDIR) M=$(PWD) clean rm -f l2fwd*deb +cleanse: clean + +clobber: clean + + install: sudo mkdir /lib/modules/`uname -r`/kernel/net/core sudo cp *.ko /lib/modules/`uname -r`/kernel/net/core diff --git a/test_spec/vswitchperf_ltd.md b/test_spec/vswitchperf_ltd.md index 7fbd2cc2..c850c103 100644..100755 --- a/test_spec/vswitchperf_ltd.md +++ b/test_spec/vswitchperf_ltd.md @@ -544,11 +544,11 @@ The following represents possible deployments which can help to determine the pe - Perform any relevant address look-ups on the DUT's ingress ports. - Modify the packet header before forwarding the packet to the DUT's egress port. Packet modifications include: - Modifying the Ethernet source or destination MAC address. - - Modifying/adding a VLAN tag. + - Modifying/adding a VLAN tag. (Recommended). - Modifying/adding a MPLS tag. - Modifying the source or destination ip address. - Modifying the TOS/DSCP field. - - Modifying the source or destination ports for UDP/TCP/SCTP (Recommended). + - Modifying the source or destination ports for UDP/TCP/SCTP. - Modifying the TTL. **Expected Result**: @@ -629,7 +629,7 @@ The following represents possible deployments which can help to determine the pe **Description**: - The aim of this test is to understand the Throughput stability over an extended test duration in order to uncover any outliers. To allow for an extended test duration, the test should ideally run for 24 hours or, if this is not possible, for at least 6 hour. For this test, each frame size must be sent at the highest Throughput with X% packet loss, as determined in the prerequisite test. The default loss percentages to be tested are: + The aim of this test is to understand the Throughput stability over an extended test duration in order to uncover any outliers. To allow for an extended test duration, the test should ideally run for 24 hours or, if this is not possible, for at least 6 hours. For this test, each frame size must be sent at the highest Throughput with X% packet loss, as determined in the prerequisite test. The default loss percentages to be tested are: - X = 0% - X = 10^-7% @@ -642,8 +642,7 @@ The following represents possible deployments which can help to determine the pe The following are the metrics collected for this test: - Throughput stability of the DUT. - - Any outliers in the Throughput stability. - - Any unexpected variation in Throughput stability. + - This means reporting the number of packets lost per time interval and reporting any time intervals with packet loss. An interval of 60s is suggested. - CPU and memory utilization may also be collected as part of this test, to determine the vSwitch's performance footprint on the system. - The [RFC5481] PDV form of delay variation on the traffic flow, using the 99th percentile. @@ -700,7 +699,13 @@ The following represents possible deployments which can help to determine the pe **Description**: - The aim of this test is to determine the length of time it takes the DUT to recover from a reset. For each frame size previously defined under [Default Test Parameters](#DefaultParams), traffic should be sent to the DUT under normal conditions. During the duration of the test and while the traffic flows are passing through the DUT, the DUT should be reset and the Reset time measured. The Reset time is the total time that a device is determined to be out of operation and includes the time to perform the reset and the time to recover from it (cf. [RFC6201]) + The aim of this test is to determine the length of time it takes the DUT to recover from a reset. + + Two reset methods are defined - planned and unplanned. A planned reset requires stopping and restarting the virtual switch by the usual 'graceful' method defined by it's documentation. An unplanned reset requires simulating a fatal internal fault in the virtual switch - for example by using kill -SIGKILL on a Linux environment. + + Both reset methods SHOULD be exercised. + + For each frame size previously defined under [Default Test Parameters](#DefaultParams), traffic should be sent to the DUT under normal conditions. During the duration of the test and while the traffic flows are passing through the DUT, the DUT should be reset and the Reset time measured. The Reset time is the total time that a device is determined to be out of operation and includes the time to perform the reset and the time to recover from it (cf. [RFC6201]). [RFC6201] defines two methods to measure the Reset time: - Frame-Loss Method: which requires the monitoring of the number of lost frames and calculates the Reset time based on the number of frames lost and the offered rate according to the following formula: @@ -725,13 +730,14 @@ The following represents possible deployments which can help to determine the pe **Metrics collected** The following are the metrics collected for this test: - - Average Reset Time. + - Average Reset Time over the number of trials performed. Results of this test should include the following information: + - The reset method used. - Throughput in Fps and Mbps. - - Average Frame Loss. - - Average Reset Time in milliseconds. - - Number of trials. + - Average Frame Loss over the number of trials performed. + - Average Reset Time in milliseconds over the number of trials performed. + - Number of trials performed. - Protocol: IPv4, IPv6, MPLS, etc. - Frame Size in Octets - Port Media: Ethernet, Gigabit Ethernet (GbE), etc. @@ -806,7 +812,7 @@ The following represents possible deployments which can help to determine the pe **Description**: - The aim of this test is to determine the address caching capacity of the DUT for a constant load (fixed length frames at a fixed interval time). The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams). + Please note this test is only applicable to switches that are capable of MAC learning. The aim of this test is to determine the address caching capacity of the DUT for a constant load (fixed length frames at a fixed interval time). The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams). In order to run this test the aging time, that is the maximum time the DUT will keep a learned address in its flow table, and a set of initial addresses, whose value should be >= 1 and <= the max number supported by the implementation must be known. Please note that if the aging time is configurable it must be longer than the time necessary to produce frames from the external source at the specified rate. If the aging time is fixed the frame rate must be brought down to a value that the external source can produce in a time that is less than the aging time. @@ -836,7 +842,7 @@ The following represents possible deployments which can help to determine the pe **Description**: - The aim of this test is to determine the rate of address learning of the DUT for a constant load (fixed length frames at a fixed interval time). The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams), traffic should be sent with each IPv4/IPv6 address incremented by one. The rate at which the DUT learns a new address should be measured. The maximum caching capacity from LTD.Memory.RFC2889.AddressCachingCapacity should be taken into consideration as the maximum number of addresses for which the learning rate can be obtained. + Please note this test is only applicable to switches that are capable of MAC learning. The aim of this test is to determine the rate of address learning of the DUT for a constant load (fixed length frames at a fixed interval time). The selected frame sizes are those previously defined under [Default Test Parameters](#DefaultParams), traffic should be sent with each IPv4/IPv6 address incremented by one. The rate at which the DUT learns a new address should be measured. The maximum caching capacity from LTD.Memory.RFC2889.AddressCachingCapacity should be taken into consideration as the maximum number of addresses for which the learning rate can be obtained. **Expected Result**: It may be worthwhile to report the behaviour when operating beyond address capacity - some DUTS may be more friendly to new addresses than others. @@ -938,6 +944,67 @@ The following represents possible deployments which can help to determine the pe - Physical → Virtual Switch → Physical. <br/> ---- +<a name="ScalabilityTests"></a> +####2.3.3 Scalability tests + + The general aim of these tests is to understand the impact of large flow table size and flow lookups on throughput. + + The following list is not exhaustive but should indicate the type of tests that should be required. It is expected that more will be added. + +<br/> + - #####Test ID: LTD.Scalability.RFC2544.0PacketLoss + + **Title**: RFC 2544 0% loss Scalability throughput test + + **Prerequisite Test**: + + **Priority**: + + **Description**: + + The aim of this test is to measure how throughput changes as the number of flows in the DUT increases. + + For each frame size previously defined under [Default Test Parameters](#DefaultParams) and for each of the following number of flows: + + - 1,000 + - 2,000 + - 2,000 + - 4,000 + - 8,000 + - 16,000 + - 32,000 + - 64,000 + + The maximum 0% packet loss throughput should be determined in a manner identical to LTD.Throughput.RFC2544.PacketLossRatio. + + **Expected Result**: + + **Metrics Collected**: + + The following are the metrics collected for this test: + + - The maximum number of frames per second that can be forwarded at the specified number of flows and the specified frame size, with zero packet loss. +<br/> + +<a name="SummaryList"></a> +####2.3.9 Summary List of Tests +- LTD.Throughput.RFC2544.PacketLossRatio +- LTD.Throughput.RFC2544.PacketLossRatioFrameModification +- LTD.Throughput.RFC2544.SystemRecoveryTime +- LTD.Throughput.RFC2544.BackToBackFrames +- LTD.Throughput.RFC2544.Soak +- LTD.Throughput.RFC2544.SoakFrameModification +- LTD.Throughput.RFC6201.ResetTime +- LTD.Throughput.RFC2889.ForwardingRate +- LTD.Throughput.RFC2889.ForwardPressure +- LTD.Throughput.RFC2889.AddressCachingCapacity +- LTD.Throughput.RFC2889.AddressLearningRate +- LTD.Throughput.RFC2889.ErrorFramesFiltering +- LTD.Throughput.RFC2889.BroadcastFrameForwarding +- LTD.PacketLatency.InitialPacketProcessingLatency +- LTD.Scalability.RFC2544.0PacketLoss + +---- [RFC1242]:(http://www.ietf.org/rfc/rfc1242.txt) [RFC2544]:(http://www.ietf.org/rfc/rfc2544.txt) [RFC2885]:(http://www.ietf.org/rfc/rfc2885.txt) |