AP Networking • Unit 4 • Protocol Models

AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models

Learn protocols as cooperating dependencies—from Ethernet and ARP through IP, ICMP, TCP/UDP, DNS, DHCP, HTTPS/TLS, and SSH—so each successful checkpoint tells you exactly what to test next.

Independent AP Networking resource • Updated 2026-09-11 • Includes 24 free digital flashcards
Layered-troubleshooting rule: one successful protocol proves only its own function—preserve that checkpoint and move to the next unresolved dependency.
Practice with Flashcards
Topic 4.2 strategy

Use protocol models to find the next unresolved dependency

The OSI and TCP/IP models are most valuable when they help explain why one part of a network can work while another part fails. A successful physical link does not prove IP configuration. A successful ping does not prove TCP/443. A successful DNS lookup does not prove TLS or the application. The models give you a disciplined way to move through those dependencies instead of treating “the network” as one all-or-nothing system.

Layered reasoning chain: Physical/Link → Local Neighbor Resolution → IP/Route → Transport → Name Resolution or Service Discovery → Security/TLS → Application → Return Path → Verification.
OSI and TCP/IP

The models describe functions, not separate physical networks

The OSI model uses seven conceptual layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. TCP/IP groups functions more broadly, commonly as Link/Network Access, Internet, Transport, and Application. Real protocols do not always fit perfectly into one classroom box, but the models are still useful because they separate signaling, local frame delivery, internetwork routing, transport, and application behavior.

PhysicalData LinkNetworkTransportApplication

The practical question is not “Which model is more correct?” It is “Which function has been proven, and which function is still unresolved?”

Encapsulation

Follow one application request through frame, packet, and transport state

Application data is carried by a transport protocol such as TCP or UDP. That transport data is carried inside an IP packet. On an Ethernet segment, the packet is carried inside a frame addressed to a local next hop. Each layer contributes information needed for its own job.

Application data ↓ TCP segment or UDP datagram ↓ IPv4/IPv6 packet ↓ Ethernet frame for this local hop ↓ Bits/signaling on the medium

At a router, the incoming Layer 2 frame is removed, the IP packet is examined for routing, and a new Layer 2 frame is built for the next segment. This is why MAC addresses change hop by hop while IP addresses generally remain associated with the end hosts unless translation occurs.

Physical vs Data Link

“Link up” is a lower checkpoint, not proof the client is in the correct network

The Physical layer concerns media and signaling. Data Link functions include Ethernet framing, MAC addressing, and local segment behavior. A cable can be electrically healthy while a switch port places the endpoint in the wrong VLAN.

Physical works

Carrier/link is present.

Layer 2 fails

Wrong VLAN, trunk mismatch, MAC-learning problem, or loop can still break delivery.

Layer 3 fails

Even with good Layer 2, wrong IP settings or missing routes can stop communication.

IP local-or-remote decision

The subnet mask influences the path before any router sees the packet

A host compares the destination to its own prefix. If the destination is local, the host sends directly on the local segment. If it is remote, the host sends to the default gateway. A wrong subnet mask can therefore break communication by making the host choose the wrong Layer 2 next hop.

Client: 10.10.20.25/24 Destination: 10.10.20.80 Decision: LOCAL ARP target: destination host Client: 10.10.20.25/24 Destination: 10.10.40.80 Decision: REMOTE ARP target: default gateway
ARP

ARP resolves a local IPv4 next hop, not every remote endpoint

If the destination is on the same subnet, the client can ARP for the destination host. If the destination is remote, the client normally ARPs for the default gateway. The remote server's MAC address is not carried across routers to the client LAN.

High-information clue: if the client cannot resolve the gateway's MAC address, investigate VLAN placement, switching, duplicate addressing, gateway state, and local Layer 2 conditions before blaming remote DNS or applications.
ICMP

ICMP provides diagnostic evidence, not a verdict on the entire stack

Ping commonly uses ICMP echo request/reply. Traceroute-style tools rely on TTL/hop-limit expiration and diagnostic responses. ICMP can also report some unreachable conditions. But policy may block ICMP while allowing application traffic, or allow ICMP while denying a specific application port.

ObservationWhat it supportsStill unproven
Gateway ping worksLocal ICMP/IP pathDNS, remote route, app service
Server ping worksSome end-to-end ICMP reachabilityTCP/443, SSH, DNS
Traceroute hop silentThat device did not answer the probeThat it failed to forward transit traffic

Swipe horizontally to see the ICMP evidence table.

TCP

Reliable transport adds connection state, sequence, acknowledgment, and retransmission

TCP establishes a connection-oriented byte stream. Applications such as HTTPS and SSH rely on the destination port being reachable and a service actually listening. A client can reach the server by IP and still fail to establish TCP because a firewall blocks the port, no listener exists, the service is bound to the wrong interface, or return traffic fails.

Ping 10.40.50.20: success TCP/443: timeout Interpretation: IP/ICMP checkpoint works. HTTPS transport/service remains unresolved.
TCP refusal vs timeout

Different transport failures point to different boundaries

An immediate refusal and a timeout should not be treated as the same symptom. A refusal shows that the destination stack or an intermediary actively rejected the connection. A timeout means no usable response arrived before the client gave up.

ResultStronger branch
Connection refusedNo listener, active rejection, local service/firewall
TimeoutFiltering, path loss, missing return path, silent service
Connect succeeds, app failsTLS/application/authentication/backend

Swipe horizontally to see the transport-result table.

UDP

UDP removes TCP connection machinery, so the application owns more of the behavior

UDP sends independent datagrams without TCP's connection setup, ordered byte stream, or built-in retransmission. That does not make UDP unreliable in every practical sense; applications can add their own timing, recovery, and sequencing if needed.

DNS commonly uses UDP for many queries and TCP in situations such as larger responses or other specific behaviors. Firewall policy must therefore consider the actual protocol and application requirement rather than memorizing one port number in isolation.

DNS

Name resolution is a separate dependency from routed IP reachability

A client can reach a remote numeric IP while hostname-based access fails because the resolver is wrong, unreachable, filtered, or returning an incorrect record. Use a DNS-specific query rather than relying on a browser error that mixes DNS, transport, TLS, and application behavior.

Remote IP ping: success nslookup portal.example: timeout Strong branch: DNS resolver configuration / reachability / service
DNS outcome taxonomy

Timeout, NXDOMAIN, and wrong address are different evidence

DNS resultWhat it meansNext branch
TimeoutNo usable resolver responseResolver path/service/filtering
NXDOMAINName reported nonexistentSpelling, suffix, zone/view, intended namespace
Wrong IPResolver answered with unexpected dataCache, zone record, split-DNS view, forwarding

Swipe horizontally to see the DNS outcome table.

DHCP

Dynamic addressing is a service exchange with several dependencies

DHCP can provide address, prefix/mask, default gateway, DNS servers, lease information, and other options. A new client depends on the DHCP exchange completing and the correct scope or relay behavior being available. Existing clients may continue working with valid leases even if new allocations fail.

★ Protocol Review • Protocols and OSI/TCP-IP Models

A five-minute warm-up for AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models

Tomorrow’s opening question can pick up where this page leaves off: ask students to read the packet evidence, spot the important clue and explain what happened. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource
Failure signature: existing clients work, new clients cannot obtain addresses → DHCP allocation, scope exhaustion, relay, or service state becomes stronger than a total LAN outage.
Wrong DHCP result

A successful lease can still be wrong for the intended network

If a Guest client receives a Staff-subnet address, DHCP did not simply “fail.” The client received configuration, but from the wrong logical path. Investigate SSID-to-VLAN mapping, access/trunk VLAN behavior, relay configuration, and scope association.

SSID: Guest Expected: 10.10.50.0/24 Received: 10.10.10.85/24 Strong branch: logical placement / DHCP scope mapping
HTTP, HTTPS, and TLS

One browser request can cross multiple protocol boundaries

A hostname-based HTTPS session may depend on DNS, IP routing, TCP connection establishment, TLS negotiation, certificate validation, and the web application. Each checkpoint produces different evidence.

1. DNS resolves portal.example → 10.40.50.20 2. IP route reaches 10.40.50.20 3. TCP/443 connects 4. TLS handshake begins 5. Certificate validation 6. HTTP request/response 7. Application/backend processing

If TCP/443 connects but the browser reports a certificate problem, restarting at the cable or DHCP layer is weak unless new evidence contradicts those earlier checkpoints.

Protocol & Service Lab • 120 Missions

Let students try AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features
SSH and secure administration

Protocol choice also defines the security properties of management traffic

SSH protects remote shell and related management functions with encryption. Telnet does not provide equivalent protection and should not be treated as a secure substitute. A well-designed firewall may permit SSH only from a trusted management subnet while denying it from ordinary clients.

When SSH fails but ping works, inspect TCP/22 listener state, host/network firewall policy, source subnet, authentication logs, and return path rather than assuming the network is universally down.

Encapsulation walk

Trace one HTTPS request across a routed Ethernet network

