Lesson 9 — TCP & UDP Flashcards

1
Q

What is the main responsibility of the transport layer in the OSI model?

A

Logical communication between applications on different hosts.

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

What does the transport layer connect?

A

The application layer and the lower layers (e.g., network and data link layers).

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

Is the transport layer responsible for physical transmission of data?

A

No, it is responsible for the logical transmission between applications, not physical.

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

What is one key responsibility of the transport layer regarding communication sessions?

A

Tracking individual conversations between applications.

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

What does the transport layer do with data to make it easier to transmit?

A

Segments data and reassembles it at the destination.

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

What is added by the transport layer to help manage communication?

A

Header information.

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

How does the transport layer handle multiple conversations on a single device?

A

By identifying, separating, and managing multiple conversations.

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

What two techniques does the transport layer use to allow multiple conversations to share the network?

A

Segmentation and multiplexing.

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

Does IP handle the delivery or transportation of packets between hosts?

A

No, IP does not specify how packets are delivered or transported.

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

What is the role of transport layer protocols?

A

They specify how to transfer messages between hosts and manage reliability requirements.

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

Which two main protocols operate at the transport layer?

A

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

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

What is TCP?

A

TCP is a stateful protocol which
means it keeps track of the state
of the communication session

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

What does the TCP do?

A

TCP records which information it
has sent, and which information
has been acknowledged.

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

What are the different TCP header fields?

A
  • Source Port
  • Destination Port
  • Sequence number
  • Acknowledgment Number
  • Header length
  • Reserved
  • Control bits
  • Window size
  • Checksum
  • Urgent
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What is the source port TCP header field?

A

A 16-bit field used to identify the source application by port number

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

What is the destination port TCP header field?

A

A 16-bit field used to identify the destination application by port number

17
Q

What is the Sequence Number TCP header field?

A

A 32-bit field used for data reassembly purposes

18
Q

What is the Acknowledgment Number TCP header field?

A

A 32-bit field used to indicate that data has been received and the next byte expected from
the source

19
Q

What is the Header Length TCP header field?

A

A 4-bit field known as ʺdata offsetʺ that indicates the length of the TCP segment header

20
Q

What is the Reserved TCP header field?

A

A 6-bit field that is reserved for future use

21
Q

What are the Control bits TCP header field?

A

A 6-bit field used that includes bit codes, or flags, which indicate the purpose and function
of the TCP segment.

22
Q

What is the window size TCP header field?

A

A 16-bit field used to indicate the number of bytes that can be accepted at one time

23
Q

What is the checksum TCP header field?

A

A 16-bit field used for error checking of the segment header and data

24
Q

What is the urgent TCP header field?

A

A 16-bit field used to indicate if the contained data is urgent

25
What are the kinds of tasks that TCP handles?
TCP handles all tasks associated with dividing the data stream into segments, providing reliability, controlling data flow, and reordering segments.
26
What does UDP mainly do?
Diving the data into segments and reconstructing the segments in the order that it is received,
27
What happens with lost segments with UDP?
Any segments that are lost are not resent.
28
With UDP, is the sending informed about the resource availability?
No, There is no session establishment so the sending is not informed about resource availability.
29
How is the UDP header constructed?
The UDP header is far simpler than the TCP header because it only has four fields and requires 8 bytes (i.e. 64 bits in total).
30
What are the different UDP header fields?
- Source Port - Destination Port - Length - Checksum
31
What is the source port UDP Header field?
A 16-bit field used to identify the source application by port number
32
What is the destination port UDP header field?
A 16-bit field used to identify the destination application by port number
33
What is the length UDP header field?
A 16-bit field that indicates the length of the UDP datagram header
34
What is the checksum UDP header field?
A 16-bit field used for error checking of the datagram header and data
35
What are Socket Pairs?
A socket pair refers to the combination of two sockets – a client socket and a server socket.
36