Homework 3 - KellyKemnitz B758N245 CS464 Homework3 1.

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Kelly Kemnitz B758N245 CS 464 Homework 3 1. Host A sends a file of 200,000 bytes to host B. The maximum segment size (MSS) is 800  bytes. How many TCP segments does A send to B? Suppose byte-stream number of the  first byte in the file is 1000, what is the sequence number of the last segment does A  send to B? 1 st  segment # = 1000 2 nd  segment # = 1800 3 rd  segment # = 2600 Last segment = 250(800) + 1000 = 201000 P2. Consider Figure 3.5. What are the source and destination port values in the segments  flowing from the server back to the clients’ processes? What are the IP addresses in the  network-layer datagrams carrying the transport-layer segments? P4.  a. Suppose you have the following 2 bytes: 01011100 and 01010110. What is the 1s  complement of the sum of these 2 bytes?     01011100 + 01010110    10110010 1s complement: 01001101 b. Suppose you have the following 2 bytes: 11011010 and 00110110. What is the 1s  complement of the sum of these 2 bytes?    11011010 + 00110110   100010000 1s complement: 011101111 c. For the bytes in part (a), give an example where one bit is flipped in each of the 2  bytes and yet the 1s complement doesn’t change.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
If the fourth bit is changed in each number, then you have the following:    01010100 + 01011110     10110010 1s complement = 01001101 P5. Suppose that the UDP receiver computes the Internet checksum for the received UDP 
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 5

Homework 3 - KellyKemnitz B758N245 CS464 Homework3 1.

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online