Skip to content

frankarmah-tech/networking-notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 

Repository files navigation

🌐 Networking Notes β€” Fundamentals, Protocols & Real-World Concepts

A practical networking reference guide covering core concepts, protocols, configurations, and troubleshooting β€” by Frank Armah, HCIA Datacom Certified (Huawei Technologies).


πŸ‘‹ About This Repository

This repo documents my networking knowledge from academic study, hands-on experience at the Electricity Company of Ghana (ECG), and my Huawei HCIA Datacom certification. It covers:

  • βœ… Core networking concepts and the OSI model
  • βœ… IP addressing and subnetting
  • βœ… Key protocols explained simply
  • βœ… Network devices and their roles
  • βœ… Routing and switching fundamentals
  • βœ… Troubleshooting techniques
  • βœ… Real-world scenarios from IT practice

πŸ“œ Certification

Certificate Issuer
πŸ… HCIA Datacom β€” Huawei Certified ICT Associate (Data Communications) Huawei Technologies

πŸ“š Table of Contents

  1. The OSI Model
  2. TCP/IP Model
  3. IP Addressing & Subnetting
  4. Key Networking Protocols
  5. Network Devices
  6. Routing Fundamentals
  7. Switching Fundamentals
  8. Wireless Networking
  9. Troubleshooting
  10. Real-World Scenarios
  11. Quick Reference Commands
  12. Resources

🧱 The OSI Model

The Open Systems Interconnection (OSI) model is the foundation of networking β€” it describes how data travels from one device to another across a network.

Layer Name Function Example Protocols/Devices
7 Application Interface for end-user applications HTTP, HTTPS, FTP, DNS, SMTP
6 Presentation Data formatting, encryption, compression SSL/TLS, JPEG, MP4
5 Session Manages sessions between applications NetBIOS, RPC
4 Transport End-to-end delivery, error checking TCP, UDP
3 Network Logical addressing and routing IP, ICMP, Routers
2 Data Link Physical addressing (MAC), framing Ethernet, Switches, MAC
1 Physical Raw bit transmission over media Cables, Hubs, Wi-Fi signals

πŸ’‘ Memory tip: "All People Seem To Need Data Processing" (Layer 7 to 1)


πŸ”— TCP/IP Model

The practical model used in real-world internet communications:

TCP/IP Layer Corresponds to OSI Layers Protocols
Application 5, 6, 7 HTTP, DNS, SMTP, FTP
Transport 4 TCP, UDP
Internet 3 IP, ICMP, ARP
Network Access 1, 2 Ethernet, Wi-Fi

TCP vs UDP

Feature TCP UDP
Connection Connection-oriented Connectionless
Reliability Guaranteed delivery No guarantee
Speed Slower Faster
Use case Web browsing, email, file transfer Streaming, gaming, VoIP

πŸ“ IP Addressing & Subnetting

IPv4 Address Classes

Class Range Default Subnet Mask Use
A 1.0.0.0 – 126.255.255.255 255.0.0.0 /8 Large networks
B 128.0.0.0 – 191.255.255.255 255.255.0.0 /16 Medium networks
C 192.0.0.0 – 223.255.255.255 255.255.255.0 /24 Small networks

Private IP Ranges (Not routable on internet)

Range Class
10.0.0.0 – 10.255.255.255 A
172.16.0.0 – 172.31.255.255 B
192.168.0.0 – 192.168.255.255 C

Subnetting Basics

Subnetting divides a large network into smaller, manageable sub-networks.

Example:

Network:     192.168.1.0/24
Subnet Mask: 255.255.255.0
Total Hosts: 254 usable hosts

Subnet into /26 (4 subnets):
Subnet 1: 192.168.1.0   – 192.168.1.63   (62 hosts)
Subnet 2: 192.168.1.64  – 192.168.1.127  (62 hosts)
Subnet 3: 192.168.1.128 – 192.168.1.191  (62 hosts)
Subnet 4: 192.168.1.192 – 192.168.1.255  (62 hosts)

IPv6 Basics

  • 128-bit address (vs 32-bit IPv4)
  • Written in hexadecimal: 2001:0db8:85a3:0000:0000:8a2e:0370:7334
  • Virtually unlimited addresses
  • Built-in security (IPSec)

πŸ“‘ Key Networking Protocols

Protocol Port Layer Purpose
HTTP 80 Application Web browsing (unencrypted)
HTTPS 443 Application Secure web browsing
FTP 21 Application File transfer
SFTP 22 Application Secure file transfer
SSH 22 Application Secure remote access
Telnet 23 Application Remote access (insecure)
DNS 53 Application Domain name to IP resolution
DHCP 67/68 Application Automatic IP assignment
SMTP 25 Application Sending email
SNMP 161 Application Network device monitoring
ICMP β€” Network Ping, error messages
ARP β€” Data Link IP to MAC address resolution

πŸ–₯️ Network Devices

Hub

  • Operates at Layer 1 (Physical)
  • Broadcasts data to all connected devices
  • ⚠️ Outdated β€” causes collisions and security issues
  • Replaced by switches

Switch

  • Operates at Layer 2 (Data Link)
  • Uses MAC addresses to send data only to the intended device
  • Creates separate collision domains
  • More efficient and secure than hubs

Router

  • Operates at Layer 3 (Network)
  • Connects different networks together
  • Uses IP addresses to forward packets
  • Makes routing decisions based on routing tables

Access Point (AP)

  • Provides wireless connectivity to a wired network
  • Extends LAN wirelessly
  • Uses Wi-Fi standards (802.11a/b/g/n/ac/ax)

Firewall

  • Monitors and filters incoming/outgoing network traffic
  • Enforces security policies
  • Can be hardware or software based

Modem

  • Converts digital signals to analogue and back
  • Connects local network to the internet via ISP

πŸ—ΊοΈ Routing Fundamentals

Static vs Dynamic Routing

Feature Static Routing Dynamic Routing
Configuration Manual Automatic
Adaptability Does not adapt to changes Adapts to network changes
Best for Small, simple networks Large, complex networks
Protocols None OSPF, RIP, EIGRP, BGP

Common Routing Protocols

Protocol Type Use Case
RIP Distance Vector Small networks, simple setups
OSPF Link State Large enterprise networks
EIGRP Hybrid Cisco networks
BGP Path Vector Internet routing between ISPs

πŸ”„ Switching Fundamentals

VLANs (Virtual Local Area Networks)

Logically segments a network without needing separate physical infrastructure.

Benefits:

  • Improved security (isolates departments)
  • Reduced broadcast traffic
  • Better network management

Example:

VLAN 10 β†’ IT Department
VLAN 20 β†’ Finance Department
VLAN 30 β†’ Operations Department

Spanning Tree Protocol (STP)

Prevents network loops in switched networks by blocking redundant paths.

MAC Address Table

Switches learn and store MAC addresses to know which port to send data to.


πŸ“Ά Wireless Networking

Wi-Fi Standards

Standard Frequency Max Speed Range
802.11b 2.4 GHz 11 Mbps Medium
802.11g 2.4 GHz 54 Mbps Medium
802.11n 2.4/5 GHz 600 Mbps Good
802.11ac 5 GHz 3.5 Gbps Good
802.11ax (Wi-Fi 6) 2.4/5/6 GHz 9.6 Gbps Excellent

Wireless Security

Protocol Security Level Notes
WEP ❌ Very Weak Outdated β€” never use
WPA ⚠️ Weak Avoid if possible
WPA2 βœ… Strong Current standard
WPA3 βœ…βœ… Strongest Latest β€” use when available

πŸ”§ Troubleshooting

Step-by-Step Troubleshooting Approach

Step 1 β†’ IDENTIFY the problem
         "What is not working? Since when?"

Step 2 β†’ ESTABLISH a theory
         "What could be causing this?"

Step 3 β†’ TEST the theory
         "Ping, traceroute, check cables/connections"

Step 4 β†’ IMPLEMENT the fix
         "Apply the solution"

Step 5 β†’ VERIFY
         "Confirm the issue is resolved"

Step 6 β†’ DOCUMENT
         "Record what happened and how it was fixed"

Common Troubleshooting Commands

# Test connectivity
ping 8.8.8.8

# Trace the route packets take
traceroute google.com          # Linux/Mac
tracert google.com             # Windows

# Check IP configuration
ipconfig                       # Windows
ifconfig                       # Linux/Mac
ip addr                        # Linux

# DNS lookup
nslookup google.com
dig google.com

# Check open ports and connections
netstat -an

# Scan network for devices
nmap -sn 192.168.1.0/24

# Check ARP table
arp -a

# Release and renew IP (Windows)
ipconfig /release
ipconfig /renew

# Flush DNS cache
ipconfig /flushdns             # Windows
sudo systemd-resolve --flush-caches  # Linux

Common Network Problems & Solutions

Problem Possible Cause Solution
No internet connection IP conflict, DNS issue, cable Check IP, flush DNS, reseat cable
Slow network Bandwidth congestion, interference QoS, change Wi-Fi channel
Cannot reach specific site DNS failure Change DNS to 8.8.8.8
IP conflict Two devices same IP Check DHCP, assign static IP
Packet loss Cable issue, overloaded link Test cable, check utilisation
Wi-Fi drops frequently Interference, weak signal Change channel, move AP

🌍 Real-World Scenarios

Scenario 1 β€” Branch Office Connectivity Loss

Situation: Staff at an ECG branch office cannot access the central system.

Troubleshooting steps:

  1. Ping the branch router from central β€” no response
  2. Check physical connections at the branch
  3. Check if the router has power and is operational
  4. Verify WAN link status on the router
  5. Check routing table for correct routes
  6. Contact ISP if WAN link is down

Resolution: WAN cable had come loose β€” reseated cable restored connectivity.


Scenario 2 β€” Slow Network During Peak Hours

Situation: Network becomes very slow between 9am–12pm when all staff are working.

Investigation:

  1. Monitor bandwidth utilisation β€” shows 95%+ usage
  2. Identify top bandwidth consumers using network monitoring tool
  3. Discover large file downloads consuming bandwidth

Resolution: Implemented Quality of Service (QoS) to prioritise business-critical traffic over downloads.


Scenario 3 β€” New Device Cannot Get IP Address

Situation: A new workstation cannot connect to the network β€” showing "Limited Connectivity".

Troubleshooting:

  1. Check if DHCP server is reachable
  2. Run ipconfig /release then ipconfig /renew
  3. Check DHCP server has available IP addresses in pool
  4. Check VLAN assignment on the switch port

Resolution: DHCP pool was exhausted β€” expanded the IP range on the DHCP server.


πŸ“‹ Quick Reference Commands

Huawei CLI (HCIA Datacom)

# Enter system view
system-view

# Display device info
display version

# Display interface status
display interface brief

# Display routing table
display ip routing-table

# Configure IP on interface
interface GigabitEthernet0/0/0
ip address 192.168.1.1 255.255.255.0

# Save configuration
save

πŸ“– Resources


🀝 Connect With Me

LinkedIn GitHub Portfolio Email


⭐ If you find this useful, feel free to star the repo!

β€” Frank Armah | IT Professional | Ghana πŸ‡¬πŸ‡­

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors