Week 9- Transport layer Flashcards

1
Q

What does the transport layer provide?

A

It provides the logical communication between application processes running on different hosts.

It may also provide transport services such as congestion/flow control

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

What does transport layer not provide?

A

Any speed,delay or bandwidth guarantees

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

What’s the difference between transport layer and network layer?

A

Transport Layer: logical communication between processes

Network Layer: Logical communications between hosts

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

Which systems run transport protocols?

A

It run on network edge devices (hosts/end-systems)

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

What does the sender

A
  • Gets message from the Application Layer
  • Breaks it into logical segments
  • Passes it on to the network layer
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the receiver

A
  • Gets segments from the Network Layer
  • Reassembles them into a message
  • Passes it on to the Application Layer (via socket)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are the 2 key Transport Protocols

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

Define TCP

A

Gives us reliable, in order delivery as a connection-oriented protocol

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

Define UDP

A

Gives us unreliable, unordered delivery

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

Define Multiplexing

A

It is when data is handled from multiple sockets and split into segments

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

Define Demultiplexing

A

When the header information is used to deliver received segments to the correct socket, which are then reassembled into data

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

Define Transport headers

A

This include source and destination port numbers are added at this stage

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

Define UDP

A

It is the ‘best effort’ transport service

17
Q

Which applications use UDP?

A
  • Streaming multi-media apps ( less tolerant)
  • DNS (Domain Name System)
  • SNMP (Simple network Management Protocol)
18
Q

Why is there a UDP in transport protocol, what are the benefits?

A
  • No connection establishment ( which can add delay)
  • Simplicity: no connection state at sender or receiver
  • Smaller header size than TCP (only 8 bytes)
  • No congestion control so UDP can send data as fast as possible
19
Q

What does the UDP checksum do?

A

It offers some basic error checking
- Error: A bit is erroneously flipped during transmission

20
Q

What are the steps includes whilst the UDP checksum do?

A
  1. Sender breaks the whole segment into 16-bit chunks
  2. Each section is treated like a binary integer and is added together - any carry bits are added to the LSB
  3. Each digits of the 16- bit result is flipped at each digit - checksum now
  4. Checksum is added to the datagram before it is sent
21
Q

What are the steps after the UDP checksum segment is received?

A
  1. Once the segment is received, the receiver recalculates the checksum in the same way the sender did
  2. The receiver calculated checksum is compared to the checksum in the UDP header
22
Q

Why is packet- Switched network unreliable?

A

-Delay causes packet loss

  • Errors can occur
  • UDP cannot guarantee packets arrive is the same order in which they are sent
23
Q

How can we achieve Reliable Data Transfer (RDT)?

24
Q

What is shown in RDT 1.0 design?

A

In the RDT 1.0 design it is assumed that the underlying channel is 100% reliable - no bit errors or packet loss.

25
What does RDT 2.0 design show?
26
What does RDT 2.1 design show you?
27
What does RDT 2.2 design show?
28
What does RDT design 3.0 show?
29
In practice, which RDT design perform well?
RTD 3.0 correctly deals with errors and packet loss in a packet-switched network
30
How can you solve the stop and wait problem that occurs in RDT 3.0?
Through pipelining, the sender allows multiple packets to be in-fight at any given time. This will cause buffering at the receiver and sender To achieve this the range of sequence numbers must be increased beyond 0 and 1
31
What is it like with RDT in practice with UDP and TCP?
- On the Network Layer, the IP protocol is an inherently unreliable, best-effort service. - On the Transport Layer, RDT 3.0 is assured by the TCP protocol