Internet Protocol Stack Flashcards

(10 cards)

1
Q

five layers

A

Application Layer (e.g., HTTP, FTP)

Transport Layer (e.g., TCP, UDP)

Network Layer (e.g., IP, ICMP)

Link Layer (e.g., Ethernet, Wi-Fi)

Physical Layer (e.g., cables, radio signals)

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

Application Layer

A

Provides end-user services

HTTP (web browsing), FTP (file transfer), SMTP (email)

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

Transport Layer

A

Ensures reliable or fast data delivery between applications

TCP (reliable, connection-oriented), UDP (fast, connectionless)

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

Network Layer

A

Routes packets across multiple networks

IP (delivers packets), ICMP (error reporting)

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

Link Layer

A

Manages direct communication between connected devices

Ethernet (wired networks), Wi-Fi (wireless networks)

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

Physical Layer

A

Transmits raw bits over physical media

Fiber optics (light signals), Ethernet cables (electrical signals)

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

TCP (Transmission Control Protocol)

A

Connection established by three way handshake process between client and server

SYN :
Client sends tcp packet with:
syn flag =1
Random initial sequence number (SEQ = 2000)

SYN-ACK:
Server replies with:
SYN flag = 1
ACK flag = 1
New sequence number (SEQ = 4000)
Ack number = client seq + 1 (2001)

ACK:
Client confirms:
ACK flag= 1
ACK number = Servers Seq + 1 (4k)

Example:
(Browser) hi server I want to connect, my starting sequence number is 2000

(Server) ok. My sequence number is 4000, and I expect your next byte to be 2001.

(Browser) confirmed. Let’s transfer data

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

UDP (User Datagram Protocol)

A

No connection established before sending data

UDP sends data immediately without SYN, SYN-ACK, ACK

If packet is lost, UDP does not retransmit it

Packets may arrive out of order

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

TCP UDP difference

A

TCP:
Connection-oriented
Reliable delivery
Slower speed

UDP:
Connectionless
Unreliable delivery
faster speed

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

protocol

A

a standardized set of rules for network communication, ensuring proper data exchange

defines format, timing, sequencing and error control of data exchange (e.g., HTTP for web browsing)

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