Jump to content

is 1gb router enough for 32 security cameras?

haimbilia

hi, im currently installing a camera system in my workplace, and i bought this nvr: https://s.click.aliexpress.com/e/_DB11VEJ which supports 32 ip cameras.

the cameras are mostly 5-8MP reolink cameras, like this one: https://s.click.aliexpress.com/e/_DnrQEwx.

im currently using an old router that starting to show signs of struggling as i keep adding cameras (picture lags and freezes).

so i need to buy a new router but all i can find 1gb routers, is it enough? i feel like it's not.

what do you recommend?

Link to comment
Share on other sites

Link to post
Share on other sites

what is this 1GB you are talking about? How are you sure that your lagging and freezing is due to your router ?

mY sYsTeM iS Not pErfoRmInG aS gOOd As I sAW oN yOuTuBe. WhA t IS a GoOd FaN CuRVe??!!? wHat aRe tEh GoOd OvERclok SeTTinGS FoR My CaRd??  HoW CaN I foRcE my GpU to uSe 1o0%? BuT WiLL i HaVE Bo0tllEnEcKs? RyZEN dOeS NoT peRfORm BetTer wItH HiGhER sPEED RaM!!dId i WiN teH SiLiCON LotTerrYyOu ShoUlD dEsHrOuD uR GPUmy SYstEm iS UNDerPerforMiNg iN WarzONEcan mY Pc Run WiNdOwS 11 ?woUld BaKInG MY GRaPHics card fIX it? MultimETeR TeSTiNG!! aMd'S GpU DrIvErS aRe as goOD aS NviDia's YOU SHoUlD oVERCloCk yOUR ramS To 5000C18

 

Link to comment
Share on other sites

Link to post
Share on other sites

Depending on the router, some router have concurrent user limit, on basic router is around 8-12 max connection.

For 32 simultaneous connections, i suggest you build a small pc dedicated for the routing.

Ryzen 5700g @ 4.4ghz all cores | Asrock B550M Steel Legend | 3060 | 2x 16gb Micron E 2666 @ 4200mhz cl16 | 500gb WD SN750 | 12 TB HDD | Deepcool Gammax 400 w/ 2 delta 4000rpm push pull | Antec Neo Eco Zen 500w

Link to comment
Share on other sites

Link to post
Share on other sites

18 hours ago, haimbilia said:

hi, im currently installing a camera system in my workplace, and i bought this nvr: https://s.click.aliexpress.com/e/_DB11VEJ which supports 32 ip cameras.

the cameras are mostly 5-8MP reolink cameras, like this one: https://s.click.aliexpress.com/e/_DnrQEwx.

im currently using an old router that starting to show signs of struggling as i keep adding cameras (picture lags and freezes).

so i need to buy a new router but all i can find 1gb routers, is it enough? i feel like it's not.

what do you recommend?

As that's an NVR is it not recording locally?  If so, your router is irrelevant as the traffic never reaches it.

 

Have to say I've not had much luck with Hikvision NVRs myself, have the same problem even though on mine the cameras are plugged directly into the NVR and I'm only using 2 out of the 4 cameras its meant to support.

Router:  Intel N100 (pfSense) WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz)
WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz) Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~800Mbit down, 115Mbit up)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Alex Atkin UK said:

As that's an NVR is it not recording locally?  If so, your router is irrelevant as the traffic never reaches it.

 

Have to say I've not had much luck with Hikvision NVRs myself, have the same problem even though on mine the cameras are plugged directly into the NVR and I'm only using 2 out of the 4 cameras its meant to support.

all ip cameras are connected through a router. if yours are connected directly to the NVR it's because your NVR has a built-in router and switch (mine doesn't), they usually suck.

Link to comment
Share on other sites

Link to post
Share on other sites

14 minutes ago, haimbilia said:

all ip cameras are connected through a router. if yours are connected directly to the NVR it's because your NVR has a built-in router and switch (mine doesn't), they usually suck.

Surely they are connected to a switch and unless they are accessing the Internet, the traffic wont touch the router, it will be going directly between the camera and NVR, or camera and client you are watching the stream on.

 