Client resolves server name ↓ Client opens TCP connection to server:443 ↓ IP packet targets remote server ↓ Ethernet frame targets default-gateway MAC ↓ Switch forwards frame locally ↓ Router removes frame and performs route lookup ↓ Router creates new Layer 2 frame for next hop ↓ Final router forwards to server MAC ↓ Server TCP/TLS/application process request

This walk explains why a packet capture on different Ethernet segments can show different MAC addresses while preserving the same destination IP. It also explains why ARP for the remote server is not expected on the client LAN.

Protocol Exam Practice • Ap Networking 4 2 Protocols OSI TCP IP Models

Check whether AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
Layered failure case 1

DNS succeeds, ping succeeds, HTTPS fails

Evidence: server.example resolves to the expected IP. Ping to that IP succeeds. TCP/443 does not.

Inference: name resolution and some IP reachability are already established. Move to TCP/443 firewall policy, listener/bind state, host firewall, return path, TLS, or application behavior.

Layered failure case 2

Physical link is up, but the client has APIPA

The Ethernet port reports link, but the client has 169.254.x.x and no usable gateway.

Inference: the Physical layer is not enough. Expected Layer 3 configuration did not complete. Investigate DHCP reachability, VLAN placement, scope availability, relay behavior, or client configuration.

Premium Evidence-Grading Copilot

Spend less time marking explanations about AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview
Layered failure case 3

ARP resolves the gateway, but gateway ping fails

Evidence: the client has a MAC entry for the gateway, proving local neighbor resolution occurred. ICMP to the gateway still fails.

Inference: Layer 2 neighbor discovery worked, but the IP/ICMP exchange remains unresolved. Investigate IP configuration, gateway interface state, ICMP policy, duplicate addresses, or filtering.

Layered failure case 4

TCP connects, but TLS validation fails

Evidence: the client resolves the service, reaches the IP, and completes TCP connection establishment. TLS reports a certificate-name or trust error.

Inference: basic transport is working. Investigate certificate identity, trust chain, hostname, client time, or TLS policy rather than changing the route table.

Protocol evidence matrix

Use the artifact closest to the function being questioned

FunctionUseful artifactTypical failure clue
Local Layer 2ARP/neighbor table, switch MAC/VLAN stateGateway MAC unresolved
IP routingRoute table, traceroute, gateway testWrong next hop or unreachable prefix
DNSDirect resolver queryTimeout/NXDOMAIN/wrong answer
TCP/UDP serviceSocket state, firewall log, connection testTimeout/refusal/no listener
ApplicationApp log, HTTP response, backend timingTransport works but app fails

Swipe horizontally to see the protocol-evidence matrix.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach AP Networking Topic 4.2: Protocols and OSI/TCP-IP Models as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples
Change-one-function drill

Change one layer at a time and predict which evidence should change

Start with a working HTTPS flow. Change only the subnet mask: the local-vs.-remote decision may change before DNS or TCP ever matters. Restore the mask and block TCP/443: DNS can still succeed and ping may still work while HTTPS fails. Restore TCP and break the certificate: the transport connection can work while the application reports a trust problem.

Study method: when one successful checkpoint remains unchanged after a scenario change, keep it as known-good instead of restarting the entire stack.
Common exam traps

Do not let one successful protocol over-prove unrelated functions

  • Link up does not prove the correct VLAN or IP configuration.
  • ARP success does not prove ICMP or routing succeeds.
  • Ping success does not prove TCP/443, DNS, SSH, or an application.
  • DNS success does not prove the returned service is reachable.
  • TCP connection success does not prove TLS or the application is healthy.
  • A default route does not override a more-specific route.
  • One failed protocol does not prove every layer below it is broken.
Verification

Retest the failed function and preserve the checkpoints that were already working

After a correction, repeat the original user workflow first. Then recheck a known-good lower-layer checkpoint and a relevant negative or alternate test. If you fixed TCP/443 policy, confirm HTTPS now works while unrelated prohibited ports remain blocked. If you fixed DHCP, confirm the client receives the intended subnet, gateway, and DNS—not merely “an IP address.”

Positive: original required function succeeds.

Control: previously working lower-layer checkpoint still works.

Negative: prohibited or invalid path remains blocked.

Evidence: save the artifact that directly proves the corrected dependency.

Free digital flashcards

24 Protocols and OSI/TCP-IP Models digital flashcards

Practice OSI/TCP-IP functions, encapsulation, Ethernet, ARP, IP routing, ICMP, TCP, UDP, DNS, DHCP, HTTPS/TLS, SSH, layered evidence, and troubleshooting boundaries.

All protocol cards
Click or press Enter/Space to reveal.
State which function is proven and which dependency remains unresolved.
0 seen•24 cards
Continue Unit 4

Turn protocol-layer hypotheses into observable command evidence