Transport Layer Part 1 Flashcards

1
Q

Sender Transport Protocol Actions

A
  • gets MESSAGE from application layer
  • determines UDP segment header fields values
  • creates segment
  • passes to IP (network layer)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Receiver Transport Protocol Actions

A
  • receives SEGEMENT from IP (network)
  • checks header values
  • extracts application layer MESSAGE
  • demultiplexes message up to application via socket
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Two Transport Protocols

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

Household Analogy: 12 kids in house sending letter to 12 kids in other house

A

hosts = house
processes = kids
app messages = letters in envelope

IP address (network) = envelope with address
port number (transport) = message in envelope

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

Transport Layer

A

Logical communication between processes on different hosts

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

TCP

A

Transport Control Protocol
- reliable, in-order delivery
- flow control
- connection setup

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

UDP

A

User Datagram Protocol
- unreliable, unordered delivery
- no-frills extension of “best-effort” IP

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

Multiplexing

A
  • occurs at sender
  • handle data from multiple sockets
  • add transport header
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Demultiplexing

A
  • occurs at receiver
  • user header info to deliver received segments to correct socket
  • host uses IP address and port numbers to direct segment to appropriate socket
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Connectionless Demultiplexing

A
  • send to correct socket using dest IP and port number
  • datagrams with same dest port but diff source IP/port will be directed to same socket
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Connection-oriented Demultiplexing

A
  • socket identified by 4-tuple of source IP, source port, dest IP, des port
  • uses all four tuple values to determine socket
  • unique socket for each 4-tuple
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Checksum

A

Used to detect errors in transmitted segment.
1. Add together all values
2. wrap-around if needed
3. one’s complement

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

Sender Checksum Actions

A
  • treat contents of UDP segment as seq of 16-but integers
  • perform checksum operations on seq
  • put checksum value into UDP checksum field
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Receiver Checksum Actions

A
  • compute checksum of received segment
  • check if computed checksum equals checksum field value
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Principle of Reliable Data Transfer

A

Reliable service is implemented using
1. reliable data transfer protocol
2. unreliable channel

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

RDT

A

Reliable Data Transfer PROTOCOL

17
Q

rdt 1.0

A

Reliable transfer over a reliable channel.

18
Q

rdt 2.0

A

Channel with bit errors (unreliable channel). Uses ACKNOWLEDGEMENTS to recover from errors

19
Q

ACKs

A

Acknowledgements. Receiver explicitly tells sender that packet was received OK

20
Q

NAKs

A

Negative Acknowledgements. Receiver explicitly tells sender that packet had errors and sender retransmits packer on receipt of NAK

21
Q

Stop and Wait

A

Sender sends one packet, then waits for receiver response