EE450-U4-SocketProgramming-Nazarian-Summer11

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

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

View Full Document Right Arrow Icon
EE450 Computer Networks Socket Programming Shahin Nazarian Summer 2011
Image of page 1

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

View Full Document Right Arrow Icon
Shahin Nazarian/EE450/Summer 2011 Network Applications Development 2
Image of page 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
Image of page 3

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

View Full Document Right Arrow Icon
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
Image of page 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
Image of page 5

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

View Full Document Right Arrow Icon
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 transport infrastructure on other side of door which brings message to the socket at receiving process
Image of page 6
Shahin Nazarian/EE450/Summer 2011 Socket (Cont.) The application developer has control of everything on the ______________-layer side of the socket but has little control on the _____________ layer side of the socket The control on the Transport layer side is only 1) the choice of the transport layer protocol [e.g., UDP or TCP] and 2) perhaps the ability to fix a few Transport layer parameters such as maximum buffer and maximum segment sizes socket TCP UDP IP IP TCP UDP client Application 1 Application 2 Application m Application k Application n socket socket socket socket socket Internet Server 7
Image of page 7

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

View Full Document Right Arrow Icon
Shahin Nazarian/EE450/Summer 2011 Socket (Cont.)
Image of page 8
Image of page 9
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern