Candela Technologies Logo
Network Testing and Emulation Solutions

Generating Traffic to a Firewall

Goal: Set up and run traffic to test a firewall.

In this test scenario, LANforge-FIRE is used to generate traffic to a firewall DUT in order to measure the following benchmarks:
  • UDP Throughput - Maximum payload bits per second with a UDP traffic flow.
  • TCP Throughput - Maximum payload bits per second with a TCP traffic flow.
  • TCP Concurrent Connections - Maximum number of simultaneous TCP connections.
  • TCP Connections per Second - Maximum number of established TCP connections per second.

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.
    1. On the Port Manager tab, set up the LANforge ports with valid IP addresses. screenshot
    2. On the Layer-3 tab, create a UDP connection.
      screenshot
      1. Set Endpoint A to use the DUT WAN port.
      2. Set Endpoint B to use the DUT LAN port.
      3. Make sure CX Type is LANforge / UDP then select Apply.
    3. Select the Script button to set up the scripting parameters. screenshot
      1. Set up the script to iterate over the rates.
      2. Specify the payload sizes to be tested.

      For more information see LANforge FIRE Cookbook example: Scripted Layer-3 Test

    4. Highlight the connection and select the Start button. screenshot
    5. 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. screenshot

      For more information see Full script report for the UDP test.

  2. The TCP Concurrent Connections test will measure the maximum number of simultaneous TCP connections that the DUT can maintain at once.
    1. On the Port Manager tab, create 5 MAC-VLANs on the LANforge port connected to the DUT LAN port. screenshot
    2. Verify that the MAC-VLANs have correct IP addresses. screenshot
    3. Create a Layer-3 connection that has a low-speed rate with Multi-Conn set to 10000 and Min IP Port to 0 (zero) on Endpoint-A. Multi-Conn should be set to 1 on Endpoint-B. screenshot
      1. Endpoint-A will be one of the MAC-VLANs and Endpoint-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.
      2. Low-speed depends on the DUT, we could also set the rate to zero which would allow the TCP connections to be set up 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.
      3. 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.
      4. The DUT should be power-cycled to reset it before each test run.
    4. Select the Batch-Create button to create 4 more copies of this connection each with a new MAC-VLAN port. screenshot
    5. Highlight and start each set of 10000 connections until the target max simultaneous connections are running. screenshot
    6. On the Layer-3 Endpoints tab, highlight the Running A-Side Endpoints, then right-click and select Calculations. screenshot
    7. The top line, Sum, is what we are interested in for Maximum Concurrent TCP Connections. screenshot
    8. 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. screenshot
      1. CX Active is the metric we are attempting to measure for Maximum Simultaneous TCP Connections. It will fluctuate with the DUT's ability to maintain the number of active TCP connections.
      2. 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.
  3. The TCP Connections per Second test will measure the rate of TCP connections that can be set up through the DUT.
    1. Create a Layer-3 TCP connection with the Duration and IP Port set to zero. screenshot
    2. Highlight and Start the connection. screenshot
    3. View the CX-Estab/s rate on the Layer-3 Endpoints tab. This DUT can set up about 120 connections per second. screenshot

    For more information see LANforge GUI User's Guide


Candela  Technologies, 2417 Main Street, Suite 201, Ferndale, WA 98248, USA
www.candelatech.com | sales@candelatech.com | +1.360.380.1618
Facebook | LinkedIn | Blog