TCP and DNS Flashcards

1
Q

How many DNS servers are there?

A

3

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

What are the DNS servers?

A

Authoritative
Recursive
Caching

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

What is the Authoritative name server use for?

A

holds the answer to a query

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

What is the Recursive name server used for?

A

performs the search on your behalf to get the answer

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

What is the Caching name server used for?

A

stores the answer to a query to respond quicker

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

is IP reliable?

A

No

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

What is IP classed as?

A

best-effort network

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

how do they provide a more reliable connection?

A

They build higher level protocols on top of IP

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

What is the drawback of building a higher level protocol on top of IP?

A

can increase latency

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

What is transmission control protocol used for?

A

TCP is used to provide
reliable
end-to-end
full duplex
virtual connection

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

What kind of protocol is TCP?

A

connection-oriented protocol

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

Why is TCP end-to-end?

A

because it works between 2 communicating machines like a piece of wire

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

Why is TCP connection-oriented?

A

because you have to explicitly setup the connection before we can use it and tear it down afterwards

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

What are the problems with TCP

A

out-of-order delivery
Packet loss

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

How does TCP solve this?

problems of TCP (packet loss, out of order delivery)

A

by using sequence numbers

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

What are sequence numbers?

A

every byte transmitted is associated to an individual 32-bit number to identify it and they roll over when they reach 2^32 so should be far apart in time that reuse isnt a problem

COUNTER VARIABLE

17
Q

What does TCP header store?

A

sequence number of the first byte in the packet

18
Q

How does sequence number solve out of order delivery?

A

you know the sequence number of every byte in the packet and the first byte is in the packet header so recipients can reorder packets in the right order based on seq number

19
Q

What causes paths used to route the packet to change?

A

network conditions

20
Q

What does TCP do ensure no packet loss?

A

it sends acknowledgments and retransmits lost packets

21
Q

What happens if no acknowledgment is received?

A

if its not received after a certain time period packet is resent and this goes on until it receives one

22
Q

But how does sender know which bytes to send again?

A

TCP header includes ACK field contain SEQ number of the next byte
so sender knows which bytes have been received correctly and can then resend lost data based on this

23
Q

Whats wrong with current approach?

A

slows down transmission
sender waits for ACK before sending next packet
network idle during this time

24
Q

Whats a faster way to send data?

25
Q

What is Windowing?

A

it sends data in packets up to a certain window size than just one packet

26
Q

How does sender know how much to send at a time?

A

TCP allows receiver to tell sender how much space is free

27
Q

What does TCP header contain to help with size?

A

Window field used to adjust the window size dynamically

28
Q

What else can window field be used to adjust?

A

congestion and also stop the sender sending

29
Q

What are the stages in TCP lifestyle?

A

first connection needs to be established
involves 2 sides agreeing SEQ numbers
done by exchange of synchronise packets at the start

30
Q

What is the TCP lifestyle process called?

A

3 way handshake

31
Q

How do you close TCP connection?

A

using FIN and ACKs

32
Q

What is FIN for?

A

to close connection

33
Q

What is ACK for?

A

to acknowledge all data has been received