Changes between Version 3 and Version 4 of JoeSandbox/OpenFlowNATExample/Execute
- Timestamp:
- 08/27/14 13:46:12 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
JoeSandbox/OpenFlowNATExample/Execute
v3 v4 113 113 }}} 114 114 115 == 2Handle ARP and ICMP ==115 == 3 Handle ARP and ICMP == 116 116 One of very common mistakes that people make, when writing OF controller, is forgetting to handle ARP and ICMP message and finding their controller does not work as expected. 117 117 118 === 2.1 ARP ===118 === 3.1 ARP === 119 119 As we mentioned before, we should insert rules into the OF switch that allow ARP packets to go through, probably after the switch is connected. 120 120 121 === 2.2 ICMP ===121 === 3.2 ICMP === 122 122 Handling ARP is trivial as NAT does not involve ARP. However, it's not the case for ICMP. If you only process translation for TCP/UDP, you will find you cannot ping between `outside` and `insideX` while nc is working properly. Handling ICMP is even not as straightforward as for TCP/UDP. Because for ICMP, you cannot get port information to bind with. Our provided solution makes use of ICMP echo identifier. You may come up with different approach involves ICMP sequence number or others. 123 123