Questions tagged [openflow]

OpenFlow is a communications protocol that gives access to the forwarding plane of a network switch or router over the network

The most common and widely deployed southbound interface towards SDN (Software Defined Networking) devices is known as the OpenFlow (OF) protocol. This protocol were originally developed at Stanford university during the Ethane project, but has become a de facto industry standard. In later years, the protocol has come under control and development from the Open Networking Foundation (ONF).

A secure socket layer (SSL) (or TSL) connection is set up between an SDN controller and the OF device. Then the OF protocol is used to push OF rules to the flow tables of that device. These rules will have match fields, and action fields. New packets that arrive will be checked towards the flow tables and if a match is found, the corresponding action to that match will be implmented (e.g. outputport, drop, decrement ttl, pop tag etc). If the packet doesn't match any of the flow tables (which could be multiple in a pipeline fashion), it will be encapsulated and sent to the controller. The packet will be processed at the controller and will then be returned to the switch together with a new flow rule. New flow rules will also be sent to other devices in the network that the SDN controller controls. This way a 'path' will be created for the flow all the way through the network. Later revisions of the OF protocol also implments support for group tables and meter tables.

Resources

380 questions
2
votes
0 answers

What does ANY mean in a dpctl dump-flows output

I have created a controller with which I am trying to add some simple routing rules. One difficulty with doing this is how to interpret the output from the dpctl dump-flows command which outputs a lot of information that I dont really find relevant…
J.Doe
  • 1,502
  • 13
  • 47
2
votes
1 answer

How to obtain packet count of TCP packets?

I am retrieving flow statistics using a _flow_stats_reply_handler as demonstrated in the Ryu Traffic Monitor example. I print using the following: file.write("\n{},{},{},{},{},{},{},{},{}" .format(ev.msg.datapath.id, …
HCF3301
  • 508
  • 1
  • 4
  • 14
2
votes
1 answer

How to add controller on mininet

Hi :) I'm a newbie on openflow & mininet. I experiment my network. And I established my virtual network using mininet. sudo mn And on this existing network, I want to add one more controller. I heard mininet> py net.addController('c1') above code…
김홍규
  • 21
  • 1
  • 2
2
votes
0 answers

Pause Open vSwitch (OVS) with the POX controller

I am trying to pause an OVS with POX as described in http://www.openvswitch.org/support/dist-docs/ovs-ofctl.8.txt The respective add-flow command is (thanks to pchaigno for his answer): sudo ovs-ofctl add-flow c2…
Daniel
  • 440
  • 4
  • 13
2
votes
1 answer

Pause controller action in Open vSwitch

I am trying to instruct the switch to pause as described in http://www.openvswitch.org/support/dist-docs/ovs-ofctl.8.txt. It is said that the action should be controller(key=value), I assume that pause is the key and True is the value. I tried…
Daniel
  • 440
  • 4
  • 13
2
votes
0 answers

Capturing Openflow traffic with Wireshark in CentOS 6.7

I want to capture Openflow packets with wireshark on a CentOS 6.7 machine. Now the problem is, the wireshark I get from the Repositories with "yum install wireshark" is only version 1.8 and doesnt have a Openflow Dissector to understand Openflow. I…
marcels93
  • 55
  • 9
2
votes
0 answers

How to change routing algorithm of openflows(switch) Opendaylight?

I am new in Open-daylight . I run a topology in Mini-net then make traffics with D-IT-G . I want to route this traffics with Dijkstra's algorithm but i don't know how . How can i change default algorithm please help me step by step ?
Omid Erfanmanesh
  • 547
  • 1
  • 7
  • 29
2
votes
3 answers

How to install openflow on Ubuntu

I want to install openflow on ubuntu, but I find that there are many ways to install openflow. How to start the openflow by one controller and one switch. If possible, give me a demon could run.
Su_27SK
  • 23
  • 1
  • 5
2
votes
1 answer

Efficiently compare all combinations of two in a Scala collection

Working with OpenFlow I want to compute how many pairs of flows satisfy the following condition (Given any two flows, for example f1 and f2): f1's Src ip must be equal to f2's Dst ip. f1's Dst ip must be equal to f2's Src ip. f1 and f2 must have…
Alejandro Alcalde
  • 5,990
  • 6
  • 39
  • 79
2
votes
1 answer

Getting OpenFlow rules from a datapath

In Ryu Controller, for a selected datapath, how can I get the OpenFlow rules from the switch? For example, for the rule below: cookie=0x0, duration=18575.528s, table=0, n_packets=1, n_bytes=98, priority=1,ip,in_port=3,nw_dst=10.0.0.1…
Anamort
  • 341
  • 4
  • 17
2
votes
0 answers

Get Openflow version of connected switch using opendaylight

I am writing a module in Opendaylight, which needs access to OF version of the connected switch. Through Node.java + FlowCapableNode.java I am able to get little info about the switch, but I am not able to get the OF version of the switch. I have…
invoker
  • 21
  • 1
2
votes
1 answer

Ryu framework, tcp_flags in parser.OFPMatch

I am trying to match flow in openflow-compatible switch (openflow 1.5) by using ryu framework. As far as I know, openflow version 1.5 supports 'tcp_flags' match conditions, and Ryu also does. So, when I am trying to code like: match =…
passsp
  • 61
  • 5
2
votes
1 answer

Ping fails in Mininet, RYU - OpenFlow 1.3

I am using Mininet, RYU controller and OpenFlow 1.3, to create a topology where host h1 is connected to host h2 using a switch p0es0 in the following way: h1 h1-eth0:p0es0-eth3 h2 h2-eth0:p0es0-eth4 In my Ryu Controller application, I have the…
Abhishek Balaji R
  • 665
  • 10
  • 25
2
votes
3 answers

Parsing Packets as they get received by a switch in Mininet

I have been reading about creating a learning switch in Mininet with different controllers (POX, Ryu ..etc). However, there are few things which are not clear to me and I hope to get help from here. My questions is: I need to have control over the…
OiaSam
  • 560
  • 7
  • 19
2
votes
0 answers

Implementing OpenFlow enabled Wifi network in NS-3

I'm currently using NS-3 network simulator to implement a Wifi network 802.11b which uses OpenFlow. I'm trying to link my nodes and my switch devices. As shown in the openflow-switch.cc file this is done as follows with csma: // Create the csma…
SH151
  • 136
  • 7
1 2
3
25 26