Chapter 6: Transport layer Flashcards

1
Q

Primary function of the transport layer

A

Distinguishes packets between different applications running on a device.

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

Transport entity

A

Thing that executes transport functions, which is in the operating system’s kernel. All networks must connect through the operating system.

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

Sockets

A

Connection points where the higher levels can connect to in order to use transport layer functions

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

Addressing

A

Each layer that supports multiple destinations have some kind of addressing scheme. Transport layer also has capabilities of funnelling data to a particular application, also has addresses called ports.

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

Elements of transport protocols

A

All transport protocols address the same issue. Thus, there are elements of each protocol that can be compared with one another.

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

Common transport protocols

A

We will use the 3 most common:
TCP (connection-oriented)
UDP(connectionless)
RTP(media focussed)

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

Packets in the transport layer

A

We call sections of data transmitted over the network, segments

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

Transport layer is accessible to…

A

All programs because it is software located in the operating system kernel. It is accessible to all applications using a standardised scheme.

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

Sockets

A

A connection point where an application can connect to the transport layer.

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

Sockets detailed

A

They are service primitives that applications can employ in order to use the services of the transport layer.S

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

Socket example

A

An application wants to send data over the network. The application will make use of a SEND socket. It “plugs into” a socket in the transport layer that allows data to be sent.

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

Primitive: Socket

A

Create a new communication endpoint.

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

Primitive: bind

A

Associate a local address with a socket.

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

Primitive: Listen

A

Announce willingness to accept connections; give queue size.

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

Primitive: Accept

A

Passively establish an incoming connection.

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

Primitive: Connect

A

Actively attempt to establish a connection.

17
Q

Primitive: Send

A

Send some data over the connection.

18
Q

Primitive: Receive

A

Receive some data from the connection.

19
Q

Primitive: Close

A

Release the connection.

20
Q

Regarding addressing…

A

Transport layer must be able to distinguish between applications.

21
Q

Ports

A

A single 16-bit integer value that is used for addressing applications in the transport layer.

It has values between 0 and 65535.

22
Q

Transport layer provides clean and managed…

A

Access to the network layer.

23
Q

Transport and data-link layer differ by…

A

Medium the layers use. Data-link only manipulates the physical layer, while the transport layer has an entire network as a medium.

24
Q

Transport layer data could experience delays because…

A

Of the nature of the network. Even though segments are sent in the correct order, they may arrive in the incorrect order. Also a network could have many hosts.

25
Addressing
A primary function of the transport layer is that it allows an application on a local machine to send data to an application on a remote machine. Ports are used here
26
Connection establishment
Connection-orientated or connectionless plays a big role here again. Connectionless protocols dont need to worry about connections and connection states. Connection orientated does
27
Connection establishment: Three-way handshake
This prevents connections based on duplicate connections. The sending hosts send a sequence number x to the receiving host. The receiver host acknowledges the original transmission and sends its own sequence number y. Once the sending hosts receives y and the acknowledgement of x, it then acknowledges y and starts to transmit. This ensures legitimate connections are established.
28
Connection release
When should a connection release? What if there is still data to be sent? (Read the army problem). The hosts decided independently when to terminate connections. If data did remain, a new establishment can be established to get the rest of the information.
29
Error and flow control
Similar to data-link layer. Transport protocol must check for errors in the segments and control the flow of segments as well. Receivers can get overwhelmed if the sender has a higher bandwidth than what the receiver can take.
30
Multiplexing
Allows for a single network connection to be shared amongst many applications. It goes hand-in-hand with addressing. The transport protocol must be able to differentiate between various data transmissions meant for the various different applications.
31
Crash Recovery
Data loss occurs from time to time. Some transport protocols will attempt to fix it by retransmitting lost data.
32
3 things you can do if the host goes offline after a crash
wait indefinitely for the remote host to come back online and send a retransmission request. Wait a limited amount of time for the host to reconnected before timing out. Immediately cut losses and purge buffers containing the received data and retry from the beginning once the host reconnects.
33
What if the receiver goes offline
Just know that the transport protocol does address this somehow. Check the database example.
34