21
1 EEC-484/584 Computer Networks Lecture 1 Wenbing Zhao Department of Electrical and Computer Engineering Cleveland State University [email protected] (Lecture nodes are based on materials supplied by Dr. Louise Moser at UCSB and Prentice-Hall) 30 August 2005 EEC484/584 2 Wenbing Zhao Outline Syllabus Introduction to computer networks Definition Uses of computer networks Network hardware Network software

EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

1

EEC-484/584Computer Networks

Lecture 1

Wenbing ZhaoDepartment of Electrical and Computer Engineering

Cleveland State University

[email protected](Lecture nodes are based on materials supplied by

Dr. Louise Moser at UCSB and Prentice-Hall)

30 August 2005 EEC484/584

2

Wenbing Zhao

Outline

SyllabusIntroduction to computer networks

DefinitionUses of computer networksNetwork hardwareNetwork software

Page 2: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

2

30 August 2005 EEC484/584

3

Wenbing Zhao

Course Objectives

Become familiar with the basics of computer networks

What is a computer networkWhat are the network architecturesWhat are the fundamental protocols

Get some hands-on experiences Learn some basic network computing techniquesLearn how to design a network protocol

30 August 2005 EEC484/584

4

Wenbing Zhao

Outline of LecturesIntroduction to computer networksPhysical layerData link layerMedium access control sublayerNetwork layerTransport layerApplication layerNetwork security

Page 3: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

3

30 August 2005 EEC484/584

5

Wenbing Zhao

Outline of ProjectsProject 1: Sockets for inter-process communication

Learn basic network programming skillsLearn how to design a network protocol

Project 2: Set up your Web siteLearn basic HTML commandsLearn XML/XSL (extra-credit)

Both are single-person projects. However, two-person team will be considered, with higher expectationsAlso open to other project ideas

30 August 2005 EEC484/584

6

Wenbing Zhao

Grading PolicyGrade components & relative weights:

Projects: 20%Homework Assignments: 20% 1st midterm exams: 20% (chapters 1-4)2nd midterm exams: 20% (chapters 5-6)Final exam: 20% (chapters 7-8)Exams are all closed-book closed-notes. However, you can bring with you one page of formulas and definitions (US Letter size or smaller)

Page 4: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

4

30 August 2005 EEC484/584

7

Wenbing Zhao

Grading Policy

Do not cheat!Do not copy other student’s homework, exams or projectDo not copy someone else’s work found on the Internet

− Including project implementation and report− You can quote a sentence or two, but put those in quote and give

reference− You can build your project or homework on top of open source

libraries, but again, you need to explicitly give acknowledgement and state clearly which parts are implemented by you

30 August 2005 EEC484/584

8

Wenbing Zhao

Reference TextsAndrew S. Tanenbaum :

Computer Networks− 4th Edition, Prentice-Hall, 2003

James F. Kurose, Keith W. Ross,Computer Networking: A Top-Down Approach Featuring the Internet

− 3rd Edition, Addison-Wesley, 2004

Richard Stevens:Unix Network Programming: Volume 1 Sockets and XTI

− 2nd Edition, 1998

Page 5: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

5

30 August 2005 EEC484/584

9

Wenbing Zhao

Misc

Instructor:Dr. Wenbing Zhao

− Email: [email protected]− Lecture hours: MW 6:00-7:50pm− Office hours: TTh 4:00-6:00pm and by appointment

Course Web site:http://academic.csuohio.edu/zhao_w/teaching/EEC484-F05/eec484.htmLecture nodes and homework will be posted

30 August 2005 EEC484/584

10

Wenbing Zhao

Introduction of Computer Networks

Uses of computer networksNetwork HardwareNetwork software

Page 6: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

6

30 August 2005 EEC484/584

11

Wenbing Zhao

Definition of Computer NetworkComputer Network: Interconnected collection of autonomous computers

Interconnected – able to exchange info via copper wire, fiber, microwaves, satellites, etc.Autonomous – act independentlySingle network vs. network of networks

