Transport Layer Protocols Flashcards

1
Q

What is the purpose of the transport layer?

A

Provides network access to applications and their data

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

True or False: IP provides reliability for packet transmission

A

False! “if it doesn’t make is, oh well”

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

What are the two core transport layer protocols in the TCP/IP Protocol Suite?

A

Transmission Control Protocol(TCP)
User Datagram Protocol (UDP)

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

What is a network process assigned?

A

a port

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

What does a process listening on a port mean?

A

the port is open

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

What services does TCP provide

A

Stream-Oriented, Connection-Oriented, reliability, and flow control

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

How is connection-oriented service provided?

A

providing explicit connection establishment and teardown

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

How is reliability provided?

A

detection of data loss, data errors, and retransmission of data

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

How does TCP messaging work?

A

1) every byte/octet if data sent by TCP is given a sequence number
2) data is sent as a stream of bytes
3) all or a portion of the streamed data is packages into a TCP segment
4) sequence number field is set to the first sequence number in the segment

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

What does flow control do?

A

window field tells sender how much data receiver can handle, since TCP buffers can fill up and you need time to catch up with processing -> modified the flow of data

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

What services does UDP provide? (4)

A

message oriented, connectionless, no reliability, port information

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

How is the UDP connectionless service provided?

A

each datagram is unique and not see as a part of a defined connection

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

How does UDP messaging work? (3)

A

1) data is packaged into a discrete message by the application
2) application sends the message to UDP
3) entire message becomes a UDP datagram

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

Why is UDP preferred over TCP?

A

TCP is expensive

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

Why is TCP expensive? (4)

A

)connection establishment takes time
)ACKing data takes time
)retransmission takes time
)flow control times time

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

When is UDP preferred over TCP?

A

wanting speed over reliability, UDP doesn’t care is data is lost