Community discussions

MikroTik App
 
bandini981
newbie
Topic Author
Posts: 25
Joined: Fri Jul 19, 2019 11:46 am

WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 10:59 am

Hi all,
I'm experiencing some strange behavior.
I've simple configuration with CAPsMAN and five CAP. There are five IP cameras on the network and a service that records five RTSP streams (one for each camera) using OpenRTSP program.
The network is quite good, low ping, good coverage, poor interferences, but randomly everything collapse: high ping, clients disconnect and no longer able to reconnect. This happens ONLY when the RTSP recording is active. Without the recording, the network is stable.
I've tried lots of adjustments like configuring the Access List in order to exclude poor signal clients, configuring Basic Rates, reduced Tx Power, performed a scanning in order to avoid interferences, and many other but nothing changed.
I've also tried to use Ubiquiti AP LR instead of MikroTik APs, same result.
# apr/27/2021 09:57:17 by RouterOS 6.48.2
# software id = 0Uxxxxx
#
# model = RB760iGS
# serial number = xxxxxxxxx
/caps-man channel
add band=2ghz-g/n control-channel-width=20mhz frequency=2412 name=CH1
add band=2ghz-g/n control-channel-width=20mhz frequency=2417 name=CH2
add band=2ghz-g/n control-channel-width=20mhz frequency=2422 name=CH3
add band=2ghz-g/n control-channel-width=20mhz frequency=2427 name=CH4
add band=2ghz-g/n control-channel-width=20mhz frequency=2432 name=CH5
add band=2ghz-g/n control-channel-width=20mhz frequency=2437 name=CH6
add band=2ghz-g/n control-channel-width=20mhz frequency=2442 name=CH7
add band=2ghz-g/n control-channel-width=20mhz frequency=2447 name=CH8
add band=2ghz-g/n control-channel-width=20mhz frequency=2452 name=CH9
add band=2ghz-g/n control-channel-width=20mhz frequency=2457 name=CH10
add band=2ghz-g/n control-channel-width=20mhz frequency=2462 name=CH11
add band=2ghz-g/n control-channel-width=20mhz frequency=2467 name=CH12
add band=2ghz-g/n control-channel-width=20mhz frequency=2472 name=CH13
/caps-man datapath
add arp=reply-only client-to-client-forwarding=yes local-forwarding=yes name=local_forwarding_datapath
/caps-man rates
add basic=11Mbps,6Mbps,9Mbps name=testRates supported=11Mbps,6Mbps,9Mbps
/caps-man security
add authentication-types=wpa2-psk disable-pmkid=yes encryption=aes-ccm group-encryption=aes-ccm group-key-update=1h name=securityAncora passphrase=rinaldo:
/caps-man configuration
add channel=CH4 channel.band=2ghz-b/g/n channel.control-channel-width=20mhz channel.extension-channel=disabled country=no_country_set datapath=local_forwarding_datapath distance=indoors frame-lifetime=1s hide-ssid=no installation=indoor mode=ap \
    name=cfgCap1 rates=testRates rx-chains=0,1 security=securityAncora ssid=ancora tx-chains=0,1
add channel=CH11 channel.band=2ghz-b/g/n channel.control-channel-width=20mhz channel.extension-channel=disabled channel.tx-power=12 country=no_country_set datapath=local_forwarding_datapath distance=dynamic frame-lifetime=1s hide-ssid=no \
    installation=outdoor mode=ap name=cfgCap4 rates=testRates rx-chains=0,1 security=securityAncora ssid=ancora tx-chains=0,1
add channel=CH8 channel.band=2ghz-b/g/n channel.control-channel-width=20mhz channel.extension-channel=disabled channel.tx-power=15 country=no_country_set datapath=local_forwarding_datapath distance=indoors frame-lifetime=1s hide-ssid=no \
    installation=indoor mode=ap name=cfgCap3 rates=testRates rx-chains=0,1 security=securityAncora ssid=ancora tx-chains=0,1
add channel=CH10 channel.band=2ghz-b/g/n channel.control-channel-width=20mhz channel.extension-channel=disabled channel.tx-power=8 country=no_country_set datapath=local_forwarding_datapath distance=indoors frame-lifetime=1s hide-ssid=no \
    installation=indoor mode=ap name=cfgCap2 rates=testRates rx-chains=0,1 security=securityAncora ssid=ancora tx-chains=0,1
add channel=CH3 channel.band=2ghz-b/g/n channel.control-channel-width=20mhz channel.extension-channel=disabled channel.tx-power=5 country=no_country_set datapath=local_forwarding_datapath distance=indoors frame-lifetime=1s hide-ssid=no installation=\
    indoor mode=ap name=cfgCap5 rates=testRates rx-chains=0,1 security=securityAncora ssid=ancora tx-chains=0,1
/caps-man interface
add configuration=cfgCap1 disabled=no l2mtu=1600 mac-address=48:8F:5A:6E:D8:FD master-interface=none name=CAP1-1 radio-mac=48:8F:5A:6E:D8:FD radio-name=488F5A6ED8FD
add configuration=cfgCap2 disabled=no l2mtu=1600 mac-address=48:8F:5A:00:0D:A9 master-interface=none name=CAP2-1 radio-mac=48:8F:5A:00:0D:A9 radio-name=488F5A000DA9
add configuration=cfgCap3 disabled=no l2mtu=1600 mac-address=C4:AD:34:A4:5A:7C master-interface=none name=CAP3-1 radio-mac=C4:AD:34:A4:5A:7C radio-name=C4AD34A45A7C
add configuration=cfgCap4 disabled=no l2mtu=1600 mac-address=48:8F:5A:20:E3:5E master-interface=none name=CAP4-1 radio-mac=48:8F:5A:20:E3:5E radio-name=488F5A20E35E
add configuration=cfgCap5 disabled=no l2mtu=1600 mac-address=64:D1:54:41:5B:9E master-interface=none name=CAP5-1 radio-mac=64:D1:54:41:5B:9E radio-name=64D154415B9E
/caps-man access-list
add action=reject allow-signal-out-of-range=10s comment="STOP HERE" disabled=yes ssid-regexp=""
add allow-signal-out-of-range=10s comment="Cameras ::::::::::::::::::::::::::::::::::::::::::::::::::::::" disabled=yes ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="EZVIZ - Mansarda" disabled=no mac-address=44:B2:95:43:F3:F5 signal-range=-80..120 ssid-regexp="" vlan-id=50 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="EZVIZ - Mansarda" disabled=no mac-address=44:B2:95:43:F3:F5 ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="EZVIZ - Esterna" disabled=no mac-address=50:13:95:8F:FC:63 signal-range=-80..120 ssid-regexp="" vlan-id=50 vlan-mode=use-tag
add action=reject comment="EZVIZ - Esterna" disabled=no mac-address=50:13:95:8F:FC:63
add action=accept allow-signal-out-of-range=10s comment="SV3C - Retro" disabled=no mac-address=74:EE:2A:F3:73:2E signal-range=-80..120 ssid-regexp="" vlan-id=50 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="SV3C - Retro" disabled=no mac-address=74:EE:2A:F3:73:2E ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="EZVIZ - Piazzale" disabled=no mac-address=80:9F:9B:24:F7:8E signal-range=-80..120 ssid-regexp="" vlan-id=50 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="EZVIZ - Piazzale" disabled=no mac-address=80:9F:9B:24:F7:8E ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="EZVIZ - Prato" disabled=no mac-address=B4:C9:B9:34:5A:40 signal-range=-80..120 ssid-regexp="" vlan-id=50 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="EZVIZ - Prato" disabled=no mac-address=B4:C9:B9:34:5A:40 ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="EZVIZ - Strisce" disabled=no mac-address=B4:C9:B9:9F:FD:3D signal-range=-86..120 ssid-regexp="" vlan-id=50 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="EZVIZ - Strisce" disabled=no mac-address=B4:C9:B9:9F:FD:3D ssid-regexp=""
add allow-signal-out-of-range=10s comment="Smart ::::::::::::::::::::::::::::::::::::::::::::::::::::::" disabled=yes ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="DHT Mansarda" disabled=no mac-address=F4:CF:A2:7F:FF:E5 private-passphrase="" signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="DHT Mansarda" disabled=no mac-address=F4:CF:A2:7F:FF:E5 ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="Google Home Mini - mansarda" disabled=no mac-address=00:F6:20:A6:42:61 signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="Google Home Mini - mansarda" disabled=no mac-address=00:F6:20:A6:42:61 ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="Sonoff - stufabagno" disabled=no mac-address=D8:F1:5B:C5:06:5F signal-range=-86..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="Sonoff - stufabagno" disabled=no mac-address=D8:F1:5B:C5:06:5F ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="Sonoff - lucemansarda" disabled=no mac-address=60:01:94:C6:C6:4E signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="Sonoff - lucemansarda" disabled=no mac-address=60:01:94:C6:C6:4E ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="Sonoff - lampadamansarda" disabled=no mac-address=D8:F1:5B:C5:06:7E signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="Sonoff - lampadamansarda" disabled=no mac-address=D8:F1:5B:C5:06:7E ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="Sonoff - lampadaletto" disabled=no mac-address=24:A1:60:19:DB:9D signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="Sonoff - lampadaletto" disabled=no mac-address=24:A1:60:19:DB:9D ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="Sonoff - lucetv" disabled=no mac-address=60:01:94:C9:31:5D signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="Sonoff - lucetv" disabled=no mac-address=60:01:94:C9:31:5D ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="ESP - cancellogrande" disabled=no mac-address=8C:AA:B5:7C:C0:6E signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="ESP - cancellogrande" disabled=no mac-address=8C:AA:B5:7C:C0:6E ssid-regexp=""
add action=accept allow-signal-out-of-range=10s comment="ESP - IR Climatizzatore" disabled=no mac-address=BC:DD:C2:3F:C6:87 signal-range=-80..120 ssid-regexp="" vlan-id=10 vlan-mode=use-tag
add action=reject allow-signal-out-of-range=10s comment="ESP - IR Climatizzatore" disabled=no mac-address=BC:DD:C2:3F:C6:87 ssid-regexp=""
add allow-signal-out-of-range=10s comment=:::::::::::::::::::::::::::::::::::::::::::::::::::::: disabled=yes ssid-regexp=""
add action=accept allow-signal-out-of-range=35s comment=ALL disabled=no signal-range=-76..120 ssid-regexp=""
add action=reject allow-signal-out-of-range=3s comment="ALL - Reject" disabled=no signal-range=-120..77 ssid-regexp=""
/caps-man manager
set enabled=yes package-path=/capsman upgrade-policy=suggest-same-version
/caps-man provisioning
add action=create-enabled comment="CAP 1" identity-regexp="CAP\?" master-configuration=cfgCap1 name-format=identity radio-mac=48:8F:5A:6E:D8:FD
add action=create-enabled comment="CAP 2" identity-regexp="CAP\?" master-configuration=cfgCap2 name-format=identity radio-mac=48:8F:5A:00:0D:A9
add action=create-enabled comment="CAP 3" identity-regexp="CAP\?" master-configuration=cfgCap3 name-format=identity radio-mac=C4:AD:34:A4:5A:7C
add action=create-enabled comment="CAP 4" identity-regexp="CAP\?" master-configuration=cfgCap4 name-format=identity radio-mac=48:8F:5A:20:E3:5E
add action=create-enabled comment="CAP 5" identity-regexp="CAP\?" master-configuration=cfgCap5 name-format=identity radio-mac=64:D1:54:41:5B:9E
Can someone help me?

