How it works
Distinct protocols handle distinct jobs: resolving names to addresses, assigning configuration, addressing and delivering packets, and choosing between reliable delivery and speed.
Match the symptom to the protocol. Reaching a service by address but not by name points somewhere quite specific and rules out a great deal.
Common error
Reliable delivery and fast delivery are a deliberate tradeoff. Neither is simply better; they suit different traffic.
Topic 4.2: Protocols, OSI and TCP/IP models, and layered troubleshooting
Protocols specify how network participants format, exchange, and interpret information. Layer models organize those functions so you can describe a working exchange and choose a useful next troubleshooting test. Follow a fictional print-studio submission station from configuration and name resolution through local forwarding, routed IP delivery, transport, and the application. Keep the models useful without assuming that one successful test proves every layer, path, protocol, or permission is correct.
Read topic 4.2 notes, examples, and quick checks
4.2.A: Describe a protocol by the job and rules it supplies
A protocol specifies message formats and behavior, such as what a request means, how a response is recognized, or how a connection is managed. Interoperability depends on compatible rules at the communicating endpoints and appropriate handling by intermediate equipment. No single protocol supplies every property needed by an application. A document upload may depend on addressing, a local link, routing, name resolution, transport, encryption, and application permissions. Start by naming the task each protocol performs instead of treating a familiar acronym as a complete explanation.
Separate a MAC address from the address-resolution protocol
A MAC address is a link-layer identifier, not itself a protocol. Ethernet and Wi-Fi define link behavior. For ordinary Ethernet IPv4 delivery, ARP can resolve the local next-hop IPv4 address to a link-layer address when the needed entry is not already cached. A local destination uses its own next-hop entry; a remote destination normally uses the selected gateway's entry. The client does not ARP across the internet for the remote server's MAC. IPv6 uses its own neighbor-discovery mechanisms rather than IPv4 ARP.
Use IP for addressed packet delivery across networks
IP carries packets identified by source and destination addresses, and routers use routing information to select a next hop. IP delivery is best effort: it does not itself provide a reliable ordered application byte stream. A subnet mask or prefix helps the host identify its connected network and choose whether a gateway is needed. Across ordinary routed Ethernet hops, link headers are replaced; the endpoint IP addresses can remain the same when no translation or tunneling changes them. A path can fail even when the source address is valid.
Use DHCP to obtain configuration rather than look up a server name
DHCP can supply an interface address and configuration such as its subnet mask, gateway, and resolver. Ordinary DHCPv4 client/server exchanges use UDP client port 68 and server port 67, with a relay where the design requires one. It is an application-level configuration protocol even though its result affects IP routing. A successful lease does not prove that every supplied option or local override is correct. Fixed configuration and reservations are separate allocation choices; identify what the actual client is using.
Use DNS for names and account for caches and query paths
DNS returns records for names, including address records used by applications. It does not assign the client's own address. Ordinary DNS uses UDP and TCP port 53; clients and resolvers can cache results. A failed lookup through one configured resolver does not prove every application loses connectivity: cached answers and existing sessions may still work. Compare the exact name, requested record, resolver, response, and relevant path. A successful numeric-IP transport test does not prove that a name-dependent HTTPS application will validate its certificate or select the intended virtual host.
Interpret ICMP as control and diagnostic messaging
ICMP carries messages such as echo requests/replies and certain delivery errors. Ping uses echo behavior and measures observed round-trip time; the protocol does not guarantee that a service is working. Traceroute-style tools use limited hop counts and resulting control responses, with probe details varying by implementation. A timeout can reflect filtering, rate limits, loss, or an unavailable destination. A gateway unreachable error is different from an endpoint echo reply. ICMP belongs with the internet/network functions here and does not use TCP or UDP service ports.
Explain TCP reliability without promising that a business task must finish
TCP supplies a connection-oriented, ordered byte stream with mechanisms including sequence numbers, acknowledgments, retransmission, and flow/congestion control. It can report a failed connection when conditions prevent completion; it cannot guarantee delivery through every outage or confirm that the receiving application saved a valid document. TCP is useful for many file and web tasks but does not itself encrypt data. Its stream does not preserve the application's original message boundaries, so the application must define its own framing and success criteria.
Explain UDP datagrams and the application's responsibilities
UDP carries distinct datagrams without a built-in connection handshake, retransmission, or in-order delivery service. Checksums can detect some corruption but are not delivery acknowledgments or cryptographic authentication. An application can add recovery, ordering, timing, and security on top. Interactive media may prefer timely data and tolerate some loss; a large buffered video stream may instead use TCP-based HTTP. Reliable QUIC streams and HTTP/3 can run over UDP. Choose from application requirements rather than assuming UDP always sacrifices correctness or is always faster.
Distinguish HTTP, HTTPS, TLS, and their transport choices
HTTP defines web requests and responses. HTTPS protects HTTP using an appropriate secure transport and server authentication; the client must validate the intended service identity and trust configuration. TCP 80 is a common plain-HTTP port, and TCP 443 is common for HTTPS with HTTP/1.1 or HTTP/2. HTTP/3 uses QUIC over UDP, commonly on 443. A port number alone does not establish encryption or a trusted application. A successful TCP test still leaves TLS, the requested host, account login, and application action to verify.
Distinguish secure file transfer from similarly named protocols
FTP uses a control connection, commonly TCP 21, and separate data connections. SFTP is a file-transfer protocol carried through SSH, commonly TCP 22; it is not simply FTP with encryption added. SSH also supports remote command sessions and other functions, so a port-only rule cannot distinguish every allowed SSH task. FTPS is a separate FTP-with-TLS configuration. Telnet commonly uses TCP 23 and lacks the protections expected from suitable SSH access. Choose the intended service, authentication, and transfer permissions rather than permitting a port because a file needs moving.
Separate sending mail from retrieving or synchronizing it
SMTP handles sending and relaying email. Server-to-server SMTP commonly uses TCP 25; client submission commonly uses 587 with the configured security or 465 for implicit TLS. IMAP provides server-centered mailbox access and synchronization, commonly 143 or implicit TLS on 993. POP3 retrieves messages, commonly 110 or implicit TLS on 995, and can be configured to leave copies. The selected port and protocol do not alone prove correct credentials or security negotiation. A receipt email can fail while the web upload itself succeeds.
4.2.B: Name the seven OSI functions in order
From highest to lowest, OSI names Application, Presentation, Session, Transport, Network, Data Link, and Physical. Application describes network-service exchanges; presentation concerns representation and transformations; session concerns dialog/session management; transport concerns end-to-end transport; network concerns addressed packet routing; data link concerns local frames; physical concerns signaling and media. These are reference functions rather than seven mandatory software programs. Real stacks can combine functions, and mapping a technology such as TLS to upper-layer roles is a teaching aid rather than one rigid implementation boundary.
Match the protocol data unit to the protocol and layer
A protocol data unit, or PDU, is the unit a protocol exchanges, including its applicable control information. Common teaching names are upper-layer data, TCP segment or UDP datagram at transport, IP packet at network/internet, link frame, and transmitted bits/signals at physical. Calling every transport unit a TCP segment hides the UDP distinction. Packet captures and operating-system tools can show different views of the same exchange, sometimes with offload effects, so note where the observation was made and which headers it includes.
Map OSI functions to this course's four TCP/IP groups
In the four-layer TCP/IP view, Application groups the OSI application, presentation, and session functions; Transport corresponds to OSI transport; Internet corresponds to OSI network; and Network access, also called Link, groups data-link and physical functions. Some teaching layouts separate the bottom functions into a five-layer view, so state which model you are using. The mapping organizes responsibilities, not a claim that a browser application has a separate visible header for every OSI layer.
Follow encapsulation and decapsulation at a stated point
For a TCP-based upload, protected application bytes become part of a TCP segment, which is carried in an IP packet and then in a link frame transmitted as signals. Applicable headers, and some trailers such as an Ethernet FCS, supply control information. A receiver interprets the applicable wrappers in reverse. A router normally removes one incoming link wrapper and constructs the outgoing one while forwarding the IP packet; it does not perform the server's full HTTPS application processing merely because it is on the path. Fragmentation, options, tagging, and tunnels can change the simple example.
Classify the function being examined rather than the entire box
A basic layer-2 switch forwards frames using link-layer information; a router forwards IP packets at network/internet level. A NIC includes physical and link functions, and an AP commonly combines radio signaling and link forwarding. A gateway is a role whose meaning depends on context: a default IP gateway routes, while an application gateway can process application exchanges. Firewalls can match layer-3 addresses, layer-4 ports and state, and supported application information. Equipment management interfaces also run upper-layer protocols, so a device is not confined to one layer for every operation.
4.2.C: Use a successful test as evidence about the path it exercised
A link indication supports that an attachment exists; it does not prove low error rates or correct VLAN membership. A successful ping by IP supports that tested ICMP path at that time, not every packet size, application, transport protocol, or intermittent condition. Working TCP 443 does not prove UDP/TCP DNS access, and a successful DNS answer does not prove application authorization. Compare tests that differ in a relevant way, and retain timing, interface, name, destination, protocol, and result. Layer models guide hypotheses rather than permanently clearing whole layers.
Use bottom-up checks when the attachment is in doubt
For a dead link after a desk move, begin with the intended port, cable seating, supported media, transceiver or radio state, and power. Then check local forwarding/VLAN behavior and move toward IP configuration, routing, transport, and the required application. Keep the scope proportionate: one unplugged endpoint does not justify restarting a shared gateway. A newly lit link is progress, but verify error behavior and the original task instead of declaring every higher function healthy.
Use top-down checks for a narrow application failure
If one application fails after an update while appropriate comparison tasks work, start with its exact error, endpoint/name, account, configuration, certificate/trust behavior, and service logs. Follow evidence toward transport or lower functions when needed. An HTTP 403 response over a validated connection points toward application authorization or policy, while a certificate-name error needs identity/configuration review. These observations do not justify disabling TLS checks or opening unrelated firewall access. A correct rejection for a role without permission is intended behavior.
Use a middle-out strategy when IP configuration is the fastest divider
Read the active address/prefix, route, gateway, and resolver and compare them with the documented plan. Then choose whether evidence points downward toward attachment/neighbor resolution or upward toward the required service. In the print-studio case, a documented resolver override is wrong while the approved gateway and TCP service path are usable. Compare a direct query to the approved resolver, repair the specific setting, and complete the name-dependent app task. Do not infer that every DNS server or every lower-layer component has failed.
Choose transport and tests from the real application requirements
A complete design file needs reliable transfer, authentication, appropriate confidentiality, and application confirmation that it was stored. An interactive audio path needs bounded delay, loss handling, and suitable security; these requirements do not disappear because it uses UDP. Check the actual stack before choosing a firewall rule or test. A TCP-only probe cannot validate a UDP audio or QUIC path. Header overhead is only one factor in performance alongside latency, loss, congestion, buffering, and endpoint behavior.
Review an AI layer diagnosis and prove the repaired task
Ask an authorized tool to connect each hypothesis to a recorded observation and a next discriminating check. Challenge claims that a link light clears the physical layer, TCP guarantees business completion, or one successful website rules out every lower-layer problem. Preserve the current settings and required security controls, correct the supported defect, and repeat the original normal-user task along with relevant comparisons. Keep valid evidence and record remaining limits rather than accepting an attractive layer label as a diagnosis.
Protocol roles, next-hop frames, encapsulation, and layered tests
One client has a wrong resolver override despite a valid DHCP address
Illustrative print-studio station configuration
Host: SUBMIT-DESK-03
DHCP address assignment: Yes
IPv4 address: 10.58.7.38
Mask: 255.255.255.192 (/26)
Default gateway: 10.58.7.1
DHCP server: 10.58.7.1
Actual DNS override: 10.58.7.54
Accepted plan:
Client subnet: 10.58.7.0/26
Approved resolver: 10.58.7.138
Submission app: 10.58.7.130
App name: submissions.printlab.test
Service subnet: 10.58.7.128/26, gateway 10.58.7.129
Selected IPv4 routes:
10.58.7.0/26 -> on-link via interface 10.58.7.38
0.0.0.0/0 -> 10.58.7.1 via interface 10.58.7.38
The gateway DHCP options are correct; this single client
has an unintended manual DNS override.
This teaching summary is not a raw operating-system command output. The app and approved resolver are remote to the client /26 and use the selected gateway path. DHCP configured the client address, but that success does not remove a manual resolver override. The .test hostname is a deliberately configured lab-only name.
A routed IPv4 app request uses the local gateway MAC first
Assumptions: Ethernet IPv4, stated /26 routes, no NAT or tunnel.
Gateway Ethernet interfaces:
Client-side 10.58.7.1: 02:58:07:00:00:01
Service-side 10.58.7.129: 02:58:07:00:00:81
Client .38 MAC: 02:58:07:00:00:38
App .130 MAC: 02:58:07:00:00:82
If the necessary entry is not cached:
Client ARP question: who has 10.58.7.1 on this local link?
Gateway answers with its client-side MAC.
Client-side transmitted frame:
Ethernet src 02:58:07:00:00:38 -> dst 02:58:07:00:00:01
IPv4 src 10.58.7.38 -> dst 10.58.7.130, TTL 64
TCP src port 51422 -> dst port 443
Gateway service-side transmitted frame:
Ethernet src 02:58:07:00:00:81 -> dst 02:58:07:00:00:82
IPv4 src 10.58.7.38 -> dst 10.58.7.130, TTL 63
TCP src port 51422 -> dst port 443
The link addresses change for the routed Ethernet hop, while the endpoint IP addresses and ports remain the same under the stated assumptions. The router also updates the applicable IPv4 header information, including TTL and header checksum. It resolves the service-side next hop on that link as needed. The client does not use remote ARP to find the app host's MAC through the gateway.
Calculate a simple encapsulation size at one observation point
Fictional single-packet size example
Assume no IP/TCP options, fragmentation, tunnel, or VLAN tag.
The 600 bytes already include the chosen protected app/TLS data.
Protected application bytes: 600
TCP header: 20
TCP segment: 620 bytes
IPv4 header: 20
IPv4 packet total: 640 bytes
Ethernet header: 14
Ethernet FCS trailer: 4
Ethernet frame here: 658 bytes
Count excludes Ethernet preamble/SFD and inter-frame gap.
An ordinary 1500-byte IP MTU can carry this 640-byte IP packet.
The numbers are deliberately chosen for one small, untagged, no-options packet, not a universal upload size. Decapsulation interprets the applicable wrappers in reverse. Other headers, multiple segments, options, tags, fragmentation, or tunnels change the accounting. A smaller header count alone does not establish real throughput, application security, or successful storage.
A name failure and a working TCP path are useful separate observations
Controlled pre-change checks from SUBMIT-DESK-03
C:\> ping -n 2 10.58.7.1
Reply from 10.58.7.1: bytes=32 time<1ms TTL=64
Reply from 10.58.7.1: bytes=32 time<1ms TTL=64
C:\> nslookup submissions.printlab.test 10.58.7.54
DNS request timed out.
C:\> nslookup submissions.printlab.test 10.58.7.138
Server: resolver.printlab.test
Address: 10.58.7.138
Name: submissions.printlab.test
Address: 10.58.7.130
PS C:\> Test-NetConnection -ComputerName 10.58.7.130 -Port 443
ComputerName : 10.58.7.130
RemoteAddress : 10.58.7.130
RemotePort : 443
SourceAddress : 10.58.7.38
TcpTestSucceeded : True
Outputs are illustrative excerpts. The numeric TCP result tests transport reachability to this destination at this time. The direct query demonstrates the approved resolver path and name result under the controlled conditions. Combined with the recorded incorrect override, these observations support correcting that setting. They do not justify claiming every lower-layer condition is healthy or that the numeric-IP HTTPS application task has already succeeded.
Verify the hostname, trusted service, account, and uploaded document
Controlled post-change acceptance record
Correction: remove unintended .54 override and use the approved
resolver setting 10.58.7.138 under the accepted client design.
Normal client lookup of submissions.printlab.test: 10.58.7.130
Intended app connection by hostname: PASS
Configured certificate/trust and hostname validation: PASS
Normal staff account login: PASS
Authorized design upload with app receipt and stored-file check: PASS
Restricted guest upload: DENIED as intended
An existing cached website also worked before the correction;
that fact did not establish the new lab-name lookup was correct.
These are fictional acceptance observations, not output generated by the earlier TCP test. Use the intended hostname and normal trust configuration rather than disabling certificate checks. Verify the app's storage result and permissions. A cached site or an existing connection can work during a resolver problem, and the repaired task should be retested under representative conditions.
Three independent symptoms call for different starting checks
Independent layer-diagnosis mini-cases
A. Desk moved; intended Ethernet interface reports no carrier.
Start: bottom-up attachment/media/power checks.
Verify: correct local forwarding, configuration, then real task.
B. Correct service TCP connection works, but the client reports
a certificate name mismatch for the intended app hostname.
Start: top-down service identity/name/certificate configuration.
Verify: correct intended service with normal validation.
C. Validated app connection returns HTTP 403 for a guest account.
Accepted policy says guests may not upload designs.
Finding: intended application restriction, not proof of a broken LAN.
Verify: authorized staff upload and appropriate guest denial.
Layer labels organize the next investigation; they do not prove a universal root cause. A cable or physical attachment issue can coexist with other faults, and a successful TCP connection does not complete TLS or account authorization. In case C the correct response is to preserve the intended restriction, not to open every port or weaken the app policy.
Trace a named service and select the next useful layer check
1Describe the exact task and implementation
Record the app, intended hostname, account role, actual transport/service, error, client/interface, and timing. Identify the accepted network and service configuration.
2Choose a justified starting point
Use bottom-up for a doubtful attachment, top-down for a narrow application symptom, or middle-out when IP and resolver settings offer the quickest useful comparison.
3Read local configuration and forwarding decisions
Compare address/prefix, connected and default routes, intended VLAN/SSID, DHCP options and overrides, and the appropriate local neighbor or gateway entry.
4Check the name through the intended resolver
Record the query, response, and any cache effect. Compare a failed configured path with a controlled query to the approved resolver where useful.
5Test the actual transport and security path
Use permitted IP/ICMP checks and the correct TCP or UDP service test. For HTTPS, verify the intended host and certificate/trust behavior separately from a numeric TCP connection.
6Complete the application action
Use the proper normal account and verify the expected upload, retrieval, message, or interactive task. An authenticated connection or protocol response alone is not the full task.
7Correct the specific supported fault
Preserve prior values and required restrictions, then apply the documented configuration or service correction. Do not globally disable filtering or identity checks to make a test pass.
8Retest and explain the evidence with both models
Repeat the failed action and relevant comparison paths, record what each result establishes, and name the appropriate OSI functions and TCP/IP group without claiming every layer is permanently cleared.
| OSI layer | Function and common examples | Common teaching PDU | Four-layer TCP/IP group |
|---|---|---|---|
| 7 · Application | Network application services and message meaning: HTTP, DNS, DHCP, mail, SSH. | Data / protocol messages | Application |
| 6 · Presentation | Representation, encoding, and transformation; encryption is often discussed here conceptually. | Data | Application |
| 5 · Session | Dialog/session coordination as a reference function; implementations can combine it with other upper functions. | Data | Application |
| 4 · Transport | End-to-end transport, ports, TCP stream or UDP messages. | TCP segment / UDP datagram | Transport |
| 3 · Network | IP addressing, forwarding between networks, ICMP control/error behavior. | IP packet | Internet |
| 2 · Data Link | Local-link frames and MAC addressing: Ethernet, Wi-Fi forwarding, layer-2 switching. | Frame | Network access / Link |
| 1 · Physical | Electrical, optical, or radio signaling, connectors, and media. | Bits / signals | Network access / Link |
| Observed symptom | Useful starting hypothesis | Next check and limit |
|---|---|---|
| No carrier on the intended wired interface after a desk move. | Attachment or physical/media issue. | Inspect correct port, cable/media, power, and interface state; a later link indication still requires task verification. |
| Valid-looking address but wrong attachment or unexpected local neighbors. | Link membership/VLAN or configuration mismatch. | Compare actual access port/SSID mapping, prefix and neighbor behavior with the plan; an address alone does not prove the zone. |
| Local peer works but intended remote IP task fails. | Route, mask, gateway, path, or filtering issue. | Compare connected/default routes and the exact destination/service; local success does not test the routed path. |
| One resolver times out while an approved direct query succeeds. | Configured resolver, override, cache, or specific query path needs review. | Record the exact name, resolver and result, compare accepted settings, then verify normal client resolution. |
| TCP connects, but a validated HTTPS task does not complete. | TLS/service identity, virtual host, app configuration, or authorization may differ. | Read the exact error and service/account evidence; do not assume the correct app was tested by a numeric transport probe. |
| A UDP-based interactive task fails while a TCP web task works. | Different protocol/path rules or app timing/quality requirements. | Test the actual permitted UDP service and app behavior; a TCP-only probe cannot validate it. |
| One permitted task works but large transfers or intermittent periods fail. | MTU, loss, load, retries, or other path-dependent conditions remain possible. | Compare representative sizes, timing and load; a small successful ping does not permanently clear all lower functions. |
| Protocol or identifier | What it supplies | Common transport/port or layer | Qualification |
|---|---|---|---|
| Ethernet / MAC addressing | Link frames and link-layer identifiers. | OSI 2; physical signaling also uses OSI 1. | A MAC is an address, not a protocol or permanent proof of device identity. |
| ARP | Resolve a local IPv4 next hop to a link-layer address. | Link-related resolution; no TCP/UDP service port. | Use a cached entry if valid; remote routing does not propagate a client ARP to the final internet host. |
| IP | Addressed best-effort packet forwarding. | OSI 3 / TCP/IP Internet. | Does not supply a reliable ordered byte stream by itself. |
| DHCPv4 | Lease configuration such as address, mask, gateway and resolver. | UDP server 67 / client 68; application group. | Compare actual options and overrides; a lease alone does not prove every app works. |
| DNS | Query name records, including address records. | UDP and TCP 53; application group. | Caches and existing sessions matter; query success is not application authorization. |
| ICMP | Control/error and echo diagnostic messages. | Network/Internet functions; no TCP/UDP port. | Ping and traceroute-style evidence has protocol, timing, and implementation limits. |
| TCP | Connection-oriented ordered byte stream with recovery mechanisms. | OSI 4 / TCP/IP Transport; service ports vary. | Not encryption or a guarantee that the business action completes through any failure. |
| UDP | Message-oriented datagrams without built-in retransmission/ordering. | OSI 4 / TCP/IP Transport; service ports vary. | Applications can add reliability and security; not automatically faster or less correct. |
| HTTP | Web request/response semantics. | Commonly TCP 80 for plain HTTP. | Specific versions and protected operation use their applicable transport and security. |
| HTTPS | Protected HTTP with the intended service identity/trust. | Commonly TCP 443; HTTP/3 uses QUIC over UDP, often 443. | A numeric port permit does not validate TLS, hostname, login, or content correctness. |
| FTP | File transfer with control and data connections. | Common control TCP 21; separate data paths. | Unprotected FTP is distinct from FTPS and from SFTP. |
| SSH | Protected remote sessions and supported channels. | Commonly TCP 22. | App authentication and permissions still matter. |
| SFTP | File operations over SSH transport. | Commonly TCP 22. | Not simply encrypted FTP; a port-only 22 permit can also cover other SSH use. |
| Telnet | Remote terminal service without the expected secure SSH protections. | Commonly TCP 23. | Use the approved protected remote-access design rather than enabling a legacy service casually. |
| SMTP | Sending/relaying email and client submission. | TCP 25 relay; submission commonly 587 or implicit TLS 465. | Server role and configured TLS/authentication matter; a port alone does not prove them. |
| POP3 | Retrieve mailbox messages. | TCP 110 or implicit TLS 995. | Leaving server copies is configurable; it is not a mail-sending protocol. |
| IMAP | Access and synchronize server-centered mailbox state. | TCP 143 or implicit TLS 993. | Successful mailbox access and SMTP submission are separate tasks. |
| Property | TCP | UDP and protocols built on it |
|---|---|---|
| Service to the application | Ordered byte stream over a connection; applications provide message framing. | Distinct datagrams; applications decide how to interpret and combine them. |
| Loss and ordering | TCP mechanisms acknowledge/retransmit and deliver bytes in order, or a connection can fail. | UDP alone provides no retransmission or ordering; a higher protocol can add these. |
| Timing and performance | Recovery and buffering can affect latency; many buffered file/web/media tasks use it. | A timely app can choose what to recover or discard; this does not guarantee lower delay. |
| Security and useful completion | Needs appropriate higher protection and application success verification. | Also needs appropriate higher protection and success criteria; QUIC can provide reliable secure streams over UDP. |
Map seven OSI functions onto four TCP/IP groups
The left boxes show OSI functions grouped for this comparison; the right boxes show the course's four TCP/IP layers. Horizontal lines indicate corresponding responsibilities, not physical cables or a packet path. Read the seven-row table for each individual OSI layer. Implementation details can combine reference functions without changing the purpose of the model.
Legend: each solid horizontal line is a conceptual model correspondence. The diagram does not claim that every OSI function creates a separate header or that equipment is limited to one layer. Network access is also called Link in the four-layer view.
| Item | Documented value or role | Evidence limit |
|---|---|---|
| Submission client | 10.58.7.38/26; gateway .1; DHCP address, unintended DNS override .54. | An address lease does not prove the intended resolver is used. |
| Gateway and DHCP server | Client-side .1; service-side .129; separate link MACs recorded in the trace. | Routing/lease service roles do not imply that the router processes the entire HTTPS app task. |
| Approved resolver | 10.58.7.138/26; submissions.printlab.test deliberately maps to .130. | The configured lab name result is separate from certificate and app authorization checks. |
| Submission app | 10.58.7.130/26, intended staff access by hostname with normal trust validation. | A TCP 443 response alone does not establish a completed upload. |
| Observation point | Client-side and gateway service-side frames; no NAT/tunnel; simple untagged size example. | Other encapsulations, options, tagging, offload views, and paths can produce different headers and observations. |
Protocols, models, and layered evidence vocabulary
- Protocol
- The agreed format and behavior of an exchange, defining how participants interpret and respond to messages.
- MAC and ARP
- A link-layer identifier and an IPv4 local-neighbor resolution protocol; the address and the protocol are different concepts.
- IP and next hop
- Addressed packet forwarding and the selected neighbor or gateway used toward a destination.
- DHCP and DNS
- Configuration assignment and name-record lookup; obtaining a lease is different from finding a service by name.
- ICMP
- Internet/network control and diagnostic messaging, including echo behavior and certain errors, without TCP/UDP service ports.
- TCP byte stream
- A connection-oriented transport service providing ordered bytes with recovery mechanisms and possible failure rather than guaranteed task completion.
- UDP datagram
- A distinct transport message; UDP alone supplies no retransmission or in-order delivery service.
- Application reliability
- The framing, acknowledgments, persistence, recovery, and success checks needed for the actual user/system task beyond one transport probe.
- OSI
- Open Systems Interconnection: a seven-layer reference vocabulary for network functions.
- Four-layer TCP/IP model
- Application, Transport, Internet, and Network access/Link groups used here to describe the internet protocol suite.
- PDU
- Protocol data unit: a unit exchanged under a protocol, including its applicable control information.
- Encapsulation and decapsulation
- Adding applicable wrappers as data moves toward a link and interpreting/removing them in the receiving path.
- Segment, datagram, packet, frame
- Common names used here for TCP transport, UDP transport, IP, and link units respectively.
- TLS and service identity
- Protected exchange and authentication of the intended service under the configured trust rules; a port number alone does not establish this.
- SFTP, FTP, and FTPS
- File operations over SSH, the FTP control/data protocol, and FTP protected with TLS; these are distinct designs.
- SMTP, POP3, and IMAP
- Email sending/relay, message retrieval, and server-centered mailbox access/synchronization.
- Bottom-up, top-down, middle-out
- Troubleshooting starting strategies chosen from attachment symptoms, app symptoms, or a useful IP/configuration comparison.
- Bounded test evidence
- A result tied to its actual interface, destination, protocol, name, timing, load, and tested task; it does not clear every function universally.
Worked diagnosis: a resolver override hides a working submission path
SUBMIT-DESK-03 receives its intended DHCP address but cannot open submissions.printlab.test. Another cached website works. The accepted design uses gateway 10.58.7.1 and resolver 10.58.7.138, with the app at 10.58.7.130 on the separate service /26.
- Client .38/26 and the default route through .1 match the plan. The station alone has manual DNS override .54 while the gateway DHCP options remain correct.
- A query through .54 times out; a controlled query through the approved .138 resolver returns the intended .130 address.
- An allowed gateway ping and a TCP 443 connection to .130 work under the tested conditions. These do not themselves complete the hostname-dependent, trusted app action.
- An AI suggestion says successful web browsing clears every lower layer and proposes changing the app to a numeric IP with identity checks disabled. The evidence supports neither the broad clearance nor weakening the app's intended trust behavior.
- After the resolver override is corrected, normal client resolution, hostname/trust validation, staff login, and an uploaded-document receipt/stored-file check pass. Restricted guest upload remains denied.
Reasoning: This is a useful middle-out investigation: compare IP/route/resolver configuration, then move toward name and app behavior. DNS is an application-group protocol whose failure can involve configuration or lower path controls. The correct direct answer plus the documented wrong override supports the narrow client correction. A cached website and a working numeric TCP test cannot replace the original hostname-dependent task. Preserve normal service-identity and account checks while verifying the repair.
- Record the current client settings, intended name/transport, route, observed errors, approved resolver, and relevant working comparisons.
- Use controlled name and transport tests to distinguish the bad configured resolver path from the approved one without declaring whole layers permanently healthy.
- Remove the unintended override through the accepted configuration process while preserving prior values and required access restrictions.
- Complete the real app task by hostname using normal trust validation and the authorized account; verify the upload receipt and stored result.
- Repeat relevant comparisons and the intended guest denial, document the result and remaining timing/load limits, and connect each observation to its OSI/TCP-IP function.
Quick checks
Choose a question, form your answer, then open it to compare your reasoning.
1. What does a protocol add beyond a device address?
It defines message formats and behavior: how requests, responses, or other exchanges are interpreted and handled. An address alone does not define a complete service exchange.
2. Is a MAC address itself a protocol?
No. It is a link-layer identifier. Ethernet/Wi-Fi provide link protocols, and ARP is an IPv4 local address-resolution protocol.
3. Why does client .38 ARP for gateway .1 when sending to app .130?
The client /26 connected range is .0-.63, while .130 is in the service .128/26. The selected remote route uses local next hop .1, whose link address is needed if not cached.
4. Does the client learn the remote app host MAC by sending ARP through the router?
No. Ordinary ARP resolves a neighbor on the local link. The router makes its own appropriate service-side forwarding and resolution decisions.
5. Which request fields remain the same across the stated no-NAT routed hop?
The endpoint source/destination IP addresses and TCP ports remain the same in this example. Ethernet source/destination change, IPv4 TTL drops from 64 to 63, and the applicable header checksum is updated.
6. How are DHCP and DNS different in this lab?
DHCP supplies the client's address/configuration. DNS looks up submissions.printlab.test. A valid lease does not remove an incorrect manual resolver override.
7. What are the ordinary DHCPv4 client and server UDP ports?
Client 68 and server 67. A relay is used where the network design requires it; these port numbers do not by themselves establish that every required path is configured.
8. Does a failed resolver mean every named connection must immediately stop?
No. Cached answers, other resolution paths, and established sessions may still work. Test the exact intended name and configured resolver under known conditions.
9. Does DNS use only UDP 53?
No. Ordinary DNS uses both UDP and TCP 53 as applicable. A TCP web connection is not a test of either resolver path.
10. Does ICMP use destination TCP port 443 or UDP port 53?
Neither. It is its own network/internet control protocol. Ping uses echo behavior; it does not test the web or DNS service port.
11. What reliability does TCP provide, and what can it not promise?
It provides an ordered byte stream with acknowledgment/retransmission and related control mechanisms, or the connection can fail. It does not itself encrypt the data or prove that the receiving application completed and saved the task.
12. Does UDP have no error detection and make reliable apps impossible?
No. UDP supports checksumming, while applications or higher protocols can add recovery, ordering, and security. UDP alone lacks a reliable in-order delivery service.
13. Must buffered video streaming always use UDP?
No. Buffered video can use TCP-based HTTP, while interactive media may use a datagram-based design. Choose and test the actual stack from timing, loss, security, and completion requirements.
14. How can HTTP/3 use UDP while providing useful reliable web exchanges?
It uses QUIC over UDP, with higher-protocol mechanisms providing reliable streams and security. UDP's own minimal service does not forbid such mechanisms.
15. Does a successful TCP 443 probe establish a valid HTTPS login and upload?
No. Verify intended hostname/service, certificate/trust behavior, account permission, and application receipt/stored result separately.
16. Are SFTP and FTPS the same as FTP with one new name?
No. SFTP performs file operations through SSH. FTPS is FTP protected with TLS. FTP has its own control and data paths; the protocols and configuration requirements differ.
17. Which protocol sends email, and which two retrieve or access mailboxes?
SMTP sends/relays mail and supports submission. POP3 retrieves messages; IMAP accesses and synchronizes server-centered mailbox state.
18. Name the OSI layers from 7 down to 1.
Application, Presentation, Session, Transport, Network, Data Link, Physical. These describe reference functions rather than seven required separate programs.
19. Which OSI functions map to TCP/IP Application in this four-layer model?
OSI 7, 6, and 5: application, presentation, and session functions. Implementations can combine these rather than exposing three separate headers.
20. What maps to TCP/IP Internet, and what maps to Network access/Link?
OSI Network layer 3 maps to Internet. OSI Data Link 2 and Physical 1 are grouped in Network access/Link.
21. What PDU names distinguish TCP from UDP at transport?
TCP segment and UDP datagram. IP packet and link frame describe other stages; using one generic transport label should not hide the protocol difference.
22. Calculate the size of the example TCP segment, IP packet, and Ethernet frame.
600 protected application bytes + 20 TCP header = 620-byte segment. Add 20 IPv4 header = 640-byte IP packet. Add 14 Ethernet header and 4 FCS = 658-byte frame at the stated observation point.
23. Why is 658 bytes not a universal on-wire size for every 600-byte document?
The example already counts 600 protected app/TLS bytes and excludes options, tags, fragmentation, tunnels, preamble/SFD, and inter-frame gap. A real document can span multiple records/segments and other wrappers.
24. Does a router normally unwrap and process the complete HTTPS request like its server?
No. Ordinary IP forwarding replaces the incoming link wrapper and processes the applicable network forwarding information. Specialized gateways, proxies, or inspection functions can add other behavior.
25. Why is “every firewall and gateway is only OSI layer 4” misleading?
A default IP gateway routes at layer 3; application gateways process other functions. Firewalls may evaluate addresses, transport ports/state, and supported application information. Classify the operation being discussed.
26. A link light is on and one ping works. Are all lower-layer issues permanently ruled out?
No. These are bounded observations about the exercised attachment/path and timing. Errors, VLAN/path differences, loss, load, or larger-packet behavior may still matter.
27. Which strategy suits no carrier after a desk move?
Bottom-up: verify the correct attachment, media, interface and power, then follow evidence toward forwarding, IP and the required task. Keep the action proportionate to the affected scope.
28. Which strategy suits an app certificate-name mismatch after a service update?
Top-down: inspect the intended name, service identity, certificate/trust and configuration, using the exact error and relevant comparisons. Preserve normal validation rather than bypassing it.
29. Why is middle-out useful for the print-studio station?
The address and route match the plan but the resolver override does not. Comparing configuration, direct name lookup, and numeric transport reachability supports correcting that precise setting before retesting the hostname-dependent app.
30. A validated app returns 403 to a guest whose role forbids uploads. What is the correct interpretation?
It can be the intended application restriction. Verify authorized staff work and guest denial against the plan; do not treat every rejection as a broken network or open unrelated access.
Worked example
Separate naming, addressing, and transport responsibilities in a web request.
Evidence
Name: portal.example
DNS answer: 192.0.2.20
Application: HTTPS
Transport: TCP in this exampleDNS maps the requested name to an address; IP carries packets toward that address; TCP supports reliable ordered transport in this example; TLS protects the HTTPS session. DNS does not transfer the whole page. Other protocol stacks can implement secure web transport differently.
Exercises
Exercise 1
A service is reachable by its documented address but not its hostname. Which service is a leading suspect, and what check supports the diagnosis?
Show solution
Name resolution is a leading suspect. Query the configured resolver for the exact hostname and compare its result with the documented address or a known working client.
Exercise 2
Explain why a real-time media application might accept some loss rather than wait indefinitely for retransmission.
Show solution
Late media data may no longer be useful for timely playback. The application may favor lower delay over complete delivery, while still needing appropriate congestion handling and security.
