seminas a secure middleware for wide area network
play

SeMiNAS: A Secure Middleware for Wide-Area Network-Attached Storage - PowerPoint PPT Presentation

SeMiNAS: A Secure Middleware for Wide-Area Network-Attached Storage Ming Chen Arun O. Vasudevan Kelong Wang Erez Zadok aov@nutanix.com kelong@dssd.com {mchen, ezk}@cs.stonybrook.edu Outline Background & Motivation Design


  1. SeMiNAS: A Secure Middleware for Wide-Area Network-Attached Storage Ming Chen Arun O. Vasudevan Kelong Wang Erez Zadok aov@nutanix.com kelong@dssd.com {mchen, ezk}@cs.stonybrook.edu

  2. Outline Ø Background & Motivation ¨ Design ¨ Implementation ¨ Evaluation ¨ Conclusions June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 2

  3. Cloud Computing June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 3

  4. Security Concerns of Cloud l Raised by cloud nature u Opaque & intangible u Multi-tenant u Large exploit surface u Complexity (buggy) l Intensified by high-profile incidents u Silent data corruption u Leak of intimate photos of celebrities u Leak of user accounts and credentials June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 4

  5. Securing Cloud Storage WAN WAN Clients LAN LAN Clients Untrusted Office-2 Office-1 Public Clouds Network stacks +++ Cloud services FS (Unionfs, Overlayfs) New challenges: Block (Device Mappers) 1. Cost-efficiency despite high latency Virt Device (RAID, FTL) 2. Heterogeneous clients & clouds Net-Dist +++ 3. Complex storage stack June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 5

  6. Outline þ Background & Motivation Ø Design ¨ Implementation ¨ Evaluation ¨ Conclusions June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 6

  7. SeMiNAS Architecture NFSv4 NFSv4 LAN WAN LAN WAN SeMiNAS SeMiNAS Clients Clients Untrusted Office-1 Office-2 Public Clouds Benefits of a middleware: 1. Easy management (a few proxies vs. many clients) 2. Simple key distribution without trusted third parties 3. Fit well with WAN caching and firewalls June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 7

  8. Why Use NFSv4? l Advantages over vendor-specific key-value stores u Open, pervasive, and standard § POSIX-compliant and cross-platform interoperability § Suffering less from data or vendor lock-in u Optimized for WAN § Compound procedures Amazon EFS § Delegations u Richer semantics § Simplify application development § More optimizations: server-side copying, ADB l Advantages over older versions u Easier administration with a single port u More scalable with pNFS u More secure with RPCSEC_GSS, ACL, and Labeled NFS June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 8

  9. SeMiNAS Data Path Client 1 Client 2 nfs_write( P ) nfs_read(): P LAN Caching Insert( P ) Lookup(): P Layer Persistent Cache Auth- < C, M > = < P, V > = Encrypt AuthEncrypt( K, P ) AuthDecrypt( K, C, M ) Layer SeMiNAS read_plus(): < C, M M > write_plus( C, M M ) WAN Cloud June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 9

  10. Meta-Data Management l Each SeMiNAS proxy has <SID, PubKey, PriKey> u Each proxy knows public keys of all proxies u Distributed via a secret channel or manually l Each file has a unique symmetric file key u Encrypted by master key pairs u Encrypt each block with GCM: l File layout: June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 10

  11. NFSv4-Based Optimizations (1) l NFS Data-Integrity eXtensions NFS Client LAN SeMiNAS WAN NFS Server Kernel Alternatives Drawbacks OS Concatenate a block and its Break close-to- MAC as a separate file. open consistency HBA Uses a separate file for all Add extra I/O and MACs of a file. disk seeks Device Map a block to a larger Waste space for block in cloud (16 è 20KB). small block sizes June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 11

  12. NFSv4-Based Optimizations (2) l Compound Procedures ‐ l SeMiNAS Compounds Write header after creating a file 1. Read header after opening a file 2. Update header before closing a dirty file 3. Read header when getting attributes 4. Get attributes after writing to a file 5. June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 12

  13. Outline þ Background & Motivation þ Design Ø Implementation ¨ Evaluation ¨ Conclusions June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 13

  14. SeMiNAS Implementation l NFS-Ganesha: a user-land NFS server u File System Abstraction Layer (FSAL) back-ends u FSAL_VFS, FSAL_PROXY , and stackable FSALs SeMiNAS Proxy NFS Server NFS Frontend NFS Frontend FSAL_PCACHE FSAL_VFS WAN FSAL_SECNFS NFS-Ganesha FSAL_PROXY Kernel OS / HBA NFS-Ganesha June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 14

  15. Extending DIX to NFS l Data Integrity eXtensions (DIX) in NFS u READ_PLUS u WRITE_PLUS June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 15

  16. Implementation Details l Details u Added caching and security layers in NFS-Ganesha u Added support of multiple stackable layers u Extended DIX further to NFS u Cryptographic C++ library: cryptopp u Pass all applicable xfstests cases l Development efforts u 25 man-months of 3 graduate students over 3 years u Added 13,000 lines of C/C++ code to NFS-Ganesha u Fixed 11 NFS-Ganesha and 4 kernel bugs June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 16

  17. Outline þ Background & Motivation þ Design þ Implementation Ø Evaluation ¨ Conclusions June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 17

  18. Setup & Workloads l Experimental setup u Five NFS clients: 1G RAM; 6-core CPU; 10GbE NIC u SeMiNAS proxy: 64G RAM; 6-core CPU;10GbE NIC for LAN; 1GbE NIC for WAN; 200GB SSD for cache u Server: 64G RAM; 6-core CPU; 1GbE NIC; 20GB virtual SCSI DIX disk backed by RAM l Workloads Micro-Workloads Filebench Workloads Random file read/write NFS Server File creation Web Proxy File deletion Mail Server June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 18

  19. Different R/W Ratios 120 Normalized Speed (%) -46% è +4% 100 80 60 30ms 40 20ms 20 10ms 0 1:5 1:4 1:3 1:2 1:1 2:1 3:1 4:1 5:1 Read-to-Write Ratio write intensive read intensive (a) Persistent Cache ( FSAL PCACHE ) Off -8% è +4% 120 Normalized Speed (%) 100 80 60 30ms 40 20ms 10ms 20 0 1:5 1:4 1:3 1:2 1:1 2:1 3:1 4:1 5:1 Read-to-Write Ratio write intensive read intensive (b) Persistent Cache ( FSAL PCACHE ) On June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 19

  20. File-Creation Workload +35% l SeMiNAS makes file creation faster u TCP Nagle Algorithm u Multiple threads sharing one TCP connection u SeMiNAS write extra file headers June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 20

  21. Filebench NFS-Server Workload l SeMiNAS performance penalty u 8 − 17% without cache u 18 − 26% with cache u Decreases as network delay increases June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 21

  22. Filebench Web-Proxy Workload 1000 1000 baseline-nocache Throughput (Ops/Sec) baseline-cache 800 800 seminas-nocache 600 600 seminas-cache 400 400 200 200 0 0 0.001 0.01 0.1 1 10 0.001 0.01 0.1 1 10 Gamma Shape Parameter (log 10 ) Gamma Shape Parameter (log 10 ) (a) 10ms Network Delay (b) 30ms Network Delay l SeMiNAS makes web-proxy u 4 − 6% slower without cache u 9 − 19% faster with cache (because of TCP Nagle) June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 22

  23. Outline þ Background & Motivation þ Design þ Implementation þ Evaluation Ø Conclusions June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 23

  24. Conclusions l We proposed SeMiNAS to secure cloud storage l We designed SeMiNAS to u Be a middleware u Take advantages of NFSv4 compounds, and u Data Integrity eXtensions l We implemented SeMiNAS based on u Add security stackable file-systems layers u Extend DIX to NFS l We evaluated SeMiNAS: u small performance penalty less than 26% u performance boost by up to 19% June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 24

  25. Limitations & Future Work l Limitations u Not safe against replay attacks u Does not handle side-channel attacks l Future work u Efficiently detect replay attacks § Avoid using expensive Merkle trees § Synchronize file versions among proxies u File- and directory-name encryption u Transactional Compounds https://github.com/sbu-fsl/txn-compound June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 25

  26. SeMiNAS: A Secure Middleware for Wide-Area Network-Attached Storage Q & A Ming Chen Kelong Wang Arun O. Vasudevan Erez Zadok kelong@dssd.com aov@nutanix.com {mchen, ezk}@cs.stonybrook.edu

  27. Network File System (NFS) l An IETF standardized storage protocol l Provides transparent remote file access l Shares files over networks June 6, 2016 SeMiNAS (ACM SYSTOR 2016) 27

Recommend


More recommend