Skip to content

About

Computer Networks course work: lectures, labs with C socket programming, Packet Tracer routing (static, OSPF, EIGRP, BGP), subnetting/VLSM, DHCP/NAT, VLAN/ACL, Wireshark and notes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Computer Networks

Computer Networks · FAST-NUCES · BS Computer Science

My Computer Networks course work – lectures, labs with C socket programming, Packet Tracer routing (static, OSPF, EIGRP, BGP), subnetting and VLSM, DHCP and NAT, VLAN and ACL, Wireshark, assignments and notes.

Course: Computer Networks FAST-NUCES BS CS Labs: C Sockets, Packet Tracer Topics: Subnetting, OSPF, BGP Release Website


Live Links

What Link
Repository https://github.com/rohaan2802/Computer_Networks
Website (GitHub Pages) https://rohaan2802.github.io/Computer_Networks/
Download whole repository (ZIP) https://github.com/rohaan2802/Computer_Networks/archive/refs/heads/main.zip
Releases page https://github.com/rohaan2802/Computer_Networks/releases
Release v1.0 – Large Files https://github.com/rohaan2802/Computer_Networks/releases/tag/v1.0

Table of Contents


Course Overview

Computer Networks at FAST-NUCES Islamabad. The repository has 16 weeks of lecture slides, 15 labs with my C socket programs and Packet Tracer files, three assignments, the CNET project, sessional exams, quizzes, the Kurose and Ross textbook and my study notes.

Topics Covered

Unit Topics
Unit 1 – Application layer Network edge and core, delay and throughput, HTTP, DNS, email, P2P and sockets.
Unit 2 – Transport layer UDP, checksums, reliable data transfer, Go-Back-N, Selective Repeat, TCP and congestion control.
Unit 3 – Network layer IP addressing, subnetting and VLSM, DHCP, NAT, IPv6, routing algorithms, OSPF and BGP.
Unit 4 – Link layer and labs Ethernet, ARP, VLANs and 15 labs: C socket programming, Packet Tracer routing, Wireshark.

Repository at a Glance

Item Count
Lecture decks (Weeks 1–16) 14
Labs 15
Slide decks (PPTX) 14
Word documents 24
C source files 14
Packet Tracer files (.pkt) 8
Study notes (Markdown) 14
PDF documents 27
Screenshots 30
Files in total 128

Lectures

Week Topic Covers
01 Introduction What the Internet is, network edge, access networks and physical media
02 Network core and performance Packet vs circuit switching, Internet structure, delay, loss, throughput, security and layering
03 Application layer and HTTP Client-server and P2P, sockets, HTTP, cookies and web caching
04 FTP, email and DNS FTP, SMTP, POP3 and IMAP, and the Domain Name System
05 P2P, video streaming and CDNs Peer-to-peer file distribution, BitTorrent, DASH streaming and content networks
06 Transport layer and UDP Multiplexing, demultiplexing, UDP and the Internet checksum
07 Reliable data transfer rdt 1.0 to 3.0, stop-and-wait, pipelining, Go-Back-N and Selective Repeat
08 TCP TCP segment structure, RTT and timeout, reliable transfer, flow control and connection management
09-10 Congestion control Causes of congestion, AIMD, slow start, CUBIC, ECN, fairness and QUIC
11 Network layer: data plane Router architecture, longest prefix matching, switching fabrics and scheduling
12-13 IP, DHCP, NAT and IPv6 IP datagrams, subnets and CIDR, DHCP, NAT, IPv6 and generalised forwarding
14 Routing algorithms Link-state (Dijkstra) and distance-vector (Bellman-Ford) routing
15 OSPF, BGP and SDN Intra- and inter-AS routing, OSPF, BGP, SDN, OpenFlow and ICMP
16 Link layer Error detection, multiple access, ARP, Ethernet, switches and VLANs

Labs

Lab Topic Contents
01 Introduction to networking and Packet Tracer Lab manual
02 Protocol layers, wireless, ping and traceroute Manual, my report, Packet Tracer files and screenshots
03 Capturing HTTP and HTTPS with Wireshark Manual, my report and HTML test pages
04 DNS and email server in Packet Tracer Lab manual
05 TCP socket programming in C Manual, task and my client/server code
06 UDP socket programming in C Manual, task and my largest-number and palindrome programs
07 Concurrent servers fork and thread servers and my client/server code
08 Static routing in Packet Tracer Manual, task and my .pkt file
09 Digital transmission and subnetting Wireshark manual, subnetting and VLSM practice and my solution
10 Routing configuration Manual, task, my report and .pkt file
11 OSPF and EIGRP Manual, task, my report and .pkt file
12 VLSM VLSM manual, my report and .pkt file
13 DHCP and NAT Manual, my report and .pkt file
14 VLAN and ACL Manual, task, my report and .pkt file
15 BGP simulation Manual and my report

Assignments, Project and Exams

Item Folder Contents
A Assignments Assignment 1 to 3 statements and my solutions
P CNET project Project description, rubric, IP address plan and topology
M Sessional exams Sessional I and II papers with solutions
Q Quizzes and class tasks Quiz archives and class tasks with solutions

Books and Notes

Folder Contents
Study notes My notes on bandwidth, delay and throughput, checksums, GBN and SR, subnetting and VLSM, web caching, security and more, plus a cheat sheet
Textbook Kurose and Ross, Computer Networking: A Top-Down Approach, 8th ed.

Large Files (Release Downloads)

GitHub does not allow files bigger than 100 MB inside a repository, so one file is attached to the v1.0 release instead:

File Size Belongs in Contents
Lab3_Solution_3.pcapng 502.7 MB Computer Networks Lab/Lab #03 Wireshark capture for Lab 3 (HTTP and HTTPS), also used in Assignment 1

Every other file is in the repository. The biggest one is the Kurose and Ross textbook PDF (20.5 MB).

Folder Structure

Computer_Networks/
├── Computer Networks Course/
│   ├── Assignments/                      (12 files)
│   ├── Books/                            (1 file)
│   ├── CNET_PROJECT/                     (4 files)
│   ├── Lecture #01/                      (1 file)
│   ├── Lecture #02/                      (1 file)
│   ├── Lecture #03/                      (1 file)
│   ├── Lecture #04/                      (1 file)
│   ├── Lecture #05/                      (1 file)
│   ├── Lecture #06/                      (1 file)
│   ├── Lecture #07/                      (1 file)
│   ├── Lecture #08/                      (1 file)
│   ├── Lecture #09-10/                   (1 file)
│   ├── Lecture #11/                      (1 file)
│   ├── Lecture #12-13/                   (1 file)
│   ├── Lecture #14/                      (1 file)
│   ├── Lecture #15/                      (1 file)
│   ├── Lecture #16/                      (1 file)
│   ├── Mids/                             (4 files)
│   ├── Notes/                            (18 files)
│   └── Quizes/                           (5 files)
├── Computer Networks Lab/
│   ├── Lab #01/                          (1 file)
│   ├── Lab #02/                          (14 files)
│   ├── Lab #03/                          (4 files)
│   ├── Lab #04/                          (1 file)
│   ├── Lab #05/                          (6 files)
│   ├── Lab #06/                          (6 files)
│   ├── Lab #07/                          (9 files)
│   ├── Lab #08/                          (4 files)
│   ├── Lab #09/                          (5 files)
│   ├── Lab #10/                          (4 files)
│   ├── Lab #11/                          (4 files)
│   ├── Lab #12/                          (3 files)
│   ├── Lab #13/                          (3 files)
│   ├── Lab #14/                          (4 files)
│   └── Lab #15/                          (2 files)
├── assets/
│   ├── screenshots/   30 images
│   ├── thumbs/        gallery previews
│   └── css/  js/      website
├── index.html
├── .gitattributes
├── .gitignore
├── .nojekyll
├── LICENSE
└── README.md

Screenshots

1. Repository Folder Structure

Repository Folder Structure

2. Lab 5 – TCP Server in C (socket, bind, listen, accept)

Lab 5 – TCP Server in C (socket, bind, listen, accept)

3. Lab 5 – TCP Client in C (connect, send, recv)

