Introduction to Networking , Instructor: Prof. Yan Chen

Slides:



Advertisements
Similar presentations
Introduction to Sockets Jan Why do we need sockets? Provides an abstraction for interprocess communication.
Advertisements

Nonblocking I/O Blocking vs. non-blocking I/O
Client Server. Server Client Model Servers- Wait for requests from clients - Sends requested data to client - May have to communicate with other servers.
Netprog: TCP Details1 TCP Details Introduction to Networking Yan Gao TA Jan 27, 2005 Recital 3.
Discussion Section Week 3 EE122: Introduction to Communication Networks Fall 2006.
Point-to-Point Network Switching Advanced Computer Networks.
UDP and Multi-thread Socket Programming
Networks: Switching1 Point-to-Point Network Switching.
Netprog: TCP Details1 TCP Details Introduction to Networking John Otto TA Jan 31, 2007 Recital 4.
Socket Programming.
Networks: Switching1 Point-to-Point Network Switching.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
Advanced Sockets Amit Mondal TA, Intro to Networking Jan 22, 2009 Recital 3 Introduction to Networking Instructor: Prof. Aleksandar Kuzmanovic.
Windows Sockets Purpose Windows Sockets 2 (Winsock) enables programmers to create advanced internet, intranet, and other network-capable applications to.
A Chat Server DBI – Representation and Management of Data on the Internet.
Liang, Introduction to Java Programming, Sixth Edition, (c) 2007 Pearson Education, Inc. All rights reserved L22 (Chapter 25) Networking.
1 Computer Networks Switching Technologies. 2 Switched Network Long distance transmission typically done over a network of switched nodes End devices.
Point-to-Point Network Switching Computer Networks Computer Networks Spring 2012 Spring 2012.
Communications Recap Duncan Smeed. Introduction 1-2 Chapter 1: Introduction Our goal: get “feel” and terminology more depth, detail later in course.
Hands On Networking Socket Programming Ram P Rustagi, ISE Dept Abhishek Gupta, ISE Dept Laxmi Kuber, MCA Dept June 28-30, 2012.
Chapter 17 Networking Dave Bremer Otago Polytechnic, N.Z. ©2008, Prentice Hall Operating Systems: Internals and Design Principles, 6/E William Stallings.
CS448 Computer Networking Chapter 1 Introduction to Computer Networks Instructor: Li Ma Office: NBC 126 Phone: (713)
Introduction to Network Programming Asst. Prof. Chaiporn Jaikaeo, Ph.D. Computer Engineering Department.
Data and Computer Communications Chapter 10 – Circuit Switching and Packet Switching (Wide Area Networks)
Sami Al-wakeel 1 Data Transmission and Computer Networks The Switching Networks.
Switching Techniques Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS School of Computing, UNF.
 Circuit Switching  Packet Switching  Message Switching WCB/McGraw-Hill  The McGraw-Hill Companies, Inc., 1998.
Nonblocking I/O Blocking vs. non-blocking I/O Nonblocking input, output, accept, and connect Readings –UNP Ch16 1.
Chapter 2 Applications and Layered Architectures Sockets.
DATA COMMUNICATION (ELA…) CIRCUIT SWITCHING AND PACKET SWITCHING 1.
Remote Shell CS230 Project #4 Assigned : Due date :
Texas Forty-Two By: Nate Normandin CS 470. What is Texas Forty-Two? A Domino Game A way for people to learn the game A way for people to play others A.
CE Operating Systems Lecture 13 Linux/Unix interprocess communication.
NTU CSIE Computer Networks 2009 Spring Project 2 Internet Relay Chat (IRC)
Socket Programming.
S OCKET P ROGRAMMING IN C Professor: Dr. Shu-Ching Chen TA: Hsin-Yu Ha.
Midterm Review Chapter 1: Introduction Chapter 2: Application Layer
©The McGraw-Hill Companies, Inc., 2000© Adapted for use at JMU by Mohamed Aboutabl, 2003Mohamed Aboutabl1 1 Chapter 16 Socket Interface.
1 Dimension of Server Designs r Iterative vs Concurrent r Connection-oriented vs. connectionless r Stateful and stateless m Constrained by application.
Internet Flow By: Terry Hernandez. Getting from the customers computer onto the internet Internet Browser
Java’s networking capabilities are declared by the classes and interfaces of package java.net, through which Java offers stream-based communications that.
1 Network Communications A Brief Introduction. 2 Network Communications.
The Echo Server Problem. Contents  Basic Networking Concepts  The Echo Server Problem.
The Echo Server Problem. Contents  Basic Networking Concepts  The Echo Server Problem.
Data and Computer Communications Ninth Edition by William Stallings Chapter 10 – Circuit Switching and Packet Switching Data and Computer Communications,
SOCKET PROGRAMMING Presented By : Divya Sharma.
The Chat Problem.
Networking CS 3470, Section 1 Sarah Diesburg
Point-to-Point Network Switching
Whirlwind Tour Of Lectures So Far
CSC410: Distributed System
Networking CS 3470, Section 1 Sarah Diesburg
TCP Socket Programming
Networks and Client/Server Applications
Chapter 4: Network Layer
Subject Name: Computer Communication Networks Subject Code: 10EC71
Network Layer Functions
PPPoE Internet Point to Point Protocol over Ethernet
Introduction There are many situations in which we might use replicated data Let’s look at another, different one And design a system to work well in that.
Advanced Sockets Introduction to Networking
Starting TCP Connection – A High Level View
CSC Advanced Unix Programming, Fall 2015
Networking CS 3470, Section 1 Sarah Diesburg
Circuit Switched Network
CS 381: Introduction to Computer Networks
TCP/IP Sockets in Java: Practical Guide for Programmers
Chapter 4: Network Layer
Point-to-Point Network Switching
Single path routing in most of the servers
QuickBooks Error H202 - Fix QuickBooks issues
Presentation transcript:

Introduction to Networking , Instructor: Prof. Yan Chen Advanced Sockets Ashish Gupta TA , Intro to Networking Jan 14 2004 Recital 2

The problem You are a server and you want to listen for incoming connections as well as keep reading from the connections you already have. Blocking "block" is techie jargon for "sleep". Lots of functions block. accept() blocks. All the recv() functions block

The select call Enables you to deal with many clients at the same time HOW ? Monitors several sockets at the same time. tell you which ones are ready for reading, which are ready for writing,

A multi-person chat server THE CODE A multi-person chat server

A multi-person chat server DEMO A multi-person chat server

Important Points Accepting new connections via select Client closes connection Select returns “socket ready to read” recv() will return 0.

1-5 Transmission Delay Propagation Delay Message switched Packet Switched Circuit-switched vs Datagram Differences in : Setup time, Store-and forward delay.

2-13 Local Delay + Internet delay What is Beta and Delta here ? caching