CSS Prepare

optional · CSS study notes

I.27 Internet

⬆️ Back to: P-I.I. Introduction to Computing

🧭

Page Outline — click a heading to jump. Past-paper questions sit in the last section.

🎯

Exam pattern (2016–2026): 2018 Q2(a) TCP/IP layers · 2020 Q3(a) ports · 2020 Q3(c)(d) TCP vs UDP · 2021 Q3(a) ISP, HTML, SSD, cloud · 2026 Q2(a) cloud file sharing. Six questions — high priority.


CSS Computer Science (Optional) — Paper-I, Section-A, Topic I, p.67-69. Covers: Internet, Internet vs WWW, IP Addressing, DNS, TCP/IP, Types of Internet Access, Governance Bodies, Key Terms.

Definition

  • Internet: a global system of interconnected computer networks that communicate using a standardized set of protocols, primarily TCP/IP (Transmission Control Protocol/Internet Protocol).
    • Key fact: it is a network of networks — no single company or government owns or controls it.

Origin & History

  • 1969 — ARPANET, the Internet's direct predecessor, launched by the US Department of Defense's ARPA, initially connecting 4 university computers.
  • 1974 — Vint Cerf and Bob Kahn design the TCP/IP protocol suite — the reason they are often called the "Fathers of the Internet."
  • 1983 — ARPANET officially switches over to TCP/IP (known as "flag day"), generally marked as the technical birth of the modern Internet.
  • 1989–91 — Tim Berners-Lee invents the World Wide Web at CERN, adding a hyperlinked, browser-accessible layer on top of the existing Internet.
  • 1990s onward — commercialization and global public expansion of the Internet.
  • Exam angle: 1969 (Internet/ARPANET) vs. 1989–91 (WWW) is the single most confused date-pair in this topic — the Internet is 20 years older than the Web.

Internet vs World Wide Web

  • The Internet is the underlying global network infrastructure; the World Wide Web (WWW) is just one service that runs on it.
    • WWW: a system of interlinked hypertext documents accessed via browsers.
    • Other services: email, FTP, and VoIP also run on the Internet but are not the Web itself — a frequently tested distinction.
AspectInternetWorld Wide Web
What it isPhysical + logical network infrastructureA service/application running on the Internet
Made ofCables, routers, servers, protocols (TCP/IP)Web pages and hyperlinks (via HTTP/HTTPS)
Born1969 (ARPANET)1989–91 (Tim Berners-Lee, CERN)
Other services carriedEmail, FTP, VoIP, WWWN/A — WWW is one service among many
Access toolNot applicable (it's the infrastructure)A web browser
  • Exam angle: WWW ⊂ Internet — the Web is a subset/service of the Internet, never the reverse.

Key Building Blocks

  • ISP (Internet Service Provider): a company that connects end users to the Internet's backbone network.
    • Examples: PTCL, Nayatel, StormFiber in Pakistan.
    • How it works: provides access via broadband, fiber, DSL, or mobile data, often bundling email hosting or static IPs.
    • Key fact: without an ISP, a device can still work on a private/local network but cannot reach the global Internet.
  • IP Address: a unique numerical label assigned to every device on a network so data packets are routed to it correctly.
    • IPv4: 32-bit addresses (e.g., 192.168.1.1), giving ~4.3 billion addresses — now largely exhausted.
    • IPv6: 128-bit addresses (e.g., 2001:0db8::1) introduced to solve IPv4 exhaustion (not for speed).
    • Static vs dynamic: static IPs are fixed/manual (common for servers); dynamic IPs are temporarily assigned by a DHCP server (common for home devices).
  • Domain Name System (DNS): a distributed, hierarchical naming system — the "phonebook of the Internet" — that translates human-readable domain names into IP addresses.
    • How it works: a hierarchy of servers (root → top-level-domain → authoritative) resolves a query step by step.
    • Example: typing www.wikipedia.org triggers a lookup that returns Wikipedia's server IP before the page loads.
    • Key fact: DNS translates name → IP, not the reverse, by default.
  • TCP/IP: the foundational two-layer protocol suite underlying all Internet communication.
    • IP's role: addresses packets and routes them across networks (best-effort delivery, no order/arrival guarantee).
    • TCP's role: adds reliability — numbers packets, confirms receipt, retransmits losses, reassembles them in order.
    • Contrast: UDP is a faster but unreliable alternative, used for video streaming where an occasional lost packet is tolerable.
  • URL (Uniform Resource Locator): the address used to locate a specific resource on the Web.
    • Structure: protocol://domain/path — e.g., https://www.fpsc.gov.pk/jobs.
    • Key fact: a domain name is only one part of a URL, not the whole address.
  • HTTP / HTTPS: the protocol browsers use to fetch web pages from servers.
    • HTTPS adds encryption (via TLS/SSL) for secure data exchange — see the Web Browsers page for full protocol/history detail.

Types of Internet Access

TechnologyMediumTypical SpeedNote
Dial-upTelephone line (via modem, analog signal)Very slow (≤56 Kbps)Ties up the phone line; largely obsolete
DSLTelephone line (dedicated digital signal)Moderate (tens of Mbps)Speed drops with distance from exchange
CableCable-TV coaxial lineFast (tens–hundreds of Mbps)Bandwidth often shared with neighbors
Fiber (FTTH)Fiber-optic cable (light pulses)Very fast (100 Mbps–several Gbps)Fastest/most reliable; e.g., Nayatel, StormFiber
SatelliteSignal to/from orbiting satelliteModerate, high latencyUsed where no cable infrastructure exists
Mobile (3G/4G/5G)Cellular towers, SIM-enabled deviceVaries (4G: tens of Mbps; 5G: much higher)Enables Internet access on the move
  • Exam angle: know the medium each uses — dial-up/DSL run over the telephone line, cable over TV coax, fiber over light/glass — a common "which uses what" MCQ.

Internet Governance & Standards Bodies

  • ICANN (Internet Corporation for Assigned Names and Numbers): coordinates domain names and global IP address allocation.
  • IETF (Internet Engineering Task Force): develops and publishes Internet technical standards (RFCs).
  • W3C (World Wide Web Consortium): sets standards for the Web itself (HTML, CSS) — founded by Tim Berners-Lee.
  • ISOC (Internet Society): a global nonprofit promoting the open development and use of the Internet.
  • Key fact: the Internet is coordinated by this loose set of nonprofit/standards bodies, not owned by any single government or company — a frequently tested "who controls the Internet" trap.

Advantages & Disadvantages

  • Advantages: instant global communication; access to information and education; e-commerce and remote work; entertainment and social connectivity.
  • Disadvantages: cybercrime and privacy risks; spread of misinformation; addiction/overuse; the digital divide (unequal access between regions/income groups).

Key Terms Glossary

  • Bandwidth: the maximum data a connection can carry in a given time (measured in bps/Mbps) — a measure of capacity, not raw speed.
  • Latency: the delay between sending and receiving data — critical for gaming/video calls; distinct from bandwidth.
  • Modem: converts a computer's digital signals into analog signals for transmission over telephone/cable lines, and back.
  • Router: directs data packets between networks (e.g., between a home network and the ISP).
  • Wi-Fi: wireless technology for connecting devices to a local network/Internet without cables.
  • Intranet: a private network restricted to one organization, built on Internet-based technologies but not publicly accessible.
  • Extranet: an intranet extended to give controlled access to selected outside parties (e.g., vendors, partners).
  • VPN (Virtual Private Network): a secure, encrypted connection over a public network that masks a user's real IP/location.
  • Cloud Computing: delivery of computing services (storage, servers, software) over the Internet rather than local hardware.
  • IoT (Internet of Things): everyday physical devices (appliances, sensors) connected to the Internet to exchange data.
  • Cookies: small files a website stores in a user's browser to remember information (e.g., login state, preferences).
  • Firewall: a security system that monitors and filters incoming/outgoing network traffic based on rules.
  • VoIP (Voice over Internet Protocol): technology for making voice calls over the Internet (e.g., WhatsApp/Skype calls).

MCQ Traps

  • The Internet (1969) and the WWW (1989–91) are not the same thing, and not the same age — the Internet is the network; the Web is a service invented ~20 years later. The single most tested distinction in this topic.
  • DNS translates names → IP addresses, not the reverse, by default — though reverse DNS lookups exist as a separate concept.
  • IPv6 exists to solve IPv4 address exhaustion, not for speed improvements — a commonly misunderstood motivation.
  • Bandwidth measures capacity, not speed — it's easily confused with latency, which measures delay.
  • An Intranet is private/restricted, while the Internet is public and global — don't conflate the two.
  • No single company or government owns the Internet — it's coordinated by nonprofit bodies like ICANN, IETF, and W3C.

Frequently Asked MCQs (Past Papers)

  • Q: What does ARPANET stand for, and when was it launched? — A: Advanced Research Projects Agency Network; 1969.
  • Q: Who is credited with inventing the World Wide Web, and where? — A: Tim Berners-Lee, at CERN, 1989–91.
  • Q: Who are considered the "Fathers of the Internet," and why? — A: Vint Cerf and Bob Kahn, for designing the TCP/IP protocol suite (1974).
  • Q: Differentiate the Internet from the World Wide Web. — A: The Internet is the global network infrastructure; the WWW is a hyperlinked-document service that runs on top of it.
  • Q: What is the role of DNS in accessing a website by name? — A: It translates the human-readable domain name into the numerical IP address needed to locate the server.
  • Q: What do the "TCP" and "IP" parts of TCP/IP each handle? — A: IP addresses and routes packets; TCP adds reliability (ordering, retransmission, reassembly).
  • Q: Which body coordinates domain names and IP address allocation globally? — A: ICANN.
  • Q: Differentiate between an Intranet and an Extranet. — A: An Intranet is restricted to one organization; an Extranet extends limited access to selected outside parties like vendors or partners.
  • Q: Name three common types of Internet connections. — A: Any three of: dial-up, DSL, cable, fiber, satellite, mobile (3G/4G/5G).

✅ Self-Test Questions (with Answers)

Q1. Differentiate the Internet from the World Wide Web, including which came first.

Ans: The Internet came first, by roughly twenty years. The Internet is the global network infrastructure — a "network of networks" of cables, routers, servers, satellites and submarine fibre, all communicating through the TCP/IP protocol suite. Its origin is ARPANET, launched in 1969 by the US Department of Defense's ARPA, initially linking four university computers; Vint Cerf and Bob Kahn designed TCP/IP in 1974, and ARPANET's switchover to TCP/IP on 1 January 1983 marks the technical birth of the modern Internet.

The World Wide Web is one service running on that infrastructure: a system of interlinked hypertext documents identified by URLs, transferred by HTTP/HTTPS and viewed in a web browser. It was invented by Tim Berners-Lee at CERN between 1989 and 1991. The relation is containment: WWW ⊂ Internet, never the reverse. Email (SMTP), file transfer (FTP), VoIP and online gaming all run on the Internet without being part of the Web.

AspectInternetWorld Wide Web
NaturePhysical and logical network infrastructureA service running on that infrastructure
Composed ofCables, routers, servers, TCP/IP protocolsWeb pages, hyperlinks, HTTP and HTTPS
Born1969 as ARPANET; TCP/IP switchover 19831989 to 1991, CERN
Created byARPA; TCP/IP by Vint Cerf and Bob KahnTim Berners-Lee
Accessed byNot applicable; it is the infrastructureA web browser
Other services carriedEmail, FTP, VoIP, the Web itselfNone; the Web is one service among many

A useful analogy for an exam answer: the Internet is the road network, and the Web is one kind of traffic travelling on it — email, file transfer and voice calls are other kinds. The 1969 versus 1989 date pair is the single most confused fact in this topic.

Q2. What is the role of DNS in accessing a website by name?

Ans: The Domain Name System (DNS) is the Internet's distributed, hierarchical naming system, often called the "phonebook of the Internet." Its role is name resolution: translating a human-readable domain name such as www.fpsc.gov.pk into the numerical IP address that routers actually need to deliver packets. Humans remember names; machines route by numbers; DNS is the bridge. DNS runs on port 53.

Resolution proceeds down a hierarchy:

  1. The browser checks its own cache, then the OS cache, then the hosts file.
  2. Failing that, the query goes to a recursive resolver, usually run by the ISP (or a public resolver such as Google's 8.8.8.8 or Cloudflare's 1.1.1.1).
  3. The resolver asks a root server (there are 13 logical root server identities, heavily replicated worldwide), which directs it to the TLD server for .pk.
  4. The TLD server directs it to the authoritative name server for fpsc.gov.pk.
  5. That server returns the A record (IPv4 address) or AAAA record (IPv6 address).
  6. The result is cached for the duration of its TTL (Time To Live), so repeat visits skip the whole chain.

Only then does the browser open an HTTP/HTTPS connection to that IP. Other record types matter too: MX records direct email, CNAME provides aliases, NS names the authoritative servers.

Remember the trap: DNS maps name → IP by default, not the reverse; the opposite direction is a separate reverse DNS (PTR) lookup. DNS is also a point of control — blocking a domain at the DNS level is the commonest technique of national website filtering, used by the PTA in Pakistan, which is why encrypted DNS (DoH/DoT) is a live policy issue.

Q3. What do the "TCP" and "IP" parts of TCP/IP each handle, and how does UDP differ?

Ans: TCP/IP is the foundational protocol suite of the Internet, and the two names describe two different layers doing two different jobs.

IP (Internet Protocol) works at the network layer and handles addressing and routing. It gives every device a unique IP address, breaks data into packets, stamps each with source and destination addresses, and forwards them hop by hop through routers toward the destination. IP is connectionless and best-effort: it makes no promise that a packet will arrive, that packets will arrive in order, or that they will arrive only once.

TCP (Transmission Control Protocol) works at the transport layer and supplies exactly the reliability IP lacks. It establishes a connection through the three-way handshake (SYN → SYN-ACK → ACK), numbers every segment, requires an acknowledgement for each, retransmits anything unacknowledged, reassembles segments into the original order, and performs flow control and congestion control so a fast sender does not swamp a slow receiver or the network.

UDP (User Datagram Protocol) is the alternative transport protocol: connectionless and unreliable by design. It simply fires datagrams out with no handshake, no acknowledgements, no retransmission, no ordering and no congestion control. The payoff is very low overhead and latency.

AspectTCPUDP
ConnectionConnection-oriented; three-way handshakeConnectionless; send and forget
ReliabilityGuaranteed delivery with retransmissionNo guarantee; lost packets stay lost
OrderingSegments reassembled in orderNo ordering guarantee
OverheadHigher; 20 byte headerLower; 8 byte header
SpeedSlower due to acknowledgementsFaster; minimal processing
Typical usesWeb (HTTP), email (SMTP), file transfer (FTP)Live video and voice, DNS, online gaming, streaming

The governing principle: use TCP when every byte must arrive correctly (a downloaded file with one missing byte is corrupt), and UDP when timeliness matters more than completeness (in a live voice call, a packet retransmitted 200 ms late is useless — better to drop it and carry on).

Q4. Why was IPv6 introduced?

Ans: IPv6 was introduced to solve IPv4 address exhaustion — the world simply ran out of IPv4 addresses. IPv4 uses 32-bit addresses, written as four dotted decimal octets such as 192.168.1.1. Thirty-two bits yield 2^32 = 4,294,967,296, about 4.3 billion addresses, and once large blocks reserved for private, multicast and special use are subtracted, fewer are usable. Designed in the 1970s and 1980s, that space seemed limitless; the explosion of personal computers, smartphones and IoT devices — with many people carrying several connected devices at once — consumed it. IANA allocated its last free IPv4 blocks to the regional registries in February 2011, and the regional registries subsequently exhausted their own pools.

IPv6 uses 128-bit addresses, written as eight groups of four hexadecimal digits, such as 2001:0db8:0000:0000:0000:0000:0000:0001 (abbreviated 2001:db8::1). That gives 2^128 addresses — approximately 3.4 × 10^38, a number so large it is effectively inexhaustible.

Secondary improvements came with it, though none is the primary motive: a simplified, fixed-size header that routers process more efficiently, built-in IPsec support, stateless address autoconfiguration (SLAAC) removing the need for DHCP in many cases, no need for NAT, and better multicast handling.

The standard exam trap is to say IPv6 was introduced "to make the Internet faster." It was not. The driver was address space; any performance gain is incidental. Note also the interim workaround that delayed the crisis: NAT (Network Address Translation), which lets many devices behind one router share a single public IPv4 address — effective, but it breaks true end-to-end connectivity.

CSS angle: IPv6 adoption is part of Pakistan's digital-infrastructure agenda; PTA has pressed operators to deploy IPv6, since a country adding tens of millions of mobile broadband users cannot expand on a depleted IPv4 pool.

Q5. Name three types of Internet connections and the physical medium each uses.

Ans: Three common types, with their media:

  • DSL (Digital Subscriber Line) — uses the existing copper telephone line, but carries a digital signal on frequencies above the voice band, so the phone remains usable during a session. Speeds reach tens of Mbps and degrade with distance from the telephone exchange.
  • Fibre optic (FTTH — Fibre To The Home) — uses glass or plastic fibre-optic cable carrying pulses of light. It is the fastest and most reliable option, delivering from 100 Mbps to several Gbps, immune to electromagnetic interference and almost unaffected by distance. In Pakistan, Nayatel and StormFiber are examples.
  • Mobile broadband (3G/4G/5G) — uses radio waves between a SIM-enabled device and cellular towers. Speeds vary widely with signal and congestion; 4G delivers tens of Mbps and 5G considerably more. Its defining advantage is mobility.
TechnologyPhysical mediumTypical speedKey limitation
Dial-upCopper telephone line, analog via modemUp to 56 KbpsOccupies the phone line; obsolete
DSLCopper telephone line, digital signalTens of MbpsDegrades with distance from exchange
CableCoaxial cable-TV lineTens to hundreds of MbpsBandwidth shared with neighbours
Fibre (FTTH)Glass fibre carrying light pulses100 Mbps to several GbpsHigh cost of laying infrastructure
SatelliteRadio link to an orbiting satelliteModerateHigh latency; weather sensitive
Mobile 3G 4G 5GRadio waves to cellular towersVaries widelyCongestion and coverage gaps

CSS angle: Pakistan's connectivity is overwhelmingly mobile-first — the great majority of broadband subscriptions reported by PTA are mobile rather than fixed-line, because laying fibre and copper to every home is slow and expensive while cellular coverage scales quickly. This shapes the digital divide: urban centres get fibre, while rural areas depend on 3G/4G or remain unserved, which is what the Universal Service Fund exists to address.

Q6. Which organizations are responsible for Internet governance, and what does each do?

Ans: The Internet is coordinated by a loose set of non-profit and standards bodies, not owned or controlled by any single government or company. The principal ones:

  • ICANN — Internet Corporation for Assigned Names and Numbers. Coordinates the domain name system and the global allocation of IP addresses. It accredits domain registrars, manages the root zone and authorises top-level domains. Its IANA function distributes IP address blocks to the five Regional Internet Registries (APNIC covers Asia-Pacific, including Pakistan).
  • IETF — Internet Engineering Task Force. Develops and publishes the Internet's technical standards as RFCs (Requests for Comments) — TCP/IP, HTTP, SMTP, DNS and the rest. It is an open, voluntary body operating by "rough consensus and running code," with no formal membership.
  • W3C — World Wide Web Consortium. Founded by Tim Berners-Lee in 1994, it sets standards for the Web specifically: HTML, CSS, accessibility guidelines (WCAG) and web APIs. Note the division of labour — IETF standardises the Internet, W3C standardises the Web.
  • ISOC — Internet Society. A global non-profit promoting the open development, evolution and use of the Internet; it provides the organisational and financial home for the IETF and advocates on policy.

Also relevant: the IANA function (address and protocol-number registry), the Regional Internet Registries (APNIC, RIPE NCC, ARIN, LACNIC, AFRINIC), and the IGF (Internet Governance Forum), a UN-convened multi-stakeholder policy discussion forum.

The frequently tested trap is the "who controls the Internet?" question: nobody owns it. Governance is multi-stakeholder — shared among technical bodies, governments, private operators and civil society. National regulators such as Pakistan's PTA govern only what happens within their own jurisdiction — licensing operators, spectrum, and content regulation under PECA 2016 — not the global system.

Q7. Distinguish between Intranet and Extranet.

Ans: Both use the same Internet technologies — TCP/IP, web browsers, HTTP — and the difference lies in who is allowed in. An intranet is a private network internal to one organisation, accessible only to its own employees or members, and not reachable by the public. It hosts internal resources: HR policies, notifications, internal directories, leave applications, departmental portals and shared databases. An extranet is an intranet deliberately extended to give controlled, limited access to selected outside parties — vendors, suppliers, contractors, partner agencies or clients. Those outsiders are authenticated and see only the specific portion opened to them, never the whole intranet.

AspectIntranetExtranetInternet
Who can accessMembers of one organisation onlyThe organisation plus authorised outsidersAnyone worldwide
ScopePrivate and internalSemi-private, controlled sharingFully public and global
Typical contentHR policies, internal notices, staff portalsOrder status, shared project files, partner portalsPublic websites and services
Access controlInternal credentials; often on-premises onlyAuthentication plus VPN or a partner portalUsually open
OwnershipThe single organisationPrimary organisation, shared with partnersNo single owner

The relationship is one of widening circles: intranet (inside only) ⊂ extranet (inside plus invited outsiders) ⊂ Internet (everyone). A useful example: a bank's intranet carries internal circulars for staff; its extranet lets an audit firm access specified records during an audit; its Internet presence is the public website any customer can open.

CSS angle: Pakistani government departments commonly run intranets for internal circulars and file movement, while systems like FBR's IRIS, which give registered taxpayers and filing agents controlled access to their own records, function as extranets — a core e-governance pattern.

Q8. What is the difference between bandwidth and latency?

Ans: They measure two entirely different properties of a connection. Bandwidth is capacity — the maximum volume of data a link can carry per unit of time, measured in bits per second: Kbps, Mbps, Gbps. Latency is delay — the time a single packet takes to travel from source to destination, measured in milliseconds (ms); the round-trip version is what the ping command reports.

The standard analogy is a water pipe: bandwidth is the pipe's width (how much can flow at once), while latency is how long the first drop takes to reach the far end. Widening the pipe does not make the first drop arrive sooner. A connection can therefore be high-bandwidth yet high-latency — satellite Internet is the classic case, delivering good throughput but suffering delay because the signal must travel to orbit and back, which is why video calls and gaming feel poor on it despite adequate speed.

AspectBandwidthLatency
What it measuresData capacity per unit timeDelay for data to travel
UnitMbps or GbpsMilliseconds
Better whenHigherLower
Determined mainly byMedium, technology and subscribed planPhysical distance, routing hops, congestion
Critical forLarge downloads, HD streaming, backupsVideo calls, online gaming, live trading
Typical fibre value100 Mbps to several GbpsRoughly 5 to 20 ms domestically

A related term is throughput — the data rate actually achieved in practice, which is always at or below the nominal bandwidth because of overhead, congestion and packet loss. In exam terms, remember: bandwidth is capacity, not speed, and confusing it with latency is one of the most commonly tested errors in this topic.

📜 Past-Paper Questions & MCQs (CSS 2016–2026)

2018 · Paper-I · Q2(a) · 4 marks

Q. How many layers are in the TCP/IP stack? What are their names?

Quick revision — key points

  • Four TCP/IP layers: Application, Transport, Internet, Link
  • Application: HTTP/DNS; Transport: TCP/UDP
  • Internet: IP routing; Link: Ethernet/Wi-Fi

Exam-ready answer — structured

Introduction / direct answer: Model answer (4 marks): The conventional TCP/IP model comprises four layers, from top to bottom:

Four TCP/IP layers

  1. Application: Services such as HTTP, DNS and SMTP.
  2. Transport: Process-to-process communication through TCP and UDP using port numbers.
  3. Internet: IP addressing and routing; IPv4, IPv6 and ICMP.
  4. Network Access: Local delivery over Ethernet or Wi-Fi.
  • Diagram: Application → Transport → Internet → Network Access. Exam note: Some textbooks split Network Access into Data Link and Physical to make five layers, but the traditional TCP/IP answer is four.

2020 · Paper-I · Q3(a) · 4 marks

Q. Write standard ports for the following services: HTTP, FTP, SMTP, HTTPS, DNS.

Quick revision — key points

  • HTTP 80; HTTPS 443
  • FTP 21 control, 20 active data
  • SMTP 25; DNS 53

Exam-ready answer

Model answer (4 marks):

ServiceStandard portTransport / purpose
HTTP80TCP — web requests
FTP21TCP — control connection; port 20 associated with active-mode data
SMTP25TCP — email transfer between servers
HTTPS443TCP — secure web traffic; HTTP/3 also uses UDP 443
DNS53UDP or TCP — domain-name resolution

Explanation: Port numbers identify services used by transport protocols. FTP passive-mode data uses negotiated ports, while authenticated email submission commonly uses TCP 587.

Memory hook: HTTP 80, FTP 21, SMTP 25, HTTPS 443, DNS 53. The question asks for port numbers, so present the table first.

2020 · Paper-I · Q3(c) · 4 marks

Q. If you are transferring a file over the Internet, would you prefer TCP or UDP as the underlying protocol? Explain.

Quick revision — key points

  • Choose TCP for file completeness
  • Acknowledgements and retransmissions
  • Sequencing, flow and congestion control

Exam-ready answer — structured

Introduction / direct answer: Model answer (4 marks): I would choose TCP, because a file must reach the receiver completely and in the correct order.

Main explanation

  1. Acknowledgements: TCP confirms receipt of transmitted data.
  2. Retransmission: Lost or damaged segments can be sent again.
  3. Sequence numbers: Out-of-order segments are reconstructed into the original byte stream.
  4. Flow and congestion control: Sending speed adapts to receiver capacity and network conditions.
  • Example: SFTP and conventional FTP transfer files over TCP. Unlike TCP, bare UDP provides no built-in retransmission or ordered delivery.
  • Conclusion: For ordinary file transfers, reliability outweighs minimum latency. Modern QUIC/HTTP/3 can also transfer files reliably over UDP by implementing reliability at a higher layer.

2020 · Paper-I · Q3(d) · 4 marks

Q. If you are transferring live audio in real time over the Internet, would you prefer TCP or UDP? Explain.

Quick revision — key points

  • Choose UDP for timely audio
  • No mandatory retransmission/in-order wait
  • RTP, jitter buffers and loss concealment

Exam-ready answer — structured

Introduction / direct answer: Model answer (4 marks): I would choose UDP, because real-time audio depends on timely delivery rather than perfect recovery of every packet.

Main explanation

  1. No obligatory retransmission: Late audio packets are often less useful than missing packets, so playback can continue.
  2. Low protocol overhead: UDP has an 8-byte header and no transport connection-establishment handshake.
  3. No mandatory ordered-delivery wait: Applications can prioritise the latest voice data rather than blocking on older packets.
  4. Real-time recovery methods: Applications employ jitter buffers, packet-loss concealment and sometimes forward error correction.
  • Example: Interactive voice calls commonly transmit RTP media over UDP; an occasional missing audio packet can be concealed to avoid a prolonged pause. Conclusion: Use TCP for complete files and UDP for time-sensitive audio.
  • UDP alone does not guarantee low latency or congestion control.

2021 · Paper-I · Q3(a) · 6 marks

Q. Describe any two of the following briefly: ISP, HTML, SSD, Cloud Computing.

Quick revision — key points

  • Choose any TWO at three marks each
  • Definition, function, example and significance
  • ISP, HTML, SSD and cloud computing options

Exam-ready answer — structured

Introduction / direct answer: Model answer (6 marks): Select any TWO; approximately three marks each. All four alternatives are prepared below for revision.

Main explanation

  1. ISP (Internet Service Provider): An ISP connects customers to the global Internet via fibre, DSL or mobile services.
  • It forwards Internet traffic and may supply DNS and hosting. Example: a PTCL broadband connection gives household devices Internet access.
  • Significance: an ISP provides connectivity; it does not own the Internet. 2.
  • HTML (HyperText Markup Language): HTML structures web pages using elements for headings, paragraphs, links, tables and forms. Browsers render it, while CSS controls visual presentation.
  • Example: an online admission form contains HTML input elements. Significance: HTML is markup, not a general-purpose programming language.
  1. SSD (Solid State Drive): An SSD stores data persistently in flash memory without an HDD's moving read/write head.
  • It offers low access latency and quick application loading. Example: a laptop's NVMe system drive.
  • Significance: SSD storage is non-volatile, unlike RAM. 4.
  • Cloud computing: Cloud computing delivers on-demand storage, applications and computing resources over networks. IaaS provides infrastructure, PaaS application platforms and SaaS ready-to-use software.
  • Example: cloud document storage permits remote collaboration. Advantages: scalability and less upfront hardware expenditure.
  • Exam strategy: For each of your two chosen terms, write definition → function/working → example → benefit or distinction. Avoid writing all four in a six-mark question.

2026 · Paper-I · Q2(a) · 6 marks

Q. Your team needs to share large files quickly but email limits attachments. What computing method should they use and how will it solve the issue?

Quick revision — key points

  • Upload large file to managed cloud storage
  • Share secure link instead of attachment
  • Permissions, version history and security caveats

Exam-ready answer — structured

Introduction / direct answer: Model answer (6 marks): The team should use cloud storage and link-based file sharing, such as a managed Google Drive, OneDrive or Dropbox workspace.

Main explanation

  • How it works: (1) Upload the large file to the cloud. (2) Set view or edit permissions for authorised team members. (3) Generate a sharing link. (4) Send the link through email or a messenger. Recipients access the hosted file without receiving it as an email attachment.
  • Why it solves the problem: 1.
  • Bypasses the email attachment limit: the email carries a small URL rather than a multi-gigabyte file. 2.
  • One shared copy: everyone works from the latest version, avoiding repeated attachments. 3.
  • Controlled access: permissions may be restricted, revoked or set to expire, depending on the service. 4.
  • Collaboration and scalability: version history and expandable cloud storage support growing projects. Example: an office shares a 2 GB design archive using a private cloud link rather than attaching it to email.
  • Security note: require authentication/MFA for sensitive files. Cloud platforms still impose file-size, storage and traffic limits.
  • Conclusion: Cloud link sharing resolves the attachment restriction while making teamwork more manageable and secure.