The OSI and TCP/IP Models

Learn the two layer models that every network professional uses. Describe what each of the seven OSI layers does, map them onto the TCP/IP model the Internet runs on, and follow encapsulation as data gains and loses headers on its way through the stack and across routers. Compare TCP with UDP, recognize common services by their port numbers, place hubs, switches, routers, firewalls and other devices at the right layer, and use the layers to track down network problems step by step.

BeginnerLesson 2 of 9 in Networking Fundamentals Course

What you will learn

  1. Explain why networks are described in layers and what each of the seven OSI layers does, from signals on a cable up to the services applications use.
    • Explain why networks are described in layers
      See how a layered model splits network communication into separate jobs, how layers work together, and how a reference model differs from a protocol suite.
    • Describe Layers 1–3: Physical, Data Link and Network
      Explain how the physical layer sends bits, how the data link layer delivers frames on one local link, and how the network layer moves packets between networks.
    • Describe Layers 4–7: Transport, Session, Presentation and Application
      Explain how the transport layer delivers data to the right program, and what the session, presentation and application layers do for communicating applications.
  2. Describe the layers of the TCP/IP model that the Internet uses, map them onto the OSI layers, and place common protocols at the right layer.
    • Map the TCP/IP model onto the OSI model
      Name the four TCP/IP layers and the five-layer teaching version, explain what each does, and match them to the OSI layers.
    • Place common protocols at the right layer
      Use what a protocol does and what carries it to place it in the OSI and TCP/IP models, including protocols that are often misplaced.
  3. Trace how each layer wraps data with its own header on the way down, how the receiver unwraps it on the way up, and what happens to the headers as a packet crosses a network.
    • Trace encapsulation and decapsulation through the stack
      Follow data down the sender's stack and up the receiver's stack, naming the protocol data unit at each layer and the header fields that matter.
    • Calculate header overhead, MTU and segment sizes
      Use standard header sizes to work out packet and frame sizes, the maximum segment size on Ethernet, and how much of a frame is useful data.
    • Follow a packet hop by hop across networks
      Trace what happens to the frame and packet headers as data passes through a switch and a router to a server on another network, and back again.
  4. Choose between TCP and UDP for an application, explain how port numbers deliver data to the right service, and recognize the well-known protocols by their ports.
    • Compare TCP and UDP and choose between them
      Explain what TCP and UDP each provide, how they differ in reliability, speed and overhead, and which one suits a given application.
    • Explain port numbers and sockets
      Use port numbers, their ranges and sockets to explain how one host can run many network conversations at the same time.
    • Recognize well-known protocols by port and transport
      Match common network services to their port numbers and to TCP or UDP, and tell secure versions from their plain-text counterparts.
  5. Identify the layer at which each common network device works, and use the layers to locate and narrow down network problems.
    • Place network devices at their OSI layers
      Match hubs, switches, routers, access points, firewalls and other devices to the layers they work at, and explain what that means for collision and broadcast domains.
    • Use the layers to choose a troubleshooting approach
      Apply the bottom-up, top-down, divide-and-conquer and follow-the-path approaches, and know when each one is the quickest way to find a fault.
    • Match symptoms and tools to layers
      Recognize the typical symptoms of a fault at each layer and use the right command-line tools to test each layer.

OSI and TCP/IP Models study guide

5 chapters

1

Describe the seven layers of the OSI model

Network traffic moves through several kinds of work before a program receives it. OSI gives each kind a name, from the signals on a cable to the protocols a browser uses. Following those jobs in order helps you distinguish a local delivery problem from a routing problem or an application problem. You will also see why the seven layers describe functions even when one program or protocol handles several of them.

1.1 Explain why networks are described in layers

A network exchange requires several jobs, from creating a message to sending signals. A layered model separates those jobs. Each layer uses the service directly below it and supplies a service to the layer directly above it.

Keep the jobs separate

A laptop can switch from Wi-Fi to Ethernet while its browser continues using the same web protocol. The local delivery method changes without changing the application service. Published standards also let different vendors' systems work together—interoperability—and give technicians a shared vocabulary such as “Layer 2 fault.” Designers and learners can examine one job at a time.

A protocol defines message formats, order, and responses. A protocol suite groups cooperating protocols, such as TCP/IP. A reference model describes communication functions without prescribing one implementation.

The Open Systems Interconnection (OSI) model comes from the International Organization for Standardization (ISO). Its first edition appeared as ISO 7498 in 1984; the later basic reference is ISO/IEC 7498-1:1994, also published as ITU-T X.200. Internet traffic uses the TCP/IP suite; OSI provides the seven-layer vocabulary used to describe it.

Follow the stack

Number the layers upward from the medium:

  1. Physical
  2. Data Link
  3. Network
  4. Transport
  5. Session
  6. Presentation
  7. Application

“Please Do Not Throw Sausage Pizza Away” recalls 1–7. “All People Seem To Need Data Processing” recalls 7–1. Layers 1–3 are often called media layers and 4–7 host layers.

A sender works downward, from Application to Physical. Signals cross the medium, and the receiver works upward. Matching layers are logical peers: the two TCP implementations follow TCP rules even though the actual data travels through IP, local links, and signals between them.

Picture the handoff

A writer composes a letter, an addressed envelope supports delivery, and vehicles carry it. The driver can carry the sealed letter without understanding its contents. Similarly, each lower layer carries the upper layer's data as payload and adds control information, usually a header.

Real protocols can combine functions. TLS performs encryption associated with Presentation, while ARP connects local MAC delivery with IP addressing. Their placement depends on their job and the model being used.

Key Takeaways

  • A layer supplies a service upward and uses a service below it.
  • Protocols define communication rules; a suite groups cooperating protocols.
  • OSI describes seven layers; Internet traffic uses the TCP/IP suite.
  • Senders work down the stack and receivers work up it.

The first three OSI layers move data through the network. They describe three different units of work: signals, local frames, and packets that can cross networks.

Layer 1: send bits as signals

The Physical layer represents bits using electrical signals on copper, light in fiber, or radio waves over Wi-Fi. It defines details such as connectors, pin layouts, signal levels, frequencies, and bit rates. A twisted-pair Ethernet connection might use an RJ45 connector and operate at 1 Gbit/s.

Physical transmission has no MAC or IP address decision. A signal carries a stream of bits; the higher layers decide how those bits form messages and where those messages belong.

Layer 2: deliver a frame on the local link

The Data Link layer puts data into frames for delivery on a local link or network segment. Ethernet and Wi-Fi use MAC addresses to identify interfaces. A usual MAC address is 48 bits, written as six hexadecimal pairs, such as 00:1A:2B:3C:4D:5E.

IEEE describes two Layer 2 sublayers. Logical Link Control (LLC) provides the interface toward Layer 3 and protocol identification functions. Media Access Control (MAC) handles local addressing and access to the medium. Ethernet is IEEE 802.3; Wi-Fi is IEEE 802.11. Both include Physical and Data Link functions. PPP is another Data Link protocol, used on point-to-point links.

Ethernet adds a frame check sequence (FCS) at the end of a frame. The receiver uses this check to detect corruption. A failed check causes the frame to be discarded. Standard Ethernet does not resend the frame to repair that loss; a higher-layer protocol such as TCP can recover missing data when reliability is required.

Layer 3: reach a host across networks

The Network layer packages data into packets. It uses logical addresses: IPv4 addresses contain 32 bits and IPv6 addresses contain 128 bits. Routing chooses how packets travel between networks. A router reads the destination IP address and selects a path toward it.

IPv4 and IPv6 belong here, along with ICMP, which carries control and error messages used by tools such as ping. IPsec protects IP traffic. IPv4's time to live (TTL) and IPv6's hop limit prevent endless forwarding loops: each router reduces the value by one, and a packet whose value expires is discarded.

Trace a wireless request

A laptop requests a page from a server on another network. The radio signal leaving the laptop is Layer 1. Its Wi-Fi frame reaches the access point at Layer 2. The access point bridges the traffic onto Ethernet, where a frame carries it toward the local router. The IP packet inside names the laptop and remote server as its endpoints.

QuestionLayerInformation used
How are bits transmitted?1 PhysicalSignals and medium
Who receives this local frame?2 Data LinkMAC address
Where should this packet go across networks?3 NetworkIP address

A remote server's IP address can stay in a packet while each router builds a new frame for the next link. Treating the MAC address as an end-to-end destination confuses the local delivery job with routing.

Key Takeaways

  • Physical sends bits through copper, fiber, or radio.
  • Data Link delivers frames locally using MAC addresses.
  • An Ethernet FCS detects damage; standard Ethernet discards damaged frames.
  • Network uses IP addresses and routing to cross networks.
  • TTL or hop limit decreases at each router.

1.3 Describe Layers 4–7: Transport, Session, Presentation and Application

The upper OSI layers describe delivery to programs and the services those programs use. A working IP route reaches a host; it does not by itself identify the receiving program or explain the message format.

Layer 4: reach the program

The Transport layer delivers data between processes—running programs—using port numbers. TCP supplies reliable, ordered byte-stream delivery and divides data into segments. UDP carries independent datagrams.

Transport multiplexing lets a browser, mail client, and call program share one interface while keeping their conversations distinguishable. The IP address identifies a host; transport information identifies the service or conversation on that host.

Layers 5 and 6: manage and represent

The Session layer, Layer 5, establishes, manages, and ends application dialogs. Dialog control determines which side sends when; checkpoints let an interrupted exchange resume from a recorded point. RPC and NetBIOS session service are common examples of session work.

The Presentation layer, Layer 6, handles representation, compression, and encryption. ASCII and UTF-8 represent text; JPEG and PNG represent images; MPEG represents video. Compression reduces the amount to send. TLS encryption is commonly mapped to Presentation in OSI descriptions.

Layer 7: supply a network service

The Application layer contains protocols programs use directly. HTTP and HTTPS serve the web; SMTP sends mail; IMAP and POP3 retrieve it. DNS resolves names, DHCP supplies automatic network settings, FTP and SFTP transfer files, and SSH supplies secure remote command-line access.

A browser is the program using HTTP. HTTP is its network protocol. Treating the entire program as the layer would include local browser actions that never communicate over a network.

Read an email exchange
LayerFunction when sending a photo
7 ApplicationSMTP submits the message.
6 PresentationUTF-8 represents text; JPEG represents the image; TLS protects the exchange.
5 SessionThe applications maintain their dialog.
4 TransportTCP delivers bytes to the mail server's submission service.

TCP 587 is a common submission endpoint, normally upgraded to TLS with STARTTLS. In TCP/IP, the session and presentation work belongs to Application. These OSI rows describe functions, so they need not correspond to four separate software modules.

Key Takeaways

  • Transport uses ports to deliver data between programs.
  • Session manages application dialogs and checkpoints.
  • Presentation handles representation, compression, and encryption.
  • Application protocols supply services that programs use.
  • TCP/IP groups OSI Layers 5–7 into its Application layer.
2

Compare the TCP/IP model with the OSI model

Network diagrams may show four, five, or seven layers while describing the same exchange. Mapping the jobs between these views makes those diagrams easier to read. TCP/IP groups some OSI functions together because it describes the protocols that real Internet systems use. Protocol placement then depends on the job a protocol performs, with its carrier providing a useful clue and boundary cases needing a closer look.

2.1 Map the TCP/IP model onto the OSI model

OSI and TCP/IP group the same communication jobs differently. Match the functions to compare their diagrams.

Four Internet layers

TCP/IP grew from research funded by the Defense Advanced Research Projects Agency (DARPA) in the 1970s. ARPANET adopted it on January 1, 1983. Specifications appear as Requests for Comments (RFCs), with Internet standards work through the Internet Engineering Task Force (IETF). TCP and IP name the suite, which also includes UDP, ICMP, ARP, DNS, and other protocols.

RFC 1122 describes four layers:

TCP/IP layerOSI matchFunction
Application5 Session, 6 Presentation, 7 ApplicationDialogs, representation, application services
Transport4 TransportDelivery between programs
Internet3 NetworkIP addressing and routing
Link1 Physical, 2 Data LinkLocal signals and frames

Application includes HTTP, DNS, and SMTP. Transport includes TCP and UDP; Internet includes IP and ICMP; Link includes Ethernet and Wi-Fi. Link is also called Network Access or Network Interface, and some books call Internet “Network.”

Matching TCP/IP Application only to OSI 7 would leave out session and presentation functions. They still happen, but TCP/IP groups them with the applications that need them.

Why a fifth layer appears

The five-layer teaching model splits Link into Data Link and Physical. Its full order is Application, Transport, Network, Data Link, Physical. Kurose–Ross and many networking courses use it to distinguish local framing from signaling. Its lower four layers match OSI 1–4 individually.

OSI was designed as a general reference framework before most associated protocols existed. TCP/IP's model describes a suite already in use. This helps explain why OSI gives separate upper-layer categories while Internet software often combines their work.

Map an HTTPS exchange

For HTTP/2 over HTTPS, HTTP and TLS belong to TCP/IP Application. TCP supplies Transport delivery to server port 443. IP supplies Internet addressing; Ethernet supplies Link framing and signaling.

Network staff still use OSI numbering for numbered descriptions: “Layer 3 routing,” “Layer 2 switch,” or “Layer 7 load balancer.” Counting Internet as the second box from the bottom of four-layer TCP/IP would misread that shorthand.

Key Takeaways

  • TCP/IP has Application, Transport, Internet, and Link layers.
  • TCP/IP Application covers OSI Layers 5–7; Link covers Layers 1–2.
  • The five-layer model separates Link into Data Link and Physical.
  • Numbered layer descriptions use OSI numbering.

2.2 Place common protocols at the right layer

To place a protocol, first ask what work it performs. Then examine what carries its messages. The carrier often narrows the choice, but the function decides when a protocol combines jobs or is built above another transport.

Start with the main job

HTTP, DNS, DHCP, FTP, SFTP, TFTP, SSH, Telnet, SMTP, IMAP, POP3, SNMP, NTP, LDAP, SMB, RDP, SIP, and syslog supply services to applications. They belong to OSI Application and TCP/IP Application. Character encodings such as ASCII and UTF-8, media formats such as JPEG and MPEG, and encryption describe Presentation functions; RPC is a common Session example.

TCP and UDP perform Transport work. IPv4, IPv6, ICMP, ICMPv6, GRE tunneling, and IPsec's AH and ESP perform Network/Internet work. OSPF exchanges routing information directly inside IP and is also placed at Layer 3.

Ethernet framing, Wi-Fi MAC functions, PPP, VLAN tagging (802.1Q), and Spanning Tree Protocol (STP) are Data Link functions. Copper or fiber signaling, connectors, 1000BASE-T, and Wi-Fi radio transmission are Physical functions. Ethernet and Wi-Fi each span both lower layers.

Distinguish a service from the information it handles

DNS (Domain Name System) looks up information about names, including IP addresses, but it serves applications and travels over UDP or TCP port 53. DHCP (Dynamic Host Configuration Protocol) supplies IP settings, but its messages use UDP server port 67 and client port 68. Handling an IP address does not make either service a Network-layer protocol.

ICMP (Internet Control Message Protocol) reports on IP delivery and carries echo messages for ping. It is carried directly by IP and has no TCP or UDP ports. Its Network-layer placement follows its control role, not the presence of a separate header inside IP.

Place protocols that cross a boundary

ARP (Address Resolution Protocol) finds the MAC address associated with an IPv4 address on the local link. Its messages are carried directly in Ethernet frames, without an IP header. ARP supports IP delivery through local MAC delivery, so it is conventionally placed at Layer 2; the informal label “Layer 2.5” describes that boundary role.

TLS provides encryption. For HTTP/1.1 and HTTP/2, HTTPS carries HTTP inside TLS over TCP. TLS belongs to TCP/IP Application and is commonly mapped to OSI Presentation. The word “Transport” in its full name, Transport Layer Security, does not make TLS a peer of TCP or UDP.

QUIC is carried inside UDP but supplies transport functions, including reliable streams and connection management. HTTP/3 uses QUIC, with a TLS 1.3 handshake built into QUIC setup and encryption of QUIC packets. This is why “inside UDP” is a useful clue, not a universal test for Application-layer placement.

For the same reason, SSH remains Application-layer even though it includes encryption. A protocol's complete purpose matters: secure remote login is an application service, while encryption by itself is a Presentation function.

Key Takeaways

  • Place a protocol by its job; use its carrier as supporting evidence.
  • DNS and DHCP are Application-layer services even though they handle IP information.
  • ICMP reports on IP delivery and has no transport ports.
  • ARP supports local delivery and is conventionally Layer 2.
  • TLS performs encryption; QUIC performs transport work above UDP.
  • Ethernet and Wi-Fi each include Physical and Data Link functions.
3

Follow data through the layers with encapsulation

An application message travels inside transport, IP, and local-link information. Following these nested units explains how a receiver finds the right program and how a router sends the same traffic onto a new link. The added bytes also affect frame size and the amount of useful data that fits. Work outward to count those bytes, then follow the packet across devices to see which fields change and which identify the endpoints.

3.1 Trace encapsulation and decapsulation through the stack

When data moves down a stack, each layer adds information needed for its own job. Encapsulation is this wrapping process. The upper layer's complete unit becomes the next layer's payload, meaning the contents being carried.

Build from the inside out

A header comes before the payload. A trailer comes after it. In an Ethernet/IP/TCP stack, TCP and IP each add a header; Ethernet adds both a header and an FCS trailer. Physical transmission represents the resulting frame as bits in signals.

The unit at a particular layer is its protocol data unit (PDU). Use these names as you trace a request:

LayerPDUImportant added information
5–7DataApplication content
4TCP segment or UDP datagramSource and destination ports
3PacketSource and destination IP addresses
2FrameSource and destination MAC addresses; FCS
1BitsPhysical signaling

Suppose a program sends an HTTP request over TCP. TCP adds its header, including ports and sequence information. IPv4 adds its header around that segment. Ethernet adds its header around the packet and an FCS after it. The request remains inside every larger unit; the layers are not replacing it with unrelated messages.

Identify the next protocol

The receiver needs a way to choose which protocol handles the payload. Ethernet's EtherType identifies IPv4 as 0x0800, IPv6 as 0x86DD, and ARP as 0x0806. ARP therefore goes directly from Ethernet to ARP processing, without passing through IP.

IPv4's Protocol field identifies TCP with 6, UDP with 17, and ICMP with 1. IPv6 calls its corresponding field Next Header. After transport processing, a destination port such as TCP 443 identifies the receiving service.

These are three different selectors. EtherType chooses the protocol inside a frame; the IP field chooses the protocol inside a packet; the destination port selects the receiving program. TCP and UDP ports do not appear in ICMP messages.

Unwrap at the receiver

Decapsulation removes the outermost layer first. The interface receives signals and recovers bits. Ethernet checks the FCS and uses EtherType to hand the payload to IP. IP checks delivery information and passes the payload to the named transport protocol. TCP processes its header and delivers application bytes to the receiving program.

The FCS is a 32-bit cyclic redundancy check (CRC) value for detecting damaged frames. It is removed with the local frame information, not delivered as part of the application's message.

Before each Ethernet frame, the Physical layer sends a 7-byte preamble and 1-byte start frame delimiter (SFD) for synchronization. These eight bytes are outside the counted Ethernet frame.

A switch reads frame information to forward locally. A router removes the incoming frame, examines IP, and makes another frame for the next link. An end host processes the stack all the way up to the application. Describing each layer's normal job helps explain why a router can forward encrypted content without reading the application's message.

Key Takeaways

  • Encapsulation makes an upper-layer unit the payload of a lower-layer unit.
  • TCP uses segments; UDP uses datagrams; IP uses packets; Ethernet uses frames.
  • EtherType, the IP Protocol field, and destination ports guide successive handoffs.
  • Decapsulation removes the outer wrapping first.
  • Ethernet adds the FCS trailer; the preamble and SFD are outside the frame size.

3.2 Calculate header overhead, MTU and segment sizes

Headers consume space along with application data. To calculate a transmitted size, name the stack, record its header sizes, and work outward. The largest permitted packet and the smallest permitted Ethernet frame both affect the result.

Know what each size counts
PartSize in bytes
Ethernet header and FCS14 + 4 = 18
VLAN tag, when present4 more
IPv4 header without options20
IPv6 base header40
TCP header without options20
UDP header8

IPv4 and TCP headers can each grow to 60 bytes with options. The MTU, or maximum transmission unit, counts the Layer 3 packet. Standard Ethernet has a 1,500-byte MTU, producing a 1,518-byte frame with its 18 bytes of link overhead, or 1,522 bytes with a VLAN tag. Jumbo frames commonly use an MTU of 9,000 bytes when enabled.

MSS, maximum segment size, counts TCP application data. With no IP or TCP options, the available TCP payload is:

1500−20−20=1460

For IPv6 without extension headers or TCP options, it is:

1500−40−20=1440

Adding Ethernet overhead to the MTU would overstate the space available inside the packet.

Work one frame from the inside out

For 1,000 bytes of HTTP data over TCP, IPv4, and untagged Ethernet, with no options:

  1. TCP segment: 1,020 bytes, from the data plus 20.
  2. IP packet: 1,040 bytes, after adding another 20.
  3. Ethernet frame: 1,058 bytes, after adding 18.

Overhead is 58 bytes. The useful-data share is:

10001058×100≈94.5%

With the same stack, a 4,000-byte application transfer using an MSS of 1,460 needs three segments: 1,460, 1,460, and 1,080 bytes of data. Their frames are 1,518, 1,518, and 1,138 bytes. The total is 4,174 bytes, including 174 bytes of headers and trailers. Each segment needs its own set of headers.

Small messages and minimum frames

A 40-byte DNS query over UDP and IPv4 becomes a 48-byte datagram, a 68-byte packet, and an 86-byte untagged Ethernet frame. Its useful-data share is about 46.5%. A full 1,460-byte TCP payload occupies about 96.2% of its 1,518-byte frame.

Ethernet frames must be at least 64 bytes, with at least 46 bytes of payload. A TCP acknowledgment carrying no application data has a 40-byte IPv4 packet with minimum headers. Ethernet adds 6 bytes of padding before its FCS, giving a 64-byte frame.

Keep the boundaries straight

TCP segmentation divides application data at Layer 4. IP fragmentation divides a packet at Layer 3 when it is too large for a link. IPv4 routers can fragment when permitted; IPv6 routers never fragment, so the sender must adapt to the path's size limit.

Frame sizes here exclude the preamble, SFD, and time between frames. To convert a frame's bytes to bits, multiply by eight: a 1,518-byte frame contains 12,144 bits.

Key Takeaways

  • MTU counts the IP packet; MSS counts the TCP application payload.
  • Standard untagged Ethernet adds 18 bytes outside the packet.
  • IPv4/TCP without options leaves 1,460 data bytes in a 1,500-byte MTU.
  • Every segment needs its own headers and frame overhead.
  • Small Ethernet payloads need padding to reach the minimum frame size.
  • Segmentation is Layer 4; fragmentation is Layer 3.

3.3 Follow a packet hop by hop across networks

A packet can cross several networks, but an Ethernet frame serves one local link. Following both units at once explains why a host needs the remote IP address and a nearby MAC address for the same exchange.

Address the next local receiver

Consider a laptop at 192.0.2.10, with MAC label AA. A router R1 joins its network to a server's network. R1 has MAC label R1-A on the laptop side and R1-B on the server side. The server is 198.51.100.20, with MAC label SS. These short MAC labels stand for full interface addresses.

The laptop recognizes that the server is remote. Its default gateway, R1, is the next receiver on the local link. ARP supplies the gateway's MAC address. For a TCP connection to server port 443, the nested addresses are:

FieldValue leaving the laptop
Frame source MACAA
Frame destination MACR1-A
Packet source IP192.0.2.10
Packet destination IP198.51.100.20
TCP destination port443

The laptop does not use SS as the local destination MAC. SS belongs to the final host on a different network; R1-A belongs to the device that can receive this first frame.

Pass a switch and a router

A Layer 2 switch reads the destination MAC, finds the port toward R1-A, and forwards the frame. Ordinary switching does not replace the source and destination MAC addresses.

R1 checks the received frame's FCS and removes its header and trailer. It reads the destination IP, looks up the route, and reduces TTL by one. It then creates a new frame on the server-side link. That frame has source R1-B and destination SS, learned through ARP. Its FCS covers this new frame.

The source and destination IP addresses and TCP ports remain the same along this ordinary routed path. The IP header is not wholly unchanged: TTL decreases, and IPv4's header checksum is updated. Network address translation (NAT) is an exception to endpoint-address preservation because it rewrites IP addresses and often ports.

Count router hops with TTL

A packet sent with TTL 64 reaches the destination with TTL 61 after three router forwarding steps. If a router reduces TTL to zero, it discards the packet and normally returns ICMP Time Exceeded. IPv6 uses a hop-limit field for the same loop-limiting purpose.

traceroute on Linux or macOS and tracert on Windows use probes with changing TTL values to discover responding hops. A * means no reply arrived for that probe. The router might still forward traffic while filtering or limiting diagnostic replies, so compare later replies and service tests before naming a failure point.

Return to the client

The server removes the local frame and processes the packet and TCP segment up to the web service. A reply reverses the endpoint roles: the server's IP and port become the source, and the laptop's IP and client port become the destination. Routers again create frames for their outgoing links. The return path can use different routers, but each local frame still targets its next receiver.

Key Takeaways

  • A remote packet is sent in a local frame addressed to the default gateway.
  • Ordinary switches preserve the frame addresses; routers build new link frames.
  • IP endpoints and ports stay fixed on an ordinary routed path; NAT can rewrite them.
  • TTL falls once per router forwarding step.
  • A silent traceroute hop may still forward traffic.
4

Compare TCP and UDP and identify services by port

A reachable host may offer many services at once, each with different delivery needs. TCP and UDP provide different transport behavior, while port numbers let hosts keep conversations apart. Linking service names to both their ports and transports helps you read captures, choose firewall rules, and diagnose a failed connection. Similar service names need special care because encryption can be provided in different ways.

4.1 Compare TCP and UDP and choose between them

TCP and UDP both use ports to carry data between programs at Layer 4. The choice depends on what the application needs when packets are delayed, lost, or delivered out of order.

What TCP supplies

Transmission Control Protocol (TCP) is connection-oriented. A three-way handshake—SYN, SYN-ACK, ACK—sets up the connection before normal data exchange. Acknowledgments tell the sender what has arrived, and retransmission recovers missing data. Sequence information allows TCP to present bytes in order.

Flow control protects a receiver from a sender that is too fast. Congestion control adjusts sending to network load. These are different problems: one concerns the receiving host's capacity; the other concerns the network carrying the traffic. TCP's header is 20 bytes without options and can reach 60 bytes.

TCP supplies a reliable, ordered byte stream, but a failed connection can still leave an application with an incomplete file. The application must handle the failure or resume the operation; TCP cannot make an unavailable path deliver data.

What UDP supplies

User Datagram Protocol (UDP) is connectionless. It sends independent datagrams without a transport handshake, acknowledgments, retransmission, or reordering. Its 8-byte header contains source port, destination port, length, and checksum.

UDP can support one-to-one, broadcast, and multicast traffic. A TCP connection joins two endpoints. UDP's smaller header and lack of built-in recovery reduce transport overhead, but “unreliable” describes its lack of delivery guarantees, not an expectation that most traffic will be lost.

PropertyTCPUDP
SetupConnection handshakeNo UDP handshake
Missing dataAcknowledgment and retransmissionNo UDP recovery
Delivery orderOrdered byte streamIndependent datagrams
Header20–60 bytes8 bytes
Typical needsComplete files, email, remote loginTimely calls, short queries
Choose for the application's deadline

A live voice packet might contain 20 ms of sound. If it is lost, a replacement arriving 100 ms later is too late for its playback moment. A call can continue with a small gap, making UDP a useful fit. A downloaded document needs all its bytes in order, so TCP's recovery fits the task.

Short requests such as DNS, DHCP, NTP, and SNMP also commonly use UDP. DNS additionally uses TCP port 53 for zone transfers and when a response needs TCP. SIP call setup can use either UDP or TCP on port 5060.

Applications can add functions above UDP. TFTP acknowledges its blocks, and QUIC provides reliable encrypted connections over UDP. Consequently, seeing UDP on a capture does not tell you that the application lacks recovery.

On-demand video often buffers ahead and uses HTTPS over TCP or HTTP/3 over QUIC. “Video means UDP” misses the difference between a live conversation with an immediate deadline and stored video with time to recover missing data.

Key Takeaways

  • TCP supplies an ordered byte stream with acknowledgments and retransmission.
  • UDP sends independent datagrams without built-in recovery or ordering.
  • Flow control protects receivers; congestion control responds to network load.
  • Choose transport behavior based on completeness and timing needs.
  • Applications such as QUIC can add reliability above UDP.
  • Stored video and live calls need different handling of delay.

4.2 Explain port numbers and sockets

An IP address identifies a host, but many programs can use that host at once. TCP and UDP each add source and destination port numbers so incoming data can reach the correct service or conversation.

Separate services and client conversations

A port is a 16-bit number from 0 to 65,535. A server listens for traffic on a known port, such as TCP 443 for HTTPS. A client normally chooses a temporary source port, called an ephemeral port, when it opens a connection.

RFC 6335 groups the numbers as follows:

RangeNameNumber of values
0–1023System or well-known1,024
1024–49151User or registered48,128
49152–65535Dynamic or private16,384

IANA assigns system and user ports; dynamic ports are not assigned. The dynamic range and an operating system's actual temporary-port range are separate concepts. Default Windows temporary ports use 49152–65535, while Linux commonly uses 32768–60999. An administrator can change these settings.

Identify an endpoint and a connection

A socket identifies a transport endpoint by IP address, port, and transport protocol. For example, TCP 198.51.100.20:443 identifies an HTTPS server endpoint. TCP 53 and UDP 53 are separate ports because TCP and UDP have separate number spaces.

A connection is identified using the 5-tuple: source IP, source port, destination IP, destination port, and transport protocol. Those values distinguish conversations even when several clients use one server port.

Suppose 192.0.2.10 opens two TCP connections to 198.51.100.20:443. One uses client port 51514 and the other uses 51515. Their server endpoint is identical, but their source ports differ. The server can therefore return each reply to the right connection. Some browsers reuse connections; the example describes two distinct connections that have been opened.

On a reply in the first conversation, the source becomes 198.51.100.20:443 and the destination becomes 192.0.2.10:51514. Port 443 does not become the client port simply because the direction has reversed.

Read port evidence carefully

A configured service can use a nonstandard port. HTTP might use 8080 and SSH might use 2222. The number suggests a conventional service but does not establish the content actually being sent. A firewall that looks only at ports makes a limited classification; application inspection can examine the traffic itself.

A physical switch port is a cable connection on an interface. A transport port is a number in a TCP or UDP header. Replacing a cable affects physical connectivity, while permitting TCP 443 changes which transport traffic may pass. The shared word “port” does not make these the same kind of object.

Key Takeaways

  • Ports distinguish programs and conversations on a host.
  • Servers listen on service ports; clients normally choose temporary source ports.
  • A socket identifies an endpoint; the 5-tuple identifies a conversation.
  • TCP and UDP have separate port number spaces.
  • A conventional port suggests a service but does not verify its content.

