58
Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

Embed Size (px)

Citation preview

Page 1: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

Computer Networks 1

(Mạng Máy Tính 1)

Lectured by: Nguyễn Đức Thái

Page 2: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

2

Course details

Number of credits: 4

Study time allocation per week: 3 lecture hours for theory

2 lecture hours for exercises and lab work

8 hours for self-study

Website: http://www.cse.hcmut.edu.vn/~thai/

Page 3: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

3

Course outline (1)

Fundamental concepts in the design and implementation of computer networks Protocols, standards and applications Introduction to network programming.

Page 4: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

4

Course outline (2)

The topics to be covered include: Introduction to network architecture, OSI and the TCP/IP

reference models. Network technologies, especially LAN technologies

(Ethernet, wireless networks and Bluetooth). Issues related to routing and internetworking, Internet

addressing and routing. Internet transport protocols (UDP and TCP) Network-programming interface Application layer protocols and applications such as DNS,

E-mail, and WWW.

Page 5: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

5

References

“Computer Networks”, Andrew S. Tanenbaum, 4th

Edition, Prentice Hall, 2003.

“TCP/IP Protocol Suite”, B. A. Forouzan, Mc Graw-

Hill, 1st ed., 2000.

Page 6: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

6

Assessment

Assignment 20% Two assignments, 10% each

Midterm exam: 20%

Final exam: 60%

Laboratory work is compulsory No lab work = No assignment mark

Page 7: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

Lecture 1: Introduction to Computer

Networks

Reference:

Chapter 1 - “Computer Networks”,

Andrew S. Tanenbaum, 4th Edition, Prentice Hall, 2003.

Page 8: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

8

Uses of Computer Networks

Business Applications

Scientific Applications

Home Applications

Mobile Users

Page 9: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

9

Business Applications of Networks (1)

A network with two clients and one server.

Page 10: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

10

Business Applications of Networks (2)

The client-server model involves requests

and replies.

Page 11: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

11

Scientific Applications

Grid computing infrastructure to support scientific research

Page 12: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

12

Home Network Applications (1)

Access to remote information

Person-to-person communication

Interactive entertainment

Electronic commerce

Page 13: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

13

Home Network Applications (2)

In peer-to-peer system there are no fixed

clients and servers.

Page 14: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

14

Home Network Applications (3)

Some forms of e-commerce.

Page 15: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

15

Mobile Network Users

Combinations of wireless networks and

mobile computing.

Page 16: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

16

Network Hardware

Local Area Networks (LAN)

Metropolitan Area Networks (MAN)

Wide Area Networks (WAN)

Wireless Networks

Home Networks

Internetworks

Page 17: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

17

Local Area Networks

Two broadcast networks (a) Bus (b) Ring

Page 18: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

18

Metropolitan Area Networks

A metropolitan area network based on cable

TV.

Page 19: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

19

Wide Area Networks (1)

Relation between hosts on LANs and the

subnet.

Page 20: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

20

Wide Area Networks (2)

A stream of packets from sender to receiver.

Page 21: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

21

Wireless Networks (1)

Categories of Wireless Networks System interconnections

Wireless LANs

Wireless WANs

Page 22: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

22

Wireless Networks (2)

(a) Bluetooth configuration (b) Wireless LAN

Page 23: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

23

Wireless Networks (3)

(a) Individual mobile computers (b) A flying LAN

Page 24: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

24

Home Network Categories

Computers: desktop PC, PDA, shared peripherals

Entertainment: TV, DVD, VCR, camera, MP3

Telecomm: telephone, cell phone, intercom, fax

Appliances: microwave, fridge, clock, aircon

Telemetry: utility meter, burglar alarm, babycam

Page 25: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

25

Network Software

Protocol Hierarchies

Design Issues for the Layers

Connection-Oriented and Connectionless

Services

Service Primitives

The Relationship of Services to Protocols

Page 26: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

26