Many thanks.
 
karakuraizer
just joined
Posts: 18
Joined: Mon Apr 26, 2021 12:35 pm

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 11:48 am

Hi, had similar issues with single HikVision DS-2CD2412F-IW ipcam(typical china), the only solution we got is to use ethernet as long as all our cams support PoE (802.3af) , found out that hex PoE can get 802.3at power and easily power up 4 ip cams with 802.3af like passthrough (was very inefficient to pull 4 cables to one area through all office, so we pulled one)
What ipcams are you using?
Last edited by karakuraizer on Tue Apr 27, 2021 11:52 am, edited 1 time in total.
 
bandini981
newbie
Topic Author
Posts: 25
Joined: Fri Jul 19, 2019 11:46 am

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 11:50 am

Hi, had similar issues with single HikVision DS-2CD2412F-IW ipcam(typical china), the only solution we got is to use ethernet as long as all our cams support PoE (802.3af) , found out that hex PoE can get 802.3at power and easily power up 4 ip cams with 802.3af like passthrough (was very inefficient to pull 4 cables to one area through all office, so we pulled one)
What ipcams you're using?
- 4 x EZVIZ
- 1 x SV3C

Thank you
 
karakuraizer
just joined
Posts: 18
Joined: Mon Apr 26, 2021 12:35 pm

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 11:59 am

same typical chinese, i suggest you to try analyse network dumps, may be you'll figure something out, all these china cams are unpredictable and always connect to some vendor servers for only god's known reasons.
 
bandini981
newbie
Topic Author
Posts: 25
Joined: Fri Jul 19, 2019 11:46 am

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 12:10 pm

same typical chinese, i suggest you to try analyse network dumps, may be you'll figure something out, all these china cams are unpredictable and always connect to some vendor servers for only god's known reasons.
I've limited the access of the cameras to the local network only, no internet access allowed. Furthermore, the issue arises only when I start recording.

Best
 
karakuraizer
just joined
Posts: 18
Joined: Mon Apr 26, 2021 12:35 pm

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 12:48 pm

What kind of RTSP traffic your cam are casting: unicast or multicast?
try to use unicast
typical usage on hikvision:
rtsp://admin:12345@IP:Port/Streaming/Channels/ID/?transportmode=multicast
rtsp://admin:1234@IP:Port/Streaming/Channes/ID/?transportmode=unicast
here's some others
https://www.getscw.com/decoding/rtsp
https://help.camdog.ai/article/40-brand-s-ip-cameras
Last edited by karakuraizer on Tue Apr 27, 2021 12:55 pm, edited 1 time in total.
 
bandini981
newbie
Topic Author
Posts: 25
Joined: Fri Jul 19, 2019 11:46 am

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 12:53 pm

What kind of RSTP traffic your cam are casting: unicast or multicast?
try to use unicast
typical usage on hikvision:
rtsp://admin:12345@IP:Port/Streaming/Channels/ID/?transportmode=multicast
rtsp://admin:1234@IP:Port/Streaming/Channes/ID/?transportmode=unicast
here's some others
https://www.getscw.com/decoding/rtsp
https://help.camdog.ai/article/40-brand-s-ip-cameras
I use EZVIZ cameras:
EzViz RTSP Stream (Cameras & NVR)
EZviz cameras are designed to work exclusively with the EZViz applications - thus RTSP and third party access is extremely limited if not completely unavailable.
 
karakuraizer
just joined
Posts: 18
Joined: Mon Apr 26, 2021 12:35 pm

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 1:05 pm

Sorry, my bad didn't see that(
what software are you using to record videos?
 
bandini981
newbie
Topic Author
Posts: 25
Joined: Fri Jul 19, 2019 11:46 am

Re: WiFi issue when multiple RTSP streams are active on the network

Tue Apr 27, 2021 1:27 pm

Sorry, my bad didn't see that(
what software are you using to record videos?
OpenRTSP...something like that:
/usr/local/bin/openRTSP -B 10000000 -b 10000000 -Q -K -v -i -F file_name-P 15 -u xxxx FFFFFF rtsp://192.xxx.x.x:554/stream_h264
 
karakuraizer
just joined
Posts: 18
Joined: Mon Apr 26, 2021 12:35 pm

Re: WiFi issue when multiple RTSP streams are active on the network

Thu Apr 29, 2021 7:34 pm

Sorry but the only idea i got so far is to analyse radio broadcasts in your area and your network traffic

Who is online

Users browsing this forum: Bing [Bot], lurker888 and 28 guests