After you install OpenWrt on your Router you should do a Network Address Translation Benchmark to know how well it performs address translation of network packets between your local network (LAN) to your internet service provider (WAN).
The diagram below shows the general layout of the benchmark test described below:
It is important to know the performance of the router in order to maximise the subscription you are paying to your internet service provider for the bandwidth allocated.
In order to make full use of the bandwidth you are paying for, the router has to be able to process network packets at rates that exceed the bandwidth of the subscription you are paying for.
You should not take benchmarks found online as a reference because it is now using OpenWrt iptables (Masquerade) to perform translation of ip address of network packets instead of the factory firmware network stack implementation.
For a graphical approach to testing you can follow the methods to utilise jperf to benchmark Network Address Translation performance as described below:
On the Client Computer using Web Browser,Telnet or SSH get to the Router Configuration Page at IP Address 192.168.1.1 and set the network settings on the Router WAN Interface to
Click Save and Apply.
On the Server use its own network configuration tool to set the network settings to
Click Save and Apply.
By this step your client should be able to ping the server successfully by the command:
You should get a series of ping echo response if not recheck your network settings or turn off your firewall on both the Client and the Server. There is no need to change the LAN Settings as by default OpenWrt sets LAN to 192.168.1.0/24 in DHCP Mode.
Extract the compressed files in Jperf to a folder. If you are running Linux you might need to set the execute bit on jperf.sh. Open a Terminal in that directory and run
chmod +x jperf.sh
In Windows you run Jperf by double clicking jperf.bat. In UNIX you run Jperf by executing jperf.sh.
You should be able to see the jperf main screen.
You need to set the Jperf on the Server to listen first before we can run the Client.
For the Server, simply select Server and change the metric to Mbits for easy reference and comparison as shown below.
Then click run Iperf to set the Server to listening mode.
For TCP select TCP as shown below, for UDP select UDP
For the Client Computer, simply select Client and enter the Server Address 10.1.1.2 and change the metric to Mbits as well.
For UDP, you need to set the bandwidth to line rate eg. 900Mbits and observe the actual throughput on the receiver Server as shown below
When you are ready click run Iperf to start the test. After the test ends you should ALWAYS analyse the result on the Server for accuracy instead of the Client since only the network packets that get through matters not the packets generated.
For the above picture it indicates that the Router will be generally sufficiently powerful enough for a < 250Mbps Internet Subscription Plan.
Note that OpenWrt does Network Address Translation in Software so any activities that taxes the router's processor will affect the Network Address Translation performance including accessing the router web server LuCI, Telnet sessions, SSH sessions, Samba file copy etc. Running Network Congestion Control software like SQM also reduces the network throughput performance.