Skip to content

About

DNS resolver, UDP sockets, and network traffic analysis — Java & Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Computer Networks Projects — Java/Python

A series of networking projects covering DNS resolution, UDP socket programming, and network traffic analysis.

Projects

DNS Resolver (mydnsresolver/mydnsresolver.java)

A command-line DNS resolver written in Java that simulates iterative DNS lookup with a local cache.

How it works:

  • Takes a queries file and a cache file as input
  • Parses the cache into domain-to-IP mappings using a HashMap
  • For each query, walks the DNS hierarchy by progressively loading server map files based on IP octets
  • Returns the resolved IP or reports the domain as unresolvable
  • Handles CNAME chaining and multi-hop resolution
java mydnsresolver <queries_file> <cache_file>

UDP Client/Server (Programming Assignment 2/)

A UDP socket application in Python implementing a basic echo protocol.

  • udp_client.py — sends user-entered strings to a server over UDP and prints the response
  • udp_server.py — receives messages and echoes them back to the client

UDP Pinger (Programming Assignment 3/)

Measures round-trip time (RTT) for UDP packets between a client and server.

  • udp_pinger_client.py — sends timed ping packets and calculates RTT
  • udp_pinger_server.py — responds to pings with optional simulated packet loss

Network Traffic Analysis (Wireshark Labs)

  • Captured and analyzed live traffic to inspect TCP handshakes, HTTP exchanges, and packet structure
  • Designed subnetting and IP addressing schemes using CIDR notation
  • Evaluated DNS resolution behavior, routing decisions, and client-server communication across OSI layers

Tech

  • Languages: Java, Python
  • Tools: Wireshark, socket programming (UDP)
  • Concepts: DNS resolution, UDP, TCP/IP, subnetting, CIDR, OSI model, RTT measurement

About

DNS resolver, UDP sockets, and network traffic analysis — Java & Python

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages