← Back to Library
NetworkingBeginner9 min readJul 30, 2026By Tech-ikigai Instructors
Tech-ikigai · networking notes

How CCTV actually works

From the camera's eye to your phone, explained the way a network engineer sees it — including what happens at the packet level.

1. Two camera species

ANALOG

Camera → coax cable → DVR. The camera is dumb — it just pushes a raw video signal. The DVR does all the digitizing, compressing, and storing.

IP

Camera → PoE cable → NVR. The camera is its own tiny computer — it compresses its own video and sends it as network packets. One cable carries power and data.

2. The wiring, end to end

📷
Camera
📼
DVR / NVR
📡
Router (NAT)
🌐
Internet
📱
Your phone

Everything before the router is your private network. Everything after it is where NAT, DDNS, and VPNs come in.

3. Three ways to reach it remotely

MethodHow it worksTradeoff
Port forward + DDNSRouter forwards a port (554/8000) straight to the DVR; DDNS keeps a hostname pointed at your changing public IPSimple but exposes a port directly to the internet — the classic hack vector
P2P cloud relayDVR and phone both connect outbound to the vendor's cloud; cloud does NAT hole-punching to link themZero setup (scan a QR code), but your video may transit the vendor's servers
VPNPhone joins a VPN tunnel first, then talks to the DVR on its private IP as if it were on the LANNo port ever exposed — the recommended approach for office deployments

4. Packet-level journey

Here is what actually happens to one packet of video as it leaves the camera and reaches your phone.

IP

1. Camera captures a frame

Sensor → H.264/H.265 encoder
Frame chopped into RTP packets
src 192.168.1.50:554 (camera)
dst 192.168.1.10:554 (NVR)
ETH

2. Packet crosses the LAN

Ethernet frame, same subnet
No routing needed yet
src MAC: camera → dst MAC: NVR
OUT

3. NVR sends it toward you

NVR opens an outbound connection
src 192.168.1.10:51000
dst = cloud relay or VPN server
NAT

4. Router does NAT/PAT

Private src rewritten to public IP
192.168.1.10:51000
→ 103.21.x.x:61234
Router remembers this mapping
NET

5. Hops across the internet, then unwraps at your phone

Passes several ISP routers, dst IP read at each hop
Cloud/VPN reverses the NAT or unwraps the tunnel
Phone decodes RTP → H.264 → video on screen

5. One habit that prevents most incidents

Never port-forward the DVR/NVR's admin interface directly onto the internet. VPN-first, or a P2P cloud app with strong unique passwords and current firmware — that single decision is the difference between a CCTV system and a public invitation.

Tech-ikigai — networking curriculum notes.
Share

Comments (0)

0/800
  • Be the first to comment.