~> hw9 thetrace thedirectory SRC IP/PORT DST IP/PORT BYTES PACKETS a.b.c.d/8484 e.f.g.h/80 12205 2115 e.f.g.h/80 a.b.c.d/8484 3555 223 a.b.c.d/22 e.f.g.i/19495 1205 211 e.f.g.i/19495 a.b.c.d/22 335 32and thedirectory would contain the files
~> ls thedirectory a.b.c.d.8484-e.f.g.h.80 e.f.g.h.80-a.b.c.d.8484 a.b.c.d.22-e.f.g.i/19495 e.f.g.i/19495-a.b.c.d.22An example tcpdump tracefile is included in the hw9 template directory. However, it would be advisable to record your own traces and try your solution on them as well. When doing the final grading, we will use this file as well as another dump containing some tcp flows.
./hw9_score username score_file
This script will create a directory with your username, download hw9 from svn and create score_file inside hw3. The trace file will be exported from the svn and you don't need to commit the trace file with your submission. The grading script redirect stdout of your program to a file named output and check for total flow count, size and packets of individual flow from that file. Correctness of a image file content is verified using md5sum of that image file produced by extract_images.sh
Output of the grading script will look like following:
[SUCCESS] flow count correct? [1]: 1 [SUCCESS] 72.26.203.98.80-192.168.1.100.63052 size correct? [0.75]: 0.75 [SUCCESS] 72.26.203.98.80-192.168.1.100.63052 packet count correct? [0.75]: 0.75 [SUCCESS] 72.26.203.98.80-192.168.1.100.63052 md5 correct? [1]: 1 [SUCCESS] 98.124.60.211/80-192.168.1.100/63176 size correct? [0.75]: 0.75 [SUCCESS] 98.124.60.211/80-192.168.1.100/63176 packet count correct? [0.75]: 0.75 [SUCCESS] 98.124.60.211/80-192.168.1.100/63176 md5 correct? [1]: 1 Total score: 6The grading script doesn't check for everything exhaustively. However, we may look different things manually and point may be reduced if there are inconsistencies such as following:
Copyright 2016 The Board of Trustees of the University of Illinois.webmaster@cs.uic.edu |
WISEST Helping Women Faculty Advance Funded by NSF | ![]() | ![]() |