distributed systems communica3on
play

Distributed Systems Communica3on Rik Sarkar James - PowerPoint PPT Presentation

Distributed Systems Communica3on Rik Sarkar James Cheney University of Edinburgh Spring 2014 Types of networks Local area networks (Ethernet)


  1. Distributed ¡Systems ¡ ¡ Communica3on ¡ ¡ Rik ¡Sarkar ¡ James ¡Cheney ¡ ¡ University ¡of ¡Edinburgh ¡ Spring ¡2014 ¡

  2. Types ¡of ¡networks ¡ • Local ¡area ¡networks ¡(Ethernet) ¡ • Wide ¡area ¡networks ¡ • Wireless ¡LANs ¡(WiFi) ¡ • Wireless ¡WANs ¡(Cellular ¡networks, ¡3G, ¡4G ¡etc) ¡ • Internetworks ¡– ¡comprising ¡of ¡many ¡LANs, ¡ WANs ¡etc ¡connected ¡together, ¡allowing ¡ communica3on ¡between ¡computers. ¡E.g. ¡ Internet. ¡ ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 2 ¡

  3. Packets ¡ • Networks ¡communicate ¡data ¡in ¡messages ¡of ¡ fixed ¡(bounded) ¡size ¡– ¡called ¡packets ¡ • More ¡data ¡requires ¡more ¡packets ¡ • Number ¡of ¡messages ¡or ¡packets ¡transmiXed ¡is ¡ a ¡measure ¡of ¡communica3on ¡used ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 3 ¡

  4. Types ¡of ¡Communica3ons ¡ • Point ¡to ¡point ¡communica,on ¡ – Message ¡goes ¡from ¡one ¡computer ¡to ¡another ¡ computer ¡ ¡ – There ¡must ¡be ¡a ¡connec3ng ¡link ¡ • E.g. ¡A ¡LAN ¡wire ¡directly ¡connec3ng ¡the ¡two ¡ ¡ • Or, ¡the ¡two ¡computers ¡are ¡in ¡the ¡same ¡LAN ¡ • Or ¡they ¡are ¡in ¡different ¡LANs, ¡but ¡connected ¡through ¡ WAN ¡or ¡Internet ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 4 ¡

  5. Types ¡of ¡Communica3ons ¡ • Broadcast ¡ – Message ¡goes ¡from ¡one ¡computer ¡ to ¡ all ¡other ¡computers ¡(restricted ¡ to ¡some ¡set) ¡ • For ¡example, ¡all ¡other ¡computers ¡in ¡ the ¡LAN, ¡or ¡some ¡other ¡system ¡in ¡ considera3on ¡ – Ethernet ¡LAN ¡is ¡a ¡broadcast ¡ medium ¡ • All ¡computers ¡are ¡connected ¡to ¡a ¡ wire. ¡They ¡transmit ¡messages ¡on ¡the ¡ wire ¡and ¡all ¡can ¡receive ¡ – Wireless ¡LAN ¡(WiFi) ¡is ¡a ¡broadcast ¡ medium ¡ • Electromagne3c ¡waves ¡is ¡the ¡ common ¡medium ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 5 ¡

  6. Types ¡of ¡Communica3ons ¡ • Broadcast ¡ – Useful ¡when ¡message ¡has ¡to ¡be ¡ sent ¡to ¡all ¡computers ¡ • E.g. ¡Mul3player ¡games, ¡streaming ¡ a ¡live ¡video ¡etc ¡ – Can ¡be ¡used ¡to ¡achieve ¡point ¡to ¡ point ¡communica3on ¡ • Send ¡message, ¡with ¡id ¡of ¡the ¡ receiver. ¡Everyone ¡else ¡rejects ¡it. ¡ ¡ • Does ¡not ¡scale ¡well ¡when ¡there ¡ are ¡many ¡nodes ¡in ¡the ¡system. ¡ • When ¡Many ¡pairs ¡of ¡nodes ¡try ¡to ¡ communicate ¡using ¡the ¡same ¡ medium, ¡messages ¡clash. ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 6 ¡

  7. Real ¡life ¡networks ¡ • Point ¡to ¡point ¡for ¡long ¡distance ¡& ¡ internetworking ¡ • Broadcast ¡for ¡local, ¡short ¡range ¡at ¡the ¡LAN ¡ end ¡points ¡ Routers ¡ Point ¡to ¡Point ¡ Ethernet/Wifi ¡ Ethernet/Wifi ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 7 ¡

  8. Medium ¡access ¡in ¡LANs ¡ • The ¡difficulty ¡of ¡using ¡broadcast ¡ – If ¡more ¡than ¡one ¡node ¡transmits, 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¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 10 ¡

  11. Rou3ng ¡ • Smaller ¡rou3ng ¡tables ¡by ¡combining ¡addresses ¡ • Used ¡in ¡IP ¡(Internet) ¡rou3ng ¡ • Smaller ¡rou3ng ¡tables ¡are ¡preferable ¡ 1 ¡ 1 ¡ 1-­‑3 ¡ 3 ¡ 2 ¡ 2 ¡ 2 ¡ 2 ¡ 5 ¡ 5 ¡ 1-­‑4 ¡ 4 ¡ 4-­‑5 ¡ 4 ¡ 3-­‑5 ¡ 3 ¡ 5 ¡ 4 ¡ 1 ¡ 3 ¡ 1 ¡ 1 ¡ 3-­‑5 ¡ 3 ¡ 2 ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 11 ¡

  12. Netowrks ¡as ¡graphs ¡ • Note: ¡ – Networks ¡are ¡usually ¡drawn ¡as ¡graphs ¡ – Ver3ces ¡are ¡nodes/computers ¡ – Edge ¡means ¡these ¡nodes ¡can ¡directly ¡send ¡ messages ¡to ¡each-­‑other ¡ 5 ¡ 4 ¡ 1 ¡ 3 ¡ 2 ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 12 ¡

  13. An ¡announcement.. ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 13 ¡

  14. If ¡you ¡are ¡interested ¡in ¡doing ¡research ¡ on ¡ Distributed ¡Systems ¡ ¡ or ¡related ¡areas ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 14 ¡

  15. Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 15 ¡

  16. • Contact ¡James ¡Cheney ¡for: ¡ – Database ¡or ¡web ¡programming ¡languages ¡ – Data ¡synchroniza3on ¡ • Contact ¡Rik ¡Sarkar ¡for: ¡ – Algorithms ¡for ¡distributed ¡compu3ng ¡ – Sensor ¡networks ¡ – Mobile ¡networks ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 16 ¡

  17. MS/UG/MInf ¡Projects ¡in ¡distributed ¡ Systems ¡ • Contact ¡us ¡to ¡discuss ¡more ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 17 ¡

  18. Communica3on ¡cost ¡ • A ¡distributed ¡computa3on ¡should ¡be ¡ efficient ¡ – Should ¡use ¡few ¡messages ¡ • Cost ¡of ¡a ¡distributed ¡computa3on: ¡ ¡ – Number ¡of ¡messages ¡transmiXed ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 18 ¡

  19. Example ¡1 ¡ • A ¡simple ¡distributed ¡computa3on: ¡ – Each ¡node ¡has ¡stored ¡a ¡numeric ¡value ¡ – Compute ¡the ¡total ¡of ¡these ¡numbers ¡ How ¡many ¡messages ¡ ¡ does ¡it ¡take? ¡ Server ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 19 ¡

  20. Example ¡1 ¡ • A ¡simple ¡distributed ¡computa3on: ¡ – Each ¡node ¡has ¡stored ¡a ¡numeric ¡value ¡ – Compute ¡the ¡total ¡of ¡the ¡numbers ¡ 4 ¡ Server ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 20 ¡

  21. Example ¡2 ¡ • A ¡simple ¡distributed ¡computa3on: ¡ – Each ¡node ¡has ¡stored ¡a ¡numeric ¡value ¡ – Compute ¡the ¡total ¡of ¡the ¡numbers ¡ Server ¡ How ¡many ¡messages ¡ ¡ does ¡it ¡take? ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 21 ¡

  22. Example ¡2 ¡ • A ¡simple ¡distributed ¡computa3on: ¡ – Each ¡node ¡has ¡stored ¡a ¡numeric ¡value ¡ – Compute ¡the ¡total ¡of ¡the ¡numbers ¡ Server ¡ Total: ¡10 ¡ Number ¡of ¡messages: ¡ ¡ 1 ¡ 2 ¡ 4 ¡ 3 ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 22 ¡

  23. • Complexity ¡may ¡depend ¡on ¡the ¡Network ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 23 ¡

  24. Example ¡2 ¡ • A ¡simple ¡distributed ¡computa3on: ¡ – Each ¡node ¡has ¡stored ¡a ¡numeric ¡value ¡ – Compute ¡the ¡total ¡of ¡the ¡numbers ¡ c ¡ d ¡ Server ¡ a ¡ b ¡ Can ¡you ¡find ¡a ¡beXer, ¡more ¡efficient ¡way? ¡ ¡ Distributed ¡Systems, ¡Edinburgh, ¡2014 ¡ 24 ¡

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