Candela Technologies Logo
Loading
http://www.candelatech.com
sales@candelatech.com
+1 360 380 1618 [PST, GMT -8]
Network Testing and Emulation Solutions
LANforge-FIRE Cookbook

The LANforge-FIRE Cookbook provides a set of high-level examples of how to setup useful test scenarios in LANforge-FIRE for traffic generation. Each example intends to give the reader a brief introduction to the test scenario and a set of step-by-step instructions on how to use the LANforge-GUI to configure the test.

All of the following examples will work on Linux systems running the LANforge software with the LANforge kernel and a sufficient license. If you are running another Linux kernel, you will not be able to exactly duplicate some of the examples, but there are usually work-arounds available to assist you.   Please contact us at support@candelatech.com if you have any questions.

If you are using the Windows version of LANforge, you will have to modify ports using the Windows utilities.   Everything else should work approximately the same, but the performance is limited to 10Mbps speeds.


LANforge-FIRE Traffic Generation

Before attempting the examples below, ensure that you have successfully followed these software installation guides:

It is also recommended that you back up your current running LANforge Server database so that you may safely return to your current operating state.

LANforge-FIRE Cookbook Examples
  1. Switched Network Testing
  2. Routed Network Testing
  3. Firewall Testing
  4. Webserver Testing - Updated
  5. DSLAM Testing
  6. VoIP Testing
  7. WiFi Testing
  8. Armageddon Testing (Accelerated UDP)
  9. Armageddon Testing with Random MAC Addresses
  10. Scripted Layer-3 Test (RFC-2544)
  11. Scripted Armageddon Test (RFC-2544)
  12. Multiple Thousands of TCP Connections
  13. Multiple Thousands of UDP Connections
  14. FIRE Chili

1. Generating Traffic to a Switched Network

Goal: Setup and run traffic on a switched network. Return to LANforge-FIRE Cookbook

In this test scenario, a basic, unmanaged switch is the device under test (DUT) while LANforge-FIRE is used to generate traffic and verify switch throughput.

  1. Connect two available data generating ports of your LANforge Server to the DUT, an unmanaged switch.
  2. Setup the LANforge Ports so that they have valid IP addresses.

    A: Go to the Port Manager
    B: Modify port for Endpoint A (eth2)
    C: Modify port for Endpoint B (eth3)
    D: Verify the port configuration

  3. Create a Layer-3 Connection using the two configured ports.

    A: Go to the Layer-3 tab
    B: Create a new Cross-Connect
    C: Verify the new Cross-Connect

  4. Run traffic and observe results.

    A: Select the cross-connect on the Layer-3 tab, click Start and then Display
    B: View the Layer-3 cross-connect display

  5. In this case, the overall throughput of the DUT is approximately 76Mbps.
    The Report Manager can also be used to record the throughput over time.

    A: Select Report Manager from the Reporting pull-down menu
    B: Choose a directory to save raw (.csv) data then click Start Saving. After desired test duration, click Stop Saving and Generate Report.
    NOTE: Your report will look cleaner if you stop traffic about 2 minutes before you stop saving data.
    C: Choose a directory to save the HTML report, select the entities to be included, then click Generate Report
    D: This window lists all the reports being generated. The last line indicates the location of the HTML report.
    E: View the HTML report

 

2. Generating Traffic to a Routed Network

Goal: Setup and run traffic on a routed network. Return to LANforge-FIRE Cookbook

In this test scenario, LANforge-FIRE is used to generate traffic to a basic router in order to test throughput.

  1. Connect one LANforge-FIRE port to the router's LAN port.
  2. Connect another LANforge-FIRE port to the router's WAN port.
  3. Setup the LANforge Ports so that they have valid IP addresses.

    A: Go to the Port Manager
    B: Modify port for Endpoint A (eth2). Set a valid network IP address and Gateway IP.
    C: Modify port for Endpoint B (eth3). Set a valid network IP address and Gateway IP.
    D: Verify the port configuration

  4. Create a Layer-3 Connection using the two configured ports.

    A: Go to the Layer-3 tab
    B: Create a new Cross-Connect
    C: Verify the new Cross-Connect

  5. Run traffic and determine router throughput.

    A: Select the cross-connect on the Layer-3 tab, click Start and then Display
    B: View the Layer-3 cross-connect display

  6. For this example, a low performance router was used to illustrate poor throughput, variable latency, and dropped packets.

    A: Go to the L3 Endps tab
    B: Scroll to the right to view Latency and Dropped Packets

 

