- Community Home
- >
- Networking
- >
- Software Defined Networking
- >
- Re: replying ARP message
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
02-23-2014 11:05 PM
02-23-2014 11:05 PM
replying ARP message
Hi
I have intercept a ARP request packet from a director packet handler.
I wish to create an ARP reply message.
I have created a packetout message and fill in the ARP reply packet data.
I can see the OFP+ARP packet out message in wireshark with ARP reply message embedded .
But there is no ARP reply packet .
I have done the following :
OfmMutablePacketOut packetout = (OfmMutablePacketOut)MessageFactory.create(version, MessageType.PACKET_OUT);
ActOutput act = (ActOutput)ActionFactory.createAction(version,
ActionType.OUTPUT,context.getPacketIn().getInPort(),ActOutput.CONTROLLER_NO_BUFFER);
packetout.inPort(context.getPacketIn().getInPort());
packetout.addAction(act);
packetout.bufferId(BufferId.NO_BUFFER);
packetout.data(<arp reply data byte>);
controllerService.send(packetout.toImmutable(), context.srcEvent().dpid()); // where context is the MessageContext
Anyone has any tips how i should solve this ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2014 10:42 PM
02-26-2014 10:42 PM
Re: replying ARP message
I have change the ActOutput Port to Port.IN_PORT, this seems to solve the problem .
ActOutput act = (ActOutput)ActionFactory.createAction(version,
ActionType.OUTPUT,Port.IN_PORT,ActOutput.CONTROLLER_NO_BUFFER);
packetout.inPort(context.getPacketIn().getInPort());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-03-2014 10:56 AM
03-03-2014 10:56 AM
Re: replying ARP message
Hi,
Please let us know if your problem is solved.
Please feel free to reply incase you have more questions around the same topic or open a new thread if new topic.
If you feel your question has been answered, please do let us know by marking this response as an accepted solution.
Thanks
HP SDN Team
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2014 04:41 PM
03-07-2014 04:41 PM
Re: replying ARP message
Just so you're clear on why this difference made things work:
- context.getPacketIn().getInPort() will be the ingress port for THIS packet
- Port.IN_PORT will be the ingress port for whatever packet MATCHED the rule which uses the ActOutput object
Chances are that the first ARP reply worked (because THIS packet is the MATCHED packet), and subsequent ARP replies didn't work because they came in on different ingress ports and matched the same rule.