Skip to content

About

CSC10008 Project 1 - Computer Networking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

RTSP / RTP Video Streaming Platform (Monorepo)

Enterprise-grade, low-latency video streaming system powered by RTSP over TCP, RTP over UDP (RFC 1889), HD MTU packet fragmentation, Client-side Jitter Buffering, and a modern React Web Dashboard.

Key Engineering Features

Protocol Separation: Control vs. Media Plane

  • Control Plane (RTSP/TCP): Ensures lossless, sequenced delivery for SETUP, PLAY, PAUSE, and TEARDOWN. Maintains session IDs and auto-increments sequence numbers (CSeq).
  • Data Plane (RTP/UDP): Low-overhead, high-framerate packet streaming. Standard 12-byte header: V=2, P=0, X=0, CC=0, PT=26 (MJPEG).

HD MTU Packet Fragmentation (≤ 1400 Bytes)

Standard Ethernet networks enforce an MTU of 1500 bytes. High-definition frames (720p/1080p) often exceed 100 KB:

  • Server: Chunks frames into $\le 1400$-byte payloads. The last fragment sets Marker Bit = 1.
  • Client Bridge: Reassembles chunks by timestamp and marks completion when Marker = 1.

Client-Side Caching (Jitter Buffer with Pre-buffering)

  • Eliminates playback stutter caused by UDP jitter.
  • Pre-buffers $N = 8$ frames into a bounded, thread-safe queue before rendering begins.

Real-time Telemetry Dashboard

The React frontend calculates and displays live streaming statistics:

  • Frame Rate (FPS): Actual rendered frames per second.
  • Bitrate (kbps): Real-time bandwidth consumption.
  • Packet Loss Rate (%): Sequence gap tracking.
  • Jitter Buffer Status: Visual indicator of buffered frames.

Quick Start with Docker Compose

The entire stack (Java Server, Python Bridge, and React Web UI) launches with a single command:

docker compose up --build

Access Endpoints

About

CSC10008 Project 1 - Computer Networking

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages