Chapter 6 Flashcards

1
Q

What is the primary function of the transport layer?

A

Hide details of network from above layers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you identify processes?

A

Number them in the header

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does reliability mean?

A

Communication shouldnt fail. If it fails, communication parties should know it has failed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Which protocol provides unreliable transport layer?

A

UDP ( User Datagram Protocol )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which protocol provides a reliable transport layer?

A

TCP ( Transmission Control Protocol )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the new transport layer protocol?

A

QUIC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Reliable protocols are ……..-oriented

A

connection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does connection-oriented mean?

A

Establish connection and use that connection then terminate that connection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How do you establish a reliable connection?

A

3-way handshake

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does TCP’s 3 way handshake look like?

A

A: SYN (SYN = synchronise)
b: SYN + ACK
A: ACK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does a termination TCP handshake look like?

A

A: FIN
b: FIN + ACK
A: ACK

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What are the different flow control algorithms?

A

Stop-and-wait
Sliding window
Unrestricted flow

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

How does the Stop-and-wait algorithm work?

A

Wait for ACK message, If received send next message. If not received within time-out resend + reset time-out counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Problem with Stop-and-wait algorithm?

A

Very inefficient

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the sliding window algorithm?

A

Its a window that represents messages sent by sender but not yet confirmed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How does sliding window handle lost messages?

A

Selective repeat ( only retransmit lost messages )
Go-Back-N ( all unacknowledged messages are retransmitted starting from the lost message)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What is the most efficient way to handle lost messages with sliding window?

A

Selective repeat

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

How does the unrestricted flow algorithm work?

A

No flow control ( unrestricted )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

How many timers does a ARQ sliding window need?

A

2: retransmission + acknowledgment

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does ARQ stand for?

A

Automatic Repeat Request

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What should happen when an ARQ retransmission timer expires?

A

Re transmit the packet

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What does a ARQ acknowledgment timer indicate?

A

How much time is left before the packet has to be acknowledged ( allows piggybacking of data )

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

What algorithms are examples of ARQ algorithms?

A

Stop and wait + sliding window

24
Q

How are transport errors caused?

A

By over congesting the network

25
How are packet rates controlled?
By the size of the sliding window
26
Are connectionless protocols reliable?
No
27
Which of the transport protocol classes is connectionless?
TP4
28
Which transport protocol classes has resynchronisation?
TP1 and TP3
29
Which transport protocol classes has explicit flow control?
TP3 and TP4 (TP2 = optional)
30
Which transport protocol classes has Retransmission on time-out and inactivity control.
TP4
31
What application layer protocols use TCP?
SMTP and HTTP
32
What application layer protocol uses UDP?
DNS name lookup
33
What components does a TCP header have?
Source port, destination port( port numbers are used to identify communication processes), Sequence number, acknowledgement number, Data Offset Checksum, Urgent Pointer, Padding and data
34
What is the data format that the TCP sends back and forth for a 3 way handshake?
1: (syn,S=0,A=0,W=1000,0 data) (S == number of syn's and Ack is the number of Acks. W = "My" window size, 0 data = 0 bytes of data) 2: (syn,ack,S=0,A=1,W=2000,0 data) 3: (ack,S=1,A=1,W=1000,0 data) 3-way handshake for TCP
35
What does each "node"/"side"? Store with TCP?
T,R,W T =number of bytes transmitted R = number of bytes received W = window size
36
What is TCP's retransmit timer used for?
Retransmitting lost segments
37
How does TCP's retransmit work?
When TCP sends, start timer. When ack received = Stop timer. If timer expires = resend
38
What is RTT?
Round trip time ( here to there to back time)
39
What does a persistence timer do?
Ensure no deadlock
40
What timer gets activated when A is informed that B's window is 0?
Persistence timer
41
What happens if the persistence timer runs out?
Poke the other node. The other node will then send back an ACK but also its window size
42
What does the keepalive timer do?
Keeps the connection alive until the timer runs out.
43
When is the keepalive timer reset?
When a message has been received.
44
To what state does a connection go when it is closed?
TIME-WAIT
45
What is a quiet timer?
A timer that is activated when the 3rd part of the 3way termination handshake has been entered
46
What happens when the quiet timer expires?
Resources are returned to OS
47
What program do you use to display info about status of the network?
netstat
48
What are the different states a TCP connection can be in?
Listen, Closed, Closing, Time-wait, Fin-wait-1, fin-wait-2, established (open connection), close-wait(close request from local user)
49
What does a slow start mean in tcp?
Small initial window size with exponential growth
50
What happens to the sliding window when packets are lost with tcp?
Set a threshold of cwnd/2 after which it increases linearly instead of exponentially
51
What is present in the UDP packets?
Source port, Destination port, Length, Checksum, Payload
52
What range is the well-known port?
0-1023
53
What is all the relevant port numbers?
20 ftp data 21 ftp control 22 ssh 23 telnet 25 SMTP 53 DNS 80 HTTP 110 POP3 143 IMAP 995 POP3 via TLS/SSL
54
UDP ports often service the same applications as their TCP equivalents?
True
55
What range is registered ports?
1024-49151
56
What range is dynamic/private ports?
49152-65535
57
What do you call a host address combined with a port?
A socket