The fact a switch is connected to a router, doesn't mean all traffic is going via the router.  That's the whole point of a switch, it sends traffic directly to the right port for what is requesting it.  Only traffic to an IP address that does not belong to your LAN or the router itself, is sent to the router (if its your default gateway) where it decides where it needs to go to reach its destination, typically to a router at your ISP who then figures out which router to send it on to next, which keeps happening router to router until it reaches its destination.

Router:  Intel N100 (pfSense) WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz)
WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz) Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~800Mbit down, 115Mbit up)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
Share on other sites

Link to post
Share on other sites

25 minutes ago, haimbilia said:

all ip cameras are connected through a router. if yours are connected directly to the NVR it's because your NVR has a built-in router and switch (mine doesn't), they usually suck.

Unless your router has 32 ports, you are definitely connecting through switches. And as stated above, switches will send traffic directly to the MAC address the data is intended for, and unless the only way to get to the intended MAC address on the local network is via a route through the router, the data will never actually traverse the router. 
 

That said, if you are overloading a switch (basically, just a terminology issue here, your initial unquestionable is valid, just replace the word router with switch), that could be an issue. Theoretically it should be fine, but depending on the network topology you may have issues. 
 

How is this network setup? That would help shed some light on potential issues. 

Rig: i7 13700k - - Asus Z790-P Wifi - - RTX 4080 - - 4x16GB 6000MHz - - Samsung 990 Pro 2TB NVMe Boot + Main Programs - - Assorted SATA SSD's for Photo Work - - Corsair RM850x - - Sound BlasterX EA-5 - - Corsair XC8 JTC Edition - - Corsair GPU Full Cover GPU Block - - XT45 X-Flow 420 + UT60 280 rads - - EK XRES RGB PWM - - Fractal Define S2 - - Acer Predator X34 -- Logitech G502 - - Logitech G710+ - - Logitech Z5500 - - LTT Deskpad

 

Headphones/amp/dac: Schiit Lyr 3 - - Fostex TR-X00 - - Sennheiser HD 6xx

 

Homelab/ Media Server: Proxmox VE host - - 512 NVMe Samsung 980 RAID Z1 for VM's/Proxmox boot - - Xeon e5 2660 V4- - Supermicro X10SRF-i - - 128 GB ECC 2133 - - 10x4 TB WD Red RAID Z2 - - Corsair 750D - - Corsair RM650i - - Dell H310 6Gbps SAS HBA - - Intel RES2SC240 SAS Expander - - TreuNAS + many other VM’s

 

iPhone 14 Pro - 2018 MacBook Air

Link to comment
Share on other sites

Link to post
Share on other sites

I just checked and that router only has 100Mbit ports so you definitely only want to have one switch plugged into the router, and any other switches plugged into THAT switch.

 

Although it doesn't hurt to daisy-chain switches, you reduce the chance of bottlenecks by having a dedicated main switch.  At the very least make sure the NVR and cameras are all on the same switch so they have a direct path back to the NVR without causing a bottleneck on the LAN between switches.

Router:  Intel N100 (pfSense) WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz)
WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz) Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~800Mbit down, 115Mbit up)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
Share on other sites

Link to post
Share on other sites

On 11/22/2023 at 9:04 AM, Alex Atkin UK said:

Surely they are connected to a switch and unless they are accessing the Internet, the traffic wont touch the router, it will be going directly between the camera and NVR, or camera and client you are watching the stream on.

 

The fact a switch is connected to a router, doesn't mean all traffic is going via the router.  That's the whole point of a switch, it sends traffic directly to the right port for what is requesting it.  Only traffic to an IP address that does not belong to your LAN or the router itself, is sent to the router (if its your default gateway) where it decides where it needs to go to reach its destination, typically to a router at your ISP who then figures out which router to send it on to next, which keeps happening router to router until it reaches its destination.

thank you for the info but im confused, if the switch is not connected to the router, who assigns the ip addresses? every installation map i have seen show to connect the switch to the router and connect the nvr to either the switch or the router.

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, haimbilia said:

thank you for the info but im confused, if the switch is not connected to the router, who assigns the ip addresses? every installation map i have seen show to connect the switch to the router and connect the nvr to either the switch or the router.

If its the only switch then yes, connect it directly to the router.  However if you are then trying to view the cameras over the routers WiFi or from anything plugged into a different port on the router, its going to bottleneck on the 100Mbit router port if you view too many at once.

 

So if its a WiFi problem then using a separate WiFi Access Point plugged into the switch would solve that.

If its wired client problem, they also need to be in the switch to bypass that 100Mbit port restriction.

If your Internet is supposed to be faster than 100Mbit, then replacing the router with something better is going to pretty much solve everything.

Router:  Intel N100 (pfSense) WiFi6: Zyxel NWA210AX (1.7Gbit peak at 160Mhz)
WiFi5: Ubiquiti NanoHD OpenWRT (~500Mbit at 80Mhz) Switches: Netgear MS510TXUP, MS510TXPP, GS110EMX
ISPs: Zen Full Fibre 900 (~930Mbit down, 115Mbit up) + Three 5G (~800Mbit down, 115Mbit up)
Upgrading Laptop/Desktop CNVIo WiFi 5 cards to PCIe WiFi6e/7

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Alex Atkin UK said:

If its the only switch then yes, connect it directly to the router.  However if you are then trying to view the cameras over the routers WiFi or from anything plugged into a different port on the router, its going to bottleneck on the 100Mbit router port if you view too many at once.

 

So if its a WiFi problem then using a separate WiFi Access Point plugged into the switch would solve that.

If its wired client problem, they also need to be in the switch to bypass that 100Mbit port restriction.

If your Internet is supposed to be faster than 100Mbit, then replacing the router with something better is going to pretty much solve everything.

ok, i understood what you are saying, i will connect the switch to the NVR and see what happens. i will report.

Link to comment
Share on other sites

Link to post
Share on other sites

The cameras send a compressed stream, the bitrate will depend on the quality resolution and codec you chose ... I would guess maybe in the 10-40 mbps for each camera. 

 

If the NVR has two gigabit ethernet inputs for cameras, you could use a couple 16-24 port gigabit switches otherwise a single 48 port gigabit switch would be plenty ... put 12 cameras on a 16 port switch and even if one camera has a 50 mbps bitrate, you'd have 12 x 50 = 600 mbps, so the switch should be able to push that much out. 

 

With a single switch, you'd want less than 30 mbps per camera, as 32 cameras  x  30 mbps  = 960 mbps. and you want to stay below 1 gbps (assuming that's the maximum input bandwidth of a single ethernet port)

Link to comment
Share on other sites

Link to post
Share on other sites

5 hours ago, mariushm said:

The cameras send a compressed stream, the bitrate will depend on the quality resolution and codec you chose ... I would guess maybe in the 10-40 mbps for each camera. 

 

If the NVR has two gigabit ethernet inputs for cameras, you could use a couple 16-24 port gigabit switches otherwise a single 48 port gigabit switch would be plenty ... put 12 cameras on a 16 port switch and even if one camera has a 50 mbps bitrate, you'd have 12 x 50 = 600 mbps, so the switch should be able to push that much out. 

 

With a single switch, you'd want less than 30 mbps per camera, as 32 cameras  x  30 mbps  = 960 mbps. and you want to stay below 1 gbps (assuming that's the maximum input bandwidth of a single ethernet port)

yes i have 2x gigabit ports on my NVR. so should buy 2 16 port gigabit switches? and just connect both of them to the nvr? i use poe if it makes a difference. poe switches have 2 uplink ports so i can connect the router to one of these.

Link to comment
Share on other sites

Link to post
Share on other sites

Well, if you want to attach 32 cameras, you will need at least 32 ports ... if you buy a 16 port switch, you'll have 15 ports used by 15 cameras, and one port connecting to the NVR ... so in total you'll have maximum 30 cameras. 

 

So I would say go with 24 port switches or higher... You could connect one of the switches to the router on one free port in case you want to access the NVR from outside (you configure port forwarding or whatever is needed on the router). 

You don't want the camera traffic to go through the router, you connect the cameras directly to the switch ...

 

You may want to get a switch with PoE so that you power the cameras through the ethernet cables... and then again, a higher number of ports may be preferable because such switches would have a higher power budget.   

Let's say for example that each camera consumes 10 watts - then 16 cameras to a switch would use 160 watts -  a 16 port switch with PoE may come with only 90w budget, while a 24 port switch may come with a 200-250w PoE budget. 

 

For example, here's a 16 port switch, it comes with only 120w poe budget : https://www.amazon.com/TP-Link-TL-SG116P-Priority-Isolation-Recovery/dp/B0C4X7VZV9/

 

Going back to 24 port switches, for example if you want cheap , see  24 port tenda with 250w budget : https://www.amazon.com/Tenda-Unmanaged-Ethernet-Wall-Mount-Protection/dp/B0BCR7SLWH/

 

If you want a bit more quality, 26 port netgear with 190w budget : https://www.amazon.com/NETGEAR-24-Port-Gigabit-Ethernet-Managed/dp/B071J24KX7/

 

You could also go used/refurbished 

 

for example $50 for  48 x 100 mbps with poe 380w budget HPE / Aruba J9781A  https://www.ebay.com/itm/355198225775?hash=item52b376cd6f:g:O6MAAOSw9FhlLfji

description is slightly incorrect, it's not 1 gbps, it's 48 x 100 mbps ports, plus 2 1 gbps RJ45 ports and 2 SFP (1gbps) ports.  So the traffic on those 48 ports can go out the gigabit port(s).

 

You'd have to use 2, because you'd split the cameras across the switches, as you don't want to exceed the 1 gbps uplink speed, and each camera on its own won't hit 100 mbps so the switches would work. Downside is these switches may be NOISY.

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

41 minutes ago, mariushm said:

Well, if you want to attach 32 cameras, you will need at least 32 ports ... if you buy a 16 port switch, you'll have 15 ports used by 15 cameras, and one port connecting to the NVR ... so in total you'll have maximum 30 cameras. 

 

So I would say go with 24 port switches or higher... You could connect one of the switches to the router on one free port in case you want to access the NVR from outside (you configure port forwarding or whatever is needed on the router). 

You don't want the camera traffic to go through the router, you connect the cameras directly to the switch ...

 

You may want to get a switch with PoE so that you power the cameras through the ethernet cables... and then again, a higher number of ports may be preferable because such switches would have a higher power budget.   

Let's say for example that each camera consumes 10 watts - then 16 cameras to a switch would use 160 watts -  a 16 port switch with PoE may come with only 90w budget, while a 24 port switch may come with a 200-250w PoE budget. 

 

For example, here's a 16 port switch, it comes with only 120w poe budget : https://www.amazon.com/TP-Link-TL-SG116P-Priority-Isolation-Recovery/dp/B0C4X7VZV9/

 

Going back to 24 port switches, for example if you want cheap , see  24 port tenda with 250w budget : https://www.amazon.com/Tenda-Unmanaged-Ethernet-Wall-Mount-Protection/dp/B0BCR7SLWH/

 

If you want a bit more quality, 26 port netgear with 190w budget : https://www.amazon.com/NETGEAR-24-Port-Gigabit-Ethernet-Managed/dp/B071J24KX7/

 

You could also go used/refurbished 

 

for example $50 for  48 x 100 mbps with poe 380w budget HPE / Aruba J9781A  https://www.ebay.com/itm/355198225775?hash=item52b376cd6f:g:O6MAAOSw9FhlLfji

description is slightly incorrect, it's not 1 gbps, it's 48 x 100 mbps ports, plus 2 1 gbps RJ45 ports and 2 SFP (1gbps) ports.  So the traffic on those 48 ports can go out the gigabit port(s).

 

You'd have to use 2, because you'd split the cameras across the switches, as you don't want to exceed the 1 gbps uplink speed, and each camera on its own won't hit 100 mbps so the switches would work. Downside is these switches may be NOISY.

 

 

wow, thank you for all the info, when i say 16 ports i mean the ones with 2 extra uplink ports, like this one: https://www.aliexpress.com/item/32887512145.html

Link to comment
Share on other sites

Link to post
Share on other sites

On 11/23/2023 at 11:04 AM, haimbilia said:

wow, thank you for all the info, when i say 16 ports i mean the ones with 2 extra uplink ports, like this one: https://www.aliexpress.com/item/32887512145.html

The "uplink" ports on those are just the ports that don't supply Power Over Ethernet.

 

You don't need a switch with SFP optical ports.

I sold my soul for ProSupport.

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×