Upgrade to Pro — share decks privately, control downloads, hide ads and more …

LNST - Automated and Portable Network Tests

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers.

LNST - Automated and Portable Network Tests

Video from Devconf.cz: http://youtu.be/N8XZX_jhjSk

In this presentation, we would like to introduce a tool we have been working on for the last couple of months. Our main goal is to make networking tests and reproducers as automated and portable as possible.

Testing network stacks requires a fair amount of configuration to be done on multiple machines. The configuration itself is a part of the test. However, it is often highly dependant on the environment and unfortunately, when the environment changes (due to move to a different hardware/site, changes in the addressing, or simply updates of the operating system) the configuration often breaks.

With LNST, we try to overcome these problems of transferring network configuration between different environments. We will demonstrate the ideas and the concepts we are working with, as well as the features that are a part of Linux Network Stack Test.

Avatar for Radek Pazdera

Radek Pazdera

March 27, 2013

Other Decks in Technology

Transcript

  1. Linux Network Stack Test Automated and Portable Network Tests Red

    Hat Radek Pazdera March 27, 2013 Abstract Introduction of our approach towards effective network testing.
  2. Our Goal 2/21 A library of network tests to easily

    catch regressions in networking code
  3. The Problem Is Portability 3/21 Simple Ping Test $ ping

    192.168.0.2 The test will break when the addresses change
  4. And Too Much Configuration 4/21 Simple Bonding Configuration ip addr

    flush eth4 ip addr flush eth1 modprobe bonding max bonds=0 echo "+ bond0 " > /sys/class/net/bonding masters ip link set eth4 down echo "+ eth4 " > /sys/class/net/ bond0 /bonding/slaves ip link set eth1 down echo "+ eth1 " > /sys/class/net/ bond0 /bonding/slaves ip addr add 192.168.100.240/24 dev bond0 ip link set bond0 up
  5. Network Testing Tool/Framework 5/21 To fully automate test execution and

    handle even the configuration of advanced networking setups with bonds, VLANs, and teams
  6. Future Features 19/21 Close integration with libvirt LNST can change

    the infrastructure if used with virtualization Adding and removing interfaces from virtual machines Controlling routers/switches GUI for interactive editing of XML recipes