Week 3 Transport Layer Flashcards

1
Q

What is multiplexing?

A

Multiplexing is converting multiple signals of traffic into a single signal

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

What is demultiplexing?

A

Demultiplexing is taking the 1 multiplexed signal and converting it back to the separate, original signals back to the specific service using its port

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

What does the transport layer use to perform multiplexing and demultiplexing?

A

The transport layer uses ports to perform multiplexing

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

Describe what ports are?

A

Ports are a 16-bit number that direct traffic to specific services on a networked computer

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

What’s a socket address/socket number?

A

A socket address/socket number is the port number added to the end of an IP address through the use of a colon :

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

What is FTP?

A

File Transfer Protocol

an older method of transferring files between computers

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

What port does FTP listen on?

A

Port 21

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

What is a TCP segment made of?

A

TCP header and data payload

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

What does an Ethernet frame encapsulate?

A

Ethernet frame encapsulates IP datagram

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

What does an IP datagram encapsulate?

A

IP datagram encapsulates TCP segment

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

Name the 13 sections of a TCP segment

A
  1. source port 16
  2. destination port 16
  3. sequence number 32
  4. acknowledgment number 32
  5. header length/data offset field 4
  6. empty 6
  7. control flags 6
  8. TCP window 16
  9. checksum 16
  10. urgent 16
  11. options 0-16
  12. padding
  13. data payload (varies)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why is a source port important?

A

Keeps communication lines organized and so the traffic knows where to come back to when it fetches data requested by the client

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

What does buffer mean?

A

A buffer is when data is held somewhere before being sent somewhere else

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

What are the 6 TCP control flags?

A
  1. URG urgent
  2. PSH push
  3. ACK acknowledge
  4. SYN synchronize
  5. FIN finish
  6. RST reset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Describe the 3-way handshake (control flags)

A

A sends SYN to B
B sends SYN/ACK to A
A sends ACK to B

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

Describe the 4-way handshake

A

B sends FIN to A
A sends ACK to B
A sends FIN to B
B sends ACK to A

17
Q

Describe what is a handshake

A

a handshake is a way for 2 devices to make sure they’re using the same protocol to understand each other

18
Q

What does it mean when a connection is a full duplex?

A

When a TCP connection has been established through the 3-way handshake

19
Q

What are the 7 socket states?

A
  1. LISTEN
  2. SYN_SENT
  3. SYN_RECEIVED
  4. ESTABLISHED
  5. FIN_WAIT
  6. CLOSE_WAIT
  7. CLOSED
20
Q

What is a socket?

A

creates a new endpoint (back and forth) in a potential TCP connection

(an active port used by a service)

21
Q

What is instantiation?

A

Instantiation means to create a new instance of something

22
Q

What does a socket require?

A

a program

23
Q

A connection can only be established to a program if it has opened ____ on its ____?

A

if it has opened a socket on its port

24
Q

What is a connection-oriented protocol?

A

a connection-oriented protocol uses the connection established to make sure that all the data has been properly delivered

25
Q

What code does the TCP segment contain?

A

the ports used to establish a network connection

26
Q

How does a TCP segment ensure data integrity?

A
  1. sends what port is used in a connection
  2. performs a checksum
  3. sends ack between service and client to show data was received
27
Q

What’s the difference between system ports, user ports, and ephemeral ports?

A
  1. System 1-1023 common applications, modern OS don’t use this for outbound traffic
  2. User 1024-49151 vendor registered for specific server apps
  3. Ephemeral 49152 - 65535 temp ports for private transfers for clients
28
Q

What are firewalls?

A

run on individual hosts to block certain traffic/ports