Skip to content
Snippets Groups Projects
  1. Jul 29, 2016
  2. Jun 10, 2016
  3. May 20, 2016
    • Alessandro Rubini's avatar
    • Alessandro Rubini's avatar
    • Alessandro Rubini's avatar
      net: trivial simplifcations related to previous commit · f3ae88b3
      Alessandro Rubini authored
      
      (one is just a comment update: most of that stanza was not true any more)
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      f3ae88b3
    • Alessandro Rubini's avatar
      net: ignore macaddress in matching received frames · 7f668484
      Alessandro Rubini authored
      
      A WR socket registers using a specific mac address and the receiving code
      uses the mac address to match the frame.  This is going to be a problem
      with the new PTP code, as pdelay frames use a different mcast mac address.
      Moreover, if we go to UDP, stuff gets worse.
      
      Packet filter rules are already in place for the new mac addresses, and
      we now need to relax the checking in the software stack.
      
      As a side effect, we avoid a number of broadcast frames, because wrpc-sw
      now replies to unicast ARP requests.
      
      What happened before:
      
         16:27:07 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:27:08 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:27:09 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:27:12 00:0b:ab:7c:8e:4a > ff:ff:ff:ff:ff:ff who-has ...107 tell ...200
         16:27:12 00:26:7b:00:04:18 > 00:0b:ab:7c:8e:4a ...107 is-at 00:26:7b:00:04:18
      
      what happens now:
      
         16:42:27 00:0b:ab:7c:8e:4a > 00:26:7b:00:04:18 who-has ...107 tell ...200
         16:42:27 00:26:7b:00:04:18 > 00:0b:ab:7c:8e:4a ...107 is-at 00:26:7b:00:04:18
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      7f668484
    • Alessandro Rubini's avatar
      lib/latency: changes to the better · 965efd02
      Alessandro Rubini authored
      
      This is incompatible with the previous implementation
      
       - sequence number is 32 bits
       - frames are 1,2,3 not 0,1,2 (so to be *more* incompatible)
       - no fake latency values are printed if frames are lost
       - the message is one line instead of two, and cleaner too
       - the sender reminds it's sending every 10s.
      
      The receiver's messages now include the sequence number, so we can
      match different receivers on a network.  Also, The sender's message
      report both TAI and sequence, so we can related frames to the time of
      day.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      965efd02
  4. May 18, 2016
    • Alessandro Rubini's avatar
      lib/latency: a latency-test engine, to check WR networks · 3edcad86
      Alessandro Rubini authored
      
      This adds a tool to check the latency in the network. It is selected
      at build time (config) time.  If you select CONFIG_LATENCY_PROBE you
      are then asked for a CONFIG_LATENCY_ETHTYPE.
      
      The sender node sends three frames, as broadcast in that ethertype
      within the current vlan (or no vlan).  The first frame is at priority
      7, the second at priority 6, and the third includes the egress
      timestamps for the former ones. Each group has a sequence number
      and group identifier.
      
      If the tool is built in wrc.bin, every node acts as a receiver. To
      enable a sender issuing the set of frames every 5 seconds, use "ltest 5".
      To disable use "ltest 0".
      
      The receiver prints the measured latency, and warns if it receives
      frames that are not in the proper order, using the sequence and frame
      type fields.
      
      This is a successful run crossing two wr switches:
      
          latency prio7: 5142.775
          latency prio6: 4998.775
          latency prio7: 4822.773
          latency prio6: 5142.773
          latency prio7: 5142.771
          latency prio6: 5286.771
      
      Later on, we'll make the thing less verbose, and we'll have threshold
      to signal a problem if the network went slow. Currently we just print
      all collected data.
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      3edcad86
    • Alessandro Rubini's avatar
      net: add priority in the wr_socket · 1b9a2bf4
      Alessandro Rubini authored
      
      This is used by the latency measurement, to send high-priority frames
      
      Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
      1b9a2bf4
    • Alessandro Rubini's avatar
      eec6c68e