Learning Objectives
By the end of this chapter, you will be able to:
- Define a computer network and state why a mart or hotel builds one.
- Classify a link as PAN, LAN, MAN, or WAN by reach and owner.
- Distinguish client server from peer to peer for a growing BBM chain.
- Describe bus, star, ring, mesh, tree, and hybrid and name the point that fails.
A floor plan for bits
A computer network links two or more devices by media and protocols so they share resources. Without it each till and PMS desk stands alone. With it one member table and one stock table serve many counters.
For a BBM chain the question is what reach and what shape fit the building, the city, and the supply route without one cable silencing trade.
flowchart LR
LAN["LAN: one store or hotel building<br/>You own it"] --> MAN["MAN: city fiber ring<br/>ISP owns it"]
MAN --> WAN["WAN: cities + Internet<br/>Many owners"]
Framework 1: Reach
Group by distance and who signs the repair.
- PAN: around one person, meters. Phone to Bluetooth scanner or earbuds.
- LAN: inside one site, building or campus. Tills to a switch, floors to a core switch. High speed, you own it.
- MAN: across a city. Fiber ring linking Lakeside, Chipledhunga, Prithivi Chowk. ISP or city owns it. You lease it.
- WAN: across districts and world. Pokhara to Butwal via ISPs. The Internet is the largest WAN.
| Type | Coverage | Owner | Example |
|---|---|---|---|
| PAN | Meters | Individual | Scanner to phone |
| LAN | Building | Store or hotel | 8 POS to a switch |
| MAN | City | ISP | Fiber ring across Pokhara |
| WAN | District to world | Many | Pokhara to Butwal plus Internet |
Serve the WAN from LANs. The WAN joins LANs. The LAN does the selling.
Relation inside the LAN
- Client server: dedicated server offers stock, PMS, printing. Clients request. Access control sits central. Fits any store above a few users and any hotel that needs audit.
- Peer to peer: each PC shares its own files. Cheap for two counters. It cracks under growth and VAT control.
Framework 2: Shape
Topology is layout. Shape decides cost and where one failure stops trade.
- Bus: all devices on one backbone.
- Advantage: little cable, quick for a few devices.
- Risk: backbone cut stops all.
- Star: every device to a central switch. Modern standard for marts and hotels.
- Advantage: one cable fault disturbs only that counter. Easy to add.
- Risk: switch failure stops the floor.
- Ring: closed loop. Data moves in turn.
- Advantage: orderly flow.
- Risk: one break can break the ring unless dual ring.
- Mesh: many links, full mesh links every device to every other. Links = n*(n-1)/2. Costly.
- Advantage: very reliable, packets reroute.
- Use: backbone between core switches, not sales floor.
- Tree: stars joined to a backbone. Floor switches to a core. Builds floor by floor.
- Risk: backbone failure affects branches below.
- Hybrid: mix of two or more. Most chains run this.
flowchart TB
subgraph Star["Star: sales floor"]
SW((Switch))
SW --- A1[POS 1]
SW --- A2[POS 2]
SW --- A3[Printer]
SW --- A4[PMS]
end
| Topology | Cost | Reliability | When in BBM |
|---|---|---|---|
| Bus | Low | Low | Pop up stall only |
| Star | Moderate | Good, harden the switch | Every floor |
| Ring | Moderate | Low unless dual | Legacy or protected fiber |
| Mesh | High | Very high | Core only |
| Tree | Moderate | Good with backup core | Hotels, malls, depots |
| Hybrid | Varies | Depends | Most chains |
Self-check
A Pokhara campus that mixes shapes
Hotel Pokhara View has a reception wing and a restaurant wing plus a depot. The mart has Lakeside and Chipledhunga and a warehouse.
Inside each floor counters run star to a floor switch. Floors join a core switch over fiber in a tree. The core pair between hotel and mart connects as partial mesh so one core failure does not drop the chain. Links to Butwal ride ISP as WAN. The whole is hybrid. Design removes the single point that would close the most tills: the core.
Nepal worked example: cables and points that can fail (NPR, BS 2081-09-28)
Budget on 2081-09-28:
- 24 port managed switch per floor: Rs 18,500
- Core switch: Rs 42,000
- UTP Cat 6 per drop 15 m with jack: Rs 850
- Fiber run between buildings terminated: Rs 9,500
Design A (recommended): 3 floor switches star plus 1 core tree. Drops: 22 POS and PMS points. Cable = 22 * 850 = Rs 18,700. Switches = 3*18,500 + 42,000 = Rs 97,500. Fiber 3 runs = Rs 28,500. Total = Rs 144,700. Single point per floor is its switch. Chain point is the core, so keep a spare and UPS.
Design B (bus): one shared backbone = Rs 12,000. No switches. Saves Rs 97,500 but one cut stops all 22 points. During Dashain that is 300 bills a day lost. Saving is false economy.
Mesh math: full mesh among 6 core devices needs 6*5/2 = 15 links. At Rs 9,500 that is Rs 142,500 before switches plus routing. Mesh stays at core, never across tills.
MAN note: the city fiber ring is leased. If it breaks at one point traffic should route the other way if it is dual. Ask the ISP which you lease.
Summary
- Types group by reach and owner: PAN meters, LAN building, MAN city, WAN world. A mart builds LANs and leases MAN and WAN.
- Client server fits growth and audit. Peer to peer fits a brief pilot.
- Bus is cheap and fragile, star is standard, tree scales floors, mesh guards core at price, hybrid is reality.
- Build by failure count, not cable count.
Exercises
Short answer
- Define PAN, LAN, MAN, WAN with one mart or hotel example each.
- Name the single point that fails in star, bus, and tree.
- Compute links for 4 device full mesh and say why a floor never uses it.
Long answer
- Plan a three floor hotel with 6 POS per floor plus a warehouse 400 m away. Recommend types and hybrid topology, list one risk per shape, justify with cost and failure.
- Compare client server and peer to peer for a mart handling VAT and loyalty. Use control, backup, and scale.


