Docsity

Sample Final Exam - Data Communications | CS 274, Exams of Data Communication Systems and Computer Networks

Toggle sidebar
bg1
IPFW CS 274 Sample Final Exam
Instructor: David Q. Liu
Name Score /200
1. (40 points) Please circle one correct answer in the following questions
A. In the multiple access protocol
(A) 0.1 persistent CSMA has higher throughputs than
0.01-persistent CSMA
(B) Slotted ALOHA has higher throughputs than 0.1-persistent CSMA
(C) Pure ALOHA has higher throughputs than Slotted ALOHA
√ (D) 1-persistent has higher throughputs than Slotted ALOHA
(E) None of above
B. In HDLC protocol, A and B communicates with each other. If A sends to
B the information frame “I, 3, 5”, what information frame will B send
back to A?
(A) I, 3, 3
√ (B) I, 5, 4
(C) I, 5, 5
(D) I, 4, 4
C. What is the total size of the minimum TCP MTU
(A) 536
(B) 556
√ (C) 576
(D) 512
D. In transport layer symmetric disconnection, when one side does a
DISCONNECT,
√ (A) This side will not send any data but will accept data
(B) This side can still send data and accept data
(C) This side neither sends nor accepts data any longer
(D) This side will send data but not accept data
E. . In Nyquist’s theorem, doubling V value will
(A) double the maximum date rate
√ (B) increase the maximum date rate by 2H
(C) increase the maximum date rate by H
(D) None of above
2. (40 pints) Short answers:
1. What is the optimal principle regarding optimal path?
If router J is on the optimal path from router I to router K, then the optimal
path from J to K also falls along the same route.
2. Define TSAP and NSAP? How are they implemented in the Internet?
pf3
pf4

Partial preview of the text

Download Sample Final Exam - Data Communications | CS 274 and more Exams Data Communication Systems and Computer Networks in PDF only on Docsity!

IPFW CS 274 Sample Final Exam Instructor: David Q. Liu

Name Score /

  1. (40 points) Please circle one correct answer in the following questions A. In the multiple access protocol (A) 0.1 persistent CSMA has higher throughputs than 0.01-persistent CSMA (B) Slotted ALOHA has higher throughputs than 0.1-persistent CSMA (C) Pure ALOHA has higher throughputs than Slotted ALOHA √ (D) 1-persistent has higher throughputs than Slotted ALOHA (E) None of above

B. In HDLC protocol, A and B communicates with each other. If A sends to B the information frame “I, 3, 5”, what information frame will B send back to A? (A) I, 3, 3 √ (B) I, 5, 4 (C) I, 5, 5 (D) I, 4, 4

C. What is the total size of the minimum TCP MTU (A) 536 (B) 556 √ (C) 576 (D) 512

D. In transport layer symmetric disconnection, when one side does a DISCONNECT, √ (A) This side will not send any data but will accept data (B) This side can still send data and accept data (C) This side neither sends nor accepts data any longer (D) This side will send data but not accept data

E.. In Nyquist’s theorem, doubling V value will (A) double the maximum date rate √ (B) increase the maximum date rate by 2H (C) increase the maximum date rate by H (D) None of above

  1. (40 pints) Short answers:
    1. What is the optimal principle regarding optimal path? If router J is on the optimal path from router I to router K, then the optimal path from J to K also falls along the same route.
    2. Define TSAP and NSAP? How are they implemented in the Internet?

TSAP: Transport Service Access Point To distinguish multiple transport end points which share the same NSAP Implemented as transport port number in the Internet NASP: Network Service Access Point Implemented as IP address in the Internet

  1. If a user clicks a hyperlink http://my.ipfw.edu, a TCP connection is opened and a series of lines is sent to the server. List all the lines sent

GET /index.html HTTP/1. Host: my.ipfw.edu

Note the blank line at the end. It is mandatory.

  1. List default TCP port numbers for the following protocols Protocol Port HTTP 80 SMTP 25 POP3 110 IMAP 143
  2. Convert the IP address whose hexadecimal is C22F1682 to dotted decimal notation and indicate network class. C22F1682: 194.47.22.130 class C
  3. (20 points) The following character encoding is used in a data link protocol: g: 11001111; o: 11011110 ; FLAG: 01111110; ESC: 11100000 Show the bit sequence transmitted (in binary) for the four-character g o FLAG FLAG when each of the following framing methods are used: (a) Flag bytes with byte stuffing (b) Starting and ending flag bytes , with bit stuffing Answer:

(a) 01111110 11001111 11011110 11100000 01111110 11100000 01111110 01111110 (b) 01111110 11001111 1 0 1011110 011111 0 10 011111 0 10 01111110

  1. (15 points) A TCP machine is sending full windows of 65535 bytes over a 100 Mbps channel that has a 20-msec one-way delay. a. What is the maximum throughput achievable? b. What is the line efficiency? c. What is the minimum channel rate required to achieve 50% line efficiency? Answer: a. Throughput = 65535 * 8 / 40 * 10-3^ = 13.1 Mbps b. Line efficiency = 13.1 /100 = 13.1 %
  1. (25 points) Suppose that host A is connected to a router R1, R1 is connected to host B. Suppose that a TCP message that contains 800 bytes of data and 20 bytes of TCP header is passed to the IP code at host A for delivery to B. Show the Total length, Identification, DF, MF, and Fragment offset fields of the IP header in each packet transmitted over the two links. Assume that link A-R1 can support a maximum frame size of 1000 bytes including a 10-byte frame header; link R1-B can support a maximum frame size of 432 bytes, including an 8-byte header. Answer: Link A- R Length = 840; ID = x; DF = 0; MF = 0; Offset = 0 Link R1 – B (1) Length = 420; ID = x; DF = 0; MF = 1; Offset = 0 (2) Length = 420; ID = x; DF = 0; MF = 1; Offset = 50 (3) Length = 40; ID = x; DF = 0; MF = 0; Offset = 100
  2. (20 points) In following weighted, undirected graph of nodes, find the shortest oath from A to H using Dijkstra shortest path algorithm. Please show the detailed solution.

4

4

2

1

6

8

2 3

2 3 2 A

C

D

E

F

G

H

B

Answer: Use Dijkstra shortest path algorithm The short path from A to H is 12 (A-C-D-F-E-H or A-C-D-F-G-H)