Interprocess Communication CH4. HW: Reading messages: User Agent (the user’s mail reading program) is either a client of the local file server or a client.

Slides:



Advertisements
Similar presentations
Push Technology Humie Leung Annabelle Huo. Introduction Push technology is a set of technologies used to send information to a client without the client.
Advertisements

Processes Management.
IPC (Interprocess Communication)
TCP/IP MODEL Maninder Kaur
Umut Girit  One of the core members of the Internet Protocol Suite, the set of network protocols used for the Internet. With UDP, computer.
Remote Procedure Call (RPC)
From Coulouris, Dollimore, Kindberg and Blair Distributed Systems: Concepts and Design Edition 5, © Addison-Wesley 2012 Exercises for Chapter 4: Interprocess.
Exercises for Chapter 4: Interprocess Communication
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Network Layer and Transport Layer.
Interprocess Communications
Lecture 3 Page 1 CS 239, Spring 2001 Interprocess Communications in Distributed Operating Systems CS 239 Distributed Operating Systems April 9, 2001.
Application Layer Pertemuan 25 Matakuliah: H0484/Jaringan Komputer Tahun: 2007.
Application Layer  We will learn about protocols by examining popular application-level protocols  HTTP  FTP  SMTP / POP3 / IMAP  Focus on client-server.
1 Java Networking – Part I CS , Spring 2008/9.
Chapter 29 Structure of Computer Names Domain Names Within an Organization The DNS Client-Server Model The DNS Server Hierarchy Resolving a Name Optimization.
Electronic Mail. Functionality First software allowed a user to send some text to another user connected to Internet; Current systems allow.
Computer Science Lecture 2, page 1 CS677: Distributed OS Last Class: Introduction Distributed Systems – A collection of independent computers that appears.
Chapter 2: Application layer  2.1 Web and HTTP  2.2 FTP 2-1 Lecture 5 Application Layer.
Click to add text Introduction to z/OS Basics © 2006 IBM Corporation Chapter 15: WebSphere MQ.
Distributed systems (NET 422) Prepared by Dr. Naglaa Fathi Soliman Princess Nora Bint Abdulrahman University College of computer.
WXES2106 Network Technology Semester /2005 Chapter 8 Intermediate TCP CCNA2: Module 10.
Implementing Application Protocols. Overview An application protocol facilitates communication between applications. For example, an client uses.
Chapter 4.1 Interprocess Communication And Coordination By Shruti Poundarik.
Chapter 30 Electronic Mail Representation & Transfer
Electronic Mail (SMTP, POP, IMAP, MIME)
1 Transport Layer Computer Networks. 2 Where are we?
23-Support Protocols and Technologies Dr. John P. Abraham Professor UTPA.
1 Computer Communication & Networks Lecture 27 Application Layer: Electronic mail and FTP Waleed.
© Janice Regan, CMPT 128, CMPT 371 Data Communications and Networking Multicast routing.
1 Telematica di Base Applicazioni P2P. 2 The Peer-to-Peer System Architecture  peer-to-peer is a network architecture where computer resources and services.
Lecture 2 TCP/IP Protocol Suite Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
CPT 499 Internet Skills for Educators Electronic Mail Session Five.
1 Semester 2 Module 10 Intermediate TCP/IP Yuda college of business James Chen
CH2 System models.
Network Services Networking for Home & Small Business.
Lecture#1 on Internet. Internet Addressing IP address: pattern of 32 or 128 bits often represented in dotted decimal notation IP address: pattern of 32.
CPT 123 [299] Internet Skills Overview of the Internet Session One Class Notes DMWilliamson 1998.
The Internet 8th Edition Tutorial 2 Basic Communication on the Internet: .
Chapter 4: Interprocess Communication‏ Pages
The Internet The internet is simply a worldwide computer network that uses standardised communication protocols to transmit and exchange data.
Slides for Chapter 4: Interprocess Communication From Coulouris, Dollimore and Kindberg Distributed Systems: Concepts and Design Edition 4, © Addison-Wesley.
Application Security: (April 10, 2013) © Abdou Illia – Spring 2013.
Client-Server Model of Interaction Chapter 20. We have looked at the details of TCP/IP Protocols Protocols Router architecture Router architecture Now.
Interprocess Communications
XP New Perspectives on The Internet, Sixth Edition— Comprehensive Tutorial 2 1 Evaluating an Program and a Web-Based Service Basic Communication.
1 Client-Server Interaction. 2 Functionality Transport layer and layers below –Basic communication –Reliability Application layer –Abstractions Files.
The Client-Server Model And the Socket API. Client-Server (1) The datagram service does not require cooperation between the peer applications but such.
Distributed systems (NET 422) Prepared by Dr. Naglaa Fathi Soliman Princess Nora Bint Abdulrahman University College of computer.
Lecture 4 Mechanisms & Kernel for NOSs. Mechanisms for Network Operating Systems  Network operating systems provide three basic mechanisms that support.
Gokul Kishan CS8 1 Inter-Process Communication (IPC)
TCP/IP1 Address Resolution Protocol Internet uses IP address to recognize a computer. But IP address needs to be translated to physical address (NIC).
1 Network Communications A Brief Introduction. 2 Network Communications.
Process-to-Process Delivery:
Delivery Categories of Messaging. Messaging Categories Unicast: Messages are sent to a single, specific recipient Multicast: Messages are sent to a group.
Communication in Distributed Systems. . The single most important difference between a distributed system and a uniprocessor system is the interprocess.
© MMII JW RyderCS 428 Computer Networks1 Electronic Mail  822, SMTP, MIME, POP  Most widely used application service  Sometimes only way a person ever.
Chapter 11 User Datagram Protocol
Last Class: Introduction
Networking Applications
Remote Logging, Electronic Mail, and File Transfer
Comparing Communication Types
Chapter 14 User Datagram Program (UDP)
CGS 3763 Operating Systems Concepts Spring 2013
Chapter 14 User Datagram Protocol (UDP)
Inter Process Communication (IPC)
Chapter 14 User Datagram Program (UDP)
Unit – 4 Chap - 2 Mail Delivery System
How Our Customers Communicate With Us
Process-to-Process Delivery: UDP, TCP
Presentation transcript:

