DOC PREVIEW
Berkeley ELENG 122 - Homework Assignment

This preview shows page 1 out of 3 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 3 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Homework Assignment #2 - Due Oct 11 @ 3:50 PMEE122: Introduction to Communication Networks(Fall 2006)Department of Electrical Engineering and Computer SciencesCollege of EngineeringUniversity of California, BerkeleyVern Paxson / Sukun Kim / Dilip Antony Joseph1. Peterson & Davie, Exercises 3.1, 3.6, 4.4.2. The Design of IP.IP includes two options for including a “source route”: that is, the sender of the datagram specifies asequence of intermediary routers that the packet should traverse on its way to the destination. Both ofthese options have 3 bytes of meta-information (essentially an option “header”) followed by a seriesof 4-byte IP addresses specifying the intermediary routers.Given the constraints imposed by the design of the IP header, what is the largest number of routersthat such an option can include?3. Subnetting and Classless Interdomain-Routing (CIDR).Your company, BearsEx, is assigned 4 blocks of 256 addresses from your ISP, 147.17.204.[0-255],147.17.205.[0-255], 147.17.206.[0-255], and 147.17.207.[0-255].(a) If your ISP used class-A/B/C subnetting, what would be the subnet mask and the subnet number?(b) In this case, what corresponding network prefix(es) appear to routers outside of the ISP?(c) If instead your ISP uses classless interdomain-routing (CIDR) and assigns 197.17.204.[0-255],197.17.205.[0-255], 197.17.206.[0-255], and 197.17.207.[0-255] to BearsEx, what are the cor-responding network prefix(es) that appear to routers outside of the ISP?14. Comparison of Stop-and-Wait and Sliding Window.You want to transfer a file from Berkeley to San Francisco. For this problem, assume the following:• The size of file is 90,000 bytes. It will be transferred in 1,500-byte data packets, for which40 bytes are taken up with headers. The size of acknowledgement packets is 40 bytes includingheader. Every packet is acknowledged.• The communication is bidirectional and the bandwidth is 100 Mbps (megabits/sec) in each di-rection. Hosts can send and receive at the same time.• The latency from Berkeley to San Francisco is 5 ms, as is the latency in the opposite direction.• Assume that time to process a packet is very small, so the receiver can send an acknowledgementas soon as it receives a data packet, but not before it receives the entire data packet.• Likewise, for sliding window the sender can send packets back-to-back (to the degree that thewindow size permits).• Assume no packet loss.(a) With Stop-and-Wait, how long will it take to transfer the file?(b) What is the corresponding throughput (total amount of user data transferred [so 90,000 bytes]over the total time required to transfer it).(c) With Sliding Window with SWS=RWS=3, how long will it take to transfer the file. What is thethroughput?(d) If SWS and RWS are set to the bandwidth-delay product (bandwidth of the path times the round-trip latency of the path), then how long does it take to transfer the file, and with what throughput?(e) Extra credit: if SWS and RWS are set to twice the bandwidth-delay product, how long does thetransfer take, with what throughput, and why?5. DNS.Repeatedly use the command “dig +norecurse @dns-server c199.eecs.berkeley.edu” to locate theIP address of c199.eecs.berkeley.edu, starting with a.root-servers.net as the first dns-server.(a) Which DNS servers do you visit in the process of finding the address?(b) What is the address?(c) What happens if instead you look up c199.berkeley.edu (i.e., you forget to include “.eecs”)?26. Email.In this problem, you will send an email, which looks like http://inst.eecs.berkeley.edu/˜ee122/fa06/hw/email_content.txt. The file http://inst.eecs.berkeley.edu/˜ee122/fa06/hw/tracefile contains a tcpdump trace showing an SMTP client connecting to an SMTPserver to send an email.(a) Taking the actions of the client as a template, use the “telnet” tool to send an email [email protected] (not [email protected]) with the subject “My An-swer To Homework #2, Problem #4”, and where your username is annotated in some obviousfashion, like “Golden Bear” in the example. When you do this, record your connection withtcpdump:tcpdump -s 0 -w tracefile host calmail.eecs.berkeley.edu and port 25and submit the trace as documentation, along with a transcript of the commands you used tosend the email (including commands like HELO).IMPORTANT: You need to inspect tracefile to see whether it contains any activity other thanyour own (which can happen if someone else also sent email at the same time). If so, you needto filter the trace using your SMTP client’s ephemeral port numberIt will be useful to use your calmail account when you testing so you can see the resulting email.(b) An open relay is an SMTP (email) server configured in such a way that it allows anyone on theInternet to relay email through it to a recipient who is not directly served by the server.Repeat the exercise but when connecting specify a recipient of [email protected] to the server.What response do you receive?Submission Instructions:1. Make sure you are registered with the EECS instructional account system (different from registrationfor the class). You would have been prompted to register the first time you logged in to your instruc-tional account. You can check your registration status by running the command check-register. Ifyou find yourself not registered, run the command register.2. Log in to your instructional account.3. Create a directory called “hw2” : mkdir hw24. Change to that directory: cd hw25. Copy all the files that you wish to submit to this directory.6. Run the submit program: submit hw27. Make sure that no error messages are displayed. If some error occurs, retry. If it still occurs, contactthe


View Full Document

Berkeley ELENG 122 - Homework Assignment

Documents in this Course
Lecture 6

Lecture 6

22 pages

Wireless

Wireless

16 pages

Links

Links

21 pages

Ethernet

Ethernet

10 pages

routing

routing

11 pages

Links

Links

7 pages

Switches

Switches

30 pages

Multicast

Multicast

36 pages

Switches

Switches

18 pages

Security

Security

16 pages

Switches

Switches

18 pages

Lecture 1

Lecture 1

56 pages

OPNET

OPNET

5 pages

Lecture 4

Lecture 4

16 pages

Ethernet

Ethernet

65 pages

Models

Models

30 pages

TCP

TCP

16 pages

Wireless

Wireless

48 pages

Load more
Download Homework Assignment
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Homework Assignment and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Homework Assignment 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?