4.3 Recognize well-known protocols by port and transport

Learn a service's transport and port together. TCP 53 and UDP 53 are separate transport endpoints, even though both can serve DNS. Grouping related services also makes similar names easier to distinguish.

Web, remote access, and files
ServiceTypical transport and portPurpose or distinction
HTTP / HTTPSTCP 80 / TCP 443Web; HTTP/3 uses QUIC on UDP 443
SSH / TelnetTCP 22 / TCP 23Encrypted / plain-text remote shell
RDPTCP and UDP 3389Remote desktop
FTPTCP 21 control; TCP 20 active dataSeparate command and data connections
SFTPTCP 22File transfer inside SSH
FTPSTCP 21 explicit; TCP 990 implicitFTP protected by TLS
TFTPUDP 69 initiallySimple file transfer without login
SMBTCP 445File and printer sharing

Explicit FTPS starts on 21 and upgrades to TLS. Implicit FTPS starts with TLS on 990. TCP 989 is registered for implicit FTPS data; passive transfers negotiate data ports. SFTP is a different protocol inside SSH, so changing FTP to port 22 does not turn it into SFTP.

Email and directory services

SMTP uses TCP 25 for server-to-server relay. Clients normally submit on TCP 587 with STARTTLS, or TCP 465 with TLS from the start. IMAP retrieval uses TCP 143, with implicit TLS on TCP 993. POP3 retrieval uses TCP 110, with implicit TLS on TCP 995.

LDAP directory queries use TCP 389; LDAP over implicit TLS, or LDAPS, uses TCP 636. A secure service may also upgrade an existing connection where supported, so a different port is not the only way protocols add TLS.

Infrastructure and management
ServiceTypical transport and port
DNSUDP and TCP 53
DHCPUDP 67 server; UDP 68 client
NTP time synchronizationUDP 123
SNMP queries / trapsUDP 161 / UDP 162
Syslog messagesUDP 514
Microsoft SQL ServerTCP 1433
SIP call setupUDP or TCP 5060; TLS on TCP 5061

Most ordinary DNS queries use UDP; zone transfers use TCP, and clients also need TCP for responses that require it. SNMPv3 can add authentication and encryption while retaining ports 161 and 162. Syslog can use other transports in deployed systems; UDP 514 is the common baseline listed here.

Do not confuse IP protocol numbers with ports

The IP header's Protocol field identifies what IP carries: ICMP 1, TCP 6, UDP 17, GRE 47, ESP 50, and AH 51. TCP and UDP then supply their own port fields. ICMP, GRE, ESP, and AH have no TCP or UDP ports. A rule permitting TCP port 1 therefore does not permit ICMP echo traffic.

For a web server using HTTP/2 over TLS, allow inbound TCP 443. If the same server offers HTTP/3, its QUIC traffic needs UDP 443. A DNS rule allowing only UDP 53 can pass small queries yet block required TCP exchanges. Match the rule to the actual transport and server destination port.

Key Takeaways

  • Learn transport and port as a pair, especially for DNS and HTTPS.
  • SFTP uses SSH on TCP 22; FTPS uses FTP with TLS.
  • SMTP relay, client submission, and mail retrieval use different ports.
  • Security can change protocol behavior without changing the port, as with SNMPv3.
  • IP protocol numbers identify encapsulated protocols and are distinct from ports.
  • A service may need both TCP and UDP rules.
5

Place devices at their layers and use the models to troubleshoot

Device names alone do not tell you how traffic is handled. A switch may also route, and a firewall may inspect anything from addresses to application content. The layers let you describe those functions and choose tests that match a reported fault. Start with the pattern of affected users and services, then gather evidence at the relevant layer so that each result leads to a useful next check.

5.1 Place network devices at their OSI layers

Place a device by the information it reads to decide how to handle traffic. The label describes a forwarding or inspection function. One physical box can contain several functions at different layers.

Signals, frames, and packets

Layer 1 devices handle signals. A repeater regenerates a signal; a hub repeats incoming signals to all other ports. A media converter connects media such as copper and fiber. A modem converts between digital data and signaling used on a provider's line. Power over Ethernet (PoE) supplies power through twisted-pair cabling to devices such as phones and access points, so it is a Physical-layer feature.

A Layer 2 switch learns source MAC addresses and their incoming ports. It uses the destination MAC to select an outgoing port. Broadcast frames and frames for unknown destinations are flooded to other ports in the same local network. A bridge performs the same basic job with fewer ports. A wireless access point bridges Wi-Fi and wired frames. A network interface card (NIC) handles Layers 1 and 2, including the interface's MAC address.

A router reads destination IP addresses and forwards packets between networks using a routing table. It separates the local broadcast domains. A Layer 3 switch combines local frame switching with routing, often between VLANs. The word “switch” alone does not establish whether the device can route.

Inspect transport or application information
Device functionInformation usedLayer
Packet-filter firewallIP, protocol, and ports3–4
Stateful firewallPacket fields plus connection stateCommonly 3–4
Next-generation firewallApplication identity and contentUp to 7
Load balancerIP and port, or application request4 or 7
ProxyRequests made on a client's behalf7
IDS/IPSTraffic patterns and application contentUp to 7

A host such as a laptop, server, or phone handles all seven OSI functions. A home “router” commonly combines a router, switch, access point, firewall, and sometimes modem. Its Wi-Fi bridging and packet routing are separate jobs inside the same case.

Count shared domains

A collision domain is a region in which simultaneous transmissions can interfere. A hub shares one domain across its ports. A switch separates its attached links. Modern full-duplex switched links have no collisions; traditional domain counting still shows how hubs differ from switches.

A broadcast domain contains devices that receive one another's broadcast frames. Hubs and ordinary switches pass those frames through. Routers separate broadcast domains, and VLANs can divide a switch into several of them.

For a router joining two switches, switch A with five computers has six occupied links including its router link. Switch B with three computers and a hub has five occupied links: three computers, one hub, and one router link. The four computers on the hub share its single switch-link collision domain. Traditional counting gives 11 collision domains and two broadcast domains, with no VLAN divisions.

Key Takeaways

  • Place a device by the highest-layer information used for its decision.
  • Hubs repeat signals; Layer 2 switches forward using MAC addresses.
  • Routers and Layer 3 switches route using IP addresses.
  • Firewalls and load balancers can work at different layers.
  • Hubs share collision domains; switches separate attached links.
  • Routers and VLAN boundaries separate broadcast domains.
  • A multifunction home router contains several distinct network roles.

5.2 Use the layers to choose a troubleshooting approach

Begin by asking who is affected, which services fail, and what changed. That pattern helps select a troubleshooting starting point.

Choose a direction
ApproachFirst checkUseful when
Bottom-upPower, cables, link lightsCause unknown or physical trouble likely
Top-downApplication settings and errorsOne application fails while others work
Divide and conquerA middle layer, often IPA quick test can narrow the search
Follow the pathSuccessive devicesA route or shared path needs investigation

Bottom-up verifies physical service, then local frames, routing, and higher services. It is thorough for an unknown cause, but can waste time when evidence already isolates an application fault. Top-down starts with the service and moves toward its lower-layer dependencies as needed.

Interpret the middle test

Divide and conquer commonly uses ping. A reply from the gateway supports the local IP/ICMP path to that gateway. A reply from a remote server supports the tested path to that server. Those results justify moving upward to names, transport ports, and the application.

A failed ping needs more investigation: the path may be broken, or ICMP may be filtered while the web service remains reachable. Confirm with a test of the actual service.

Follow the path examines devices along the route, often with traceroute or tracert. A silent hop may still forward traffic. Compare later replies and, where possible, tests from devices on either side before assigning a forwarding failure to that hop.

Let the symptoms guide the first check

Suppose every desk in one room loses all connectivity while nearby rooms work. Start bottom-up at shared equipment: switch power, its uplink, and link lights. Swapping a suspected cable for a known good one can test that dependency.

If one account cannot submit mail while browsing and other services work, start top-down with its server name, submission port, and error message. The narrower pattern points to a service-specific check.

Compare a failing device with a working one when possible. Change one item, repeat the same test, and record the result. Restore an unsuccessful change before trying another. Changing the cable, gateway, and DNS settings together can restore access without showing which change mattered.

Key Takeaways

  • Choose a troubleshooting starting point from the scope and pattern of failure.
  • Bottom-up starts with physical dependencies; top-down starts with the service.
  • A successful ping supports reachability for its tested path and traffic.
  • A failed ping also calls for checking filtering and the target.
  • Follow-the-path tests need confirmation when a hop stays silent.
  • Change one item at a time and record the result.

5.3 Match symptoms and tools to layers

A symptom suggests where to investigate; a test supplies evidence. Match the tool to the job you want to verify, and keep its destination, protocol, and result together when interpreting the answer.

Check signals and local delivery

At Layer 1, missing link lights, an unplugged cable, a powered-off device, excessive cable length, or interference can prevent communication. Inspect power and connectors, test the cable, or replace it with a known good cable.

At Layer 2, the physical link may be present while local frames fail. Wrong VLAN membership can separate devices that should share a local network. A duplex mismatch can cause poor performance and errors; rising CRC errors can also point toward signal or cabling trouble. Read switch interface statistics and compare both ends. arp -a shows learned IPv4-to-MAC mappings on a host.

On Cisco devices, show interfaces reports interface and line-protocol status. “up/up” indicates physical and data-link status are up. “down/down” often directs attention to power, cabling, or another physical problem. “up/down” means a physical link exists while the line protocol is down; an encapsulation mismatch is one possible cause.

Verify IP reachability and transport access

At Layer 3, check interface addresses and gateway settings with ipconfig on Windows, ip address on Linux, or ifconfig on macOS. Wrong settings or missing routes can prevent packets from reaching another network. Use ping for IP reachability and tracert on Windows or traceroute on Linux/macOS for responding hops.

At Layer 4, test the service's actual port. A server can answer ping while a firewall blocks TCP 443 or no web service is listening. In Windows PowerShell, use Test-NetConnection 203.0.113.25 -Port 443; on Linux or macOS, use nc -zv 203.0.113.25 443. On the server, ss on Linux or netstat can show listening ports and connections. A failed connection alone does not distinguish a firewall block from a stopped listener.

Inspect names and application behavior

At the upper layers, a failed name lookup, certificate error, incorrect server name, or failed login calls for application evidence. Use nslookup or dig to inspect DNS answers. Use a browser or curl to test HTTP/HTTPS and read the application's logs for service errors.

Work through a page failure

A laptop cannot open https://intranet.example.com. First, ping to its gateway succeeds. Next, ping to server IP 203.0.113.25 succeeds. These results support the local and routed paths used by those tests. If nslookup intranet.example.com cannot obtain an answer, investigate the DNS query and configuration at Application layer.

In a different result, the name resolves correctly and the server answers ping, but TCP 443 fails. Check the listener on the server and the relevant firewall rule. If TCP 443 connects and HTTPS reports a certificate error, move upward to the certificate and server-name configuration. Each test narrows the next question; it does not certify every kind of traffic on the network.

Key Takeaways

  • Inspect power, cables, and link lights for Physical-layer symptoms.
  • Use interface counters, VLAN checks, and ARP information for local delivery.
  • Use interface settings, ping, and route tracing for IP evidence.
  • Test the actual port and check the listener when a service cannot connect.
  • Use DNS tools, HTTP tests, and logs for upper-layer problems.
  • Interpret each test only for the path and traffic it exercised.

OSI and TCP/IP Models examples

5 Walkthroughs

1

Read a network exchange as seven jobs

13 steps
Follow a message from its application service to signals and distinguish the jobs at each OSI layer.
  1. 1
    IntroductionSeparate the jobs inside one exchange

    Sending an email needs several cooperating jobs: create the message, represent its content, reach the correct program, and carry it across links. OSI gives those jobs seven layer names. Follow the message downward to distinguish each function.

  2. 2
    AnalogyLet adjacent layers supply services

    Think of a letter traveling inside an addressed envelope and then inside a delivery vehicle. The writer does not need to choose the vehicle’s engine.

    A network layer similarly receives data from above and uses a service below it. The contents are carried without each lower layer having to understand their meaning. Published standards let independently built components agree on what they hand over.

  3. 3
    ExplanationDistinguish the model from the rules

    A protocol defines message formats, order, and responses. A suite, such as TCP/IP, groups cooperating protocols. A reference model, such as OSI, describes functions. One implementation can combine several functions; seven layers do not require seven programs.

  4. 4
    ChallengeChange the local connection

    A desktop changes from Ethernet to Wi-Fi. It still reaches the same website using the same web protocol. What does layering let it keep using?

    ---reveal---

    It can keep using its application and transport services while the lower local-link delivery changes. The browser does not have to adopt a new web protocol just because the bits now travel over radio.

  5. 5
    ExplanationStart with the actual signal

    Physical, Layer 1, sends bits as electrical signals, light, or radio. It defines media, connectors, frequencies, and bit rates. On fiber, light pulses represent the bit pattern; higher layers supply addressing and message structure.

  6. 6
    ExplanationDeliver locally in a frame

    Data Link, Layer 2, organizes bits into frames for local delivery. Ethernet and Wi-Fi use MAC addresses to identify interfaces. An Ethernet receiver checks the frame’s FCS for damage.

    If the check fails, standard Ethernet discards the frame. Reliability can be supplied above it, such as by TCP recovering missing bytes. Detecting corruption and recovering missing data are separate jobs.

  7. 7
    ExplanationRoute a packet across networks

    Network, Layer 3, routes packets by destination IP address. IPv4 addresses contain 32 bits; IPv6 addresses contain 128. Routers reduce TTL or hop limit so packets trapped in forwarding loops eventually expire.

  8. 8
    ChallengeChoose the destination on this link

    A laptop sends to a server on another network through its local gateway. Does its first frame name the server’s MAC address or the gateway’s MAC address, and where is the server named?

    ---reveal---

    The frame names the gateway’s MAC address, since it is the next local receiver. The packet inside names the server’s IP address. Local frame delivery and remote packet delivery use different destinations for the same traffic.

  9. 9
    ExplanationChoose the program on the host

    Transport, Layer 4, delivers between programs using port numbers. TCP carries an ordered byte stream; UDP carries independent datagrams.

    A host can have a browser, mail client, and call program active together. Transport information separates those conversations so that incoming data reaches the correct service or connection. This sharing is called multiplexing.

  10. 10
    ExplanationManage the dialog and representation

    Session, Layer 5, manages application dialogs. Turn control and checkpoints are examples of session functions.

    Presentation, Layer 6, handles data representation, compression, and encryption. UTF-8 gives text a shared representation; JPEG represents an image; TLS protects an exchange. In TCP/IP, these jobs are grouped into Application instead of appearing as separate layers.

  11. 11
    ExampleUse a network service

    Application, Layer 7, supplies protocols used by programs. A mail client uses SMTP to submit a message. The message may contain UTF-8 text and a JPEG image, and TLS can protect its exchange.

    The client is the program; SMTP is the network protocol. This distinction also holds for a browser using HTTP. Opening a local browser menu is not itself an HTTP exchange.

  12. 12
    ChallengeTrace the whole mail example

    A mail client encodes text, submits a message using SMTP, and relies on TCP to reach the server’s service port. Identify the OSI jobs for encoding, SMTP, TCP ports, and radio signaling.

    ---reveal---

    Encoding is Presentation (6); SMTP is Application (7); TCP ports are Transport (4); radio signaling is Physical (1). The same message can involve all these functions without each being a separate application.

  13. 13
    RecapRead downward and upward

    Senders work from Application down to Physical; receivers work upward. Matching layers are logical peers. To classify a step, identify its job: application service, representation, dialog, program delivery, routing, local frame delivery, or signaling.

2

Map the same traffic into OSI and TCP/IP

11 steps
Compare four-, five-, and seven-layer views and place protocols by their purpose.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionKeep the traffic and change the view
  2. 2
    ExplanationGroup the upper OSI functions
  3. 3
    ConnectionGroup local frames and signals
  4. 4
    ExampleDescribe an HTTP/2 connection
  5. 5
    ChallengeRecover the missing functions
  6. 6
    ExplanationUse the job and the carrier
  7. 7
    ExampleDo not classify by the data mentioned
  8. 8
    Key InsightHandle the boundary cases
  9. 9
    ChallengePlace a service by its purpose
  10. 10
    ChallengeCombine mapping and protocol placement
  11. 11
    RecapUse function as the anchor
3

Build a frame and follow it through a router

18 steps
Work through encapsulation, byte counts, and the changing local addresses along a routed path.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionFollow the unit and the boundary
  2. 2
    ExampleAdd the transport header
  3. 3
    ExampleWrap the segment in a packet
  4. 4
    ExampleWrap the packet in a frame
  5. 5
    ChallengeUnwrap and choose the handoffs
  6. 6
    ExampleCount one ordinary frame
  7. 7
    ExampleMeasure the useful share
  8. 8
    ExplanationFind the maximum TCP payload
  9. 9
    ExampleSplit a transfer before adding overhead
  10. 10
    Key InsightRemember the minimum as well as the maximum
  11. 11
    ChallengeCalculate a smaller message
  12. 12
    ConnectionDistinguish two kinds of splitting
  13. 13
    ExampleSend to the local gateway
  14. 14
    ExampleBuild a fresh frame at the router
  15. 15
    TipRead the path test with care
  16. 16
    ChallengeTrace the reply’s local and remote fields
  17. 17
    ChallengeCombine a size and a router hop
  18. 18
    RecapKeep three boundaries separate
4

Choose a transport and identify the service

16 steps
Connect application needs with TCP or UDP, then follow ports through a conversation and select service rules.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionAsk what delivery the program needs
  2. 2
    ExplanationRecover an ordered stream with TCP
  3. 3
    ExplanationSend independent datagrams with UDP
  4. 4
    ExampleMatch recovery to the playback deadline
  5. 5
    ChallengeFind where reliability is provided
  6. 6
    ExampleFollow the first client port
  7. 7
    ExplanationDistinguish an endpoint from a connection
  8. 8
    TipRead ranges without overclaiming
  9. 9
    ChallengeSeparate two server conversations
  10. 10
    ExplanationPair related services
  11. 11
    ExampleSeparate SSH transfer from FTP with TLS
  12. 12
    ExplanationMatch mail ports to the actual role
  13. 13
    ChallengeChoose transports for a web and DNS rule
  14. 14
    Key InsightKeep protocol selectors out of the port list
  15. 15
    ChallengeCombine the service and its reply
  16. 16
    RecapJoin purpose, protocol, and endpoint
5

Use layer evidence to narrow a fault

16 steps
Classify device behavior, choose a troubleshooting approach, and interpret tests along an HTTPS path.

Save this lesson to follow every Walkthrough step by step.

  1. 1
    IntroductionTurn the complaint into a test
  2. 2
    ExplanationClassify the traffic decision
  3. 3
    ExampleFind several jobs in one box
  4. 4
    ExampleCount the domain boundaries
  5. 5
    ChallengeUse the field that makes the decision
  6. 6
    ExplanationChoose a starting direction
  7. 7
    ExampleSeparate local and remote reachability
  8. 8
    ChallengeSelect the first check from the pattern
  9. 9
    ExplanationRead physical and link evidence
  10. 10
    TipInspect the host and route
  11. 11
    ExampleTest the listener separately from ping
  12. 12
    ExampleCheck the name and application response
  13. 13
    ChallengeChoose from a sequence of results
  14. 14
    ChallengeInterpret silence along a working path
  15. 15
    ChallengeCombine the approach and the failing job
  16. 16
    RecapLet evidence choose the next test

OSI and TCP/IP Models practice questions

50 Practice Questions in 5 sets

Set 1: Connect services and test a remote path10 Practice Questions

Question 1 of 10

A technician uses “Layer 3 fault” to describe a routing problem on a TCP/IP network. What numbering is being used?
  1. Four-layer TCP/IP numbering
  2. Five-layer Application-first numbering
  3. OSI numbering
  4. Physical-interface numbering
Show answerHide answer
Answer: C
Numbered descriptions use OSI: Layer 3 is Network. Four-layer TCP/IP names the corresponding category Internet; counting its boxes from the bottom would give the wrong interpretation of this shorthand.

Question 2 of 10

A receiver detects a bad Ethernet FCS in a frame carrying part of a TCP transfer. What do Ethernet and TCP contribute to recovery?
  1. Ethernet discards it; TCP can recover missing data.
  2. Ethernet repairs it; TCP checks the destination IP.
  3. Ethernet resends it; TCP removes the frame trailer.
  4. Ethernet forwards it; TCP corrects the damaged bits.
Show answerHide answer
Answer: A
Standard Ethernet detects the damage and discards the frame; it does not repair or resend it itself. TCP can recover data that was not acknowledged by retransmitting it over a viable connection. Assigning the retransmission to Ethernet confuses local error detection with Transport-layer reliability.

Question 3 of 10

A diagram uses Application, Transport, Network, Data Link, and Physical. What change produced this five-layer view from four-layer TCP/IP?
  1. Application was split into Session and Presentation.
  2. Internet was split into Network and Transport.
  3. Transport was split into TCP and UDP layers.
  4. Link was split into Data Link and Physical.
Show answerHide answer
Answer: D
The five-layer model splits Link into Data Link and Physical. Its Application category still groups upper OSI functions; splitting Application instead would not produce the listed five layers.

Question 4 of 10

A link has MTU 1,280 bytes. A TCP connection uses IPv6 with a 40-byte base header, no extension headers, and a 20-byte TCP header. What is the largest TCP data payload that fits?
  1. 1,240 bytes
  2. 1,220 bytes
  3. 1,202 bytes
  4. 1,260 bytes
Show answerHide answer
Answer: B
The MTU limits the whole IP packet, so subtract both the 40-byte IPv6 header and the 20-byte TCP header to leave 1,220 data bytes. Subtracting only the IPv6 header leaves TCP uncounted. Ethernet frame overhead sits outside this packet limit and must not be subtracted from it again.

Question 5 of 10

A client sends a packet toward a remote server through a local switch and its gateway. No NAT is used. Whose destination MAC appears before the gateway, and whose destination IP appears inside?
  1. Server MAC; server IP
  2. Gateway MAC; server IP
  3. Gateway MAC; gateway IP
  4. Server MAC; gateway IP
Show answerHide answer
Answer: B
The first frame must reach the local gateway, which can forward toward the remote network. The packet inside still names the server as its IP destination. Using the server’s MAC on the client’s local link confuses the final IP endpoint with the next receiver available on that link.

Question 6 of 10

A sender slows because the receiving host cannot process more incoming data yet. What TCP function addresses this limit?
  1. Congestion control
  2. IP fragmentation
  3. Session checkpoints
  4. Flow control
Show answerHide answer
Answer: D
Flow control protects the receiving host from a sender it cannot keep up with. Congestion control responds to network load, which is a different constraint from the receiver’s processing limit stated here.

Question 7 of 10

A client at 192.0.2.44 uses TCP source port 53007 to connect to 198.51.100.63 on 443. Without NAT, what are the reply’s source and destination ports?
  1. Source 443; destination 53007
  2. Source 53007; destination 443
  3. Source 443; destination 443
  4. Source 53007; destination 53007
Show answerHide answer
Answer: A
Replies reverse the endpoints: source port 443 at the server, destination port 53007 at the client. Keeping 443 as the destination in both directions would misidentify the return conversation.

Question 8 of 10

A firewall permits UDP 53 to a DNS server but blocks TCP 53. Small queries work, but a DNS zone transfer fails. What rule is missing?
  1. Permit UDP 67 to the DNS server.
  2. Permit TCP 443 to the DNS server.
  3. Permit TCP 53 to the DNS server.
  4. Permit UDP 123 to the DNS server.
Show answerHide answer
Answer: C
DNS zone transfers need TCP 53. Permitting UDP 53 can support small queries while still blocking this exchange; DHCP on UDP 67 provides configuration and cannot carry the transfer.

Question 9 of 10

After a room move, every wired device in one room loses every network service; other rooms work. What starting approach best uses the pattern of evidence?
  1. Check each browser’s certificate store, then its proxy.
  2. Change every client’s DNS setting, then restart email.
  3. Check shared switch power and uplink, then move upward.
  4. Test each account’s password, then its mailbox quota.
Show answerHide answer
Answer: C
A failure shared by all wired devices and services points first toward their shared connection or equipment. Bottom-up checks of switch power and uplink match that pattern and the recent move. DNS deserves testing later if evidence supports it, but changing every DNS setting does not first test the common physical dependency.

Question 10 of 10

A server name resolves to its intended IP. The server replies to ping, but a TCP 443 test fails. The server’s listener listing shows no listener on 443. What should be investigated next?
  1. The HTTPS service and its listening configuration.
  2. The DNS record for the already resolved server.
  3. The client cable before checking the service.
  4. The IPv4 TTL value before checking the service.
Show answerHide answer
Answer: A
The port test isolates a connection problem, and the missing listener supplies direct server-side evidence: no service is ready on TCP 443. Investigate whether HTTPS is running and configured to listen there. A firewall could also block traffic, but changing its rule cannot create the absent server listener.
Set 2: Identify layers and follow the first exchange10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A workstation changes from Wi-Fi to Ethernet while its browser keeps using HTTP. What benefit of layering does this demonstrate?
  1. The same frame format works across every medium.
  2. One layer can change while higher services stay usable.
  3. The browser supplies its own local delivery service.
  4. The IP address replaces the need for local framing.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An interface represents bits as pulses of light. At what OSI layer is that work performed?
  1. Layer 2 Data Link
  2. Layer 3 Network
  3. Layer 6 Presentation
  4. Layer 1 Physical
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A receiving host uses a destination port to deliver data to the intended program. What OSI layer supplies that information?
  1. Layer 4 Transport
  2. Layer 3 Network
  3. Layer 5 Session
  4. Layer 7 Application
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

Where do Ethernet framing and cable signaling fit in the four-layer TCP/IP model?
  1. Both are Internet.
  2. Only signaling is Link.
  3. Both belong to Link.
  4. Only framing is Link.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A service supplies automatic IP settings through UDP messages. Where does the service fit in OSI, and why?
  1. Network, because its replies contain IP settings.
  2. Transport, because its messages use UDP headers.
  3. Application, because it supplies configuration as a service.
  4. Data Link, because newly connected clients use it.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A host receives an Ethernet frame carrying IPv4 and UDP. In what order does it process the protocol wrapping before delivering application data?
  1. Ethernet, IPv4, UDP
  2. UDP, IPv4, Ethernet
  3. IPv4, Ethernet, UDP
  4. Ethernet, UDP, IPv4
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

An application sends 720 bytes in one UDP datagram over IPv4 and untagged Ethernet. Use a 20-byte IPv4 header, an 8-byte UDP header, and 18 bytes of Ethernet overhead. What is the frame size?
  1. 748 bytes
  2. 758 bytes
  3. 778 bytes
  4. 766 bytes
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A live sensor sends current readings that become useless after the next reading arrives. The application accepts occasional gaps and wants no transport recovery delay. What transport fits those needs?
  1. TCP, with ordered stream recovery
  2. UDP, with independent datagrams
  3. TCP, with repeated missing readings
  4. UDP, with built-in retransmission
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A file-transfer client is configured for SFTP. What conventional server transport and port should it contact?
  1. TCP 22
  2. TCP 21
  3. TCP 990
  4. UDP 69
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A router connects two switches with no VLAN divisions. Switch A has two directly attached PCs. Switch B has four directly attached PCs and one hub with three more PCs. Count traditional collision domains and broadcast domains, including router links.
  1. 11 collision domains; 2 broadcast domains
  2. 9 collision domains; 2 broadcast domains
  3. 9 collision domains; 3 broadcast domains
  4. 8 collision domains; 1 broadcast domain
Show answerHide answer

Save this lesson to see this answer.

Set 3: Trace wrapping, replies, and diagnostic evidence10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

An exchange changes text to UTF-8 and compresses its content before transmission. What OSI function does that illustrate?
  1. Presentation
  2. Session
  3. Transport
  4. Data Link
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A capture shows HTTP/3 data carried over UDP. Why does that observation still allow reliable application streams?
  1. UDP retransmits each missing HTTP/3 datagram.
  2. IP changes each UDP datagram into a TCP segment.
  3. QUIC adds reliable transport functions above UDP.
  4. Ethernet guarantees delivery across the whole route.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An Ethernet receiver reads EtherType 0x0806. What protocol should receive the frame payload next?
  1. IPv4
  2. TCP
  3. UDP
  4. ARP
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

An application sends 3,100 bytes over IPv4/TCP with MSS 1,200. Each segment uses a 20-byte TCP header, 20-byte IPv4 header, and 18 bytes of untagged Ethernet overhead. What total frame bytes carry the data, excluding acknowledgments?
  1. 3,158 bytes
  2. 3,274 bytes
  3. 3,216 bytes
  4. 3,220 bytes
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A packet leaves with TTL 37 and is forwarded through four routers before reaching the destination host. What TTL reaches the host?
  1. 33
  2. 32
  3. 34
  4. 37
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A server receives two TCP connections from the same client IP to the same server IP and port. Both are active simultaneously. What field must differ between their 5-tuples?
  1. Server destination port
  2. Transport protocol
  3. Server destination IP
  4. Client source port
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A device sends an unsolicited SNMP trap to a manager. What conventional destination transport and port does it use?
  1. UDP 161
  2. UDP 162
  3. TCP 162
  4. UDP 514
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A load balancer chooses a backend server by the requested HTTP path. At what OSI layer does this selection work?
  1. Layer 4 Transport
  2. Layer 3 Network
  3. Layer 7 Application
  4. Layer 2 Data Link
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

One email client cannot submit mail, but that user can browse and reach other services. What troubleshooting approach fits the initial evidence?
  1. Bottom-up from every shared switch cable.
  2. Top-down from the mail settings and error.
  3. Follow the path to every responding router.
  4. Divide and conquer by changing the gateway.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A traceroute probe at hop 5 times out, but hops 6 and 7 reply and the target’s HTTPS service works. How should the hop 5 result be interpreted?
  1. Hop 5 is a confirmed failure in packet forwarding.
  2. Hop 5 confirms an application fault on the target.
  3. The trace confirms that every probe reached hop 5.
  4. Its probe reply is absent; forwarding can still work.
Show answerHide answer

Save this lesson to see this answer.

Set 4: Compare explanations and find hidden boundaries10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A colleague says a sender’s TCP layer physically sends data straight to the receiver’s TCP layer without using lower layers. How should the path be corrected?
  1. TCP peers communicate physically before IP is added.
  2. TCP peers bypass Link only when both use Ethernet.
  3. TCP peers become adjacent when their ports match.
  4. TCP peers communicate logically through lower-layer delivery.
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

An Ethernet frame carries an IP packet through a router onto a second Ethernet network. Which addressing belongs to the local delivery on the second network?
  1. New source and destination application ports.
  2. New source and destination MAC addresses.
  3. The original client-to-router MAC addresses.
  4. The source and destination IP addresses alone.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

A program maintains a dialog while encoding text and encrypting it. In four-layer TCP/IP, where are those upper OSI functions grouped?
  1. Application
  2. Transport
  3. Internet
  4. Link
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