Interprocess Communication CH4

HW: Reading messages: User Agent (the user’s mail reading program) is either a client of the local file server or a client of a mail delivery server such as a POP or IMAP server. In the former case, the User Agent reads messages directly form the mailbox file in which they were placed during the message delivery. In the latter case, the User Agent requests information about the contents of the user’s mailbox file from a POP or IMAP server and receives messages from those servers for presentation to the user. POP and IMAP are protocols specifically designed to support mail access over wide areas and slow network connections, so a user can continue to access her home mailbox while travelling.

API for Internet Protocols : IPC characteristics synchronous and asynchronous communication ▫ blocking send: waits until the corresponding receive is issued ▫ non-blocking send: sends and moves on ▫ blocking receive: waits until the msg is received ▫ non-blocking receive: if the msg is not here, moves on ▫ synchronous: blocking send and receive ▫ asynchronous: non-blocking send and blocking or non- blocking receive _________________ ▫ one receiver, many senders 3

1- Is it conceivably useful for a port to have several receivers? If several processes share a port, then it must be possible for all of the messages that arrive on that port to be received and processed independently by those processes. Processes do not usually share data, but sharing a port would require access to common data representing the messages in the queue at the port. In addition, the queue structure would be complicated by the fact that each process has its own idea of the front of the queue and when the queue is empty. Note that a port group may be used to allow several processes to receive the same message.

API for Internet Protocols : IPC characteristics Message Destination ▫ IP address + port: one receiver, many senders ▫ Location transparency  name server or binder: translate service to location  OS (e.g. Mach): provides location-independent identifier mapping to lower-lever addresses 5

2- A server creates a port which it uses to receive requests from clients. Discuss the design issues concerning the relationship between the name of this port and the names used by clients.

The main design issues for locating server ports are: How does a client know what port and IP address to use to reach a service? use a name server/binder to map the textual name of each service to its port each service uses well-known location-independent port id, which avoids a lookup at a name server. The operating system still has to look up the whereabouts of the server, but the answer may be cached locally. (ii) How can different servers offer the service at different times? Location-independent port identifiers allow the service to have the same port at different locations. (iii) Efficiency of access to ports and local identifiers. Sometimes operating systems allow processes to use efficient local names to refer to ports. This becomes an issue when a server creates a non-public port for a particular client to send messages to, because the local name is meaningless to the client and must be translated to a global identifier for use by the client.

17- Describe a scenario in which a client could receive a reply from an earlier call. Client sends request message, times out and then retransmits the request message, expecting only one reply. The server which is operating under a heavy load, eventually receives both request messages and sends two replies. When the client sends a subsequent request it will receive the reply from the earlier call as a result. If request identifiers are copied from request to reply messages, the client can reject the reply to the earlier message.

26- Devise a scenario in which multicasts sent by different clients are delivered in different orders at two group members. Assume that some form of message retransmissions are in use, but that messages that are not dropped arrive in sender ordering. Suggest how recipients might remedy this situation.

- Sender1 sends request r1 to members m1 and m2 but the message to m2 is dropped - Sender2 sends request r2 to members m1 and m2 (both arrive safely) - Sender1 re-transmits request r1 to member m2 (it arrives safely). - Member m1 receives the messages in the order r1;r2. However m2 receives them in the order r2;r1. To remedy the situation. Each recipient delivers messages to its application in sender order. When it receives a message that is ahead of the next one expected, it hold it back until it has received and delivered the earlier re-transmitted messages.