6 Replies Latest reply on Dec 31, 2014 9:49 AM by Frederick Blais

    Edison slow network response

    Frederick Blais

      Hello, I just wanted to know if other people here have some lag issues with their Edison. I use Ubilinux but I experienced similar lag with Yocto.

       

      Here is a ping session with the Edison:

      PING 192.168.0.80 (192.168.0.80) 56(84) bytes of data.

      From 192.168.0.191 icmp_seq=1 Destination Host Unreachable

      From 192.168.0.191 icmp_seq=2 Destination Host Unreachable

      From 192.168.0.191 icmp_seq=3 Destination Host Unreachable

      From 192.168.0.191 icmp_seq=4 Destination Host Unreachable

      64 bytes from 192.168.0.191: icmp_seq=5 ttl=64 time=143 ms

      64 bytes from 192.168.0.191: icmp_seq=6 ttl=64 time=61.7 ms

       

      --- 192.168.0.80 ping statistics ---

      6 packets transmitted, 2 received, +4 errors, 66% packet loss, time 5000ms

      rtt min/avg/max/mdev = 61.785/102.427/143.070/40.643 ms, pipe 4

       

      PING 192.168.0.80 (192.168.0.80) 56(84) bytes of data.

      64 bytes from 192.168.0.80: icmp_seq=1 ttl=64 time=44.8 ms

      64 bytes from 192.168.0.80: icmp_seq=2 ttl=64 time=73.2 ms

      64 bytes from 192.168.0.80: icmp_seq=3 ttl=64 time=96.6 ms

      64 bytes from 192.168.0.80: icmp_seq=4 ttl=64 time=115 ms

      64 bytes from 192.168.0.80: icmp_seq=5 ttl=64 time=138 ms

      64 bytes from 192.168.0.80: icmp_seq=6 ttl=64 time=57.0 ms

       

      --- 192.168.0.80 ping statistics ---

      6 packets transmitted, 6 received, 0% packet loss, time 5007ms

      rtt min/avg/max/mdev = 44.811/87.647/138.742/32.754 ms

       

      The thing to note here is that the Edison seems to be "sleeping" because the first ping packets are lost. Subsequent ping are a bit slow.

       

      Here is a ping session with a Raspberry Pi in comparaison:

      fred@fred-i3:~$ ping 192.168.0.198

      PING 192.168.0.198 (192.168.0.198) 56(84) bytes of data.

      64 bytes from 192.168.0.198: icmp_seq=1 ttl=64 time=1.12 ms

      64 bytes from 192.168.0.198: icmp_seq=2 ttl=64 time=0.543 ms

      64 bytes from 192.168.0.198: icmp_seq=3 ttl=64 time=0.669 ms

      64 bytes from 192.168.0.198: icmp_seq=4 ttl=64 time=0.516 ms

      64 bytes from 192.168.0.198: icmp_seq=5 ttl=64 time=0.545 ms

       

      Also, when I try to SSH into the Edison, I often get a couple "Connection refused" error before being able to log into it. Once I am logged in it works well, but if I happen to leave the SSH session open for a couple of minutes and get back it, the session is frozen and most of the time, I have to close the session and restart it.

       

      Anybody have similar issues? Could it be caused by power management of the wireless chipset? (if so, how can we disable that)

       

      Thanks! Fred

        • 1. Re: Edison slow network response
          CMata_Intel

          Hi speccy88

           

          I'm going to research about this, and look for a way to improve the speed with the connection. I'll post you back when I get some useful information.

          About the ssh connection to your terminal console, after restarting it, it works fine or the same issue happens? Are you able to communicate to your board using SSH in some way?

           

          Regards;

          CMata

          • 2. Re: Edison slow network response
            Frederick Blais

            CMata_Intel

             

            SSH works, but I have to try a couple time for the Edison to "wake up" and let me connect.

            • 3. Re: Edison slow network response
              CMata_Intel

              In Yocto, are you using the latest image? What is the outcome of cat /etc/version?

               

              Regards

              • 4. Re: Edison slow network response
                Aenimated

                Hi speccy88,

                 

                FWIW, I've had some success resolving these kinds of latency issues by disabling power mgmt (as you suspected).  To do so, I use "iwconfig wlan0 power off".  It may be worth a shot.

                 

                Good luck!

                1 of 1 people found this helpful
                • 5. Re: Edison slow network response
                  Frederick Blais

                  Thanks Aenimated, it help a lot

                   

                  Ping session with power management ON (iwconfig wlan0 power on)

                  PING 192.168.0.80 (192.168.0.80) 56(84) bytes of data.

                  64 bytes from 192.168.0.80: icmp_seq=1 ttl=64 time=95.1 ms

                  64 bytes from 192.168.0.80: icmp_seq=2 ttl=64 time=123 ms

                  64 bytes from 192.168.0.80: icmp_seq=3 ttl=64 time=143 ms

                  64 bytes from 192.168.0.80: icmp_seq=4 ttl=64 time=60.8 ms

                  64 bytes from 192.168.0.80: icmp_seq=5 ttl=64 time=88.7 ms

                  64 bytes from 192.168.0.80: icmp_seq=6 ttl=64 time=108 ms

                  64 bytes from 192.168.0.80: icmp_seq=7 ttl=64 time=126 ms

                   

                  --- 192.168.0.80 ping statistics ---

                  7 packets transmitted, 7 received, 0% packet loss, time 6009ms

                  rtt min/avg/max/mdev = 60.839/106.606/143.367/25.566 ms



                  Now a ping session with power management OFF (iwconfig wlan0 power off)

                  PING 192.168.0.80 (192.168.0.80) 56(84) bytes of data.

                  64 bytes from 192.168.0.80: icmp_seq=1 ttl=64 time=21.4 ms

                  64 bytes from 192.168.0.80: icmp_seq=2 ttl=64 time=19.5 ms

                  64 bytes from 192.168.0.80: icmp_seq=3 ttl=64 time=18.3 ms

                  64 bytes from 192.168.0.80: icmp_seq=4 ttl=64 time=18.4 ms

                  64 bytes from 192.168.0.80: icmp_seq=5 ttl=64 time=16.7 ms

                  64 bytes from 192.168.0.80: icmp_seq=6 ttl=64 time=15.0 ms

                  64 bytes from 192.168.0.80: icmp_seq=7 ttl=64 time=13.4 ms

                   

                  --- 192.168.0.80 ping statistics ---

                  7 packets transmitted, 7 received, 0% packet loss, time 6007ms

                  rtt min/avg/max/mdev = 13.432/17.559/21.436/2.525 ms

                   

                  Average delay with power management on = 106.61ms

                  Average delay with power management off = 17.56ms

                   

                  So the ping is about 6 times faster with power management off

                   

                  Also, it seems to prevent the hanging I saw before while connected to the board with SSH

                  • 6. Re: Edison slow network response
                    Frederick Blais

                    To turn off power management at boot (Ubilinux)

                     

                    vim /etc/network/interfaces

                    auto wlan0

                    iface wlan0 inet static

                        wpa-ssid xxxxxxxx

                        wpa-psk xxxxxxxx

                        address 192.168.0.80

                        netmask 255.255.255.0

                        gateway 192.168.0.1

                        post-up iwconfig wlan0 power off      <--- Add this line