Listen to this Post
Performance numbers for networking hardware can be confusing. Here’s four facts you need to know.
Forwarding Capacity – Let’s say that a router does 2 Gbit/s. Does that mean that it does 2 Gbit/s in each direction, or in total? This can vary per vendor. Some people like to call it “full duplex” numbers. What you really want to know is how much forwarding capacity the router has in total. 2 Gbit/s could be 1 Gbit/s in and 1 Gbit/s out, or it could be 1.5 Gbit/s in and 500 Mbit/s out.
Frame Size – What frame sizes were tested? Often, you’ll see minimum size frames (64 bytes), maximum size frames (1518 bytes) and IMIX (distribution of different frame sizes). Some devices do really well with 1518 bytes, but not so well with 64 bytes. Some have very similar numbers for both. When you compare different vendors, you need to take frame sizes into account.
Features – What features were enabled when performing the test? Some devices can forward a ton of traffic until you start enabling features such as NAT, QoS, IPSec, firewalling, and so on. What features are relevant to you? You could have a device that drops 80% in forwarding capacity when enabling features. Is 20% of the maximum enough for your use case?
Packets Per Second – The device might be able to handle the amount of bandwidth that you need, but is it also capable of forwarding the number of packets per second that is required? In some use cases you may have a lot of smaller packets that need to be forwarded. They aren’t going to consume a lot of bandwidth but may max out other aspects of the forwarding capacity.
Practice Verified Codes and Commands:
1. Check Forwarding Capacity on Linux:
ethtool eth0 | grep Speed
This command will show you the speed of the network interface, which is crucial for understanding forwarding capacity.
2. Test Frame Sizes with Ping:
ping -s 64 -c 100 example.com ping -s 1518 -c 100 example.com
These commands will help you test the network with different frame sizes.
3. Enable Features and Test Performance:
iptables -A INPUT -p tcp --dport 80 -j ACCEPT iptables -A INPUT -p tcp --dport 443 -j ACCEPT
These commands enable basic firewall features on a Linux machine. You can then test the performance impact using tools like iperf.
4. Measure Packets Per Second:
tcpdump -i eth0 -c 1000
This command captures 1000 packets on the `eth0` interface, allowing you to measure the packets per second.
What Undercode Say:
Understanding network hardware performance metrics is crucial for optimizing network infrastructure. The forwarding capacity, frame size, enabled features, and packets per second are all critical factors that can significantly impact network performance. By using tools like ethtool, ping, iptables, and tcpdump, you can gain a deeper understanding of how these metrics affect your network.
In Linux, you can further optimize your network by tweaking kernel parameters. For example, adjusting the TCP window size can improve throughput:
sysctl -w net.ipv4.tcp_window_scaling=1
For Windows, you can use the `netsh` command to monitor and adjust network settings:
[cmd]
netsh interface ipv4 show interfaces
[/cmd]
Additionally, understanding the impact of enabling security features like NAT, QoS, and IPSec is essential. These features can drastically reduce forwarding capacity, so it’s important to test their impact in your specific environment.
In conclusion, always consider the specific requirements of your network when analyzing performance metrics. Use the appropriate tools to measure and optimize performance, and keep in mind that enabling additional features can have a significant impact on forwarding capacity. By understanding these factors, you can make more informed decisions when selecting and configuring network hardware.
For further reading, you can refer to the following resources:
– Cisco Performance Metrics
– Linux Network Tuning
– Windows Network Configuration
References:
initially reported by: https://www.linkedin.com/posts/danieldib_performance-numbers-for-networking-hardware-activity-7299680219127279616-WqwD – Hackers Feeds
Extra Hub:
Undercode AI


