📑 Contents

Chapter 2.2: The Internet

9618 AS Level Computer Science

📚 Learning Objectives
🌟 Did You Know?

The Internet and the World Wide Web are not the same thing! The Internet is the physical network infrastructure connecting billions of devices worldwide, while the World Wide Web is a collection of web pages and documents accessed via the Internet using browsers.

1. Cloud Computing

📖 Definition

Cloud computing refers to the delivery of computing services—including storage, processing power, networking, databases, and software—over the Internet. Instead of owning and maintaining physical hardware and software resources, individuals and organizations can access and utilize these services on-demand from a third-party provider.

Cloud storage is a method of data storage where data is stored on offsite servers. Physical storage covers hundreds of servers in many locations. Instead of saving data on a local hard disk, a user can save their data 'in the cloud'.

1.1 Types of Cloud Computing

Cloud Type Description Characteristics
Public Cloud Storage environment where customer and cloud provider are different companies Services over public internet; resources shared among multiple users
Private Cloud Storage provided by dedicated environment behind a company firewall Customer and provider operate as single entity; more control and security
Hybrid Cloud Combination of private and public clouds Takes benefits of both; sensitive data on private side
💡 Exam Tip

Remember: Public = shared resources, Private = dedicated resources behind firewall, Hybrid = best of both worlds!

1.2 Cloud Software

Software applications can be delivered to a user's computer on demand using cloud computing services. The cloud provider will both host and manage software applications—including maintenance, software upgrades, and security—for a monthly fee.

⚠️ Important

Cloud-based applications can perform tasks on the local device. This makes them different from web-based apps which need an internet connection at all times. Users can still use software even if internet connection is lost—data will be stored locally and synced when connection is restored.

2. Cloud Storage: Benefits and Drawbacks

Pros of Cloud Storage Cons of Cloud Storage
Files accessible anytime, anywhere from any device with internet Unstable internet connection causes access problems
No need to carry external storage devices Expensive for high download/upload data transfer limits
Provides remote backup for data loss and disaster recovery High costs for large storage capacity requirements
Recovers data if hard disk or backup device fails Potential failure of cloud storage company poses risk
Free storage available for small quantities Storage limits unless paid for
❌ Common Mistake

Students often confuse cloud-based applications with web-based applications. Cloud-based apps can work offline (store data locally), while web-based apps require constant internet connection to function.

3. Bit Streaming

📖 Definition

Bit streaming is a contiguous sequence of digital bits sent over the Internet that requires a high-speed data communication link (such as fast broadband). Bits are transmitted serially, one after another, over a single channel.

3.1 Features of Bit Streaming

3.2 Role of Buffer in Bit Streaming

📝 How Buffer Works

A buffer is a temporary storage area of the computer. The data transmission rate from the file server to the buffer must be greater than the rate at which data is transmitted from the buffer to the media player.

  1. Media player receives bit stream from buffer
  2. Larger buffer = better control over bit rate sent to media player
  3. Media player checks data lies between minimum (low water mark) and maximum (high water mark) values
Media Server Buffer Media Player User

4. Types of Bit Streaming

4.1 On-Demand Bit Streaming

📝 On-Demand Streaming Process
  1. Digital/analog videos are converted to bit streaming format (encoding)
  2. Encoded files stored on a server are converted to bit streaming format
  3. URL of encoded video file is placed on web server
  4. User clicks on URL and video file is downloaded in a contiguous bit stream
  5. Streamed video is broadcast to user as and when required
⚠️ Important

On-demand streaming allows users to pause, rewind, and fast forward the video as required.

4.2 Real-Time Bit Streaming

📝 Real-Time Streaming Process
  1. Event is captured by camera and microphone and sent to computer
  2. Video signal is converted (encoded) to a streaming media file
  3. Encoded file is uploaded to dedicated video streaming server
  4. Server sends encoded live video to user's device
❌ Common Mistake

Since real-time streaming is live, it is NOT possible to pause, rewind, or fast forward the video!

4.3 Bit Rates and Broadband Speed

Bit rate is defined as the number of bits transmitted per second. The rate of transmission to buffer is limited by the bandwidth of the network connection.

Bit Rate = Frequency × Bit Depth × Channels
Example: 44,100 samples per second × 16 bits per sample × 2 channels = 1,411,200 bits per second (1,411.2 kbps)

5. Internet vs World Wide Web

Internet World Wide Web (WWW)
Massive network of networks made up of computers and electronic devices Collection of multimedia web pages and documents stored on websites
Stands for "interconnected network" URLs specify the location of all web pages
Uses TCP/IP protocols Web resources accessed by web browsers
Physical infrastructure Uses the Internet to access information from servers
💡 Exam Tip

The Internet is the hardware/infrastructure (networks, cables, routers), while the WWW is the software/content (web pages, documents) that runs on top of the Internet!

5.1 Requirements for Connecting to the Internet

🌟 Did You Know?

Telephone lines have changed from copper cables to fibre optic cables, which permit greater bandwidth, faster data transfer rates, and less risk of data corruption from interference. Video calls use Voice over Internet Protocol (VoIP) where voice is converted to digital packages using packet switching.

6. IP Addresses

📖 Definition

An IP address is a unique address for a device on a network. The Internet is based on TCP/IP protocols, and IP protocols define the rules that must be agreed by senders and receivers on the Internet.

6.1 IPv4 Addressing

IPv4 is the common type of addressing on the Internet. It is based on 32 bits giving 2³² (approximately four billion addresses) possible addresses.

📝 Features of IPv4 Address
Total IPv4 Addresses = 256 × 256 × 256 × 256 = 4.3 Billion
⚠️ Important

4.3 billion addresses is not enough for the modern world as the world has 7+ billion inhabitants and many people have more than one internet-connected device!

6.2 IPv4 Classes

Class Leading Bits Network/Host Split Use
Class A 0 8 bits Network / 24 bits Host Large networks
Class B 10 16 bits Network / 16 bits Host Medium networks
Class C 110 24 bits Network / 8 bits Host Small networks
Class D 1110 N/A Multicasting
Class E 1111 N/A Reserved for research

7. IPv6 Addressing

📖 Definition

IPv6 uses 128-bit addressing, which allows for approximately 3.4 × 10³⁸ addresses. It was developed to overcome the address limitation problems of IPv4.

IPv6 Format Example: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
Shortened: 2001:db8::8a2e:370:7334 (using zero compression)
📝 Zero Compression Rules

Zero compression removes consecutive blocks of zeros using double colon (::)

7.1 Advantages of IPv6

8. Subnetting

📖 Definition

Subnetting is the process of dividing a larger network into smaller sub-networks (subnets). It allows more efficient use of hostID by applying a structure to it, dividing a LAN into two or more smaller networks.

💡 Exam Tip

Subnetting helps reduce network traffic, improves security, and makes better use of IP addresses by reducing waste!

9. Public vs Private IP Addresses

Private IP Addresses Public IP Addresses
Unique addresses assigned by network router to devices Unique addresses assigned by ISP to network router
Used within private network for secure connections Can be accessed directly over the Internet
More secure Less secure
Can be duplicated within other networks Must be globally unique
Requires NAT to access Internet Used by DNS servers, network routers, web servers
📖 Reserved Private IP Address Ranges

9.1 Static vs Dynamic IP Addresses

Static IP Address Dynamic IP Address
Fixed IP that never changes Changes periodically when device reconnects
Manually assigned by administrator or ISP Automatically assigned by DHCP server
Used by servers, websites, gamers Used by residential users, small businesses
More expensive; requires extra configuration More cost-effective; convenient for users
Opens network to security risks More difficult to track network access

10. Network Address Translation (NAT)

📖 Definition

Network Address Translation (NAT) is a method that allows multiple devices on a local network to share a single public IP address. The NAT box has one IP address visible over the Internet and maps private IP addresses to this public address.

📝 How NAT Works
  1. When a user sends a packet from computer to server over Internet
  2. NAT server swaps private IP address for public IP address
  3. NAT attaches a PORT ID to the packet
  4. NAT server tracks which computers are assigned to which private IP
  5. When packet returns, NAT swaps public IP back to private IP
  6. Packet is sent through LAN to correct computer

11. Ethernet Protocol

📖 Definition

Ethernet is a protocol used by many wired LANs. It was adopted as standard by IEEE and is also known as IEEE 802.3. Ethernet transmits data in frames and uses MAC addresses.

📝 Components of Ethernet Network
⚠️ Important

MAC address tells who you are (used in LAN to recognize each device) and IP address tells where you are on the Internet. Both work together to send a message to the correct device in the correct network!

12. CSMA/CD - Collision Detection

📖 Definition

CSMA/CD (Carrier Sense Multiple Access with Collision Detection) is a protocol used to manage collisions in Ethernet networks. When two messages use the same data channel at the same time, a collision occurs.

📝 How CSMA/CD Works
  1. Device checks if the channel is free before transmitting
  2. If channel is free, device begins transmitting frame
  3. Frame causes voltage change on Ethernet cable
  4. If collision detected, device stops transmitting
  5. Device transmits a 'jam' signal to alert all stations
  6. Device waits for a random time interval (backoff)
  7. Device attempts to resend the frame
Check Channel Transmit Frame Collision? Send Jam Signal Wait Random Time → Retry
❌ Common Mistake

Students often forget that the random waiting time (backoff period) is crucial in CSMA/CD. Without random wait times, colliding devices would retry at the same time and collide again!

12.1 Advantages of Ethernet

13. Uniform Resource Locator (URL)

📖 Definition

A URL (Uniform Resource Locator) is used to locate a resource on the World Wide Web. Web browsers use URLs to access websites.

URL Structure Example: https://www.emkonweb.com.pk/CSMadeEasy

https:// = Protocol (HTTP or HTTPS)
www = Domain host
emkonweb = Domain name
.com.pk = Domain type + Country code
/CSMadeEasy = Path/Filename

14. Domain Name Service (DNS)

📖 Definition

DNS (Domain Name Service/System) is a system for finding IP addresses of a domain name. DNS servers contain a database of URLs with matching IP addresses. This eliminates the need for users to memorize IP addresses.

