CS 336/621 Computer Networks and Network Programming Spring 2009 Professor Allan B. Cruse University of San Francisco.

Slides:



Advertisements
Similar presentations
LAN Devices 5.3 IT Essentials.
Advertisements

Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
Connecting to a computer Network Network interface Card (NIC) Connecting Devices Network Cables Wireless Networks Network Topology Network Operating System.
Networking hardware includes all computers, peripherals, interface cards and other equipment needed to perform data-processing and communications within.
1 CPE 400 / 600 Computer Communication Networks Dr. Mehmet Gunes slides are modified from S.K. Kasera and J. Kurose & K. Ross.
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
91.413: Data Communications I Fall 2007
Computer Networks Eyad Husni Elshami. Computer Network A computer network is a group of interconnected computers to share data resources ( printer, data.
COMPUTER NETWORKS CS610 Lecture-1 Hammad Khalid Khan.
Networking and Internetworking Devices Networks and Protocols Prepared by: TGK First Prepared on: Last Modified on: Quality checked by: Copyright 2009.
Hardware & Software Needed For LAN and WAN
COMPUTER NETWORKS.
Computer Networks IGCSE ICT Section 4.
CECS 474 Computer Network Interoperability Tracy Bradley Maples, Ph.D. Computer Engineering & Computer Science Cal ifornia State University, Long Beach.
1 Network Strategy By Mr J. Sloan. Ideas Protocol WAN LAN Node What is a… Workstation File Server Print Server.
Introduction to Networking. Key Terms packet  envelope of data sent between computers server  provides services to the network client  requests actions.
Computer communication
LECTURE 9 CT1303 LAN. LAN DEVICES Network: Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and.
Networking and Operating Systems. Networking What is it? Things that are hooked together. Computer Network- Computers that are connected together.
Slide 1 What is a Computer Network? A computer network is a linked set of computer systems capable of sharing computer power and resources such as printers,
What Is A Network A network is a group of computers interconnected with communication lines which allows users to share information and resources.
ITED 328 Lecture 4 12 Feb 2004 Loosely covering Chapter 5 Internet and LAN Technology.
Introduction to CS447 Department of Computer Science Southern Illinois University Edwardsville Fall, 2015 Dr. Hiroshi Fujinoki
Networks and Networking Chapter 4 Copyright Prentice-Hall, Inc
Chapter 1 An Introduction to Networking Collected and Compiled By JD Willard MCSE, MCSA, Network+, Microsoft IT Academy Administrator Computer Information.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
Network Parts. Network Interface Card (NIC) 2 This used to be a separate card as shown. As many computers these days need access to a network, the technology.
Chapter 1 Basics of Networking & Designs of Simple Networks powered by DJ.
S305 – Network Infrastructure Chapter 6 Local Area Network.
$100 $200 $300 $400 $500 Network topologies Client Architecture Physical Transmission Media Uses of Tele communications Misc. Network Misc. Network.
HNC COMPUTING - Network Concepts 1 Network Concepts Devices Introduction into Network Devices.
What is a Network? Living Online Lesson 1 Mrs. Elzey.
"Networking 101: Basics" Jim Gogan INLS184. Introduction - Why network? l Communicate with others close by l Communicate with others far away l Gain access.
NETWORK HARDWARE CABLES NETWORK INTERFACE CARD (NIC)
Vishesh Kumar.  Routers  Repeaters  Bridges  Hub  Switches  Gateways Vishesh Kumar.
Summary - Part 2 - Objectives The purpose of this basic IP technology training is to explain video over IP network. This training describes how video can.
1 Networks: A group of two or more computer systems linked together. There are many types of computer networks, including: local-area networks (LANs) :
NET 324 D Networks and Communication Department Lec1 : Network Devices.
NETWORKING FUNDAMENTALS. Network+ Guide to Networks, 4e2.
1 LAN – local area network overview: 1.Types of networks 2.Network topology 3.LAN local area networks 4.Introduction to TCP/IP 5.IEEE / Wireless.
9-1 Chapter 9 - Networking and Communication Computer Architecture and Organization by M. Murdocca and V. Heuring © 2007 M. Murdocca and V. Heuring Computer.
 A hub is a central connecting device in a network.  Each node is connected directly to the hub.  They receive a data packet from one node and send.
Networks Network Components. Learning Objectives Describe different media for transmitting data and their carrying capabilities. Explain the different.
Local-Area Networks. Topology Defines the Structure of the Network – Physical topology – actual layout of the wire (media) – Logical topology – defines.
Rehab AlFallaj.  Network:  Nodes: Service units: PC Interface processing Modules: it doesn’t generate data, but just it process it and do specific task.
Local Area Networks: Monil Adhikari. Primary Function of a LAN File serving – large storage disk drive acts as a central storage repository Print serving.
What Is A Network A network is a group of computers interconnected with communication lines which allows users to share information and resources.
Computer Network Architecture Lecture 3: Network Connectivity Devices.
THE NETWORKS Theo Chakkapark. Open System Interconnection  The tower of power!  The source of this power comes from the model’s flexibility.
NETWORK DEVICES Department of CE/IT.
Computer Networks and Internet. 2 Objectives Computer Networks Computer Networks Internet Internet.
CHAPTER -II NETWORKING COMPONENTS CPIS 371 Computer Network 1 (Updated on 3/11/2013)
Chapter 3.  Help you understand what hardware is required to allow networks to work including: ◦ Repeaters ◦ Hub ◦ Switch ◦ Bridge ◦ Gateway (not needed.
Lecture 2 unit 1.
Class Notes CS403- Internet Technology Prepared by: Gulrez Alam Khan.
Chapter 1 : Computer Networks. Lecture 1. Introduction to computer networks: Network definition : A network is a collection of computers and other devices.
Networks and Networking
Networking Objectives
Industrial communication networks
Unit 5 Introduction to Networking
Local Area Networks Honolulu Community College
Section 4 – Computer Networks
Chapter 3 Computer Networking Hardware
Mollie Sconyers.
CS447 - Networks and Data Communications
CT1303 LAN Rehab AlFallaj.
Computer Technology Notes #4
Why Use a Computer Network?
Computer Networks.
Computer Networks Lesson 2.
Presentation transcript:

CS 336/621 Computer Networks and Network Programming Spring 2009 Professor Allan B. Cruse University of San Francisco

Course synopsis Combines a survey of network principles with hands-on exercises and experiments Utilizes our classroom and CS laboratory networking hardware infrastructures Employs C/C++ programming language and the standard ‘sockets’ API libraries

Course prerequisites Open to USF Computer Science students Upper-division or graduate-level standing Familiarity with Linux (or UNIX) systems Programming experience: C/C++/Python Prior coursework: CS 110/112 and CS 245 (or the equivalent preparation elsewhere)

methodology Lectures Readings Discussions Demonstrations Exercises Projects Quizzes

Course website You will find current course-information at this website: Reading-assignments, exam-dates, class announcements, course-related software, links to other resources and to the ‘signup’ page for our class’s online discussion-list

Textbook James F. Kurose and Keith W. Ross Computer Networking: A Top-Down Approach 4 th Edition Pearson/Addison-Wesley (2008) This up-to-date textbook is very widely used in networking courses at colleges and universities in the United States and elsewhere. Lots of material – maybe too much for one semester – the authors recommend we cover at least the first five chapters in sequence, then maybe one of the concluding chapters if time allows for that.

Reference Model link layer network layer transport layer application layer The textbook authors have utilized the standard reference model for network-software’s layered architecture as a principle which guides their “Top-Down Approach” to organizing the Chapters Chapter 2 Chapter 3 Chapter 4 Chapter 5 introduction Chapter 1

Network hardware elements NIC (Network Interface Controller) Cable (e.g., coaxial, fiber optic, twisted pair) Repeater (boosts signal-strength on long cables) Hub (promiscuously connects nearby NICs) Switch (selectively connects nearby NICs) Bridge (connects multiple network segments) Router (intelligently forwards network packets)

Network Interface Card (NIC)

Before the internet there was… … sneaker-net! host Users often would transfer their data from one computer to another by simply copying it onto a floppy diskette, and then carrying that diskette over to their other computer – located, hopefully, not too far away (e.g., just down the hall)

‘crossover’ cable host An improvement over the ‘sneaker net’ approach to data sharing between two host computers that are a short distance apart is to utilize a special direct cable connection – inexpensive to purchase, easy to connect if NICs are installed, less physical effort is required, no floppy disks are needed, and no risk of any unwanted ‘virus’ software infecting the host machines NIC cable

A ‘Point-to-Point’ connection host repeater Over a long-distance cable-connection the electrical signals can degrade, but ‘repeaters’ can be inserted to receive and amplify a weakened signal before sending it along (i.e., “repeating it”) to the next connection-point

‘Local’ networks host ‘ring’ topology host HUB ‘star’ topology Why do you think the star-topology is more widely deployed nowadays?

‘Hub’ versus ‘Switch’ host Why are ‘switches’ preferred over ‘hubs’ nowadays?

The ‘Bridge’ device host switch host switch bridge

The ‘Router’ device host switch host switch host switch router

Network software elements operating system kernel network application program function library NIC device driver ‘socket’ data-structure User-space Kernel-space File and I/O subsystems (‘protocol stack’) cable

Demo: iplookup.py This application reports the IP- address for a particular network host (if it’s known) For example: $ python iplookup.py stargate The IP-address for ‘stargate’ is $ python iplookup.py pyramid The IP-address for ‘pyramid’ is $ python iplookup.py neptune The IP-address for ‘neptune’ is unknown

Source-code (in Python) #!/usr/bin/python import sys try: hostname = sys.argv[1] except: hostname = “localhost” import socket try: hostip = socket.gethostbyname( hostname ) except: hostip = “unknown” print “The IP-address for \’” + hostname + “\’ is “ + hostip

Demo: getquote.py This internet application reports the latest price for a share of Intel Corporation stock For example: $ python getquote.py Intel Stock: $13.53 at “12:05pm” on “1/26/2009”

Internet programming import socket try: host = “download.finance.yahoo.com” port = 80 sock = socket.socket( socket.AF_INET, socket.SOCK_STREAM ) sock.settimeout( 2 ) sock.connect( ( host, port) ) sock.send( “GET /d/quotes.csv?s=INTC&f=sl1d1t1c1ohgv&e=.csv \r\n” ) sock.send( “\r\n” ); response_string, server = sock.recvfrom( 4096 ) quote = str.split( response_string, ‘,’ ) except socket.error, msg: print “An error occurred:”, msg else: print print “Intel Stock: “, ‘$’+quote[1], “at”, quote[3], “on”, quote[2] print

In-class exercise #1 Can you modify the ‘getquote.py’ program so that it will report the latest stock-price for some other famous technology firms? –Microsoft Corporation –Red Hat Corporation –Oracle Corporation –Siemens Corporation –Sony Corporation