Hi Nadim,

First, please confirm your situation. You want to realize the following?
1. H1 send some packets
2. S1 send the received packets to C1 as Packet-In messages
3. C1 send the packets as Packet-Out to S2
4. S1 send the packets to S3
5. S3 send the packets to C2 as Packet-In messages

And, in the above scenario, you need to determine the packets are sent from C1
or not at S3, then you want to add some labels or flags on the sent packets,
right?

For adding a label or vlan_id on C1, you can use OFPActionPushMpls or
OFPActionPushVlan actions, I guess.

e.g.)
        # Add a new VLAN header and set VLAN-ID, then output
        actions = [
            parser.OFPActionPushVlan(),
            parser.OFPActionSetField(vlan_vid=(100 | ofproto.OFPVID_PRESENT)),
            parser.OFPActionOutput(out_port),
        ]
        out = parser.OFPPacketOut(datapath=datapath, buffer_id=buffer_id,
                                  in_port=in_port, actions=actions, data=data)
        datapath.send_msg(out)


Thanks,
Iwase


On 2018年03月30日 00:52, emi.hacker via Ryu-devel wrote:
Hello all,

  C1                             C2
  |    \                              |
S1-- S2 --------------------S3
  |
H1

In this  senerio, H1  sends pkt to S1, after that to C2 through S2 and S3.

I need S1 to add a label or flag (e.g A = 10), and I get it in Packet-In messages to make a decision.

I think this is possible in Ryu controller, So could you give me a simple 
example ?

Best Regards,
Nadim



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot



_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to