2.2 Architecture Flashcards

1
Q

What is the purpose of the transport layer?

A

it ensures data segments are reliably delivered within the context of client-server sessions

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

What are the key functionalities of the transport layer?

A
  1. Reliable and ordered delivery, 2. Multiplexing of conversations between hosts, and 3. flow/congestion control.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

IP focuses on Network Controller Interfaces. What does TCP focus on?

A

Processes.

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

How do processes relate to ports?

A

Processes own ports, and initiate connection only in their ports.

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

Is a socket unique across the Internet? [T/F]

A

T.

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

Explain the concept of multiplexing.

A

When two hosts can have multiple simultaneous conversations.

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

Explain how ports allow for multiplexing.

A

TCP divides the communications a host can be involved with into ports. This allows two hosts to perform several simultaneous communications without getting data confused.

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

How is a port identified.

A

A port is identified by a number, used in each message between hosts. Port identities the communication the message belongs to.

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

What is a socket.

A

A socket is a combination of an IP address and a port.

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

Is the concept of a socket part of TCP specification? [T/F]

A

T.

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

Is the assignment of sockets to services part of TCP specification? [T/F]

A

F.

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

Give the name of the organisation that maintains the list of assigned ports.

A

Internet Assigned Numbers Authority (IANA).
Service names are assigned on a first-come, first-served process, as documented in rfc6335.

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

What is the mandatory size of a TCP segment header.

A

20 bytes.

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

What is the size of a port in the TCP segment header?

A

16 bits, 2 bytes. Value between 0-65535.

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

How does a TCP message header allow for unique identification of a session between two sockets.

A

TCP header includes the source and destination ports, while the source and destination host addresses can be found in the IP header.

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

What is a TCP session.

A

Before being able to send data, hosts need to establish a connection, referred to as TCP session, with a recipient host.

17
Q

Can data be sent without an established session?

A

Data can only be sent during an established session.

18
Q

What are the phases of establishing a session?

A

Session “set up” phase –> data transmission –> session “tear down” phase.

19
Q

Do other protocols utilise the concept of sessions or is it only a TCP connection?

A

Yes. A TCP connection is one kind of session. Many other protocols utilise sessions.

20
Q

Explain how a TCP session benefits communicating hosts.

A

Within a TCP session, communicating hosts will ensure reliability of delivery and will manage flow control.

21
Q

Explain briefly the client/server model. What is a server? What is a client?

A

Server: A host that is ready to accept communication on one or more ports.
Client: A host that communicates with a server.
Two hosts can potentially be both client and server in two separate connections.

22
Q

What does the TCP protocol define?

A

TCP protocol defines a finite state machine specifying the lifecycle of a session.

23
Q

How many phases are involved in the TCP protocol?
Give the phases involved.

A

2 phases.
- Connection/session setup phase
- Connection/session tear-down phase.

24
Q

The TCP session set up phase is initiated by the server. [T/F]

A

F.

25
Q

The TCP session set up phase is initiated by the client. [T/F]

A

T.

26
Q

Define the four steps that a TCP session set up phase consists of?

A
  1. Client Synchronise (SYN)
  2. Server acknowledges synchronise (SYN ACK)
  3. Client acknowledges acknowledgement (ACK)
  4. Connection is setup and can be used for transmitting data
27
Q

Define the four steps that a TCP session tear down phase consists of?

A
  1. Client sends finalize (FIN)
  2. Server acknowledges finalise (FIN + ACK)
  3. Client acknowledges acknowledgement (ACK)
  4. Tear-down connection
28
Q

The tear-down phase can be initated by the client or the server. [T/F]

A

T.

29
Q

What do acknowledgement messages contain?

A

Acknowledgement messages contain a sequence number indicating the next byte the sender of the acknowledgement is ready to receive.

30
Q

Why is there a requirement for the sender to increase its sequence number in their acknowledgment message?

A

Each message in a TCP communication expects an acknowledgement to be sent.

31
Q

What is the sequence number for the sender?

A

For the sender, the sequence number indicates the first byte of the message being sent.