knowledge is imperfect
play

Knowledge is Imperfect A CTING ON S TALE , I NCONSISTENT OR M ISSING - PowerPoint PPT Presentation

Knowledge is Imperfect A CTING ON S TALE , I NCONSISTENT OR M ISSING D ATA U LF W IGER , F EUERLABS , I NC . GOTO Aarhus 2013 Wednesday, 2 October 13 Outline War stories No code, no algorithms, no Hadoop Thoughts The


  1. Knowledge is Imperfect A CTING ON S TALE , I NCONSISTENT OR M ISSING D ATA U LF W IGER , F EUERLABS , I NC . GOTO Aarhus 2013 Wednesday, 2 October 13

  2. Outline War ¡stories No ¡code, ¡no ¡algorithms, ¡no ¡Hadoop Thoughts The ¡code ¡may ¡well ¡be ¡broken ¡before ¡it’s ¡even ¡wri<en Crimson Tide (1995) 1:21:26 2 Wednesday, 2 October 13

  3. Experience Wednesday, 2 October 13

  4. Alaskan Adventure Worked ¡on ¡military ¡Command ¡& ¡Control and ¡Emergency ¡Response ¡in ¡Alaska ¡1989–1995 The ¡core ¡of ¡Command ¡& ¡Control ¡is ¡control ¡of ¡informaAon “Where ¡are ¡my ¡assets, ¡and ¡what ¡is ¡their ¡status?” ¡ (Col ¡Shepherd) Near ¡Real-­‑Ame World-­‑wide No ¡single ¡point ¡of ¡failure Pull ¡informaAon ¡from ¡any ¡source 4 Wednesday, 2 October 13

  5. Ericsson adventure 13 ¡years ¡building ¡telephony ¡systems ¡at ¡Ericsson World’s ¡first ¡carrier-­‑grade voice-­‑over-­‑packet ¡systems [1] 5 Wednesday, 2 October 13

  6. Feuerlabs Adventure—ongoing “ConnecAng ¡the ¡Internet ¡of ¡Things™” Building ¡modern ¡Connected-­‑Device ¡Management ¡services 6 Wednesday, 2 October 13

  7. Traits Wednesday, 2 October 13

  8. C2: Distinctive Challenges Assume ¡enemy... acFvely ¡tries ¡to ¡destroy ¡your ¡infrastructure acFvely ¡feeds ¡you ¡misleading ¡informaFon Deploy ¡anywhere, ¡anyAme US Marines CAC2 System Fallback: ¡fully ¡manual Mess ¡up—people ¡die! 8 Wednesday, 2 October 13

  9. Solutions (then) No ¡single ¡point ¡of ¡failure Full ¡asynchronous ¡replicaFon ¡(40 ¡sites) SynchronizaAon Control ¡access; ¡strict ¡ownership Rely ¡on ¡model ¡for ¡manual ¡operaFon Split ¡brain Site-­‑specific ¡data ¡cached ¡at ¡remote ¡sites Limited ¡connecAon ¡speed ¡(down ¡to ¡19.2 ¡KBps) Priority-­‑based ¡replicaFon 9 Wednesday, 2 October 13

  10. Telecom: Special Challenges Ubiquitous ¡service People ¡expect ¡it ¡to ¡always ¡work Emergency ¡calls Should ¡be ¡serviced ¡even ¡during ¡extreme ¡overload “User-­‑friendly” ¡failure ¡modes Few ¡seconds ¡setup ¡Fme Echo ¡cancellaFon, ¡speech ¡quality, ¡tolerable ¡delays Legacy GeneraFons ¡of ¡hardware, ¡soSware, ¡protocols 10 Wednesday, 2 October 13

  11. Device Management Challenges InformaAon ¡access ¡& ¡quality ConnecFon ¡quality/cost RPC ¡validaFon Remote ¡probes Config ¡data ¡consistency Sandboxing/security SW ¡status ¡(OTA ¡upgrades) Fail/retry/Fmeout User ¡requirements ¡unclear 11 Wednesday, 2 October 13

  12. Decision Support Wednesday, 2 October 13

  13. Decision Support Basics The ¡Four ¡Ws: Who ¡reported? What ¡happened? When ¡did ¡it ¡happen? Where ¡did ¡it ¡happen? (The ¡ Why ¡is ¡saved ¡for ¡post-­‑mortem) 13 Wednesday, 2 October 13

  14. The Who Affects ¡our ¡level ¡of ¡trust SomeFmes, ¡deliberate ¡misinformaFon Other ¡Fmes, ¡you ¡take ¡what ¡you ¡can ¡get 14 Wednesday, 2 October 13

  15. The What Surprisingly ¡hard ¡to ¡report ¡sufficient ¡informaAon Missing ¡data ConflicAng ¡data Incorrect ¡data 15 Wednesday, 2 October 13

  16. Abstractions Different ¡views ¡for ¡different ¡roles AggregaAon ¡/ ¡Drill-­‑down 16 Wednesday, 2 October 13

  17. Ulf’s Law of Information Management The ¡key ¡informaAon ¡flow ¡in ¡any ¡organizaAon ¡is ¡boeom-­‑up Not ¡managers ¡telling ¡workers ¡what ¡they ¡should ¡know Keep ¡low-­‑level ¡informaAon, ¡aggregate ¡up Allow ¡digging ¡into ¡details ¡as ¡needed Many ¡bad ¡decisions ¡are ¡based ¡on ¡missing ¡or ¡misleading ¡data The ¡ability ¡to ¡shape ¡data ¡for ¡reporFng ¡is ¡a ¡power ¡factor AutomaFon ¡can ¡miFgate ¡this 17 Wednesday, 2 October 13

  18. The ‘What’ for Developers What ¡are ¡we ¡going ¡to ¡build? OSen ¡surprisingly ¡vague An organization loses its intuition when the person who has the answer isn’ t talking to the person who has the question (Tim Berners Lee, “Weaving the Web”- from memory) 18 Wednesday, 2 October 13

  19. Dealing with requirements Agile ¡methods ¡great ¡for ¡boeom-­‑up ¡development Sogware ¡development ¡is ¡a ¡top-­‑down ¡/ ¡boeom-­‑up ¡acAvity Tony ¡Hoare’s ¡Turing ¡Award ¡Speech: One ¡man/group ¡whose ¡purpose ¡is ¡to ¡understand what ¡is ¡being ¡done, ¡and ¡why 19 Wednesday, 2 October 13

  20. Specifications (From rfc4005_nas.dia ¡ ¡ ¡STR ¡::= ¡< ¡Diameter ¡Header: ¡275, ¡REQ, ¡PXY ¡> Erlang/OTP’s Diameter application) ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡< ¡Session-­‑Id ¡> ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡{ ¡Origin-­‑Host ¡} ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡{ ¡Origin-­‑Realm ¡} ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡{ ¡Destination-­‑Realm ¡} ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡{ ¡Auth-­‑Application-­‑Id ¡} ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡{ ¡Termination-­‑Cause ¡} ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[ ¡User-­‑Name ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[ ¡Destination-­‑Host ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡* ¡[ ¡Class ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[ ¡Origin-­‑AAA-­‑Protocol ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡[ ¡Origin-­‑State-­‑Id ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡* ¡[ ¡Proxy-­‑Info ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡* ¡[ ¡Route-­‑Record ¡] ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡* ¡[ ¡AVP ¡] If ¡you ¡have ¡specs—make ¡the ¡most ¡of ¡them Generate ¡code, ¡test ¡input, ¡spec-­‑driven ¡validaFon Ogen, ¡you’ll ¡find ¡that ¡the ¡spec ¡is ¡broken 20 Wednesday, 2 October 13

  21. Trust/verify Verify Trust Trust ¡(assert) ¡data ¡from ¡internal ¡users Check ¡data ¡from ¡external ¡users ¡(specificaAon-­‑driven) 21 Wednesday, 2 October 13

  22. The When InformaAon ¡grows ¡stale LifeAme ¡indicators? Persistency How ¡long ¡should ¡data ¡live? “Unknown” ¡is ¡a ¡useful ¡indicator [2] 22 Wednesday, 2 October 13

  23. Modeling data lifetimes Don’t ¡mix ¡persistent ¡and ¡transient ¡data Persistency ¡levels replicated ¡disk replicated ¡RAM replicaFon ¡factor Transient request processes Erlang-­‑style lightweight ¡processes automaFc ¡GC single-­‑assignment messaging 23 Wednesday, 2 October 13

  24. The Where In ¡Emergency ¡Response—obviously ¡important In ¡tech, ¡the ¡Where ¡can ¡someAmes ¡be ¡inferred But ¡absence ¡of ¡signal ¡is ¡hard ¡to ¡interpret [3] [4] 24 Wednesday, 2 October 13

  25. Diagnosing absence of signal “Virtual ¡Device” VDP VDP Control InformaAon ¡back-­‑door Backplane Data Status (UDP) Distributed Erlang (TCP/IP) 25 Wednesday, 2 October 13

  26. Knock-out Units = ¡The ¡amount ¡of ¡service ¡that ¡can ¡be ¡lost ¡in ¡a ¡crash You ¡will ¡lose ¡service—plan ¡for ¡it! Beeer ¡to ¡fail ¡disAnctly ¡than ¡to ¡pretend ¡to ¡funcAon Invariants: ¡If ¡they ¡fail, ¡all ¡bets ¡are ¡off Connection fan-out Replication messages in-flight 26 Wednesday, 2 October 13

  27. Let it Crash.... or Try for a Result? [5] TempAng ¡to ¡always ¡deliver ¡a ¡preey ¡result A ¡result ¡that ¡looks ¡right, ¡while ¡erroneous, is ¡ogen ¡worse ¡than ¡no ¡result ¡at ¡all 27 Wednesday, 2 October 13

  28. Conclusion As ¡programmers, ¡we ¡someAmes ¡forget ¡to ¡model ¡failure Key ¡is ¡to ¡think ¡of ¡informaAon ¡quality Data ¡lifeFme Data ¡loss ¡potenFal What ¡data ¡do ¡I ¡need ¡for ¡recovery? What ¡failures ¡can ¡we ¡discern? What ¡interrupFons ¡are ¡acceptable? What ¡do ¡our ¡users ¡expect? Invariants 28 Wednesday, 2 October 13

  29. Questions? [1] ¡hep://evaluaAon.nbu.bg/pub/NGN_MP_e_book_CD/DL_NGN_2004%20Module %205/Module%205/1.7%20sogswithces.htm [2] ¡hep://docs.nimsog.com/prodhelp/en_US/Probes/Catalog/nas/3.6/index.htm? toc.htm?1942450.html [3] ¡hep://labs.vmware.com/vmtj/an-­‑anomaly-­‑event-­‑correlaAon-­‑engine-­‑idenAfying-­‑ root-­‑causes-­‑boelenecks-­‑and-­‑black-­‑swans-­‑in-­‑it-­‑environments [4] ¡hep://news.techeye.net/sogware/bespoke-­‑os-­‑blip-­‑caused-­‑chaos-­‑in-­‑the-­‑air [5] ¡hep://www.theregister.co.uk/2013/08/06/ 29 Wednesday, 2 October 13

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend