6.1 Flashcards

(15 cards)

1
Q

What’s the difference between Layers 1-3 vs Layer 4?

A

Layers 1-3 are about moving the packet.

Layer 4 is about what to do with the packet

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

What are the well known vs unknown ports for IP?

A

0-1023 are known
.
1024-49151 are server apps
.
Remaining 65535 are private/dynamic use

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

What a port number with source IP form?

A

A Socket

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

TCP Header Fields (10)

A

Source / Destination
Seq. #
Ack #
Data Length
Flags (ACK/SYN/FIN)
Window (# of Packets / Ack)
Checksum (error check)
Urgent Pointer
Options

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

What is TCP 3 Way Handshake?

A

SYN (Client -> Server)
SYN-ACK (Server -> Client)
ACK (Client -> Server)

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

What’s the structure of a UDP datagram?

A

Source Port
Destination Port
Message Length
Checksum

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

What is the netstat command for?

A

Check state of ports on local host

Checks suspicious remote connections

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

Windows:
Netstat -a

A

Display open ports

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

Linux: netstat
-t & -u & -w

A

-t: Show TCP connections
-u: Show UDP connections
-w: Show raw connections

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

Linux: netstat
-x & -a & -1

A

-x: Shows UNIX sockets/local server ports
-a: Show all ports
-1: Shows only ports in listening state

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

netstat
-n & -p

A

-n: Displays in numerical format
-p: Add with protocol type
(TCP, TCPv6, UDP, or UDPv6)

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

netstat
-o & -b & -p

A

-o: Shows ID #
-b: Shows process name
-p: Show ID and process name

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

netstat
-s & -r

A

-s: Reports protocol statistics
-r: Shows routing table

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

netstat
-e & -i

A

-e: Ethernet stats
-i: Ethernet stats

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