Docsity

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

Toggle sidebar
bg1
Name_____________________________________
ECE3076 Homework 2
Due: Friday. Sept.21 , 2007 (before class)
1. The following could be typed into the Navigation Toolbar of a Web browser"
http://www.acme.com:8080/catalog/auto/plugs.html
What are the following parts known as (port, file name, protocol, URL, DNS name, top-level domain):
a. http:// _____________________________
b. www.acme.com/catalog/auto/plugs.html _____________________________
c. www.acme.com _____________________________
d. /catalog/auto/plugs.html _____________________________
e. 8080 _____________________________
f. com _____________________________
g. Which, a - f, will be used to find the 32-bit IP address? _________________
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?
_____________
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?
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_____________________________________ ECE3076 Homework 2 Due: Friday. Sept.21 , 2007 (before class)

  1. The following could be typed into the Navigation Toolbar of a Web browser" http://www.acme.com:8080/catalog/auto/plugs.html What are the following parts known as (port, file name, protocol, URL, DNS name, top-level domain): a. http:// _____________________________ b. www.acme.com/catalog/auto/plugs.html _____________________________ c. www.acme.com _____________________________ d. /catalog/auto/plugs.html _____________________________ e. 8080 _____________________________ f. com _____________________________ g. Which, a - f, will be used to find the 32-bit IP address? _________________
  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?

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? ECE3076 HW-2 p. 1

Name_____________________________________

  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 25 ms. The html page automatically generates requests for three imbedded photos of 70 kbytes (kB). Your TCP window size is 65 kB so each photo must be downloaded in more than one window. [Why? Wait for Chap. 3] 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-spr2007/hw2-q4%20details.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. In a MS Windows Command-Prompt window, type "nslookup" and after the ">" prompt type "help". Or in a UNIX or OSX "terminal" window, type "man nslookup" for help info. Refer to the help or "man" information as needed. In UNIX, "nslookup" may be replaced by "host". a. In a window type "nslookup www.cs.gsu.edu. What is the IP address? ________________________ b. In the window type "nslookup 131.96.2.4 ". What is the DNS name? ________________________ In the window type : "nslookup -q=any csc.gatech.edu" { host -a csc gatech.edu } "nslookup -q=mx csc.gatech.edu" { host -mx csc gatech.edu } "nslookup -q=ns csc.gatech.edu" { host -ns csc gatech.edu } c. What is the name _________________________, and IP address of the CSC mail server (exchanger)?

d. What are the IP addresses of the CSC name servers (DNS)? _________________, ________________ e. Many DNS servers will not do DNS lookups for hosts outside their own local IP subnet. Try these: IP: 82.165.161.37 Name: _________________ Will do lookups for you (Yes/No) ____________ IP: 65.173.218.103 Name: _________________ Will do lookups for you (Yes/No) ____________ IP: 198.6.1.162 Name: _________________ Will do lookups for you (Yes/No) ____________ Due to changes in the DNS software, up to date DNS servers will no longer do non-recursive lookups for non-DNS-server hosts. See if you can find a DNS server on another IP subnet that will do a non-recursive lookup for you. Write "NO LUCK" if after five tries you have no success. If successful fill in: f. Name: ___________________________ IP: ________. __________. _________. _______ Hint: Find IP of DNS servers for up to five different organizations as above, then see if "nslookup -norecurse www.gatech.edu IP" gives a useful answer (other than "REFUSED"). ECE3076 HW-2 p. 2