3. Generating Traffic to a Firewall

Goal: Setup and run traffic to test a firewall.

Return to LANforge-FIRE Cookbook

NOTE: If you are attempting to run this test scenario, you will need a LANforge license key that enables the correct number of ports and multi-connections.
Please contact us at support@candelatech.com for assistance.

  1. The UDP Throughput test will use a scripted Layer-3 connection to vary the rate and payload size to determine the bi-directional UDP throughput of the DUT across the scripted parameters.
  2. A: On the Port Manager tab, setup the LANforge ports with valid IP addresses.
    B: On the Layer-3 tab, create a UDP connection.

    • Set Endpoint Side-A to use the DUT WAN port and Endpoint Side-B to use the DUT LAN port, then select CX Type LANforge UDP then select Apply.

    C: Select the Script button to setup the scripting parameters.


    • Setup the script to iterate over the rates and payload sizes to be tested.
    • For more information on this step, see the LANforge FIRE Cookbook example: Scripted Layer-3 Test

    D: Highlight the connection and select the Start button.
    E: The final test report shows the results of the test run.
    Here we can see that the DUT has the best bi-directional throughput with 1460Byte payloads at 24.9Mbps.

    Full script report for the UDP test.

  3. The TCP Throughput test will use a scripted Layer-3 connection to vary the rate and payload size to determine the bi-directional TCP throughput of the DUT across the scripted parameters.
  4. A: Highlight, then modify the previous connection, change the Name then select CX Type LANforge TCP, then Apply to create the new connection.
    B: Select the Script button to setup the scripting parameters.


    • Setup the script to iterate over the rates and payload sizes to be tested.
    • For more information on this step, see the LANforge FIRE Cookbook example: Scripted Layer-3 Test

    C: Highlight the connection and select the Start button.
    D: The final test report shows the results of the test run.
    Here we can see that the DUT has the best bi-directional throughput at with 1472Byte payloads at 25.3Mbps.

    Full script report for the TCP test.

  5. The TCP Concurrent Connections test will measure the maximum number of simultaneous TCP connections that the DUT can maintain at once.
    A: On the Port Manager tab, create 5 MAC-VLANs on the LANforge Port connected to the DUT LAN port.
    B: Verify that the MAC-VLANs have correct IP addresses.
    C: Create a Layer-3 connection that has a low-speed rate with Multi-Conn set to 10000 on Endpoint Side-A. Multi-Conn should be set to 1 on Endpoint Side-B.


    • Side-A will be one of the MAC-VLANs and Side-B will be the port connected to the DUT WAN port. This setup will initiate the TCP sessions from the LAN side of the DUT.
    • Low-speed depends on the DUT, we could also set the rate to zero which would allow the TCP connections to be setup without payload data to be transmitted, but this would not give an accurate picture of the firewall performance. Here we are using 1Kbps connections with 1KB size payload.
    • This is an iterative test, the number of TCP connections to use will depend on the DUT capabilities. Modify the number of connections as necessary to find the most accurate measurement.
    • The DUT should be power-cycled to reset it before each test run.

    D: Select the Batch-Create button to create 4 more copies of this connection each with a new MAC-VLAN port.
    E: Highlight and Start each set of 10000 connections until the target max simultaneous connections are running.
    F: On the Layer-3 Endpoints tab, highlight the Running A-Side Endpoints, then right-click and select Calculations.
    G: The top line, Sum, is what we are interested in for Maximum Concurrent TCP Connections.
    H: Scroll right to the CX Active and CX Established columns and select the Refresh button.
    This DUT can maintain a maximum of 41,864 simultaneous TCP connections.


    • CX Active is the metric we are attempting to measure, Maximum Simultaneous TCP Connections. It will fluctuate with the DUT's ability to maintain the number of active TCP connections.
    • CX Established is the number of TCP connections LANforge has established since the start of the test. It will continue to increase as the DUT closes the TCP connections it cannot maintain.

  6. The TCP Connections per Second test will measure the rate of TCP connections that can be setup through the DUT.
  7. A: Create a Layer-3 TCP connection with the Duration and IP Port set to zero.
    B: Highlight and Start the connection.
    C: View the Connections/second rate on the Layer-3 Endpoints tab.
    This DUT can setup about 120 Connections/second.

4. Generating Traffic to a Web Server

Goal: Setup and run traffic to a Web Server. Return to LANforge-FIRE Cookbook

In this test scenario, LANforge-FIRE is used to generate traffic in the form of URL requests in order to determine the maximum number of URLs/second the Web Server can process.

Please note that the Web Server used in this example is an isolated Linux system running Apache.

  1. Connect one LANforge-FIRE port to the Web Server's network.
  2. Setup the LANforge Port so that it has a valid IP address.

    A: Go to the Port Manager
    B: Modify the port connected to the Web Server. Set a valid network IP address and Gateway IP.
    C: Verify the port configuration

  3. Setup the URL requests.

    A: Go to the Layer-4 tab
    B: Create a Layer-4 Endpoint:

    • Enter a name and select the port configured in the previous step

    • URLs per 10m should be set to around 1,200,000 which is 2,000 URLs/second

    • Leave the SSL Cert alone as we are not using it in this example

    • UL/DL should be set to Download

    • URL should be set to the Web Server's IP address and file that you wish to download. In this example, index.php is a small test file.

    • File is the designated location that the downloaded file will be stored. In this example, we use /dev/null which will essentially throw the file away so that it does not slow down the LANforge system with writing files.

    • Select the 'Allow-Reuse' checkbox to maximize the number of URL requests LANforge can make per connection

    C: Repeat the above step to make 10 Layer-4 Endpoints:

    • Each of the 10 Layer-4 Endpoints will attempt to generate 2000 URLs/second, effectively generating 20,000 URLs/second

  4. Run traffic and determine Web Server performance.

    A: On the Layer-4 tab, select one Layer-4 endpoint, click Start, then repeat for all 10 Layer-4 endpoints:

    • As each endpoint is started, the rate of URLs/second will start to converge on a rate that the Web Server is capable of providing. Finding the final Web Server performance rate is a matter of adding up the rates of all running Layer-4 endpoints.

    • Several Layer-4 endpoints (10 in this case) are used so each endpoint can make an independently large number of URL requests without having to wait for too many replies. Each URL request is waiting for a reply from the Web Server, so if only one Layer-4 endpoint was making requests, it would spend too much time waiting for replies instead of generating more requests. Spreading the URL requests over several endpoints allows each LANforge connection to the Web Server to maximize its rate of URL requests.

    B: Layer-4 Endpoint Results:

    • After starting all 10 endpoints, and letting them run for at least 1 minute, the overall URLs/second rate converges to around 17,000 URLs/second.

 

5. Generating Traffic for DSLAM Testing

Goal: Setup and run traffic to a DSLAM system as shown in the CT570 product description.

Return to LANforge-FIRE Cookbook

Please refer to the diagram in the CT570 link above. In this test scenario, the LANforge-FIRE Core is one interface on a LANforge system. The LANforge-FIRE Edge is another interface on the same LANforge system. The LF Core interface is connected to the upstream DSLAM interface either directly or through a switch. The CPEs are connected to a multi-port VLAN switch which has a VLAN trunk that is connected to the LF Edge. Traffic is sent between the LF Core and the LF Edge to achieve end-to-end network traffic testing of the DSLAM system.

  1. Connect one LANforge-FIRE interface to the DSLAM upstream internet connection.
    This is the LF Core part of the diagram mentioned above.
  2. Setup the LANforge port so that it has a valid IP address and IP mask.

    A: Go to the Port Manager
    B: Modify the port connected to the DSLAM. Set a valid network IP address and IP mask.
    C: Verify the port configuration

  3. Setup virtual interfaces.

    A: On the Port Mgr tab, select the port that will connect to the multi-port switch and will also be your VLAN trunk. This is the LF Edge part of the diagram.
    B: Click the Create button:

    • Select the 802.1Q-VLAN virtual interface type

    • The VLAN ID should correspond to your multi-port switch VLAN configuration

    • Enter Quantity (number of virtual interfaces to be created)

    • Enter the appropriate IP address and IP mask

    • Click OK or Apply to create the virtual interfaces

    C: Verify that the virtual interfaces are created and have the correct IP assignments
    D: Modify each port's MAC address for each virtual interface so that they are unique

    • Select the 'Set MAC' checkbox on the left to edit the MAC address field

    E: Scroll to the right to verify that the MAC addresses are unique

  4. Create Layer-3 connections.

    A: Go to the Layer-3 tab
    B: Click the Create button

    • Fill in a connection name, select a connection type and set the report timer

    • Make endpoint A the DSLAM upstream port or LF Core

    • Make endpoint B the CPE downstream port or LF Edge

    • You can make the TX/RX rates asymmetric for the connection to simulate how the connection would be used in a real-world scenario. Here we have about 5Mbps downstream (DSLAM to CPE) and 1Mbps upstream (CPE to DSLAM).

    • Click Apply to create the connection

    C: Create multiple connections

    • Change the connection name and endpoint B to the next virtual interface then click Apply to create the next connection
    Repeat until all five connections are created.

  5. Run traffic.

    A: Select the connections you want to start
    B: Click the Start button

 

6. Generating Traffic for VoIP Testing

Goal: Setup and run VoIP traffic. Return to LANforge-FIRE Cookbook

In this example, LANforge-FIRE is used to setup two VoIP test calls that may be used as a basis for VoIP load testing or VoIP Gateway testing.

  1. Setup the LANforge physical connections. The same two ports are used for both tests. Connect eth1 and eth2 from the LANforge-FIRE system to a network switch that is also connected to the VoIP Gateway. This example assumes that your VoIP Gateway is setup properly. If you need assistance, you can contact us at support@candelatech.com or you can find a basic Asterisk setup at this link: LANforge FAQ: How do I configure Asterisk for SIP Phones?
  2. Setup the LANforge ports so that they have valid IP addresses and IP masks.

    A: Go to the Port Manager
    B: Modify eth2 and eth3 to set a valid network IP address and mask

    • If your network has DHCP service, you can select the 'DHCP-IPv4' checkbox so that each port is a DHCP client and will acquire its IP address from your DHCP server

    C: Verify the port configuration

  3. Setup Test 1, a Directed VoIP call.

    A: Go to the VoIP/RTP tab
    B: Click the Create button:

    • Enter test-1 in the CX Name field

    • Select the Multi-Call and Directed buttons

    • Endpoint A is on Port eth2 in this example. If you have a PESQ licensed server available, you can select Record and Enable PESQ.

    • Endpoint B is on Port eth2. If you are using PESQ, be sure to enter a Record file and the IP address and port of your PESQ licensed server. Be sure to select the Rcv Call checkbox for this endpoint to receive the call.

    • Click OK to create the VoIP Directed call

    C: Verify that the test call is created

  4. Setup Test 2, a Gateway VoIP call.

    A: Go to the VoIP/RTP tab
    B: Click the Create button:

    • Enter test-2 in the CX Name field

    • Select the Multi-Call and Use Gateway buttons

    • Endpoint A is on Port eth1 in this example. Be sure to enter the proper username and password for the endpoint so that it can authenticate with the VoIP Gateway if necessary.

    • Endpoint B is on Port eth2. Be sure to select the Rcv Call checkbox for this endpoint to receive the call.

    • Click OK to create the VoIP Gateway call

    C: Verify that the test call is created

  5. Run Test 1 and Test 2 individually.

    A: Select Test-1 and click the Start button
    B: Go to the VoIP/RTP Endps tab to see detailed results:

    • The PESQ score will be reported after the first successful call is completed and updated after each subsequent call

    NOTE: Endpoints are Unregistered while the call is in progress because they are not calling through the VoIP gateway

    C: Stop Test-1, select Test-2 and click Start
    D: Go to the VoIP/RTP Endps tab to see detailed results:

    • PESQ remains 0: 0 when it is disabled for the call in progress

    NOTE: Endpoints are Registered with the VoIP gateway while the call is in progress

    • Calls Attempted, Calls Completed and Calls Failed can be viewed by scrolling to the right on the VoIP/RTP Endps tab

 

7. Generating Traffic for WLAN Testing

Goal: Setup and run Wireless LAN traffic using the LANforge CT520. Return to LANforge-FIRE Cookbook

In this test scenario, the LANforge CT520 is used to simulate 4 virtual wireless stations that associate with a third party access point. Three traffic tests will be configured and run to demonstrate possible wireless access point tests.

  1. Configure the wireless card on your LANforge CT520.

    A: Go to the Port Manager and select port ath0 or wmaster0
    B: Modify port ath0 or wmaster0
    C: Setup the Wifi Channel and Mode you want to use, then click OK

  2. Create the virtual wireless stations.
    Note: Because there is only one physical wireless card in the LANforge CT520, all of its virtual stations will use the same wireless channel, but each virtual station can associate with different access points by using multiple ESSIDs.

    A: Select port ath0 or wmaster0 and click Create
    B: Select the Wifi STA button, then enter Quantity, STA ID, and ESSID:

    • In this example, all 4 virtual stations will connect to the same access point

    • If your access point can serve DHCP, you can select the 'DHCP-IPv4' checkbox here to enable each virtual station as a DHCP client

    • If you choose to enter IP addresses manually, the create function will increment the last octet of the IP address for each virtual station created

    • Click OK when finished

    C: Verify that the virtual wireless stations are created

  3. Setup IP addresses using DHCP.

    A: CTRL-select all of the virtual wireless stations and eth0 then click Modify

    NOTE: This will bring up 5 modify windows at once

    B: Verify the 'DHCP-IPv4' checkbox is selected for each interface intended as a DHCP client (if not done when created):

    • If using WEP for the wireless stations, replace 'none' in the Key field with the hexadecimal key string generated by your access point where you enabled WEP

    • Click OK when finished

    C: If your access point DHCP service is running, the 4 virtual wireless stations and eth0 will acquire their IP addresses after a few seconds
    D: Scroll to the right to view each station's link quality and other interface details

  4. Create Layer-3 connections.

    A: Go to the Layer-3 tab and click Create
    B: Create a wireless-to-wired UDP speed test:

    Test 1: sta1-eth0, UDP, 15 Mbps bi-directional, 1472 byte packets

    C: Create a wireless-to-wired TCP connections per second test:

    Test 2: sta2-eth0, TCP, Endpoint-A IP Port 0, CX Duration 0

    NOTE: Duration 0 means there will be zero delay between attempted TCP connections created between sta2 and eth0 which will allow LANforge to generate as many connections per second as possible through the access point

    D: Create a wireless station-to-wireless station speed test:

    Test 3: sta3-sta4, UDP, 1.544 Mbps bi-directional, 1472 byte packets

  5. Run traffic tests individually, and view results on the L3 Endps tab.

    A: Test 1 results show that the wireless station can transmit 15 Mbps, but can only receive about 10 Mbps from the access point
    B: Test 2 results show about 400 TCP connections per second are being established through the access point
    C: Test 3 results show a maximum throughput of about 1.5 Mbps between wireless stations through the access point

    NOTE: This test was run iteratively at different speeds to determine that 1 Mbps was the maximum stable throughput between wireless stations through the access point

 

8. Generating Traffic Using Armageddon

Goal: Setup and run near line-speed 1Gbps traffic using the LANforge Armageddon feature. Return to LANforge-FIRE Cookbook

In this test scenario, LANforge Armageddon is setup to run at about 80,000 packets/second full-duplex to achieve near line-speed 1Gbps traffic generation.
Note: In order to use the LANforge Armageddon feature, your system must have the LANforge kernel patch applied and your system must be properly licensed. Please feel free to contact us at support@candelatech.com if you would like to obtain a demo license for the Armageddon feature.

  1. Configure the physical interfaces.
  2. A: Go to the Port Manager and select ports eth2 and eth3
    B: Modify ports eth2 and eth3:

    • In this example, eth2 and eth3 are physically connected with a patch cable

    C: Configure each port with a valid IP address, then click OK

  3. Create the Armageddon cross-connect.

    A: On the Armageddon tab, click the Create button
    B: Select ports eth2 and eth3 and enter the speed and packet size

    • For this example, 10000pps at 1514byte packet size should generate about 121Mbps

    • Click OK when finished

    C: Verify that the Armageddon connection is created

  4. Run the Armageddon cross-connect and view results.
  5. A: Select the Armageddon connection then click Start
    B: It will take a moment for the Armageddon traffic to stabilize
    and depending on the hardware, LANforge will settle on an actual rate which may differ from the requested rate
    C: In this example, this server (3.2GHz Xeon with 4-port 10/100/1000 PCI-X) is capable of reaching 81,000pps with 1514byte packets or, an equivalent speed of about 981Mbps bi-directional.

    NOTE: Delay for Armageddon connections is measured in microseconds and in this example, the server experiences about 2900us of delay when sending to itself.

 

9. Generating Armageddon Traffic Containing Random MAC Addresses

Goal: Setup and run traffic containing random MAC addresses using the LANforge Armageddon feature. Return to LANforge-FIRE Cookbook

In this test scenario, LANforge Armageddon is setup to run with random MAC addresses. This is useful when performance/stress testing network devices that may not be able to keep up with high-speed traffic containing rapidly changing MAC addresses.
Note: In order to use the LANforge Armageddon feature, your system must have the LANforge kernel patch applied and your system must be properly licensed. Please feel free to contact us at support@candelatech.com if you would like to obtain a demo license for the Armageddon feature.

  1. Configure the physical interfaces.

    A: Go to the Port Manager and select ports eth2 and eth3
    B: Modify ports eth2 and eth3

    • In this example, eth2 and eth3 are connected to another LANforge system running a WanLink so that the Armageddon traffic can be sniffed on the other machine's interface

    C: Configure each port with a valid IP address, then click OK

    NOTE: Be sure that both ports are in Promiscuous mode by selecting the 'Set PROMISC' and 'PROMISC' checkboxes

  2. Create the Armageddon cross-connect.

    A: On the Armageddon tab, click Create
    B: Select ports eth2 and eth3 and enter the speed and packet size
    C: Enter values for the Source and Destination MAC addresses and specify a MAC count

  3. Run the Armageddon cross-connect and verify results with Wireshark.

    A: Select the Armageddon connection then click Start
    B: On the Port Mgr tab of the other LANforge system, select one of the physical interfaces in the Armageddon connection
    C: Click Sniff Packets to launch Wireshark and begin sniffing traffic.

    • Stop the Wireshark capture after a few seconds via the stop icon or pull-down menu (Capture>Stop)

    D: Select several packets and note their MAC addresses
    E: Verify that the MAC addresses for each packet are different

 

10. Scripted Layer-3 Test

Goal: Use RFC-2544 as a guide to create a Layer-3 connection that can run automatically through various payload sizes and rates for a specified duration.

Return to LANforge-FIRE Cookbook

In this example, LANforge is used to setup a scripted connection that will iterate through a user-defined list of payload sizes and transmission rates. Each iteration will run for a user-defined duration with a user-defined pause between iterations. A summary text report is generated at the conclusion of all iterations.

  1. Create a Layer-3 connection. For details refer to: Generating Traffic to a Switched Network
  2. Modify the Layer-3 connection to add the script.

    A: Highlight the Layer-3 connection and select Modify.
    B: Select the Script button on Endpoint A.
    C: Select the Script Type, RFC-2544.
    Note: A default set of payload sizes are setup based on RFC-2544 but, can be changed by typing over the default values.
    Note: For Layer-3 UDP and TCP connections, 'payload size' refers to size of the payload being carried by the protocol and not the ethernet frame size.

  3. Setup script options. For details refer to: LANforge User's Guide: Scripted Cross Connect

    A: Select Symmetric for the script to run both endpoints for a bi-directional traffic test.
    B: Set the Run and Pause Duration.
    C: Note the total number of Script Iterations and Estimated Total Duration to help determine how long it will take to run this script.
    D: Select OK to close the Add/Modify Script window.
    E: The Script Type for Endpoint B is set to NONE because Endpoint A is controlling both ends of the connection in this symmetric script example.
    F: Select OK to close the Create/Modify Cross Connect window.

  4. Start the Scripted Layer-3 Cross Connect.

    A: Highlight the Layer-3 connection and select Start.
    B: A script report window will pop up and show the details of each iteration of the scripted connection as it is run.
    C: At the conclusion of the script, the report window will display a summary of the entire scripted connection results.

    Full Script Report for this example.
    - per iteration details
    - raw CSV data for all iterations
    - spreadsheet matrices for creating your own 3D graphs
    - system information

 

11. Scripted Armageddon Test

Goal: Use RFC-2544 as a guide to create an Armageddon connection that can run automatically through various payload sizes and rates for a specified duration.

Return to LANforge-FIRE Cookbook

In this example, LANforge is used to setup a scripted connection that will iterate through a user-defined list of payload sizes and transmission rates. Each iteration will run for a user-defined duration with a user-defined pause between iterations. A summary text report is generated at the conclusion of all iterations.

  1. Create an Armageddon connection. For details refer to: Armageddon Testing (Accelerated UDP)
  2. Modify the Armageddon connection to add the script.

    A: Highlight the Armageddon connection and select Modify.
    B: Select the Script button on Endpoint A.
    C: Select the Script Type, RFC-2544.
    Note: A default set of payload sizes are setup based on RFC-2544 but, can be changed by typing over the default values.
    Note: For Armageddon UDP connections, 'payload size' refers to size of the ethernet frame size.

  3. Setup script options. For details refer to: LANforge User's Guide: Scripted Armageddon Cross Connect

    A: Select Symmetric for the script to run both endpoints for a bi-directional traffic test.
    B: Set the Run and Pause Duration, modify Rates and Payload Sizes as needed.
    C: Note the total number of Script Iterations and Estimated Total Duration to help determine how long it will take to run this script.
    D: Select OK to close the Add/Modify Script window.
    E: The Script Type for Endpoint B is set to NONE because Endpoint A is controlling both ends of the connection in this symmetric script example.
    F: Select OK to close the Create/Modify Cross Connect window.

  4. Start the Scripted Armageddon Cross Connect.

    A: Highlight the Armageddon connection and select Start.
    B: A script report window will pop up and show the details of each iteration of the scripted connection as it is run.
    C: At the conclusion of the script, the report window will display a summary of the entire scripted connection results.

    Full Script Report for this example.
    - per iteration details
    - raw CSV data for all iterations
    - spreadsheet matrices for creating your own 3D graphs
    - system information

 

12. Multiple Thousands of TCP Connections

Goal: Setup and run traffic on multiple thousands of stateful TCP connections.

Return to LANforge-FIRE Cookbook

As of LANforge release version 5.1.4, LANforge-FIRE has the capability to create multiple thousands of TCP connections using only two ports on one Layer-3 connection that can all run simultaneously and in a stateful manner.    This feature can be used to test connection state aware devices such as firewalls, stateful packet inspection systems and intrusion detection/prevention systems.

The upper limit of the total number of concurrent connections is determined by the processor speed and total memory available on the system running the LANforge software. In addition, the packet rate and payload size of each connection will also affect performance.

NOTE: If you are attempting to run this test scenario, you will need a LANforge license key that enables the correct number of multi-connections. Please contact us at support@candelatech.com for assistance.

  1. For this example, two physical ports on a single LANforge system are connected together.
  2. Setup the LANforge ports so that they have valid IP addresses and IP masks.

    A: Using the LANforge GUI, go to the Port Manager tab.
    B: Assign IP addresses and masks to the two ports.
    C: Verify the port configuration.

  3. Setup a Layer-3 Multi-Conn TCP connection.

    A: Go to the Layer-3 tab, and select the Create button.
    B: For Endpoint A, type in a name in the CX Name field, choose a CX Type of LANforge/TCP, choose the correct ports and set the Report Timer to 1000 ms.
    C: Set the Min Tx Rate and Max Tx Rate on both Endpoints A and B to 9.6Kbps.

    NOTE: Higher speeds and/or bursty transmit rates will require more memory to process per connection.

    D: Leave the Min Pkt Size and Max Pkt Size on both Endpoints A and B set to 1024B.

    NOTE: Larger packet sizes will use more memory, smaller packet sizes will require more CPU processing time.

    E: Leave the TCP Duration set to Forever, unless you want each of the multiple TCP connections to teardown and restart after a specified duration.
    F: For Endpoint A, set the Multi-Conn to the desired number of multiple TCP connections.

    You can type in any value that your license allows here or choose one from the drop down box. The recommended approach is to create a new Multi-Conn connection for every 5000 connections.

    G: For Endpoint B, set the Multi-Conn to one, then select OK to create the connection.

    Endpoint B is the "server" side of the TCP connection, therefore it is only necessary to have one Multi-Conn setup on Endpoint B to reply to all of the Endpoint A TCP SYN packets when the 5000 connections are being established.

  4. Create 5 more Layer-3 Multi-Conn TCP connections.

    A: On the Layer-3 tab, highlight the first connection created in the previous step and select Modify.
    B: Select the Batch-Create button.
    C: Set the Quantity to 5, and set Port Increment A and Port Increment B to 0.
    D: Select the Apply button.
    E: Verify that six Multi-Conn TCP connections were created.

  5. Run traffic and verify results.

    A: Highlight all six connections.
    B: Select the Start button
    C: Go to the L3 Endps tab to verify that all 30,000 connections are running.
    D: Or, go to the Port Mgr tab, and sniff one of the ports while the Multi-Conn TCP connections are running.

    NOTE:You will need a lot of memory to run a Wireshark capture on 30,000 connections. It is probably best to stop all connections, set up the Wireshark capture, start all connections and let them run for 30 seconds to 1 minute before stopping them all, then stop the Wireshark capture and wait for it to process all those packets!

    E: After the Wireshark capture is complete, go to Statistics - Conversations to allow Wireshark to analyze the conversations and show that all 30,000 connections were captured. This will take some time to complete depending on the size of the capture.

 

13. Multiple Thousands of UDP Connections

Coming Soon...


14. Making FIRE Chili...

Goal: Make some tasty chili. Return to LANforge-FIRE Cookbook

In this test scenario, LANforge-FIRE is not used to generate traffic. Instead, the test engineer should realize that all work and no play makes Homer something something.

Please note that this chili recipe is just as quick and dirty as the rest of the examples in this cookbook, but ever more tasty. Feel free to improvise...

  1. Get yourself in a kitchen with some groceries.
  2. Prep some ingredients.

    A: Chop up some onions. One should be good enough.
    B: Chop up some garlic. Just a few cloves.

  3. Cook it all up.

    A: Brown some ground beef.
    B: Heat up tomato sauce, kidney beans. 16oz of each is good.
    C: Add garlic, onions, beef and spices such as cayenne, cumin, chili powder, salt and pepper.
    D: Don't forget the beer!
    Note: The beer is for you, not the chili...unless of course you are experimenting!
    E: Cornbread is also nice to have.

  4. Enjoy!

    A: Serve with additional chopped onions, corn chips and cheddar cheese.

 

 


 


Candela Technologies, Inc., 2026 Main Street, Suite A, P.O. Box 3285, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1 360 380 1618


Candela Technologies, 2026 Main Street, Suite A, P.O. Box 3285, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1 360 380 1618