40%offyearly plans
Black FridayBiggest sale of the year
27days: 08hr: 55min: 10sec
Get 40% off

OSI Model Explained: The 7 Layers with Examples and Attacks

Networking Fundamentals for Security course – Scope In Science

The OSI (Open Systems Interconnection) model splits network communication into seven layers. It is the first thing asked in networking and security interviews.

The 7 layers

#LayerJobExamplesData unit
7ApplicationNetwork services for applicationsHTTP, DNS, SMTP, FTPData
6PresentationFormat, encrypt, compressTLS, JPEG, ASCIIData
5SessionOpen, manage and close sessionsNetBIOS, RPCData
4TransportEnd-to-end delivery, portsTCP, UDPSegment
3NetworkLogical addressing and routingIP, ICMP, routersPacket
2Data linkNode-to-node delivery, MAC addressesEthernet, ARP, switchesFrame
1PhysicalBits on the wire or radioCables, hubs, Wi-Fi radioBits

Memory trick (top to bottom): All People Seem To Need Data Processing.

OSI vs TCP/IP

The TCP/IP model used on the Internet has four layers: Application (OSI 5–7), Transport (4), Internet (3) and Link (1–2).

Attacks at each layer

  • Layer 7: SQL injection, XSS, HTTP floods.
  • Layer 6: SSL stripping, weak TLS configuration.
  • Layer 5: session hijacking.
  • Layer 4: SYN floods, port scanning.
  • Layer 3: IP spoofing, ICMP floods.
  • Layer 2: ARP spoofing, MAC flooding, VLAN hopping.
  • Layer 1: wiretapping, jamming, physical damage.

Learn more

The Networking Fundamentals for Security course covers all of this in depth, with free practice questions.

Frequently asked questions

What are the 7 layers of the OSI model?

Physical, Data link, Network, Transport, Session, Presentation and Application.

At which OSI layer does a router work?

Layer 3, the Network layer, because it forwards packets using IP addresses.

At which layer does ARP spoofing happen?

Layer 2, the Data link layer, inside the local network.

Learn this topic properly

Scope In Science has theory notes and chapter-wise question banks with answers for Physics, Chemistry, Maths, Biology and Cybersecurity, in 18+ languages. Start with the free lessons and practice questions.

Tags:

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

SQL injection explained for beginners: how it works, types (in-band, blind, out-of-band), real impact and the right way to prevent...
A practical cybersecurity roadmap for beginners: fundamentals, networking, Linux, blue team vs red team paths, certifications, labs and building a...