Quiz on Transport layer Flashcards

1
Q

Logical communication meaning

A

an end-to-end connection in which the sender and receiver are directly linked

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

port number vs IP address

A

BOTH - numerical identifiers

IP: identifies a specific device on a network

port number: identifies a specific process or service on that device

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

port number function

A

distinguishes different services/apps on a device

help direct network traffic to correct application/service

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

Port number definition

A

16-bit number used by the transport layer to identify specific apps running on a host

allows multiple apps/services on the same host to communicate at the same time

for example, port 80 is used for HTTP, and port 443 is used for HTTPS.

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

datagram

A

specific type of packet used by the network layer

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

demultiplexing

A

datagram’s payloads (the data inside the packet) are directed to the correct app/protocol in the host

apps/protocols are identified by a socket number

happens on all layers

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

multiplexing

A

the reverse of demultiplexing; as apps send messages down through different sockets, TCP funnels them down into an IP packet to be sent out

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

demultiplexing at the CLIENT vs SERVER

A

client: making sure the info is sent to the correct app on the host (since host is usually running many apps at once)

server: making sure HTTP messages are send to the correct client (since server is handling requests from many clients at once)

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

multiplexing at the CLIENT vs SERVER

A

client: funneling messages from apps into a packet

server: combining data from multiple sockets and adding transport header that’s later used for demultiplexing

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

IP datagram structure

A

header: source port #, dest port #

each datagram carries one transport-layer segment

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

connectionless demultiplexing (UDP)

A

when creating a socket, the app programmer specifies a host-local port number

when creating a datagram to send to this UDP socket, you specify:
*destination IP address
* destination port number

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

connection-oriented demultiplexing (TCP) - the 4 parts of TCP sockets

A

more complicated than UDP

TCP sockets are identified by 4 things:
*source IP address
* source port number
*dest IP address
* dest port number

for demultiplexing, the receiver uses all 4 values to direct the segment to the right socket

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

segment definition

A

unit of data created by TCP/UDP

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

UDP vs TCP demultiplexing

A

UDP: demultiplexing uses dest port number ONLY

TCP: demultiplexing uses source & dest IP addresses, source & dest port numbers

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

UDP segment structure

A

4 header fields: source port #, dest port #, length, checksum

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

checksum

A

detects errors (corrupted/changes) in a segment by checking that 2 numbers add up to the same sum

no protection against bit flips because they would have the same sum

used by both TCP and UDP

17
Q

UDP advantages

A

no setup/handshaking (no RTT delay)

can function when network service is compromised (unaffected by congestion)

helps with reliability (checksum)

18
Q

UDP usages

A

streaming videos/audio (tolerant of packet loss, won’t be slow because of network congestion)

can build reliable transfer on top of it

19
Q

RDT

A

Reliable Data Transfer

set of protocols that try to detect errors and retransmit packets if necessary

uses ACK or NAK to confirm that packet was received or to tell sender that packet had error

20
Q

stop and wait behavior meaning

A

sender sends 1 packet, then waits for response from receiver

21
Q

Selective repeat

A

receiver individually acknowledges all correctly received packets

times-out or retransmits for un-ACKed packets

22
Q

TCP segment structure

A

line 1: source port #, dest port #
line 2: sequence #
line 3: ACK #
line 4: length of TCP header, receive window
line 5: checksum
line 6: TCP options
app data

23
Q

ACK

A

message sent to confirm that data was received

contains the next expected sequence number