- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- SetField actions are not being applied to PacketOu...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-07-2015 11:00 AM
09-07-2015 11:00 AM
SetField actions are not being applied to PacketOut messages
Hello,
I'm currently running the HP SDN VAN controller v2.5.15.1175 connected to an HP 3800 switch with two VLANs, one for the openflow traffic and another one for the controller. Both VLANs are, however, connected to each other. Both are using Openflow 1.3.
The software we're currently developing consist on the following:
- One flow which captures ARP traffic directed to a non-used IP address (let's say 10.250, for example), and sends it to the controller. There, the controller forges an ARP reply packet with a random MAC Adress and routes it to the input port.
- One flow which captures IP traffic directed to the same IP address mentioned above, 10.250, and sends it to the controller. There, the controller grabs a MAC-IP pair from a config file (say, 10.11 and aa:bb:cc:dd:ee:ff), both belonging to a machine up & running and connected to the openflow VLAN, and creates another flow which redirects all traffic directed to 10.250 from the src ip of the captured packet to this machine (say, 10.2). Then, it applies this actions to the packet and calls send() on it.
Also, a flow for the reverse translation is also created (capture packets from 10.11 directed to 10.2 and change the source address to 10.250.
All these flows have their output action set to Port.FLOOD, as well the output action of the packetOut sent by the controller.
With this setup, I'm basically executing an IP forwarding, changing 10.250 by 10.11.
However, this works only for the second and following packets, the first one (which was captured by the controller and then altered) is not changed in anyway (checked it with a machine running wireshark on the same VLAN).
I've double and triple checked the documentation, and afaik this SHOULD work, but it does not.
I'm pretty clueless here, to be honest. Any help would be greatly appreciated.
Here are the key parts of the code I'm running: http://pastebin.com/1cZkGkPc
Best regards, Roberto.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 05:59 AM
09-08-2015 05:59 AM
Re: SetField actions are not being applied to PacketOut messages
Hi Roberto,
If you do a capture on the controller, can you see it send the openflow messages to the switch with the packets (both for the forged ARP reply and the altered first packet)? Could you create a capture file (make sure the full frame is captured: tcpdump -s 1500 -w filename.pcap) and post it? Thanks!
Best Regards,
Wouter
HP SDN CoE Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2015 09:40 AM
09-08-2015 09:40 AM
Re: SetField actions are not being applied to PacketOut messages
Hello,
First of all, thanks for the quick response. I leave the .pcap file here (the forum does not allow me to upload pcap files).
Please note that some of the openflow matches might be slighly different from the example I posted above (the actions are the same), as I simplified them in order to make the message shorter. The issue, however, is the same: The same actions are used to set the flows (which work) and applied to the packetOut() message (which doesnt).
Best regards, Roberto.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2015 04:42 AM
09-10-2015 04:42 AM
Re: SetField actions are not being applied to PacketOut messages
Hi Roberto,
Thanks for the capture file! I had a look at it, but I would like to understand your environment better before drawing any conclusions. It's probably easier to do this off-line. I'll send you a PM with my contact details.
Best regards,
Wouter
HP SDN CoE team