What TCP/IP layer corresponds to OSI Network?
  1. Application
  2. Transport
  3. Internet
  4. Link
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A frame has EtherType 0x0800 and an IPv4 Protocol field of 1. A learner proposes a TCP destination-port-1 rule to permit this traffic. How should the encapsulated traffic and rule be interpreted?
  1. It carries TCP, so the destination-port-1 rule fits.
  2. It carries ICMP, which has no TCP or UDP ports.
  3. It carries UDP, so a UDP destination-port-1 rule fits.
  4. It carries ICMP, so a TCP source-port-1 rule fits.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A TCP segment is inside an IPv4 packet inside an Ethernet frame. What complete unit is Ethernet’s payload?
  1. The application bytes, excluding both inner headers.
  2. The TCP segment, excluding the IPv4 header.
  3. The IPv4 packet, including its TCP content.
  4. The Ethernet header, including the FCS trailer.
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A team must send a complete archive to one server and current live voice to many receivers. What baseline transport choices match completeness and delivery pattern?
  1. TCP for the archive; UDP for the live voice.
  2. UDP for the archive; TCP multicast for voice.
  3. TCP for both; one multicast TCP connection for voice.
  4. UDP for both; rely on UDP to recover archive loss.
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

A firewall records TCP to 198.51.100.40:443 and UDP to the same IP and port number. A colleague calls them one verified HTTPS endpoint. What further evidence is needed before confirming the applications?
  1. A shared client IP address for both flows.
  2. Matching port numbers on TCP and UDP.
  3. Dynamic client ports on both connections.
  4. Protocol or application-content evidence.
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A home device bridges Wi-Fi clients, routes IP packets between networks, and blocks connections by TCP port. What interpretation best describes its layer roles?
  1. It performs only Layer 3 because it is sold as a router.
  2. It performs only Layer 2 because clients use Wi-Fi.
  3. It combines Layer 2, Layer 3, and Layer 4 functions.
  4. It performs Layer 7 because every firewall reads HTTP.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A technician changes DNS, a gateway, and a cable together, and access returns. After restoring the original setup, changing DNS alone fails to restore access; changing the gateway alone also fails; swapping only the cable restores access. What conclusion do these tests support?
  1. The cable substitution is the supported effective change.
  2. The DNS change was required because it happened first.
  3. Both settings were required because each test failed.
  4. Every changed item was necessary to restore access.
Show answerHide answer

Save this lesson to see this answer.

Set 5: Combine packet sizing, service rules, and fault evidence10 Practice Questions

Save this lesson to see every answer and practice every set.

Question 1 of 10

A host examines logical source and destination addresses to process an IPv4 packet. What OSI layer is this?
  1. Data Link
  2. Network
  3. Transport
  4. Session
Show answerHide answer

Save this lesson to see this answer.

Question 2 of 10

A colleague places SSH at Presentation because it encrypts traffic. How should SSH be placed and why?
  1. Presentation: encrypted service content defines its layer.
  2. Transport: the encrypted channel carries program data.
  3. Application: secure remote login is its service.
  4. Network: secure remote access requires remote routing.
Show answerHide answer

Save this lesson to see this answer.

Question 3 of 10

An application sends 2,890 bytes over TCP/IPv6 on an untagged Ethernet link with MTU 1,500. Use a 40-byte IPv6 header, a 20-byte TCP header, no extension headers or options, and the largest fitting payloads. What are the frame sizes, including required padding?
  1. 1,518, 1,518, and 88 bytes
  2. 1,518, 1,518, and 68 bytes
  3. 1,518, 1,518, and 64 bytes
  4. 1,558, 1,558, and 88 bytes
Show answerHide answer

Save this lesson to see this answer.

Question 4 of 10

A client with MAC C sends to a remote server with MAC S through router R, whose incoming MAC is R-in and outgoing MAC is R-out. The server is directly on R’s outgoing link. Without NAT, what frame addresses leave R and what happens to packet TTL?
  1. Source C, destination S; TTL stays unchanged.
  2. Source R-in, destination S; TTL falls by one.
  3. Source R-out, destination R-in; TTL stays unchanged.
  4. Source R-out, destination S; TTL falls by one.
Show answerHide answer

Save this lesson to see this answer.

Question 5 of 10

A stored-video player buffers ahead and uses HTTP/2 over HTTPS. Why can TCP fit this application even though live calls often favor UDP?
  1. Buffering makes retransmission unnecessary.
  2. TCP sends buffered video as unordered messages.
  3. Stored video can tolerate permanent byte gaps.
  4. Buffering leaves time to recover missing bytes.
Show answerHide answer

Save this lesson to see this answer.

Question 6 of 10

A firewall must allow HTTP/3 web access and explicit FTPS control. What conventional destination rules match those two services?
  1. TCP 443 and TCP 990
  2. UDP 443 and TCP 22
  3. UDP 443 and TCP 21
  4. TCP 443 and UDP 69
Show answerHide answer

Save this lesson to see this answer.

Question 7 of 10

A mail client must submit with TLS from the start and retrieve mail using IMAP with TLS from the start. What conventional TCP destination ports should it use?
  1. 587 for submission; 143 for retrieval
  2. 465 for submission; 993 for retrieval
  3. 25 for submission; 995 for retrieval
  4. 465 for submission; 995 for retrieval
Show answerHide answer

Save this lesson to see this answer.

Question 8 of 10

Two VLANs share one switch. A Layer 3 function routes between them. Each VLAN contains one hub attached to a switch port, with three PCs on each hub. Ignoring other links, how many broadcast domains and shared hub collision domains are present?
  1. 2 broadcast domains; 2 shared hub collision domains
  2. 1 broadcast domain; 2 shared hub collision domains
  3. 2 broadcast domains; 6 shared hub collision domains
  4. 1 broadcast domain; 6 shared hub collision domains
Show answerHide answer

Save this lesson to see this answer.

Question 9 of 10

A laptop reaches a server by IP over TCP 443, but nslookup for its intended server name returns no answer. What should be tested next, and at what OSI layer?
  1. The DNS exchange and its IP answers at Network.
  2. The TCP 443 listener at Transport for naming.
  3. The MAC addresses in DNS answers at Data Link.
  4. The DNS query and configuration at Application.
Show answerHide answer

Save this lesson to see this answer.

Question 10 of 10

A server name resolves correctly, TCP 443 connects, and HTTPS reports a certificate-name mismatch. What is the most useful next check?
  1. Compare the requested name with the certificate configuration.
  2. Verify the server has an available listener on TCP 443.
  3. Correct the client gateway before inspecting TLS settings.
  4. Permit UDP 443 to repair this established TLS exchange.
Show answerHide answer

Save this lesson to see this answer.

Stuck on your own question? Homework Help

Key Terms

76 Key Terms, each with its definition

A

Access point
An access point bridges wireless clients onto a local network, commonly translating between Wi-Fi and Ethernet link-layer framing.
A laptop can reach a wired server through an access point without the access point acting as the IP router.
Application layer
The Application layer is OSI Layer 7, which supplies network services through protocols used directly by communicating programs.
A browser uses HTTP as an Application-layer protocol when it requests a page from a web server.
ARP
ARP is the protocol that resolves a local IPv4 address to a MAC address using messages carried directly inside link-layer frames.
Before sending a remote packet, a host can use ARP to find the MAC address of its local default gateway.

B

Bottom-up troubleshooting
Bottom-up troubleshooting starts with Physical-layer checks and proceeds upward until it finds the failing dependency.
When all desks on one shared switch lose connectivity, a technician checks that switch's power and uplink first.
Broadcast domain
A broadcast domain is the group of interfaces that receive one another's link-layer broadcast frames within a local network.
Two VLANs on one switch can form separate broadcast domains even though they share the same physical box.

C

Collision domain
A collision domain is a shared transmission region where simultaneous sends can interfere; full-duplex switched links do not collide.
Four computers attached through a hub share one collision domain on the hub's switch connection.
Congestion control
Congestion control adjusts sending to reduce pressure on an overloaded network path.
TCP can slow a transfer when the path is congested even though the receiving computer has spare capacity.

D

Data Link layer
The Data Link layer is OSI Layer 2, which organizes local delivery into frames and uses link-specific addressing and error checks.
An Ethernet switch forwards a local frame toward the port associated with its destination MAC address.
Decapsulation
Decapsulation is the receiver's process of reading and removing a layer's control information before passing its payload upward.
Ethernet processing removes the local frame wrapping before IP processing examines the packet inside.
Default gateway
A default gateway is the local router a host uses to send packets toward destinations for which it has no more specific route.
A client frames remote web traffic to its gateway's MAC address while retaining the web server's destination IP.
DHCP
DHCP is an Application-layer protocol that supplies hosts with automatic network configuration using UDP server port 67 and client port 68.
A newly connected laptop can receive IP settings through DHCP without making DHCP a Network-layer protocol.
Divide and conquer
Divide and conquer starts troubleshooting at a middle layer, then uses the result to decide which direction to investigate.
A remote ping reply leads the technician upward to a service-port test and application checks.
DNS
DNS is an Application-layer service that answers name-related queries, commonly using UDP and TCP port 53 for its exchanges.
A host can reach a server by IP while a failed DNS lookup prevents its configured server name from working.

E

Encapsulation
Encapsulation is the addition of a layer's control information around data received from above, making that data the new unit's payload.
TCP data becomes the payload of an IP packet, which in turn becomes the payload of an Ethernet frame.
Ephemeral port
An ephemeral port is a temporary transport port selected for a conversation, commonly used as a client's source port.
Two TCP connections from the same client to one server can use different ephemeral source ports.
EtherType
EtherType identifies the protocol carried in an Ethernet frame, such as IPv4, IPv6, or ARP.
EtherType 0x0806 directs a received Ethernet payload to ARP processing instead of IPv4 processing.

F

Firewall
A firewall permits or blocks traffic according to rules that can examine addresses, ports, connection state, or application content.
A rule blocking TCP 443 can prevent a web connection even while the same server answers ICMP echo requests.
Five-layer model
The five-layer model is a teaching version of the Internet stack that separates local Data Link functions from Physical transmission.
A five-layer diagram places Ethernet framing above physical signaling while keeping one Application layer.
Flow control
Flow control limits sending to avoid overwhelming the receiver's capacity.
TCP can limit a sender when the receiving host needs more time to process incoming bytes.
Follow the path
Follow the path examines successive devices along the traffic route to narrow where connectivity or forwarding changes.
The technician compares responding hops and service tests before blaming a router that stays silent.
Fragmentation
Fragmentation is the Network-layer division of an IP packet into smaller packets when required by a link's size limit.
An IPv6 router reports that a packet is too large instead of fragmenting it as an IPv4 router may do.
Frame check sequence
A frame check sequence (FCS) is a check value used to detect damage in a received frame.
An Ethernet receiver discards a frame when its calculated check does not match the received FCS.
FTPS
FTPS is FTP protected by TLS, using an explicit upgrade on TCP 21 or implicit TLS control on TCP 990, plus data connections.
A firewall rule for only the FTPS control connection may leave the separately negotiated data connection blocked.

