ByteBoard Notes Cheat sheets Full notes

Computer Networks, on two pages

Everything the board asks from this 10-mark unit, most important first. The boxes beside each heading rate how often board papers ask it, from one to five.

Download PDF

Importance most asked often rarely

The 5-mark campus case study

A company or school has 4 blocks (computers in each, distances between them) and often a head office far away. Answer the parts in this order. Every answer needs a reason: the reason is half the mark.

If askedAnswer
Where to put the serverBlock with the most computersMost traffic stays inside one block. Tie: the block nearest the others.
Cable layoutJoin all blocks with the least total cableFrom the server block, keep adding the shortest link to a block not yet joined. 4 blocks → 3 links. "Centralised control" → star from the server.
Device inside each blockSwitch (hub accepted)Joins the PCs of one block into a LAN.
Where a repeater goesOn every drawn link over 100 mEthernet signal weakens after ~100 m. None over 100 m → "not needed".
Internet for all blocksRouter (with modem) in the server block
Type of networkSame campus LAN · same city ≤ 40 km MAN · another city WANQuote the distance: "WAN, as Delhi is 600 km away".
Cable / mediumInside campus: twisted pair (cheap) · fast wired link far away: optical fibre · hilly or very far: microwave / satellite
Video meetingVoIP, Voice over Internet Protocol
Stop unauthorised accessFirewall
Use a far computerTELNET (remote login)
Website with loginsDynamic: content changes per user
LAB120 PCs ADMIN30 LIBRARY20 HOSTEL45 60 m45 m95 m star link 110 m → needs a repeater Least cable: 60 + 45 + 95 = 200 m, no repeater

Check repeaters only on the links you drew, not every distance in the table. Write the total length next to your diagram.

Worked example and a case-study lab: Notes, TOPO.02

Network devices

DeviceOne jobQuestion clue
ModemDigital ↔ analog over a phone or cable line"modulation / demodulation"
HubJoins PCs in a LAN; sends data to all ports"not intelligent"
SwitchJoins PCs in a LAN; sends only to the right port (MAC)"inside each block"
RepeaterRegenerates a weak signal"signal weakens", > 100 m
RouterJoins networks; best path by IP address"connect to the ISP"
GatewayJoins networks with different protocols"entry and exit point"
Ethernet cardNIC for a wired LAN; has a MAC address"essential for a wired LAN"
RJ458-pin plug on an Ethernet cableRegistered Jack 45
Wi-Fi cardNIC for a wireless network"without cables"
HubSwitch
Sends toevery portonly the receiver's port
Smart?noyes, learns MAC addresses
Trafficcollisions, slowerfewer collisions, faster

Router joins networks using the same protocol; gateway joins different protocols. A firewall is not a device in the list but is the answer to "prevent unauthorised access".

Protocols

A protocol is a set of rules the communicating devices follow for successful, reliable data communication.

Not a named IP topic, but IP papers ask these, mostly as 1-mark MCQs.

ProtocolFull formUsed for
HTTPHyperText Transfer Protocolweb pages, browser ↔ server
HTTPS… Secureweb pages, encrypted (padlock)
FTPFile Transfer Protocolupload / download files
SMTPSimple Mail Transfer Protocolsend email
POP3Post Office Protocol 3receive (download) email
TCP/IPTransmission Control Protocol / Internet ProtocolTCP: packets in order, none lost · IP: address and route
PPPPoint-to-Point Protocoldirect link between two nodes
TELNETTeletype Networkremote login
VoIPVoice over Internet Protocolvoice / video calls over the Internet

SMTP sends, POP3 receives. HTML is a language, not a protocol. Write VoIP's full form for the full mark.

Network types and topologies

TypeCoversExample
PANone person, ~10 mphone + earbuds by Bluetooth
LANroom, building, campusschool computer lab
MANa city, ~30–40 kmcity cable TV network
WANcountries, the worldthe Internet (largest WAN)
TopologyLayoutPlusMinus
Busall on one backbone cableleast cablebackbone fails → all stop
Stareach PC to a central hub / switchone PC fails → only itcentre fails → all stop
Treestars joined in levels (bus + star)easy to expandroot fails → branches cut
Meshevery PC to every othermost reliablemost cable: n(n−1)/2 links

MCQ clues: single central cable → bus; needs a hub or switch → star; combination of two → tree. Ring is not in the syllabus; it appears only as a wrong option.

