Lecture Internet Architecture internet protocols tcp
Lecture Internet Architecture internet protocols tcp
Learning Objectives:
1. Understand the basics of the client-server model and how it supports internet
architecture.
2. Be able to explain the roles of key network hardware (modems, routers, switches, etc.)
in internet communication.
3. Understand the role of Internet Service Providers (ISPs) in providing internet access to
users.
Internet architecture refers to the design and structure of how information is exchanged over the
internet. The architecture is based on the TCP/IP model, which enables communication between
devices across different networks. One of the fundamental concepts in internet architecture is the
client-server model.
Definition:
The client-server model is a distributed network architecture where clients request services or
resources, and servers provide those services or resources. This model is the backbone of most
internet communications, including web browsing, email, file transfers, and online gaming.
Key Components:
Client: A device or software (e.g., a web browser) that requests information or services
from a server. Examples include your computer, smartphone, or any other device
connected to the internet.
Server: A powerful computer or program that processes client requests and provides the
requested services. Examples include web servers, email servers, and database servers.
How It Works:
1. Request: The client sends a request to the server (e.g., entering a URL in a browser to
access a website).
2. Processing: The server receives the request, processes it, and retrieves the necessary
information (e.g., fetching the HTML files of a webpage).
3. Response: The server sends the data (e.g., the webpage) back to the client.
4. Rendering: The client (e.g., web browser) renders the data for the user to view.
Example: Accessing a Web Page
Types of Servers:
Centralized Control: Servers manage resources, which improves security and updates.
Efficiency: Multiple clients can access the same server without duplicating resources.
Scalability: Servers can be upgraded to handle more clients as needed.
Challenges:
Server Overload: 1Too many clients can overwhelm the server, causing slowdowns.
Single Point of Failure: If the server goes down, all clients are affected.
3. Network Hardware
In the client-server model, several pieces of network hardware are involved in ensuring
communication between the client and server. Below are key hardware devices that play a vital
role in network communication.
3.1 Modems
3.2 Routers
Function: A router connects different networks (e.g., your home network to the internet)
and directs data packets between them. It also ensures that data sent from one device on a
network reaches the correct destination.
Key Features:
o Routing: Routers examine the destination IP address in each data packet and
determine the best path to forward the packet.
o Network Address Translation (NAT): Routers use NAT to assign private IP
addresses to devices on a local network while using a single public IP address for
external communication.
o Wireless Routers: Provide Wi-Fi connectivity for wireless devices.
3.3 Switches
Function: A switch connects multiple devices within a local area network (LAN), such
as computers, printers, and servers, allowing them to communicate directly with each
other. Unlike routers, switches do not connect to the internet; they are used within a
network.
How It Works: Switches operate at Layer 2 (Data Link) of the OSI model, using MAC
addresses to forward data to the correct device.
Function: A hub is a basic network device that connects multiple devices but broadcasts
data to all devices in the network, leading to inefficiency and security concerns.
Why It’s Obsolete: Switches have largely replaced hubs due to their ability to direct data
only to the intended recipient.
Function: Wireless access points (WAPs) are used to connect wireless devices to a wired
network. They serve as the bridge between wired and wireless networks and are typically
found in routers or as standalone devices.
Definition:
An Internet Service Provider (ISP) is a company or organization that provides individuals and
businesses with access to the internet. ISPs play a key role in internet architecture by connecting
users to the global internet network.
Types of ISPs:
1. Dial-Up ISPs: Legacy service that provides internet access through telephone lines. This
is slow and largely obsolete.
2. Broadband ISPs: Use technologies such as DSL, cable, or fiber optics to provide high-
speed internet access.
3. Wireless ISPs: Provide internet access via wireless technologies like Wi-Fi, 4G, or 5G.
4. Satellite ISPs: Offer internet access via satellite, mainly in remote areas where other
forms of connectivity are not available.
1. Connection to the Backbone: ISPs connect to the internet backbone (major data routes)
via peering agreements with larger ISPs or internet exchange points (IXPs).
2. Assigning IP Addresses: ISPs assign public IP addresses to their users so that devices
can communicate on the internet.
3. Data Transmission: ISPs route data between the user's device and the destination server
(e.g., a web server) using protocols like TCP/IP.
4. Network Management: ISPs manage network traffic, ensuring users have stable internet
access. They may implement bandwidth throttling during peak times.
JTL
Safaricom
Airtel
KENET
Vodafone
Choosing an ISP:
1. Speed: Different ISPs offer varying speeds, depending on the technology they use (DSL,
fiber, cable).
2. Coverage: Not all ISPs are available everywhere. Coverage is an important factor,
especially in rural areas.
3. Cost: Pricing plans vary, so users must choose based on budget and required
speed/bandwidth.
4. Customer Support: Good ISPs provide reliable customer service, troubleshooting, and
technical support.
ISPs can sometimes act as gatekeepers by controlling access to certain websites or services. This
raises issues of net neutrality, which advocates for equal access to all websites and services
without discrimination.
Conclusion
The internet architecture relies heavily on the client-server model, where clients request
services from servers. These interactions are made possible by various network hardware,
including modems, routers, switches, and access points, which facilitate communication across
different networks. Finally, Internet Service Providers (ISPs) play a crucial role in providing
users with access to the internet and managing the flow of data between the user and the broader
internet infrastructure.
Key Takeaways:
Tutorial Questions:
1. Explain the client-server model and provide examples of its application in modern
internet use.
2. Discuss the roles of modems, routers, and switches in internet communication.
3. Compare the different types of ISPs and the services they provide.
4. Explore how NAT works in routers and its importance in managing IP addresses.
5. Research the concept of net neutrality and discuss how it affects ISP operations.
6. Explain how access points work in a network and their role in connecting wireless
devices to wired networks.
Learning Objectives:
By the end of this tutorial, students will:
1. Understand the structure of the TCP/IP model and the purpose of each layer.
2. Learn the key protocols operating at each layer and their specific functions.
3. Explore how the TCP/IP model facilitates reliable communication over the internet.
5. Take-Home Assignment
Instructions: Answer the following questions with detailed explanations. Each question is worth
20 marks.
1. Describe the function of each layer in the TCP/IP model. How does each layer
contribute to end-to-end communication?
o Expected Answer: Explain all four layers (Application, Transport, Internet, and
Network Interface), highlighting their unique roles and how they interact.
2. What are the differences between TCP and UDP? In which scenarios would you
prefer one over the other?
o Expected Answer: Compare TCP (reliable, connection-oriented) and UDP (fast,
connectionless), and provide real-world examples where each protocol is useful.
3. Explain how the Domain Name System (DNS) works. Why is DNS essential for
internet communication?
o Expected Answer: Describe how DNS translates domain names into IP addresses
and its role in making internet navigation easier for users.
4. What is the purpose of IP addressing in the TCP/IP model? Compare IPv4 and IPv6
addressing schemes.
o Expected Answer: Discuss the role of IP addresses in routing and explain the
differences between IPv4 (32-bit) and IPv6 (128-bit) addressing.
5. Discuss the importance of the ICMP protocol. How is it used in network
troubleshooting? Provide examples.
o Expected Answer: Explain ICMP’s role in diagnostics, with examples such as the
ping and traceroute commands.
6. Explain the process of data encapsulation in the TCP/IP model. How does each
layer add its own information to the data?
o Expected Answer: Describe how data is encapsulated with headers and trailers as
it moves down the layers, with specific examples for TCP, IP, and Ethernet.
7. What is the role of the ARP (Address Resolution Protocol) in local networks? How
does it relate to IP and MAC addresses?
o Expected Answer: Explain how ARP maps IP addresses to MAC addresses in a
LAN and its importance in communication.
8. What challenges arise when transitioning from IPv4 to IPv6? Discuss both the
technical and operational implications.
o Expected Answer: Provide an overview of the issues related to IPv4 address
exhaustion and the complexities of moving to IPv6.
Conclusion
The TCP/IP model provides the foundation for data transmission across the internet. Each layer
of the model plays a crucial role in ensuring that data is routed, transmitted, and delivered
reliably between devices. Understanding the protocols used in this model (e.g., TCP, IP, DNS) is
essential for both network professionals and everyday internet users.
Further Reading:
"Computer Networking: A Top-Down Approach" by James F. Kurose and Keith
W. Ross (Recommended textbook for in-depth study of the TCP/IP model and
protocols).
RFC 791 (Official specification of the Internet Protocol, version 4).
RFC 793 (Official specification of the Transmission Control Protocol).
ANSWERS
1. Describe the function of each layer in the TCP/IP model. How does each layer
contribute to end-to-end communication?
Application Layer:
Function: Provides protocols for communication between software applications and the
network (e.g., HTTP for web browsing).
Contribution: Converts user input into data suitable for transmission and interprets
incoming data for the application.
Transport Layer:
Function: Manages end-to-end communication, ensuring reliable or fast delivery of data.
Contribution: Segments data, ensures delivery (TCP) or faster transfer (UDP), and
directs data to the correct application using port numbers.
Internet Layer:
Function: Handles logical addressing and routing, determining how data packets are
delivered across multiple networks.
Contribution: Ensures packets reach the correct destination network and device using IP
addresses.
Network Interface Layer:
Function: Manages hardware-specific aspects of data transmission, such as physical
addressing and converting data into signals.
Contribution: Ensures data is transmitted and received over the physical network
medium.
2. What are the differences between TCP and UDP? In which scenarios would you
prefer one over the other?
Feature TCP UDP
3. Explain how the Domain Name System (DNS) works. Why is DNS essential for
internet communication?
How DNS Works:
1. Domain name lookup: User enters a domain (e.g., example.com).
2. DNS query: The request is sent to a DNS resolver.
3. Recursive resolution: The resolver queries root, TLD, and authoritative DNS servers to
find the corresponding IP address.
4. Response: The IP address is returned to the user’s device.
5. Connection: The device uses the IP address to establish communication with the server.
Importance:
Translates user-friendly domain names into machine-readable IP addresses.
Simplifies internet navigation by allowing users to use memorable names instead of
numerical IP addresses.
4. What is the purpose of IP addressing in the TCP/IP model? Compare IPv4 and
IPv6 addressing schemes.
Purpose of IP Addressing:
Provides unique identifiers for devices in a network, ensuring data reaches the correct
destination.
Enables routing of packets between source and destination.
IPv4 vs. IPv6:
Feature IPv4 IPv6
Address
32 bits 128 bits
Length
Address
~4.3 billion addresses Virtually unlimited
Space
Addressing in smaller
Purpose Scalable for the modern internet
networks
7. What is the role of the ARP (Address Resolution Protocol) in local networks?
How does it relate to IP and MAC addresses?
Role of ARP:
Maps an IP address to a physical MAC address within a local network.
Relation to IP and MAC:
Devices use IP addresses for logical addressing and routing.
ARP ensures the device's network interface can send packets to the correct physical
device by associating the IP with the MAC address.
8. What challenges arise when transitioning from IPv4 to IPv6? Discuss both the
technical and operational implications.
Technical Challenges:
1. Compatibility: IPv4-only devices and software may not support IPv6.
2. Network Configuration: Dual-stack setups (running IPv4 and IPv6 simultaneously)
increase complexity.
3. Security: New protocols require updated security measures.
Operational Challenges:
1. Cost: Upgrading infrastructure to support IPv6.
2. Training: Network administrators need knowledge of IPv6.
3. Adoption Lag: Many organizations delay transitioning due to perceived difficulties or
lack of immediate need.
Motivation for Transition:
IPv4 address exhaustion necessitates IPv6 adoption for continued internet growth and
scalability