Chapter 2.1: Networking
AS Level Computer Science (9618)
📚 Learning Objectives
- Understand the purpose and benefits of networking devices
- Distinguish between LAN and WAN characteristics
- Explain client-server and peer-to-peer network models
- Compare thin-client and thick-client computing
- Understand bus, star, mesh, and hybrid topologies
- Compare wireless and wired network technologies
- Describe LAN hardware components and their functions
- Understand router functions and IP addressing
1. Introduction to Networks
📖 Definition
A network is a linked set of two or more computer systems capable of sharing resources such as printers, storage, and databases.
1.1 Network Categories
- Private networks — Owned by a single company; access restricted via passwords and user IDs
- Public networks — Owned by communications carriers; multiple organizations share access
- Networks can be wired (using cables) or wireless (using radio waves)
🌟 Did You Know?
- The first computer network was ARPANET, created in 1969
- ARPANET connected only 4 computers initially
- It eventually evolved into today's Internet
1.2 Benefits of Networking
- Devices like printers can be shared, reducing hardware costs
- Network software licenses are cheaper than individual licenses
- Users can share files and collaborate on data
- Centralized data sources ensure reliability and consistency
- Centralized backup protects important files
- Communication via email and instant messaging improves productivity
- Network managers can control access rights and security policies
1.3 Drawbacks of Networking
- Initial setup costs for cabling and servers can be expensive
- Managing large networks requires specialized skills
- Server failures can affect all users on the network
- Security threats like malware can spread across the entire network
- Network congestion can slow down performance during peak usage
2. Local Area Network (LAN)
📖 Definition
A LAN (Local Area Network) connects computers and devices within a limited area such as a building, office, or campus.
- Covers a small geographical area (single building or site)
- Typically owned and managed by a single organization
- Uses private addressing (not routable on the internet)
- High data transfer rates (typically 100 Mbps to 10 Gbps)
- Low error rates due to controlled environment
- Devices connect via switches and hubs
📌 Key Characteristics of LAN
- Used by an organization within a site or branch
- Owned by the organization that uses it
- Uses private IP address ranges (192.168.x.x, 10.x.x.x)
- High speed and low error rate
3. Wide Area Network (WAN)
📖 Definition
A WAN (Wide Area Network) spans large geographical distances, connecting LANs across cities, countries, or continents.
- Used when computers are far apart (different cities/continents)
- Created by connecting LANs using routers and modems
- Not owned by the organization using it (leased from PSTN)
- Uses dedicated communication links from telecommunications companies
- Transmission medium is typically fiber-optic cable
- Data flows from switch to switch within the WAN
- End-systems connect via switches, not directly to WAN
💡 Exam Tip
- The Internet is the largest example of a WAN
- Bank ATM networks are a classic WAN example
- Remember: WAN connects LANs, not individual computers directly
5. Client-Server Model
📖 Definition
In a client-server model, a powerful central server provides resources and services to multiple client computers that request them.
- Server is a dedicated, high-performance computer
- Servers store data, applications, and manage network resources
- Clients (workstations) request services from the server
- Centralized control makes security and backup easier
- Common in businesses and organizations of all sizes
| Aspect |
Advantages |
Disadvantages |
| Security |
Centralized security control |
Single point of failure |
| Backup |
Centralized backup is easy |
Server failure affects all |
| Cost |
Economies of scale for software |
Expensive server hardware |
| Management |
Dedicated IT staff can manage |
Requires trained administrators |
6. Peer-to-Peer (P2P) Model
📖 Definition
In a peer-to-peer model, all computers have equal status and can share resources directly with each other without a central server.
- No dedicated server — all computers are peers
- Each computer can act as both client and server
- Resources are distributed across all computers
- Suitable for small networks (home, small office)
- Less expensive to set up (no dedicated server needed)
⚠️ Important
- P2P is NOT suitable for large organizations
- Each user must manage their own security and backups
- Performance depends on individual computer resources
- Example: Home networks, file-sharing applications
7. Client-Server vs P2P Comparison
| Feature |
Client-Server |
Peer-to-Peer |
| Server |
Dedicated server required |
No dedicated server |
| Cost |
Higher (server hardware) |
Lower (use existing PCs) |
| Security |
Centralized, stronger |
Distributed, weaker |
| Scalability |
Highly scalable |
Limited (under 10 computers) |
| Best For |
Businesses, schools |
Home, small office |
💡 Exam Tip: Choosing a Network Model
- Client-Server: Best for large organizations needing central control
- P2P: Best for small networks with limited budget
- Consider: number of users, security needs, available budget
8. Thin-Client vs Thick-Client
8.1 Thick-Client
📖 Definition
A thick-client (fat client) is a computer that performs most processing locally, with its own storage, memory, and processing power.
- Has its own processor, RAM, and storage
- Can run applications independently of a server
- Handles most data processing locally
- Only connects to server for specific tasks (if needed)
- Example: Desktop PC, gaming computer, laptop
8.2 Thin-Client
📖 Definition
A thin-client is a computer that relies on a server for most processing, having minimal local hardware and software.
- Minimal processing power and storage locally
- Depends on server for applications and data processing
- Server does most of the computational work
- Thin-client acts mainly as input/output device
- Example: Chromebook, terminal, cloud-based workstations
9. Thin-Client vs Thick-Client Comparison
| Aspect |
Thick-Client |
Thin-Client |
| Processing |
Local processing |
Server-based processing |
| Storage |
Large local storage |
Minimal or no local storage |
| Software |
Installed locally |
Runs from server |
| Cost |
Higher per unit |
Lower per unit |
| Offline Use |
Full functionality |
Limited or none |
| Maintenance |
Individual updates needed |
Centralized server updates |
| Network Dependency |
Low |
High |
📌 Key Takeaways: Thin vs Thick Client
- Thin-clients are ideal when security is critical (data stays on server)
- Thick-clients are better for tasks requiring high performance
- Cloud computing has made thin-clients more popular
- Consider: performance needs, security requirements, network reliability
10. Network Topologies
📖 Definition
Network topology refers to the physical or logical arrangement of nodes and connections in a network.
10.1 Bus Topology
- All devices connected to a single central cable (backbone/bus)
- Data travels in both directions along the bus
- Terminators at each end prevent signal reflection
- If backbone fails, entire network fails
- Low cost and simple to install
- Limited cable length and number of devices
10.2 Star Topology
- All devices connected to a central hub or switch
- Data passes through the central device to reach destination
- If one cable fails, only that device is affected
- If central device fails, entire network fails
- Easy to add new devices without disruption
- More cabling required than bus topology
- Most common topology for modern LANs
11. Wired vs Wireless Networks
11.1 Wired Networks
- Use physical cables to connect devices
- Generally faster and more reliable than wireless
- More secure — physical access to cable needed
- Less susceptible to interference
- Installation can be costly and complex
- Devices are less portable due to cable connections
| Cable Type |
Speed |
Distance |
Characteristics |
| Copper (Twisted Pair) |
Up to 10 Gbps |
100m max |
Cheap, common, susceptible to EMI |
| Coaxial Cable |
Up to 10 Gbps |
500m |
Better shielding, used for cable TV |
| Fiber Optic |
100+ Gbps |
Kilometers |
Fastest, immune to EMI, expensive |
🧠 Memory Trick
Copper = Cheap + Close (affordable, short distance)
Fiber = Fast + Far (high speed, long distance)
11.2 Wireless Networks
- Use radio waves, microwaves, or satellites
- Greater mobility and flexibility
- Easier installation (no cables)
- Can be slower than wired connections
- More vulnerable to interference and security threats
- Signal strength varies with distance and obstacles
| Technology |
Range |
Speed |
Use Case |
| WiFi (Radio Waves) |
~100m indoor |
Up to 9.6 Gbps |
Home/office networks |
| Microwave |
Line of sight |
Variable |
Building-to-building links |
| Satellite |
Global |
Up to 500 Mbps |
Remote areas, global coverage |
12. LAN Hardware Components
12.1 Network Interface Card (NIC)
📖 Definition
A Network Interface Card (NIC) is a hardware component that enables a computer to connect to a network.
- Has a unique MAC address (Media Access Control)
- Converts data to network-compatible format
- Can be wired (Ethernet port) or wireless (WiFi)
- Built into most motherboards today
- Wireless NIC (WNIC) connects to WiFi networks
12.2 Switch
📖 Definition
A switch is a device that connects multiple devices on a LAN and forwards data packets to the specific destination device only.
- Learns MAC addresses of connected devices
- Sends data only to the intended recipient (not all devices)
- Reduces network congestion compared to hubs
- Can operate in full-duplex mode (send and receive simultaneously)
- Critical component in star topology networks
12.3 Hub
📖 Definition
A hub is a basic networking device that broadcasts incoming data to ALL connected devices, regardless of the destination.
- Does NOT filter or direct data
- All devices receive all data packets
- Creates more network collisions
- Less efficient than switches
- Largely replaced by switches in modern networks
⚠️ Important: Switch vs Hub
- Hub — Broadcasts to ALL devices (like shouting in a room)
- Switch — Sends to specific device only (like a phone call)
- Switches are more efficient and secure
- Switches reduce collisions and improve performance
13. More LAN Hardware
13.1 Wireless Access Point (WAP)
- Allows wireless devices to connect to a wired network
- Acts as a bridge between wireless and wired networks
- Transmits and receives radio signals
- Has a limited range (typically 30-100 meters)
- Multiple WAPs can extend wireless coverage
13.2 Router
📖 Definition
A router is a device that connects different networks together and routes data packets between them based on IP addresses.
- Connects LANs to form WANs
- Connects a LAN to the Internet
- Uses IP addresses to determine best path for data
- Can provide Network Address Translation (NAT)
- Often includes built-in switch and WAP functionality
- Operates at the Network Layer (Layer 3) of OSI model
📝 How a Router Works
- Receives data packet from source network
- Examines destination IP address in packet header
- Consults routing table to find best path
- Forwards packet to next router or final destination
- Repeats until packet reaches destination network
13.3 Modem
📖 Definition
A modem (MOdulator-DEModulator) converts digital signals to analog for transmission over telephone lines, and vice versa.
- Modulates: Digital → Analog (for sending)
- Demodulates: Analog → Digital (for receiving)
- Enables internet connection via telephone/cable lines
- Modern modems often combined with routers in one device
14. Hardware Summary & IP Addressing
14.1 Bridge and Repeater
- Bridge — Connects two separate network segments
- Filters traffic based on MAC addresses
- Repeater — Regenerates and amplifies network signals
- Extends the maximum cable distance
| Device |
OSI Layer |
Key Function |
| Repeater |
Layer 1 (Physical) |
Amplifies signals |
| Hub |
Layer 1 (Physical) |
Broadcasts to all ports |
| Bridge |
Layer 2 (Data Link) |
Connects network segments |
| Switch |
Layer 2 (Data Link) |
Forwards to specific device |
| Router |
Layer 3 (Network) |
Routes between networks |
15. IP Addressing
📖 Definition
An IP address (Internet Protocol address) is a unique numerical identifier assigned to each device on a network.
- IPv4 addresses are 32 bits, written as 4 octets (e.g., 192.168.1.1)
- Each octet ranges from 0 to 255
- IPv6 addresses are 128 bits (to address IPv4 shortage)
- Every device on a network needs a unique IP address
15.1 Public vs Private IP Addresses
| Type |
Range |
Use |
Accessible From |
| Private |
192.168.x.x, 10.x.x.x, 172.16-31.x.x |
Internal networks (LAN) |
Local network only |
| Public |
All others |
Internet communication |
Anywhere on Internet |
16. Subnet Mask and NAT
16.1 Subnet Mask
📖 Definition
A subnet mask determines which portion of an IP address identifies the network and which identifies the host.
- Common subnet mask: 255.255.255.0 (for Class C networks)
- Network portion: where mask bits are 255 (all 1s)
- Host portion: where mask bits are 0
- Helps routers determine if destination is local or remote
📝 Example: Identifying Network vs Host
- IP Address: 192.168.1.100
- Subnet Mask: 255.255.255.0
- Network ID: 192.168.1.0 (first 3 octets)
- Host ID: 100 (last octet)
- Devices with same network ID can communicate directly
16.2 Network Address Translation (NAT)
- Allows multiple devices to share one public IP address
- Router translates private IPs to public IP for internet access
- Provides security by hiding internal network structure
- Conserves public IP addresses
- Essential for home and small business networks
💡 Exam Tip
- NAT allows many devices to share one public IP
- Private IPs cannot be routed on the Internet
- NAT occurs at the router
17. Ethernet and CSMA/CD
📖 Definition
Ethernet is the most widely used LAN technology, defining how data is formatted and transmitted over network cables.
- Standard for most wired LAN connections
- Uses CSMA/CD for media access control
- Defined by IEEE 802.3 standard
- Speeds range from 10 Mbps to 100 Gbps
- Uses MAC addresses for device identification
18. CSMA/CD Protocol
📖 Definition
CSMA/CD (Carrier Sense Multiple Access/Collision Detection) is a protocol that manages how devices share a network channel and handle collisions.
📝 How CSMA/CD Works
- Carrier Sense: Device listens to check if channel is free
- Multiple Access: All devices share the same channel
- Transmit: If channel is free, device sends data
- Collision Detection: If two devices transmit simultaneously, collision occurs
- Jam Signal: Device sends jam signal to notify all devices
- Backoff: Each device waits random time before retrying
- Retry: Device attempts to transmit again
⚠️ Important
- CSMA/CD is only needed in shared media (like bus topology)
- Modern switched networks rarely experience collisions
- Switches create dedicated channels — no shared medium
- Full-duplex switches eliminate collision domains entirely
18.1 Bit Streaming
- Data is transmitted as a continuous stream of bits
- Real-time streaming: Data used immediately (video calls, live streaming)
- On-demand streaming: Data buffered before use (Netflix, YouTube)
- Requires sufficient bandwidth to prevent buffering
🌟 Did You Know?
- CSMA/CD was essential in early Ethernet using coaxial cables
- Modern Ethernet with switches has made CSMA/CD largely obsolete
- WiFi still uses CSMA/CA (Collision Avoidance) — similar principle