1 / 47

Communication

Communication. Layered Protocols. Layers, interfaces, and protocols in the OSI model. 2-1. Layered Protocols. A typical message as it appears on the network. 2-2. Data Link Layer. Discussion between a receiver and a sender in the data link layer. 2-3. Middleware Protocols.

grant
Download Presentation

Communication

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Communication

  2. Layered Protocols • Layers, interfaces, and protocols in the OSI model. 2-1

  3. Layered Protocols • A typical message as it appears on the network. 2-2

  4. Data Link Layer • Discussion between a receiver and a sender in the data link layer. 2-3

  5. Middleware Protocols • An adapted reference model for networked communication.

  6. Types of Communications • Persistent communications • Message that has been submitted is stored by the system as long as it takes to deliver it to its receiver • Transient communications • Message is stored by the system only as long as the sending and receiving applications are executing • Synchronous communication • Asynchronous communication

  7. Remote Procedure Call (RPC) • Birrell and Nelson suggested that programs should be able to call procedures to executed on remote machines

  8. Conventional Procedure Call • Parameter passing in a local procedure call • (a) the stack before the call to read • (b) the stack while the called procedure is active Passing parameters by value, reference, and copy/restore

  9. Client and Server Stubs • Principle of RPC between a client and server program.

  10. Steps of a Remote Procedure Call • Client procedure calls client stub in normal way • Client stub builds message, calls local OS • Client's OS sends message to remote OS • Remote OS gives message to server stub • Server stub unpacks parameters, calls server • Server does work, returns result to the stub • Server stub packs it in message, calls local OS • Server's OS sends message to client's OS • Client's OS gives message to client stub • Stub unpacks result, returns to client

  11. Passing Value Parameters • Steps involved in doing remote computation through RPC 2-8

  12. Passing Value Parameters • Original message on the Pentium (Little Endian) • The message after receipt on the SPARC (Big Endian) • The message after being inverted. The little numbers in boxes indicate the address of each byte

  13. Parameter Specification and Stub Generation • A procedure • The corresponding message.

  14. Asynchronous RPC • The interconnection between client and server in a traditional RPC • The interaction using asynchronous RPC 2-12

  15. Asynchronous RPC • A client and server interacting through two asynchronous RPCs (deferred synchronous RPCs) 2-13

  16. Writing a Client and a Server • The steps in writing a client and a server in DCE RPC using the IDL compiler 2-14

  17. Binding a Client to a Server in DCE 2-15

  18. Persistence and Synchronicity in Communication • Persistent communication of letters back in the days of the Pony Express.

  19. Persistence and Synchronicity in Communication • General organization of a communication system in which hosts are connected through a network 2-20

  20. Persistence and Synchronicity in Communication • Persistent asynchronous communication • Persistent synchronous communication 2-22.1

  21. Persistence and Synchronicity in Communication • Transient asynchronous communication • Receipt-based transient synchronous communication

  22. Persistence and Synchronicity in Communication • Delivery-based transient synchronous communication at message delivery • Response-based transient synchronous communication

  23. Berkeley Sockets • Socket primitives for TCP/IP.

  24. Berkeley Sockets • Connection-oriented communication pattern using sockets.

  25. The Message-Passing Interface (MPI) • MPI is suitable for parallel applications with transient communications were failures are fatal • Some of the most intuitive message-passing primitives of MPI.

  26. Message-Queuing Model • Four combinations for loosely-coupled communications using queues. 2-26

  27. Message-Queuing Model • Basic interface to a queue in a message-queuing system.

  28. General Architecture of a Message-Queuing System • The relationship between queue-level addressing and network-level addressing.

  29. General Architecture of a Message-Queuing System • The general organization of a message-queuing system with routers. 2-29

  30. Message Brokers in Message-Queuing Systems

  31. Example: IBM MQSeries • General organization of IBM's MQSeries message-queuing system. • Message Channel Agents (MCA) manage the message channel (pairwise reliable connection) between a sending and receiving Queue Manager 2-31

  32. Message Channels • Some attributes associated with message channel agents.

  33. Message Transfer • The general organization of an MQSeries queuing network using routing tables and aliases.

  34. Message Transfer • Primitives available in an IBM MQSeries MQI

  35. Communication for Continuous Media • In continuous media the temporal relationships between the data elements is fundamental to correctly interpreting them (eg. Audio and video) • Not so in discrete media (eg text, imagery) • Data stream = sequence of data elements • Simple vs complex streams • Timing is crucial in continuous data streams • Transmission modes for data streams • Asynchronous • Synchronous • Isochronous

  36. Continuous Data Streams • Setting up a audio stream between two processes across a network • Sampling rate of 44.4Khz with 16-bits per sample for Pulse Code Modulation (PCM)

  37. Continuous Data Streams • Setting up a stream directly between two devices. 2-35.2

  38. Continuous Data Streams • An example of multicasting a stream to several receivers.

  39. Specifying Quality of Service • A flow specification.

  40. Specifying Quality of Service • Typical QoS parameters • Required bit rate • Maximum latency for sending data • Maximum end-to-end delay • Maximum delay variance (jitter) • Maximum round-trip delay • IP is a best-effort datagram service! • Challenge: provide support for continuous media using minimal support from the network/transport layers

  41. Support for QoS • Buffer enough data elements before delivering the 1st data element to the application, so that the QoS requirements are satisfied • Since IP is unreliable, packets many be lost, and since the media have high bit rates, request for retransmissions are not an option • Use forward error correcting coding • Use packet interleaving so that a single packet loss does not affect a long sequence of frames (data elements)

  42. Synchronization Mechanisms • The principle of explicit synchronization on the level data units. • Video data unit=1 frame, audio data unit = samples for duration of video frame

  43. Synchronization Mechanisms • The principle of synchronization as supported by high-level interfaces. 2-41

  44. Application-level Multicasting • A group of nodes organize in an overlay network which they use to disseminate information to all its members • Example: Using CHORD construct a tree connecting the group using intermediate nodes as forwarders • Overlay construction is a graph embedding problem • Quality of embedding is measured by • Link stress (congestion) = #overlay links that use a physical link • link dilation = length of physical path corresponding to overlay link • stretch = ratio of length of overlay path over the length of the corresponding physical path • Tree cost = total cost of physical links used by the links in the overlay tree

  45. Overlay Construction • Assume the existence of a rendezvous node that knows all the members of the group • Each node links to the source • Stretch is 1, stress is high • Switch-trees • A node can choose another parent (not one of its descendant) that is not overloaded • Some criteria for choosing new parent: • Reduce delay to source • New parent is closer than old parent • Node currently switching denies all other switch sequests

  46. Gossip-based dissemination • Utilize ideas from spread of diseases to design protocols for disseminating updates to data elements • Partition nodes into Infected (have data), susceptible (willing to spread data), and removed (non-cooperating) nodes • Anti-entropy propagation model: each node P picks a random node Q and exchanges updates with Q • P only pushes updates to Q • P only pulls updates from Q • P pushes and pulls updates to/from Q • O(logN) rounds are sufficient to disseminate information to N nodes • Rumor spreading (gossiping) • P pushes updates to Q; if Q was already infected, P stops being susceptible with some probability

  47. Gossip-based dissemination • Directional gossiping : nodes with few neighbors have higher probability of being selected (infected) • Dealing with deletes • Utilize “death certificates” • How do you select a node at random? • Applications: computing the average • Suppose every node I has a value x_i • When gossiping nodes I and J replace their own values with the average of their values • After O(logN) rounds, everybody knows the average • Estimate the #nodes in the system by having only a single node to have value 1, with all other nodes having value 0.

More Related