Navigation
SEARCH
TOOLBOX
LANGUAGES

CDRouter User Guide 6.3/Using CDRouter with Traffic Generators

From QA Cafe Support Wiki

Jump to: navigation, search

Contents

Using CDRouter with Traffic Generators

The CDRouter test environment can be enhanced using third party traffic tools such as Smartbits, IXIA, Chariot, netperf, ttcp, etc. This allows you to execute CDRouter test cases while other third party traffic tools provide background traffic or additional testing.

CDRouter has a feature that allows it to forward any traffic it receives on the WAN out an additional Ethernet interface on the CDRouter test host. Only packets that are not part of the test are forwarded. All other packets related to the test are processed normally by the CDRouter test host. Any packets received on this additional Ethernet interface are forwarded back to the WAN side of the router.

Topology Example

The diagram below shows an example topology for adding a traffic generation tool to a CDRouter test setup. One interface of the traffic generation tool is connected to the LAN side of the router. The other interface of the traffic generation tool is connected to additional Ethernet port on the CDRouter host.



Configuration

When CDRouter is configured to forward unknown traffic, it runs its own IP stack on the additional Ethernet port. This IP address may be pinged from the Ethernet side or the WAN side. CDRouter refers to the additional Ethernet port as the forwardUnknownPort. This port must be different from the current LAN or WAN ports and should be configured without any Linux IP address.

The following configuration settings are available to enable the third party traffic forwarding feature.



forwardUnknownPort This testvar specifies an Ethernet interface that is used to forward traffic to and from the WAN.

Example:
testvar forwardUnknownPort eth3

forwardUnknownIp This testvar specifies the IP address of the IP stack on the forwardUnknownPort interface. The interface will respond to ARP requests for this IP address.

Values: A valid IPv4 address

Example:
testvar forwardUnknownIp 6.6.6.6

forwardUnknownMask This testvar specifies the network mask of the forwardUnknownPort interface.

Values: A valid IPv4 address

Example:
testvar forwardUnknownMask 255.255.255.0

forwardUnknownMac This testvar specifies the MAC address used ont he forwardUnknownPort. By default, the real MAC address of the hardware device is used.

Example:
testvar forwardUnknownMac 00:0c:0c:00:00:01

forwardUnknownGateway This testvar specifies the IP address of the gateway for the forwardUnknownIp interface.

Values: A valid IPv4 address

Example:
testvar forwardUnknownGateway 6.6.6.7

forwardUnknownProxyArp This testvar is used to have the forwardUknownPort interface answer proxy ARP requests for a specific IP address. This is not normally used, but it can be used in certain IP configurations.

Values: A valid IPv4 address

Example:
testvar forwardUnknownProxyArp 6.6.6.10

Example Configuration

The CDRouter distribution includes the following example configuration for third party traffic tools in the /usr/share/doc/cdrouter/traffic-tools.conf file:

#
# Example configuration for third party traffic tools.
#
# Packets received on any WAN interface that are not part of the test
# will be forwarded out the specified Ethernet interface. Any packets 
# received on the Ethernet interface will be forwarded to the first
# WAN interface.
#
# This file can be included in any existing configuration file using the
# "source" command. Add "source traffic-tools.conf" to your existing
# configuration file.
#


# -- forwardUnknownPort must specify an Ethernet interface that is used
#    to forward traffic to and from the WAN

testvar forwardUnknownPort     eth3

# -- forwardUnknownIp is the IP address of the IP stack on the 
#    forwardUnknownPort interface. The interface will respond to ARP
#    requests for this IP address.

testvar forwardUnknownIp       6.6.6.6

# -- forwardUnknownMask is the network mask of the forwardUnknownPort
#    interface.

testvar forwardUnknownMask     255.255.255.0

# -- forwardUnknownMac is the MAC address used on the forwardUnknownPort.
#    By default, the real MAC address of the hardware device will be used.
# testvar forwardUnknownMac    00:0c:0c:00:00:01


# -- forwardUnknownGateway is the IP address of the gateway for the
#    forwardUnknownIp node.
 
testvar forwardUnknownGateway  6.6.6.7

# -- forwardUnknownProxyArp is used to have the forwardUnknown interface answer 
#    proxy ARP requests for a specific IP address. This is not normally
#    used, but it can be used to certain IP configurations.
#
# testvar forwardUnknownProxyArp  6.6.6.10
#