Understanding Layered Protocols & Message-Oriented Communication in Networking, Slides of Advanced Operating Systems

An in-depth exploration of layered protocols and message-oriented communication. It covers various aspects of layered protocols, including the role of layers x and x+1, the network and transport layers, and remote procedure call (rpc). Additionally, it discusses message-oriented communication, messaging modes, message-queuing systems, message brokers, and other messaging systems. The document also touches upon synchronization mechanisms, multicast communication, and stream-oriented communication.

Typology: Slides

2012/2013

Uploaded on 04/23/2013

atasi
atasi 🇮🇳

4.6

(32)

134 documents

1 / 98

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS 620 Advanced Operating
Systems
Lecture 7 Communication
Docsity.com
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62

Partial preview of the text

Download Understanding Layered Protocols & Message-Oriented Communication in Networking and more Slides Advanced Operating Systems in PDF only on Docsity!

CS 620 Advanced Operating

Systems

Lecture 7 – Communication

Layered Protocols

  • As we saw previously, network software is often

structured as a layered protocol suite. We will now examine these protocols in somewhat more detail.

  • Protocol : An agreement between communicating

parties on how communication is to proceed.

  • Error correction codes.
  • Blocksize.
  • Ack/Nak.

Layered Protocols

  • Layer X of the sender acts as if it is directly communicating with layer X of the receiver but in fact it is communicating with layer X-1 of the sender.
  • Similarly layer X of the sender acts as a virtual layer X+1 of the receiver to layer X+1 of the sender.
  • A famous example is the ISO OSI ( International Standards Organization Open Systems Interconnection Reference Model ).

Layered Protocols

Layered Protocols

  • So the network layer adds a header (in front of the transport layer's header) and sends to the other network layer (really its own data link layer that adds a header in front of the network layer's and a trailer).
  • So headers get added as you go down the sender's layers (often called the Protocol Stack or Protocol Suite ).
  • They get used (and stripped off) as the message goes up the receiver's stack.

Layered Protocols

Layered Protocols

  • Frames contain error detection (and correction) bits.
  • This is what the pair of data link layers do when viewed as an extension of the physical.
  • But when being used, the sending DL layer gets a packet from the network layer and breaks it into frames and adds the error detection bits.

Data Link Layer

  • Discussion between a receiver and a sender in the data link layer.

2-

Layered Protocols

  • Transport layer : make reliable and ordered (but not always). - Break incoming message into packets and send to corresponding transport layer (really send to ...). They are sequence numbered. - Header contains info as to which packets have been sent and received. - These sequence numbers are for the end to end message.

Layered Protocols

  • I.e. if grail.cba.csuohio.edu sends message to www.microsoft.com the transport layer breaks message into packets and numbers the packets. - These packets may take different routes. - On any one hop the data link layer keeps the frames ordered.
  • If you use connection-oriented network layer there is little for transport layer to do.
  • If you use IP for network layer, there is a lot to do.
  • If use connection-oriented TCP for transport layer of client-server system, slower than need be - Can use transactional TCP

Layered Protocols

  • Session Layer : dialog and synchronization.
    • Dialog control
    • Synchronization facilities
  • Presentation layer : Describes "meaning" of fields.
    • Record definition
  • Application layer : For specific applications (e.g. mail, news, ftp). - Middleware logically resides in the application layer, but contains functionality that is quite general - Authentication - Authorization - Multicast, etc. - This leads to a slightly modified reference model

Middleware Protocols

  • An adapted reference model for networked communication.

2-

Remote Procedure Call (RPC)

  • read is a user mode program.
  • read manipulates registers and then does a trap to the kernel.
  • After the trap, the kernel manipulates registers and then does a C-language routine and lots of work gets done (drivers, disks, etc).
  • After the I/O, the process get unblocked, the kernel read manipulates registers, and returns. The user mode read manipulates registers and returns to the original caller.
  • Let’s do something similar with request reply:

Remote Procedure Call (RPC)

  • User (client) does a subroutine call to getchar (or read ). - Client knows nothing about messages.
  • We link in a user mode program called the client stub (analogous to the user mode read above). - This takes the parameters to read and converts them to a message ( marshalls the arguments). - Sends a message to machine containing the server directed to a server stub. - Does a blocking receive (of the reply message).