# OSI आणि TCP/IP interview प्रश्नोत्तरं

Source: https://ravindrabagale.com/mr/aws/ch02-the-osi-model-and-tcp-ip-model/interview-questions.html
Language: mr (Marathi with English technical terms)

Layer नाव, data unit आणि एक उदाहरण या क्रमाने उत्तर द्या.

Q1. सात layers आणि L2/L3/L4 PDU?

Physical, Data Link, Network, Transport, Session, Presentation, Application. L2 frame, L3 packet, L4 TCP segment किंवा UDP datagram.

Q2. TCP three-way handshake?

Client SYN → server SYN-ACK → client ACK. मग sequence numbers आणि ACKs वापरून data transfer होतो.

Q3. TCP आणि UDP?

TCP connection-oriented, ordered delivery/retransmission देतो — SSH, MySQL, HTTP/1.1–2. UDP connectionless, स्वतः delivery guarantee देत नाही — DNS, VoIP, काही streaming/gaming. Performance वापरावर अवलंबून असतो.

Q4. ALB आणि NLB कोणत्या layer वर?

ALB L7 — host/path/headers. NLB L4 — TCP/UDP traffic.

Q5. Browser मध्ये URL दिल्यावर?

सामान्य HTTPS/TCP उदाहरणात URL parse → DNS → TCP → TLS → HTTP request → server/app/DB → response → browser rendering.

Q6. Encapsulation?

खाली जाताना संबंधित layer चा header जोडतो; Ethernet मध्ये trailer देखील. Receiver उलट क्रमाने काढतो — decapsulation.

रवींद्र बागले यांची tip

उत्तर देताना HTTP/3 किंवा cached connection सारखी मर्यादा माहीत असेल तर एका वाक्यात स्पष्ट करा; मुख्य क्रम हरवू देऊ नका.
