[Lab] UDP
TCPDUMP
- Read the manpage of
tcpdump, which is a powerful packet-capturing utility on Unix.
- Try to capture DNS queries/responses at port 53.
- You may use the
utility "host", "nslookup", "dig" to query DNS servers.
If these commands are not available on your CentOS, you may install
them by "yum install bind-utils".
- Inspect whether DNS queries/responses are transported by TCP or
UDP.
SNMP
- Run "snmpget" or "snmpwalk", and try to capture SNMP
requests/responses at port 161.
- Suppose you want to query the object "sysLocation.0". Although
both "snmpget" and "snmpwalk" show exactly the same results, tcpdump
shows that the numbers of SNMP requests/responses are different.
- Inpsect whether SNMP requests/responses are transported by TCP or
UDP.
- Discuss with your neighbors why DNS and SNMP are transported by
this protocol? Shouldn't it be reliable?
Traceroute
- If your CentOS has no "traceroute" yet, run "yum install
traceroute".
- Run "traceroute" on both CentOS or Windows. Capture their packets.
- Inspect the "Protocol" field in their IP headers. Do you see any
difference?
- Discuss with your neighbors why somebody would want to run
"traceroute" over UDP, while others run "traceroute" over ICMP?
- What is the UDP destination port of the "traceroute" service?
- Check the IANA
port numbers list and see whether this port number
is defined or not.
Checksum
- Choose one of the UDP packet which you captured. Find out its
"Checksum" field, and illustrate how to calculate that value from other
fields.
- Submit the packet and the formula to Moodle.
iperf
- Install a performance measurement "iperf" by "yum install iperf".
- Run "iperf -s" on the server side.
- Run "iperf -c SERVER_ADDR" on the client side, and observe the
bandwidth.
- The above test measures the TCP performance. To measure UDP
performance, run "iperf -u -s" on the server side, and "iperf -u -c
SERVER_ADDR" on the client side. What is the bandwidth?
- Which option you should add to achieve higher bandwidth?
- Recorder the highest bandwidth you can achieve and compare with
your classmates.
YouTube
- What is the transport protocol of YouTube streams?
(Capture Filter: ip6 net 2404:6800::/32)
- What is the transport protocol of IPTV in BUPT?
(Capture Filter: ip6 net 2001:da8::/32)
- What is the status of QUIC (Quick UDP Internet Connections)? Is it
a standard or still a draft?
- Find more on-line streaming services and inspect whether they are
transported by TCP or UDP. Please supply both the URLs and capture
filters.
- Read some articles and discuss with your classmates whether you
like to transport video streams by TCP or UDP?