socketsNov11

socketsNov11 - 10/16/10 B.R 1 Socket Abstraction and...

Info iconThis preview shows pages 1–9. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

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

Unformatted text preview: 10/16/10 B.R 1 Socket Abstraction and Interprocess Communication B.Ramamurthy CSE421 10/16/10 B.R 2 Topics Pipes (process level) Sockets (OS level) Distributed System Methods (Java’s) Remote Method Invocation (PL Level) Other communication paradigms 10/16/10 B.R 3 Introduction Typical applications today consist of many cooperating processes either on the same host or on different hosts. For example, consider a client-server application. How to share (large amounts of ) data? Share files? How to avoid contention? What kind of system support is available? We want a general mechanism that will work for processes irrespective of their location. 10/16/10 B.R 4 Purposes of IPC Data transfer Sharing data Event notification Process control 10/16/10 B.R 5 IPC using sockets What if wanted to communicate between processes that have no common ancestor? Ans: sockets IPC for processes that are not necessarily on the same host. Sockets use names to refer to one another. Means of network IO. 10/16/10 B.R 6 What are sockets? Socket is an abstraction for an end point of communication that can be manipulated with a file descriptor. It is an abstract object from which messages are sent and received. Sockets are created within a communication domain just as files are created within a file system. A communication domain is an abstraction introduced to bundle common properties of processes communicating through sockets. Example: UNIX domain, internet domain. 10/16/10 B.R 7 Sockets and ports message agreed port any port socket socket Internet address = 138.37.88.249 Internet address = 138.37.94.248 other ports client server 10/16/10 B.R 8 Inter Process Communication IP address and port number. About 2 16 ports are available for use by user processes. UDP and TCP abstraction of the above is a socket. Socket is associated with a protocol....
View Full Document

This document was uploaded on 10/15/2010.

Page1 / 23

socketsNov11 - 10/16/10 B.R 1 Socket Abstraction and...

This preview shows document pages 1 - 9. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online