Commit Graph
113 Commits
Author SHA1 Message Date
Glen Gibb 27e6742eaa regress: flow expiry with multiple packets
An optimization done by some switches is to push an exact-match entry into
the flow tables when a wildcard flow has a match.

Enhance the test_delete_send_flow_exp test to test a flow with multiple
packets to verify that the statistics for a wildcard flow include any
special hidden exact-match flows.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 17:36:42 -08:00
Glen Gibb 46f85a45ed regress: Document new cmd line args
Added documentation for:
 - testPath
 - listener
 - no_vlan
 - no_slicing
 - no_barrier
2010-03-10 17:36:42 -08:00
Glen Gibb 5654fd2ea4 doc: update change logs to reflect regress changes 2010-03-10 17:36:42 -08:00
Glen Gibb f0e9c6f92d regress: Provide support for testing Open vSwitch
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 17:36:34 -08:00
Glen Gibb 319065259b regress: Updates to HP-specific code
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 17:35:25 -08:00
Glen Gibb 25ceca2b66 regress: test setting of src/dst MAC + src/dst IP
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb bc3d3a58f2 regress: run fwd broadcast exact port on all ports
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb d915e2b6e1 regress: support vlan port names with a period (.)
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb 12f93c9261 regress: formatting clean-ups
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb 99743eb3d2 regress: ToS code clean-up
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:17 -08:00
Glen Gibb 1fb5b36d3e regress: eliminate duplicate variable declarations
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:16 -08:00
Glen Gibb efb47d75c0 regress: --no_vlan to disable VLAN testing
VLAN not tested if --no_vlan option is specified. Allows tests to run
against switches that don't support VLAN tags in OpenFlow.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:16 -08:00
Glen Gibb af01ea5408 regress: --no_barrier to disable barrier tests
Barrier tests can be disabled via the --no_barrier command line arg

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:43:10 -08:00
Glen Gibb 84bd3acc54 regress: --no_slicing cmd line arg
Add the ability to disable all slicing tests via --no_slicing flag

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb b585b4c1aa regress: add delays after switch config
Some OpenFlow switches need time to process switch config messages.
Sleep with user-specifiable delay.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb 9bcf899001 regress: improve handling of --controller cmd line arg
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb ad4e98a1bd regress: --listener cmd line arg to specify dp connect str
Previouly set the string to connect to the datapath via platform (user
or user_veth). Option allows more complex connect strings to be specified.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb 7e6ecbd095 regress: in_port/out_port cleanups
Don't do +1 when using in_port/out_port for generating MAC/IP addresses

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:41 -08:00
Glen Gibb 9f48a6f784 regress: new flow mod creation func
Added: create_flow_mod_from_udp_actionbytes
  - allows creation of a flow mod using an array of action bytes

Updated: combine_args
  - Return an array of action bytes instead of modifying a flow mod

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb 72de8f4ae2 regress: formatting fix
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb a22ea1d7e5 regress: Ensure VLAN VID is 12-bits in combine_args
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb 11001360a3 regress: del/show flow support
Rename del_flows to dpctl_del_flows
Add dpctl_show_flows command

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb da83b3ec93 regress: improve field description in compare calls
Add the message name to the field name in calls to compare. Also add
the packet type when applicable for packet ins.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:27:40 -08:00
Glen Gibb 55290d4f17 regress: cmd line flag to execute single test
All tests are run by default. Provide a command line flag to run a
single test.

Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-10 16:26:42 -08:00
Glen Gibb 3e501a2d30 regress: use sprintf to create strings of digits
Change submitted by: Jean Tourrilhes <jt@hpl.hp.com>
2010-03-03 17:04:22 -08:00
Glen Gibb b2ad142a5d regress: automate dependency installation
Added support for 64-bit Ubuntu/Debian systems
2009-12-19 11:27:31 -08:00
Glen Gibb eb81428386 version: set version number to 0x01
First non-experimental version number
2009-12-19 10:52:43 -08:00
Glen Gibb fa5935a558 regress: automate dependency installation
Added support for Fedora
2009-12-17 16:44:43 -08:00
Glen Gibb 9d98a30148 regress: automate dependency installation
Added support for Debian
2009-12-17 13:17:09 -08:00
Glen Gibb b5f91a1a01 regress: automate dependency installation
Provide script to automatically install dependencies necessary for
running regression tests. Currently supported OSes:
 - Ubuntu
2009-12-17 13:17:09 -08:00
Glen Gibb 284a7bfb19 doc: document regression changes in 1.0 2009-12-17 13:17:08 -08:00
Yiannis Yiakoumis 9e82ac43ce Bugfix for check overlap flag
We didn't detect flow-mod conflict when adding a finer granularity
flow which conflicts with an installed, coarser granularity flow.

Thanks Justin for pointing this out :
https://mailman.stanford.edu/pipermail/openflow-dev/2009-November/000529.html
2009-12-11 18:15:45 -08:00
Glen Gibb 47a0ed66bc Merge branch 'devel/yiannisy/slicing'
Conflicts:
	include/openflow/openflow.h
	regress/lib/Perl5/OF/OFUtil.pm
	regress/projects/black_box/regress/tests.txt
	udatapath/datapath.c
	utilities/wireshark_dissectors/openflow/packet-openflow.c
2009-12-11 18:11:16 -08:00
Mikio Hara f72223e66a Specify port number when requsting port stats
Enable the port stats for a particular port to be requested by
specifying a port number. Can request all port stats by specifying
OFPP_NONE for the port number.
2009-12-11 15:43:37 -08:00
Glen Gibb 22924bbfe9 Flow cookie regression tests
New regression tests based on existing tests:
 - test_flow_stats -> test_cookie_flow_stats
 - test_flow_expired -> test_cookie_flow_expired

New tests verify that the cookie value returned matches the cookie value
specified.
2009-12-11 15:43:37 -08:00
Glen Gibb a1e70c1bd1 Enable setting of cookies in forward_simple
forward_simple is a test function to forward a packet after setting up a
flow table entry. Allow a cookie to be specified.
2009-12-11 15:43:37 -08:00
Glen Gibb 00864063dc Support matching of cookies in flow expired
Flow cookies can be matched in flow expired messages. If the cookie is
not specified then no matching takes place.
2009-12-11 15:43:37 -08:00
Glen Gibb 80c577684f Ability to specify cookie when creating flow mods 2009-12-11 15:43:36 -08:00
Mikio Hara 1c9b2f7b2d IPv4 DSCP match: Add IPv4 DSCP field match feature
Note: Now regression test sets *and* tests the IPv4 DSCP bits.  Test
script was renamed from test_set_nw_tos to test_set_n_match_nw_tos.
2009-12-11 15:43:36 -08:00
Glen Gibb a75f9d48be Regression tests for ARP matching 2009-12-11 15:43:35 -08:00
Glen Gibb 77f0c84381 ARP functions in test libraries
Added the ability to test on ARP packets in the test libraries.
2009-12-11 15:43:35 -08:00
Glen Gibb 3da6276b55 ARP header len calc bug in test lib
ARP header length was incorrect, resulting in packets being incorrect lengths.
2009-12-11 15:43:35 -08:00
Rob Sherwood 20634da473 added dp_desc field to ofp_stats_desc
added a human readable string to ofp_stats_desc to describe
the datapath, e.g., "switch4 in closet 3b of Gates"

* updated openflow.h
* updated udatapath: defaults to "$HOSTNAME pid=$$"
* updated kernel datapath: defaults to "$HOSTNAME idx=$i"
* updated wireshark plugin
* added regression test for ofp_desc_stats
* addressed KK's review comments from:
    https://mailman.stanford.edu/pipermail/openflow-dev/2009-December/000545.html
2009-12-11 15:43:35 -08:00
David Erickson e224493afd Addresses issues raised by Brandon Heller's review 2009-12-11 15:43:35 -08:00
David Erickson bc94ac2e58 Improve flow duration precision
Improve precision of flow duration (time a flow has
been installed in a switch) from seconds to nanoseconds
to improve throughput measurement accuracy when using
flow stats messages. This implementation splits the
existing duration fields into duration_sec and
duration_nsec for both flow expiration and flow stats
messages. Passes included unit tests on Ubuntu 8.04.
2009-12-11 15:43:35 -08:00
Yiannis Yiakoumis f7d7efb043 Update testsuite with slicing tests.
Introduced the following tests :
 -> test_queue_config
 -> test_queue_stats
 -> test_forward_exact_queue.
2009-12-04 14:44:48 -08:00
Rob Sherwood 4e9d3f07f2 Updated contact information in README, etc.
Updated most references to contact
	openflow-discuss@openflowswitch.org
instead of
	info@openflowswitch.

Also added references to our bug tracking system:
	http://www.openflowswitch.org/bugs/openflow
2009-11-25 15:46:33 -08:00
Glen Gibb 39baa4058f Ensure flow_stats test returns an ofp_flow_stats
Fix the test_flow_stats test:
 - update the wildcard
 - specify valid IP addresses for src/dst
 - set the ethertype
 - verify that 1 ofp_flow_stats body is returned
2009-11-20 18:19:24 -08:00
Mikio Hara 7d1591aec9 Add debian new kernel module build style support
Please run configure as
	./configure --with-l26=/lib/modules/`uname -r`
instead of
	./configure --with-l26=/lib/modules/`uname -r`/build
2009-10-21 11:35:38 -07:00
Mikio Hara 83fa636860 Start port enumeration: Change OpenFlow enabled NetFPGA start port
enumeration at 1 (by tyabe@stanford.edu)
2009-09-01 15:54:01 -07:00