Computer → NIC → MAC → Data Link
START HEREClick the components to see what the device actually uses when it communicates.
A networked computer uses a network interface to send and receive traffic. The NIC is the boundary between the host and the network.
MAC Address + Ethernet Frame
LAYER 2AA:BB:CC:44:55:66L2AA:BB:CC:11:22:33L2IPv4L2IP packet → TCP segment → application dataDATAFrame check sequenceL2MAC is used for local Layer-2 delivery. IP is used for Layer-3 logical addressing and routing. A switch primarily makes forwarding decisions from MAC information.
Binary Number System — Powers of Two
CALCULATE ITNetworking values are built from bits. Toggle the bits below and watch the decimal value and calculation change.
Selected weights: none
128 + 64 = 192
128 + 64 = 192
IPv4 = 32 Bits = 4 Octets
BUILD THE ADDRESSEach octet is 8 bits. That gives 2⁸ = 256 values, numbered 0–255.
11111111.11111111.11111111.00000000
ARP — IP → MAC
WATCH IT HAPPENThe sender knows the destination IP, but local Ethernet delivery needs the destination MAC.
PC-01
PC-02
192.168.1.20 → not learned yet
Encapsulation + Complete Packet Journey
TRACE EVERYTHINGGET /index.htmlAPPLICATIONTCP 51542 → 443L4192.168.1.10 → 192.168.1.100L3AA:BB:CC:11:22:33 → AA:BB:CC:44:55:66L2Signals carried by the physical mediumL1Break / Fix — Find the Layer
NOC + SOC THINKINGIntroduce a fault, observe the symptom, identify the layer, then restore the network.
🗺️ Class 2 Learning Path
FOLLOW IN ORDER🎯 Subnetting Practice — Find the Answers
/25 • /26 • /27 • /28 • /30Number Systems — The Foundation of IP Addressing
DECIMAL • BINARY • OCTAL • HEX🧠 Binary Practice Lab
LEARN → CALCULATE → VERIFYIPv4 Address Structure — 32 Bits
4 OCTETS × 8 BITSIPv4 Address Classes — Historical Classification
A • B • C • D • ELarge networks
/8 historical default
Medium networks
/16 historical default
Small networks
/24 historical default
Multicast
Experimental / reserved
Subnet Calculator — Identify Network, Broadcast & Hosts
CALCULATE IT VISUALLY🌍 IPv6 Visual Lab — 128 Bits
HEX • 8 GROUPS • 128 BITS2001:0db8:0001:0000:0000:0000:0000:0010 can be compressed to 2001:db8:1::10. IPv6 has no broadcast address; multicast and anycast are used for corresponding delivery patterns.🧪 Networking Mastery Quiz
PRACTICE • FEEDBACK • XPQuestion
Layer Model
Click any layer below to see its job, PDU name, and example protocols. Layers also auto-highlight as a request travels through the topology above.
Packet Timeline
Encapsulation / Decapsulation — Wireshark Simulator
TSHARK LIVE CAPTUREWatch HTTP data get wrapped in headers layer by layer as it leaves the Client (encapsulation), then unwrapped hop by hop as the Server reads it (decapsulation) — while a Wireshark-style packet list and a live tshark capture log record the exact same frame, in real time.
Client → Switch → Router → Server
LIVE TOPOLOGYClick any device to inspect it. Press Send Request to watch an HTTP request travel hop by hop, with the OSI layer, protocol, and device updating live below.
Device Inspector
Packet Inspector
HTTP GET /index.htmlClick the 📦 on the canvas — or send a request — to see this same packet fully built. The layer matching the current step is highlighted.
🧭 Deep Dive — Switching, Routing, ARP & IP
HOW IT ACTUALLY WORKS, STEP BY STEPHow a Switch Actually Forwards Frames
LEARN • FLOOD • FORWARD • FILTER • AGE• Collision domain: every switch port is its own collision domain — this is why switches (unlike old hubs) don't suffer collisions.
• Broadcast domain: a switch does not break up a broadcast domain — a broadcast (destination FF:FF:FF:FF:FF:FF) still goes out every port. Only a router (or a VLAN boundary) stops a broadcast from spreading.
• VLANs: a VLAN is a way to split one physical switch into multiple logical broadcast domains. Devices in different VLANs cannot reach each other without a router or Layer‑3 switch doing the forwarding — this is exactly why "switching" (Layer 2) and "routing" (Layer 3) are different jobs.
• Loops & STP: if two switches are cabled together twice for redundancy, flooding can loop forever. Spanning Tree Protocol (STP) blocks the redundant path logically so the topology stays loop-free, while still keeping the backup link ready if the primary fails.
ARP Working — Stage by Stage
WHY IT EXISTS AND EXACTLY WHAT HAPPENS• ARP request is always a Layer‑2 broadcast (FF:FF:FF:FF:FF:FF) — every NIC on the segment processes it, but only the host whose IP matches replies.
• ARP reply is a unicast sent directly back to the requester's MAC.
• The result is stored in the ARP cache (viewable with
arp -a) so the next packet to that IP skips steps 2–4 entirely.• Gratuitous ARP: a host can announce "this IP is mine" without being asked — used after an IP change or failover to update everyone's cache proactively.
• ARP spoofing (attack): because ARP has no built‑in authentication, an attacker can send a false reply claiming to own another host's IP, poisoning caches to intercept traffic — this is exactly what the Security Arena's ARP‑spoof lab investigates above.
• ARP only operates within one Layer‑2 segment/subnet — it never crosses a router. To reach a remote network, a host ARPs for its default gateway's MAC, not the final destination's.
How a Host Decides: Local Delivery or Send to Gateway?
THE ACTUAL DECISION EVERY PACKET GOES THROUGH1. Source MAC/IP and destination MAC/IP are stamped on the packet/frame (destination MAC is the target host if local, or the gateway if remote).
2. Each router that forwards the packet decrements TTL (Time To Live) by 1. If TTL hits 0, the packet is dropped and an ICMP "Time Exceeded" is sent back — this is exactly how
traceroute maps a path.3. At every hop, the router rewrites the Layer‑2 header (new source/destination MAC for the next link) but leaves the source/destination IP untouched end‑to‑end — this is the key difference between what a switch touches (MAC, per‑hop) and what stays constant across the whole journey (IP).
4. If a link's MTU is smaller than the packet, IPv4 routers may fragment it into smaller pieces (or drop it and send "Fragmentation Needed" if the Don't Fragment bit is set) — the destination reassembles the fragments before handing data up to the transport layer.
Static Routing vs Dynamic Routing Protocols
RIP • OSPF • EIGRP • BGP10.10.0.0/16 → Gi0/1
10.10.10.0/24 → Gi0/2
0.0.0.0/0 → Gi0/3 (default)
IP Addressing Practicals — VLSM (Variable Length Subnet Masking)
SIZE THE SUBNET TO THE NEED/30 = 2 hosts • /29 = 6 • /28 = 14 • /27 = 30 • /26 = 62 • /25 = 126 • /24 = 254
Formula: usable hosts = 2^(host bits) − 2. To find the smallest prefix that fits N hosts, find the smallest host-bit count h where 2ʰ − 2 ≥ N.
🧰 Subnetting Mastery Toolkit
BITWISE AND • EQUAL-SPLIT • WILDCARD • SELF-CHECK DRILLSBitwise AND Visualizer
IP ∧ MASK = NETWORKEqual-Split Subnet Planner + IP Locator
SPLIT • LIST EVERY BLOCK • FIND WHERE AN IP LANDSWildcard Mask Calculator + Full CIDR Reference
USED IN ACLS & OSPF NETWORK STATEMENTSnetwork statements instead of subnet masks.Self-Check Subnetting Drills
RANDOM PROBLEM • YOUR ANSWER • INSTANT FEEDBACKLab 01 — Follow the Packet
BEGINNERScenario: the Client requests a page from the Server. Follow the packet through Client → Switch → Router → Server, watching which device, protocol, and OSI layer is involved at every stage — then answer the challenge below.
Challenge: which OSI layer is primarily responsible for getting this frame to the correct device on the local network segment?
Twelve Protocol & Perimeter Labs
DATA-DRIVENEach tab loads a self-contained scenario — its own topology, its own protocol messages, its own challenge — using the same simulation engine as Lab 01.
Security Arena — Five Investigation Labs
SIMULATED EVENTS ONLYEvery event, IP address, and packet in this section is synthetic — generated for this lab only. No real scanning, spoofing, or attack traffic is ever produced. For each scenario: check the normal baseline, reveal the anomaly, then answer what changed and why it matters.
Mini SOC — Monitoring & Alerts
SIMULATEDEvery event and alert below is synthetic, generated from the labs above — nothing here reflects real traffic. Click Investigate to jump straight into the matching lab.
| Time | Event | Source | Detail | Status |
|---|---|---|---|---|
| 14:02:11 | Firewall | 10.0.0.10 | TCP/443 → ALLOW (rule #1) | Allowed |
| 14:02:15 | Firewall | 198.51.100.9 | TCP/23 → DENY (rule #3) | Blocked |
| 14:02:20 | NAT | 10.0.0.10:51000 | Translated → 203.0.113.10:40001 | Translated |
| 14:02:24 | DNS | 10.0.0.10 | Query: www.example.local → 192.168.1.100 | Resolved |
| 14:02:44 | Firewall | 203.0.113.5 | TCP/445 → DENY (implicit) | Blocked |
What's Next
When a Network Component Fails
NOC TROUBLESHOOTINGHost has link, a valid IP configuration, local Layer-2 resolution, and a reachable gateway. NOC troubleshooting moves from the lowest observable layer upward.
How Attackers Interfere — Layer by Layer
SOC DETECTIONExample: physical link disruption or unauthorized access to network equipment. Impact can appear as link loss, intermittent connectivity, or device availability problems.
NOC → SOC Investigation Workflow
CONNECT THE CONCEPTSNOC focuses on availability, performance, and connectivity. SOC adds the security question: could the observed network behavior indicate malicious or unauthorized activity?
Watch a Packet Move: MAC → Switch → IP → Router
NOC / SOC VISUALMAC AA:AA:AA:10
MAC forwarding
192.168.1.1
MAC BB:BB:BB:50
The host knows the destination is outside its local subnet, so the Ethernet frame is addressed to the default gateway's MAC address. The IP packet still carries the final destination IP 10.10.20.50. This is the key distinction: MAC identifies the local Layer-2 next hop; IP identifies the Layer-3 destination.
IP Address: What Does It Actually Do?
L3192.168.1.0Broadcast:
192.168.1.255Usable hosts:
192.168.1.1 – 192.168.1.254
Routers use destination IP information to decide which network or next hop should receive the packet.
Switches forward Ethernet frames using MAC addresses. MAC is used for the local link, not for end-to-end routing across the Internet.
A switch learns source MAC addresses and associates them with ports. It then forwards frames based on the destination MAC.
A router separates IP networks and makes Layer-3 forwarding decisions using routes, interfaces, and next-hop information.
What Changes at the Switch and Router?
CRITICAL CONCEPTDestination MAC is examined. The switch looks in its MAC address table and selects an output port. The IP destination is not the switch's primary forwarding decision in a normal Layer-2 switching path.
Destination IP is examined. The router performs a routing lookup, decrements the IPv4 TTL, and sends the packet toward the selected next hop/interface.
When a packet crosses a router, the Layer-2 frame is removed and a new frame is created for the next link. Therefore, the MAC addresses seen on each local segment can change.
The source and destination IP addresses identify the Layer-3 endpoints. NAT can modify addresses, but that is a separate function and should not be confused with ordinary routing.
Binary Number System — Learn It Visually
0 / 1 • POWERS OF 2= 8 + 2 = 10
1, 2, 4, 8, 16, 32, 64, 128. An 8-bit binary number can therefore represent
256 values: 0 through 255. That is why each IPv4 octet ranges from 0–255.
Decimal ↔ Binary Converter
IPv4 OCTET11000000 binaryCalculation:
128 + 64 = 192
| Bit | 2⁷ | 2⁶ | 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
|---|---|---|---|---|---|---|---|---|
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
192 = 128 + 64, so its binary representation is
11000000. The first two bits are ON and the remaining six are OFF.
Now Connect Binary to an IPv4 Address
WHY 192.168.1.10?8 + 8 + 8 + 8 = 32 bits. Each octet is written in decimal for humans,
but the underlying value is binary. This is the bridge from the binary number system to
subnet masks, network addresses, broadcast addresses, and routing.
What Actually Happens When You Access the Internet?
LIVE WAN VISUALIZATIONMAC AA:10
MAC → PORT
NAT / ROUTING
TCP/443
Your device does not send an Ethernet frame directly to the remote Internet server's MAC address. It sends the local frame to its default gateway. The switch handles local MAC forwarding; the gateway/router handles Layer-3 forwarding toward the destination network. Across the WAN, routers repeatedly make Layer-3 forwarding decisions until the packet reaches the destination network.
What Is Actually Happening Inside the Internet?
MENTAL MODELInside the local LAN, the switch is concerned primarily with Ethernet frames and MAC addresses. The router becomes important when traffic must leave the local IP network.
MAC addresses matter for Ethernet delivery. ARP/neighbor discovery helps a host determine the Layer-2 next hop. The switch forwards the frame locally.
IP addresses and routing information determine where the packet should go next. Each routed hop has its own local Layer-2 delivery mechanism.
When the Internet Path Breaks — NOC / SOC View
TROUBLESHOOTINGThe simulation will show what a user experiences and where a NOC/SOC analyst should start looking.