Skip to content

Networking

iperf

About

iPerf/iPerf3 is a tool for active measurements of the maximum achievable bandwidth on IP networks.

Ref: https://iperf.fr/

Use

Server End

iperf -s
Client End
iperf -c <Server Name>
OR
iperf -w 1M -t 120 -P 16 -c <Server Name>

mtr

About

  • It is a network diagnostics tool
  • mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.
  • As mtr starts, it investigates the network connection between the host mtr runs on and HOSTNAME. by sending packets with purposly low TTLs. It continues to send packets with low TTL, noting the response time of the intervening routers. This allows mtr to print the response percentage and response times of the internet route to HOSTNAME. A sudden increase in packetloss or response time is often an indication of a bad (or simply overloaded) link.
  • Ref: https://linux.die.net/man/8/mtr

To check MTR Output

mtr <Server Name>

To perform 100 counts

mtr -c 100 <Server Name>

To create report

mtr --report -c 100 <Server Name>

nc

About

  • The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP.
  • It can open TCP connections, send UDP packets, listen on arbitrary TCP and UDP ports, do port scanning, and deal with both IPv4 and IPv6.
  • Unlike telnet(1), nc scripts nicely, and separates error messages onto standard error instead of sending them to standard output, as telnet(1) does with some.

To check open port status

nc -zv <Destination Server> <Port>

Example

[root@localhost ~]# nc -zv 8.8.8.8 53
Ncat: Version 7.80 ( https://nmap.org/ncat )
Ncat: Connected to 8.8.8.8:53.
Ncat: 0 bytes sent, 0 bytes received in 0.15 seconds.
[root@localhost ~]#
Back to top