AP Networking • Ports • Protocols • Troubleshooting

AP Networking Ports & Protocols Study Pack

Learn common services through purpose, transport, common ports, security, failure symptoms, firewall policy, and evidence—not isolated number memorization.

Independent AP Networking resource • Updated 2026-09-13 • Includes 24 free digital flashcards
Protocol rule: connect every port number to a service, transport, requirement, and piece of evidence.
Practice with Flashcards
Study method

Do not study ports as orphan numbers

The useful unit of knowledge is not “443 = HTTPS.” It is “HTTPS commonly uses TCP 443, usually protects web application traffic with TLS, and a failed TCP/443 connection after successful DNS points toward path, policy, listener, TLS, or application state.” That fuller connection turns memorization into troubleshooting and firewall reasoning.

Protocol study chain: Service purpose → transport → common port → direction → security property → failure symptom → best artifact → firewall implication.
Core matrix

High-value services and what they actually tell you

ServiceCommon transport/portRoleUseful troubleshooting clue
DNSUDP/TCP 53Name resolutionSuccessful query proves resolver behavior, not application health
DHCPUDP 67/68Dynamic IPv4 configurationAPIPA suggests expected lease was not obtained
HTTPTCP 80Unencrypted web trafficPort success does not prove HTTPS
HTTPSTCP 443TLS-protected web trafficDNS success + 443 failure moves beyond name resolution
SSHTCP 22Secure remote administrationPrefer over plaintext Telnet for admin access
TelnetTCP 23Legacy remote terminalLacks modern transport confidentiality
FTPTCP 21 controlFile transferControl success does not prove data path
SFTPTCP 22File transfer over SSHNot FTP with a different port

Swipe horizontally to see the service matrix.

DNS

DNS can use both UDP and TCP on port 53

Many ordinary DNS lookups use UDP, but TCP is also part of DNS behavior. Students should avoid the oversimplification that DNS is “UDP only.” The right question is whether the required DNS transaction succeeds and whether the answer is the expected one.

nslookup app.example: Name: app.example Address: 10.50.0.20 Interpretation: name resolution succeeded for this query
What remains unproven: TCP/443, TLS, authentication, and the application itself.
DNS failure signatures

Different DNS failures support different branches

Timeout

Resolver may be unreachable, filtered, overloaded, or otherwise not responding.

Wrong record

DNS works, but the returned data may be stale or misconfigured.

Expected answer

Move beyond DNS if the application still fails.

DHCP

DHCP works before the client has ordinary configuration

Classic IPv4 DHCP uses UDP 67 and 68. A new client may not yet have its intended address, so DHCP interacts with broadcast behavior and relay design. A remote DHCP server can still serve a client through a relay.

Client: 169.254.44.9 Gateway: none Peers: 10.20.30.x leases

APIPA tells you the affected client did not obtain expected IPv4 configuration. It does not prove the DHCP server itself is down.

HTTP vs HTTPS

Port 80 and port 443 represent different application expectations

HTTP commonly uses TCP 80. HTTPS commonly uses TCP 443 and adds TLS protection. A firewall rule allowing 80 does not automatically allow 443, and successful HTTP does not prove HTTPS works.

Evidence chain: DNS resolves → IP path works → TCP/443 connects → TLS succeeds → application responds.
HTTPS case

DNS succeeds, but TCP/443 fails

DNS: app.example → 10.50.0.20 ✓ Gateway: works ✓ TCP/443: fails ✕

Do not keep troubleshooting DNS. The unresolved branch is now route/policy/listener/TLS/application. A packet capture, firewall log, or server listener check can provide much more information than another DNS query.

SSH and Telnet

Secure administration is about more than memorizing 22 and 23

SSH commonly uses TCP 22 and provides encrypted remote administration. Telnet commonly uses TCP 23 and lacks the confidentiality expected for secure administration. The exam-relevant distinction is not only the number, but which protocol is appropriate for a secure management requirement.

Policy implication: management access should also be limited to authorized source networks, not merely “open TCP 22.”
SFTP vs FTP

SFTP is not FTP with encryption added

SFTP is a subsystem of SSH and commonly uses TCP 22. FTP commonly uses TCP 21 for its control channel and has separate data-channel behavior. FTPS is FTP protected with TLS and retains FTP's architectural behavior.

ProtocolArchitectureCommon port clue
FTPFTP control + separate data behaviorTCP 21 control
FTPSFTP protected with TLSFTP-derived behavior
SFTPSSH subsystemTCP 22

Swipe horizontally to compare file-transfer protocols.

FTP troubleshooting

Control-channel success does not prove the data path

FTP login: works ✓ Directory listing: fails ✕ Conclusion: TCP/21 control path works, but data-channel behavior still unresolved

Calling “the network down” ignores a known-good checkpoint.

Email roles

SMTP, IMAP, and POP3 solve different mail problems

SMTP handles mail transfer/submission contexts. IMAP provides mailbox access with server-side synchronization. POP3 provides mailbox retrieval with a simpler model. Secure variants and deployment-specific ports matter, but the durable skill is matching the protocol role to the requirement.

Study rule: learn the service role first, then attach the common transport and secure deployment behavior.
ICMP

Ping does not use a TCP or UDP application port

