Web Applications

Chapter 1: Basics of Networking – Web Applications Class XI (CBSE 803)

Class 11 · Web Applications

Chapter 1: Basics of Networking

A computer network is a collection of interconnected computers and devices that communicate with one another to share data, resources, applications, and services. Networking forms the foundation of the Internet, websites, online communication, cloud services, and many modern digital applications.

In this chapter, we will learn the basic concepts of networking and data communication, the Internet, important networking terminology, network devices, different types of networks, web architecture, and common network threats and security measures.

1.1 What is Networking?

Networking is the process of connecting two or more computers or digital devices so that they can communicate and share information and resources.

A network may connect computers within a room, a school building, a city, a country, or across the world.

Example:

In a school, computers connected through a network can share printers, files, applications, Internet connectivity, and other resources.

Why Do We Need Networking?

  • To share information and data.
  • To share hardware such as printers and storage devices.
  • To communicate between users and devices.
  • To share Internet connectivity.
  • To access network-based applications and services.
  • To facilitate centralized management of resources.

1.1.1 Concept of Communication

Communication is the process of exchanging information between two or more entities.

In data communication, information is exchanged between electronic devices through a communication medium.

Sender → Communication Medium → Receiver

For successful communication, the sender and receiver must follow agreed rules and the transmitted information must be received in an understandable form.

Example of Data Communication

When a student sends an email to a teacher, the student's device acts as the source of the information. The data travels through a network and is eventually received by the teacher's device.

1.1.2 Components of Data Communication

A data communication system consists of several essential components that work together to transfer information from one device to another.

Component Description Example
Sender The device or entity that sends the data. Student's computer
Receiver The device or entity that receives the data. Teacher's computer
Message The information being communicated. Email, text, image or file
Communication Channel The medium through which data travels. Network cable or wireless connection
Protocol A set of rules governing communication between devices. HTTP, TCP/IP

Basic Communication Model

Sender → Message → Communication Channel → Receiver

Protocols ensure that communicating devices understand how data should be formatted, transmitted, received, and interpreted.

1.1.3 Internet

The Internet is a worldwide network of interconnected computer networks and devices that communicate using standard networking protocols.

It enables users to access a wide range of services such as websites, email, online learning, video conferencing, cloud applications, file sharing, social networking, and online transactions.

Common Internet Services

  • World Wide Web (WWW)
  • Email
  • Online communication
  • File transfer
  • Cloud services
  • Online education
  • Video conferencing
  • Online banking and shopping
Remember:

The Internet and the World Wide Web are not the same thing. The Internet is the underlying global network, while the Web is one of the services that operates over the Internet.

1.2 Advantages and Disadvantages of Networking

Advantages of Networking

  1. Resource Sharing: Hardware such as printers and storage devices can be shared.
  2. Data Sharing: Users can exchange files and information.
  3. Communication: Users can communicate through email, messaging, video conferencing, and other services.
  4. Internet Sharing: Multiple devices can access a common Internet connection.
  5. Centralized Management: Network resources and users can be managed centrally.
  6. Collaboration: Users can work together on shared documents and projects.
  7. Cost Reduction: Shared resources can reduce the cost of maintaining separate hardware and services.

Disadvantages of Networking

  1. Security Risks: Networked systems can be exposed to unauthorized access and attacks.
  2. Malware Spread: Malware can spread rapidly between connected devices.
  3. Network Dependency: Some services become unavailable when the network fails.
  4. Setup Cost: Network infrastructure may require hardware, software, and skilled personnel.
  5. Maintenance: Networks require monitoring, configuration, troubleshooting, and maintenance.
  6. Privacy Concerns: Improperly secured networks can expose sensitive information.

1.3 Data Communication Terminology

Several technical terms are commonly used when discussing computer networks and data communication.

1.3.1 Communication Channel

A communication channel is the medium or path through which data travels from the sender to the receiver.

Communication channels may be broadly classified as wired or wireless.

Type Examples
Wired Twisted-pair cable, coaxial cable, optical fibre
Wireless Wi-Fi, radio communication, microwave communication

1.3.2 Bandwidth

Bandwidth refers to the capacity of a communication channel to carry data over a given period.

In digital communication, bandwidth or network capacity is commonly expressed in bits per second and its multiples, such as Kbps, Mbps, and Gbps.

Simple Understanding:

Higher network capacity generally allows more data to be carried during a given period, subject to other network conditions.

1.3.3 Data Transfer Rate

Data transfer rate is the amount of data transferred from one location to another in a specified amount of time.

It is generally measured in bits per second (bps) and its multiples.

Unit Meaning
bps Bits per second
Kbps Kilobits per second
Mbps Megabits per second
Gbps Gigabits per second
Important:

Network speed and actual download/upload performance can be affected by several factors, including network congestion, hardware, server performance, connection quality, and protocol overhead.

1.3.4 IP Address

An IP address is a numerical address used to identify a device or network interface on an IP network.

IP addresses allow devices to be identified and data to be routed to the appropriate destination.

IPv4 Address

An IPv4 address consists of four numerical parts separated by dots.

Example: 192.168.1.10

Each part of an IPv4 address is called an octet.

IPv6 Address

IPv6 was developed to provide a much larger address space than IPv4. IPv6 addresses are represented using hexadecimal notation separated by colons.

Example: 2001:db8::1
Remember:

An IP address is used for network-level identification and communication. It should not be confused with a person's identity.

1.4 Network Devices

Network devices are hardware components used to connect computers and other devices and to facilitate communication between them.

Device Purpose
Network Interface Card (NIC) Provides a device with a network interface for connecting to a network.
Hub Connects multiple devices and broadcasts incoming data to connected ports.
Switch Connects devices in a network and forwards data to the appropriate destination port.
Router Connects different networks and forwards packets between them.
Modem Converts signals to enable communication over certain types of communication links.
Wireless Access Point Provides wireless devices with access to a wired or wireless network.
Repeater Regenerates or retransmits signals to extend communication distance.
Gateway Provides an entry or exit point between networks that may use different communication environments.

Hub vs Switch

Hub Switch
Broadcasts incoming data to connected ports. Forwards data to the appropriate destination port.
Less efficient for modern networks. More efficient for typical Ethernet networks.

Router

A router connects different networks and determines where packets should be forwarded. A typical home router can connect devices in a local network to an Internet service.

Modem

A modem is a device used to enable communication over a particular telecommunications connection by converting signals as required by that connection.

1.5 Types of Networks

Computer networks can be classified according to factors such as their geographical coverage and the area over which they operate.

Four important types of networks are:

  • PAN – Personal Area Network
  • LAN – Local Area Network
  • MAN – Metropolitan Area Network
  • WAN – Wide Area Network

1.5.1 PAN

PAN (Personal Area Network) is a network designed for communication among devices located around an individual, generally within a relatively small range.

Examples

  • Smartphone connected to wireless earbuds.
  • Smartphone connected to a smartwatch.
  • Personal devices connected using Bluetooth.

1.5.2 LAN

LAN (Local Area Network) connects computers and devices within a relatively limited geographical area such as a home, office, laboratory, computer room, or school building.

Examples

  • School computer laboratory network.
  • Office network.
  • Home network.
School Example:

A school may use a LAN to connect computers in the computer laboratory, administrative office, library, and other departments.

1.5.3 MAN

MAN (Metropolitan Area Network) is a network that generally covers a larger geographical area than a LAN and may span a city or metropolitan region.

A MAN can connect multiple LANs within a metropolitan area.

1.5.4 WAN

WAN (Wide Area Network) covers a large geographical area and can connect networks across cities, countries, or continents.

The Internet is a prominent example of a global interconnected network.

Comparison of PAN, LAN, MAN and WAN

Network Full Form Typical Coverage Example
PAN Personal Area Network Personal surroundings Bluetooth-connected personal devices
LAN Local Area Network Room, building or limited area School computer laboratory
MAN Metropolitan Area Network City or metropolitan area Network connecting multiple locations across a city
WAN Wide Area Network Large geographical area Network spanning countries or continents

1.6 Web Architecture

Web architecture describes how different components involved in providing web-based services communicate and interact.

Two important approaches to network architecture are Peer-to-Peer and Client-Server.

1.6.1 Peer-to-Peer

In a Peer-to-Peer (P2P) network, computers can communicate directly with one another and may act as both clients and providers of resources.

There is generally no requirement for a dedicated central server to provide all shared resources.

Characteristics

  • Computers can communicate directly.
  • Devices may share resources with one another.
  • There may be no dedicated central server.
  • Suitable for relatively small or decentralized environments.

Advantages

  • Simple to set up for small networks.
  • Does not necessarily require a dedicated server.
  • Resources can be shared directly between devices.

Disadvantages

  • Centralized management is limited.
  • Security management can be more difficult as the network grows.
  • Performance and resource availability can depend on individual devices.

1.6.2 Client-Server

In a Client-Server architecture, client devices request services or resources from a server.

Client → Request → Server
Client ← Response ← Server

A server is a computer or system that provides services, resources, or data to clients over a network.

Examples

  • Web browser requesting a webpage from a web server.
  • Email client communicating with a mail server.
  • School application accessing information from a database server.

Advantages

  • Centralized management.
  • Centralized storage of resources.
  • Easier administration and monitoring.
  • Centralized security controls can be implemented.
  • Suitable for larger organizational environments.

Disadvantages

  • Requires server infrastructure.
  • Server maintenance is required.
  • A failure of an important server can affect dependent services.
  • Initial infrastructure and administration costs can be higher.

Peer-to-Peer vs Client-Server

Feature Peer-to-Peer Client-Server
Architecture Decentralized Centralized around servers
Dedicated Server Generally not required Required for server-provided services
Management Distributed Centralized
Suitable For Small or decentralized environments Organizations and larger applications
Example Direct resource sharing between computers Web browser communicating with a web server

1.7 Network Threats and Security Measures

Network-connected devices are exposed to various threats. A network threat is a potential danger that can affect the confidentiality, integrity, or availability of systems and data.

Common threats include malware, phishing, spam, and denial-of-service attacks.

Security Principle:

Network security involves protecting systems, networks, accounts, applications, and data from unauthorized access, misuse, disruption, or damage.

1.7.1 Virus and Malware

Malware is a general term for malicious software designed to disrupt systems, damage data, gain unauthorized access, or perform other harmful activities.

A computer virus is a type of malicious program that can replicate by attaching itself to files or programs and can spread when infected content is executed or shared.

Examples of Malware

  • Viruses
  • Worms
  • Trojans
  • Ransomware
  • Spyware
  • Other malicious software

Security Measures

  • Use updated antivirus or endpoint security software.
  • Keep operating systems and applications updated.
  • Avoid opening suspicious attachments.
  • Download software from trusted sources.
  • Maintain regular backups of important data.
  • Use appropriate access controls.

1.7.2 Phishing and Spam

Phishing

Phishing is a social-engineering technique in which an attacker attempts to deceive a user into revealing sensitive information or performing an unsafe action.

Phishing messages may attempt to obtain passwords, financial information, authentication codes, or other sensitive information.

Common Signs of Phishing

  • Unexpected requests for sensitive information.
  • Urgent or threatening language.
  • Suspicious links or attachments.
  • Unusual sender addresses.
  • Offers that appear too good to be true.
  • Requests to bypass normal security procedures.

Spam

Spam refers to unwanted or unsolicited messages, particularly those sent in bulk.

Security Measures

  • Do not click suspicious links.
  • Verify the sender before responding.
  • Do not share passwords or authentication codes.
  • Use spam filters.
  • Report suspicious messages.
  • Access important services through known official websites or applications.

1.7.3 Denial of Service

A Denial-of-Service (DoS) attack attempts to make a service, server, or network resource unavailable to legitimate users by overwhelming or disrupting it.

When an attack is carried out using multiple compromised systems, it is commonly called a Distributed Denial-of-Service (DDoS) attack.

Simple Example:

Imagine a school's online portal being flooded with an extremely large number of requests. The server may become overloaded and legitimate students and teachers may be unable to access the portal.

Effects of DoS Attacks

  • Slow or unavailable services.
  • Reduced network performance.
  • Loss of access to online applications.
  • Business or institutional disruption.

Security Measures

  • Use firewalls and network security controls.
  • Monitor unusual network traffic.
  • Use rate limiting where appropriate.
  • Use traffic filtering and protection services.
  • Maintain appropriate network capacity and redundancy.
  • Keep network infrastructure properly configured and updated.

1.7.4 Security Tools

Various hardware and software tools can be used to protect networks, devices, applications, and data.

Security Tool Purpose
Antivirus / Anti-malware Detects, blocks, and helps remove malicious software.
Firewall Controls network traffic according to defined security rules.
Spam Filter Helps identify and filter unwanted messages.
Encryption Protects information by transforming readable data into protected form.
Authentication Verifies the identity of a user or system.
Multi-Factor Authentication Adds additional verification factors beyond a password.
Backup Maintains additional copies of important data for recovery.
Intrusion Detection / Prevention Helps identify or prevent suspicious network activity.

Basic Network Security Practices

  1. Use strong and unique passwords.
  2. Enable multi-factor authentication where available.
  3. Keep software and operating systems updated.
  4. Use antivirus and security software.
  5. Enable an appropriate firewall.
  6. Do not open suspicious links or attachments.
  7. Use secure networks when handling sensitive information.
  8. Take regular backups.
  9. Protect sensitive information from unauthorized access.
  10. Educate users about phishing and social engineering.

Quick Revision: Chapter at a Glance

Topic Key Point
Networking Connecting devices for communication and resource sharing.
Data Communication Exchange of information between devices.
Internet Global interconnected network of networks.
Communication Channel Medium through which data travels.
Bandwidth Capacity of a communication channel.
Data Transfer Rate Amount of data transferred per unit of time.
IP Address Network address used to identify a device or interface.
Network Devices Hardware used to connect and manage network communication.
PAN Personal Area Network.
LAN Local Area Network.
MAN Metropolitan Area Network.
WAN Wide Area Network.
Peer-to-Peer Devices communicate and share resources directly.
Client-Server Clients request services or resources from servers.
Virus A type of malicious program capable of spreading through infected content.
Malware General term for malicious software.
Phishing Deceptive attempt to obtain information or cause unsafe action.
Spam Unwanted or unsolicited messages.
DoS Attack intended to make a service unavailable to legitimate users.
Firewall Controls network traffic according to security rules.

Important Questions for Revision

  1. What is networking?
  2. Explain the concept of communication.
  3. What are the components of data communication?
  4. What is the Internet?
  5. List the advantages of networking.
  6. List the disadvantages of networking.
  7. What is a communication channel?
  8. What is bandwidth?
  9. What is data transfer rate?
  10. What is an IP address?
  11. What is the difference between IPv4 and IPv6?
  12. Name some commonly used network devices.
  13. What is PAN?
  14. What is LAN?
  15. What is MAN?
  16. What is WAN?
  17. Differentiate between PAN, LAN, MAN and WAN.
  18. What is Peer-to-Peer architecture?
  19. What is Client-Server architecture?
  20. Differentiate between Peer-to-Peer and Client-Server architecture.
  21. What is malware?
  22. What is a computer virus?
  23. What is phishing?
  24. What is spam?
  25. What is a Denial-of-Service attack?
  26. What is the difference between DoS and DDoS?
  27. What is a firewall?
  28. Name some security tools used to protect computer networks.
  29. List important network security practices.

Multiple Choice Questions

Q1. What is networking?

  1. Connecting devices to communicate and share resources
  2. Installing only antivirus software
  3. Creating a single document
  4. Designing a webpage

Answer: A

Q2. Which component sends data in a communication system?

  1. Receiver
  2. Sender
  3. Channel
  4. Protocol

Answer: B

Q3. Which of the following is a communication channel?

  1. Network cable
  2. Keyboard
  3. Monitor
  4. Printer cartridge

Answer: A

Q4. Which network generally covers a personal area?

  1. WAN
  2. MAN
  3. LAN
  4. PAN

Answer: D

Q5. Which network is generally used within a school building?

  1. PAN
  2. LAN
  3. MAN
  4. WAN

Answer: B

Q6. Which device connects different networks?

  1. Router
  2. Keyboard
  3. Monitor
  4. Scanner

Answer: A

Q7. Which architecture uses clients requesting services from servers?

  1. Peer-to-Peer
  2. Client-Server
  3. PAN
  4. LAN

Answer: B

Q8. Which of the following is malware?

  1. Virus
  2. Monitor
  3. Router
  4. Keyboard

Answer: A

Q9. What is phishing?

  1. A method of printing documents
  2. A deceptive attempt to obtain sensitive information
  3. A network device
  4. A type of communication cable

Answer: B

Q10. Which security tool controls network traffic according to security rules?

  1. Firewall
  2. Compiler
  3. Text editor
  4. Web browser

Answer: A

Chapter Summary

Networking enables computers and digital devices to communicate and share information and resources. Data communication involves components such as a sender, receiver, message, communication channel, and protocol.

The Internet is a global network of interconnected networks. Important networking terms include communication channel, bandwidth, data transfer rate, and IP address.

Network devices such as NICs, hubs, switches, routers, modems, access points, repeaters, and gateways perform different functions in network communication.

Networks can be classified as PAN, LAN, MAN, and WAN according to their coverage. Web and network services can use architectures such as Peer-to-Peer and Client-Server.

Network security is essential because connected systems can be exposed to threats such as viruses, malware, phishing, spam, and denial-of-service attacks. Security tools and practices such as antivirus software, firewalls, spam filters, encryption, authentication, multi-factor authentication, backups, and network monitoring help protect systems and information.

Network → Communication → Resource Sharing → Internet → Web Services