- Layering → OSI (7 layers) → encapsulation → each layer’s job, PDU and address → TCP/IP (5 layers).
- Memorize the layer table on slide 51: it is used in every chapter after this.
- 1.4 protocol layering · 1.5 TCP/IP suite · 1.6 OSI model.
- Problem: networks are too complex to understand or build as one piece.
- Solution: layers = logical groups of functions. Each layer does one job.
- Layer n-1 serves layer n through an interface (the boundary between two layers).
🎯 How this can come up · 2 questions
The boundary between two adjacent layers is called a(n):
Correct: Interface.
In a layered architecture, layer n-1 provides a service to layer n.
True.
- Horizontal = protocol (layer 3 talks to the other host’s layer 3). Vertical = interface.
- Only layer 1 actually touches the physical medium; everything above is logical communication.
🎯 How this can come up · 1 question
Rules used between the same layer on two different hosts are a:
Correct: Protocol.
- Hosts use all 5 layers. A switch only needs layers 1–2. A router needs layers 1–3.
- The more layers a device supports, the more complex it is.
🎯 How this can come up · 2 questions
Up to which layer does a router operate?
Correct: Network.
A link-layer switch uses which layers?
Correct: Physical and data link.
- Each layer has its own unique protocols and a well-defined interface → each layer can be built independently.
- So different vendors can build different layers (NIC maker, OS maker, browser maker) and it still works.
🎯 How this can come up · 1 question
Give two advantages of a layered network architecture.
It breaks a complex process into simpler pieces, so hardware and software are easier to build. And because each layer has its own protocols and a fixed interface, layers can be built independently by different manufacturers, which encourages collaboration and competition.
- Protocol stack = the set of protocols of all the layers.
- Two standard stacks: OSI (the reference model) and TCP/IP (what the Internet actually runs).
- OSI = Open Systems Interconnection, made by ISO (the organization). OSI is the model; ISO is who made it.
🎯 How this can come up · 1 question
The OSI model was developed by:
Correct: ISO.
- 7 Application · 6 Presentation · 5 Session · 4 Transport · 3 Network · 2 Data link · 1 Physical.
🎯 How this can come up · 2 questions
Which OSI layer number is the transport layer?
Correct: 4.
Which layer sits directly above the network layer in OSI?
Correct: Transport.
- Top-down: All People Seem To Need Data Processing = Application, Presentation, Session, Transport, Network, Data link, Physical.
- Top 4 (application → transport) = software. Network = software + hardware. Data link + physical = hardware, on the NIC.
🎯 How this can come up · 2 questions
Which layers are implemented in hardware on the NIC?
Correct: Physical and data link.
The network layer is implemented in a mix of hardware and software.
True.
- Peers are entities at the SAME layer on different machines.
- Layers 4–7 talk end to end; layers 1–3 talk hop by hop with every intermediate node.
- PDU = data from the layer above (payload) + this layer’s control info.
- Control info goes in a HEADER. Data link is the exception: it adds a header AND a trailer.
- Only the peer layer on the receiver reads that header.
🎯 How this can come up · 2 questions
Which layer adds both a header and a trailer?
Correct: Data link.
The header added by the transport layer is read by the receiver’s transport layer only.
True.
- Going down, each layer adds its header (H7 … H2, plus trailer T2). Going up, each layer strips its own.
- Encapsulation: layer N-1 carries layer N’s whole PDU as its data, without looking inside.
- PDU (N-1) = PDU (N) + control info of N-1.
🎯 How this can come up · 2 questions
Data encapsulation means that layer N-1:
Correct: Carries layer N’s PDU in its data part without knowing its contents.
During encapsulation, a lower layer inspects and changes the upper layer’s header.
False. It carries it untouched.
- Decapsulation = the reverse: each layer removes its own header/trailer and hands the rest up.
- Slides 17–24 are one animation: follow the yellow arrow down the sender’s stack, across the link, and up the receiver’s stack.
- Step 1: the application needs to send data.
- Transport adds the TCP header and picks a port number for the application.
- Network adds the IP header with SOURCE and DESTINATION IP addresses.
- Data link wraps it in a frame (Ethernet header) using the MAC address of the next device. Physical sends bits.
- Receiver: physical gets bits, data link checks the MAC address and removes the frame header.
- Network sees its own IP as the destination and passes the packet up to TCP.
- TCP uses the DESTINATION PORT to pick which application gets the data.
- The application finally processes the data. Order of headers on the wire: Ethernet | IP | TCP | data.
🎯 How this can come up · 2 questions
On the wire, the order of headers in front of the data is:
Correct: Ethernet, IP, TCP.
Which address does the receiving transport layer use to choose the application?
Correct: Destination port number.
- Physical layer: moves individual BITS from one hop (node) to the next.
🎯 How this can come up · 1 question
The physical layer is responsible for moving:
Correct: Individual bits from one hop to the next.
- Physical layer defines: interfaces and media, topology, connectors (pins), voltages, transmission mode.
- It also handles bit representation (encoding), data rate (bits per second) and bit synchronization.
- Devices at layer 1: NIC (its physical part), repeater, hub.
🎯 How this can come up · 2 questions
Which device operates only at the physical layer?
Correct: Repeater.
Data rate (bits per second) is defined by the physical layer.
True.
- The connector shape and pins are physical-layer details. RJ-45: female in the NIC, male on the cable.
- Data link PDU = FRAME. Delivery is node-to-node (hop-to-hop) over one link.
- MAC address = physical = hardware = NIC = LAN address. All the same thing.
- The MAC changes at every hop: A’s frame is addressed to the router, not to B.
🎯 How this can come up · 2 questions
The PDU of the data link layer is the:
Correct: Frame.
Host A sends to host B through one router. The destination MAC address in A’s frame is:
Correct: The router’s MAC.
- Data link: moves FRAMES from one hop (node) to the next.
- Header H2 in front AND trailer T2 at the end: the only layer with a trailer.
- Each hop (A→B, B→E, E→F) is a separate data-link delivery.
- Same link (a bus), so the frame carries physical addresses 10 → 87 and every station sees it, but only 87 keeps it.
🎯 How this can come up · 1 question
On a bus LAN, station 10 sends a frame to station 87. Which stations receive it and which one keeps it?
All stations on the bus receive the bits, but each compares the destination physical address with its own. Only 87 matches, so only 87 keeps the frame; the rest drop it.
- Network layer PDU = PACKET (datagram). Delivery is source-to-destination (host-to-host) across many networks.
- Logical address = IP address: globally unique.
- Routing: routers choose the best path.
🎯 How this can come up · 2 questions
Host-to-host delivery across multiple networks is the job of the:
Correct: Network layer.
The IP address changes at each hop, while the MAC address stays the same end to end.
False. It’s the opposite: IP stays, MAC changes at each hop.
- Network: delivers individual PACKETS from the source host to the destination host.
- Only a header (H3), no trailer.
- Network layer = end-to-end (A→F). Data link = each hop of it.
- The logical (IP) addresses A → P stay the same all the way; the physical addresses are rewritten on each link.
🎯 How this can come up · 1 question
A packet travels from host A to host P across two routers. Which addresses change on the way and which stay the same?
The logical (IP) source and destination stay A and P end to end. The physical (MAC) source and destination are replaced on every link, because each frame only travels one hop.
- Transport: process-to-process delivery of the WHOLE message, in order.
- The network layer treats every packet independently; transport stitches them back together.
- Transport PDU = SEGMENT. Address = PORT number.
🎯 How this can come up · 2 questions
Transport-layer addressing uses:
Correct: Port numbers.
The transport layer PDU is a:
Correct: Segment.
- Transport: delivers a MESSAGE from one PROCESS to another.
- Network layer: host to host. Transport layer: process to process (port 52000 → 443).
- Transport splits the message into segments (each with H4) and reassembles them at the receiver.
- Three addresses in TCP/IP: physical (MAC), IP (logical), port.
- Port ↔ transport · IP ↔ network · physical ↔ data link.
🎯 How this can come up · 1 question
Which address belongs to the data link layer?
Correct: Physical (MAC) address.
- Session: set up, manage and end sessions; keep each application’s data separate.
- Dialog control: who talks when (half- or full-duplex).
- Synchronization: checkpoints so a long transfer resumes after a crash instead of restarting.
🎯 How this can come up · 1 question
Adding checkpoints so a long transfer can resume after a crash is done by the:
Correct: Session layer.
- The “syn” marks are the synchronization checkpoints.
- Presentation = translation (EBCDIC ↔ ASCII via a common format), encryption/decryption, compression.
🎯 How this can come up · 1 question
Encryption, compression and translation belong to the:
Correct: Presentation layer.
- Application layer = the services users see: web (HTTP), remote login (Telnet), file transfer (FTP), mail.
- TCP/IP: 5 layers. The bottom 4 match OSI’s bottom 4; OSI’s top 3 (session, presentation, application) are ONE application layer.
🎯 How this can come up · 2 questions
In TCP/IP, which OSI layers are merged into the application layer?
Correct: Application, presentation and session.
The TCP/IP protocol suite in the textbook has five layers.
True.
- PDUs: message (5) → segment (4) → packet/datagram (3) → frame (2) → bits (1).
🎯 How this can come up · 2 questions
The PDU at layer 3 is called a:
Correct: Packet (datagram).
Match: which PDU belongs to the transport layer?
Correct: Segment.
- Same picture as slide 50, drawn side by side.
- Application: SMTP, FTP, HTTP, DNS, SNMP, Telnet. Transport: TCP, UDP, SCTP. Network: IP + ICMP, IGMP, ARP, RARP.
🎯 How this can come up · 2 questions
Which protocol belongs to the transport layer?
Correct: UDP.
ARP and ICMP sit in which TCP/IP layer?
Correct: Network.
- Original TCP/IP: application, transport, internet, network access (= data link + physical).
No slides match this filter.

































