1
Q

What is TCP? What are its features?

A

Transmission Control Protocol

  • Connection-oriented
  • Reliable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is meant by TCP being connection oriented?

A
  • A virtual circuit established between two devices
  • To the application, connections appears to be a point-to-point full duplex connection
  • Messages split into segments for transmission
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is meant by TCP being reliable?

A
  • Errors are detected and corrected

- Segments are re-assembled in the correct order

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

Difference between simplex, duplex and half duplex?

A

Simplex = One device sends and one recieves
Duplex = Both devices send and recieve at the same time
Half duplex = Both devices can send and recieve but not at same time, have to wait turns recieving and sending

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

Are TCP segments enveloped?

A

Yes, evnveloped in IP packets

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

What use TCP?

A

HTTP
SMTP
IMAP
SSH

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

Why can it be detrimental to send too many TCP segments at once?

A

May overload recieved or intermediate path with lower bandwidth

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

Why should we transmit TCP segments?

A
  • Sending too large segments requires IP to fragment

- Large segments also increase errors

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

What are the two approaches to determine TCP segment size?

A
  1. Use reasonable MTU

2. Use Path MTU Discovery (PMTUD)

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

What is a ‘reasonable’ MTU?

A

This is accepting that sometimes IP needs to fragment.

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

What is Path MTU Discovery?

A
  • Sends IP packets to destinations, asking routers to NEVER fragment
  • If router HAS to fragmentm, return ERROR
  • Increase packet length until error occurs, use last known error-free MTU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How to manage TCP congestion?

A
  1. Start slow: Wait for ACK after each segment
  2. Increase speed with each ACK: sending more segments each time
  3. Fall back to slower speed when no ACK arrived (packet lost)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What does the data link layer do to frames that have errors?

A

Discards frames with errors

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

Why is TCP reliable?

A

Because of TCP ARQ (Automatic Repeat ReQuest)

  • Echange ACKs letting sender know that packets where recieved correctly
  • Sender re-transmits if no ACK recieved within certain time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What numbers does a TCP packet include?

A
  1. Sequence Number - How many bytes we’ve transmitted
  2. Acknowledgement number - How many bytes reciever recieved from sender

IF seq != ack then recived incorrectly

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

How does TCP establish a conenction?

A

Three way handshake:
- Client sends SYN packet with random sequence number A

  • Reciever replies with SYN, ACK, random seq number B and acknowledgement number A+1
  • Client sends ACK with seq number A+1 and ackowledgement number B+1
  • Connection established
17
Q

What are NAKs? Are there any with TCP ARQ?

A

negative acknowledgment, No

18
Q

What is UDP?

A

User datagram protocol

19
Q

Features of UDP?

A

Connectionless:

  • each packet send individually
  • no virtual circuit (unlike TCP)
  • no ack (less relaible)

Small header

  • 8 bytes (TCP is 20 bytes(
  • Less overhead
  • Faster
20
Q

Why use UDP?

A

For applications that either send very small messages (DNS, DHCP etc.)
OR
Where loss of segments is acceptable e.g. video streaming

21
Q

What is quality of service?

A

This refers to the sound quality and availability of network and emergency contacts of VoIP (voice over ip)

Good quality has low latency (lag) and low jitter (rubberbanding/dropping voice)

22
Q

How to achieve quality of service?

A

Two strats:
- Integrated services: Applications request a channel with certain guarantess. Implemented by resource reservation protocol (RSVP) ON TOP OF UDP

  • Differentiated services: Each individual packet requests a certain service class, which is given corresponding priority. Implemented using special feld in IP packet header.