1.1 Ports and Protocols Flashcards

1
Q

What is the ICMP protocol type?

A

answers “is there a computer with this IP?” at the internet layer of the IP stack

ping is an application that runs under ICMP. It will show RTT (round trip time) for the ICMP packet in seconds.

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

WHAT ARE THE INTERNET LAYER PROTOCOLS

A

IPv4
IPv6
ICMP

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

What does the internet layer do?

A

takes data chunks from the transport layer, adds addressing, creates the final IP packet. then it gives it to layer 2 to be encapsulated into a frame.

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

WHAT ARE THE TRANSPORT LAYER PROTOCOLS?

A

TCP
UDP

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

What does the transport layer do?

A

Is the communication connection-oriented or connectionless?

connection oriented matters for:
- arriving in the right order
- secure
- slower

connectionless
- doesn’t care if some bits are missing
- fast

95% of app protocols use TCP

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

Explain TCP

A
  • uses ACK/NACK for the process of knowing if two machines are ready to send and receive data
  • chops data into segments
  • give segments a sequence number
  • verify that all sent segments are received
  • request missing segment if not received

source port listed first, then dest port

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

TCP header fields

A
  • source port (FIRST)
  • destination port
  • sequence number
  • ACK numbers
  • flags
  • checksum
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

WHAT ARE THE APPLICATION LAYER PROTOCOLS?

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

What is the TCP protocol type?

A

Transmission Control Protocol. A connection-oriented protocol.

95% of apps use TCP, which is why we call it the TCP/IP stack and not UDP/IP.

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

What is the UDP protocol type?

A

User Datagram Protocol. A connectionless protocol.

Use when there’s a lot of data that doesn’t need to be perfect or the systems are extremely close to each other and unlikely to have transmission issues.

VoIP calls can afford to drop some frames

It’s FAST

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

2 famous UDP protocols

A

DNS and DHCP

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

how many fields are in an IP packet?

A

14

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

What are the fields in the IP packet?

A

version: IPv4 or IPv6?
header length: e.g. 32 bits
DSCP differentiated services code point: data used by bandwidth sensitive apps like VoIP
TTL Time To Live: TTL prevents an IP packet from infinitely looping if there are issues.
protocol: nearly always TCP or UDP and IDs what’s inside the packet

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