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
3
votes
2 answers

How to add flow table on each two switches? (mininet)

I set topology as can seen in the image below. I want to add different flow-tables to each switch. But if I type dpctl add-flow in_port=1,nw_dst=10.0.0.2,actions=output:3 the flow table is added to both s1 and s2! How can I add a different…
Jungwon
  • 35
  • 1
  • 6
3
votes
1 answer

mininet simulation without controller and with

Whats the difference between using mininet simulation without controller and with controller? Whats the point to use simulation without controller? Sorry for noob question. Many thanks,
Boruncik
  • 31
  • 1
3
votes
2 answers

Ryu Controller Drop Packet

How do I send a flow entry to drop a package using Ryu? I've learned from tutorials how to send package out flow entry: I define the action: actions = [ofp_parser.OFPActionOutput(ofp.OFPP_FLOOD)] Then the entry itself: out =…
HSC
  • 75
  • 1
  • 8
3
votes
1 answer

Difference between instructions and actions in OpenFlow

In OpenFlow protocol we have a flow table (or multiple flow tables). Each flow table in the switich contains a set of flow entries. Each flow entry contains header fields, counters and a set of instructions or actions to be applied. Instrucions are…
Filip Kowalski
  • 144
  • 1
  • 3
  • 15
3
votes
1 answer

connecting open vswitch with two virtual machines

I'm running an Open VSwitch on a VirtualBox VM, i want to connect 2 VMs that are running on VirtualBox into OpenVswitch. i did these things: 1)first i made an VM running ubuntu (lubuntu), and installed ovs using the following command sudo apt-get…
pouya
  • 51
  • 1
  • 7
3
votes
1 answer

How correctly convert integer to bitstring?

I have a question: using new libs (loom, ofs_handler, of_driver) I need to send settings message to switch. I have to create record like this: -record(ofp_field, { class = openflow_basic :: ofp_field_class(), name ::…
3
votes
1 answer

POX l3_learning example

I'm trying to learn from the forwarding.l3_learning example in POX controller. In the expiration handler, if the time of a packet in buffer is expired it's removed from the controller. Later the controller instructs the switch to drop the packet in…
Daniel
  • 440
  • 4
  • 13
3
votes
0 answers

Paramiko.ssh_exception.SSHException: Channel closed

I just encountered the problem with connecting the SDN switch, pica 8 3290, with ryu's of-config library and python paramiko library. Here's the traceback…
Shine Hsu
  • 63
  • 1
  • 5
3
votes
1 answer

How to check which ports are connected to host in Mininet using open vswitch and a Pox controller?

I am trying to write a Pox controller using python. The environment is set up using Mininet and the switch type is ovsk (open vswitch). For each individual switch, some of the ports are connected to hosts, some of them are connected with the other…
VoidBunny
  • 67
  • 2
  • 5
3
votes
3 answers

Simulation of LTE networks using Mininet

I am planning to do a project on WIFI offloading using Software Defined Networking. Basically to switch the signals from WIFI to LTE and vice-versa based on the signal strength. Could anybody let me know how i could simulate this and carry out…
Varun U
  • 157
  • 1
  • 3
  • 13
3
votes
3 answers

Is there any simulator with OpenFlow support?

I want to simulate OpenFlow to check its performance and efficiency in certain framework. How can I do that without using actual openflow enabled switches?
Adamant Argh
  • 83
  • 2
  • 8
2
votes
2 answers

How to mention "--switch=ovsk,protocols=OpenFlow13" while making a topology using Mininet() class in Python?

Look at the following command - $ sudo mn --controller=remote,ip=127.0.0.1,port=6653 --switch=ovsk,protocols=OpenFlow13 --topo=tree,depth=2,fanout=4 I want to achieve this topology using Python code. So far I have got the following lines in python…
2
votes
0 answers

Generate traffic and measure qos parameters in custom mininet topology using Ryu Controller

I'm working on tweaking and testing QoS capabilities in SDN. I've tried POX and Ryu controller and run some custom topologies in mininet. However I need help for generating traffic in mininet topology. It seems that there are iperf and D-ITG for…
AJAY
  • 53
  • 6
2
votes
1 answer

adding a new protocol to the packet by Scapy, but I do not see the field on the controller or Wireshark

I am trying to add a metadata field to the pkt by Scapy. I use mininet as a platform to launch my network simulation. from scapy.all import * from datetime import datetime class Metadata(Packet): name = "Metadata" fields_desc = […
user13946815
2
votes
1 answer

Ping to all hosts works in spite of enabling firewall rule on SDN Floodlight Controller

I am running Floodlight SDN controller remotely and have a mininet topology with 2 switches and 2 hosts. In spite of enabling the firewall rule using REST API [curl command], I am able to ping all the hosts. Mininet Topo- sudo mn --topo=linear,2…
Prarthana Shedge
  • 135
  • 1
  • 3
  • 11
1
2
3
25 26