Week 03 - Domain Name System & TCP/UDP (L06-L07) Flashcards

1
Q

How does a TCP connection termination works?

A
  • ESTABLISHED:
  • FIN WAIT 1 (A):
  • CLOSE WAIT (B):
  • LAST ACK (B):
  • TIME WAIT (A):
  • CLOSED (B):
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is usage of Sequence Number in Reliable Transmission?

A

To resamble packets in the right order

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

What is a socket?

A

A pair of IP address + port

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

Explain the following record entries: A, AAA, C, MX, PTR, NS, SOA, SRV, TXT, NAPTR

A
  • A: IPv4 records
  • AAA: IPv6 records
  • C: Canonical name (aliases)
  • MX: points to mail server of the domain
  • PTR: IP to domain name, NS: authorative name server of domain
  • SOA: Start Of Authority, 1st record
  • SRV: Service Location Record
  • TXT: Text Records
  • NAPTR: Name Authority Pointer Records
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Explain difference between connection oriented and connectionless.

A

oriented: important that all packets arrive in the right order
connecitonless: best effort

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

What are four common connection issues?

A
  • Delay
  • Drops
  • Packet lost
  • wrong order
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is TCP?

A

Transport Control Protocol: establishes reliable comm. between A&B by error correct (retransmission, reassemble)

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

What is Delegation?

A

Is a concept of delegating DNS requests to other servers to avoid big loads on top level DNS servers

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

How is DNS hirachically organized?

A

Root - Top Level Domain - Domain - Sub-domains

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

How does a three-way handshake work?

A
  • SYN: A sends SYN + his ISN to B
  • SYN-ACK: Be sends ACK + his ISN to A
  • ACK: A sends ACK to B. Connection established
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is DNS?

A

Domain Name System. Service for translating Domain names to IP addresses.

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

What is UDP?

A

Universal Datagram Protocol. Connectless. Works with best effort, doesnt care if packets are drop. Streaming, Voice, Video

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

What is ISN?

A

Initial Sequence Number; used in TCP

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

What is a default gateway?

A

If destination node of a packet is not in the same local network, the sending node sends packet to the default gateway. It’s kind of an exit point to another network. A default gateway can be a router or a firewall

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

Why are ports used?

A

To have multiple session on a single node.

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