Network SoftwareProtocol Hierarchies

Layers, protocols, and interfaces.

Page 27: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

27

Protocol Hierarchies (2)

The philosopher-translator-secretary architecture.

Page 28: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

28

Protocol Hierarchies (3)

Example information flow supporting virtual

communication in layer 5.

Page 29: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

29

Design Issues for the Layers

Addressing

Error Control

Flow Control

Multiplexing

Routing

Page 30: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

30

Connection-Oriented and Connectionless

Services

Six different types of service.

Page 31: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

31

Service Primitives

Five service primitives for

implementing a simple connection-

oriented service.

Page 32: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

32

Service Primitives (2)

Packets sent in a simple client-server

interaction on a connection-oriented

network.

Page 33: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

33

Services to Protocols Relationship

The relationship between a service and a

protocol.

Page 34: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

34

Reference Models

The OSI Reference Model

The TCP/IP Reference Model

A Comparison of OSI and TCP/IP

A Critique of the OSI Model and Protocols

A Critique of the TCP/IP Reference Model

Page 35: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

35

OSI Reference Model

The OSI reference model.

Page 36: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

36

TCP/IP Reference Models (1)

The TCP/IP reference model.

Page 37: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

37

TCP/IP Reference Model (2)

Protocols and networks in the TCP/IP model

initially.

Page 38: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

38

Comparing OSI and TCP/IP

Models

Concepts central to the OSI model

Services

Interfaces

Protocols

Page 39: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

39

A Critique of the OSI Model and

Protocols Why OSI did not take over the world

Bad timing

Bad technology

Bad implementations

Bad politics

Page 40: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

40

Bad Timing

The apocalypse of the two elephants.

Page 41: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

41

A Critique of the TCP/IP Reference

Model Problems:

Service, interface, and protocol not distinguished

Not a general model

Host-to-network “layer” not really a layer

No mention of physical and data link layers

Minor protocols deeply entrenched, hard to

replace

Page 42: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

42

Hybrid Model

The hybrid reference model to be used in

this book.

Page 43: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

43

Example Networks

The Internet

Connection-Oriented Networks:

X.25, Frame Relay, and ATM

Ethernet

Wireless LANs: IEEE 802.11

Page 44: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

44

The ARPANET (1)

(a) Structure of the telephone system. (b) Baran’s proposed distributed switching

system.

Page 45: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

45

The ARPANET (2)

The original ARPANET design.

Page 46: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

46

The ARPANET (3)

Growth of the ARPANET (a) December 1969. (b) July 1970. (c) March 1971. (d) April 1972. (e) September 1972.

Page 47: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

47

NSFNET

The NSFNET backbone in 1988.

Page 48: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

48

Internet Usage

Traditional applications (1970 – 1990) E-mail

News

Remote login

File transfer

Page 49: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

49

Architecture of the Internet

Overview of the Internet.

Page 50: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

50

ATM Virtual Circuits

A virtual circuit.

Page 51: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

51

Ethernet

Architecture of the original Ethernet.

Page 52: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

52

Wireless LANs (1)

(a) Wireless networking with a base station. (b) Ad hoc networking.

Page 53: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

53

Wireless LANs (2)

The range of a single radio may not cover

the entire system.

Page 54: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

54

Wireless LANs (3)

A multicell 802.11 network.

Page 55: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

55

Network Standardization

Who’s Who in the Telecommunications World

Who’s Who in the International Standards

World

Who’s Who in the Internet Standards World

Page 56: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

56

ITU

Main sectors• Radiocommunications

• Telecommunications Standardization

• Development

Classes of Members• National governments

• Sector members

• Associate members

• Regulatory agencies

Page 57: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

57

IEEE 802 Standards

The 802 working groups. The important ones are marked with *. The ones marked with are hibernating. The one

marked with † gave up.

Page 58: Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Nguyễn Đức Thái

58

Metric Units

The principal metric prefixes.