hw2_solution 2004 - Chapter 3, problem 1 a)-d): You can...

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

View Full Document Right Arrow Icon
Chapter 3, problem 1 a)-d): You can choose arbitrary port numbers you want, but you have to following several rules: (1). The service port on a server is predetermined and they cannot be changed. (2). The source port from a client must be within 1024-65535, since the port number 1-1023 are reserved for various services. source port Numbers destination port numbers a) A S 467 23 b) B S 513 23 c) S A 23 467 d) S B 23 513 e) Yes. f) No. Since these two connections need the source port to differ them from each other. Remember that the TCP uses 4-tuple (source IP, source port, dest IP, dest port) to identify connections. Chapter 3, problem 3. 1 0 1 0 0 0 1 1 0 0 0 0 1 1 1 0 1 0 1 0 1 0 1 0 + 1 0 0 0 1 0 0 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 1 1 + + 1 (overflow bit added) = 0 0 0 1 0 0 1 0 One's complement = 1 1 1 0 1 1 1 0. To detect errors, the receiver adds the four words (the three original words and the checksum). If the sum contains a zero bit, the receiver knows there has been an error. All one-bit errors will be detected, but two-bit errors may be undetected (e.g., if the last digit of the first word is converted to a 0 and the last digit of the second word is converted to a 1).
Background image of page 1

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

View Full DocumentRight Arrow Icon
Here, we add a timer, whose value is greater than the known round-trip propagation delay. We add a timeout event to the “Wait for ACK or NAK0” and “Wait for ACK or NAK1” states.
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.

This note was uploaded on 04/24/2011 for the course CNT 4704 taught by Professor Guha,r during the Fall '08 term at University of Central Florida.

Page1 / 5

hw2_solution 2004 - Chapter 3, problem 1 a)-d): You can...

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