Ping commonly uses ICMP. Therefore “open port for ping” is conceptually wrong in a TCP/UDP port sense, even though firewalls can certainly permit or block ICMP traffic.

Evidence limit: successful ping does not prove TCP/443 or any specific application service.
ARP

ARP is local neighbor resolution, not an application port

ARP maps local IPv4 addresses to MAC addresses on the local Layer 2 network. It is not a TCP or UDP application. ARP evidence is useful when diagnosing local neighbor reachability, duplicate IPs, or unusual Layer 2 mappings.

★ Routing Practice • Ports & Protocols Study Pack

A five-minute warm-up for AP Networking Ports & Protocols Study Pack

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
TCP

TCP provides connection-oriented transport behavior

TCP adds sequencing, acknowledgments, retransmission, flow control, and congestion behavior. A successful TCP connection proves more than simple IP reachability because it shows the path and service were able to complete transport establishment.

But: successful TCP establishment still does not guarantee the application returns the correct data.
UDP

UDP is connectionless—but “always faster” is too simplistic

UDP does not provide TCP-style session establishment, retransmission, sequencing, or flow control. Applications that use UDP may implement their own recovery or may accept loss for timeliness. Protocol choice depends on application requirements, not a universal speed rule.

Protocol & Service Lab • 120 Missions

Let students try AP Networking Ports & Protocols Study Pack 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 Ports & Protocols Study Pack.

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

Turn service knowledge into narrow policy

Requirement: Guest → DNS Resolver UDP/TCP 53 Guest → Web TCP 80,443 Guest → Management deny

Port memorization becomes operationally useful when it lets you write least-privilege rules and verify both allowed and denied flows.

Connection refused

Refusal and timeout are different clues

A TCP refusal often means the path reached a host or device capable of rejecting the connection, commonly because no process is listening or policy actively rejected it. A timeout means only that no timely response returned. Those symptoms should not be treated as equivalent.

Routing Exam Practice • Ap Networking Ports Protocols Study Pack

Check whether AP Networking Ports & Protocols Study Pack 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

Refused

Active rejection or closed listener becomes stronger.

Timeout

Filtering, loss, route, listener, or return-path issues remain possible.

Connected

Transport path works; application behavior may still fail.

Protocol stack

Lower-layer success does not guarantee higher-layer success

Ethernet/Wi-Fi
Can frames move locally?
IP
Can packets reach the destination network?
TCP/UDP/ICMP
Does the transport/control behavior work?
Application
Does DNS, HTTPS, SSH, mail, or file transfer actually work?
Applied case 1

DNS returns the right address; HTTPS still fails

DNS is substantially proven for that query. The next evidence should target TCP/443, firewall policy, route, listener, TLS, or application state—not another DNS configuration change.

Applied case 2

SFTP is required, but TCP/21 is opened

This is an architectural mismatch. SFTP uses SSH semantics and commonly TCP 22. Opening FTP control port 21 does not satisfy an SFTP requirement.

Premium Exam-Reasoning Feedback

Spend less time marking explanations about AP Networking Ports & Protocols Study Pack

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
Applied case 3

Guest clients need DNS and HTTPS but no management access

Allow: Guest → DNS Resolver UDP/TCP 53 Guest → Internet TCP 80/443 Deny: Guest → Management TCP 22/23/443 management interfaces

Verification should include successful DNS and HTTPS plus a negative control showing management access remains blocked.

Applied case 4

FTP login works but directory listing fails

The control path is known-good. Investigate data-channel behavior, NAT/firewall handling, and server configuration instead of declaring the entire path unavailable.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach AP Networking Ports & Protocols Study Pack 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
Evidence matrix

What a protocol test proves—and what it does not

Successful testWhat it provesWhat remains unresolved
DNS queryResolver answered that queryApplication service
PingUseful ICMP/IP reachabilityTCP/UDP service
TCP connectTransport establishment to that portApplication correctness
SSH loginSSH service and authentication path workOther management services
FTP loginControl channel worksData channel

Swipe horizontally to see the evidence matrix.

Study matrix

For every protocol, record six things

Purpose

What job does the protocol perform?

Transport

TCP, UDP, ICMP, or neither?

Common port

Where applicable.

Security

Encrypted? Legacy? Management-sensitive?

Failure clue

What symptom would fit?

Best artifact

Which test confirms the dependency?

Exam transfer

Strong answers connect the service to the evidence

Instead of writing “HTTPS is 443,” write: “HTTPS commonly uses TCP 443. DNS already returns the expected server IP, so the next test should target TCP/443 or the server listener. A failed DNS hypothesis is weaker because name resolution already succeeded.”

Strong answer pattern: service role → transport/port → successful checkpoint → failed dependency → next artifact → verification.
Free digital flashcards

24 Ports & Protocols digital flashcards

Practice DNS, DHCP, HTTP/HTTPS, SSH, Telnet, FTP/FTPS/SFTP, mail roles, ICMP, ARP, TCP vs. UDP, firewall policy, refusal vs. timeout, and evidence limits.

All protocol cards
Click or press Enter/Space to reveal.
Connect the port to the service, transport, evidence, and requirement.
0 seen•24 cards
Continue studying

Connect protocol knowledge to firewall and artifact analysis