Lab 5 – TCP Client in C (connect, send, recv)

4. Lab 6 – UDP Server: Largest Number (recvfrom/sendto)

Lab 6 – UDP Server: Largest Number (recvfrom/sendto)

5. Lab 6 – UDP Client: Palindrome Check

Lab 6 – UDP Client: Palindrome Check

6. Lab 7 – Concurrent Server with fork()

Lab 7 – Concurrent Server with fork()

7. Lab 7 – Concurrent Server with pthreads

Lab 7 – Concurrent Server with pthreads

8. Lab 8 – Static Routing Topology in Packet Tracer

Lab 8 – Static Routing Topology in Packet Tracer

9. Lab 10 – Router Configuration and Routing Table

Lab 10 – Router Configuration and Routing Table

10. Lab 11 – OSPF Topology (Multiple Areas)

Lab 11 – OSPF Topology (Multiple Areas)

11. Lab 11 – EIGRP Topology and Verification

Lab 11 – EIGRP Topology and Verification

12. Lab 12 – VLSM Network in Packet Tracer

Lab 12 – VLSM Network in Packet Tracer

13. Lab 13 – DHCP and NAT Topology

Lab 13 – DHCP and NAT Topology

14. Lab 14 – VLAN and ACL Topologies

Lab 14 – VLAN and ACL Topologies

15. Lab 15 – BGP Between Autonomous Systems

Lab 15 – BGP Between Autonomous Systems

16. Lab 2 – Ping and Traceroute in Packet Tracer

Lab 2 – Ping and Traceroute in Packet Tracer

17. Lab 4 – DNS and Email Server Topology

Lab 4 – DNS and Email Server Topology

18. Lab 3 – Capturing HTTP with Wireshark

Lab 3 – Capturing HTTP with Wireshark

19. Lab 9 – Subnetting Worked Solution

Lab 9 – Subnetting Worked Solution

20. VLSM Tree Method – Address Allocation

VLSM Tree Method – Address Allocation

21. Lab 12 – VLSM Addressing Table

Lab 12 – VLSM Addressing Table

22. CNET Project – Network Topology

CNET Project – Network Topology

23. Week 2 – How Packet Delay and Loss Occur

Week 2 – How Packet Delay and Loss Occur

24. Week 3 – Access Link Utilisation and Delay with a Web Cache

Week 3 – Access Link Utilisation and Delay with a Web Cache

25. Week 4 – DNS Iterated Query

Week 4 – DNS Iterated Query

26. Week 6 – Internet Checksum Example

Week 6 – Internet Checksum Example

27. Week 7 – Go-Back-N in Action

Week 7 – Go-Back-N in Action

28. Week 9-10 – TCP Slow Start

Week 9-10 – TCP Slow Start

29. Week 12-13 – NAT Translation Table

Week 12-13 – NAT Translation Table

30. Week 15 – eBGP and iBGP Connections

Week 15 – eBGP and iBGP Connections

Using the Files

git clone https://github.com/rohaan2802/Computer_Networks.git
cd Computer_Networks
  • Lectures are PowerPoint (.pptx) files; lab manuals, reports, assignments and exams are PDF and Word (.docx) files.
  • Lab code is C for Linux: compile with gcc server.c -o server (add -lpthread for the thread server), run the server, then the client.
  • .pkt files open in Cisco Packet Tracer; .pcapng captures open in Wireshark.
  • The study notes in Notes are Markdown and read directly on GitHub.
  • You can also download everything as a ZIP from the Live Links table.

License

Lecture slides, lab manuals, assignment and exam papers, project statements and the textbook belong to their instructors at FAST-NUCES and to their authors and publishers. They are shared here only for learning and revision. My own solutions, notes, code and the way this repository is organised are free to use for study. See LICENSE.

Author

Mohammad Rohaan – BS Computer Science, FAST-NUCES

If this helped you with Computer Networks, a ⭐ on the repository is appreciated.

About

Computer Networks course work: lectures, labs with C socket programming, Packet Tracer routing (static, OSPF, EIGRP, BGP), subnetting/VLSM, DHCP/NAT, VLAN/ACL, Wireshark and notes.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages