CS 725/825 Computer Networks, IT 725 Network Technology
Assignment 5
Due: Wednesday, December 9, 2026, 2:10 p.m. (start of the class)
Problems:
- (5 points) This question focuses on the concepts of Autonomous System (AS) and Autonomous System Number (ASN). Find a tool (an online one is fine; it does not have to be a command-line utility) that allows you to retrieve AS information and answer the following questions:
- What ASNs are controlled by the University of New Hampshire System (usnh.edu)?
- List the IPv4 and IPv6 prefixes included in the University of New Hampshire System's ASs.
- Which ASs is the University of New Hampshire System connected to?
- Does the University of New Hampshire System serve as a transit AS for any other AS?
- (5 points) Run
traceroutefrom a computer on the UNH network (e.g., from agate) towww.uconn.edu. List the ASs and their ASNs encountered along the way. (traceroutewill not be able to get all the way to the node that serves www.uconn.edu, but you will get close enough to answer the question.) - (20 points) Consider a trace of an HTTPS request and answer the questions below. If you want to use Wireshark, here is the trace: cs725-f26-a5-embed.pcapng.
- The session key is now available as part of the trace on this website. Does that in some way compromise the security of either the client or the server used to capture the traffic? Obviously, the content of the session is now visible to everyone, but how about any past or future sessions? Or sessions with other clients or servers? Is there a danger of a man-in-the-middle attack?
- What is the version of TLS used in the HTTPS transaction captured in the trace?
- How many packets does it take to establish the TLS session (i.e., past the 3-way handshake all the way to the packet that carries the HTTP GET request)?
- How many round-trip times does it take to establish the TLS session?
- Draw and annotate a sequence (ladder) diagram showing the packets used to establish the TLS session.
- Which packet or packets contain the server certificate(s)?
- Briefly describe the motivation behind the HTTP response captured in the trace.
- In which packet does the client notify the server that the TLS connection is being closed?
- Consider the way the TCP connection is closed. For each side, decide whether it performs an active or a passive close. Paying attention to the sequence and acknowledgement numbers may give you a clue. Tracing the sequence of TCP states that both the client and the server go through will help.
- (20 points)
- Outline the format of a QUIC packet.
- Describe the steps involved in establishing 1-RTT and 0-RTT QUIC connections between a client and a server. Highlight the differences between QUIC and TCP+TLS handshakes.
Note: If you are not familiar with our university's organizational structure, USNH is the umbrella organization that administers all public universities in the state, including UNH.
There are many online tools that can help with this question, and you are encouraged to explore them. As a starting point, check: https://ipctl.io/vs/bgpview, https://stat.ripe.net, https://ipinfo.io/, and https://bgp.he.net.
The trace captures encrypted traffic, so normally you would not be able to see the application-layer payload. However, the HTTPS request captured in the trace was executed with the environment variable SSLKEYLOGFILE set, which made the command-line utility curl output the session key to a file. The key was then added to the trace file using editcap, allowing common packet viewers to decrypt the encrypted payload. As a side note, many browsers and networking libraries can be made to output session keys for network traffic debugging purposes. If you are curious, see this article for more details (the method that they describe works for most standard applications, including curl). You can also see how the same trace looks without access to the key (here is the packet capture file: cs725-f26-a5.pcapng).
Programming assignment:
- (50 points) The goal of this assignment is to further experiment with network performance testing. To this end, you are asked to design a tool to measure the sustained throughput of a TCP connection running over a given network. You are free to design the tool in any way you want. However, it must not be implemented as a simple wrapper over an existing tool. You will need to write both the client and the server side of the tool. Use the industry-standard utilities (
netperf/netserver,iperf, andiperf3) to compare and verify the results obtained from your tool. The comparison of measurements obtained using those and your tool is one of the key deliverables of this assignment.
To run your experiment, use rb1.cs.unh.edu and rb2.cs.unh.edu. In addition to their connectivity to the departmental network, the servers are connected by three links, each using interface enp2s0fn and a subnet 10.2.n.0/24, where n = 0, 1, 2. These links carry no traffic other than that generated by the experiments. Each link is configured with 10 ms added round-trip delay and a different packet loss rate:
Please note: these impairments will be set as soon as the 4-day late submission period for the previous assignment is over. I will send a notification on Teams when that happens.
| Interface | Subnet | Added round-trip delay (ms) | Packet loss (%) |
|---|---|---|---|
| enp2s0f0 | 10.2.0.0/24 | 10 | 0 |
| enp2s0f1 | 10.2.1.0/24 | 10 | 0.1 |
| enp2s0f2 | 10.2.2.0/24 | 10 | 1 |
The links are configured with private IP addresses, so make sure you send your test traffic over them and not over the public interfaces rb1.cs.unh.edu and rb2.cs.unh.edu. Standard development tools are installed there. Accounts are being set up for all students in the course using their UNH usernames and passwords (the same credentials they use on Agate). The servers do not mount your Agate filesystem. The best way to keep your code in sync across your development environment and both machines is to use git and create separate clones of your repository.
Deliverables:
- Besides describing your approach, the observed results, and the comparison with the standard performance testing tools, include a sample run in your assignment submission. You must show representative runs of your programs together with appropriate explanations. Important: by showing an execution of your program, you are making a statement that your program, as submitted, works as shown. An attempt to “fake” a run—for example, by writing a program that ignores input and just prints answers regardless of input—will be considered cheating. You may be asked to give a demo of your program. If your program does not fully implement the required functionality or does not work, you must make that clear in the report.
- Commit the source code to your course Git repository (see instructions). Add brief instructions on how to compile and run the code to the assignment's
README.md. Do not commit data, graphs, documents, etc. into the repository. Do not forget to tag the commit asa5.
Submission instructions:
Upload your submission as a single PDF file using myCourses (mycourses.unh.edu). Any source code used in the assignment must be committed to the course Git repository. More details can be found in the standard assignment submission instructions.