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
Q

How are packet rates controlled?

A

By the size of the sliding window

26
Q

Are connectionless protocols reliable?

27
Q

Which of the transport protocol classes is connectionless?

28
Q

Which transport protocol classes has resynchronisation?

A

TP1 and TP3

29
Q

Which transport protocol classes has explicit flow control?

A

TP3 and TP4 (TP2 = optional)

30
Q

Which transport protocol classes has Retransmission on time-out and inactivity control.

31
Q

What application layer protocols use TCP?

A

SMTP and HTTP

32
Q

What application layer protocol uses UDP?

A

DNS name lookup

33
Q

What components does a TCP header have?

A

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
Q

What is the data format that the TCP sends back and forth for a 3 way handshake?

A

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
Q

What does each “node”/”side”? Store with TCP?

A

T,R,W
T =number of bytes transmitted
R = number of bytes received
W = window size

36
Q

What is TCP’s retransmit timer used for?

A

Retransmitting lost segments

37
Q

How does TCP’s retransmit work?

A

When TCP sends, start timer. When ack received = Stop timer. If timer expires = resend

38
Q

What is RTT?

A

Round trip time ( here to there to back time)

39
Q

What does a persistence timer do?

A

Ensure no deadlock

40
Q

What timer gets activated when A is informed that B’s window is 0?

A

Persistence timer

41
Q

What happens if the persistence timer runs out?

A

Poke the other node. The other node will then send back an ACK but also its window size

42
Q

What does the keepalive timer do?

A

Keeps the connection alive until the timer runs out.

43
Q

When is the keepalive timer reset?

A

When a message has been received.

44
Q

To what state does a connection go when it is closed?

45
Q

What is a quiet timer?

A

A timer that is activated when the 3rd part of the 3way termination handshake has been entered

46
Q

What happens when the quiet timer expires?

A

Resources are returned to OS

47
Q

What program do you use to display info about status of the network?

48
Q

What are the different states a TCP connection can be in?

A

Listen, Closed, Closing, Time-wait, Fin-wait-1, fin-wait-2, established (open connection), close-wait(close request from local user)

49
Q

What does a slow start mean in tcp?

A

Small initial window size with exponential growth

50
Q

What happens to the sliding window when packets are lost with tcp?

A

Set a threshold of cwnd/2 after which it increases linearly instead of exponentially

51
Q

What is present in the UDP packets?

A

Source port, Destination port, Length, Checksum, Payload

52
Q

What range is the well-known port?

53
Q

What is all the relevant port numbers?

A

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
Q

UDP ports often service the same applications as their TCP equivalents?

55
Q

What range is registered ports?

A

1024-49151

56
Q

What range is dynamic/private ports?

A

49152-65535

57
Q

What do you call a host address combined with a port?