Transport Layer Flashcards

1
Q

What is “logical communication”?

A

From an application’s perspective, it is as if the hosts running the processes were directly connected; in reality, the hosts may be on opposite sides of the planet, connected via numerous routers and a side range of link types.

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

Between which layers does the transport layer reside?

A

The transport layer is below the application layer and above the network layer.

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

How does a household mail example serve as an analogy for explaining how the transport layer relates to the network layer?

A
application messages: letters in envelopes
processes: cousins
hosts: houses
transport-layer protocol: Ann and Bill
network-layer protocol: postal service
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the two transport layer protocols of the Internet?

A

UDP and TCP.

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

What is demultiplexing?

A

At the receiving end, the transport layer examines the fields in the segment to identify the receiving socket and then directs the segment to that socket.

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

What is multiplexing?

A

The job of gathering data chunks at the source host from different sockets, encapsulating each data chunk with header information to create segments, and passing segments to the network layer.

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

What are the segment fields that help with multiplexing/demultiplexing for UDP?

A

source port number and destination port number.

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

What are the segment fields that help with multiplexing and demultiplexing for TCP

A

Source IP address, source port number, destination IP address and destination port number

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

What is a connection establishment request?

A

A connection establishment request is nothing more than a TCP segment with destination port number and a special connection-establishment bit set in the TCP header.

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

Why choose UDP over TCP if it isn’t reliable?

A

TCP is considerably slower than UDP because of its handshaking process and also its congestion control. If UDP is selected the application can be designed to add functionality to UDP’s no-frills delivery service. UDP also has a smaller packet header size (8 bytes vs TCP’s 20)

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

Why not choose UDP?

A

UDP’s lack of congestion control is a large issue. Lack of congestion control in UDP can result in high loss rates between a USP sender and receiver, and the crowding out of TCP sessions

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

Describe the UDP segment structure and each of its parts

A

Source port, destination port
Length - length of the segment including the header in bytes.
Checksum - a 16 bit number to which all 16 bit words are added. The sum should be 1111111111111111. If one of the bits is a zero we will know there has been an error.
Application data - data being sent

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

What is the end-end principle?

A

Since certain functionality must be implemented on an end-end basis, functions placeced at the lower levels may be redundant or of little value when compaired to the cost of providing them at a higher level

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

What are ARQ protocols?

A

The control messages that allow the receiver to let the sender know that the message has been received correctly and what has been received in error and thus required repeating.

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

What are ACK and NAK

A

The positive ACK and negative NAK acknowledgment replies in the message dictation scenario are examples of feedback from the receiver to the sender`

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

What is a stop-and-wait protocol?

A

A protocol in which the sender stops and waits for a response from the receiver before sending the next packet

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

What is a sequence number?

A

A sequence number is a header field of TCP segments that allows sender and receivers to determine whether packets were received in retransmission or not.

18
Q

What is the utilization of the sender/

A

The reaction of time the sender is actually busy sending bits into the channel.

Usender = L/R / RTT + L/R

19
Q

What is pipelining?

A

Pipelining is when the sender is allowed to send multiple packets before waiting for a response

20
Q

What are the consequences of pipelining for rdt’s?

A
  • The range of sequence numbers must be increased
  • the sender and receiver sides of the protocols may have to buffer more than one packet
  • the rand of sequence numbers needed and the buffering requirements will depend on the manner in which a data transfer protocol responds to lost corrupted and overly delayed packets.
21
Q

What is a Go-Back-N protocol?

A

GBN is when the sender is allowed to transmit multiple packets without waiting for an ACK but is constrained to have no more than some max allowable number N of unacknowledged packets in the pipeline.

22
Q

What is a window size?

A

The range of permissible sequence numbers of transmitted but not yet acknowledged packets

23
Q

What is a cumulative acknowledgment?

A

an ack that indicates that all packets with a sequence number up to and including n have been correctly received at the receiver.

24
Q

What is a selective repeat protocol?

A

A selective repeat protocol is when the sender acknowledges all correctly received packets regardless of packet order.

25
Q

What are the pieces of a TCP segment?

A

Source port, destination port, sequence number, acknowledgment number, header length, flags, receive window, internet checksum, urgent data pointer, options and data

26
Q

What is the sequence number of a TCP segment?

A

The sequence number for a segment is the byte-stream number of the first byte in the segment

27
Q

What is a cumulative acknowledgment?

A

TCP uses cumulative acknowledgements and this TCP only acknowledges bytes up to the first missing byte in the stream

28
Q

How do we calculate EstimatedRTT?

A

Estimated RTT is a weighted average where the previous RTTs count more than the most recent ones. the formula is 0.875Previously estimated RTT average + 0.125most recently estimated RTT

29
Q

What does setting a timeout interval have to do with congestion control?

A

If there is an expiration of the timer, TCP will retransmit the segment and double the timer time. If the timer is restarted after either of data of ACK being received, it will derive the timeout interval from the Estimated RTT and DevRTT

30
Q

What is a duplicate ACK?

A

In TCP a duplicate ACK is sent instead of a NAK. The receiver will send a duplicate ACK when they receive a piece of data out of order and detect a gap in the data they have received. They will resend the ACK from the last piece of in-order data.

31
Q

How does TCP provide flow control?

A

TCP provides flow control by having the sender maintain a variable called the receive window. THe receive window is used to give the sender an idea of how much free buffer space is available at the receiver.

32
Q

What is the “offered load”

A

The rate at which the transport layer sends segments into the transport layer

33
Q

What are some of the costs of a congested network?

A
  • Large queuing delays are experienced as the packet arrival rate nears the link capacity
  • The sender must perform retransmissions in order to compensate for dropped packets due to buffer overflow
  • unneeded retransmissions by the sender in the face of large delays may cause a router to use its bandwidth to forward unneeded copies of a packet
  • When a packet is dropped the transmission capacity that was used at each of the upstream links has been wasted.
34
Q

What is end-to-end congestion control?

A

In the end to end approach to congestion control, the network layer provides to support to the transport control layer. TCP segment loss is taken as an indication of congestion and the window size is decreased accordingly

35
Q

what is Network assisted congestion control?

A

In this approach, the network provides explicit feedback to the sender regarding congestion of the network.

36
Q

What is a choke packet?

A

A notification from the network router to the sender.

37
Q

What is a congestion window?

A

The congestion window is a variable that the sender operates. It imposes a constraint on the rate at which a TCP sender can send traffic into the network. Specifically the amount of unacknowledged data that can be sent by the sender is restricted by the congestion window

38
Q

Why is TCP said to be self clocking?

A

TCP is self clocking because it uses feedback in the form of timeouts or duplicate ACKs to adjust its congestion window.

39
Q

What are the three components of the congestion control algorithm?

A
  • Slow start
  • Congestion avoidance
  • Fast recovery
40
Q

Describe slow-start

A

In the slow start stat the value of the congestion window begins at 1 MSS (maximum segment size) and increases by 1 MSS every time a transmitted segment is first acknowledged.

41
Q

Describe congestion avoidance.

A

On the entry to the congestion avoidance state, the value of the congestion window will be approx. half the value it was when congestion was last encountered. TCP increases the value of cwnd by a single MSS every RTT.

42
Q

Describe fast recovery/

A

In fast recovery, the value of cwnd is increased by 1 MSS for every duplicate ACK received. If the ACK arrives for the missing segment, TCP enters congestion avoidance, if there is a timeout, TCP enters slow-start.