− A single network uses a single technology

User must handle network management explicitly

30 August 2005 EEC484/584

12

Wenbing Zhao

Computer Network vs Distributed System

Distributed system - A collection of independent computers that appear to the users as a single coherent system

Software specifically designed to provide an integrated computing facilityTwo aspects (1) independent computers and (2) single system ⇒middleware

Page 7: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

7

30 August 2005 EEC484/584

13

Wenbing Zhao

Uses of Computer Networks

Business applicationsHome applicationsMobile usersSocial issues

30 August 2005 EEC484/584

14

Wenbing Zhao

Business Applications of Networks

Goals of using computer networks for businessResource sharingProvide powerful communication medium among employeesDoing business electronically with other companiesDoing business with consumers over the Internet (e-commence)

Page 8: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

8

30 August 2005 EEC484/584

15

Wenbing Zhao

Resource SharingResource sharing

Equipment, software programs, data

Client-server modelServer – provides services for clientsA network with two clients and one server

30 August 2005 EEC484/584

16

Wenbing Zhao

Client-Server Model

The client-server model involves requests and replies

Page 9: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

9

30 August 2005 EEC484/584

17

Wenbing Zhao

Home Network ApplicationsAccess to remote information

WWW, online newspapers, sports newsPerson-to-person communication

Instant messaging, chat room, peer-to-peer communication/file sharing

Interactive entertainmentVideo on demand, game playing

Electronic commerceOnline banking, online auction, etc.

30 August 2005 EEC484/584

18

Wenbing Zhao

Home Network Applications

In peer-to-peer system there are no fixed clients and servers

Page 10: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

10

30 August 2005 EEC484/584

19

Wenbing Zhao

Home Network Applications

Some forms of e-commerce

30 August 2005 EEC484/584

20

Wenbing Zhao

Mobile Network UsersWireless network

Portable office, military, taxis, trucksFixed wireless, mobile wireless

Combinations of wireless networks and mobile computing

Page 11: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

11

30 August 2005 EEC484/584

21

Wenbing Zhao

Mobile Network Users

Future applicationsWireless parking meters, vending machine inventory report, utility meter reading, merge of cell phones and PDAs, m-commerce, personal area networks and wearable computersSmart watches, smart dust

30 August 2005 EEC484/584

22

Wenbing Zhao

Social Issues

Offending contentCopyright violationsSpamsVirusesWho is responsible?

Network operator? Software provider? Users?

What kind of control is appropriate?

Page 12: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

12

30 August 2005 EEC484/584

23

Wenbing Zhao

Network HardwareNo generally accepted taxonomy. Two dimensions

Transmission technologyScale

Transmission technologyBroadcast linksPoint-to-point links (unicasting)

30 August 2005 EEC484/584

24

Wenbing Zhao

Classification by ScalePersonal area networksLocal area networksMetropolitan area networksWide area networksThe Internet

Page 13: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

13

30 August 2005 EEC484/584

25

Wenbing Zhao

Local Area Networks

LAN typically spans a room, a building or a campusLANs are distinguished from other kinds of networks by three characteristics

Size – restricted in size => worst-case transmission time is boundedTransmission technology – typically using broadcast

− Static and dynamic broadcast channel allocation

Topology

30 August 2005 EEC484/584

26

Wenbing Zhao

Local Area Networks

Two broadcast networks(a) Bus(b) Ring

Page 14: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

14

30 August 2005 EEC484/584

27

Wenbing Zhao

Metropolitan Area NetworksMAN covers a cityA metropolitan area network based on cable TV

30 August 2005 EEC484/584

28

Wenbing Zhao

Wide Area NetworksSpans a large geographical area, often a country or continentNetwork structure in WAN

Hosts or end systems− Collection of machines that run user (application) programs− Owned by customers

Communication Subnet – connects hosts− The job of the subnet is to carry messages from host to host, just as

the telephone system carries words from speaker to listener

