COMMUNICATION IN THE NETWORK
Data can be transferred in a network using the following methods:
[ Hint: Use xterm to access separate CLI for hosts ]
[ Ex: xterm h1 h2 ]
1. Using SimpleHTTPServer and wget :
SimpleHTTPServer is a python based server application for hosting the files in a system to anyone with the system's IP address.
wget is used to obtain the file from the server.
This results in obtaining a default file 'index.html' from the server.
To run a server: python -m SimpleHTTPServer 80 &
To run a client: wget -o - [server_ip]
Server started:
Acknowledgment sent to the server:
Thus a file is being transferred between the hosts.
2. Using iperf
Iperf is a widely used tool for network performance measurement and tuning. It helps in transferring actual data between the hosts.
It can transfer data in two ways:
- TCP transfer
Server: iperf -s
Client: iperf -c [server_ip]
Details known: Amount of data transferred, bandwidth used
- UDP transfer
Server: iperf -s -u
Client: iperf -c [server_ip] -u -b [bandwidth_value]
Details known: Amount of data transferred, bandwidth used, jitter, total number of datagrams, number of datagrams lost, etc.
iperf has many options to modify bandwidth value, amount of data transferred, time taken to transfer, etc.
Thus helping us to stimulate traffic in the network and analyze network performance.
Good Luck!







Comments
Post a Comment