Homework2Answers - Homework 2 Solution 1. a) b) c) d) e) f)...

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

View Full Document Right Arrow Icon
Homework 2 Solution 1. Chapter 3, problem 1 (10 points) a) A b S source port: 2001 b destination port: 23 b) B b S source port: 6050 b destination port: 23 c) S b A source port: 23 b destination port: 2001 d) S b B source port: 23 b destination port: 6050 e) Yes f) No. 2. Chapter 3, problem 4 (10 points) (a) Adding the two bytes gives 10011101. Taking the one’s complement gives 01100010 (b) Adding the two bytes gives 00011110; plus the carry-out bit gives 00011111. Thus the one’s complement gives 11100000. (c) Flipping a bit in the same position in these two bytes will not change the checksum. For example, first byte = 00110101; second byte = 01101000. 3. Chapter 3, problem 12 (10 points) One example: 4. Chapter 3, problem 21 (20 points) a) True. Suppose the sender has a window size of 3 and sends packets 1, 2, 3 at t 0 . At t 1 ( t 1 > t 0) the receiver ACKS 1, 2, 3. At t 2 ( t 2 > t 1) the sender times out and resends 1, 2, 3. At t 3 the receiver receives the duplicates and re-acknowledges 1, 2, 3. At t 4 the sender receives the ACKs that the receiver sent at t 1 and advances its window to 4, 5, 6. At
Background image of page 1

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

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Homework2Answers - Homework 2 Solution 1. a) b) c) d) e) f)...

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

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