Edge Recording and ANR: How Do You Protect Recordings with an SD Card During Network Outages?

Edge recording to the camera’s SD card, backfilling after a network outage (ANR), VMS backfill, SD card endurance, ONVIF Profile G and on-site test steps.
Technical summary
Technology
Edge recording, ANR, microSD, ONVIF Profile G, VMS
Topic
Recording continuity during network outages
Level
Intermediate
Prerequisites
  • Edge recording support in the camera and VMS/NVR
  • Management access to switch ports on the camera network
In this article8 sections

The weakest link in a central recording system is the path between the camera and the recording server. An uplink drop, a switch restart or a VMS update leaves a permanent recording gap for all affected cameras for that period. Edge recording writes the video to the camera’s own SD card in the meantime; if ANR (Automatic Network Replenishment) is supported, the missing segment can be transferred back to central recording when the connection returns. Local recording and backfill support depend on the camera, card, NVR/VMS and settings used. By cutting the network connection and camera power separately, you verify which footage was written locally and which segment was transferred back. In this guide we explain how the mechanism works, what it needs, SD card selection and how to test the setup.

Edge recording use cases

Edge recording is used for three different purposes, and the design changes with the purpose:

Scenario The SD card’s role Typical use
Network outage buffer (ANR) Completes the missing part of central recording Enterprise VMS/NVR installations
Local primary recording The main recording medium; the center pulls only when needed Bandwidth-limited branches, construction sites, remote locations
Independent second copy A short-retention copy independent of central recording Critical passage points, checkout areas

The focus here is the first scenario. In the second, SD card capacity, retention time and card life become decisive; the third is a layer of protection added on top of RAID or server redundancy.

How ANR works

In enterprise camera systems, ANR is a mechanism that works in coordination between the camera and the recording system. Manufacturers use different names (ANR, edge storage, failover recording, edge retrieval), but the flow is usually like this:

  1. In normal operation, the camera sends the stream to the recording system. Depending on configuration, it also writes to the SD card in a loop, or starts writing only when it detects an outage.
  2. The recording system detects that it isn’t receiving a stream from the camera; the camera also detects that the recording client’s connection has dropped.
  3. When the connection returns, the recording system identifies the gap in the timeline and looks for the recording for that period on the camera’s SD card.
  4. The relevant segment is downloaded from the camera and placed in central recording with the correct timestamp.

Two timings are decisive here: how long the camera takes to detect the connection loss, and the recording system’s condition for starting backfill. In the mode that records only during outages, the seconds until the camera notices the disconnection aren’t written anywhere. Continuous loop recording to the SD card reduces this gap; the result is verified by testing.

Camera and VMS requirements

For ANR to work, every link in the chain must support it. If one link is missing, the system silently doesn’t work:

  • Camera: An SD card slot, an edge recording feature and an interface for searching and retrieving recordings. The maximum supported card capacity varies by model and firmware version.
  • Interface: A camera and NVR from the same manufacturer may use a proprietary protocol. Across manufacturers, ONVIF Profile G defines the standard interface for searching, playing back and retrieving recordings on the camera. We explained the differences between profiles in the ONVIF Profile T, G and M guide.
  • VMS or NVR: Support for automatically detecting the gap and backfilling from the camera. Profile G support alone doesn’t mean automatic backfill; on some systems only manual retrieval is possible.
  • Time synchronization: The camera and recording system must use the same NTP source. A clock difference causes the backfilled segment to land in the wrong position or overlap. If the backfilled segment lands in the wrong place, NTP is the first thing to check.
  • Bandwidth: Backfill generates traffic on top of live streams. After a long outage, if many cameras backfill at the same time the uplink can saturate; if the VMS has an option to limit retrieval speed, use it.

SD card selection and endurance

The SD card in a security camera is under a very different load from the card in a photo camera: uninterrupted, looping writes all year round, a wide temperature range outdoors and going unchecked for months. Selection criteria:

  • Endurance class: “High endurance” or industrial-grade cards are designed for continuous video writing. Manufacturers give endurance as total bytes written (TBW) or hours of continuous recording; this value should be stated clearly on the datasheet. If it isn’t, don’t buy that card.
  • Speed class: A minimum speed guarantee matters for continuous writing. The U3 and V30 classes guarantee 30 MB/s minimum sequential write; more than enough for a single camera stream.
  • Temperature range: For outdoor cameras, the card’s operating temperature range must meet the camera’s operating range.
  • Capacity: As an ANR buffer, the card should comfortably cover the longest expected outage. For local primary recording, it’s calculated from the retention time.
  • Compatibility: If the camera manufacturer has an approved card list, follow it.

Worked example: A main stream averaging 4 Mbps writes about 4 × 10.8 = 43.2 GB per day; about 15.8 TB per year. A 256 GB card holds about 5.9 days of recording with this stream. For a card with an endurance of, say, 150 TBW on its datasheet, the theoretical life looks like 150 ÷ 15.8 ≈ 9.5 years. Real life is shorter; write amplification inside the card and file system metadata writes take their share. To extend card life, you can use a low-bitrate second stream for edge recording instead of the main stream; in that case the backfilled segment also arrives at low quality.

Card life and monitoring

SD cards die silently. While the camera keeps delivering live video, the card may have switched to read-only mode or become unwritable altogether. If you only notice this when a backfill is needed, the whole purpose of edge recording is lost.

  • Configure the camera to send SD card error and “card full/not writable” events to the VMS or monitoring system as events.
  • If the camera reports card health or remaining life, check it periodically.
  • Schedule card replacement as planned maintenance based on the measured write volume and the card’s endurance rating, without waiting for failure.
  • Replaced cards contain footage. They aren’t thrown in the bin; they’re destroyed according to the recording destruction procedure.

ANR test scenario

An ANR configuration can look correct on paper. The only way to verify it is a real outage. The test steps we recommend:

  1. Verify that the clocks of the camera under test and the recording system are synchronized via NTP.
  2. Place a reference with readable time in the camera’s field of view (e.g. a screen showing seconds).
  3. Cut the path to the recording system, not the camera’s switch port; the camera must keep running. For example, shut down an uplink between the camera and the recording server, or disable the relevant network interface on the recording server side.
  4. Keep the outage going for at least 10 minutes, then restore the path.
  5. Watch the VMS timeline to see that the gap is detected and that backfill starts and completes.
  6. Play back the backfilled segment; compare the reference clock with the recording timestamp, and check for gaps or overlaps at the start and end of the outage.
  7. Repeat the same test with several cameras at once; measure the impact of backfill traffic on the uplink and recording server.

Example of cutting an uplink in a controlled way on a Cisco IOS switch:

configure terminal
 interface TenGigabitEthernet1/1/1
  description CAMERA-ACCESS-UPLINK
  shutdown
! after 10 minutes
  no shutdown
 end
show interfaces TenGigabitEthernet1/1/1 status

Run this test only in a maintenance window, knowing that all devices behind the uplink will be affected. Enter the results in the acceptance test record.

Limitations and security

  • Power outage: If the camera shuts down, edge recording stops too. ANR doesn’t replace power continuity.
  • Camera failure or theft: The recording is inside the camera. If the camera is removed or destroyed, that segment goes with it.
  • Long outage: When the card fills, loop recording overwrites the oldest segment; if the outage exceeds card capacity, the beginning is lost.
  • Physical data security: Footage on the SD card is personal data. If the camera supports it, enable card encryption, activate the housing tamper alarm and keep retention on the card consistent with the organization’s retention policy.
  • Access: The camera’s recording search and download interface should be open only to the recording system’s service account.

Edge recording also helps when the recording server goes completely offline; we covered the server side of this scenario in the VMS high availability and failover guide. To add ANR to your existing NVR and VMS installation, see our NVR/VMS redundancy and high availability service; to run cameras and recording systems from different manufacturers together, see our ONVIF and RTSP camera integration service. The reference for the standard’s scope is the ONVIF Profile G page.

Frequently asked questions

Does ANR also protect recordings when a PoE switch fails?

No. If the camera draws its power from the failed PoE switch, the camera shuts down too and can’t record to the SD card. ANR helps with outages of the uplink, core switch, recording server or VMS service. Plan UPS and power redundancy for the access layer separately.

Should you choose continuous recording to the SD card or recording only during outages?

Continuous loop recording also covers the seconds before the outage starts; even if the camera notices the network loss late, it leaves no gap, but it writes more to the card. Recording only during outages preserves card life but can leave a gap as long as the detection delay. On critical cameras, use continuous loop recording and an endurance card.

Does ANR work with a different brand of camera and VMS?

With camera and VMS pairs supporting ONVIF Profile G, accessing and retrieving edge recordings is possible; automatic gap detection and backfill, however, depend on the VMS’s implementation. Verify support for your camera model and VMS version in the documentation and test on site.

If the SD card is stolen, can the recordings be accessed?

If the card isn’t encrypted, the recordings can be read on another device. If the camera supports SD card encryption, enable it, protect the camera housing against tampering and include recordings on the card in the retention policy.

Support

Contact us for support or a discovery session on this topic.

Contact form
[email protected]

Eretek Video Surveillance

IP cameras, recording and central management infrastructure. We plan blind spots, retention periods and the camera network around the risks of each site.

Knowledge Center

Other articles