Computer networking is the foundation of modern digital communication.
Every time a computer accesses a website, a smartphone connects to Wi-Fi, a server communicates with a database, or an employee connects to a company VPN, networking technologies are working behind the scenes.
Understanding networking is therefore essential for anyone learning:
A modern network consists of devices, protocols, addressing systems, transmission technologies, routing mechanisms, security controls, and applications working together.
This guide explains computer networking from the fundamentals to modern network architecture, including network types, devices, protocols, IP addressing, Ethernet, Wi-Fi, TCP/IP, DNS, DHCP, routing, switching, VLANs, network security, troubleshooting, and enterprise networking.
Computer networking is the practice of connecting computers, devices, systems, and services so they can communicate and exchange data.
A basic network might look like:
Computer A
|
|
Switch
/ \
/ \
PC B Server
A larger network may include:
Internet
|
Router
|
Firewall
|
Core Switch
|
+---+---------+----------+
| | |
Servers PCs Wi-Fi
Networking allows devices to share:
Almost every modern organization depends on networking.
Businesses use networks for:
Without networking, modern distributed computing would not exist.
Networking is also the foundation of cybersecurity because attackers and defenders both operate through network communication.
For a security-focused introduction, see Cybersecurity for Beginners.
A computer network typically contains several components.
Examples:
Examples:
Examples:
Examples:
A typical small network can look like this:
Internet
|
|
Router
|
Firewall
|
Switch
/ | \
/ | \
PC Server AP
|
Wi-Fi
/ \
Phone Laptop
Each device has a specific role.
Networks can be classified according to geographic scope, architecture, technology, and purpose.
Common types include:
A Personal Area Network connects devices around an individual.
Examples include:
Smartphone
|
Bluetooth
|
Headphones
Another example:
Laptop
|
Bluetooth
|
Keyboard
PANs usually cover a very small physical area.
A Local Area Network (LAN) connects devices within a limited area.
Examples:
Example:
LAN
|
+-------+-------+
| | |
PC Server Printer
Ethernet is commonly used for wired LANs.
A Wireless LAN uses wireless communication instead of physical Ethernet connections for at least part of the network.
Example:
Internet
|
Router
|
Wi-Fi Access Point
/ | \
/ | \
Laptop Phone Tablet
Modern WLANs are based primarily on IEEE 802.11 technologies.
A Wide Area Network connects geographically separated networks.
For example:
Office A
|
|
Internet / WAN
|
|
Office B
Enterprise WANs may connect:
Technologies can include:
A Campus Area Network connects multiple buildings within a relatively limited geographic area.
Example:
Core Network
/ | \
/ | \
Building A Building B Building C
Universities and large organizations commonly use campus architectures.
A Storage Area Network provides high-speed access to storage resources.
Example:
Servers
| | |
v v v
SAN Network
| | |
v v v
Storage Systems
SANs are common in enterprise data centers.
A VPN creates a protected logical connection across another network.
Example:
Remote User
|
Internet
|
VPN
|
Corporate Network
For a deeper explanation, see VPNs Explained.
A topology describes how network devices are connected.
Common topologies include:
Star topology connects devices to a central device.
PC
|
|
PC -------- Switch -------- PC
|
|
Server
This is one of the most common LAN designs.
Advantages:
Disadvantage:
In a mesh network, devices have multiple paths between them.
A -------- B
|\ /|
| \ / |
| \ / |
| \ / |
| \/ |
C -------- D
Mesh architectures provide redundancy.
They are useful when availability is critical.
Understanding network devices is essential for networking.
Important devices include:
A Network Interface Card provides network connectivity.
A computer may have:
Computer
|
+--- Ethernet NIC
|
+--- Wi-Fi NIC
Each network interface normally has a MAC address.
Ethernet is one of the most widely used technologies for wired LAN communication.
Ethernet operates primarily at the data-link and physical layers of the OSI model.
Typical Ethernet connections use:
Common copper connectors include RJ-45 style Ethernet connectors.
A switch connects devices within a LAN.
Example:
PC 1 ----\
PC 2 -----\
PC 3 ------ Switch ---- Server
PC 4 -----/
A switch forwards Ethernet frames based primarily on MAC addresses.
It maintains a MAC address table.
Conceptually:
MAC Address Port
AA:AA:AA:AA:AA:01 1
AA:AA:AA:AA:AA:02 2
AA:AA:AA:AA:AA:03 3
A router connects different IP networks.
Example:
LAN A
10.10.10.0/24
|
v
Router
|
v
LAN B
10.20.20.0/24
Routers make forwarding decisions using IP addresses and routing information.
A router can connect:
A firewall controls traffic according to security policies.
Example:
Internet
|
Firewall
|
Internal Network
A firewall can evaluate:
For more information, read Firewalls Explained.
An Access Point (AP) provides wireless network connectivity.
Switch
|
|
AP
/ | \
/ | \
Laptop Phone Tablet
Enterprise Wi-Fi often uses multiple access points controlled centrally.
A modem connects a local network to a service provider’s access technology.
Depending on the technology, a modem may interact with:
Modern ISP equipment may combine modem, router, firewall, and Wi-Fi functions in a single device.
A gateway provides communication between different systems or network environments.
In IP networking, the default gateway is typically the router that a host uses to reach destinations outside its local subnet.
Example:
PC
IP: 192.168.1.10
Gateway: 192.168.1.1
When the PC communicates with an external network, it sends the traffic toward the default gateway.
The OSI model provides a conceptual framework for understanding network communication.
It contains seven layers:
7 Application
6 Presentation
5 Session
4 Transport
3 Network
2 Data Link
1 Physical
Each layer provides specific networking functions.
The physical layer handles transmission of raw bits.
Examples:
The data-link layer handles local network communication.
Important concepts include:
The network layer handles logical addressing and routing.
Important concepts include:
The transport layer provides communication between applications.
Major protocols include:
TCP provides reliable, connection-oriented communication.
UDP provides connectionless datagram communication without TCP’s reliability mechanisms.
Manages communication sessions.
Deals conceptually with:
Provides network services to applications.
Examples:
In real-world TCP/IP networking, protocols do not always map perfectly to the seven OSI layers.
The TCP/IP model is more closely aligned with the Internet protocol suite.
A common simplified representation is:
Application
Transport
Internet
Network Access
Important protocols include:
Application:
HTTP DNS SSH SMTP
Transport:
TCP UDP
Internet:
IP ICMP
Network Access:
Ethernet Wi-Fi
For a deeper guide, see TCP/IP Explained.
An IP address identifies a network interface at the IP layer.
IPv4 example:
192.168.1.25
IPv4 addresses contain 32 bits.
They are normally represented as four decimal octets.
An IPv4 address contains:
Network Portion + Host Portion
The division depends on the subnet mask or CIDR prefix.
Example:
192.168.1.25/24
The /24 prefix indicates that the first 24 bits represent the network prefix.
Private IPv4 ranges are defined by RFC 1918.
They include:
10.0.0.0/8
172.16.0.0/12
192.168.0.0/16
These addresses are commonly used inside private networks.
Public IP addresses are globally routable addresses assigned through the Internet addressing system.
Example:
Private LAN
192.168.1.0/24
|
v
Router
|
v
Public Internet
NAT is commonly used to allow private hosts to access external networks.
IPv6 was developed to provide a vastly larger address space than IPv4.
Example:
2001:db8::1
IPv6 uses 128-bit addresses.
Important IPv6 concepts include:
Organizations increasingly operate environments where IPv4 and IPv6 coexist.
A MAC address identifies a network interface at the Ethernet/data-link layer.
Example:
00:1A:2B:3C:4D:5E
Switches use MAC addresses to make forwarding decisions within a LAN.
| Feature | IP Address | MAC Address |
|---|---|---|
| Layer | Network | Data Link |
| Purpose | Logical addressing | Local interface identification |
| Used by | Routers | Switches |
| Example | 192.168.1.10 | 00:1A:2B:3C:4D:5E |
| Can change | Yes | Usually associated with interface |
Both are important for network communication.
Subnetting divides a larger network into smaller logical networks.
Instead of:
10.0.0.0/16
an organization might use:
10.0.10.0/24
10.0.20.0/24
10.0.30.0/24
Subnetting provides:
Classless Inter-Domain Routing (CIDR) represents IP networks using prefix lengths.
Examples:
192.168.1.0/24
10.10.0.0/16
172.16.10.0/24
The prefix determines the network portion.
CIDR is fundamental to modern IP routing.
Dynamic Host Configuration Protocol (DHCP) automatically provides network configuration to clients.
A DHCP server can provide:
The classic DHCP process is often summarized as:
Discover
|
Offer
|
Request
|
ACK
This is commonly called DORA.
The Domain Name System (DNS) translates domain names into information such as IP addresses.
Example:
www.example.com
|
v
DNS
|
v
93.184.216.34
DNS is essential to the modern Internet.
See the detailed CorgiNetwork guide:
In IPv4 Ethernet networks, Address Resolution Protocol (ARP) is used to associate an IPv4 address with a MAC address on the local network.
Example:
Who has 192.168.1.1?
192.168.1.1 is at
AA:BB:CC:DD:EE:FF
The result may be stored in the host’s ARP cache.
On Linux:
ip neigh
Internet Control Message Protocol (ICMP) is used for network control and diagnostic messages.
Tools such as ping commonly use ICMP Echo messages.
Example:
ping 8.8.8.8
ICMP is also used by network protocols and troubleshooting tools.
Transmission Control Protocol (TCP) provides reliable, ordered, connection-oriented transport.
A simplified TCP connection begins with the three-way handshake:
Client Server
SYN -------------------->
<---------------- SYN-ACK
ACK -------------------->
After the connection is established, applications can exchange data.
User Datagram Protocol (UDP) is connectionless.
It provides a lightweight transport mechanism without TCP’s built-in connection management and retransmission.
UDP is widely used for:
Applications choose TCP or UDP depending on their requirements.
A port identifies a transport-layer service endpoint.
Common examples include:
| Port | Common Service |
|---|---|
| 22 | SSH |
| 53 | DNS |
| 80 | HTTP |
| 443 | HTTPS |
| 25 | SMTP |
| 3389 | RDP |
Port numbers alone do not guarantee that a particular service is actually running there.
HTTP is used for web communication.
HTTPS protects HTTP using TLS.
Simplified:
Browser
|
HTTPS
|
Web Server
HTTPS provides cryptographic protections such as confidentiality and integrity when correctly implemented.
Routing determines how packets travel between networks.
Example:
Network A
|
Router 1
|
Router 2
|
Network B
Routers use routing tables.
Example:
Destination Next Hop
10.10.10.0/24 Direct
10.20.0.0/16 192.168.1.2
0.0.0.0/0 ISP
A static route is manually configured.
Example concept:
Destination:
10.20.0.0/16
Next Hop:
192.168.1.2
Static routing is useful for:
Dynamic routing protocols allow routers to exchange routing information.
Examples include:
Dynamic routing is especially useful in larger networks.
Open Shortest Path First (OSPF) is an interior gateway protocol commonly used inside organizations.
It builds a topology database and calculates paths using link-state information.
A simplified topology:
R1
/ \
/ \
R2 ---- R3
\ /
\ /
R4
OSPF can select paths based on configured costs.
Border Gateway Protocol (BGP) is the primary routing protocol used to exchange routing information between autonomous systems on the Internet.
A simplified model:
ISP A
|
|
BGP
|
|
ISP B
BGP is fundamental to global Internet routing.
Switching is the process of forwarding Ethernet frames within a local network.
A switch learns MAC addresses from incoming frames.
Example:
PC A
MAC AA:AA
|
v
Switch
|
MAC Table
|
v
Port 3
The switch then forwards traffic toward the appropriate port.
A Virtual LAN (VLAN) logically separates devices within a switched network.
Example:
Switch
|
+--- VLAN 10 Users
|
+--- VLAN 20 Servers
|
+--- VLAN 30 Management
|
+--- VLAN 40 Guest
VLANs improve:
A trunk can carry traffic for multiple VLANs across a network link.
Example:
Switch A
|
| Trunk
|
Switch B
The link can transport:
VLAN 10
VLAN 20
VLAN 30
IEEE 802.1Q tagging is widely used for VLAN identification on Ethernet trunks.
Segmentation divides a network into security or operational zones.
Example:
Internet
|
DMZ
|
Internal Users
|
Application Servers
|
Database
Access between zones can be controlled using:
Segmentation is a major network-security principle.
NAC determines whether a device should receive network access.
A typical process:
Device
|
Authentication
|
Posture Check
|
Policy
|
+---+---+
| |
Allow Quarantine
Read the CorgiNetwork guide:
Networking and cybersecurity are closely connected.
Important network-security controls include:
See:
Access Control Lists define traffic that should be permitted or denied.
Conceptually:
IF source = 10.10.10.0/24
AND destination = server
AND port = 443
THEN ALLOW
ACLs can be applied to:
Network Address Translation (NAT) modifies addressing information as traffic crosses a network boundary.
A common example:
192.168.1.10
|
v
Router
|
v
Public IP
|
v
Internet
Many private hosts can share one public IPv4 address using forms of NAT such as PAT.
Consider:
Network:
192.168.10.0/24
Gateway:
192.168.10.1
Server:
192.168.10.10
PC:
192.168.10.20
Printer:
192.168.10.30
All these devices belong to the same IPv4 subnet.
Communication can occur directly at Layer 2 when appropriate.
If a host needs to communicate outside its local subnet, it normally sends the packet to its default gateway.
Example:
PC
192.168.10.20
|
v
Gateway
192.168.10.1
|
v
Internet
If the default gateway is incorrect or unavailable, external connectivity may fail.
Protocols define rules for communication.
Important protocols include:
| Protocol | Purpose |
|---|---|
| Ethernet | LAN communication |
| IP | Logical addressing/routing |
| TCP | Reliable transport |
| UDP | Lightweight transport |
| DNS | Name resolution |
| DHCP | Address configuration |
| HTTP | Web communication |
| HTTPS | Secure web communication |
| SSH | Secure remote administration |
| SMTP | Email transfer |
| NTP | Time synchronization |
Understanding protocols is essential for troubleshooting.
Important performance metrics include:
Maximum data-transfer capacity.
Actual amount of data successfully transferred.
Time required for data to travel between endpoints.
Variation in packet delay.
Packets that fail to reach their destination.
A network can have high bandwidth but still perform poorly if latency or packet loss is high.
Suppose a link is:
1 Gbps
That is its nominal capacity.
Actual application throughput might be lower because of:
Therefore:
Bandwidth ≠ actual application speed.
Latency measures delay.
Example:
Client
|
| 20 ms
v
Server
Low latency is especially important for:
Packet loss occurs when packets do not successfully reach their destination.
Possible causes include:
Basic testing:
ping 192.168.1.1
Then:
ping 8.8.8.8
A structured approach is better than random testing.
Use:
Physical
|
Link
|
IP
|
Transport
|
Application
For example:
Cable
|
Interface
|
IP Address
|
Gateway
|
DNS
|
Application
ipconfig
Detailed configuration:
ipconfig /all
Test connectivity:
ping 8.8.8.8
Test DNS:
nslookup example.com
View routes:
route print
Trace a path:
tracert example.com
View interfaces:
ip addr
View routes:
ip route
View neighbors:
ip neigh
Test connectivity:
ping 8.8.8.8
DNS test:
dig example.com
Trace routes:
traceroute example.com
View listening services:
ss -tuln
If an IP address works but a domain does not:
ping 8.8.8.8
|
v
Works
ping example.com
|
X
Fails
DNS becomes a major suspect.
Use:
nslookup example.com
or:
dig example.com
For deeper DNS troubleshooting, see DNS Explained.
Use:
ip route
on Linux or:
route print
on Windows.
Look for:
A missing route can prevent communication even when the physical connection is working.
On Linux, ss can show listening TCP and UDP sockets:
ss -tuln
For authorized testing of a service, tools such as:
nc -vz 192.168.1.10 443
can help determine whether a TCP service is reachable.
Only test systems and services you are authorized to test.
Packet capture is one of the most powerful troubleshooting techniques.
Tools include:
Example:
sudo tcpdump -i eth0
A packet capture can reveal:
Wireshark provides graphical packet analysis.
A simplified workflow:
Capture
|
Filter
|
Inspect
|
Identify Problem
Useful filters include:
dns
tcp
icmp
ip.addr == 192.168.1.10
Use packet capture responsibly and only on networks you are authorized to monitor.
Check:
1. Cable/Wi-Fi
2. Interface
3. IP address
4. Gateway
5. DNS
6. Routing
7. Firewall
Symptoms:
Check:
ipconfig /all
or:
ip addr
Symptoms:
IP connectivity works
Domain resolution fails
Check:
dig example.com
Symptoms:
Local network works
Internet fails
Test:
ping <gateway>
A typical enterprise network may use multiple layers.
Internet
|
Edge Router
|
Firewall
|
Core Network
/ | \
/ | \
DMZ Data Campus
Center
|
Distribution
|
Access
/ | \
PCs APs Phones
Large networks often use hierarchical architectures to improve scalability and management.
A traditional enterprise campus model commonly uses:
Fast, highly available backbone.
Policy, routing, and aggregation.
Connects endpoint devices.
Core
|
+------+------+
| |
Distribution Distribution
| |
Access Access
/ | \ / | \
PC AP Phone PC AP Phone
Modern architectures may use different designs, especially spine-leaf in data centers.
Data centers frequently use spine-leaf architectures.
Spine 1 -------- Spine 2
| \ / |
| \ / |
| \ / |
| \ / |
Leaf 1 Leaf 2 Leaf 3
| | |
Servers Servers Servers
Every leaf connects to multiple spine switches.
This provides predictable paths and scalability.
Critical networks require redundancy.
Examples:
Example:
Internet
/ \
Router A Router B
\ /
\ /
Network
Redundancy reduces single points of failure.
High availability aims to keep services operational when components fail.
Technologies can include:
The exact technology depends on the platform and architecture.
Network administrators monitor:
Common technologies include:
Monitoring allows administrators to identify problems before they become major outages.
Secure network management should use appropriate administrative protocols.
Prefer:
SSH
HTTPS
SNMPv3
Avoid insecure legacy protocols where possible, such as:
Telnet
FTP
HTTP
SNMPv1/v2c
Management interfaces should also be isolated from normal user networks.
A modern enterprise can combine:
Internet
|
Firewall
|
IPS
|
NAC
|
Segmentation
|
Zero Trust
|
EDR
|
SIEM
Each control addresses different risks.
See:
Modern networks increasingly use automation.
Automation can help with:
Technologies include:
A simplified workflow:
Automation System
|
v
Network API
|
v
Router / Switch
|
v
Configuration
Automation should include validation and change-control procedures.
Software-Defined Networking (SDN) separates network control functions from packet-forwarding infrastructure in various architectures.
Conceptually:
Controller
|
+--------+--------+
| | |
Switch Switch Switch
The controller can provide centralized policy and programmability.
SDN concepts are important in modern data centers and cloud environments.
Cloud networks use software-defined infrastructure.
Common concepts include:
Example:
Cloud VPC / VNet
|
+----+----+
| |
Subnet A Subnet B
| |
Servers Database
Cloud networking extends traditional networking concepts into virtualized infrastructure.
Virtualization allows multiple logical networks to share physical infrastructure.
Examples:
A physical network can therefore support multiple logical environments.
VXLAN is an overlay networking technology commonly used in data centers.
Conceptually:
Host A
|
Leaf
|
VXLAN Overlay
|
Leaf
|
Host B
VXLAN can extend Layer 2 segments across Layer 3 infrastructure using VXLAN Network Identifiers (VNIs).
A load balancer distributes traffic among multiple servers.
Clients
|
v
Load Balancer
/ | \
/ | \
Web1 Web2 Web3
Benefits include:
Load balancing can operate at different layers and using different algorithms.
Security monitoring combines multiple data sources:
Firewall
|
IDS/IPS
|
DNS
|
EDR
|
Authentication
|
SIEM
The goal is to identify suspicious behavior and investigate incidents.
For the broader security architecture, see SIEM Explained.
When a network problem occurs:
A structured methodology saves time.
Suppose:
PC can access:
192.168.1.1
But cannot access:
8.8.8.8
Start locally:
ip addr
Check routing:
ip route
Test gateway:
ping 192.168.1.1
Test external IP:
ping 8.8.8.8
If the gateway works but the external destination fails, investigate:
Suppose:
ping 8.8.8.8
Works
ping example.com
Fails
This strongly suggests checking DNS.
Run:
dig example.com
Then inspect:
Networking knowledge is one of the most important foundations for cybersecurity.
A security analyst should understand:
Without networking fundamentals, security alerts can be difficult to interpret.
Cloud engineers need networking knowledge to understand:
Traditional networking principles still apply, even when infrastructure is virtualized.
DevOps engineers interact with networking through:
Networking therefore remains an essential DevOps skill.
Networking knowledge can lead to roles such as:
A strong foundation can be built progressively.
A practical learning path is:
Networking Fundamentals
|
v
TCP/IP
|
v
Ethernet & Switching
|
v
IP Addressing & Subnetting
|
v
Routing
|
v
DNS & DHCP
|
v
VLANs & Segmentation
|
v
Network Security
|
v
Wireless Networking
|
v
Cloud Networking
|
v
Automation
|
v
Network Architecture
Before moving to advanced networking, make sure you understand:
These concepts form the foundation of practical network administration.
A well-designed network should emphasize:
Avoid unnecessary complexity.
Separate systems according to security and operational requirements.
Remove critical single points of failure.
Continuously monitor important infrastructure.
Document:
Use:
Automate repetitive tasks where appropriate.
Computer networking is the process of connecting devices and systems so they can communicate and exchange data.
A LAN is a local area network connecting devices within a limited geographic area.
A WAN connects networks across larger geographic areas.
A router forwards packets between different IP networks.
A switch forwards Ethernet frames within a local network, primarily using MAC addresses.
An IP address is a logical network-layer address associated with a network interface.
A MAC address identifies a network interface at the data-link layer.
DNS translates domain names into information such as IP addresses.
DHCP automatically provides network configuration to clients.
A VLAN logically separates devices or traffic within a switched network.
TCP is a connection-oriented transport protocol providing reliable, ordered delivery.
UDP is a connectionless transport protocol designed for lightweight datagram delivery.
Subnetting divides an IP network into smaller logical networks.
Cybersecurity professionals need networking knowledge to understand traffic, attacks, protocols, firewalls, authentication, segmentation, and network-based threats.
Computer networking is the foundation of modern IT infrastructure.
The most important concepts to remember are:
A useful mental model is:
Devices
|
Ethernet / Wi-Fi
|
Switching
|
IP Addressing
|
Routing
|
TCP / UDP
|
Applications
|
Security
|
Monitoring
Once these fundamentals are understood, advanced subjects such as enterprise architecture, cloud networking, network automation, SD-WAN, BGP, Kubernetes networking, and network security become much easier to learn.
For deeper technical study:
Continue the CorgiNetwork learning path with:
Computer networking is much more than connecting computers with cables or Wi-Fi.
It is a complete ecosystem involving:
Physical connectivity → Ethernet → Switching → IP addressing → Routing → Transport protocols → Applications → Security → Monitoring → Automation
Understanding these layers gives IT professionals the foundation they need to design, troubleshoot, secure, and operate modern infrastructure.
For CorgiNetwork, this article should serve as the pillar page for the Networking category, with future articles linking back to it using specific contextual anchors such as IP addressing, subnetting, VLANs, routing, Ethernet switching, Wi-Fi networking, and network troubleshooting.
Introduction Border Gateway Protocol (BGP) is the routing protocol used to exchange network reachability information…
Introduction A Linux server can experience connection failures even when its network interface is working…
Introduction TCP retransmissions are an important indicator of network reliability and performance. When a Linux…
Open Shortest Path First (OSPF) is a link-state routing protocol widely used in enterprise networks…
Group Policy is one of the most important management features in Windows Server Active Directory…
Windows DNS servers play an essential role in Active Directory environments, allowing computers, servers, applications,…