TCP Flashcards

0
Q

TCP page termination handshake

A

FIN, ACK
ACK
FIN, ACK
ACK

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

Three-way handshake

A

SYN
SYN, ACK
ACK

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

DCHP Port

A

Client uses UDP port 67 to send

Server uses UDP port 68 to send

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

NTP? Port?

A

Network time protocol

UDP port 123

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

SNTP? Port?

A

Simple network time protocol

UDP port 123

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

TFTP? Port?

A

Trivial file transfer protocol

UDP port 69

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

ICMP?

A

Internet control message protocol

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

IGMP? Use?

A

Internet group management protocol
Allows routers to communicate over multicast with group members
Assigned to a 244.0.0.0/4 address

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

Total range of all port numbers?

A

0-65535

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

Well-known port number range?

A

0-1023

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

Range of ephemeral port numbers? Use?

A

1024-5000

Generated randomly by web clients

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

Range of dynamic/private port numbers?

A

49152-65535

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

Range of registered port numbers?

A

1024-49151

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

Socket? Socket pair?

A

Socket: TCP session data (IP address and port) stored on a single computer

Socket pair: same info about both computers involved in the connection

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

Windows command to see active TCP sessions/connections

A

netstat -n

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

Open port?

A

A socket that is prepared to respond to any IP packets destined for its port number

16
Q

Windows command to see all open ports

A

netstat -an

17
Q

Netstat switches to show process ID for all TCP connections

A
  • ano
  • a shows all connections
  • n shows raw numbers
  • o shows process IDa
18
Q

Netstat switch to show name of process using TCP connection

A

-b

19
Q

HTTP port

A

TCP 80

20
Q

NNTP port

A

TCP 119

21
Q

HTTPS port

A

TCP 443

22
Q

Telnet port

A

TCP 23

23
Q

What is rLogin? Port?

A

Old UNIX program. Similar to telnet but could configure to log you in automatically.
TCP 513

24
Q

What is RSH? Port?

A

Remote shell. Old UNIX program. Allows you to send single commands to remote server, can be integrated into scripts
TCP 514

25
Q

What is RCP? Port?

A

Remote copy protocol. Old UNIX program. Allowed you to copy files to/from remote server without using FTP or NFS.
TCP 514

26
Q

SSH port

A

TCP 22

27
Q

SMTP port

A

TCP 25

28
Q

POP3 port

A

TCP 110

29
Q

IMAP4 port

A

TCP 143

30
Q

FTP port

A

TCP 20, 21 (passive FTP only uses 21)

31
Q

Passive vs. Active FTP

A

Passive: used behind NAT routers. Client sends FTP request on port 21. Server responds with random port, tells client which port it is listening on. Client sends data back to that port. Client initiates all conversations so NAT router knows where to send packets