vpn on nexys2 - lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/vpn.pdf ·...
TRANSCRIPT
![Page 2: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/2.jpg)
In a World of Rainbows and Unicorns
![Page 3: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/3.jpg)
IPsec: Encapsulation of Packets
![Page 4: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/4.jpg)
IPsec: The Big Picture with Packets
![Page 5: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/5.jpg)
After the Smell of Coffee...
![Page 6: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/6.jpg)
Networking, Nexys Style
![Page 7: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/7.jpg)
Original Target Idea
![Page 8: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/8.jpg)
Emulate the Hardware Cores
![Page 9: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/9.jpg)
(re)Insert Micron SDRAM support
![Page 10: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/10.jpg)
Insert Caches into Microblaze
![Page 11: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/11.jpg)
Micron can only be controlled by one
![Page 12: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/12.jpg)
Merge Brain and Emulator
● This is the first iteration that works.
● All calculations are done in software on the Brain core.
● This means no hardware accelerators.
![Page 13: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/13.jpg)
Appending Hardware Accelerators
![Page 14: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/14.jpg)
Lessons Learned (Nexys)
Nexys has a very limited amount of RAMB16 / BRAM blocks.
pmodnic is really buggy, example from errata:
"The Receive Packet Pending Interrupt Flag (EIR.PKTIF) does not reliably/accurately report the status of pending packets."
Networking on Nexys is sub- optimal.
● Recieve Packet (NIC)● Extract Packet via SPI● Construct an Answer● Insert Packet via SPI● Send Packet (NIC)
Microblaze is too slow to do networking at reasonable speeds.
![Page 15: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/15.jpg)
Lessons Learned (Supporting Systems)Auxiliary systems needs time to be configured. The Linux VPN system took days.
Spend some time to learn your tools... Wireshark can decrypt packets!
![Page 16: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/16.jpg)
Lessons Learned (Work Methods)Time spent planning is time saved debugging.
BUT: No plan survives intial contact with the enemy.
Starting with a big prototype and then successively reduce it is inefficient if not impossible. GUI tools are fine for one time operations. Butrepeated tasks are more effective when scripted.
Splitting up the workload and working independent of each other is problematic.
Individual work can cause things to be lost in merging, even with tools like GIT.
Exemple; this line was lost:#define WORDS_BIGENDIAN
It cost around 25h to resolve.
![Page 17: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/17.jpg)
How will the Demonstration Look?
![Page 18: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/18.jpg)
How will the Demonstration Look?
![Page 19: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/19.jpg)
How will the Demonstration Look?
![Page 20: VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf · 2011. 10. 31. · VPN system took days. Spend some time to learn your tools... Wireshark](https://reader034.vdocuments.us/reader034/viewer/2022052016/602efd735c30a415ea044676/html5/thumbnails/20.jpg)
How will the Demonstration Look?