LW IT Solutions
« Blog Overview /CCTV/Tutorials / Storage and Bandwidth Engineering for Enterprise CCTV...
Read this article in other languages:

Storage and Bandwidth Engineering for Enterprise CCTV Networks

Part 1 of 2 in the series Video surveillance on your own hardware

Storage and Bandwidth Engineering for Enterprise CCTV Networks
Contents
  1. 1. Codec Optimization: H.265/HEVC & Smart Bitrate Control
  2. 2. Mathematical Storage Capacity Sizing
  3. 3. Step-by-Step Storage Array & Network Infrastructure Setup
  4. 4. Summary & Architectural Value
  5. Questions and answers
  6. Sources

Deploying high-density 4K IP camera networks requires rigorous mathematical sizing of bandwidth throughput and disk storage arrays. A single unoptimized 8-megapixel (4K) stream can easily consume 15 to 20 Mbps of continuous network bandwidth, rapidly congesting standard gigabit switches and exhausting enterprise storage arrays within days. Establishing a resilient CCTV infrastructure capable of maintaining redundant 30-day video retention without packet loss mandates advanced video codec tuning, dedicated VLAN isolation, and fault-tolerant RAID topologies engineered specifically for continuous 24/7 sequential write workloads.

1. Codec Optimization: H.265/HEVC & Smart Bitrate Control

Selecting the correct compression codec and bitrate control strategy is critical to reducing network load and storage ingestion rates:

  • H.265 (HEVC) vs. H.264: Migrating from H.264 to H.265 reduces bitrate requirements by roughly 40% to 50% at identical perceptual image quality. For 4K streams at 15 frames per second (FPS), H.265 allows target bitrates to be lowered from 12 Mbps down to 6 Mbps.
  • Smart Codecs (H.265+ / Zipstream): Vendor-specific dynamic Group of Pictures (GOP) algorithms increase intra-frame intervals during periods of static background scenes, dropping bitrate consumption by up to 70% without sacrificing detail when motion occurs.
  • Variable Bitrate (VBR) with Caps: Constant Bitrate (CBR) wastes bandwidth during inactive night hours. Configuring VBR with an upper bitrate cap (e.g., maximum 8 Mbps per 4K stream) prevents sudden network spikes during complex, high-motion events.
Storage calculation for CCTV: codec comparison, daily volume per camera and the extrapolation to the array size
The array size follows from three numbers: bitrate, retention and camera count. The codec choice moves the first one — and with it everything downstream.

2. Mathematical Storage Capacity Sizing

Calculating raw storage requirements requires applying a precise mathematical formula across all active camera feeds:

Storage (Gigabytes) = [Bitrate (Mbps) × 3600 seconds × 24 hours × Days] / (8 bits × 1000)

For an enterprise installation of 16 cameras recording in 4K at an average VBR of 6 Mbps over a retention period of 30 days:

  • Single Camera Daily Ingestion: (6 Mbps × 3600 × 24) / 8000 = 64.8 GB / day
  • 16-Camera 30-Day Raw Demand: 64.8 GB × 16 × 30 = 31,104 GB (~31.10 TB)
  • RAID & Formatting Overhead Buffer: Adding a mandatory 20% overhead buffer for filesystem structures and RAID parity requires a usable net capacity of at least 37.3 TB.

3. Step-by-Step Storage Array & Network Infrastructure Setup

To eliminate frame drops, stuttering recordings, and hardware wear, storage arrays and network switching backplanes must be provisioned according to strict engineering standards:

  1. Surveillance-Grade Hard Drive Selection: Conventional desktop hard drives fail rapidly under continuous 24/7 write cycles. Deploy only dedicated surveillance drives (e.g., WD Purple Pro or Seagate SkyHawk AI) equipped with AllFrame/ImagePerfect firmware and rotational vibration (RV) sensors.
  2. Fault-Tolerant RAID Topology: For arrays exceeding 24 TB, avoid RAID 5 due to long rebuild times and URE (Unrecoverable Read Error) risks. Implement RAID 6 (dual-drive parity) or RAID 10 (striped mirrors) across six 10 TB surveillance HDDs to ensure zero data loss during disk rebuilding.
  3. Network VLAN & MTU Optimization: Isolate all IP cameras within a dedicated, non-routed VLAN (e.g., VLAN 40 - Surveillance) to block broadcast storms from enterprise office networks. Ensure Power over Ethernet (PoE+) switches feature a non-blocking backplane switching capacity of at least 50 Gbps.
  4. Jumbo Frames Configuration: Enable 9000-byte Jumbo Frames on switch ports connecting the NVR server and primary aggregation switches to reduce CPU packet-processing overhead by up to 80%.

4. Summary & Architectural Value

What this tutorial achieves: The design and deployment of a mathematically verified, high-capacity CCTV storage and bandwidth infrastructure capable of sustaining 30 days of redundant 4K video recording across enterprise camera networks.

Resulting value: Network congestion, dropped frames, and packet loss are eliminated through H.265+ codec tuning and dedicated VLAN isolation. Implementing fault-tolerant RAID 6/10 arrays with surveillance-grade drives guarantees zero data loss during hardware failures, ensures compliance with statutory 30-day evidence retention mandates, and prevents expensive storage over-provisioning.

Questions and answers

Are six 10 TB drives enough for the 37.3 TB, and how do RAID 6 and RAID 10 differ here?

With RAID 6, yes; with RAID 10, no. RAID 6 uses the capacity of two drives for parity and provides 40 TB from six 10 TB drives. RAID 10 mirrors every drive and provides only 30 TB from the same six, 7.3 TB less than the calculation requires; 37.3 TB takes eight drives, which then give 40 TB.

The two also behave differently when a drive fails:

  • RAID 6 survives the failure of any two drives. During a rebuild, all remaining drives are read and the missing data is recalculated from the parity.
  • RAID 10 survives the failure of one drive per mirror pair, but is lost as soon as both drives of the same pair fail. A rebuild only copies the partner drive, which is faster and puts no load on the other drives.

What matters most for recording is that the rebuild happens during operation: the cameras keep writing while the drives are read on top of that, and every hour of rebuilding is an hour with reduced redundancy. The extra work of dual parity on writes weighs less with the largely sequential writes of a recording than with random access.

Which bitrate belongs in the calculation, the average or the cap?

Both, but in different places. Storage is governed by the average, because the drives fill up with what arrives on average over days; that is why the article calculates with 6 Mbps. The network is governed by the cap, because peaks often come at all cameras at once: rain, snow or the switch to night mode at dusk affect every camera at the same time. Sixteen cameras with a cap of 8 Mbps add up to as much as 128 Mbps on the link to the NVR server, against 96 Mbps on average.

The average, however, is an assumption until it has been measured. If it turns out to be 8 rather than 6 Mbps in operation, the same storage lasts 22.5 days instead of 30. Most recorders then overwrite the oldest footage, and the error only becomes apparent when a recording from the beginning of the month is needed. After the first week of operation it is therefore worth checking how much storage a day actually takes up.

How much does recording only on motion save?

The share of time without motion, and that is hard to predict before operation. The formula assumes 24 hours a day; with motion recording the requirement falls in the same proportion, but foliage, rain or the headlights of passing cars can multiply the share with motion on individual days. The safer course is to size the storage for continuous recording and treat the savings as a reserve.

What needs attention when enabling Jumbo Frames?

That the frame size matches along the whole path: every switch port in between and the network cards at both ends have to accept frames of that size. A port with a smaller MTU drops larger frames without the sender learning about it. The treacherous part is that small packets get through, so connections can be established, and only the large transfers that follow hang.

Whether the whole path fits can be shown by a ping with the DF bit set, which forbids fragmentation, and a matching size, on Linux for example ping -M do -s 8972 to the target: 8972 bytes of payload plus 28 bytes of IP and ICMP headers make 9000. In any case, Jumbo Frames only bring a benefit between devices that send large frames themselves; all others keep sending at their own frame size.

Video surveillance on your own hardware

  1. Storage and Bandwidth Engineering for Enterprise CCTV Networks
  2. Intelligent Alarm Scenarios: Integrating Frigate AI Detection in Home Assistant
Lukas Wojcik

Lukas Wojcik

Systems architect and technology enthusiast specializing in scalable tracking solutions, GMP Stack (GA4 & GTM), and robust backend architectures. Advocate for clean code and privacy-first design.

Get in Touch

Briefly describe your project or inquiry for a tailored response. This site is protected by reCAPTCHA.

Write a comment

Experience with other cameras, lenses or recorders and questions about the setup are welcome here.

The email address is not published. Required fields are marked with an asterisk.

Articles & categories

CCTV

Follow this category by RSS

Cloud & AI

All 11 articles in this category Follow this category by RSS

Data Privacy

All 18 articles in this category Follow this category by RSS

Digital Analytics

All 58 articles in this category Follow this category by RSS

Digital Marketing

All 37 articles in this category Follow this category by RSS

IT & Networks

All 17 articles in this category Follow this category by RSS

Music Production

All 16 articles in this category Follow this category by RSS

Raspberry PI

Follow this category by RSS

SaaS & Internet Earning

Articles coming soon

Smart Home

All 18 articles in this category Follow this category by RSS

Web Development

All 11 articles in this category Follow this category by RSS

WordPress Plugins & Tricks

All 13 articles in this category Follow this category by RSS