Mesh links = n(n−1)/2: 4 computers need 6 links, 10 need 45.

Internet, web and websites

InternetWWW
Isthe network of networkslinked web pages on it
UsesTCP/IPHTTP, HTML, URL
Began1969, ARPANET1989, Tim Berners-Lee, CERN
  • URL (Uniform Resource Locator) = protocol + domain + path: https://www.cbse.gov.in/index.html
  • DNS turns a domain name into an IP address. Domain names read right to left; last part is the TLD: .com .org .gov or a country, .in .uk.
  • Web page: one document with its own URL. Website: related pages under one domain, starting at the home page.
  • Web server stores and sends pages (Apache, Nginx). Web hosting: renting space on one so the site is on the Internet.
  • Static page: fixed, same for all (About us). Dynamic: built on request from a database (cart, results, feed).
  • Uses of the Internet: web, email (not instant), chat (instant text), VoIP (calls, video meetings).

"Service that puts a website on the Internet" → web hosting, not web server. Email and VoIP use the Internet but are not the Web.

Web browsers

Browser: software that finds, opens and shows web pages: Chrome, Firefox, Edge, Safari, Opera. Not a search engine (Google Search, Bing are websites).

Add-on (extension)Plug-in
Changesthe browser: adds a featurewhat a page can show
Examplead blocker, dictionaryFlash, PDF viewer

Cookie: small text file a site stores through your browser to remember you (login, cart, language). Third-party cookies track you for ads. A cookie is data, not a program, so it is not a virus.

Settings worth knowing: clear history and cookies, block third-party cookies, site permissions (location, camera), incognito window.

Data communication

5 components: sender, receiver, message, communication media, protocols.

BandwidthData transfer rate
Meansrange of frequencies a channel carriesbits sent per second
UnitHz, kHz, MHz, GHzbps, Kbps, Mbps, Gbps

IPv4: 32 bits, 4 parts of 0–255 (192.168.1.10). IPv6: 128 bits. MAC: 48-bit physical address burnt into the NIC; IP is logical and can change.

Circuit switchingPacket switching
Pathdedicated path set up firstnone; each packet routed alone
Orderarrives in ordermay arrive out of order
Examplelandline callthe Internet

Mbps = megabits; file sizes are megabytes, so multiply MB by 8. 192.168.1.256 is not valid: each part ≤ 255.

Transmission media

Wired (guided)CarriesKey fact
Twisted pairelectric, coppercheapest LAN cable; ~100 m; UTP / STP
Coaxialelectric, coppercore + metal shield; cable TV
Optical fibrelight, glassfastest, km, no noise; costly
WirelessDirectionKey fact
Radioall directionspasses walls; FM radio, TV
Microwaveline of sighttowers, mobile, satellite
Infraredline of sightvery short; TV remote

HTML and XML

HTMLXML
Full formHyperText Markup LanguageeXtensible Markup Language
Purposedisplay datastore and carry data
Tagspredefineduser-defined
Casenot case-sensitivecase-sensitive; close every tag

Network basics

A computer network is a group of interconnected computers and devices that share data and resources. A node is any device on it; a link joins two nodes.

Why network: resource sharing (one printer, one internet line), data sharing, communication, lower cost, backups on more than one computer.

ARPANET 1969, US Defense, the first network → NSFNET 1986, universities → Internet 1990s, network of networks on TCP/IP.

Uses of the Internet

ApplicationReal time?Best for
Web—finding information, online services
Emailnoformal messages, attachments
Chatyes, textquick conversations
VoIPyes, voice / videocalls, video meetings

Email address: user name @ mail server's domain. Cc: copy seen by all; Bcc: hidden copy.

"Live visual communication between two offices" → video conferencing with VoIP, not email or chat.

Putting a website online

Register a domain name → choose a hosting plan (shared, dedicated or cloud) → upload the files, often by FTP → point the domain to the server's IP in DNS.

Web server vs browser: the server stores and sends pages; the browser, on your device, asks for and shows them.

Expand it

MODEM
MOdulator–DEModulator
ARPANET
Advanced Research Projects Agency Network
NSFNET
National Science Foundation Network
LAN · MAN
Local · Metropolitan Area Network
URL
Uniform Resource Locator (not "Universal")
DNS
Domain Name System
WWW
World Wide Web
ISP
Internet Service Provider
NIC
Network Interface Card
RJ45
Registered Jack 45