Unit 1: Network architecture and medium access
Computer Networks notes · PTU syllabus (PGCA1910)
On this page
- Unit summary
- Uses, goals and applications of computer networks
- Network structure and architecture
- The OSI reference model
- The TCP/IP reference model and comparison with OSI
- Static and dynamic channel allocation
- ALOHA protocols
- Carrier sense multiple access (CSMA)
- CSMA with collision detection (CSMA/CD)
- Collision-free protocols
- Networking devices
- Key terms
- Quick revision
- Important questions
Unit summary
Networks are built in layers and share channels among many stations. This unit covers the uses, goals and applications of networks, network structure and architecture, the OSI and TCP/IP reference models and their comparison, static and dynamic channel allocation, ALOHA, CSMA and CSMA/CD, collision-free protocols, and networking devices — repeaters, bridges, routers, gateways and switches.
After this unit you can
- Explain the uses, goals, structure and architecture of networks
- Compare the OSI and TCP/IP models
- Explain channel allocation and multiple access protocols
- Explain the functions of networking devices
PTU syllabus topics
- Uses
- goals and applications of computer networks
- network structure and architecture
- OSI and TCP/IP reference models and their comparison
- static and dynamic channel allocation
- ALOHA protocols
- CSMA and CSMA/CD
- collision-free protocols
- networking devices (repeaters, bridges, routers, gateways, switches)
Repeater
Physical
Regenerates signals
Hub
Physical
Broadcasts to all ports
Bridge / switch
Data link
Forwards by MAC address
Router
Network
Forwards by IP address between networks
Gateway
All layers
Connects different protocols
Topic 1
Uses, goals and applications of computer networks
Business applications
Resource sharing, client–server systems, email, video conferencing, e-commerce
Home applications
Internet access, social media, streaming, online learning, smart homes
Mobile users
Phones, laptops, navigation, mobile banking, IoT
Social issues
Privacy, security, misinformation, digital divide
- Resource sharing
- Printers, files, internet connection
- High reliability
- Alternative sources and backups
- Cost saving
- Many cheap computers instead of one mainframe
- Scalability
- Add capacity gradually
- Communication medium
- Fast exchange among people
Topic 2
Network structure and architecture
- Structure: hosts (end systems) connected through a subnet of transmission lines and switching elements (routers). Classified by transmission technology — broadcast (one shared channel) and point-to-point — and by scale — PAN, LAN, MAN, WAN and internetworks.
- Network architecture: a set of layers and protocols. Each layer offers services to the layer above through interfaces, and peer layers on different machines communicate using protocols.
- 1Application data handed down
- 2Each layer adds its header (encapsulation)
- 3Physical layer sends bits
- 4Receiver's layers strip headers in reverse order
- 5Application receives the data
- Design issues for layers: addressing, error control, flow control, multiplexing, routing, segmentation and reassembly, security.
Topic 3
The OSI reference model
The OSI (Open Systems Interconnection) model, from ISO, divides communication into seven layers.
| Layer | Function | Example |
|---|---|---|
| 7 Application | Network services to users | HTTP, FTP, SMTP, DNS |
| 6 Presentation | Translation, encryption, compression | JPEG, SSL/TLS, ASCII |
| 5 Session | Establishes, manages and ends sessions | NetBIOS, RPC |
| 4 Transport | End-to-end delivery, segmentation, error and flow control | TCP, UDP |
| 3 Network | Logical addressing and routing | IP, ICMP, routers |
| 2 Data link | Framing, MAC addressing, error detection | Ethernet, switches |
| 1 Physical | Transmission of raw bits | Cables, hubs, signals |
Exam tip
Mnemonic (top to bottom): "All People Seem To Need Data Processing".
Topic 4
The TCP/IP reference model and comparison with OSI
The TCP/IP model is the practical model used by the internet. It has four layers: Application (OSI layers 5–7), Transport, Internet (network) and Network Access (data link + physical).
Layers
7
4
Developed by
ISO, as a reference model
US Department of Defense, from real protocols
Approach
Model first, protocols later
Protocols first, model describes them
Use
Teaching and reference
Used on the internet
Transport
Connection-oriented and connectionless
TCP and UDP
Topic 5
Static and dynamic channel allocation
Method
Fixed share for each user — FDM or TDM
Channel given to stations as they need it
Suits
Few users with steady traffic (telephone trunks)
Many users with bursty traffic (LANs)
Weakness
Wasted capacity when users are idle; new users cannot join
Collisions or coordination overhead
- Assumptions of dynamic allocation: independent stations, a single shared channel, collisions detectable, continuous or slotted time, carrier sense or no carrier sense.
Topic 6
ALOHA protocols
Transmission
Any time a frame is ready
Only at the start of a time slot
Vulnerable period
Two frame times
One frame time
Throughput
S = G e^(−2G); maximum 18.4% at G = 0.5
S = G e^(−G); maximum 36.8% at G = 1
Clock synchronisation
Not needed
Needed
- Developed at the University of Hawaii (1970) for radio links between islands; if a frame collides, the sender waits a random time and retransmits.
Topic 7
Carrier sense multiple access (CSMA)
1-persistent
Keep sensing; send as soon as idle
Collisions when several wait
Non-persistent
Wait a random time before sensing again
Fewer collisions, longer delay
p-persistent (slotted)
When idle, send with probability p; otherwise defer to next slot
Balances delay and collisions
Topic 8
CSMA with collision detection (CSMA/CD)
- 1Sense the carrier
- 2If idle, transmit; if busy, wait
- 3Listen while transmitting
- 4On collision, send a jam signal and stop
- 5Wait a random time (binary exponential backoff) and retry
Used in
Classic wired Ethernet (IEEE 802.3)
Wireless LANs (IEEE 802.11 Wi-Fi)
Approach
Detect collisions and recover
Avoid collisions before they happen
Method
Listen while sending; jam and backoff
Wait IFS, random backoff, optional RTS/CTS, ACK for each frame
Why
Collisions can be detected on a cable
Wireless stations cannot hear collisions (hidden station problem)
- Minimum frame size: in CSMA/CD the frame must last at least two propagation delays so a collision is detected while sending — 64 bytes for 10 Mbps Ethernet.
Topic 9
Collision-free protocols
- Bit-map protocol
- Contention slots — each station sets its bit to reserve; stations then send in order
- Token passing
- A token circulates; only its holder sends (Token Ring, FDDI)
- Binary countdown
- Stations broadcast their addresses bit by bit; highest address wins
- Limited-contention protocols
- Adaptive tree walk — contention among smaller groups under load
Topic 10
Networking devices
Repeater and hub
Physical
Regenerate and repeat signals to all ports
Bridge
Data link
Connects two LAN segments; filters frames by MAC address
Switch
Data link (layer-3 switches also route)
Multi-port bridge; forwards frames only to the destination port
Router
Network
Connects different networks; chooses paths by IP address
Gateway
Up to application
Translates between different protocols or architectures
- Collision and broadcast domains: a hub forms one collision domain; each switch port is its own collision domain; routers separate broadcast domains.
Key terms
- Protocol
- Rules governing communication between peer layers
- Channel allocation
- Sharing a channel among users
- ALOHA
- Random access protocol without carrier sensing
- Token passing
- Collision-free access using a circulating token
- Bridge
- Device connecting LAN segments at the data link layer
Quick revision
- Uses and goals; broadcast and point-to-point; PAN to WAN.
- Layers, services, interfaces, protocols; design issues.
- OSI seven layers; TCP/IP four layers; comparison.
- Static vs dynamic allocation; pure (18.4%) and slotted (36.8%) ALOHA; 1-, non-, p-persistent CSMA; CSMA/CD.
- Bit-map, token passing, binary countdown; repeater, hub, bridge, switch, router, gateway.
Important exam questions
Practice questions written to the PTU exam pattern for this unit's syllabus: short answers (Section A style) and long answers (Sections B and C style).
Short-answer questions
- Q1.State four goals of computer networks.
- Q2.What is encapsulation?
- Q3.Give the maximum throughput of pure and slotted ALOHA.
- Q4.Distinguish 1-persistent and non-persistent CSMA.
- Q5.What is binary countdown?
- Q6.Distinguish a bridge and a router.
Long-answer questions
- Q1.Explain the uses, structure and architecture of computer networks.
- Q2.Compare the OSI and TCP/IP reference models.
- Q3.Explain the ALOHA and CSMA protocols.
- Q4.Explain collision-free protocols and networking devices.
Stuck on this unit?
Message SBS on WhatsApp for help with Computer Networks, or to ask about studying M.Sc IT at Synetic.
