23
SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher R. Hertel WekaIO & Samba Team January 2019 SNIA SDC EMEA

Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

SMB3 in a Blended File Protocol FamilyRounding out your File Service Platform

Christopher R. HertelWekaIO & Samba TeamJanuary 2019SNIA SDC EMEA

Page 2: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Ask questions!

1Copyright © 2019 by Christopher R. Hertel

If I can't answer 'em, someone

here probably can.

Page 3: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

QuickIntroductions

2Copyright © 2019 by Christopher R. Hertel

Page 4: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Introductorationaryesquenessism

Me:

● Samba Team Elder

● SMB Wizard with...

The i n p e s e m n an t es l ho of m ye , m ol u s, m po , m pi f i r,

t e I t t Vo , or m te t lo .

3Copyright © 2019 by Christopher R. Hertel

Page 5: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Introductions

4Copyright © 2019 by Christopher R. Hertel

Me:

● I've written a bunch

of important SMB stuff

(mostly out of date now)

● These days, I integrate

SMB with

Distributed

File Systems

Page 6: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher
Page 7: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Introductions: SMBWho is this SMB Anyway?

SMB is Server Message Block

SMB has a long and and varied history, all the way back to PC-DOS and IBM.

6Copyright © 2019 by Christopher R. Hertel

Page 8: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

SMB History

What are SMB1, SMB2, and SMB3?

SMB1: The Original

❖ Created in the early 1980's by IBM

❖ Further development by 3Com, IBM, Intel, and Microsoft

➢ For PC-DOS, MS-DOS, and OS/2

➢ Dialect updates released withOperating System Updates

❖ Ported to Windows NT

➢ Final Dialect! "NT LM 0.12"

7Copyright © 2019 by Christopher R. Hertel

Page 9: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

What are SMB1, SMB2, and SMB3?

SMB2: Introduced with Vista!

❖ An Entirely New Protocol

➢ 1/4th as many message types

➢ No DOS or OS/2 Baggage

❖ Similar Design

➢ Familiar to SMB1 Developers

❖ Silently Negotiated

➢ Users neither knew nor cared

SMB History

8Copyright © 2019 by Christopher R. Hertel

Page 10: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

SMB History

What are SMB1, SMB2, and SMB3?

SMB3: Marketing Upgrade!

❖ An SMB2 Dialect; not a new Protocol

➢ Originally planned as 2.2

➢ Message structures are the same

❖ Adds Speed, Scalability, Reliability

➢ RDMA

➢ Multichannel

➢ Persistent Handles

➢ Scale-out & Failover Clusters

9Copyright © 2019 by Christopher R. Hertel

Page 11: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

SMB is a Network TransportSMB is Infrastructure

➢ A Reliable, Scalable, Authenticated, Signed, Sealed, Network Connection○ Remote Procedure Call (RPC)○ Remote Shared Virtual Disk (RSVD)○ Block I/O for Storage Spaces Direct

Think of SMB as a Transport.

10Copyright © 2019 by Christopher R. Hertel

Page 12: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

SMB History

What are SMB1, SMB2, and SMB3?

SMB1 is dead.

Copyright © 2019 by Christopher R. Hertel eleven

Page 13: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

SMB History

What are SMB1, SMB2, and SMB3?

CIFS is deader.

Copyright © 2019 by Christopher R. Hertel 12

Page 14: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Meet the Family

13Copyright © 2019 by Christopher R. Hertel

Page 15: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Blending SMB

Copyright © 2019 by Christopher R. Hertel

SMB is just like POSIX, Right?● Special-purpose storage

○ Remember record-oriented?○ Native Database storage?○ Those key:value drives?

● Object Stores● ...and Windows!Problem: POSIX is taught in

programming classes. It's whatdevelopers know.

14

Page 16: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Blending SMB

Copyright © 2019 by Christopher R. Hertel

Building the Blended Family

Be Prepared for the Challenges● Create common

ground● Overcome

cultural barriers● Deal with unmet

expectations

15

Page 17: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Some Things You Should Know● Opening a file is just plain diffrn't.

● Hundreds vs. Millions of permutations

SMB is not really a "protocol", per. Se.

It is made up of "redirected" function

calls.

Blending SMB

Copyright © 2019 by Christopher R. Hertel 16

Page 18: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Blending SMB

Copyright © 2019 by Christopher R. Hertel

Identification● Who are you?

Authentication● Prove it!

Authorization● This is what you are

allowed to do.

17

Page 19: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Blending SMB

Copyright © 2019 by Christopher R. Hertel

Identification● UIDs & GIDs vs. SIDs

Authentication● Kerberos? NTLM?

Authorization● Attributes and

Permission bits

18

Page 20: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Copyright © 2019 by Christopher R. Hertel

Blending SMBUnlocking Locking

● Advisory vs. Enforced● File Locks vs. Share Modes● Byte Range Locks○ Merged vs. Stacked

● OpLocks and Leases● Handle Locks

19

Page 21: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Blending SMB

Copyright © 2019 by Christopher R. Hertel

Unicode● Windows uses UTF-16LE● Linux uses UTF8

File and Path Names● Reserved characters differ● Name length limits differ● Case Sensitivity

What's in a name?A rose by any other name would wither and die.

20

Page 22: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

Deep Dive SMB Integration

Copyright © 2019 by Christopher R. Hertel

Steve will present POSIX extensions to SMB3● This is something we had for SMB1● It is particularly useful when the client and server are

both POSIX(y), but they are both speaking SMB (a foreign language)

Volker will explore Winbind● Integrate Linux/Unix/POSIX

Systems into AD● Authoritative for Users

and Groups● Authentication and Authorization

21

Page 23: Rounding out your File Service Platform - SNIA | Advancing Storage … · 2019-12-21 · SMB3 in a Blended File Protocol Family Rounding out your File Service Platform Christopher

The End

The EndCopyright © 2019 by Christopher R. Hertel