Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
docs:guide-user:perf_and_log:benchmark.nat [2019/07/09 12:54] – [Server Network Settings] gwlimdocs:guide-user:perf_and_log:benchmark.nat [2020/06/19 23:11] – [Rationale] Link for JPerf download does not address to the correct site. sopalajoarrierez
Line 1: Line 1:
 ====== IPv4 Benchmark Network Address Translation ====== ====== IPv4 Benchmark Network Address Translation ======
  
-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).+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).
  
-Diagram below shows the general layout of the benchmark test described below+The diagram below shows the general layout of the benchmark test described below:
  
 {{:media:jperf-ipv4-setup.png?600|}} {{:media:jperf-ipv4-setup.png?600|}}
 +
 ===== Rationale ===== ===== Rationale =====
  
Line 12: Line 13:
 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. 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.+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: For a graphical approach to testing you can follow the methods to utilise jperf to benchmark Network Address Translation performance as described below:
  
-[[http://code.google.com/p/xjperf/‎|Jperf]] is [[http://en.wikipedia.org/wiki/Iperf‎|Iperf]] with a Java graphical frontend.+[[http://code.google.com/p/xjperf/‎|Jperf]]FIXME (check modern link) is [[http://en.wikipedia.org/wiki/Iperf‎|Iperf]] with a Java graphical frontend.
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 32: Line 33:
   - In order to simplify the steps involved we will use 10.1.1.0/24 as the WAN Network and the default 192.168.1.0/24 as the LAN Network   - In order to simplify the steps involved we will use 10.1.1.0/24 as the WAN Network and the default 192.168.1.0/24 as the LAN Network
  
-==== Server Network Settings ====+==== WAN Network Settings ====
  
 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 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
  
-Protocol | Static | +Protocol          | Static          
-|IP Address | 10.1.1.1 | +IP Address        | 10.1.1.1        
-|Subnet Mask | 255.255.255.0 | +Subnet Mask       | 255.255.255.0   
-|Default Gateway |   |+Default Gateway                   |
  
 {{media:doc:howtos:openwrt_server_wan.png|}} {{media:doc:howtos:openwrt_server_wan.png|}}
Line 45: Line 46:
 Click Save and Apply. Click Save and Apply.
  
-==== WAN Network Settings ====+==== Server Network Settings ====
  
 On the Server use its own network configuration tool to set the network settings to On the Server use its own network configuration tool to set the network settings to
  
-Protocol | Static | +Protocol          | Static          
-IP Address | 10.1.1.2 | +IP Address        | 10.1.1.2        
-|Subnet Mask | 255.255.255.0 | +Subnet Mask       | 255.255.255.0   
-|Default Gateway | 10.1.1.1 |+Default Gateway   | 10.1.1.1        |
  
 {{media:doc:howtos:server.png|}} {{media:doc:howtos:server.png|}}
Line 63: Line 64:
 <code>ping 10.1.1.2 </code> <code>ping 10.1.1.2 </code>
 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. 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 DHCP Mode.+There is no need to change the LAN Settings as by default OpenWrt sets LAN to 192.168.1.0/24 in DHCP Mode.
  
 ===== Setting Up Jperf ===== ===== Setting Up Jperf =====
Line 76: Line 77:
  
 You should be able to see the jperf main screen. 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. 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. 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. Then click run Iperf to set the Server to listening mode.
 +
 For TCP select TCP as shown below, for UDP select UDP For TCP select TCP as shown below, for UDP select UDP
  
Line 100: Line 105:
 For the above picture it indicates that the Router will be generally sufficiently powerful enough for a < 250Mbps Internet Subscription Plan. 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'Processor will affect the Network Address Translation performance including accessing the Router Web Server LuCI, Telnet Sessions, SSH Sessions,Samba File Copy etc.|+<WRAP center round important 80%> 
 +Note that OpenWrt does Network Address Translation in Software so any activities that taxes the router'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. 
 +</WRAP> 
  
-{{tag>fastethernet ethernet router gigabitethernet}} 
  • Last modified: 2020/06/19 23:16
  • by sopalajoarrierez