ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Unsolved VPN Connect continually drops

    IT Discussion
    ubnt l2tp windows 8.1 windows 8 vpn
    9
    49
    8.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • coliverC
      coliver
      last edited by

      @Martin9700 to the rescue.

      [CmdletBinding()]
      Param (
      	[int32]$Count = 5,
      	
      	[Parameter(ValueFromPipeline=$true)]
      	[String[]]$Computer = "mftestwin7",
      	
      	[string]$LogPath = "c:\pinglog\pinglog.csv"
      )
      
      $Ping = @()
      #Test if path exists, if not, create it
      If (-not (Test-Path (Split-Path $LogPath) -PathType Container))
      {   Write-Verbose "Folder doesn't exist $(Split-Path $LogPath), creating..."
      	New-Item (Split-Path $LogPath) -ItemType Directory | Out-Null
      }
      
      #Test if log file exists, if not seed it with a header row
      If (-not (Test-Path $LogPath))
      {   Write-Verbose "Log file doesn't exist: $($LogPath), creating..."
      	Add-Content -Value '"TimeStamp","Source","Destination","IPV4Address","Status","ResponseTime"' -Path $LogPath
      }
      
      #Log collection loop
      Write-Verbose "Beginning Ping monitoring of $Comptuer for $Count tries:"
      While ($Count -gt 0)
      {   $Ping = Get-WmiObject Win32_PingStatus -Filter "Address = '$Computer'" | Select @{Label="TimeStamp";Expression={Get-Date}},@{Label="Source";Expression={ $_.__Server }},@{Label="Destination";Expression={ $_.Address }},IPv4Address,@{Label="Status";Expression={ If ($_.StatusCode -ne 0) {"Failed"} Else {""}}},ResponseTime
      	$Result = $Ping | Select TimeStamp,Source,Destination,IPv4Address,Status,ResponseTime | ConvertTo-Csv -NoTypeInformation
      	$Result[1] | Add-Content -Path $LogPath
      	Write-verbose ($Ping | Select TimeStamp,Source,Destination,IPv4Address,Status,ResponseTime | Format-Table -AutoSize | Out-String)
      	$Count --
      	Start-Sleep -Seconds 1
      }
      

      Run it like this:

      .\Get-PingMonitor.ps1 -count 9999 -path c:\pinglog\pinglog.csv -computer "www.thesurlyadmin.com"
      
      1 Reply Last reply Reply Quote 2
      • Mike DavisM
        Mike Davis @Jason
        last edited by

        @Jason said:

        For us issues like this are usually that of the ISP, so it's usually on the user to contact their ISP. Some are willing to fix it, some aren't.

        In my experience, if you don't have a smoking gun, like logs or a bad tracert, you don't get very far. And with good reason. Imagine all the Surface users that have called in about their internet connection. 😉

        J 1 Reply Last reply Reply Quote 1
        • J
          Jason Banned @Mike Davis
          last edited by

          @Mike-Davis said:

          @Jason said:

          For us issues like this are usually that of the ISP, so it's usually on the user to contact their ISP. Some are willing to fix it, some aren't.

          In my experience, if you don't have a smoking gun, like logs or a bad tracert, you don't get very far. And with good reason. Imagine all the Surface users that have called in about their internet connection. 😉

          We don't have our tech supporting users home connections, so it's on them to do any logs and/or contact their ISP

          1 Reply Last reply Reply Quote 0
          • gjacobseG
            gjacobse
            last edited by

            It was inevitable - they called in again today... and I did do the ping test.

            I won't post the full run (either of the four) but here is the summary of two of them

            Packets: Sent = 114, Received = 114, Lost = 0 (0% loss),
            Approximate round trip times in milli-seconds:
            Minimum = 63ms, Maximum = 3422ms, Average = 138ms
            
            Packets: Sent = 154, Received = 153, Lost = 1 (0% loss),
            Approximate round trip times in milli-seconds:
            Minimum = 61ms, Maximum = 3283ms, Average = 128ms
            

            I even noted that my ScreenConnect connection would 'hang', the ping scroll would stop and then it would speed up for a moment. So even my connection seemed to be affected.

            So this seems to isolate it down to the computer / local network.

            I was informed that he is about 20' from the router on Wireless, but that TWC is to be onsite today to setup / move the equipment and then he will be within 5' of it.

            coliverC J 2 Replies Last reply Reply Quote 0
            • scottalanmillerS
              scottalanmiller
              last edited by

              3.4 seconds is ridiculously long for a ping time. That's an issue, for sure.

              1 Reply Last reply Reply Quote 0
              • gjacobseG
                gjacobse
                last edited by

                Agreed. there was one instance of a 1.04 sec ping time, and the next ping was unreachable.....

                1 Reply Last reply Reply Quote 0
                • coliverC
                  coliver @gjacobse
                  last edited by

                  @gjacobse said:

                  It was inevitable - they called in again today... and I did do the ping test.

                  I won't post the full run (either of the four) but here is the summary of two of them

                  Packets: Sent = 114, Received = 114, Lost = 0 (0% loss),
                  Approximate round trip times in milli-seconds:
                  Minimum = 63ms, Maximum = 3422ms, Average = 138ms
                  
                  Packets: Sent = 154, Received = 153, Lost = 1 (0% loss),
                  Approximate round trip times in milli-seconds:
                  Minimum = 61ms, Maximum = 3283ms, Average = 128ms
                  

                  I even noted that my ScreenConnect connection would 'hang', the ping scroll would stop and then it would speed up for a moment. So even my connection seemed to be affected.

                  So this seems to isolate it down to the computer / local network.

                  I was informed that he is about 20' from the router on Wireless, but that TWC is to be onsite today to setup / move the equipment and then he will be within 5' of it.

                  Did you try pinging a different location at the same time? Google or something similar?

                  gjacobseG 1 Reply Last reply Reply Quote 0
                  • gjacobseG
                    gjacobse @coliver
                    last edited by

                    @coliver

                    I did not. but that is an idea.

                    1 Reply Last reply Reply Quote 0
                    • J
                      Jason Banned @gjacobse
                      last edited by

                      @gjacobse said:

                      I was informed that he is about 20' from the router on Wireless, but that TWC is to be onsite today to setup / move the equipment and then he will be within 5' of it.

                      Just hope it's not to close and overloads the wireless radio's.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 3 / 3
                      • First post
                        Last post