Monday, December 2, 2019

Problem with simple rerouting in SDN networks on Extreme Network switches with openflow protocol, using floodlight controller

Hello, so I need to simply just redirect flow but can't find right way to do this.
First of all, I have simple network, with 3 identical switches(S1-S3) all of them are configured and enabled openflow in version 1.3, and are connected to same controller - Floodlight. Also they work on hybrid mode.
Each Switch has at least one host(H1), all hosts are seeing eachother and can communicate between themselfs.
Also I have cleared default flow - one which pushes all flow into controller and replaced with flow that allows 'Normal' flow, so everything works fine.

Now I want to push flow through another switch/host like:
originally:
S2H1 ---> S1H2
but I want to send through S3:
S2H1 ----> S3H1 ----> S1H2

I tried with following Floodlight REST API requests:
{

"switch":"xxx.xxx.xxx",

"name":"some_name",

"cookie":"0",

"priority":"0",

"hard_timeout":"120",

"eth_type":"0x0800",

"ipv4_src":"10.0.151.2",

"ipv4_dst":"10.0.150.15",

"active":"true",

"actions":"set_field=ipv4_dst->10.0.152.2"

}
and i can push that entry to controller, but it isn't shown on switch after command:
show openflow flows

I have also tried redirecting with ports: on S2 if ipv4_src was 10.0.151.2 and dst was 10.0.150.15, then whole flow was redirect into port 3 which was connected to S3, there was flow - if flow in port 2(connected to S2) the redirect to port 2(connected to S1)
And it kinda worked, because switches applied this flows, but there was no traffic - sflow-rt didn't saw anything

Is here someone who may have an idea how to do/bypass this?
Sorry if post is chaotic or grammaticly incorrect, english is my second language



No comments:

Post a Comment