Separation of the pure communication aspects of the network (the subnet) from the application aspects (the hosts), greatly simplifies the complete network design

Page 15: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

15

30 August 2005 EEC484/584

29

Wenbing Zhao

Communication Subnet

Communication SubnetTwo distinct components

− Transmission lines – move bits (circuits, channels, trunks)− Routers or switching elements that connect three or

more transmission lines

Two types of designs− Point-to-point channels− Broadcast channels

30 August 2005 EEC484/584

30

Wenbing Zhao

Wide Area Networks

Relation between hosts on LANs and the subnet

Page 16: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

16

30 August 2005 EEC484/584

31

Wenbing Zhao

Point-to-Point Channels in WANStore and forward or packet switchIf no direct connection, must use intermediate switching elements where store packets until required output line is free and then forwardMany different topologies – ring, star, tree, irregular

ring star tree irregular

30 August 2005 EEC484/584

32

Wenbing Zhao

Point-to-Point Channels in WAN

A stream of packets from sender to receiver

Page 17: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

17

30 August 2005 EEC484/584

33

Wenbing Zhao

Broadcast Channels in WANSent by one, received by allAddress field specifies intended destinations

Multicast if more than one destination

When machine receives packet, checks address ignores if not for itTopologies

ringbus satellite

30 August 2005 EEC484/584

34

Wenbing Zhao

Broadcast Channels in WANNeed to arbitrate simultaneous access to mediumTwo approaches

Static− Divide time into slots, use round robin strategy− Waste channel capacity when nothing to send

Dynamic− Centralized – bus arbitration unit decides who goes next− Decentralized – each machine decides for itself

A B C A B C

Page 18: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

18

30 August 2005 EEC484/584

35

Wenbing Zhao

Wireless NetworksCategories of wireless networks

System interconnectionWireless LANsWireless WANs

30 August 2005 EEC484/584

36

Wenbing Zhao

System Interconnection

System interconnection: interconnecting the components of a computer using short-range radio

Mouse, keyboard, printer, etc.

Bluetooth: a short-range wireless network to connect these components without wiresSystem interconnection networks typically use the master-slave paradigm

Page 19: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

19

30 August 2005 EEC484/584

37

Wenbing Zhao

System Interconnection

Wireless LANBluetooth configuration

30 August 2005 EEC484/584

38

Wenbing Zhao

Wireless LAN

Wireless LANs are systems in which every computer has a radio modem and antenna with which it can communicate with other systemsWireless LANs are becoming increasingly common in small offices and homesThere is standard for wireless LANs: IEEE 802.11

Page 20: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

20

30 August 2005 EEC484/584

39

Wenbing Zhao

Wireless WAN

Wireless WAN: wireless networks used in WANExample: radio network used for cellular telephones

Low speed networks, date rate < 1Mbps

Local multipoint distribution service: High bandwidthIEEE 802.16

30 August 2005 EEC484/584

40

Wenbing Zhao

Wireless Networks

Individual mobile computers A flying LAN

Almost all wireless networks hook up to the wired network at some point to provide access to files, databases, and the Internet

Page 21: EEC-484/584 Computer Networks - Cleveland State University › zhao_w › teaching › Old › EEC484... · 2005-08-30 · Wireless WAN Wireless WAN: wireless networks used in WAN

21

30 August 2005 EEC484/584

41

Wenbing Zhao

Home Network CategoriesComputers

Desktop PC, PDA, shared peripherals

Entertainment TV, DVD, VCR, camera, stereo, MP3 player

Telecomm Telephone, cell phone, intercom, fax

Appliances Microwave, fridge, clock, furnace, air conditioner

Telemetry Utility meter, burglar alarm, babycam

30 August 2005 EEC484/584

42

Wenbing Zhao

Internetworks

Many networks exist, often with different hardware and softwarePeople connected to one network often want to communicate with people attached to a different oneGateways are used to make the connection and provide the necessary translation, both in terms of hardware and softwareA collection of interconnected networks is called an internetworks or internet