Computer Networking Class Notes
Layered models, IP addressing, routing, transport protocols, DNS, and security basics
How to use these notes
This document is written as a standalone classroom-style study handout. It contains explanations, tables, revision
checklists, examples, and small practice tasks. The goal is to help a learner revise the topic without needing slides
or a textbook open side by side.
The notes are original, concise, and intentionally practical. Each section focuses on ideas that commonly appear in
assignments, viva questions, technical interviews, and semester examinations.
Original study document - prepared for educational reference Page 1
1. What a Computer Network Does
A computer network connects devices so that they can share data, applications, storage, and services. The basic
idea is simple: one device creates a message, the message is converted into signals, and another device interprets
those signals back into useful information. A network becomes powerful when many devices can communicate
reliably even when links fail or traffic increases.
Networking is not only about cables and Wi-Fi. It includes addressing, routing, error handling, congestion control,
security, naming, and service discovery. Each layer hides some details from the layer above it so that large systems
remain manageable.
In practical study, what a computer network does should be understood as a decision-making tool, not only as a
definition. When a learner can explain where it appears in a campus or office network, the concept becomes easier
to remember and apply in new questions.
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Nodes are devices such as laptops, servers, phones, printers, routers, and switches.
• Links are the communication channels, including copper wire, fiber, and radio.
• Protocols are agreed rules for formatting, sending, receiving, and interpreting data.
• Services such as web browsing, email, video calls, and file sharing run on top of lower-level network functions.
• Revision cue: connect this idea with one real example from a campus or office network.
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
2. OSI and TCP/IP Models
The OSI model is a learning model with seven layers. The TCP/IP model is closer to how the Internet is built. Both
models help students reason about responsibility: one layer should not do the work of every other layer.
In practical study, osi and tcp/ip models should be understood as a decision-making tool, not only as a definition.
When a learner can explain where it appears in a campus or office network, the concept becomes easier to
remember and apply in new questions.
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Revision cue: connect this idea with one real example from a campus or office network.
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
Exam tip: When asked where a problem belongs, identify the symptom. Wrong website name resolution suggests
DNS/application. A packet going to the wrong subnet suggests network layer. A damaged Ethernet frame suggests
data link layer.
Layer/Part Main responsibility
Application Protocols used directly by applications, such as HTTP, DNS, SMTP, and SSH.
Transport End-to-end communication, ports, reliability, ordering, flow control, and multiplexing.
Network Logical addressing and routing packets across multiple networks.
Data Link Local delivery on the same network segment using frames and MAC addresses.
Physical Transmission of bits through electrical, optical, or radio signals.
Original study document - prepared for educational reference Page 2
Practice / self-check
• Map HTTP, TCP, IP, Ethernet, and Wi-Fi to their likely layers.
• Explain why layering makes network design easier.
• Give one example where a layer must add a header to data.
3. IP Addressing and Subnets
An IP address is a logical identifier used to deliver packets. IPv4 addresses are 32-bit numbers usually written in
dotted decimal form, while IPv6 addresses are 128-bit numbers written in hexadecimal groups. Subnetting divides a
large address block into smaller networks.
A subnet mask separates the network portion from the host portion. For example, /24 means that the first 24 bits
describe the network and the remaining 8 bits can vary for hosts. Subnetting reduces broadcast scope and
improves administrative control.
In practical study, ip addressing and subnets should be understood as a decision-making tool, not only as a
definition. When a learner can explain where it appears in a campus or office network, the concept becomes easier
to remember and apply in new questions.
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Network address identifies the subnet itself and is not assigned to a normal host.
• Broadcast address is used in IPv4 to reach all hosts in the subnet.
• Default gateway is the router a host uses to reach outside networks.
• CIDR notation writes the prefix length after a slash, such as [Link]/24.
• Revision cue: connect this idea with one real example from a campus or office network.
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
Practice / self-check
• How many usable IPv4 host addresses are available in a /26 subnet?
• Why should two devices in the same LAN not share the same IP address?
• What is the role of a default gateway?
4. Routing, Switching, and DNS
Switches usually operate within a local network and forward frames based on MAC addresses. Routers connect
networks and forward packets based on IP addresses. DNS converts human-friendly names into IP addresses so
users do not need to memorize server addresses.
Routing can be static or dynamic. Static routes are manually configured and simple for small networks. Dynamic
routing protocols exchange route information and adapt to failures, which is important for larger networks.
In practical study, routing, switching, and dns should be understood as a decision-making tool, not only as a
definition. When a learner can explain where it appears in a campus or office network, the concept becomes easier
to remember and apply in new questions.
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Revision cue: connect this idea with one real example from a campus or office network.
Original study document - prepared for educational reference Page 3
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
Device/Service Purpose
Switch Connects devices inside a LAN and forwards frames using MAC tables.
Router Connects different networks and forwards packets using routing tables.
DNS resolver Finds the IP address for a domain name requested by a client.
Firewall Filters traffic based on rules, ports, addresses, or application behavior.
5. Transport Layer: TCP vs UDP
TCP provides reliable, ordered delivery. It uses acknowledgements, sequence numbers, retransmission, and flow
control. UDP is simpler and faster because it does not guarantee delivery or ordering. Applications choose based
on whether reliability or low delay matters more.
In practical study, transport layer: tcp vs udp should be understood as a decision-making tool, not only as a
definition. When a learner can explain where it appears in a campus or office network, the concept becomes easier
to remember and apply in new questions.
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Revision cue: connect this idea with one real example from a campus or office network.
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
A common misconception is that UDP is always bad because it is unreliable. In real-time applications, receiving a late
packet can be worse than losing it, so UDP may be a better fit.
Feature TCP UDP
Connection setup Requires handshake No handshake
Reliability Acknowledgement and retransmission Best effort only
Ordering Preserves byte order No ordering guarantee
Typical use Web, email, file transfer Streaming, gaming, DNS queries
Practice / self-check
• Why does TCP use sequence numbers?
• Name two applications where UDP is reasonable.
• Explain why TCP handshake adds delay before data transfer.
6. Network Security Basics
Security in networking focuses on confidentiality, integrity, availability, and authentication. Encryption protects data
from being read by outsiders. Integrity checks help detect modification. Authentication ensures that the
communicating parties are who they claim to be.
Common attacks include sniffing, spoofing, denial of service, phishing-assisted credential theft, and
man-in-the-middle attacks. Defensive design uses layered controls rather than depending on one perfect tool.
In practical study, network security basics should be understood as a decision-making tool, not only as a definition.
When a learner can explain where it appears in a campus or office network, the concept becomes easier to
remember and apply in new questions.
Original study document - prepared for educational reference Page 4
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Use HTTPS instead of plain HTTP for web traffic involving personal data.
• Keep routers, firewalls, and servers updated with security patches.
• Disable unused services and ports to reduce attack surface.
• Use strong authentication and avoid sharing network passwords publicly.
• Revision cue: connect this idea with one real example from a campus or office network.
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
7. Troubleshooting Method
Network troubleshooting should be systematic. Random changes can hide the real issue. A useful method is to start
with the local device, then check the local network, gateway, DNS, remote host, and application configuration.
In practical study, troubleshooting method should be understood as a decision-making tool, not only as a definition.
When a learner can explain where it appears in a campus or office network, the concept becomes easier to
remember and apply in new questions.
A useful way to revise this part of computer networking is to ask three questions: what input is available, what rule
or mechanism is applied, and what output or behavior should be expected. This method also helps during viva
answers because it creates a clear explanation flow.
• Revision cue: connect this idea with one real example from a campus or office network.
• Answer cue: define the term, explain the working, then state a limitation or trade-off.
Step Question to ask
1 Does the device have a valid IP address and gateway?
2 Can it reach the gateway?
3 Can it reach an outside IP address?
4 Can DNS resolve the domain name?
5 Is the application or server service actually running?
Practice / self-check
• Write a troubleshooting plan for a laptop connected to Wi-Fi but unable to open websites.
• Explain the difference between ping failure and DNS failure.
• List three possible reasons for slow network speed.
Extended Glossary and Quick Recall
Term Quick recall note
What a Computer Network Does Core idea number 1: define it, explain its working, and connect it with a real use
case.
OSI and TCP/IP Models Core idea number 2: define it, explain its working, and connect it with a real use
case.
Original study document - prepared for educational reference Page 5
IP Addressing and Subnets Core idea number 3: define it, explain its working, and connect it with a real use
case.
Routing, Switching, and DNS Core idea number 4: define it, explain its working, and connect it with a real use
case.
Transport Layer: TCP vs UDP Core idea number 5: define it, explain its working, and connect it with a real use
case.
Network Security Basics Core idea number 6: define it, explain its working, and connect it with a real use
case.
Troubleshooting Method Core idea number 7: define it, explain its working, and connect it with a real use
case.
Trade-off A situation where improving one quality may reduce another quality, such as
speed versus safety.
Boundary case An input or condition at the edge of normal behavior; many defects appear here.
Workflow The ordered path from input to processing to output.
Validation Checking whether data, assumptions, or behavior follow expected rules.
Mini Case Study
Imagine a student team has to explain this subject to juniors in a one-hour workshop. The team should first
introduce the problem that the topic solves, then demonstrate a small example, and finally ask students to identify
the same concept in a different situation. This method checks understanding better than asking learners to repeat
definitions.
For a written assignment, the case study can be converted into a short report. Start with the context, list the
important components, explain the sequence of events, and end with limitations. A good answer shows both the
normal case and what may go wrong when assumptions are violated.
Question Bank for Practice
• Explain what a computer network does with one real-life example.
• Write two advantages and one limitation related to what a computer network does.
• Explain osi and tcp/ip models with one real-life example.
• Write two advantages and one limitation related to osi and tcp/ip models.
• Explain ip addressing and subnets with one real-life example.
• Write two advantages and one limitation related to ip addressing and subnets.
• Explain routing, switching, and dns with one real-life example.
• Write two advantages and one limitation related to routing, switching, and dns.
• Explain transport layer: tcp vs udp with one real-life example.
• Write two advantages and one limitation related to transport layer: tcp vs udp.
• Explain network security basics with one real-life example.
• Write two advantages and one limitation related to network security basics.
• Explain troubleshooting method with one real-life example.
• Write two advantages and one limitation related to troubleshooting method.
• Create a two-column comparison table for two similar terms from this document.
• Write a five-line summary of the most important concept without using textbook language.
Original study document - prepared for educational reference Page 6
• Prepare one viva question and answer it in less than one minute.
• Identify one mistake a beginner may make and explain how to avoid it.
Original study document - prepared for educational reference Page 7
Final Revision Checklist
• Can you explain the topic in simple language without memorizing a definition?
• Can you draw or list the main workflow from input to output?
• Can you compare two similar terms and state where each is used?
• Can you solve at least three small questions without checking the answer first?
• Can you identify one real-life example where this concept is useful?
Suggested one-hour revision plan
Time Activity
0-10 min Skim headings, tables, and highlighted boxes.
10-30 min Read the explanations and rewrite key ideas in your own words.
30-45 min Attempt practice questions without looking at notes.
45-60 min Correct mistakes, mark weak concepts, and create a mini cheat sheet.
Original study document - prepared for educational reference Page 8