VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf ·...

20
Dan Kvelstad Michael Gissing Leo Bärring [email protected] [email protected] [email protected] VPN on Nexys2

Transcript of VPN on Nexys2 - Lunds tekniska högskolafileadmin.cs.lth.se/.../final_presentations/VPN.pdf ·...

Page 1: 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

Dan KvelstadMichael Gissing

Leo Bärring

[email protected]@[email protected]

VPN on Nexys2

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

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

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

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

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

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

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

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

(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

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

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

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

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

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

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

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

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

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

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

How will the Demonstration Look?