Week 7 Flashcards

1
Q

What is the Transport Layer and how is it different from a Network Layer?

A

Transport layer: process to process

Network layer: host to host

Transport layer relies on the network layer service, and it manages movements from app layer to network, and vice versa.

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

What services does the TCP provide in a transport layer?

A
  • reliable, in-order
  • congestion control
  • flow control
  • connection setup
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What services does the UDP provide in a transport layer?

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

What services are NOT provided by the TCP and UDP?

A

Throughput and delay and bandwidth guarantees

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

What is demultiplexing

A

[RECEIVER SIDE] the job of delivering the data in a receiving transport-layer segment to the correct socket (going into the application layer) by analyzing the header info

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

What is multiplexing

A

[SENDER SIDE] collecting data from sockets (from the app layer) and encapsulating it with header information to be analyzed through demultiplexing

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

What are the restricted port numbers

A

0 to 1023

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

How are UDP sockets identified for multiplexing/demuxing

A

2 tuples: destination address & destination port number

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

How are TCP sockets identified for multiplexing/demuxing

A

4 tuples: destination address, destination port number, source address, source port number

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

Why does UDP exist for Transport layer? (Pros)

A
  1. saves time by not setting up connection
  2. simple to implement
  3. small header size
  4. no congestion control. can function even congested
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are some uses for UDP?

A

multimedia apps (loss tolerant)

DNS

HTTP/3

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

What type of connection is checksum used for?

A

UDP

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

How is checksum calculated?

A
  1. add bits
  2. reverse the bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly