socketsOct17

socketsOct17 - SocketAbstractionand...

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

View Full Document Right Arrow Icon
10/27/11 B.R 1 Socket Abstraction and  Interprocess Communication B.Ramamurthy
Background image of page 1

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

View Full DocumentRight Arrow Icon
10/27/11 B.R 2 Topics Pipes (process level) Sockets (OS level) Distributed System Methods (Java’s) Remote Method Invocation (PL  Level) Other communication paradigms
Background image of page 2
10/27/11 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.
Background image of page 3

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

View Full DocumentRight Arrow Icon
10/27/11 B.R 4 Purposes of IPC Data transfer Sharing data Event notification Process control
Background image of page 4
10/27/11 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.
Background image of page 5

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

View Full DocumentRight Arrow Icon
10/27/11 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.
Background image of page 6
10/27/11 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
Background image of page 7

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

View Full DocumentRight Arrow Icon
10/27/11 B.R 8 Inter Process Communication IP address and port number.  In IPv4 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. IPC is transmitting a message between a socket in 
Background image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 10/27/2011 for the course CSE 321 at SUNY Buffalo.

Page1 / 23

socketsOct17 - SocketAbstractionand...

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