Docsity

ECE3076 Homework 2: Understanding URLs, Sockets, and Email Protocols - Prof. John Copeland, Assignments of Electrical and Electronics Engineering

Toggle sidebar
bg1
Name_____________________________________
Section A (11-12) or B (12-1) __________
ECE3076 Homework 2
Due: Wednesday. Sept. 24, 2008 (in class)
1. The following could be typed into the Navigation Toolbar of a Web browser"
http://web.mit.com:8000/products/new/shoes.html
Which part is known as the:
a. protocol _____________________________
b. top-level domain _____________________________
c. computer name (or alias) _____________________________
d. file name _____________________________
e. URL _____________________________
f. complete file name _____________________________
g. part used to find the 32-bit IP address? ______________________________
h. Port that the Web server has open for listening? _____________________
2. An application opens a UDP or TCP "socket" to allow it to stream data to and from a server application
on another host on the internet. What three parameters are needed specify this socket (assume the OS
assigns the local ephemeral port number).
a. _________________ b. __________________ c. _________________
When we observe that TCP or UDP connection using wireshark, we define it by what two additional
parameters:
d. ___________________________________ f. __________________________________
3. Email protocols have been developed to permit email transfer. Please identify:
a. Very simple email sending protocol. No built in authentication. ___________________________
b. Protocol used 10 years ago to selectively download email. _______________________________
c. Popular email receiving protocol today which allows email to be kept in folders on server. _______
d. In your email "user-agent" program, click whatever is necessary to see a raw email message from me
with subject "From Home" Looking at the bottom "Received:" headers, from which IP address (or
addresses) did the email originate?
____________________________ , _________________________________
[one is the IP address of the host on the local private network, the other is the external address of the NAT]
e. Look the same way at an email from me sent with Subject "From Office". What is the originating IP?
_______________
ECE3076 HW-2 p.1
pf2

Partial preview of the text

Download ECE3076 Homework 2: Understanding URLs, Sockets, and Email Protocols - Prof. John Copeland and more Assignments Electrical and Electronics Engineering in PDF only on Docsity!

Name_____________________________________ Section A (11-12) or B (12-1) __________ ECE3076 Homework 2 Due: Wednesday. Sept. 24, 2008 (in class)

  1. The following could be typed into the Navigation Toolbar of a Web browser" http://web.mit.com:8000/products/new/shoes.html Which part is known as the: a. protocol _____________________________ b. top-level domain _____________________________ c. computer name (or alias) _____________________________ d. file name _____________________________ e. URL _____________________________ f. complete file name _____________________________ g. part used to find the 32-bit IP address? ______________________________ h. Port that the Web server has open for listening? _____________________
  2. An application opens a UDP or TCP "socket" to allow it to stream data to and from a server application on another host on the internet. What three parameters are needed specify this socket (assume the OS assigns the local ephemeral port number). a. _________________ b. __________________ c. _________________ When we observe that TCP or UDP connection using wireshark, we define it by what two additional parameters: d. ___________________________________ f. __________________________________
  3. Email protocols have been developed to permit email transfer. Please identify: a. Very simple email sending protocol. No built in authentication. ___________________________ b. Protocol used 10 years ago to selectively download email. _______________________________ c. Popular email receiving protocol today which allows email to be kept in folders on server. _______ d. In your email "user-agent" program, click whatever is necessary to see a raw email message from me with subject "From Home" Looking at the bottom "Received:" headers, from which IP address (or addresses) did the email originate? ____________________________ , _________________________________ [one is the IP address of the host on the local private network, the other is the external address of the NAT] e. Look the same way at an email from me sent with Subject "From Office". What is the originating IP?

ECE3076 HW-2 p. 1

Name_____________________________________ f. The "Date" header normally seen in email is based on the originating host's clock, which can be easily reset to fake meeting a deadline for an email submission. How can the actual time sent be easily detected?

  1. A short html text email is downloaded by your Web browser which has a 1000 Mb/s connection. The round-trip-time (RTT) to the Web server is 50 ms. The html page automatically generates requests for four imbedded photos of 10 kbytes (kB). Your TCP window size is 65 kB, so each photo is less than one window It takes one RTT to setup a TCP connection. Assume the "transmit time" can be neglected. See a previous similar problem at: http://www.csc.gatech.edu/copeland/jac/3076/hw/hw-spr2007/hw2-q4 details.doc a. What is the time required to download the complete Web page using four non-persistent TCP connections? _________________________ ms b. What is the time required to download the complete Web page using one persistent TCP connection:
    • without pipelining? _________________________ ms
    • with pipelining? _________________________ ms
  2. "window" below refers to an MS Windows Command-Prompt window (type CMD after Run), or Terminal window in MacOS, or console (terminal) window in UNIX or LINUX. If you use Windows, install the "dig" and "whois" programs (http://members.shaw.ca/nicholas.fong/dig/). You will also need "notepad++" to install two resolv.conf files (per instructions). For help, type "dig -h" or "dig +h" or "man dig" In a window, type " dig +trace www.ieee.tv " a. What is the IP address of www.ieee.tv? _______.______.______.______ b. What is the first root server shown? _________________________ c. What is the first TLD (top-level domain) server shown? _________________________ d. What is the first authoritative server shown? _________________________ In a window, type " dig -t mx ieee.org " e. What is the mail server's name? _________________________ In the window type " dig -x 129.42.58.216 ". f. What is the host name? _________________________ g. Type " dig www.ibm.com " What is the IP address? _________________________ h. Why the discrepancy (f not the reverse of g)?

i. Do "whois gatech.edu" What is the name of the technical contact? __________________________________________________ ECE3076 HW-2 p. 2