What Is Computer Network Architecture? Types, Layers and Worked Examples
Network architecture explained: client-server vs peer-to-peer, the OSI and TCP/IP layers, three-tier campus vs spine-leaf data centres, SDN and zero trust, with worked numbers for file distribution time, Ethernet overhead and switch oversubscription.

Computer network architecture is the plan that decides how devices on a network are connected, who serves whom, and which rules (protocols) carry data between them. Its main types are client-server and peer-to-peer (by role), the OSI and TCP/IP layer models (by function), and physical designs such as the three-tier campus and the spine-leaf data centre, with newer software-defined (SDN) and zero-trust approaches on top.
This guide explains each type in plain words, then works the numbers an engineering student is asked about: how long a 1 GB file takes to reach 1,000 people under client-server versus peer-to-peer, how much of a 1 Gbit/s Ethernet link is really your data, and how a data-centre switch is sized. Every calculation was checked with a script by Skill-Lync's Engineering Desk, and the figures were drawn from those results.
Key takeaways
- Two roles: in client-server, a dedicated server answers requests; in peer-to-peer, every machine both asks and serves. Sharing a 1 GB file with 1,000 downloaders takes at least 22.2 hours from one 100 Mbit/s server but about 13.2 minutes peer-to-peer (Kurose and Ross bounds, worked below).
- Two layer models: OSI has seven layers (ITU-T X.200, 1994, equivalent to ISO/IEC 7498-1); the internet runs the TCP/IP suite, whose host requirements (RFC 1122, October 1989) list four layers: link, internet, transport and application.
- Overhead is real: a full-size TCP segment on Ethernet carries 1,460 bytes of data in 1,538 bytes of wire time, so 94.9 % of a 1 Gbit/s link (about 949 Mbit/s) is your data.
- Data centres use spine-leaf: every leaf switch connects to every spine switch, so any two servers are three switches apart. Cisco's October 2026 design paper shows a 48 x 25G leaf with 8 x 100G uplinks, a 1.5 : 1 oversubscription.
- India scale: TRAI counted 1,107.68 million broadband subscribers at the end of September 2026 (press release of 27 Oct 2026), all of them reaching services through client-server and layered designs.
What is computer network architecture?
Computer network architecture is the overall design of a network: which devices exist, how they are linked, which device does which job, and which protocols they use to exchange data. It covers both the logical side (roles and layered protocols) and the physical side (switches, routers, cables and wireless links, and how they are arranged).
It helps to look at one network from three angles, because "types of network architecture" can mean any of them:
- By role: who provides a service and who consumes it. This gives client-server, peer-to-peer and hybrids of the two.
- By function: how the work of moving data is split into layers, each with its own protocols. This gives the OSI and TCP/IP models.
- By physical and control design: how switches and routers are wired and managed. This gives the three-tier campus, the spine-leaf data centre, software-defined networking (SDN) and zero-trust security architecture.
Architecture is not the same as topology. Topology is the shape of the links (bus, star, ring, mesh); architecture is the larger plan that includes the topology, the roles and the protocols. Our separate guide covers the types of network topology, and LAN, MAN and WAN are covered in our post on network definitions.
What are the types of computer network architecture?
The two types most syllabi name are client-server and peer-to-peer. In practice engineers also talk about layered models (OSI, TCP/IP) and physical designs (three-tier campus, spine-leaf), plus two modern approaches, SDN and zero trust. The table puts them side by side.
| Type | What it decides | Where you meet it |
|---|---|---|
| Client-server | A dedicated server holds data or a service; clients request it | Websites, banking apps, email, college ERP, licence servers for CAD tools |
| Peer-to-peer (P2P) | Every node can both request and serve; no central server is needed for the transfer | BitTorrent-style file sharing, small office file sharing, some update-distribution systems |
| Hybrid | A central server for login and lookup, peers for the heavy data transfer | File-sharing and media apps that use a central index |
| Layered model (OSI, TCP/IP) | How the job of moving data is split into layers with separate protocols | Every networked device; the basis of GATE and interview questions |
| Three-tier campus | Access, distribution and core switch layers | Offices, colleges, hospitals, factories |
| Spine-leaf | Every leaf switch links to every spine switch | Data centres and cloud regions |
| Software-defined (SDN) | Control logic moved off each box into a programmable controller | Data centres, telecom cores, large campuses |
| Zero trust | No user or device is trusted by location; every access is checked | Enterprise security, remote work, government guidance |
What is client-server architecture?
In client-server architecture, one or more dedicated computers (servers) hold data or run a service, and other devices (clients) send requests and receive replies. The server is always on, has a fixed address, and is managed centrally. When you open a website, your browser is the client and the site's machines are the servers.
The strengths are control and consistency. Data lives in one place, so backups, access control and updates are done once. The weakness is that the server is a shared bottleneck and, without redundancy, a single point of failure: if it goes down or its upload link fills up, every client waits.
What are 2-tier and 3-tier client-server architectures?
In a 2-tier design the client talks directly to a database server (an old desktop accounting tool reading a shared database is the classic case). In a 3-tier design a middle application server sits between them: the client handles the screen, the application tier holds the business rules, and the database tier stores the data. Most web applications today are 3-tier or n-tier, because each tier can be scaled and secured on its own.
What is peer-to-peer (P2P) architecture?
In peer-to-peer architecture, every computer (a peer) can act as both client and server, so peers fetch data from each other instead of from one central machine. Each new peer adds upload capacity as well as demand, which is why P2P systems spread large files to many users quickly, though they are harder to secure and manage.
| Question | Client-server | Peer-to-peer |
|---|---|---|
| Who stores the data? | The server | Spread across peers |
| What happens as users grow? | Server load grows; add servers or bandwidth | Each peer adds upload capacity |
| Single point of failure? | Yes, unless servers are replicated | No central one for the transfer itself |
| Security and access control | Central and easier | Per peer and harder |
| Cost to start | Server hardware or cloud bill | Low; uses existing machines |
| Typical use | Web, email, banking, databases | Large file distribution, small workgroups |
Worked example: sending a 1 GB file to 1,000 people
Kurose and Ross's textbook Computer Networking: A Top-Down Approach gives lower bounds on the time to deliver a file of size to downloaders. With server upload speed , peer upload speeds and slowest peer download speed :
Take a 1 GB file ( Mbit), a server that uploads at 100 Mbit/s, and peers that each upload at 10 Mbit/s and download at 50 Mbit/s. For :
The client-server time grows in step with , because one server must upload copies. The P2P time levels off: as grows, the last term tends to s, because every new downloader also uploads. For 10 downloaders the two bounds are 800 s and 400 s; for 100 they are 8,000 s and about 727 s.
These are lower bounds with perfect sharing. Real P2P swarms lose time to peers leaving, uneven speeds and protocol overhead, and real servers sit behind content delivery networks that copy the file to many edge servers. That is a hybrid answer to the same bottleneck.
What are the layers of network architecture: OSI vs TCP/IP?
The OSI reference model splits networking into seven layers: physical, data link, network, transport, session, presentation and application. The TCP/IP model the internet actually runs uses four: link, internet, transport and application. OSI is the teaching and troubleshooting vocabulary; TCP/IP is the working protocol suite.
| TCP/IP layer | OSI layers | Data unit | Job | Examples |
|---|---|---|---|---|
| Application | 7, 6, 5 | Message | What the program wants to say | HTTP, DNS, SMTP, MQTT |
| Transport | 4 | Segment (TCP) or datagram (UDP) | End-to-end delivery between programs, using port numbers | TCP, UDP, QUIC |
| Internet | 3 | Packet | Addressing and routing across networks | IPv4, IPv6, ICMP |
| Link | 2, 1 | Frame, then bits | Delivery across one link, then signals on the wire or radio | Ethernet, Wi-Fi |
The reason for layering is separation of concerns. A browser does not care whether the last hop is Wi-Fi or fibre, and a switch does not care whether the bytes are a web page or a video call. Each layer talks only to the layers above and below it, so one can be replaced without rewriting the rest.
Worked example: how much of a 1 Gbit/s link is your data?
Each layer wraps the data from the layer above in its own header, a process called encapsulation. With a standard 1,500-byte Ethernet payload, an IPv4 header of 20 bytes (RFC 791) and a TCP header of 20 bytes (RFC 9293, no options), the largest TCP payload is:
Ethernet then adds a 14-byte header and a 4-byte frame check sequence (a 1,518-byte frame), and each frame on the wire also needs an 8-byte preamble and a 12-byte (96-bit-time) gap before the next one:
So a 1 Gbit/s link moves at most about 949 Mbit/s of application data in full-size TCP segments over IPv4. With IPv6, whose fixed header is 40 bytes, it is 1,440 / 1,538 = 93.6 %. Small messages fare far worse: 100 bytes of data needs 178 bytes of wire time, an efficiency of 56.2 %, which is why chatty protocols batch their messages.
If you want to see these headers on real traffic, capture a page load in Wireshark and expand each layer: Skill-Lync's network analysis and troubleshooting course with Wireshark works through exactly this.
How are campus and data-centre networks designed?
Campus networks (offices, colleges, hospitals) usually follow a three-tier design: access switches connect users and devices, distribution switches aggregate the access switches, and core switches link the distribution blocks at high speed. Data centres instead use a spine-leaf fabric, where every leaf switch connects to every spine switch, so server-to-server traffic always takes the same short path.
Cisco's campus design guide describes the roles: the access layer gives users and endpoints their connection, the distribution layer aggregates access switches and connects them to services, and the core connects distribution layers in large networks. Smaller sites often merge core and distribution into a "collapsed core" with two tiers.
The three-tier tree suits traffic that flows up to the internet or a server room and back (north-south). Modern applications, though, send most traffic between servers (east-west): a web server calls an application server, which calls a database, which replicates to another. In a tree that traffic may climb to the core and back down, crossing up to five switches. In spine-leaf, any leaf reaches any other leaf through exactly one spine: three switches, every time.
Worked example: sizing a leaf switch
A leaf switch with 48 server ports at 25 Gbit/s and 6 uplinks at 100 Gbit/s has:
That means if every server sent off-rack at full speed at once, each would get half its line rate. Designers accept some oversubscription because servers rarely all peak together; Cisco's 2026 design paper uses 8 uplinks on the same 48 x 25G leaf for 1.5 : 1. The uplink count also sets the number of spines (one uplink per spine), and the spine's port count sets the number of leaves: six spines with 32 ports each allow 32 leaves, or 1,536 servers at 48 per leaf. To grow beyond that, you add another tier of spines or larger spine switches.
What is software-defined networking (SDN)?
Software-defined networking separates the control plane (the logic that decides where traffic should go) from the data or forwarding plane (the hardware that moves packets), and connects them through standard interfaces. A central, programmable controller then sets the rules for many switches at once, instead of each box being configured by hand.
The IETF's research group set out the terms in RFC 7426 (January 2015), defining SDN as a programmable-networks approach that supports this separation through standardised interfaces. In practice SDN is why a cloud provider can create an isolated virtual network for a customer in seconds, and why telecom operators run network functions as software (see our explainer on SDN vs NFV).
What is zero trust network architecture?
Zero trust architecture assumes no user, device or network location is trusted by default, so every request to a resource is authenticated and authorised on its own, using identity, device health and context. It replaces the older "castle and moat" design, where anything inside the office network was trusted.
The reference document is NIST Special Publication 800-207, Zero Trust Architecture (August 2020), which describes zero trust as a set of cybersecurity paradigms that move defences from static network perimeters to users, assets and resources. For a network engineer this shows up as segmentation, strong identity, encrypted traffic everywhere and policy engines that sit in front of applications. Skill-Lync's network security course covers the building blocks.
How is network architecture asked in GATE, CCNA and interviews?
Network architecture questions are mostly about layering, addressing and performance arithmetic, the same ideas worked above. GATE 2027 (organised by IIT Madras, exams on 6, 7, 13, 14, 20 and 21 February 2027, all dates liable to change) lists computer networks as section 10 of its CS syllabus.
That GATE 2027 section names the principles of layering, circuit, packet and virtual-circuit switching with performance metrics, the data link layer (error detection, medium access control, Ethernet), distance-vector and link-state routing, IPv4 fragmentation, CIDR and NAT, TCP flow and congestion control with the socket API, and DNS and HTTP. Note that the 2027 wording says "principles of layering" rather than naming the OSI and TCP/IP stacks, but layering questions still use both vocabularies.
For industry certification, Cisco's CCNA 200-301 v1.1 weights "Network Fundamentals" at 20 % of the exam. Cisco says the last date to sit v1.1 is 2 February 2027 and that CCNA v2.0 is released on 3 February 2027, so check the exam topics for the version you will actually take.
Typical interview questions that test architecture understanding:
- What happens, layer by layer, when you type a URL and press Enter? (Our post on how data travels the internet walks through it.)
- Why does a 1 Gbit/s link never show 1 Gbit/s in a file transfer? (Encapsulation overhead, worked above, plus TCP behaviour.)
- When would you choose peer-to-peer over client-server? (Large one-to-many distribution where users can upload.)
- Why do data centres use spine-leaf instead of a three-tier tree? (East-west traffic, equal path length, scale-out by adding spines.)
Why does network architecture matter for engineers in India now?
India's networks are now among the largest anywhere, and they run on these designs. TRAI's press release of 27 October 2026 reported 1,107.68 million broadband subscribers (1,013.87 million without machine-to-machine connections) and 1,367.93 million telephone subscribers at the end of September 2026. Every UPI payment, video class and cloud simulation job crosses client-server applications, TCP/IP layers and spine-leaf data centres.
For engineers outside IT, this is not an abstract topic. Automotive engineers work on in-vehicle networks such as CAN and automotive Ethernet; mechanical and CAE engineers run simulations on cloud clusters and licence servers; electronics engineers build IoT devices that publish over MQTT. If your work touches cloud computing, start with Skill-Lync's fundamentals of cloud computing course, and if you are not sure which path fits your branch, talk to a Skill-Lync counsellor.
Frequently asked questions
What are the two main types of network architecture?
The two main types are client-server and peer-to-peer. In client-server, dedicated servers hold data or services and clients request them, which makes control and security easier. In peer-to-peer, every computer can both request and serve data, which scales well for sharing large files but is harder to secure and manage centrally.
Is the OSI model a network architecture?
The OSI model is a reference architecture: a seven-layer description of how networking functions are divided, standardised as ITU-T X.200 and ISO/IEC 7498-1. It is used for teaching and troubleshooting. The protocols the internet actually runs follow the TCP/IP model, which RFC 1122 describes with four layers: link, internet, transport and application.
What is the difference between network architecture and network topology?
Topology is only the shape of the connections, such as star, ring, bus or mesh. Network architecture is the whole design: the topology plus each device's role, the layered protocols, and how traffic is controlled and secured. A spine-leaf data centre is an architecture built on a full mesh between its leaf and spine layers.
Which network architecture does the internet use?
The internet uses the TCP/IP layered architecture, and most services on it are client-server: browsers and apps request data from servers, usually through content delivery networks. Some applications add peer-to-peer parts, such as file distribution or video calls that connect users directly. Inside data centres, the servers are usually connected by spine-leaf fabrics.
Is peer-to-peer faster than client-server?
For sending one large file to many users, peer-to-peer can be much faster because every downloader also uploads. In Skill-Lync's worked example, a 1 GB file reaches 1,000 users in at least 22.2 hours from one 100 Mbit/s server, but in about 13.2 minutes peer-to-peer. For small requests and private data, client-server is usually simpler and quicker.
Why is it called a three-tier architecture?
The name is used in two places. In campus networks, the three tiers are the access, distribution and core switch layers. In software, a three-tier application splits into a presentation tier (the client screen), an application tier (the business logic) and a data tier (the database). In both cases each tier can be scaled and secured separately.
Sources and further reading
- IETF, RFC 1122: Requirements for Internet Hosts, Communication Layers (October 1989), section 1.1.3, accessed 22 Nov 2026.
- ITU-T, X.200: Open Systems Interconnection, Basic Reference Model (approved 1 Jul 1994), equivalent to ISO/IEC 7498-1:1994, accessed 22 Nov 2026.
- IETF, RFC 9293: Transmission Control Protocol (August 2022, obsoletes RFC 793); RFC 791: Internet Protocol (September 1981); RFC 8200: IPv6 Specification (July 2017); accessed 22 Nov 2026.
- Karlin and Peterson, Maximum Packet Rates for Full-Duplex Ethernet, Princeton TR-645-02 (Feb 2002), Ethernet frame fields and 96-bit-time interframe gap, accessed 22 Nov 2026.
- Kurose and Ross, Computer Networking: A Top-Down Approach, peer-to-peer file distribution excerpt (8th ed.) and 9th edition page, accessed 22 Nov 2026.
- Cisco, Campus LAN and Wireless LAN Solution Design Guide (updated 4 May 2020), accessed 22 Nov 2026.
- Cisco, Cisco Massively Scalable Data Center Network Fabric white paper (updated 20 Oct 2026), accessed 22 Nov 2026.
- IRTF, RFC 7426: SDN Layers and Architecture Terminology (January 2015), accessed 22 Nov 2026.
- NIST, SP 800-207: Zero Trust Architecture (August 2020), accessed 22 Nov 2026.
- IIT Madras, GATE 2027 important dates and GATE 2027 CS syllabus, accessed 22 Nov 2026.
- Cisco, CCNA 200-301 v1.1 exam topics and CCNA exams and training, accessed 22 Nov 2026.
- TRAI, Press Release No. 140/2026: Telecom Subscription Data as on 30 Sept 2026 (27 Oct 2026), accessed 22 Nov 2026.


