The Internet is a layered system: physical links, protocols, applications, and users. E-commerce depends on each layer. This chapter maps the infrastructure from backbone to last mile and locates Nepal inside it.

Learning Objectives

By the end of this chapter, you will be able to:

  • Describe the four-layer Internet architecture and the role of each layer.
  • Explain the backbone, Tier 1 providers, peering, transit, and Internet Exchange Points.
  • Compare last-mile technologies: FTTH, mobile, satellite, and DSL.
  • Explain IP addresses, domain names, DNS, and URLs.
  • Trace a request from a customer in Nepal to a web server and back.
  • Describe Nepal infrastructure, its strengths, and its weak points.

1. Four-layer architecture

Layer Components Job
1 Network technology substrate Fibre cables, routers, switches, satellites, data centres Carry bits physically
2 Transport and middleware TCP/IP, routing protocols, DNS Address, route, and deliver reliably
3 Applications Web, email, VoIP, streaming Deliver services people use
4 Users Households, firms, government Generate and consume traffic
flowchart TB
  L4[Layer 4: Users] --> L3[Layer 3: Applications - Web, Email, VoIP]
  L3 --> L2[Layer 2: TCP/IP and DNS]
  L2 --> L1[Layer 1: Fibre, Routers, IXPs, Last Mile]
  L1 --> Fiber[Backbone fibre]
  L1 --> IXP[IXP - NIXP in Nepal]
  L1 --> LastM[Last Mile]
  LastM --> FTTH[FTTH]
  LastM --> Mobile[4G / 5G]
  LastM --> Sat[Satellite]

Figure 1: Four layers and the physical paths underneath

2. Backbone, peering, and transit

The backbone is a mesh of high-capacity fibre across continents and oceans. Tier 1 providers such as AT&T, Tata Communications, and NTT own large parts of it. They peer with each other: they exchange traffic without payment because each carries comparable volume. Regional and national ISPs buy transit: they pay a Tier 1 for access to the entire Internet. Nepal has no Tier 1. All Nepali ISPs buy international transit through India and, increasingly, China, then resell access domestically.

A Nepali ISP peers at NIXP for domestic traffic and pays transit for the rest.

3. Internet Exchange Points

An Internet Exchange Point (IXP) is a switch fabric where ISPs and content networks connect directly. Traffic between two local ISPs stays local. That cuts latency and saves expensive international bandwidth.

NIXP in Kathmandu connects Nepal Telecom, WorldLink, Vianet, and others. Without it, local mail might travel to Singapore and back.

Content Delivery Networks (CDNs) place caches at or near IXPs. A cached Daraz image loads from Kathmandu instead of Mumbai or Singapore.

4. The last mile

The last mile connects the ISP point of presence to the home or shop.

Bandwidth is the capacity of a connection, usually measured in bits per second. Latency is the time data takes to travel between points, usually measured in milliseconds. A high-bandwidth connection can still have high latency, so a large download may finish quickly while an interactive request feels slow.

Access Typical speed in Nepal 2081 BS Strengths Limits
FTTH fibre 50 to 300 Mbps, stable Low latency, unlimited plans, handles video Needs fibre to the building, affected by road cuts
4G mobile, emerging 5G 10 to 80 Mbps Available everywhere with coverage, mobility Data caps, hill shadows, congestion at festivals
Satellite 5 to 30 Mbps Reaches remote sites beyond fibre Higher latency, cost, weather sensitivity
DSL over copper 1 to 8 Mbps Uses existing phone lines Slow, being phased out

Urban Nepal uses FTTH. Mobile covers rural areas. Satellite serves high Himalayan posts.

5. Packets, IP, DNS, and URLs

Data moves as packets. Routers forward each packet independently. IP provides addressing and forwarding. TCP provides reliability, ordering, and retransmission. Applications use names, not numbers.

  • IPv4: 32-bit, e.g., 192.0.2.10, 4.3 billion addresses. Common behind NAT in Nepal.
  • IPv6: 128-bit, e.g., 2001:db8::1, effectively unlimited. Adoption rises because mobile growth exhausts IPv4.
  • Domain name: Human readable name such as daraz.com.np. Managed under .np by Mercantile Communications. A .com.np registration is free with citizenship or company documents.
  • DNS: Distributed directory that maps names to IPs. ISP resolvers cache answers. Typical cached lookup resolves in under 20 ms.
  • URL: Uniform Resource Locator such as https://www.daraz.com.np/products/bag. It combines protocol, domain, and path.

6. End to end: opening a shop from Pokhara

A customer on WorldLink FTTH in Pokhara types daraz.com.np.

  1. DNS lookup. The browser queries the ISP resolver for daraz.com.np. A cached answer often returns immediately.
  2. TCP and TLS. The browser opens a TCP connection to the IP and negotiates HTTPS encryption.
  3. HTTP request. The browser sends GET / with headers.
  4. Routing. Packets go from home router to ISP, then to server via NIXP if cached locally, otherwise via international transit through India or China to an external data centre.
  5. Response. The server returns HTML, CSS, images, and scripts as packets. TCP reassembles them. The page renders.

A CDN cache in Kathmandu keeps step 4 domestic and saves latency and transit fees.

flowchart LR
  U[Customer browser Pokhara] -->|1. Query daraz.com.np| DNS[ISP DNS cache]
  DNS -->|IP address| U
  U -->|2. TCP + TLS| ISP[ISP network]
  ISP --> IX[NIXP or CDN cache]
  ISP --> INTL[International transit via India or China]
  IX --> S[Origin server]
  INTL --> S
  S -->|3. Packets with HTML + images| U

Figure 2: DNS, routing, and response path for a Nepali customer

Worked Example: Domestic versus international bandwidth cost

A boutique ISP in Butwal buys 10 Gbps international transit at NPR 35,000 per Gbps per month in 2081 BS. Monthly cost = NPR 350,000. It peers 4 Gbps at NIXP at NPR 5,000 per Gbps. If 30 percent of its 10 Gbps traffic stays local via NIXP, it shifts 3 Gbps off international transit.

  • Saved transit: 3 x 35,000 = NPR 105,000
  • Added peering cost: 3 x 5,000 = NPR 15,000
  • Net saving: NPR 90,000 per month, plus lower latency for customers. CDN caching raises the local share further.

Self-Check Sketch the four layers from memory and place backbone, NIXP, FTTH, DNS, and HTTPS in the correct layer. Explain when local peering can keep traffic between Kathmandu and Pokhara within Nepal.

Self-check

What is an Internet Exchange Point (IXP) used for?

Try This An ISP carries 8 Gbps at peak. 40 percent is cacheable video. International transit costs NPR 32,000 per Gbps per month, local CDN caching costs NPR 8,000 per Gbps per month. Calculate monthly cost without a cache, with a cache that offloads 80 percent of cacheable traffic, and the saving. Show your arithmetic.

Answer sketch Without caching, the assumed cost is 8 × 32,000 = NPR 256,000 per month. The cache offloads 8 × 0.40 × 0.80 = 2.56 Gbps, leaving 5.44 Gbps on transit. The estimated cost with caching is (5.44 × 32,000) + (2.56 × 8,000) = NPR 194,560, saving NPR 61,440 per month under these pricing assumptions.

Summary

The Internet stacks into network substrate, transport protocols, applications, and users. Tier 1 backbones carry international traffic. Peering exchanges traffic for free among equals. Regional ISPs pay for transit. IXPs keep local traffic local. Last-mile options range from FTTH to mobile and satellite. Packets carry the data, IP routes, TCP ensures reliability, DNS maps names to addresses. In Nepal, transit enters via Indian border crossings and Rasuwagadhi, NIXP exchanges domestic traffic, and FTTH dominates urban access while mobile covers the hills.

Key Takeaways

  • Four layers separate physical carriage, TCP/IP delivery, applications, and users.
  • Backbone + transit + peering + IXP explain who pays whom for traffic.
  • FTTH gives the best performance; mobile gives the best reach.
  • IPv4 is exhausted; IPv6 solves scarcity; DNS and URLs make the network usable.
  • Local caching and NIXP reduce cost and latency for Nepali e-commerce.

Discussion

  1. How can an IXP reduce the cost and delay of exchanging domestic traffic in Nepal?
  2. How do bandwidth and latency affect a product-image download and an interactive checkout differently?

Exercises

Short answer

  1. Define peering and transit in one sentence each.
  2. Name two last-mile technologies and one trade-off for each.
  3. What does DNS do?
  4. Expand URL and label its three parts with an example.

Long answer

  1. Explain the layered architecture and locate backbone, IXP, and last mile inside it.
  2. Trace a web request from a Nepali FTTH user to a server, naming DNS, IP, TCP, and CDN roles.
  3. Describe Nepal Internet infrastructure, its entry routes, NIXP role, and three weak points with mitigations.