Professional Documents
Culture Documents
Networking
Introduction
• The basic connection of IP camera.
• WAN and LAN.
• DNS and DDNS.
• How to select bandwidth size.
• Dual stream and single stream.
IP Camera basic connection
Prepare an IP camera, a PC with NVR and an
Ethernet cable.
Plug the Ethernet cable into the Ethernet port of
IP camera and PC.
NVR
IP Camera Ethernet Cable
PC
IP Address Setting
• Set the IP address of PC to follow the IP range of camera.
• You can open the Web Interface of this camera.
• For example,
if the default IP address of camera is 192.168.0.100.
The PC’s IP address can be set 192.168.0.20.
IP Camera
PC
PC
Local Area Network
• In this area, devices can’t access to internet Independently
however they can connect to each other. This area we called
“Local Area Network(LAN)”
• The IP addresses of devices in LAN are called “Private IP”.
NVR Server
LAN Internet
Router
NVR Server Client
Wide Area Network (WAN)
• The IP addresses for Internet can access Internet are called “Public IP”.
• This area we called “Wide Area Network (WAN)”.
• Apply to your local ISP to get public IP
– Static IP Address
– PPPoE (Dynamic IP)
IP Camera
Private IP Public IP
Internet
LAN Router
WAN
NVR Server
Remote clients in WAN
• If clients in WAN wants to get video stream, how can clients send
the request to IP camera and get video stream because of private IP
is invisible in Internet?
• We can use “Port Mapping ” to let remote clients know where
camera is.
IP Camera
Video Stream
Request
Client
Internet
LAN Router
WAN Client
NVR Server
Port Mapping
1. Setup the port mapping table in router, ex: Port 101 = 192.168.1.3
(camera’s IP). That means as long as the request comes from port 101 into
router, router will forward this request to the specified IP address.
2. While client types “http://public IP: port” in browser, ex 101.58.32.95:
101. It can find the router via this public IP and access to the camera via
port mapping table.
Port IP Address
101 192.168.1.3
102 192.168.1.4
103 192.168.1.5 192.168.1.3
Connect to 101.58.32.95: 101
104 192.168.1.6
192.168.1.4
192.168.1.1
Internet 192.168.1.5
Public IP:
Router
101.58.32.95
Client 192.168.1.6
Easy to search in Internet
• Even remote clients can connect to IP cameras via router
with public IP address, however the IP address is too
hard to remember, instead of using friendly Domain name
to access.
• DNS (Domain Name System) and DDNS (Dynamic
Domain Name System)
DNS (Domain Name System)
• A naming system mapping with Static IP Address for computers,
services, or any resource connected to the Internet.
• User needs to has a domain name and apply the mapping with the
public IP of router to DNS server.
• While client types the domain in browser, it will search the
mapping IP address in DNS server and link to the router.
Camera Internet
Internet
Camera
1 2 Client
Internet
IP Cameras
NVR Server
Client
Camera 1
Camera3 3 Mbps
NVR Server
Total Bandwidth 9.5 Mbps
Camera 3
Bandwidth from NVR server to NVR Workstation
1. How many remote clients will connect with NVR server?
2. How many cameras do remote clients want to see simultaneously?
3. What is the bit rate of these cameras?
4. Calculate the result
Client
Internet
NVR Server
Live view/
Client
Playback
Dual Stream
VGA resolution
Small scale
Dual Stream
The camera can send out two streams to NVR, one of them for live view and
another for recording purpose.
Media 1: with the maximum resolution and quality using H.264 that will be
directly stored on the server side without requiring much CPU power.
Media 2: with MJPEG in VGA resolution as a source for live view and saving
bandwidth from NVR server to workstation.
The quality of the stored video is highly important – should any details be missed
during live view, they can easily be found during high quality playback.
• Single stream:
- Efficient the calculating power of camera.
Storage
Dual Stream