📝 DNS Resolution Process
  1. User opens web browser and types URL (e.g., www.emkonweb.com)
  2. Browser asks DNS server (1) for IP address of the website
  3. If DNS server (1) can't find it, it sends request to DNS server (2)
  4. DNS server (2) finds URL and maps it to IP address (e.g., 107.162.140.34)
  5. IP address is sent back to DNS server (1) which caches it
  6. IP address is sent back to user's computer
  7. Computer sets up communication with website server
  8. Web browser interprets HTML and displays information on screen
🧠 Memory Trick

Name Resolution = Looking up a domain name to find an IP address. Think of it as translating a "name" humans understand to an "address" computers understand!

15. Exam-Style Questions

1. Explain the difference between public and private IP addresses. [4 marks]

Answer:

  • Public IP addresses are unique addresses assigned by ISP to network router and can be accessed directly over the Internet
  • Private IP addresses are assigned by network router to devices within a private network for secure connections
  • Public addresses are less secure but globally unique; private addresses are more secure and can be duplicated in other networks
  • Private addresses require NAT to access the Internet; public addresses are used by DNS servers and web servers
2. Describe the role of a buffer in bit streaming. [3 marks]

Answer:

  • A buffer is a temporary storage area that receives data from the media server
  • The transmission rate from server to buffer must be greater than from buffer to media player
  • Larger buffer allows better control over bit rate and prevents video pauses/stuttering
3. Explain how CSMA/CD handles collisions in an Ethernet network. [4 marks]

Answer:

  1. Device checks if channel is free before transmitting
  2. If collision is detected (voltage change on cable), device stops transmitting
  3. Device sends a 'jam' signal to alert all stations
  4. Device waits for a random time interval before retrying transmission
4. List four advantages of subnetting. [4 marks]

Answer:

  • Each department can have its own subnet, facilitating network management
  • Reduces network traffic and improves network speed
  • Improves network performance by reducing congestion
  • Better utilization of IP addresses, reducing waste
  • Helps isolate problems to specific subnet for easier troubleshooting
5. Compare IPv4 and IPv6 addressing. [5 marks]

Answer:

  • IPv4 uses 32-bit addresses (4.3 billion); IPv6 uses 128-bit addresses (3.4×10³⁸)
  • IPv4 uses dotted decimal notation (e.g., 192.168.1.1); IPv6 uses colon hexadecimal (e.g., 2001:db8::1)
  • IPv6 has built-in security features; IPv4 relies on additional protocols
  • IPv6 allows more efficient routing with simplified headers
  • IPv6 eliminates need for NAT due to larger address space
6. Describe the purpose and function of Network Address Translation (NAT). [4 marks]

Answer:

  • NAT allows multiple devices on a local network to share a single public IP address
  • NAT swaps private IP addresses for public IP addresses when sending packets to the Internet
  • NAT attaches a PORT ID to each packet to track which device sent the request
  • NAT maintains a table mapping private IPs to ports, enabling correct routing of return packets
7. Explain the difference between on-demand and real-time bit streaming. [4 marks]

Answer:

  • On-demand streaming: Video files are stored on a server and broadcast when user requests them; user can pause, rewind, and fast forward
  • Real-time streaming: Live events are captured, encoded, and transmitted immediately; user cannot pause, rewind, or fast forward
  • On-demand requires pre-encoded files stored on servers; real-time requires live encoding
  • Both require buffers to manage bit rate and prevent stuttering
8. Describe the role of DNS in accessing a website. [4 marks]

Answer:

  • DNS (Domain Name Service) translates domain names (e.g., www.example.com) into IP addresses
  • User types URL in browser; browser queries DNS server for the corresponding IP address
  • DNS server searches its database/cache; if not found, queries other DNS servers
  • IP address is returned to user's computer, enabling connection to the web server
9. Explain three benefits and three drawbacks of using cloud storage. [6 marks]

Answer:

Benefits:

  • Files accessible anytime, anywhere from any device with internet
  • Provides remote backup for disaster recovery
  • No need to carry external storage devices

Drawbacks:

  • Requires stable internet connection for access
  • Potential security and privacy concerns with third-party providers
  • Costs can be high for large storage capacity or data transfer limits
10. Distinguish between the Internet and the World Wide Web. [4 marks]

Answer:

  • The Internet is a massive network of networks - the physical infrastructure connecting devices worldwide using TCP/IP protocols
  • The World Wide Web is a collection of multimedia web pages and documents stored on websites and accessed via browsers
  • Internet = hardware/infrastructure (cables, routers, servers); WWW = software/content (web pages, HTML documents)
  • WWW uses the Internet to access information; Internet can function without WWW (e.g., email, VoIP)

16. Key Takeaways

📌 Summary Points

Cloud Computing

Bit Streaming

IP Addressing

Ethernet & DNS

Concept Key Points
Internet vs WWW Internet = infrastructure; WWW = content/web pages
Static vs Dynamic IP Static = fixed; Dynamic = changes, assigned by DHCP
Public vs Private IP Public = Internet-facing; Private = internal network
MAC vs IP Address MAC = who you are; IP = where you are