Docsity

Midterm Exam - Internet Protocols | CSC 573, Exams of Computer Science

Toggle sidebar
bg1
CSC 573 / ECE 573 Internet Protocols
October 11, 2005
MID-TERM EXAM
Your Name: ________________________
Your student ID number: ________________________
Instructions
• Allowed
o A single 8 ½”x11” (front and back) study sheet, containing any info you wish
o Calculators
• Not allowed
o Books or notes (other than the study sheet)
o PDAs, cellphones, headphones, MP3 players, laptop computers, etc.
• Length is 75 minutes (entire class period); answer all questions for full credit
• A “Yes” or “No” question usually requires a brief (few words or one sentence) explanation
THE INTERNET (7)
1. If you sent a packet across the Internet from Raleigh to California (a distance of about 3000 miles
or 5000 kilometers), and an acknowledgment was immediately sent back, roughly how long
would you expect this round-trip time to be?
2. What's the difference between an RFC and an Internet Draft? [one sentence answer]
IPv4 (12)
1. Compute the four-bit Internet checksum of the following two four-bit words:
1010 and 1011
2. An IP packet, without options, is to be sent across a link with MTU = 560. Some of the fields of
this packet's head er, before frag mentation, are shown below. Show what the fields Total Length,
MF, and Fragment Offset are for each fragment.
• Header length = 5, Total length = 1000, Identification = 998
• Flags: DF=0, MF=0, Fragment offset = 0, TTL = 64
pf3
pf4
pf5

Partial preview of the text

Download Midterm Exam - Internet Protocols | CSC 573 and more Exams Computer Science in PDF only on Docsity!

CSC 573 / ECE 573 Internet Protocols

October 11, 2005

MID-TERM EXAM

Your Name: ________________________

Your student ID number: ________________________

Instructions

  • Allowed o A single 8 ½”x11” (front and back) study sheet, containing any info you wish o Calculators
  • Not allowed o Books or notes (other than the study sheet) o PDAs, cellphones, headphones, MP3 players, laptop computers, etc.
  • Length is 75 minutes (entire class period); answer all questions for full credit
  • A “Yes” or “No” question usually requires a brief (few words or one sentence) explanation THE INTERNET ( 7 )
  1. If you sent a packet across the Internet from Raleigh to California (a distance of about 3000 miles or 5000 kilometers), and an acknowledgment was immediately sent back, roughly how long would you expect this round-trip time to be?
  2. What's the difference between an RFC and an Internet Draft? [one sentence answer] IPv4 ( 12 )
  3. Compute the four-bit Internet checksum of the following two four-bit words: 1010 and 1011
  4. An IP packet, without options, is to be sent across a link with MTU = 560. Some of the fields of this packet's header, before fragmentation, are shown below. Show what the fields Total Length, MF, and Fragment Offset are for each fragment.
  • Header length = 5, Total length = 1000, Identification = 998
  • Flags: DF=0, MF=0, Fragment offset = 0, TTL = 64
  1. Indicated below is a path through a network from host A to host B. Show what is recorded in the IP Record Route options header after receiving this packet. The path is: - Host A = 192.168.10. - First router incoming interface = 192.168.10.26, outgoing interface = 192.168.22. - Second router incoming interface = 192.168.22.91, outgoing interface = 192.168.35. - Host B = 192.168.35. ARP/RARP ( 7 )
  2. Why does a host making an ARP Request include its own MAC and IP addresses in the Request? [one sentence answer]
  3. On a computer with IP address 152.14.62.38, I purged the ARP cache (using the "arp - d *" command). Then I "ping"ed host 132.151.6.75, while monitoring network traffic. I observed that my host first used ARP to get the MAC address for IP address 152.14.62.65, and then sent an ICMP Echo Request to 132.151.6.75. Why was the ARP packet necessary? [one sentence answer] CLASSFUL ADDRESSES ( 6 )
  4. For each of the following, indicate whether the address shown is a Class A, B, C, or D type class- based address. a. 18.18.18. 18 b. 200.200.200. c. 225.225.225.
  5. Networks size a. What range of IP addresses are in class B? b. How many class B networks are there? DATAGRAM FORWARDING ( 9 )

UDP ( 9 )

  1. Would you consider UDP or TCP "better" for the following functions, and why? [one sentence or less for each] a. A chat (instant messaging) protocol b. Transmission of (interactive) voice calls over IP, with datagram payload size of 40 bytes
  2. Suppose you wanted to use UDP to transmit some data to a receiver, with the following modifications: - ensure that each datagram is received reliably - duplicates are not required to be removed - correct delivery order is not needed - neither flow control nor congestion control is necessary What would need to be added to the UDP header to provide just the reliable delivery, and what behavior would you need to add to the sender and receiver? [one or two sentence answer] TCP I ( 9 )
  3. Under what conditions is the persist timer started? [one sentence answer]
  4. A and B have established a connection. a. B sends Acknowledgment Number 5000 and Window Size 4000. What sequence numbers (bytes) is A allowed to send at this point? b. If B next sends Acknowledgment Number 6000 and Window Size 2000, is there anything wrong with that? Explain. [one sentence answer] c. If, instead of the previous, B next sends Acknowledgment Number 5 000 and Window Size 12000, is there anything wrong with that? Explain. [one sentence answer]

TCP II ( 9 )

  1. After each of the following steps, show what the state of the Server connection and the Client connection are. Initially, the Server connection is in the SYN_RCVD state and the Client is in the ESTABLISHED state. a. The server receives an ACK segment b. The server sends a data segment c. The client receives the data segment d. The server application executes a close e. The client receives a FIN segment
  2. A client C and a server S establish a connection. The initial sequence number is 2000 from C to S and 9500 from S to C. Show the Sequence Number and Acknowledgment Number in each segment sent below, and ignore congestion control and flow control. a. C sends SYN segment C b. S sends SYN segment S 1 , including ACK of segment C c. C sends three 1000 - data-byte segments C 2 through C4, including ACK of segment S 1 d. S sends 0-data-byte segment S 2 , including ACK of segment C 2 e. S sends a 1000-data-byte segment S 3 , including ACK of segment C 3 TCP III ( 12 )
  3. A TCP connection has RTT = 80ms, and MDEV = 60ms. a. What is RTO at this point? b. If the next segment's acknowledgment comes back 180ms after the segment is sent, what will the new values of RTT, MDEV, and RTO be?