Networking pt 3 Flashcards

1
Q

ARP

A
  • Address Resolution Protocol
  • how host learns MAC address of other network nodes
  • helps build correct IP/MAC binding
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How does ARP work?

A

If host A wants to send traffic to host B and only knows its IP address, it builds an ARP request with B’s IP and broadcast MAC address. Switches forward to all hosts, and B responds with ARP reply and says “that’s my IP! here is my MAC address!”

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

How to check ARP cache?

A

Windows - arp -a
Mac - arp
Linux - ip neighbour

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

Hubs

A
  • used before switches
  • same purpose, diff functionality
  • simple repeaters that forward packets
  • do NOT perform header check
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

TCP

A
  • Transmission Control Protocol
  • connection-oriented
  • guarantee delivery
  • ex: email, FTP, web browser
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

UDP

A
  • User Datagram Protocol
  • connectionless
  • does not guarantee packet delivery
  • faster than TCP
  • media/streaming/VoIP
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Ports

A

used to identify a single network process on a machine

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

How do you correctly address a process on a network?

A

:

127.0.0.0:8080

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

Daemon

A

program that runs a service

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

Where are the source and destination port located?

A

Transport Layer Protocol/TCP or UDP header

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

How to check listening ports and TCP connections?

A
  • Linux: netstat -tunp

- Windows: netstat -ano

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

What are the header fields involved in a TCP 3 way handshake?

A
  1. sequence number
  2. acknowledgment number
  3. SYN and ACK flags
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What are the steps in the 3way handshake for?

A

synchronize the sequence and acknowledgement numbers between the server and clinet

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

What is the first step of the TCP handshake?

A

client sends TCP packet to server w/ SYN flag enabled and random sequence number

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

What is the 2nd step of the TCP handshake?

A

Server replies with packet: SYN and ACK flag set, random sequence number

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

What is the 3rd/final step of TCP handshake?

A

Client sends ACK packet