Quiz 3 Transport Layer

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

CNT 3004 - Computer Networks and Communication

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards
<p><span style="font-family: Arial, sans-serif">In the scenario, the left and right clients communicate with a server using UDP sockets. The same socket at the server is used to communicate with both clients. The Python code used to create the sockets is shown in the figure. Consider the four transport-layer packets – A, B, C and D – shown in the figure below. What are the source and destination ports for each packet?</span></p>

In the scenario, the left and right clients communicate with a server using UDP sockets. The same socket at the server is used to communicate with both clients. The Python code used to create the sockets is shown in the figure. Consider the four transport-layer packets – A, B, C and D – shown in the figure below. What are the source and destination ports for each packet?

Packet A:

  • Source Port: 5555

  • Destination Port: 5535

Packet B:

  • Source Port: 5535

  • Destination Port: 5555

Packet C:

  • Source Port: 6034

  • Destination Port: 5535

Packet D:

  • Source Port: 5535

  • Destination Port: 6034

2
New cards

Consider the two 16-bit words (shown in binary) below. Recall that to compute the Internet checksum of a set of 16-bit words, we compute the one's complement sum [1] of the two words. That is, we add the two numbers together, making sure that any carry into the 17th bit of this initial sum is added back into the 1's place of the resulting sum); we then take the one's complement of the result. Compute the Internet checksum value for these two 16-bit words:
   11010000   11100001      this binary number is 53473 decimal (base 10)

   01101000   11000101      this binary number is 26821 decimal (base 10)

What is the sum of these two 16 bit numbers? Using the sum, what is the checksum?

1101000 11100001 + 01101000 11100001 = 100111001 10100110

100111001 10100110 + 1 = 00111001 1010011

Sum: 00111001   10100111

Checksum: 11000110   01011000 (complement of the sum)

3
New cards
<p><span style="font-family: Arial, sans-serif">Consider the RDT 3.0 protocol, for reliably communicating data from a sender to receiver over a channel that can lose or corrupt packets in either direction, and when the maximum delay from sender to receiver and back is not known. The FSMs for the sender and receiver are shown below, with their transitions labeled as SX and RY, respectively. </span></p><p><span style="font-family: Arial, sans-serif">Now let’s consider the sequence of sender and receiver transitions that would happen when one or more of the following complications occur: a packet (data or ACK) is lost, a timer times out (prematurely or not), or a message is corrupted. One or more of these events has occurred to produce the sequence of transitions below. In the sequence below, one transition has been omitted and replaced with a "*". </span></p><p><span style="font-family: Arial, sans-serif">Transition Sequence: S0, R0, S3, S5, R1, S6, S7, *, S8</span></p><p><span style="font-family: Arial, sans-serif">What is the missing transition? To indicate the missing transition, enter S or R, followed by an index.</span></p>

Consider the RDT 3.0 protocol, for reliably communicating data from a sender to receiver over a channel that can lose or corrupt packets in either direction, and when the maximum delay from sender to receiver and back is not known. The FSMs for the sender and receiver are shown below, with their transitions labeled as SX and RY, respectively.

Now let’s consider the sequence of sender and receiver transitions that would happen when one or more of the following complications occur: a packet (data or ACK) is lost, a timer times out (prematurely or not), or a message is corrupted. One or more of these events has occurred to produce the sequence of transitions below. In the sequence below, one transition has been omitted and replaced with a "*".

Transition Sequence: S0, R0, S3, S5, R1, S6, S7, *, S8

What is the missing transition? To indicate the missing transition, enter S or R, followed by an index.

The missing transition is: R2

4
New cards
<p><span style="font-family: sans-serif">What is the <strong>sequence </strong>number on the packet sent by the <strong>sender</strong> at time t4? </span></p>

What is the sequence number on the packet sent by the sender at time t4?

1

<p>1</p>
5
New cards
<p>What is the ACK number on the packet sent by the receiver at time t1?</p>

What is the ACK number on the packet sent by the receiver at time t1?

0

<p>0</p>
6
New cards
<p>The receiver-to-sender ACK at t3 is lost. What is the ACK number on the packet sent by the receiver at time t1?</p>

The receiver-to-sender ACK at t3 is lost. What is the ACK number on the packet sent by the receiver at time t1?

0

7
New cards
<p>What is the ACK number on the packet sent by the receiver at time t7?</p>

What is the ACK number on the packet sent by the receiver at time t7?

0

<p>0</p>
8
New cards
<p>What is the sequence number on the packet sent by the sender at time t4?</p>

What is the sequence number on the packet sent by the sender at time t4?

1

<p>1</p>
9
New cards
<p>What FSM transition (S0 through S9) occurs at time t2, when the sender starts a timer and then transmits a packet?</p>

What FSM transition (S0 through S9) occurs at time t2, when the sender starts a timer and then transmits a packet?

S5

<p>S5</p>
10
New cards
<p>Which sender FSM transition occurs at time t4?</p>

Which sender FSM transition occurs at time t4?

S7

<p>S7</p>
11
New cards
<p>Which receiver FSM transition occurs at time t3?</p>

Which receiver FSM transition occurs at time t3?

R2

<p>R2</p>
12
New cards
<p>Which receiver FSM transition occurs at time t5?</p>

Which receiver FSM transition occurs at time t5?

R3

<p>R3</p>
13
New cards

UDP Demultiplexing

uses destination port number only

14
New cards

TCP Demultiplexing

using 4-tuple:

  • source IP address

  • source port number

  • dest IP address

  • dest port number

15
New cards

UDP: connectionless transport

  • “no frills,” “bare bones” Internet transport protocol

  • UDP segments may be lost or delivered out of order to app

  • no handshaking between UDP sender and receiver

  • each UDP segment handled independently of others

<ul><li><p>“no frills,” “bare bones” Internet transport protocol</p></li><li><p>UDP segments may be lost or delivered out of order to app</p></li><li><p>no handshaking between UDP sender and receiver</p></li><li><p>each UDP segment handled independently of others</p></li></ul><p></p>
16
New cards

TCP: connection-oriented transport

  • point-to-point: one sender, one receiver

  • reliable, in-order byte steam: no “message boundaries”

  • full duplex data: bi-directional data flow in same connection

  • cumulative ACKs

  • pipelining: TCP congestion and flow control set window size

  • handshaking (exchange of control messages) initializes sender, receiver state before data exchange

  • flow controlled: sender will not overwhelm receiver

<ul><li><p><strong>point-to-point:</strong> one sender, one receiver</p></li><li><p>reliable, in-order byte steam: no “message boundaries”</p></li><li><p><strong>full duplex data: </strong>bi-directional data flow in same connection</p></li><li><p>cumulative ACKs</p></li><li><p><strong>pipelining:</strong> TCP congestion and flow control set window size</p></li><li><p>handshaking (exchange of control messages) initializes sender, receiver state before data exchange</p></li><li><p><strong>flow controlled:</strong> sender will not overwhelm receiver</p></li></ul><p></p>