Ravindra Bagale · Cyber Securityसर्व coursesया course चे lessonsशोधाEnglish

Cyber Security · मराठी आवृत्ती

TCP/IP model आणि OSI सोबत तुलना

रवींद्र बागले यांच्या course वर आधारित · सहज मराठीत explanation

या page मध्ये

OSI आपल्याला layers च्या भाषेत विचार करायला शिकवतो. Internet च्या प्रत्यक्ष protocols साठी TCP/IP model वापरतो. दोन्हींचं mapping समजलं की troubleshooting आणि security controls निवडणं सोपं होतं.

        OSI Model                    TCP/IP Model
  +---------------------+      +----------------------+
  | 7 Application       |      |                      |
  | 6 Presentation      | ---> |  Application         |  HTTP, DNS, SSH, TLS
  | 5 Session           |      |                      |
  +---------------------+      +----------------------+
  | 4 Transport         | ---> |  Transport           |  TCP, UDP
  +---------------------+      +----------------------+
  | 3 Network           | ---> |  Internet            |  IP, ICMP, ARP
  +---------------------+      +----------------------+
  | 2 Data Link         | ---> |  Network Access      |  Ethernet, Wi-Fi
  | 1 Physical          |      |  (Link)              |
  +---------------------+      +----------------------+

TCP/IP च्या चार-layer model मध्ये OSI चे 5–7 layers Application मध्ये येतात; Layer 4 हा Transport, Layer 3 हा Internet आणि Layers 1–2 हे Network Access/Link मध्ये येतात. ARP चं स्थान वेगवेगळ्या संदर्भांमध्ये वेगळं दाखवलं जातं; तो local link वर IP-to-MAC resolution करतो हे लक्षात ठेवा.

Point OSI model TCP/IP model
Layers 7 4 (or 5)
विकास ISO (reference/theoretical) US DoD / DARPA (practical)
दृष्टिकोन आधी model, नंतर protocols आधी protocols, नंतर model
Session & presentation स्वतंत्र layers Application मध्ये एकत्र
Usage शिकणं आणि troubleshooting ची भाषा प्रत्यक्ष internet protocols
Transport layer Connection-oriented and connectionless TCP (connection) and UDP (connectionless)
AWS services चं layers सोबत mapping:

OSI मध्ये सात layers आणि स्वतंत्र Session/Presentation layers आहेत. TCP/IP मध्ये ते Application मध्ये एकत्र येतात. OSI हा ISO चा reference model; TCP/IP चा विकास DoD/DARPA च्या networking कामातून झाला. OSI शिकवताना model वर भर असतो, तर TCP/IP प्रत्यक्ष protocol suite भोवती समजावतात. दोन्हीत connection-oriented आणि connectionless transport concepts आहेत.

AWS services कुठे बसतात?

Layer AWS example
L7 Application Load Balancer (URL/host नुसार routing), CloudFront, AWS WAF, Route 53 (DNS)
L4 Network Load Balancer; Security Groups (protocol + port + IP तपासतात)
L3 VPC, subnets, route tables, Internet/NAT gateways, Network ACLs
L1–L2 AWS-managed infrastructure (data centres, Nitro hardware); logical ENIs

Security group आणि WAF दोन्ही का?

Security group L3/L4 वर तपासतो. Allowed HTTPS connection च्या आत SQL injection आहे का, ते तो पाहत नाही. WAF L7 request तपासू शकतो; मात्र त्यासाठी योग्य rules आणि configuration हवी. म्हणून security groups, WAF आणि secure application code यांची कामं वेगवेगळी आहेत आणि ती एकमेकांना पूरक आहेत.

Practice

हे दोन्ही models मध्ये कुठे येतात ते लिहा: HTTPS, TLS, TCP, IP, ICMP ping, ARP, Ethernet switch, Wi-Fi, DNS, SSH, Nginx, security group, Network ACL आणि AWS WAF. एका service ची अनेक layers वर भूमिका असेल तर तीही लिहा.