H

Header
A header is a protocol unit's control information placed before its payload.
An IP header identifies the destination host, while a TCP header identifies the destination port.
Hop
A hop is a forwarding step between devices along a packet's network path.
A packet crosses three router hops before arriving with a TTL three lower than its starting value.

I

ICMP
ICMP is an Internet-layer control protocol that reports IP delivery information and carries diagnostic messages such as echo replies.
A successful ping receives an ICMP echo reply; the exchange does not use a TCP or UDP destination port.
Interface statistics
Interface statistics are measurements such as packet counts and error counters that help diagnose traffic handling on a network interface.
Rising CRC errors prompt checks of the link and both ends' interface settings before changing the application.
Internet layer
The Internet layer is the TCP/IP layer that handles IP addressing and packet delivery across networks, corresponding to OSI Layer 3.
A description of IP routing belongs to Internet in TCP/IP and Network in the OSI model.
Interoperability
Interoperability is the ability of systems to communicate through compatible standards.
A computer and a server from different manufacturers can exchange web traffic using the same published protocols.
IP protocol number
An IP protocol number identifies the protocol carried inside an IP packet, separately from any TCP or UDP port numbers within it.
IPv4 protocol 6 identifies TCP; TCP's own destination port then identifies the receiving service.

L

Layer
A layer is a defined group of communication functions that uses a service below it and supplies a service to the layer above it.
Switching a laptop from Wi-Fi to Ethernet changes its lower-layer service while its browser keeps using HTTP.
Link layer
The Link layer is the TCP/IP layer responsible for local network delivery, grouping OSI Data Link and Physical functions together.
Moving from Ethernet to Wi-Fi changes the local Link technology used to carry a host's IP traffic.
Listening port
A listening port is a transport endpoint on which a server program is ready to receive incoming connections or datagrams.
If no program listens on TCP 443, a successful ping alone will not let clients open an HTTPS connection.

M

MAC address
A MAC address is a link-layer interface address, usually 48 bits long, used to identify the local source or destination of a frame.
A laptop sends a remote server's packet inside a local frame addressed to the gateway's MAC address.
MSS
The maximum segment size (MSS) is the largest amount of TCP data sent in a segment, excluding its TCP header and the surrounding IP header.
With a 1,500-byte MTU and minimum IPv4/TCP headers, the TCP data limit is 1,460 bytes.
MTU
The maximum transmission unit (MTU) is the largest Layer 3 packet a link can carry as one unit, excluding the link's own frame overhead.
A standard Ethernet MTU of 1,500 bytes permits a 1,518-byte untagged frame including header and FCS.
Multiplexing
Multiplexing lets distinguishable conversations share a communication path.
Transport ports help a host send browser data to the browser conversation and call data to the call program.

N

Name resolution
Name resolution obtains addressing information for a name, commonly through DNS queries.
A failed lookup for portal.example.com can prevent access even while the server is reachable by IP.
NAT
Network address translation (NAT) rewrites IP addresses, and often transport ports, as traffic passes between networks.
A translated connection can have different source addresses on the two sides of a NAT router.
Network layer
The Network layer is OSI Layer 3, which uses logical addresses and routing to carry packets between source and destination networks.
A router reads a packet's destination IP address to choose its next outgoing network link.

O

Overhead
Overhead is transmitted control information added around useful application data.
Three TCP segments each need their own IP and Ethernet information, so their overhead must be counted three times.

P

Padding
Padding is extra content added to meet a minimum size without adding useful application data.
An Ethernet frame carrying a 40-byte IP packet needs 6 padding bytes to reach its 64-byte minimum size.
Payload
A payload is the content carried inside a protocol unit, excluding that unit's own control fields such as its header and trailer.
An entire IP packet is Ethernet payload, even though the IP packet has its own header inside it.
Peer communication
Peer communication is the logical exchange between matching layers on communicating devices.
The TCP layers on two hosts follow shared transport rules while lower layers carry their segments.
Physical layer
The Physical layer sends bits as electrical, optical, or radio signals at OSI Layer 1.
A broken fiber interrupts Physical-layer transmission even when the host's IP settings are correct.
Ping
Ping is a diagnostic tool that tests IP reachability using ICMP echo messages, subject to filtering and the target's response policy.
A server may reject ping probes while still accepting a TCP connection to its public web service.
PoE
Power over Ethernet (PoE) supplies electrical power over twisted-pair Ethernet cabling alongside the communication signals.
An IP phone can receive power through its Ethernet cable, making PoE a Physical-layer feature.
Port number
A port number is a 16-bit field in a TCP or UDP header that helps identify a program or conversation on the addressed host.
An HTTPS request typically goes to server TCP port 443 from a temporary client source port.
Presentation layer
The Presentation layer is OSI Layer 6, which handles data representation, including encoding, compression, and encryption functions.
UTF-8 text encoding and TLS encryption illustrate different Presentation-layer functions in an exchange.
Protocol
A protocol defines message formats, order, and responses for a communication exchange.
A TCP sender and receiver follow the same rules for acknowledging data and recovering missing bytes.
Protocol data unit
A protocol data unit (PDU) is the unit processed by a protocol layer, including its control information and the payload it carries.
The same request can be described inside a TCP segment, an IP packet, and an Ethernet frame.
Protocol suite
A protocol suite is a family of protocols designed to work together.
The TCP/IP suite combines IP delivery with transports and application services such as TCP, UDP, and DNS.

Q

QUIC
QUIC is a secure transport protocol carried over UDP that provides connection management and reliable streams for applications such as HTTP/3.
An HTTP/3 capture shows UDP traffic even though QUIC supplies reliability above the UDP layer.

R

Reference model
A reference model is a conceptual framework that separates communication functions into layers without requiring one implementation.
OSI helps a technician describe a routing fault as a Network-layer problem across different vendors' devices.
Router
A router forwards IP packets between networks by consulting destination addresses and a routing table, creating new outgoing link frames.
A router joins two local networks while keeping their ordinary link-layer broadcasts separate.
Routing
Routing selects paths for IP packets between networks using destination information.
A branch office router selects an outgoing interface for a packet traveling toward a remote office.

S

Segmentation
Segmentation is the Transport-layer division of application data into smaller pieces, such as TCP segments that fit an MSS.
A 4,000-byte transfer can use two full 1,460-byte TCP payloads followed by a smaller final payload.
Session layer
The Session layer, OSI Layer 5, establishes, manages, and ends application dialogs.
A checkpoint can let an interrupted long exchange resume from a recorded point instead of starting again.
SFTP
SFTP transfers files through SSH, conventionally on TCP 22, and is distinct from FTP with TLS.
Allowing SSH transport can support SFTP, but an FTPS client needs the FTP/TLS service instead.
SMTP
SMTP is the application protocol for sending email, with different conventional TCP ports for server relay and client submission.
A mail server relays to another server on TCP 25, while a user's client normally submits on 587 or 465.
SNMP trap
An SNMP trap is an alert sent by a managed device to a manager, conventionally using UDP 162 instead of the query port UDP 161.
A switch can send a trap when an interface changes state without waiting for the manager's next query.
Socket
A socket identifies a transport endpoint by IP address, port, and transport protocol.
TCP 198.51.100.20:443 names a server endpoint, but a whole connection also needs the client endpoint.
STARTTLS
STARTTLS is a protocol command that upgrades an existing application connection to TLS protection instead of starting with TLS immediately.
Mail submission on TCP 587 normally upgrades with STARTTLS, while TCP 465 begins with TLS protection.
Switch
A Layer 2 switch forwards local frames using destination MAC addresses and learns interface locations from incoming source MAC addresses.
The switch floods a broadcast to other ports in the same VLAN but selects one port for a known destination.
System port
A system port is a port number in the range 0–1023, also called a well-known port, reserved for standardized service assignments.
HTTP's TCP 80 falls in the system range, while a configured HTTP service may also run on another port.

T

TCP
TCP is a connection-oriented transport protocol that provides a reliable ordered byte stream using acknowledgments and retransmission.
A file transfer uses TCP recovery to fill gaps before delivering later bytes in the stream to the application.
TCP/IP model
The TCP/IP model describes Internet communication using Application, Transport, Internet, and Link layers that group cooperating protocols.
Ethernet framing and its physical signals both fit within Link in the four-layer TCP/IP model.
Three-way handshake
A three-way handshake is TCP's connection setup exchange of SYN, SYN-ACK, and ACK before normal application data transfer.
A client and server establish a TCP connection before exchanging the bytes of a typical HTTP/2 session.
TLS
TLS is a protocol that protects application communication with encryption and related security functions, commonly mapped to OSI Presentation.
For HTTP/2 over HTTPS, TLS protects the HTTP exchange while TCP carries the connection's bytes.
Top-down troubleshooting
Top-down troubleshooting starts with the affected application and works downward through its network dependencies as needed.
When only one mail account fails, the technician begins with its settings and reported application error.
Traceroute
Traceroute is a diagnostic method that uses probes with changing TTL or hop limit to discover routers that return replies along a path.
A star in the route output means a probe received no reply; later hops may still respond normally.
Trailer
A trailer is control information placed after a protocol unit's payload, such as Ethernet's FCS.
Ethernet adds an FCS after the payload; TCP and IP do not each add an equivalent trailer in this stack.
Transport layer
The Transport layer is OSI Layer 4, which delivers data between programs on end hosts and distinguishes conversations with ports.
A laptop's browser and mail client share one interface while transport information separates their traffic.
TTL
Time to live (TTL) is an IPv4 value reduced by routers to limit packet circulation.
A router discards a packet when forwarding would exhaust its TTL and normally sends an ICMP error.

U

UDP
UDP is a connectionless transport protocol that sends independent datagrams without built-in delivery recovery or ordering.
A voice application can use UDP to keep sending current audio instead of waiting for missing older audio.

#

5-tuple
A 5-tuple is the combination of source IP, source port, destination IP, destination port, and transport protocol identifying a flow.
Two connections to the same server port remain distinguishable when their client source ports differ.

About this lesson

By StudeliReport a mistake

Make your own Study Materials

Turn your notes, slides and documents into Study Guides, Practice Questions, Flashcards and 6 more tools.

Get Started