EE450-U4-SocketProgramming-Nazarian-Summer11

EE450-U4-SocketProgramming-Nazarian-Summer11 - EE450...

Info iconThis preview shows pages 1–7. 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
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EE450 Computer Networks Socket Programming Shahin Nazarian Summer 2011 Shahin Nazarian/EE450/Summer 2011 Network Applications Development 2 Shahin Nazarian/EE450/Summer 2011 Process Communication • Process : Program running within a host • Within same host, two processes communicate using inter-process communication (defined by the _______) • Processes in different hosts communicate by exchanging messages across the computer network • A network application typically consists of pairs of processes that send messages to each other over a network • Example: Web application: A web browser client process (in the user’s host) exchanges messages with a web server process • Note that any message sent from one process to another must go through the underlying network 3 Shahin Nazarian/EE450/Summer 2011 Process Communication • Process : Program running within a host • Within same host, two processes communicate using inter-process communication (defined by the _______) • Processes in different hosts communicate by exchanging messages across the computer network • A network application typically consists of pairs of processes that send messages to each other over a network • Example: Web application: A web browser client process (in the user’s host) exchanges messages with a web server process • Note that any message sent from one process to another must go through the underlying network 3 Shahin Nazarian/EE450/Summer 2011 Process Communication in P2P • In a P2P file-sharing system, a file is transferred from a process in one peer to a process in another peer • For each pair of communicating processes we typically label one of the two processes as the client and the other process as the server • Therefore here a process can be both a ______ and a ________. Nevertheless in the context of any given communication session btn a pair of processes, we can still label one process as the client and the other process as the server _____ process: Initiates communication _____ process: Waits to be contacted 4 Shahin Nazarian/EE450/Summer 2011 Socket • Socket is an interface (an abstraction, not real connection) through which applications communicate among each other process TCP with buffers, variables socket Client or server p.rocess TCP with buffers, variables socket client or server Internet controlled by OS controlled by app developer Assume, underlying transport layer Uses TCP protocol 5 Shahin Nazarian/EE450/Summer 2011 Socket Analogy process TCP with buffers, variables socket Client or server p.rocess TCP with buffers, variables socket client or server Internet controlled by OS controlled by app developer • Process is analogous to a house, socket to its ________, application to the _________ living in the house, and Transport layer to the __________ the person selects to travel from the house to another Assume, underlying transport layer Uses TCP protocol 6 • Sending process shoves message out the door • Sending process relies on...
View Full Document

This note was uploaded on 08/27/2011 for the course EE 450 taught by Professor Zahid during the Summer '06 term at USC.

Page1 / 31

EE450-U4-SocketProgramming-Nazarian-Summer11 - EE450...

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

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