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: Wed. Feb. 7, 2007 (in 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 specify this socket (assume the OS assigns the local
ephemeral port number).
a. _________________ b. __________________ c. _________________
When we observe that TCP or UDP connection, 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
sent after 5:00 p.m. 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 before 5 p.m. 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 this action 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: Wed. Feb. 7, 2007 (in 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 specify this socket (assume the OS assigns the local ephemeral port number). a. _________________ b. __________________ c. _________________ When we observe that TCP or UDP connection, 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 sent after 5:00 p.m. 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 before 5 p.m. 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 this action 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 30 ms. The html page automatically generates requests for three imbedded photos of 250 kbytes (kB). Your TCP window size is 64 kB so each photo must be downloaded in 4 chunks (4 RTT's required + transmission time for the file, 8 * 250 kB/ 1000 Mb/s = 2 ms). [Why? Wait for Chap. 3] It take one RTT to setup a TCP connection. 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 MS Windows Command-Prompt window, type "nslookup" and after the ">" prompt type "help". Or in a UNIX window, type "man nslookup" for help info. Refer to the help or manual information as needed. In UNIX, nslookup may be replaced by "host". The equivalent "host" commands are shown in {}'s. In a second window type "nslookup www.usdoorcontrol.com". What is the IP address? ______________ { host www.usdoorcontrol.com } In the second window type "nslookup 199.237.198.233". What is the DNS name? ______________ { host 199.237.198.233 } In the second window type : "nslookup -q=any ece.gatech.edu" { host -a ece.gatech.edu } "nslookup -q=mx ece.gatech.edu" { host -mx ece.gatech.edu } "nslookup -q=ns ece.gatech.edu" { host -ns ece.gatech.edu } What are the IP addresses of the ECE mail servers (exchangers)? _________________, ______________ What are the IP addresses of the ECE name servers (DNS)? _________________, ______________ Do a non-recursive lookup of web.mit.edu. Each response gives the name server Xi to use for the next inquiry (add to end of initial inquiry, which uses your default name server). Start with a top level name server for X1 given by using your default DNS server (if X0 is blank). "nslookup -norecurse -v web.mit.edu X0 [see note] " "Served by" Response __________________(X1) { host -r -v web.mit.edu X0} "nslookup -norecurse -v web.mit.edu X1" "Served by" Response __________________(X2) { host -r -v web.mit.edu X1 } "nslookup -norecurse -v web.mit.edu X2" "Served by" Response __________________(X3) { host -r -v web.mit.edu X2 } "nslookup -norecurse -v web.mit.edu X3" "Address is" Response _________________ { host -r -v web.mit.edu X3 } [note] Start with X0 blank. If your default DNS has cached the answer, it will not give you a list of root servers. In this case start by specifying a different DNS server (such as X0 =130.207.244.240, 130.207.244.244, 130.207.232.240, 130.207.232.241, 130.207.199.77, 130.207.227.111, or 130.207.3.207) until you find one that responds with a list of root (top level) name server IP addresses. ECE3076 HW-2 p. 2