









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A lab handout from rensselaer polytechnic institute for experimental networking (ecse 4963) course. It covers the basic linux and networking commands, tcp/ip protocols, and socket programming. Students are introduced to various linux commands, networking tools, and concepts such as ip, tcp, udp, and icmp.
Typology: Lab Reports
1 / 16
This page cannot be seen from the preview
Don't miss anything!










Shivkumar Kalyanaraman
1
http://www.ecse.rpi.edu/Homepages/shivkuma
Aug 29, 2002
Shivkumar Kalyanaraman
2
Shivkumar Kalyanaraman
4
Satellite Ethernet
^
Packet-switched network ^
IP is the glue ^
Hour-glass architecture-^
all hosts and routers run IP
-^
IP runs over everything
^
Common IntermediateRepresentation
ICMP Cable
Shivkumar Kalyanaraman
5
Shivkumar Kalyanaraman
7
Shivkumar Kalyanaraman
8
^
Reliable:
uses:
^
ACKs (“sender
: receiver correctly got this packet”),
^
checksum (“receiver
: is this packet is correct or
wrong?”) and window (multiple packets in flight: pipelined) ^
Byte-stream:
no application-packet boundary like UDP
^
Congestion control:
reduce demand during overload,
to ensure stable statistical multiplexing of the network
Shivkumar Kalyanaraman
10
Scheduler
queue 1 queue 2^ …… queue k
Classifier
buffer management
I^1 I^2 I^ m
O^1 O^2 On
router
Shivkumar Kalyanaraman
11
^
ping – check if machine is alive ^
ifconfig – interface (ip addr / mask) configuration ^
arp – link / network layer address mapping ^
netstat – status info of network configuration ^
telnet – remote terminal ^
ftp – file transfer tool ^
route – set static route of a machine ^
traceroute – gather route information ^
tcpdump – dump packet header ^
nslookup – resolve DNS name of target hostname Key : What can you infer
about the network or end-to-
end properties
with these commands?
Shivkumar Kalyanaraman
13
^
To check default gateway/static routes without beingdependent on DNS:
netstat -rn
^
If you get an error saying command not found, set thepath:
export PATH=$PATH:
^
Common directories where programs are found:
/usr/sbin, /sbin, /usr/bin, /usr/local/bin
^
If you have root and want to start/stop/restart thenetworking modules : /etc/init.d/network start /etc/init.d/network stop /etc/init.d/network restart
Shivkumar Kalyanaraman
14
^
Write program to measure round-trip time between two endhost on the Internet;^
Refer to ping: write a simple wrapper program.. ^
Propose a model for RTT prediction, i.e., give a sequenceof RTT measures, estimate the next RTT value.^
Measure several values of RTT. What can you sayabout the samples? If they are variable, what can youdo to reduce the variability of the RTT estimate? Time series model
Shivkumar Kalyanaraman
16