Topic 10 Flashcards

1
Q

What are the two roles of the Transport Layer?

A

Logical communications between applications running on different hosts
Link between the application layer and the lower layers

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

What are the five responsibilities of the Transport layer?

A
  • Tracking individual conversations
  • Segmenting data and reassembling segments
  • Adding header information
  • Identifying the applications
  • Conversation multiplexing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the purpose of conversation multiplexing?

A

To interleave multiple conversations on the same network

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

What are the five TCP basic operations to provide reliability and flow control?

A
  • Number and track data segments
  • Sequence data
  • Acknowledge received data
  • Retransmit any unacknowledged data
  • Send data at an efficient rate
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why is TCP a connection-oriented protocol?

A

Because it must establish a connection between the sender and the receiver

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

Why is UDP known as a best-effort protocol?

A

Because it does not provide reliability and flow control

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

Why is UDP a connectionless protocol?

A

Because it does not require an established connection

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

Why is UDP a stateless protocol?

A

Because it does not track information sent or received

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

Which layer 4 protocol is good for voice and DNS?

A

UDP

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

Why is TCP a stateful protocol?

A

Because 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
11
Q

What information in the transport layer header identifies the application?

A

Source and destination port numbers

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

Give four examples of applications that use TCP.

A
  • HTTP
  • FTP
  • SMTP
  • SSH
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Give six examples of applications that use UDP.

A
  • DHCP
  • DNS
  • SMMP
  • TFTP
  • VoIP
  • Video Conferencing
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Define the SOCKET and the socket pair.

A
  • Socket: IP address + port number
  • Socket pair: Source socket + destination socket
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Write the socket pair for the diagram below.

A

Socket pair: 192.168.1.5:1099, 192.168.1.7:80

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

What are the three types of the port number groups?

A
  • Well-known Ports
  • Registered Ports
  • Dynamic or Private ports
17
Q

A message originates on PC1 and is destined for the web server. Fill in the following information: Source IP, Destination IP.

A
  • Source IP: 192.168.1.10
  • Destination IP: 192.168.0.254
18
Q

Can ONE server have two or more services assigned to the same port number? Why?

A

No, because there is no way to differentiate between services

19
Q

Explain the steps of the TCP connection establishment.

A
  • Step 1: Client A requests a client-to-server session with the server
  • Step 2: Server B acknowledges the request and requests a server-to-client communication session
  • Step 3: Client A acknowledges the server-to-client communication session
20
Q

How is the ordered delivery of segments achieved?

A

By assigning sequence numbers in the header of each segment

21
Q

What is the purpose of flow control?

A

Adjusts the rate of data flow between source and destination

22
Q

What information in the segment header is used by the flow control?

A
  • Number of bytes
  • Acknowledgment
23
Q

Explain the window size concept.

A

Number of bytes that:
* The destination device can accept and process at one time
* Can be sent before an acknowledgment
* Modified by the destination at any time depending on the buffer availability

24
Q

What does network congestion result in?

A

It results in packets being discarded

25
Q

Compare and contrast UDP and TCP.

A
  • TCP: Connection oriented, Stateful protocol, Reliable protocol, More overhead, Acknowledges data, Resends lost data, Delivers data in sequenced order, Tracks transmitted data segments, Better for databases, web browsers, email clients
  • UDP: Connectionless, Stateless protocol, Non-reliable protocol, Low overhead, Does not require acknowledgment, Does not resend lost data, Delivers data as it arrives, Fast, Better for live audio or video streaming, VoIP