HW-3 Solutions

HW-3 Solutions - Chapter 3 Problems Problem 1. source port...

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

View Full Document Right Arrow Icon
Problem 1. source port number - destination port number a) A S 4670 - 23 b) B S 5130 - 23 c) S A 23 - 4670 d) S B 23 - 5130 e) Yes. Different client hosts may have the same client (high) port number. f) No. A host can not have TCP sockets with the same local port number and the same remote host IP and port numbers. . Problem 2. Suppose the IP addresses of the hosts A, B, and C are a, b, c, respectively. (Note that a,b,c are distinct.) To host A: Source port =80, source IP address = b, dest port = 26145, dest IP address = a To host C, left process: Source port =80, source IP address = b, dest port = 7532, dest IP address = c To host C, right process: Source port =80, source IP address = b, dest port = 26145, dest IP address = c Problem 3. 0 1 0 1 0 1 0 1 + 0 1 1 1 0 0 0 0 1 1 0 0 0 1 0 1 1 1 0 0 0 1 0 1 + 0 1 0 0 1 1 0 0 1 0 0 0 1 0 0 0 1 -> 1 0 0 0 1 0 0 1 0 One's complement = 1 1 1 0 1 1 0 1. To detect errors, the receiver adds the four words (the three original words and the checksum). The sum bits should be all 1's. If the sum contains a zero bit, the receiver knows there has been an error. Note that all 1's is a second form of "zero" in 1's compliment number systems. -11111111 = 00000000 Single-bit errors will be detected, but two-bit errors can 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
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

HW-3 Solutions - Chapter 3 Problems Problem 1. source port...

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