Computer Networks
Class XII CS · Class XII IP

Computer Networks

How computers are joined, what carries the signal, which devices move the data, the rules they follow, and how a web page reaches your screen.

9 chapters25 topics12-CS · Unit 212-IP · Unit 3
URLyou type it DNSname → IP ROUTERSpick a path MEDIAcable · radio WEB SERVERsends the page BROWSERshows it At every step: protocols, the rules both ends agree on (TCP/IP, HTTP, SMTP …).
100 m
Repeater rule
A twisted-pair link longer than this needs a repeater
32 bits
IPv4 address
Four numbers 0–255, e.g. 192.168.1.10
P · L · M · W
Types of network
PAN (a person) → LAN (a campus) → MAN (a city) → WAN (the world)
Most PCs
Where the server goes
In a case study, the block with the most computers
Chapter 1 of 9 · NET

Introduction to Networks

What a computer network is, why we build one, and how a small US defence project in 1969 grew into the Internet.

    NET.01 · Introduction to Networks

    Introduction to Computer Networks

    12-CS12-IP

    A computer network is two or more computers and devices connected together so that they can share data and resources and communicate. The connection can be wired (cables) or wireless (radio waves).

    Each device on the network is a node: a computer, laptop, phone, printer or server. A host is a node that is a full computer with its own address. The path between two nodes is a link (also called the channel).

    PC 1node PC 2node PRINTERshared SWITCHjoins nodes SERVERfiles, data ROUTERto outside INTERNETother networks
    A small office network: every node connects to a switch. The router links this network to other networks, such as the Internet. The moving arrows show PC 2's data going out.

    Why build a network?

    • Resource sharing: one printer, scanner or internet connection serves every computer.
    • Data sharing: files and databases kept on one server can be used by everyone allowed to.
    • Communication: email, chat, video calls and file transfer.
    • Lower cost: fewer devices and software licences are needed.
    • Reliability: data can be backed up on more than one computer.

    Networks come in every size: two phones sharing a file over Bluetooth, a school computer lab, a bank's ATMs across a city, and the Internet, which joins millions of networks across the world. Chapter 5 sorts them into PAN, LAN, MAN and WAN.

    Exam tip

    Define a network in one line: "a group of interconnected computers and devices that can share data and resources". Then give one advantage, such as resource sharing, for the second mark.

    NET.02 · Introduction to Networks

    Evolution of Networking

    12-CS

    The Internet did not appear all at once. It grew in three stages: a defence research network (ARPANET), a network for universities (NSFNET), and then the worldwide, public Internet.

    1969ARPANET4 computers1971Emailthe @ sign1983TCP/IPone protocol1986NSFNETuniversities1991WWWBerners-Lee1995Internetin India
    The three filled points are the three stages in the syllabus: ARPANET, NSFNET and the Internet.

    ARPANET #arpanet

    ARPANET (Advanced Research Projects Agency Network) was started in 1969 by ARPA, part of the US Department of Defense. It first connected four computers at four universities and research centres, so researchers could share data. It was the first network to use packet switching (Chapter 2), and it is called the forerunner of the Internet. Email arrived on ARPANET in 1971, and in 1983 ARPANET switched to the TCP/IP protocols that the Internet still uses.

    NSFNET #nsfnet

    NSFNET (National Science Foundation Network) was set up in 1986 by the US National Science Foundation. It joined universities and supercomputer centres for academic research, and it was much faster and larger than ARPANET. It became the backbone that smaller networks connected to. ARPANET was shut down in 1990, and NSFNET was opened up to commercial use in the early 1990s.

    Internet #internet

    When private and commercial networks joined the NSFNET backbone, the result was the Internet: a worldwide network of networks that all use TCP/IP. In 1991 Tim Berners-Lee's World Wide Web made it easy to use, and in India the public Internet started on 15 August 1995 through VSNL. Today no single organisation owns the Internet.

    NetworkYearSet up byPurpose
    ARPANET1969ARPA, US Department of DefenseShare data between research computers
    NSFNET1986National Science Foundation (USA)Connect universities for academic research
    Internet1990sNo single ownerA public network of networks for everyone
    Exam tip

    Expansions are asked often: ARPANET = Advanced Research Projects Agency Network; NSFNET = National Science Foundation Network. Remember the order: ARPANET → NSFNET → Internet.

    Chapter practice · NET

    Check your understanding

    Which of these is the main purpose of a computer network?
    Every device connected to a network, such as a PC or printer, is called a:
    The first network, started in 1969 by the US Department of Defense, was:
    NSFNET was set up mainly to connect:
    Your score
    – / 4
    Answer every question to see your score.

    One-page revision

    Networkconnected devices that share data and resources
    Nodeany device on a network
    Linkthe path between two nodes
    Advantagesresource and data sharing, communication, lower cost
    ARPANET · 1969US Defense; the first network
    NSFNET · 1986universities and research
    Internetnetwork of networks, using TCP/IP
    Chapter 2 of 9 · DCOM

    Data Communication

    The words used for sending data from one device to another: the five parts of every communication, how a link's capacity is measured, the address every device needs, and the two ways data is switched across a network.

      DCOM.01 · Data Communication

      Concept of Communication

      12-CS

      Communication is the exchange of information between two or more parties. Data communication is the exchange of data between two or more networked devices, such as computers, phones and printers, in the form of 0s and 1s.

      Data can flow in three ways, depending on who can send and when:

      ModeData flowsExample
      SimplexOne way onlyKeyboard to computer; TV broadcast
      Half duplexBoth ways, but one at a timeWalkie-talkie: press to talk, release to listen
      Full duplexBoth ways at the same timeMobile phone call
      Note

      The syllabus names only "concept of communication". Simplex, half duplex and full duplex are a common way to explain it, and the examples help with case-based questions.

      Exam tip

      Data communication needs at least two devices and a medium between them. A file copied from one folder to another on the same PC is not data communication.

      DCOM.02 · Data Communication

      Components of Data Communication

      12-CS

      Every data communication, from a WhatsApp message to a bank transfer, has the same five components.

      SENDERPC, phone RECEIVERPC, phone MESSAGEtext, image … PROTOCOLagreed rules COMMUNICATION MEDIUM cable or wireless
      The sender puts the message on the medium; the receiver takes it off. Both sides follow the same protocol, or the message can't be understood.

      Sender #sender

      The sender is the device that creates and sends the message: a computer, mobile phone, smartwatch or camera.

      Receiver #receiver

      The receiver is the device that receives the message. It can be the same kinds of device as the sender.

      Message #message

      The message is the data being sent: text, numbers, a photo, sound or video. Inside the network it is always a stream of bits.

      Communication media #media

      The communication medium is the path the message travels along. It is either wired (guided: twisted pair, coaxial, optical fibre) or wireless (unguided: radio waves, microwaves, infrared). Chapter 3 covers each one.

      Protocols #protocols

      A protocol is a set of rules that both sender and receiver follow so that communication succeeds: how the data is formatted, how fast it is sent, how errors are found. Without a common protocol, two devices are like two people speaking different languages. Chapter 6 covers HTTP, FTP, SMTP and the others.

      Exam tip

      The marking scheme definition of a protocol is "a set of rules that need to be followed by the communicating devices in order to have successful and reliable data communication". Learn it word for word.

      DCOM.03 · Data Communication

      Measuring Capacity of Communication Media

      12-CS

      Some links carry far more data than others. Their capacity is measured in two related ways: bandwidth (how wide the channel is) and data transfer rate (how many bits actually go through each second). The wider the bandwidth, the higher the data transfer rate can be.

      Bandwidth #bandwidth

      Bandwidth is the range of frequencies a channel can carry: the difference between its highest and lowest frequency. It is measured in hertz (Hz).

      1 kHz = 1000 Hz, 1 MHz = 1000 kHz, 1 GHz = 1000 MHz. Example: a channel that carries 88 MHz to 108 MHz has a bandwidth of 20 MHz. Think of a road: bandwidth is how many lanes it has.

      Data transfer rate #data-transfer-rate

      Data transfer rate is the number of bits sent per second between the sender and the receiver. It is measured in bps (bits per second), and in Kbps, Mbps, Gbps and Tbps for larger values. On the road, it is how many cars pass each second.

      Notice the small b: Mbps means megabits. File sizes are in megabytes (MB), and 1 byte = 8 bits, so multiply by 8 first.

      Python · how long will a 50 MB file take?
      size_MB = 50            # file size
      rate_Mbps = 8           # link speed: megabits/s
      bits = size_MB * 8      # 1 byte = 8 bits
      print('File size :', bits, 'megabits')
      print('Time      :', bits / rate_Mbps, 'seconds')
      for r in (2, 8, 100):
          print(f'at {r:>3} Mbps -> {bits / r:6.1f} s')
      Output
      File size : 400 megabits Time : 50.0 seconds at 2 Mbps -> 200.0 s at 8 Mbps -> 50.0 s at 100 Mbps -> 4.0 s
      BandwidthData transfer rate
      MeansRange of frequencies the channel carriesBits actually sent each second
      UnitHz, kHz, MHz, GHzbps, Kbps, Mbps, Gbps, Tbps
      Road pictureNumber of lanesCars passing per second
      Note

      The NCERT textbook takes 1 Kbps = 2¹⁰ bps (1024 bps), 1 Mbps = 2²⁰ bps and so on. Internet companies use 1000 instead. Follow your textbook in the exam, and if a question gives the conversion, use that.

      Exam tip

      Units decide the answer: bandwidth → hertz, data transfer rate → bits per second. "Define bandwidth" is a frequent 1-mark question.

      DCOM.04 · Data Communication

      IP Address

      12-CS

      An IP address (Internet Protocol address) is a unique number given to every device on a network, so that data can be sent to exactly that device, just as a postal address lets a letter reach one house. It is a logical address: it can change when the device joins a different network.

      IPv4 and IPv6

      IPv4 addresses are 32 bits long, written as four numbers from 0 to 255 separated by dots, e.g. 192.168.1.10. Each number is one byte (8 bits), called an octet. IPv4 allows about 4.3 billion addresses (2³²), which are no longer enough, so the newer IPv6 uses 128 bits, written as eight groups of hexadecimal digits, e.g. 2001:db8:0:0:0:ff00:42:8329.

      Python · an IPv4 address in binary
      ip = '192.168.1.10'
      parts = [int(p) for p in ip.split('.')]
      print(parts)
      print('.'.join(f'{p:08b}' for p in parts))
      print('bits:', 8 * len(parts))
      for bad in ['192.168.1.256', '10.0.5']:
          nums = bad.split('.')
          ok = len(nums) == 4 and all(
              0 <= int(n) <= 255 for n in nums)
          print(bad, '->', 'valid' if ok else 'not valid')
      Output
      [192, 168, 1, 10] 11000000.10101000.00000001.00001010 bits: 32 192.168.1.256 -> not valid 10.0.5 -> not valid
      IP addressMAC address
      What it isLogical address given by the networkPhysical address burnt into the network card (NIC) by its maker
      Size32 bits (IPv4) or 128 bits (IPv6)48 bits, written as 6 hex pairs: 00:1A:2B:3C:4D:5E
      Can it change?Yes, on a different networkNo, it stays with the card
      Exam tip

      Each part of an IPv4 address must be 0 to 255, and there must be four parts. So 192.168.1.256 and 10.0.5 are not valid. "Every NIC comes with its own ___ address" → physical (MAC), not IP.

      DCOM.05 · Data Communication

      Switching Techniques

      12-CS

      In a big network, A and B are not joined by one direct wire. Data passes through several switching nodes on the way. A switching technique decides how a path through these nodes is used. There are two in the syllabus.

      AB AB 123 CIRCUIT SWITCHING PACKET SWITCHING path reserved first, then all data uses it packets take any free path, put back in order at B
      Circuit switching reserves one whole path (thick line) before sending. Packet switching sends numbered packets that may travel different ways and arrive out of order.

      Circuit switching #circuit

      In circuit switching, a dedicated path between sender and receiver is set up before communication starts, and it stays reserved until the communication ends. All the data follows that one path, in order. No one else can use the path meanwhile, even during silence. The old landline telephone network works this way: dial, the line connects, talk, hang up.

      Packet switching #packet

      In packet switching, the message is broken into small pieces called packets. Each packet carries the destination address and a sequence number. Packets travel independently, each by whatever path is free, and may arrive out of order; the receiver puts them back in order. No path is reserved, so links are shared and used efficiently. The Internet uses packet switching.

      Circuit switchingPacket switching
      PathDedicated path set up before sendingNo fixed path; each packet routed separately
      Data sent asA continuous streamSmall packets with addresses
      OrderArrives in orderMay arrive out of order; reassembled
      Use of the lineWasted when idle; reserved for one userShared; efficient
      ExampleLandline telephone callInternet, email, web
      Exam tip

      "Before communication starts, a dedicated path is identified between sender and receiver" → circuit switching, every time. "Differentiate" questions want two clear points: dedicated path vs none, and in-order stream vs packets.

      Chapter practice · DCOM

      Check your understanding

      Name it

      The set of rules both devices must follow to communicate.

      A channel carries 2 GHz to 2.5 GHz. What is its bandwidth?

      A 10 MB photo on a 4 Mbps link. How many seconds?

      Is 172.16.300.4 a valid IPv4 address?

      Self-check quiz

      A walkie-talkie, where only one person can talk at a time, is an example of:
      Which of these is NOT one of the five components of data communication?
      Bandwidth is measured in:
      Mbps stands for:
      An IPv4 address is how many bits long?
      Every network interface card (NIC) comes with its own ___ address.
      In ___ switching, a dedicated path is identified between sender and receiver before communication starts.
      Which statement about packet switching is true?
      Your score
      – / 8
      Answer every question to see your score.

      One-page revision

      Simplex · half · fullone way · both, in turn · both at once
      5 componentssender, receiver, message, medium, protocol
      Protocolrules for successful, reliable communication
      Bandwidthrange of frequencies, in Hz
      Data transfer ratebits per second (bps, Mbps …)
      1 byte8 bits: MB × 8 = megabits
      IPv432 bits; 4 parts 0–255
      IPv6128 bits; hex groups
      MAC address48-bit physical address of a NIC
      Circuit switchingdedicated path first; telephone
      Packet switchingpackets, any path; the Internet
      Chapter 3 of 9 · TMED

      Transmission Media

      A transmission medium is whatever carries the signal from sender to receiver. Wired (guided) media carry it along a cable. Wireless (unguided) media send it through the air as electromagnetic waves.

        TMED.01 · Transmission Media

        Wired Communication Media

        12-CS

        Wired or guided media carry the signal along a physical path. Twisted pair and coaxial cables carry electrical signals through copper; optical fibre carries light through glass.

        TWISTED PAIR copper pairs, twisted cheap · up to 100 m COAXIAL copper core + shield cable TV · less noise OPTICAL FIBRE light in a glass core fastest · many km cost, speed and distance all rise from left to right
        Twisting the pair cancels outside noise; coaxial cable's metal shield blocks it; optical fibre carries light, so electrical noise can't affect it at all.

        Twisted pair cable #twisted-pair

        A twisted pair cable has pairs of insulated copper wires twisted round each other. The twists reduce electromagnetic interference (noise) from outside and between pairs. It is the Ethernet cable used in almost every LAN, with an RJ45 plug on each end.

        • UTP (Unshielded Twisted Pair): no metal shield; cheap and flexible; the usual LAN cable.
        • STP (Shielded Twisted Pair): each pair wrapped in foil; less noise, costs more.
        • Cheap and easy to install, but the signal weakens after about 100 m, so a longer run needs a repeater.

        Coaxial cable #coaxial

        A coaxial cable has a single copper core, wrapped in insulation, then a braided metal shield, then a plastic outer jacket. The core and shield share one axis, hence "co-axial". The shield makes it far less noisy than twisted pair and lets it carry signals further at higher bandwidth. It is used for cable TV and was used in early LANs. It is thicker and costs more than twisted pair.

        Optical fibre cable #fibre

        An optical fibre cable carries data as pulses of light through a thin glass or plastic core. The core is surrounded by cladding, which reflects the light back in (total internal reflection), so it travels many kilometres with very little loss.

        • Fastest and highest bandwidth of all media; works over long distances.
        • Not affected by electrical noise or lightning; hard to tap, so more secure.
        • Expensive, fragile, and difficult to install and join; needs special connectors.
        • Used for internet backbones, undersea cables, and links between buildings or cities.
        Twisted pairCoaxialOptical fibre
        CarriesElectrical signal (copper)Electrical signal (copper)Light (glass)
        Speed / bandwidthLowestMediumHighest
        DistanceAbout 100 m per runA few hundred metresMany kilometres
        NoiseMost affectedLess, thanks to shieldNot affected
        Cost, installationCheapest, easiestMediumCostliest, hardest
        Used forLANs (Ethernet)Cable TVBackbones, long links
        Exam tip

        In the case study: "economical, can compromise on speed" → twisted pair (Ethernet) cable. "Fast, very effective, between head office and campus" or "high-speed wired link" → optical fibre.

        TMED.02 · Transmission Media

        Wireless Media

        12-CS

        Wireless or unguided media send data through air or space as electromagnetic waves, with no cable. They are sorted by frequency. As frequency rises, the waves carry more data but travel less far and pass less easily through walls.

        FREQUENCY RISES → RADIO WAVES3 kHz – 1 GHz MICROWAVES1 – 300 GHz INFRARED300 GHz – 400 THz all directionsgo through wallsFM radio, TV one directionline of sightmobile, satellite very short rangeblocked by wallsTV remote range and wall-penetration fall from left to right
        The frequency ranges follow the NCERT textbook. The highlighted band, microwaves, carries mobile and satellite links.

        Radio waves #radio

        Radio waves (3 kHz to 1 GHz) spread out in all directions (omnidirectional), so sending and receiving antennas need not face each other. They travel long distances and pass through walls. Used for AM and FM radio, television broadcasts, cordless phones and walkie-talkies. Because anyone in range can pick them up, they are less secure.

        Microwaves #microwaves

        Microwaves (1 GHz to 300 GHz) travel in a straight line in one direction (unidirectional), so the sending and receiving antennas must be in line of sight. That is why microwave antennas sit on tall towers and hilltops. They cannot pass through buildings or hills. Used for mobile phone networks, satellite communication, and long-distance links where laying cable is hard.

        Infrared waves #infrared

        Infrared waves (300 GHz to 400 THz) work only over a very short distance in line of sight, and cannot pass through walls. That keeps them inside one room, which makes them secure. Used in TV and AC remote controls, and in older phones to send files to a phone held next to them.

        Radio wavesMicrowavesInfrared
        Frequency3 kHz – 1 GHz1 GHz – 300 GHz300 GHz – 400 THz
        DirectionAll directionsOne direction, line of sightLine of sight
        Through walls?YesNoNo
        RangeLongLong, tower to towerA few metres
        ExamplesFM/AM radio, TV, cordless phoneMobile phones, satellite linksRemote controls
        Exam tip

        "Which medium does an FM radio channel use?" → radio waves (2026 CS marking scheme). For a far-off office in a hilly area, where laying cable is hard, choose a wireless link: radio waves or microwaves.

        Chapter practice · TMED

        Check your understanding

        Pick the medium

        Connect 30 PCs in one school lab as cheaply as possible.

        A very fast wired link between a campus and a head office 4 km away.

        Changing channels on a TV from the sofa.

        Linking two hilltop offices 30 km apart with antennas facing each other.

        Self-check quiz

        Which medium carries data as pulses of light?
        Why are the wires in a twisted pair cable twisted?
        Which wireless medium needs line of sight and is used for satellite links?
        Which wireless waves can pass through the walls of a building?
        Your score
        – / 4
        Answer every question to see your score.

        One-page revision

        Guidedwired: twisted pair, coaxial, fibre
        Unguidedwireless: radio, microwave, infrared
        Twisted paircheap LAN cable; ~100 m; UTP / STP
        Coaxialcore + shield; cable TV
        Optical fibrelight; fastest; long; costly
        Radio waves3 kHz–1 GHz; all directions; walls OK
        Microwaves1–300 GHz; line of sight; satellite
        Infrared300 GHz–400 THz; short; remotes
        Chapter 4 of 9 · NDEV

        Network Devices

        The hardware that joins computers into a network and connects networks to each other. "Which device?" questions appear in every paper, and the case study always asks for at least one device.

          NDEV.01 · Network Devices

          Network Devices

          12-CS12-IP

          Each device has one job. Inside a building, computers plug into a switch or hub. A repeater boosts the signal on a long cable. A router or gateway connects this network to other networks, and a modem turns the data into a signal the telephone or cable line can carry.

          PCEthernet card LAPTOPWi-Fi card SWITCHor hub ROUTERpicks a path MODEMdigital↔analog REPEATERboosts signal PCfar block INTERNETthrough an ISP a gateway is used if networks differ cable > 100 m
          The PC's cable ends in an RJ45 plug that goes into its Ethernet card; the laptop reaches the switch by Wi-Fi (dotted arrow). The repeater sits on the long cable to the far block.

          Modem #modem

          A modem (MOdulator–DEModulator) converts the computer's digital signal into an analog signal that can travel over a telephone or cable line (modulation), and converts the analog signal arriving from the line back into digital (demodulation). It is what connects a home or office to the Internet service provider (ISP).

          Hub #hub

          A hub connects several computers in a LAN. It has many ports. Data arriving on one port is copied to every other port, whoever it is meant for; each computer then checks whether the data is for it. A hub is not intelligent: it cannot read addresses. Because everything goes to everyone, a busy hub network has many collisions and slows down. An active hub also amplifies the signal; a passive hub just passes it on.

          Switch #switch

          A switch also connects several computers in a LAN, but it is intelligent. It learns the MAC address of the computer on each port and sends data only to the port of the intended receiver. That cuts unnecessary traffic, avoids collisions and keeps the network fast. A switch can also divide a network into separate segments.

          A → C HUBfloods all BCD A → C SWITCHreads MAC BCD HUB · everyone gets it SWITCH · only C gets it
          Same data, two devices. The hub copies A's data to every port; the switch looks up C's MAC address and sends it to C alone.

          Repeater #repeater

          A signal grows weaker as it travels along a cable (this is called attenuation). A repeater receives the weak signal, regenerates it to full strength, and sends it on, so the network can reach further. On twisted pair cable the signal weakens after about 100 m, so a repeater is placed on any longer link.

          Router #router

          A router connects two or more networks and forwards data packets between them. It reads each packet's destination IP address and chooses the best path to send it on, using its routing table. A home Wi-Fi router connects the home LAN to the ISP's network. Routers usually join networks that use the same protocol.

          Gateway #gateway

          A gateway connects networks that use different protocols, translating between them, like an interpreter between two languages. It is the entry and exit point of a network: all data coming in or going out passes through it. A gateway often includes a firewall to check that traffic. Example: the device joining a company's LAN to the Internet.

          Ethernet card 12-CS #ethernet-card

          An Ethernet card is a network interface card (NIC): the part inside a computer that connects it to a wired network. It has an RJ45 socket for the cable, and a unique MAC address set by its maker. Most computers have it built into the motherboard.

          RJ45 12-CS #rj45

          RJ45 (Registered Jack 45) is the 8-pin connector on each end of a twisted pair (Ethernet) cable. It clicks into the socket of an Ethernet card, switch or router. It looks like a telephone plug, but wider.

          Wi-Fi card 12-CS #wifi-card

          A Wi-Fi card is a wireless NIC. It lets a computer join a wireless network using radio signals, through a small antenna, instead of a cable. Laptops and phones have one built in; a desktop can use a plug-in card or a USB Wi-Fi adapter. Like an Ethernet card, it has its own MAC address.

          DeviceJob in one lineSmart?Case-study clue
          ModemDigital ↔ analog over a phone or cable line—"converts digital signals to analog"
          HubJoins PCs in a LAN; sends data to all portsNo"sends to all, whoever it is for"
          SwitchJoins PCs in a LAN; sends data only to the right portYes (MAC)"connect computers within each block"
          RepeaterRegenerates a weak signalNo"signal strength reduces", distance > 100 m
          RouterJoins networks; finds the best pathYes (IP)"connect to the ISP", "route packets"
          GatewayJoins networks with different protocolsYes"entry and exit point of a network"
          Ethernet cardNIC for a wired network—"essential to set up a wired LAN"
          RJ458-pin plug on an Ethernet cable—"Registered Jack 45"
          Wi-Fi cardNIC for a wireless network—"connect without cables"
          Exam tip

          Hub vs switch is the most asked difference: similarity, both connect computers in a LAN; difference, a hub sends data to all devices, a switch only to the intended device. Router vs gateway: a router joins networks with the same protocol, a gateway joins networks with different protocols.

          Note

          A case study may ask for "a system (hardware or software) to prevent unauthorised access to or from the network". The answer is a firewall. It is not in the device list, but it is a common last part.

          Chapter practice · NDEV

          Check your understanding

          Which device?

          The signal from Admin to Support (140 m) gets weak on the way.

          Connect the 40 computers inside the Sales block.

          Give every computer on the campus access to the Internet from the ISP.

          Connect an office LAN to a network that uses a different protocol.

          "I convert digital data into analog signals and back again."

          The 8-pin plug on the end of an Ethernet cable.

          Self-check quiz

          Which statement about a hub and a switch is correct?
          Which device routes data packets based on their destination IP addresses?
          Which device serves as the entry and exit point of a network?
          Which device cannot segment a network?
          RJ45 stands for:
          Which of these is essential to set up a wired LAN?
          Your score
          – / 6
          Answer every question to see your score.

          One-page revision

          Modemdigital ↔ analog; modulator–demodulator
          HubLAN; sends to all ports; not smart
          SwitchLAN; sends to one port by MAC
          Repeaterregenerates weak signal; > 100 m
          Routerjoins networks; best path by IP
          Gatewaydifferent protocols; entry/exit point
          Ethernet cardwired NIC with a MAC address
          RJ45Registered Jack 45; 8 pins
          Wi-Fi cardwireless NIC
          Firewallblocks unauthorised access
          Chapter 5 of 9 · TOPO

          Network Types and Topologies

          Networks are sorted by how far they reach (PAN, LAN, MAN, WAN) and by the shape of their wiring (bus, star, tree, mesh). Both ideas meet in the 5-mark campus case study at the end of this chapter.

            TOPO.01 · Network Types and Topologies

            Types of Networks

            12-CS12-IP

            Networks are grouped by the area they cover. From smallest to largest: PAN, LAN, MAN and WAN. As the area grows, the network costs more and is usually slower per device.

            WAN · countries, the world MAN · a city, 30–40 km LAN · a building or campus PAN about 10 m phone + earbuds school lab office cable TV city offices the Internet bank branches
            Each type fits inside the next: a PAN is part of your LAN at home or school, which connects through a MAN or WAN to the rest of the world.

            PAN: Personal Area Network #pan

            A PAN connects the devices of one person, within about 10 metres: a phone paired with earbuds and a smartwatch by Bluetooth, or a laptop sharing a phone's hotspot. It can be wired (USB) or wireless (Bluetooth, Wi-Fi).

            LAN: Local Area Network #lan

            A LAN connects computers in a limited area: a room, a building, or a school, office or university campus. It is usually owned by one organisation, is fast (100 Mbps to 10 Gbps over Ethernet or Wi-Fi), and lets everyone share printers, files and one internet connection. A school computer lab is a LAN.

            MAN: Metropolitan Area Network #man

            A MAN covers a city or town, and can extend to about 30–40 km. It is often made by joining several LANs. Examples: a city's cable TV or cable broadband network, or the offices of one company spread around the same city.

            WAN: Wide Area Network #wan

            A WAN covers a very large area: across states, countries, or the world. It joins LANs and MANs using telephone lines, optical fibre or satellite links. The Internet is the largest WAN. A bank or railway network connecting branches across India is a WAN.

            TypeAreaExampleSpeed and cost
            PANAbout 10 m, one personPhone + earbuds by BluetoothLow speed, very cheap
            LANA room, building or campusSchool lab, office floorFastest, low cost
            MANA city, about 30–40 kmCable TV network, offices in one citySlower than LAN, costs more
            WANCountries, the worldThe Internet, bank branchesSlowest per device, costliest
            Exam tip

            In the case study, decide by distance: blocks on one campus → LAN; offices in the same city → MAN; a head office in another city (hundreds or thousands of km away) → WAN. Always write the reason: "because the offices are 1200 km apart".

            TOPO.02 · Network Types and Topologies

            Network Topologies

            12-CS12-IP

            A network topology is the arrangement (layout) of the computers, cables and devices in a network: the shape you would see if you drew how everything is connected. The topology decides how much cable is needed, what happens when one part fails, and how easy the network is to grow.

            Bus topology #bus

            In a bus topology, every computer is connected to one main cable, called the backbone or bus. A terminator at each end stops the signal bouncing back. Data sent by one computer travels along the backbone to all computers; only the one it is addressed to accepts it.

            PCPCPCPCPC BACKBONE
            One shared cable. The small filled blocks at the ends are terminators.
            • Advantages: needs the least cable, so it is cheap; easy to install and to extend in a small network.
            • Disadvantages: if the backbone fails, the whole network stops; faults are hard to find; data collisions grow as more computers are added; everyone can see the data, so it is less secure.

            Star topology #star

            In a star topology, every computer is connected by its own cable to a central device, a hub or switch. All data passes through the centre. This is the layout of almost every LAN today.

            HUBPCPCPCPCPCPC
            Each computer has its own cable to the hub or switch in the middle.
            • Advantages: if one computer or its cable fails, only that computer is affected; easy to find faults and to add or remove a computer; central control.
            • Disadvantages: needs more cable than bus; if the central hub or switch fails, the whole network stops (a single point of failure).

            Tree topology #tree

            A tree topology (also called a hierarchical topology) arranges star networks in levels: a root hub connects to other hubs, and each of those connects to its own group of computers. It combines bus and star: the links between hubs act like a backbone, and each hub's group is a star.

            HUBHUBHUBPCPCPCPC
            Stars joined to a root hub: one level per floor or department.
            • Advantages: easy to expand by adding another branch; suits organisations with departments or floors; a fault in one branch does not affect the others.
            • Disadvantages: needs a lot of cable; if the root hub or main cable fails, the branches can no longer reach each other; harder to configure.

            Mesh topology 12-IP #mesh

            In a mesh topology, each computer is connected to every other computer by its own dedicated link. If one link fails, the data simply goes another way, so the network is very reliable. But the cable grows fast: n computers need n(n−1)/2 links, so 4 computers need 6 and 10 computers need 45.

            PCPCPCPC
            4 computers → 4 × 3 ÷ 2 = 6 links. Every pair has its own direct link.
            • Advantages: very reliable, since there are many paths; a dedicated link for each pair makes it fast and secure; faults are easy to locate.
            • Disadvantages: needs the most cable and ports, so it is the costliest; hard to install and manage.
            TopologyLayoutCableIf one part fails
            BusAll on one backbone cableLeastBackbone fails → whole network stops
            StarEach to a central hub/switchMoreOne PC fails → only it; hub fails → all
            TreeStars joined in levelsA lotRoot fails → branches cut off
            MeshEvery PC to every otherMost: n(n−1)/2 linksData takes another path

            Worked example: the campus case study

            Section E always has a 5-mark question like this. Greenfield Institute has four blocks on one campus, and a head office in Delhi, 600 km away.

            BlockComputersDistanceMetres
            ADMIN30ADMIN – LAB60
            LAB120ADMIN – LIBRARY45
            LIBRARY20ADMIN – HOSTEL130
            HOSTEL45LAB – LIBRARY80
            LAB – HOSTEL110
            LIBRARY – HOSTEL95

            Answer the parts in this order: each one uses the answer before it. For every part, write the answer and the reason; the reason earns half the mark.

            (i) Where should the server go?

            Rule: in the block with the most computers.

            Why: most network traffic is between the computers and the server. With the server in the biggest block, most of that traffic stays inside one building on short cables, so the network is faster and the links between blocks carry less. If two blocks have the same number of computers, pick the one with the smaller total distance to the other blocks.

            Greenfield: LAB, because it has the most computers (120).

            (ii) Draw the cable layout

            Rule: connect every block using the least total length of cable. A star from the server is the answer only when it happens to be the shortest.

            Why: cable is paid for by the metre, every extra metre weakens the signal, and long runs need repeaters. The layout with the fewest metres that still joins every block is the most efficient and the most economical.

            Method: start at the server block. At each step, look at every link from a block that is already joined to a block that is not, and add the shortest one. Never add a link between two blocks that are already joined; that only makes a loop. With 4 blocks you stop after 3 links.

            StepAlready joinedLinks to choose fromAdd
            1LABLAB–ADMIN 60, LAB–LIBRARY 80, LAB–HOSTEL 110LAB–ADMIN 60 m
            2LAB, ADMINADMIN–LIBRARY 45, LAB–LIBRARY 80, LAB–HOSTEL 110, ADMIN–HOSTEL 130ADMIN–LIBRARY 45 m
            3LAB, ADMIN, LIBRARYLIBRARY–HOSTEL 95, LAB–HOSTEL 110, ADMIN–HOSTEL 130LIBRARY–HOSTEL 95 m
            ✓ THE ANSWER · SHORTEST CABLE ✗ STAR FROM THE SERVER ADMIN30 PCs LAB120 · SERVER LIBRARY20 PCs HOSTEL45 PCs ADMIN30 PCs LAB120 · SERVER LIBRARY20 PCs HOSTEL45 PCs R 60 m60 m 95 m 60 + 45 + 95 = 200 m no link over 100 m 60 + 80 + 110 = 250 m: 50 m more and a repeater (R) on 110 m HEAD OFFICE, DELHI · 600 km away → WAN 45 m 80 m 110 m
            The shortest layout (left) is the answer: 200 m of cable and no repeater. A star from the server (right, dashed) needs 250 m and a repeater, so it is not the best layout here.

            Greenfield: LAB–ADMIN, ADMIN–LIBRARY and LIBRARY–HOSTEL, 200 m in all. A star from LAB would need 60 + 80 + 110 = 250 m.

            Note

            If the question asks for centralised control or management of the network, it is asking for a star with the server block at the centre. Draw the star then, and say that is why.

            (iii) Which device connects the computers inside each block?

            Rule: a switch (a hub is also accepted) in every block.

            Why: the computers in one block form a small LAN, and they need a central device to plug into. A switch is better than a hub because it sends each packet only to the computer it is meant for.

            (iv) Where is a repeater needed?

            Rule: on every link in your layout that is longer than 100 m. If none is, write "not needed" and give the reason.

            Why: the signal in a twisted pair (Ethernet) cable weakens after about 100 m. A repeater regenerates it. Check only the links you actually drew in part (ii), not every distance in the table.

            Greenfield: not needed: the longest link in the shortest layout is 95 m. (The star would have needed one on LAB–HOSTEL, 110 m.)

            (v) How do all the computers get Internet access?

            Rule: a router (with a modem) in the server block.

            Why: the line from the Internet service provider comes in at one place. The router there connects the campus LAN to the ISP's network and shares the connection with every block through the cables you drew.

            (vi) What type of network joins the campus to the head office?

            Rule: decide by the distance between the two sites: same campus → LAN; same city (up to about 40 km) → MAN; another city or country → WAN.

            Greenfield: WAN, because Delhi is 600 km away.

            (vii) Which transmission medium?

            Rule: inside and between blocks, twisted pair (Ethernet) cable, because it is cheapest for short runs. For a fast wired link to a far office, optical fibre. Over very long distances or hilly ground, a wireless link: satellite, microwave or radio.

            Other parts that come at the end

            If the question asks for…Answer
            Video meeting or online classes between officesVoIP (Voice over Internet Protocol); video conferencing
            Using a computer in another office remotelyTELNET
            Stopping unauthorised access to or from the networkFirewall
            Sending a file between officesFTP
            Exam tip

            In part (ii), write the total next to your drawing ("total 200 m, the least possible"). It shows the examiner why you chose that layout, and part (iv) follows straight from it.

            Exam tip

            Topology one-liners asked as MCQs: all computers on a single central cable → bus; needs a central hub or switch → star; a combination of two topologies → tree; a dedicated link between every pair → mesh. "Single point of failure" → star (the hub) or bus (the backbone).

            Note

            Ring topology (each computer joined to the next, in a closed loop) is not in the 2026-27 syllabus for either subject, but it still appears as a wrong option in MCQs.

            Chapter practice · TOPO

            Check your understanding

            Case study lab

            Start from one of the sample campuses, or type in the numbers from any board question with four blocks. The lab answers every part the way the worked example does, with the reason for each.

            Blocks and computers
            Distances in metres

            Name the type or topology

            A company's offices in Pune and Dubai are connected.

            Your phone, smartwatch and earbuds connected by Bluetooth.

            The university wants centralised network management for all its blocks.

            How many links does a mesh of 6 computers need?

            Self-check quiz

            A network covering one school campus is a:
            A city's cable TV network is an example of a:
            In which topology are all computers connected to a single central cable?
            In which topology does the failure of one computer not affect the others, but the failure of the centre stops everything?
            Which topology is a combination of two other topologies?
            Which topology gives a dedicated point-to-point link between every pair of computers?
            Your score
            – / 6
            Answer every question to see your score.

            One-page revision

            PANone person; ~10 m; Bluetooth
            LANbuilding or campus; fastest
            MANa city; 30–40 km
            WANcountries; the Internet
            Topologylayout of nodes and links
            Busone backbone; least cable
            Starcentral hub/switch; most used
            Treestars in levels; bus + star
            Meshevery pair linked; n(n−1)/2
            Serverblock with most computers
            Cable layoutleast total cable; n blocks → n−1 links
            Repeateron a drawn link over 100 m
            Chapter 6 of 9 · PROT

            Network Protocols

            A protocol is a set of rules that communicating devices follow so that data is sent successfully and reliably. Each job on a network has its own protocol: one for web pages, one for files, two for email, one for remote login, one for voice calls.

              PROT.01 · Network Protocols

              Network Protocols

              12-CS

              Nine protocols are in the syllabus. For each, learn its full form and its one job: papers ask "expand", "which protocol is used to …", and the last part of the case study ("which protocol for the video meeting / remote access?").

              HTTP #http

              HTTP (HyperText Transfer Protocol) is the protocol a web browser and a web server use to exchange web pages. The browser sends a request ("GET /index.html"), and the server sends back a response with the page. It is used every time you open a website.

              BROWSERasks for a pageWEB SERVERhas the page1 · REQUEST: GET /index.html2 · RESPONSE: 200 OK + the pageone request and one response for every page, image or file
              The browser always asks first; the server only answers. Each image on the page is a separate request.

              HTTPS #https

              HTTPS (HyperText Transfer Protocol Secure) is HTTP with encryption (using SSL/TLS). Data between browser and server is scrambled, so passwords and card numbers can't be read if someone intercepts them. Browsers show a padlock for HTTPS sites. Use it for banking, shopping and anything with a login.

              BROWSERhttps://WEB SERVERhas a certificateENCRYPTED WITH SSL/TLSEAVESDROPPERsees 8f#kQz2…padlock shownproves its identity
              With HTTPS the page and anything you type (passwords, card numbers) travel encrypted, so an eavesdropper can't read them.

              FTP #ftp

              FTP (File Transfer Protocol) is used to transfer files between a client and a server: uploading a website's files to its web server, or downloading large files. It works with any type of file. Plain FTP is not encrypted; secure versions (SFTP, FTPS) are used when safety matters.

              YOUR PCFTP clientFTP SERVERstores filesUPLOAD (put) · index.htmlDOWNLOAD (get) · notes.pdfany type of file · log in with a user name and password
              FTP moves whole files in either direction. Web developers use it to upload a site's files to its web server.

              SMTP #smtp

              SMTP (Simple Mail Transfer Protocol) is used to send email: from your email app to your mail server, and from one mail server to another. It only pushes mail out; it does not fetch mail.

              SENDER APPRiya's phoneMAIL SERVERRiya's providerMAIL SERVERAman's mailboxSMTPSMTPSMTP only pushes mail out; it never fetches it
              SMTP carries the mail as far as the receiver's mail server. Fetching it onto the receiver's device is POP3's job.

              POP3 #pop3

              POP3 (Post Office Protocol version 3) is used to receive email: it downloads messages from the mail server to your device, usually removing them from the server, so they can be read offline.

              MAIL SERVERAman's mailboxAMAN'S LAPTOPreads offlinePOP3 · download the new mailcopy usually removedmail now kept here
              POP3 pulls mail down from the server to one device, where it can be read without the Internet.

              TCP/IP #tcp-ip

              TCP/IP (Transmission Control Protocol / Internet Protocol) is the basic pair of protocols of the Internet. They split the work:

              • TCP breaks the message into packets, numbers them, checks that every packet arrived without errors, asks again for any lost ones, and puts them back in order at the receiver.
              • IP puts the source and destination IP address on each packet and handles addressing and routing, so each packet finds its way across the networks.
              TCP · SENDERsplits, numbersIPadds addressesROUTERSroute packetsTCP · RECEIVERreorders, checks#1 · to B · 'HE'#2 · to B · 'LL'#3 · to B · 'O'THE MESSAGE 'HELLO' AS THREE PACKETSTCP: number and check · IP: address and route
              TCP makes delivery reliable (numbering, checking, resending lost packets); IP gets each packet to the right address.

              PPP #ppp

              PPP (Point-to-Point Protocol) makes a direct connection between two nodes, for example between a home computer and the ISP over a telephone line, or between two routers. It also checks who is connecting (authentication) and can compress and check the data.

              YOUR PCor home routerISPchecks loginONE POINT-TO-POINT LINK1 · open the link2 · check user name + password3 · carry data both ways
              Point-to-point means exactly two ends and nobody else on the link, for example a computer dialling in to its ISP.

              TELNET #telnet

              TELNET (Teletype Network) is used for remote login: you log in to another computer over the network and type commands on it as if you were sitting in front of it. An IT team can use it to fix a computer in another city. Telnet sends everything, even passwords, as plain text, so today the encrypted SSH is preferred.

              YOUR PCin DelhiREMOTE PCin Chennaicommands you type: dir, mkdir …the remote PC's outputyou work on the remote PC as if you were sitting at itsends passwords as plain text, so SSH is used today
              Remote login: the keyboard is yours, but the commands run on the other computer.

              VoIP #voip

              VoIP (Voice over Internet Protocol) carries voice and video calls over the Internet instead of telephone lines. Your voice is turned into digital packets, sent over the network, and turned back into sound at the other end. WhatsApp calls and video conferencing apps use it. It is cheap, even for international calls, but needs a steady internet connection.

              YOUR VOICEanalog soundYOUR APPto packetsINTERNETIP packetsFRIEND'S APPback to soundvoice and video, both ways at oncecheap, but needs a steady Internet connection
              The same happens in the other direction at the same time, which is why a VoIP call feels like a phone call.
              ProtocolFull formUsed for
              HTTPHyperText Transfer ProtocolWeb pages between browser and server
              HTTPSHyperText Transfer Protocol SecureWeb pages, encrypted
              FTPFile Transfer ProtocolUploading and downloading files
              SMTPSimple Mail Transfer ProtocolSending email
              POP3Post Office Protocol 3Receiving (downloading) email
              TCP/IPTransmission Control Protocol / Internet ProtocolPackets: delivery (TCP), addressing and routing (IP)
              PPPPoint-to-Point ProtocolA direct link between two nodes
              TELNETTeletype NetworkRemote login to another computer
              VoIPVoice over Internet ProtocolVoice and video calls over the Internet
              Exam tip

              Case-study protocol parts: "remote access to a computer in another city" → TELNET; "face-to-face / audio-visual meeting" → VoIP (write the full name for the full mark); "send mail" → SMTP, "retrieve mail" → POP3; "transmit hypertext" → HTTP (HTTPS also accepted).

              Chapter practice · PROT

              Check your understanding

              Which protocol?

              Your IT head wants to log in to your office laptop from another city to fix it.

              Upload the files of a new website to the web server.

              A video meeting between the Mumbai and Delhi offices.

              Your email app downloads new mail from the server.

              Self-check quiz

              Which protocol is used to send mail from the client to the mail server?
              ___ is a protocol used for retrieving emails from a mail server.
              Which protocol is used by a web browser and web server to exchange web pages?
              Which part of TCP/IP handles addressing and routing of packets?
              Which protocol encrypts web pages between browser and server?
              VoIP stands for:
              Your score
              – / 6
              Answer every question to see your score.

              One-page revision

              HTTPweb pages; request → response
              HTTPSHTTP + encryption; padlock
              FTPfile transfer
              SMTPsend email
              POP3receive (download) email
              TCPpackets in order, no loss
              IPaddressing and routing
              PPPdirect link between two nodes
              TELNETremote login
              VoIPvoice/video calls over the Internet
              Chapter 7 of 9 · WEB

              Internet and the Web

              The Internet is the network; the World Wide Web is one service that runs on it. This chapter covers both, how a name like www.cbse.gov.in finds its server, what we use the Internet for, and the languages web pages are written in.

                WEB.01 · Internet and the Web

                Introduction to Internet

                12-IP

                The Internet is a worldwide network of networks: millions of private, public, school, business and government networks joined together. Every device on it follows the same TCP/IP protocols and has an IP address, so any device can reach any other. No single company or country owns it.

                • You reach the Internet through an ISP (Internet Service Provider), a company that sells access, over a phone line, cable, optical fibre or mobile network.
                • It started as ARPANET in 1969 for US defence research; the public Internet reached India in 1995.
                • Services that run on it include the World Wide Web, email, chat, video calls, file transfer and online games.
                InternetWorld Wide Web
                What it isThe network: hardware, cables, devicesA service on it: linked web pages
                Started1969 (ARPANET)1989–91 (Tim Berners-Lee)
                UsesTCP/IPHTTP, HTML, URLs
                Exam tip

                The Internet and the Web are not the same. Email and VoIP calls use the Internet but are not part of the Web.

                WEB.02 · Internet and the Web

                WWW

                12-CS12-IP

                The World Wide Web (WWW, or simply the web) is a huge collection of web pages, stored on web servers around the world, that are linked to each other by hyperlinks and opened through the Internet in a web browser. Clicking a link on one page takes you to another page, perhaps on a server in another country.

                It was invented by Tim Berners-Lee at CERN (Switzerland), who proposed it in 1989; the web became public in 1991. He built its three basic parts:

                • HTML: the language web pages are written in.
                • URL: the unique address of each page.
                • HTTP: the protocol that carries pages from server to browser.

                Hypertext is text containing links to other text. A page with hypertext, images, audio and video is hypermedia.

                Exam tip

                "Who invented the WWW?" → Tim Berners-Lee, 1989, at CERN. Not the inventor of the Internet: the web came twenty years after ARPANET.

                WEB.03 · Internet and the Web

                Domain Names and URL

                12-CS12-IP

                Computers find each other by IP address, but people remember names. So every website has a name, such as www.cbse.gov.in, and the DNS (Domain Name System) turns that name into the server's IP address. A URL adds to the name the protocol and the exact page you want.

                BROWSERyou type a URL DNS SERVERname → IP WEB SERVER203.0.113.7 1 · IP address of www.cbse.gov.in? 2 · it is 203.0.113.7 3 · GET /index.html 4 · the page (HTML)
                The browser first asks DNS for the address (steps 1–2), then asks that server for the page (3–4). 203.0.113.7 is an example address used for teaching, not the board's real one.

                Domain names 12-CS #domain-names

                A domain name is the human-friendly name of a website, used in place of its IP address. It is read right to left, from the most general part to the most specific, with the parts separated by dots.

                wwwcbsegovin ... HOSTthe web server ORGANISATIONwho runs it SECOND LEVELgovernment TOP LEVELcountry: India read from the right: general → specific
                The last part is the top-level domain (TLD). Here it is a country code; in google.com it is a generic one.
                Top-level domainExamples
                Generic.com (commercial), .org (organisation), .net (network), .edu (education), .gov (government)
                Country code.in (India), .uk (United Kingdom), .au (Australia), .jp (Japan)

                Domain names are bought from a domain registrar for a yearly fee, and each name is unique. Domain name vs IP address: the domain name is for people (www.cbse.gov.in); the IP address is the number computers actually use (like 203.0.113.7), and DNS maps one to the other.

                URL #url

                A URL (Uniform Resource Locator) is the complete, unique address of a resource (a page, image or file) on the web. You type it into the browser's address bar. It has three main parts:

                https://www.cbse.gov.in/index.html PROTOCOLhow to fetch DOMAIN NAMEwhich server PATH · FILEwhich page
                Protocol + domain name + path. If the path is left out, the server sends its home page.
                Python · split a URL into its parts
                from urllib.parse import urlparse
                u = urlparse('https://www.cbse.gov.in'
                             '/web/results.html?class=12')
                print('protocol :', u.scheme)
                print('domain   :', u.netloc)
                print('path     :', u.path)
                print('query    :', u.query)
                print('TLD      :', u.netloc.split('.')[-1])
                Output
                protocol : https domain : www.cbse.gov.in path : /web/results.html query : class=12 TLD : in

                URL vs domain name: the domain name (www.cbse.gov.in) names only the server; the URL (https://www.cbse.gov.in/index.html) also gives the protocol and the exact page, so a URL contains a domain name.

                Exam tip

                "Identify the protocol in https://www.cbse.nic.in/index.html" → HTTPS. "Primary purpose of DNS?" → translate domain names into IP addresses. URL = Uniform Resource Locator, not "Universal".

                WEB.04 · Internet and the Web

                Applications of Internet

                12-IP

                The Internet carries many services. The syllabus names four of them.

                Web #web

                The World Wide Web lets you open linked web pages in a browser: reading news, searching, studying online, shopping, booking tickets, filling exam forms, internet banking. It is the most used application.

                Email #email

                Email (electronic mail) sends messages, with files as attachments, to one or many people. An email address has two parts joined by @: [email protected] is the user name, then the mail server's domain. A message has To, Cc (copy, visible to all), Bcc (hidden copy), Subject and body. It is not instant: the receiver reads it when they choose.

                Chat #chat

                Chat is real-time text conversation between two or more people who are online at the same time, also called instant messaging. Messages appear at once, and many apps also share photos and voice notes. Examples: WhatsApp, Telegram, Google Chat.

                VoIP #voip

                VoIP (Voice over Internet Protocol) makes voice and video calls over the Internet instead of the telephone network. Voice is turned into digital packets and sent like any other data. It is much cheaper than ordinary calls, especially to other countries, and is the basis of video conferencing. It needs a good internet connection; with a weak one, the call breaks up.

                ApplicationReal time?Best for
                Web—Reading and finding information, online services
                EmailNoFormal messages and attachments
                ChatYes, textQuick conversations
                VoIPYes, voice/videoCalls and video meetings
                Exam tip

                "Live visual communication between two offices" → video conferencing using VoIP, not email or instant messaging.

                WEB.05 · Internet and the Web

                Markup Languages

                12-CS

                A markup language adds tags to text to describe its structure or meaning, such as <b> or <name>. It is not a programming language: it has no loops or calculations.

                HTML #html

                HTML (HyperText Markup Language) is the language of web pages. Its tags are predefined, and they tell the browser how to display content: a heading, a paragraph, a link, an image. Most tags come in pairs, an opening <p> and a closing </p>. HTML is not case-sensitive.

                HTML · a tiny web page
                <html>
                <body>
                  <h1>My School</h1>
                  <p>Welcome to <b>Class XII</b>.</p>
                  <a href="https://www.cbse.gov.in">CBSE</a>
                </body>
                </html>
                In the browser

                XML #xml

                XML (eXtensible Markup Language) is used to store and transport data, not to display it. You make up your own tags to describe the data, such as <student> and <marks>. XML is strict: it is case-sensitive, every tag must be closed, and tags must be nested properly. Because it is plain text, any program on any computer can read it.

                Python · read data stored as XML
                import xml.etree.ElementTree as ET
                data = '''<school>
                  <student roll="1"><name>Riya</name>
                    <marks>91</marks></student>
                  <student roll="2"><name>Aman</name>
                    <marks>78</marks></student>
                </school>'''
                root = ET.fromstring(data)
                for s in root.findall('student'):
                    print(s.get('roll'), s.find('name').text,
                          s.find('marks').text)
                Output
                1 Riya 91 2 Aman 78
                HTMLXML
                Full formHyperText Markup LanguageeXtensible Markup Language
                PurposeDisplay data (how it looks)Store and carry data (what it is)
                TagsPredefinedUser-defined
                CaseNot case-sensitiveCase-sensitive
                Closing tagsSome can be left out (e.g. <br>)Every tag must be closed
                Exam tip

                "User-defined tags can be created in ___" → XML. "Differentiate HTML and XML" wants: predefined vs user-defined tags, and display vs store/transport data. XML does not style data.

                Chapter practice · WEB

                Check your understanding

                Take the URL apart

                In http://www.ncert.nic.in/textbook.html, what is the protocol?

                In the same URL, what is the domain name?

                Which part of www.example.co.uk is the top-level domain?

                You type a website's name. What turns it into an IP address?

                Self-check quiz

                The Internet is best described as:
                The World Wide Web was invented by:
                URL stands for:
                What is the primary purpose of DNS?
                Which of these is a country-specific domain?
                Which application lets two people exchange text messages in real time?
                Video conferencing between two offices uses:
                User-defined tags can be created in:
                Your score
                – / 8
                Answer every question to see your score.

                One-page revision

                Internetnetwork of networks; TCP/IP; via an ISP
                WWWlinked web pages; Berners-Lee, 1989
                Hyperlinkclick to jump to another page
                DNSdomain name → IP address
                Domain namewww.cbse.gov.in; read right to left
                TLDgeneric .com .org; country .in .uk
                URLprotocol + domain + path
                Email · chatnot instant · instant
                VoIPcalls and video over the Internet
                HTMLpredefined tags; display
                XMLuser-defined tags; store and carry
                Chapter 8 of 9 · SITE

                Websites

                What a website is, how it differs from a single web page, how pages can be fixed or built fresh for each visitor, and where a website actually lives so that the whole world can open it.

                  SITE.01 · Websites

                  Website and Webpage

                  12-CS12-IP

                  A web page is a single document on the web, written in HTML, that can contain text, images, audio, video and links. It has its own URL and is opened in a web browser.

                  Website #website

                  A website is a collection of related web pages, linked to each other, stored on a web server and reached through one domain name. The first page you see is the home page; its links lead to the other pages. www.cbse.gov.in is a website; its results page and its circulars page are web pages in it.

                  Websites have many purposes: information (a school or government site), e-commerce (shopping), education, news, social media, entertainment, and banking.

                  Difference between a website and a web page #difference

                  Web pageWebsite
                  What it isOne single documentA collection of related, linked web pages
                  AddressIts own URL, e.g. …/results.htmlOne domain name, e.g. www.cbse.gov.in
                  AnalogyA page of a bookThe whole book
                  ContainsText, images, linksWeb pages, with a home page
                  Exam tip

                  One line each: a web page is a single document; a website is a collection of related web pages under one domain. The book analogy makes a good example.

                  SITE.02 · Websites

                  Static and Dynamic Web Page

                  12-IP

                  A static web page is stored as a finished file and shows the same content to every visitor until someone edits the file. A dynamic web page is built at the moment you ask for it by a program on the server, often using a database, so its content can be different for each visitor and each time.

                  STATICDYNAMIC BROWSERasks SERVERstored file BROWSERasks SERVERruns a program DATABASEfresh data same page for everyone e.g. About us, Contact HTML and CSS files built when asked e.g. shopping cart, exam results
                  Static: the server hands over a file as it is. Dynamic: the server runs a program, which fetches data from a database and builds the page for you.
                  Static web pageDynamic web page
                  ContentFixed; same for every visitorChanges with the visitor, time or data
                  Made withHTML, CSS (sometimes JavaScript)Server-side programs (PHP, Python, ASP, JSP) and a database
                  To change itEdit the file by handChanges automatically when the data changes
                  Speed and costFast to load; cheap to build and hostSlower; costlier and harder to build
                  ExamplesA company's "About us" page, a contact pageOnline shopping, social media feed, train ticket status, exam results
                  Exam tip

                  "Which is best served by a static website?" → the page that rarely changes (company information). A blog with frequent updates, a shopping cart or a social network needs dynamic pages.

                  SITE.03 · Websites

                  Web Server and Hosting

                  12-CS12-IP

                  A website's files have to live on a computer that is always on and always connected to the Internet. That computer is a web server, and renting space on one is web hosting.

                  BROWSERBROWSERBROWSER INTERNETHTTP(S) WEB SERVERsite files ALWAYS ON24 × 7, backups HOSTING COMPANY
                  Requests from browsers anywhere reach the web server in the hosting company's data centre, and it sends the pages back.

                  Web server #web-server

                  A web server is a computer, with web server software, that stores websites and sends web pages to browsers when they ask. It receives the browser's HTTP request, finds the page (or builds it, for a dynamic page), and sends it back as the HTTP response. Common web server software: Apache, Nginx, Microsoft IIS.

                  Web server vs web browser: the server stores and sends pages; the browser, on your device, requests and displays them.

                  Web hosting #web-hosting

                  Web hosting is a service that puts a website on the Internet: a hosting company rents you space on its web servers, which stay online 24 hours a day with fast connections, security and backups. Without hosting, a website on your own computer could be seen only by you.

                  1. Register a domain name (e.g. myschool.in) with a domain registrar.
                  2. Choose a hosting plan: shared (many sites on one server, cheapest), dedicated (a whole server for you), or cloud hosting.
                  3. Upload the website's files to the server, often by FTP.
                  4. Point the domain to the server's IP address in DNS, so typing the name opens the site.
                  Exam tip

                  "___ is a service that allows you to put a website or web page on the Internet" → web hosting (not web server or DNS). For "Rohan has written a website; how will others see it?", explain both: hosting rents space on a web server, which sends the pages to visitors' browsers.

                  Chapter practice · SITE

                  Check your understanding

                  Static or dynamic?

                  A school's "Contact us" page with its address and phone number.

                  A page showing the items in your online shopping cart.

                  The CBSE result page after you enter your roll number.

                  A page with a poem that never changes.

                  Self-check quiz

                  A collection of related, linked web pages under one domain name is a:
                  The first page of a website is called its:
                  Which of these is best served by a static website?
                  Dynamic web pages are usually built using:
                  ___ is a service that allows you to put a website on the Internet.
                  Which of these is web server software?
                  Your score
                  – / 6
                  Answer every question to see your score.

                  One-page revision

                  Web pageone HTML document with its own URL
                  Websiterelated pages under one domain
                  Home pagethe first page of a website
                  Static pagefixed; same for all; HTML/CSS
                  Dynamic pagebuilt on request; program + database
                  Web serverstores and sends pages; Apache, Nginx
                  Web hostingrented space on an always-on server
                  Hosting stepsdomain → plan → upload → point DNS
                  Chapter 9 of 9 · BRW

                  Web Browsers

                  The program you use to open the web, the common ones, the settings worth knowing, the small programs that add to it, and the cookies websites leave behind.

                    BRW.01 · Web Browsers

                    Introduction to Web Browsers

                    12-CS12-IP

                    Web browser #web-browser

                    A web browser is application software used to find, open and display web pages. You type a URL in its address bar; the browser asks DNS for the address, requests the page from the web server by HTTP, reads the HTML and shows the finished page with its text, images and video.

                    • Address bar for typing URLs or searches; Back, Forward and Reload buttons.
                    • Tabs to keep several pages open; bookmarks (favourites) to save pages; history of pages visited.
                    • Downloads of files; a private (incognito) window that keeps no history or cookies after you close it.

                    Commonly used browsers #browsers

                    BrowserMade byNote
                    Google ChromeGoogleThe most used browser today
                    Mozilla FirefoxMozilla FoundationFree and open source
                    Microsoft EdgeMicrosoftComes with Windows; replaced Internet Explorer
                    SafariAppleComes with iPhone, iPad and Mac
                    OperaOperaHas a built-in ad blocker and VPN

                    History: the first browser, WorldWideWeb, was written by Tim Berners-Lee in 1990. Mosaic (1993) was the first popular browser to show pictures alongside text, and it led to Netscape Navigator.

                    Exam tip

                    "Software used to view web pages" → web browser. Don't confuse it with a search engine (Google Search, Bing), which is a website for finding pages, opened inside a browser.

                    BRW.02 · Web Browsers

                    Browser Settings

                    12-IP

                    Every browser has a Settings page (in Chrome and Edge, the ⋮ or … menu → Settings; in Firefox, ☰ → Settings) where you can change how it looks and behaves, and, most importantly, how it protects your privacy.

                    SettingWhat it lets you do
                    On start-up / home pageChoose which page opens when the browser starts
                    Default search engineChoose which search engine the address bar uses (Google, Bing, DuckDuckGo …)
                    Privacy and securityClear browsing data (history, cookies, cache); block third-party cookies; turn on safe browsing to warn about harmful sites
                    Site permissionsAllow or block camera, microphone, location, notifications and pop-ups for each site
                    Passwords and autofillSave or stop saving passwords, addresses and payment details
                    DownloadsChoose the folder downloads go to, or ask every time
                    Appearance and languageTheme, font size, zoom, and the language of the browser
                    ExtensionsTurn add-ons on or off, or remove them (next topic)
                    Note

                    Settings are per browser and per device: changing Chrome on your phone does not change Chrome on the school computer, unless you sign in and sync.

                    Exam tip

                    Settings that protect privacy are the ones most often asked: clear browsing history and cookies, block third-party cookies, turn off location for sites that don't need it, and use a private/incognito window on shared computers.

                    BRW.03 · Web Browsers

                    Add-ons and Plug-ins

                    12-IP

                    A browser can be given extra abilities with small pieces of software. The syllabus names two kinds.

                    • An add-on (also called an extension) adds a new feature to the browser itself: an ad blocker, a dictionary, a grammar checker, a password manager, a screenshot tool. It usually puts a small icon beside the address bar, and you install it from the browser's store (Chrome Web Store, Firefox Add-ons).
                    • A plug-in lets the browser show or play a particular kind of content inside a web page that it couldn't handle on its own, such as Adobe Flash animations, Java applets or a PDF viewer. Modern browsers now have most of this built in, and Flash ended in 2020.
                    Add-on / extensionPlug-in
                    ChangesThe browser: adds a featureWhat content a page can show
                    Works onEvery page, or when you click itOnly pages with that content
                    ExamplesAd blocker, dictionary, grammar checkerFlash Player, Java, PDF viewer
                    Exam tip

                    Install add-ons only from the browser's official store: a harmful add-on can read everything you type. Remove ones you don't use from Settings → Extensions.

                    BRW.04 · Web Browsers

                    Cookies

                    12-IP

                    A cookie is a small text file that a website stores on your computer, through your browser, to remember information about you. The next time you visit, the browser sends the cookie back, so the site recognises you.

                    BROWSERkeeps the cookie WEB SERVERremembers you 3 · next visit: sends Cookie: cart=3 the site remembers your cart, login or language 1 · first visit: GET /shop 2 · page + Set-Cookie: cart=3
                    The cookie travels with every later request to the same site, which is how a site remembers you between visits.
                    • Uses: keeping you logged in, remembering the items in a shopping cart, saving your language or theme, and counting visitors.
                    • First-party cookies are set by the site you are visiting. Third-party cookies are set by other companies, usually advertisers, embedded in the page; they track you across many sites to show targeted ads.
                    • Risks: cookies can track your browsing (a privacy risk), and a stolen login cookie can let someone into your account. A cookie is plain data, not a program, so it cannot run or spread like a virus.
                    • Control: in browser settings you can block third-party cookies, delete all cookies, or use a private window, which deletes them when it closes.
                    Exam tip

                    "A website saved small text files to remember her preferences and session" → cookies (not plug-ins or add-ons). "What are cookies? Give one use" → small text files stored by a website through the browser; used to remember login or cart items.

                    Chapter practice · BRW

                    Check your understanding

                    Add-on, plug-in or cookie?

                    You install a small tool that blocks ads on every site you visit.

                    An old site asks you to install Flash Player to watch its animation.

                    You return to a shopping site and your cart still has 3 items.

                    On a library computer, you want no history or cookies left after you finish.

                    Self-check quiz

                    Software used to view web pages is known as a:
                    Which of these is NOT a web browser?
                    Where would you turn off a site's access to your location?
                    A small program that adds a feature, such as a dictionary, to the browser is a:
                    A website stores your browsing activity and preferences through:
                    Third-party cookies are mostly used to:
                    Your score
                    – / 6
                    Answer every question to see your score.

                    One-page revision

                    Web browserapp that opens and shows web pages
                    BrowsersChrome, Firefox, Edge, Safari, Opera
                    Mosaic · 1993first popular graphical browser
                    Settingshome page, search engine, privacy, permissions
                    Incognitokeeps no history or cookies
                    Add-onadds a feature to the browser
                    Plug-inplays a content type in a page
                    Cookiesmall text file a site stores via the browser
                    Third-party cookietracks you for ads