--- tags: Computer Network --- # NCCUCS NET22 Lab01 ## 1-1 **List 3 different protocols that appear in the protocol column in the unfiltered packet-listing window in step 7 above.** :::success ![](https://i.imgur.com/nYL08JV.png) TCP, UDP, HTTP, SSDP etc. ::: <br> ## 1-2 **How long did it take from when the HTTP GET message was sent until the HTTP OK reply was received?** :::success ![](https://i.imgur.com/vzaK5yf.png) 17.843535 - 17.646637 = 0.196898 (s) ::: <br> ## 1-3 **What is the Internet address of gaia.cs.umass.edu? What is the Internet address of your computer?** :::success ![](https://i.imgur.com/KxVf1Iw.png) Internet address of gaia.cs.umass.edu: 128.119.245.12 (destination IP) Internet address of my computer: 192.168.0.235 (source IP) ::: <br> ## 1-4 **Screenshot the two HTTP messages (GET and OK) referred to in question 2 above.** :::success HTTP GET: ![](https://i.imgur.com/gxjKUsm.png) HTTP 200 OK: ![](https://i.imgur.com/K8DIt77.png) ::: <br> ## 2-1 **Is your browser running HTTP version 1.0 or 1.1? What version of HTTP is the server running?** :::success ![](https://i.imgur.com/kZxX5m0.png) ![](https://i.imgur.com/901IHH6.png) Both running HTTP version 1.1 ::: <br> ## 2-2 **What languages (if any) does your browser indicate that it can accept to the server?** :::success ![](https://i.imgur.com/QlpsbIx.png) zh-TW for Traditional Chinese and zh for Chinese. ::: <br> ## 2-3 **What is the IP address of your computer? What is the IP address of gaia.cs.umass.edu server?** :::success ![](https://i.imgur.com/KxVf1Iw.png) IP address of my computer: 192.168.0.235 (source IP) IP address of gaia.cs.umass.edu: 128.119.245.12 (destination IP) ::: <br> ## 2-4 **What is the status code returned from the server to your browser?** :::success ![](https://i.imgur.com/xil3Z6Q.png) Status Code: 200 ::: <br> ## 2-5 **When was the HTML file that you are retrieving last modified at the server?** :::success ![](https://i.imgur.com/4yTNe0f.png) Last Modified at 2022/11/12 06:59:01 ::: <br> ## 2-6 **How many bytes of content are being returned to your browser?** :::success ![](https://i.imgur.com/4W4QEFB.png) Content Length = 81 bytes ::: <br> ## 2-7 **By inspecting the raw data in the packet content window, do you see any headers within the data that are not displayed in the packet-listing window? If so, name one.** :::success ![](https://i.imgur.com/SbVreVq.png) No, the raw data appears to match up exactly with what is shown in the packet-listing window. ::: <br> ## 2-8 **Inspect the contents of the first HTTP GET request from your browser to the server. Do you see an “IF-MODIFIED-SINCE”” line in the HTTP GET?** :::success ![](https://i.imgur.com/Rj2yYgu.png) No, there's no “IF-MODIFIED-SINCE”” header in the first GET. ::: <br> ## 2-9 **Inspect the contents of the server response. Did the server explicitly return the contents of the file? How can you tell?** :::success ![](https://i.imgur.com/14kdarJ.png) Yes, we can see the contents in the “Line-based text data” field. ::: <br> ## 2-10 **Now inspect the contents of the second HTTP GET request from your browser to the server. Do you see an “IF-MODIFIED-SINCE:” line in the HTTP GET? If so, what information follows the “IF-MODIFIED-SINCE:” header?** :::success ![](https://i.imgur.com/abRpVQl.png) Yes, there's a “IF-MODIFIED-SINCE”” header in the second GET. The information followed is: Sat, 12 Nov 2022 06:59:01 GMT\r\n which is the date of the last modification of the file from the previous get request. ::: <br> ## 2-11 **What is the HTTP status code and phrase returned from the server in response to this second HTTP GET? Did the server explicitly return the contents of the file? Explain.** :::success ![](https://i.imgur.com/Ab4ppVZ.png) The status code and phrase returned from the server is "304 Not Modified". The server didn’t return the contents of the file since the browser loaded it from its cache. ::: <br> ## 2-12 **How many HTTP GET request messages did your browser send?? Which packet number in the trace contains the GET message for the Bill or Rights?** :::success ![](https://i.imgur.com/bOdjRek.png) There is 1 HTTP GET request message sent by my browser and the packet number is 1408. ::: <br> ## 2-13 **Which packet number in the trace contains the status code and phrase associated with the response to the HTTP GET request?** :::success ![](https://i.imgur.com/4G6S5I5.png) Packet number: 1417 ::: <br> ## 2-14 **What is the status code and phrase in the response?** :::success ![](https://i.imgur.com/rPfxgQs.png) Status Code: 200 ::: <br> ## 2-15 **How many data-containing TCP segments were needed to carry the single HTTP response and the text of the Bill of Rights?** :::success ![](https://i.imgur.com/2K1XTo8.png) 3 data-containing TCP segments were needed. ::: <br> ## 2-16 **How many HTTP GET request messages did your browser send? To which Internet addresses are these GET requests sent?** :::success ![](https://i.imgur.com/U2IYKit.png) 3 HTTP GET request messages. Their Internet addresses are 128.119.245.12, 128.119.245.12 and 178.79.137.164. ::: <br> ## 2-17 **Can you tell whether your browser downloaded the two images serially, or whether they were downloaded from the two web sites in parallel? Explain.** :::success ![](https://i.imgur.com/U2IYKit.png) The 2 images were downloaded serially. ::: <br> ## 2-18 **What is the server’s response (status code and phrase) in response to the initial HTTP GET message from your browser?** :::success ![](https://i.imgur.com/6fdq3Nj.png) Status code: 401, Phrase: Unauthorization ::: <br> ## 2-19 **When your browser’s sends the HTTP GET message for the second time, what new field is included in the HTTP GET message?** :::success ![](https://i.imgur.com/XE4T9oo.png) New Field: Authorization. (Authorization: Basic d2lyZXNoYXJrLXNOdWRlbnRz0m5ldHdvcms=\r\n) ::: <br> ## 3-1 **Run nslookup to obtain the IP address of a Web server in Asia. What is the IP address of that server?** :::success ![](https://i.imgur.com/hzahvPD.png) IP address: 140.119.166.199 ::: ## 3-2 **Run nslookup to determine the authoritative DNS servers for a university in Europe.** :::success ![](https://i.imgur.com/v91hrUb.png) authoritative DNS server: primary.dns.cam.ac.uk ::: ## 3-3 **Run nslookup so that one of the DNS servers obtained in Question 3-2 is queried for the mail servers for Yahoo mail. What is its IP address?** :::success ![](https://i.imgur.com/5XH3SoU.png) No servers can be reached. ::: ## 3-4 **Locate the DNS query and response messages. Are they sent over UDP or TCP?** :::success ![](https://i.imgur.com/h7Ov8d7.png) They are sent over UDP. ::: ## 3-5 **What is the destination port for the DNS query message? What is the source port of DNS response message?** :::success DNS Query: ![](https://i.imgur.com/h7Ov8d7.png) DNS Response: ![](https://i.imgur.com/SY3TZRs.png) Destination port for the DNS query and source port of DNS response are both 53. ::: ## 3-6 **To what IP address is the DNS query message sent? Use ipconfig to determine the IP address of your local DNS server. Are these two IP addresses the same?** :::success Console: ![](https://i.imgur.com/Gi6pjIL.png) DNS Response Message: ![](https://i.imgur.com/SY3TZRs.png) It's send to 192.168.0.235, and the two IP addresses are the same. ::: ## 3-7 **Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”?** :::success ![](https://i.imgur.com/s3IBqld.png) Type A. The query message does not contain any "answers". ::: ## 3-8 **Examine the DNS response message. How many “answers” are provided? What do each of these answers contain?** :::success ![](https://i.imgur.com/9xA61iJ.png) According to the "Answer RRs" field, we can know that there are 3 answers, which are: 1. www.ietf.org: type CNAME, class IN, cname www.ietf.org.cdn.cloudflare.net 2. www.ietf.org.cdn.cloudflare.net: type A, class IN, addr 104.16.44.99 3. www.ietf.org.cdn.cloudflare, net: type A, class IN, addr 104.16.45.99 The answers contain information about the name of the host, the type of address, class, the TTL and the data length. ::: ## 3-9 **Consider the subsequent TCP SYN packet sent by your host. Does the destination IP address of the SYN packet correspond to any of the IP addresses provided in the DNS response message?** :::success ![](https://i.imgur.com/RBpuQxk.png) The first SYN packet was sent to 104.16.44.99 which corresponds to the first IP address provided in the DNS response message. ::: ## 3-10 **This web page contains images. Before retrieving each image, does your host issue new DNS queries?** :::success No, there are no new DNS queries issued. ::: ## 3-11 **What is the destination port for the DNS query message? What is the source port of DNS response message?** :::success DNS Query: ![](https://i.imgur.com/urBHk1Q.png) DNS Response: ![](https://i.imgur.com/FsHJAXG.png) Destination port for the DNS query and source port of DNS response are both 53. ::: ## 3-12 **To what IP address is the DNS query message sent? Is this the IP address of your default local DNS server?** :::success ![](https://i.imgur.com/vNOVx50.png) IP: 192.168.0.235, which is the same IP address of my default local DNS server. ::: <br> ## 3-13 **Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”?** :::success ![](https://i.imgur.com/fTMLykd.png) Type A. The query message does not contain any "answers". ::: <br> ## 3-14 **Examine the DNS response message. How many “answers” are provided? What do each of these answers contain?** :::success ![](https://i.imgur.com/x1DdC1c.png) According to the "Answer RRs" field, we can know that there are 3 answers. The answers contain information about the name of the host, the type of address, class, the TTL and the data length. ::: <br> ## 3-15 **To what IP address is the DNS query message sent? Is this the IP address of your default local DNS server?** :::success ![](https://i.imgur.com/UyTDqeQ.png) IP: 192.168.0.235, which is the same IP address of my default local DNS server. ::: <br> ## 3-16 **Examine the DNS query message. What “Type” of DNS query is it? Does the query message contain any “answers”?** :::success ![](https://i.imgur.com/avdCZHu.png) Type NS. The query message does not contain any "answers". ::: <br> ## 3-17 **Examine the DNS response message. What MIT nameservers does the response message provide? Does this response message also provide the IP addresses of the MIT name servers?** :::success ![](https://i.imgur.com/gmYhadI.png) No, this response message does not provide the IP addresses of the MIT name servers. :::