{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Facebookcomdocsmobileandroidbuild network time service

Info icon This preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: er- to- peer hbp://en.wikipedia.org/wiki/Peer- to- peer Inter- Applica)on Communica)on •  Need a way to send and receive messages •  Inter- process communica)on •  Need naming, rou)ng, transport •  Transport using TCP and UDP –  On top of IP Server Client Applica)on Protocols •  Messages between processes, typically encapsulated within TCP or UDP •  Need agreement between –  Sending process –  Receiving process From: hbp://developers.facebook.com/docs/mobile/android/build/ Network Time Service Client- server or peer- to- peer? 1. Laptop Server 1. Atomic clock facility Protocol Timing Diagram t4 t5 Time ? 1400 t1 Processing Delay t2 Transmission t3 Delay Time Propaga)on Delay t0 Cloud- based File Backup Applica)on •  •  •  •  Client- server or peer- to- peer? Where do the applica)ons run? Who/how to run these applica)ons? What messages are exchanged? 1. 2. 3. Laptop Server 1. 2. 3. From: hbp://developers.facebook.com/docs/mobile/android/build/ Using TCP/IP •  How can applica)ons use the network? •  Sockets API. –  Originally from BSD, widely implemented (*BSD, Linux, Mac OS X, Windows, …) –  Higher- level APIs build on them •  Aher basic setup, much like files One could test network protocols with r/w on a file Client Server File System Calls •  Problem: how to access resources other then CPU –  Disk, network, terminal, other processes –  CPU prohibits instruc)ons that would access devices –  Only privileged OS kernel can access devices •  Kernel supplies well- defined...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern