Update 12/10/2017: Issue resolved, scroll down to post #5 for solution.
Summary: Experiencing problems with Wi-Fi surveillance cameras choked by FTP Share when recording videos to USB HDD on RT-AC68R.
I'm not sure if anybody experienced the current situation I'm having. I have bought a bunch of Amcrest surveillance cameras to use (eight to be exact). The cameras are all Amcrest ProHD 1080P WiFi Wireless IP Security Camera - 1080P (1920TVL), model IP2M-841 (I have both IP2M-841W for white, IP2M-841B for black). Amcrest cameras have the options to save recorded videos onto SD card, FTP, NAS, and Amcrest Cloud. I liked the SD card and FTP options. When I went to configure the FTP service with my ASUS RT-AC68R router, I ran into problems.
When I looked at the videos saved onto my portable HDD attached via USB to the router, they were broken into chunks, gaps in event recordings, video ending in the middle of an event, incomplete videos, etc... In other words, the videos did not record in 8 minute chunks that they were defaulted to (pack duration under record control section in Amcrest settings). At first, I thought that the cameras were not configured correctly to continuously record 24/7 (General) and instead picking up motion detection only. But this wasn’t the case because I tested it via SD card and disabled all but one camera and it streamed the video fine to the HDD the way it should be. Then I thought maybe the bandwidth was insufficient because I'm already having 4 cameras attached to my 2.4 GHz and saturating the bandwidth. I checked under Traffic Analyzer and the bandwidth is still available and have room to accommodate more data. I do have the option to adjust the bitrate of the videos to lower the data utilization at the cost of video quality. I even thought it was a NTFS vs FAT32 file system where the router could not handle the read/write functions. It turned out that NTFS and FAT32 both experienced the same problem. I then played around with FTP concurrent users that was defaulted to 5. I played with the values at 1 and 10.
I saw in the general log “kernel: TCP: time wait bucket table overflow” and looked up that problem. I realized that the main problem after narrowing it down to is the problem is originating with the FTP server from the Asus router. When I have 2 Amcrest cameras enabled to FTP their recorded videos, they were working fine when I have FTP concurrent users set at 10. When I added the third Amcrest camera, that’s when everything starts to break down – all the videos are no longer recorded to the hard drive on the network and disconnections in the videos are apparent. It seems that the FTP concurrent users is the limiting factor.
Amcrest doesn’t have any options to limit the number of concurrent connections found in their menu, so no options to limit from Amcrest point. Now, as for the Asus FTP server, I know in the past, the default and max value was set at 5 and at some point, it was increased to 10. @RMerlin , is there any way to increase the max number of FTP concurrent users beyond 10? I’m trying to avoid running a standalone FTP server if the Asus RT-AC68R could accept the change. I see that the CPU utilizations are not bad at all – one core is probably at max 15% for 2 Amcrest cameras connected while the other core is even less than 5%.
If it helps, I’m currently running with Merlin’s firmware 380.69_alpha1-g4e73555.
Summary: Experiencing problems with Wi-Fi surveillance cameras choked by FTP Share when recording videos to USB HDD on RT-AC68R.
I'm not sure if anybody experienced the current situation I'm having. I have bought a bunch of Amcrest surveillance cameras to use (eight to be exact). The cameras are all Amcrest ProHD 1080P WiFi Wireless IP Security Camera - 1080P (1920TVL), model IP2M-841 (I have both IP2M-841W for white, IP2M-841B for black). Amcrest cameras have the options to save recorded videos onto SD card, FTP, NAS, and Amcrest Cloud. I liked the SD card and FTP options. When I went to configure the FTP service with my ASUS RT-AC68R router, I ran into problems.
When I looked at the videos saved onto my portable HDD attached via USB to the router, they were broken into chunks, gaps in event recordings, video ending in the middle of an event, incomplete videos, etc... In other words, the videos did not record in 8 minute chunks that they were defaulted to (pack duration under record control section in Amcrest settings). At first, I thought that the cameras were not configured correctly to continuously record 24/7 (General) and instead picking up motion detection only. But this wasn’t the case because I tested it via SD card and disabled all but one camera and it streamed the video fine to the HDD the way it should be. Then I thought maybe the bandwidth was insufficient because I'm already having 4 cameras attached to my 2.4 GHz and saturating the bandwidth. I checked under Traffic Analyzer and the bandwidth is still available and have room to accommodate more data. I do have the option to adjust the bitrate of the videos to lower the data utilization at the cost of video quality. I even thought it was a NTFS vs FAT32 file system where the router could not handle the read/write functions. It turned out that NTFS and FAT32 both experienced the same problem. I then played around with FTP concurrent users that was defaulted to 5. I played with the values at 1 and 10.
I saw in the general log “kernel: TCP: time wait bucket table overflow” and looked up that problem. I realized that the main problem after narrowing it down to is the problem is originating with the FTP server from the Asus router. When I have 2 Amcrest cameras enabled to FTP their recorded videos, they were working fine when I have FTP concurrent users set at 10. When I added the third Amcrest camera, that’s when everything starts to break down – all the videos are no longer recorded to the hard drive on the network and disconnections in the videos are apparent. It seems that the FTP concurrent users is the limiting factor.
Amcrest doesn’t have any options to limit the number of concurrent connections found in their menu, so no options to limit from Amcrest point. Now, as for the Asus FTP server, I know in the past, the default and max value was set at 5 and at some point, it was increased to 10. @RMerlin , is there any way to increase the max number of FTP concurrent users beyond 10? I’m trying to avoid running a standalone FTP server if the Asus RT-AC68R could accept the change. I see that the CPU utilizations are not bad at all – one core is probably at max 15% for 2 Amcrest cameras connected while the other core is even less than 5%.
If it helps, I’m currently running with Merlin’s firmware 380.69_alpha1-g4e73555.
Last edited: