Reply
Highlighted
New Member
Posts: 7
Registered: ‎12-28-2018

slow connection when using USG or USG Pro

i recently bought all ubiquiti hardware, cloudkey plus gen2, usg, unifi poe switch and unifi cameras.

When i use the usg and i turn off wifi to my phone the unifi protect app says i have a slow connection and every 20 seconds (aprox) it reconects, if i have wifi on, and on the local network it works perfectly.

 

if i take out the usg and put in my old router, i get fast connection and everything works great.

 

i went and bought a usg pro to see if the usg was just too slow and i have the exact same problem.

 

with both routers i get about 90mb down and 40mb up

internet is cable docsis 3.1

Ubiquiti Employee
Posts: 4,391
Registered: ‎06-18-2015
Kudos: 1316
Solutions: 396

Re: slow connection when using USG or USG Pro

Hi @balducci,

What firmware version do you have running on your USG? Did you enable or customize any of the USG-specific (router/gateway/firewall) settings when testing, or is the site pretty much default?

UBNT_Alternate_Logo.png
Ubiquiti Networks Enterprise Support Team


UniFi Protect: UniFi Protect Help Center | Frequently Asked Questions

UniFi Video 3: UniFi Video Help Center | UFV3 User Guide


New Member
Posts: 7
Registered: ‎12-28-2018

Re: slow connection when using USG or USG Pro

hi, running 4.4.36.5146617

the only customisations i have are port forwrding,

i tried resetting to factory defaults, not adoping it into the unifi system, and just letting it use dhcp as default ip, reset the cloudkey to use dhcp and the cameras, still the same result.

when on the lan or wifi it works fine, when im outside the network using the unifi protect app it always says slow and keeps reconnecting..

 

i did find something intereting while going crazy changing every setting on the weekend.

this problem is occuring with my cable modem in bridge mode, and letting the usg do all the routing.

if i put the cable modem in router mode, and then forward all ports to the ip of the usg, it works much better, i get fast connection all the time with the unifi protect app.. howver im doing double NAT. dont like that.

 

everything else works fine speed is the same upload and download using the usg as the router and the cable modem in bridge mode. its just doing something strange to the traffic to and from the unifi protect.

Ubiquiti Employee
Posts: 4,391
Registered: ‎06-18-2015
Kudos: 1316
Solutions: 396

Re: slow connection when using USG or USG Pro

@balducci,

How is your WAN configured? Are you using DHCP, static, or PPPoE?

Could you share a support file from Protect after reproducing the issue with the USG in use by using this form? https://goo.gl/forms/vvSlhDGUlBnNIGH93

UBNT_Alternate_Logo.png
Ubiquiti Networks Enterprise Support Team


UniFi Protect: UniFi Protect Help Center | Frequently Asked Questions

UniFi Video 3: UniFi Video Help Center | UFV3 User Guide


New Member
Posts: 7
Registered: ‎12-28-2018

Re: slow connection when using USG or USG Pro

DHCP,

at the moment im using the double NAT method which is working,

when i get home tonight after work i can reset the cable modem into bridge mode and that will cause unifi protect to go slow.

 

that is the only change i need to make to reproduce the slow issue

 

in bridge mode the cable modem passes on the external ip to USG, in router mode it supplies the usg's wan port with a 192.x address

 

New Member
Posts: 7
Registered: ‎12-28-2018

Re: slow connection when using USG or USG Pro

hi.i have save 2 support files from unifi protect

 

one called UniFi-Protect-Support-File-slow.zip is the cable modem put into bridge mode, letting the usg do all the routing

the other called UniFi-Protect-Support-File-fast.zip which has the cable modem in router mode, still plugged in the same way, but i put the ip of the usg as the DMZ so all traffic gets forwarded to it.

 

Attachment
Attachment
Ubiquiti Employee
Posts: 4,391
Registered: ‎06-18-2015
Kudos: 1316
Solutions: 396

Re: slow connection when using USG or USG Pro

@balducci,

What model is your modem? What subnets do you have configured for LAN, and what subnet are you getting assigned by your ISP?

UBNT_Alternate_Logo.png
Ubiquiti Networks Enterprise Support Team


UniFi Protect: UniFi Protect Help Center | Frequently Asked Questions

UniFi Video 3: UniFi Video Help Center | UFV3 User Guide


Ubiquiti Employee
Posts: 4,391
Registered: ‎06-18-2015
Kudos: 1316
Solutions: 396

Re: slow connection when using USG or USG Pro

Could you please try setting your USG WAN MSS Clamping to 1000 as a test? You will find the config under USG Settings -> Config -> Advanced -> MSS Clamping.

UBNT_Alternate_Logo.png
Ubiquiti Networks Enterprise Support Team


UniFi Protect: UniFi Protect Help Center | Frequently Asked Questions

UniFi Video 3: UniFi Video Help Center | UFV3 User Guide


New Member
Posts: 7
Registered: ‎12-28-2018

Re: slow connection when using USG or USG Pro

arris cm8200B docsis 3.1

 

Screen Shot 2019-02-14 at 6.22.44 am.png

Screen Shot 2019-02-14 at 6.22.44 am.png
New Member
Posts: 7
Registered: ‎12-28-2018

Re: slow connection when using USG or USG Pro

just tried mss clamping at 1000 - same results with unifi protect.

speedtest.net was ok

unifi protect still says slow and keeps reconnecting.

Ubiquiti Employee
Posts: 5,066
Registered: ‎08-08-2016
Kudos: 5499
Solutions: 351

Re: slow connection when using USG or USG Pro

@balducci do you have hardware offload enabled or disabled? It'll be enabled by default, unless you have IDS/IPS or smart queues enabled, or disabled it manually. From the description it sounds like it's probably enabled, if that's the case, could you try with it disabled? Go to Devices in the controller, click on USG, go to its Properties panel on the right. Under Advanced, turn off "Enable hardware offload" and click Save. Once it's finished provisioning, try the problem circumstance again, does that have any impact? 

New Member
Posts: 7
Registered: ‎12-28-2018

Re: slow connection when using USG or USG Pro

ive turned ips on and off - made no difference,

turned dpi on and off- no difference.

turned on and off hardware offoading - no difference

New Member
Posts: 25
Registered: ‎02-18-2016
Kudos: 23

Re: slow connection when using USG or USG Pro

I also notice a major slow down offsite, despite having 40down/20up.

 

Keen to hear what solves this problem, as I also have a USG with modem in bridge mode.

 

Jono

New Member
Posts: 2
Registered: ‎07-11-2017

Re: slow connection when using USG or USG Pro

Hi All,

 

I have the same issue, Unifi usg 4P and unifi 24 poe switch, pretty much default settings.  WAN is DHCP.  I'm keen to get a solution.

 

Scott

New Member
Posts: 2
Registered: ‎07-11-2017

Re: slow connection when using USG or USG Pro

Thought i should add my support file

Attachment
Reply