69
1 Computer Networks รศ.ดร.อนันต์ ผลเพิ่ม Asso. Prof. Anan Phonphoem, Ph.D. [email protected] http://www.cpe.ku.ac.th/~anan Computer Engineering Department Kasetsart University, Bangkok, Thailand Nov 2009

204325 Data Communication and Computer Networks

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 204325 Data Communication and Computer Networks

1

Computer Networks

รศ.ดร.อนันต์ ผลเพิ่ม

Asso. Prof. Anan Phonphoem, [email protected]

http://www.cpe.ku.ac.th/~anan

Computer Engineering Department

Kasetsart University, Bangkok, Thailand

Nov 2009

Page 2: 204325 Data Communication and Computer Networks

2

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Communication Concept

Page 3: 204325 Data Communication and Computer Networks

3

How can the communication happen ?

Page 4: 204325 Data Communication and Computer Networks

Data Communication

4

Hi

How are you

doing?

How are youdoing?

Hi

01010001 01010001

Hi

10010001 10010001

How are you

01010100 01010100

doing?

Hi

How are you

doing?

UserComputer

Page 5: 204325 Data Communication and Computer Networks

Data Comm. Components

5

Hi

How are you

doing?

5 Protocol

4 Medium

3 Receiver2 Sender

1 Message

Page 6: 204325 Data Communication and Computer Networks

6

Networks

SD

iMac

Set of Devices

Media Links

Page 7: 204325 Data Communication and Computer Networks

7

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Physical Connectivity

Page 8: 204325 Data Communication and Computer Networks

8

Line configuration

Defines the attachment of communication devices to a link

A link – A physical communication pathway

2 possible configurations

Point-to-point

Multipoint

Page 9: 204325 Data Communication and Computer Networks

9

Point-to-point

Satellite dish Satellite dish

Link

Page 10: 204325 Data Communication and Computer Networks

10

Multipoint

Link

Page 11: 204325 Data Communication and Computer Networks

11

Topology

The way a network is physically or logically layout

2 or more devices connected to a link

2 or more links form a topology

Page 12: 204325 Data Communication and Computer Networks

12

Mesh Topology

Each device has a dedicated point-to-point link

total links = n(n-1)/2

Page 13: 204325 Data Communication and Computer Networks

13

Star Topology

Each device has a dedicated point-to-point link to a central controller (Hub)

ACTACT10M100M

1 2 3 4

13 14 15 16

5 6 7 8

17 18 19 20

9 10 11 12

21 22 23 24

UPLINK

1 2 3 4 5 6 7 8 9 101112

131415161718192021222324COLCOL

PWR

SWITCH

Page 14: 204325 Data Communication and Computer Networks

14

Tree Topology

A variation of star

ACTACT10M100M

1 2 3 4

13 14 15 16

5 6 7 8

17 18 19 20

9 10 11 12

21 22 23 24

UPLINK

1 2 3 4 5 6 7 8 9 101112

131415161718192021222324COLCOL

PWR

SWITCH

ACTACT10M100M

1 2 3 4

13 14 15 16

5 6 7 8

17 18 19 20

9 10 11 12

21 22 23 24

UPLINK

1 2 3 4 5 6 7 8 9 101112

131415161718192021222324COLCOL

PWR

SWITCHACTACT

10M100M1 2 3 4

13 14 15 16

5 6 7 8

17 18 19 20

9 10 11 12

21 22 23 24

UPLINK

1 2 3 4 5 6 7 8 9 101112

131415161718192021222324COLCOL

PWR

SWITCH

Page 15: 204325 Data Communication and Computer Networks

15

Bus Topology

Each node connects to the Bus (a long cable running as a backbone)

Terminator

Page 16: 204325 Data Communication and Computer Networks

16

Ring Topology

Each device has a dedicated point-to-point with its neighbors

Page 17: 204325 Data Communication and Computer Networks

17

Hybrid Topologies

ACTACT10M100M

1 2 3 4

13 14 15 16

5 6 7 8

17 18 19 20

9 10 11 12

21 22 23 24

UPLINK

1 2 3 4 5 6 7 8 9 101112

131415161718192021222324COLCOL

PWR

SWITCH

ACTACT10M100M

1 2 3 4

13 14 15 16

5 6 7 8

17 18 19 20

9 10 11 12

21 22 23 24

UPLINK

1 2 3 4 5 6 7 8 9 101112

131415161718192021222324COLCOL

PWR

SWITCH

Page 18: 204325 Data Communication and Computer Networks

18

Transmission mode

The direction of signal flows between two linked devices

Three types of transmission modes

Simplex

Half-duplex

Full-duplex

Page 19: 204325 Data Communication and Computer Networks

19

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Layering Concept

Page 20: 204325 Data Communication and Computer Networks

20

Computer Communication Model

Modularity

Well-defined interfaces

Well-defined functions and protocol

Page 21: 204325 Data Communication and Computer Networks

21

Transmit a letter

Page 22: 204325 Data Communication and Computer Networks

22

Layered Architecture

•Applications

•Allow interoperability

•Ensure reliable data transmission

•Moving data

•Physical connections

User Support

Transport

Network Support

Network

User

Page 23: 204325 Data Communication and Computer Networks

23

Layering Concept

1. Interfaces between layers (Physical)

2. Peer-to-Peer process (Logical)

Page 24: 204325 Data Communication and Computer Networks

24

1. Interfaces between layers(Physical)

5

4

3

2

1

Above

Below

Page 25: 204325 Data Communication and Computer Networks

25

2. Peer-to-Peer process(Logical)

5

4

3

2

1

5

4

3

2

1

Page 26: 204325 Data Communication and Computer Networks

26

Open Systems Interconnection(OSI) Model

7 Application

6 Presentation

5 Session

4 Transport

3 Network

2 Data Link

1 Physical

User Support

Transport

Network Support

Network

User

Page 27: 204325 Data Communication and Computer Networks

27

OSI Model

7 Application

6 Presentation

5 Session

4 Transport

3 Network

2 Data Link

1 Physical

User service

Translate format, encrypt

Session manage, checkpoints

Reliable end-to-end (whole message)

Packet end-to-end (across network)

Node-to-node (same network segment)

Physical

Page 28: 204325 Data Communication and Computer Networks

28

OSI model “It’s just a model”

7 Application

6 Presentation

5 Session

4 Transport

3 Network

2 Data Link

1 Physical

Applications

TCP/ UDP

IP

Physical

Data Link

TCP/IP

Page 29: 204325 Data Communication and Computer Networks

29

TCP/IP Protocol Suite (Internet Model)

Applications User service and interface5

Transport Process delivery + Error (TCP/UDP)4

NetworkPacket end-to-end (across network)

3

Data Link2

Physical (mechanical and electrical spec)1

Provide framesNode-to-node (same network segment)

Transmission bit streams

Move packets from source to destination

Reliable end-to-end (whole message)

Page 30: 204325 Data Communication and Computer Networks

30

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Direct connection

Page 31: 204325 Data Communication and Computer Networks

31

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Connection via intermediate nodes

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Network

Link Link

Page 32: 204325 Data Communication and Computer Networks

32

Data Flow in a station

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Hello

Hello543

Hello5432 T

1001101001011101011

4 Hello5

5 Hello

Page 33: 204325 Data Communication and Computer Networks

33

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Data Link Protocols

Page 34: 204325 Data Communication and Computer Networks

34

Physical characteristics of interface

Stream of Bits (e.g., 001010100100)

Line config. (e.g., point-to-point)

Topology (e.g., bus, star)

Transmission mode

(e.g., half-duplex, full-duplex)

Encoding

Error detection (and correction)

TCP/IP Protocol Suite

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Page 35: 204325 Data Communication and Computer Networks

35

Line Discipline

Flow Control

Error Control

TCP/IP Protocol Suite

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Page 36: 204325 Data Communication and Computer Networks

36

Data Link Control

Line Discipline

Flow Control

Error Control

Who Should send data and When ?

How much data may be sent?

How can errors be Detected and correct?

Page 37: 204325 Data Communication and Computer Networks

37

Data Link Control

Line Discipline

Flow Control

Error Control

ENQ / ACK

Poll / Select

Page 38: 204325 Data Communication and Computer Networks

38

Line Discipline: ENQ/ACK

Page 39: 204325 Data Communication and Computer Networks

39

Line Discipline:Poll/Select

Primary-secondary communicationMultipoint Discipline

Page 40: 204325 Data Communication and Computer Networks

40

Data Link Control

Line Discipline

Flow Control

Error Control

Stop-and-wait(one frame at a time)

Sliding window(several frames at a time)

a set of procedures used to restrict the amount of data that the sender can send

Page 41: 204325 Data Communication and Computer Networks

41

Stop-and-wait

Page 42: 204325 Data Communication and Computer Networks

42

Sliding window

Page 43: 204325 Data Communication and Computer Networks

43

Data Link Control

Line Discipline

Flow Control

Error Control

Stop-and-wait ARQ

Sliding window ARQ• Go-back-n• Selective-reject

Page 44: 204325 Data Communication and Computer Networks

44

Stop-and-wait ARQ: Lost data frame

Page 45: 204325 Data Communication and Computer Networks

45

Sliding WindowGo-back-n: Damaged data frame

Page 46: 204325 Data Communication and Computer Networks

46

Sliding Window Selective-reject: Damaged data frame

Page 47: 204325 Data Communication and Computer Networks

47

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LANLAN

Page 48: 204325 Data Communication and Computer Networks

48

Local Area Networks

Project 802

Ethernet

Token Ring

FDDI

Page 49: 204325 Data Communication and Computer Networks

49

OSI Model and Project 802

LLC: Logical Link ControlMAC: Medium Access Control

Page 50: 204325 Data Communication and Computer Networks

50

IEEE 802 LAN Std. Family802 Overview and Architecture

802.1 Network Management

802.2 Logical Link Control (LLC)

802.3 CSMA/CD - Ethernet

1802.3Conformance Test Methodology for IEEE 802.3

802.4 Token Passing Bus

802.5 Token Ring

802.6Metropolitan Area Network (MAN) : DQDB

802.7 Broadband LAN

802.8 Fiber Optic

802.9 Isochonous LAN

802.10 Integrated Service Security

802.11 Wireless LAN

802.12 Demand Priority

802.15 Wireless PAN

802.16Broadband Wireless Access (Wireless MAN)

802.17 Resilient Packet Ring

802.18 Radio Regulatory

Page 51: 204325 Data Communication and Computer Networks

51

IEEE 802 LAN Std. Family

802.2Logical Link Control (LLC)

802.3CSMA/CD

802.4TokenBus

802.5TokenRing

802.11Wireless

LAN

Layer 2Data Link

Layer 1Physical

MAC

PHY

Layer 3-7

Page 52: 204325 Data Communication and Computer Networks

52

3 Generations of Ethernet

Page 53: 204325 Data Communication and Computer Networks

53

802.3 MAC Frame

Preamble + SFD Flag in HDLC

Page 54: 204325 Data Communication and Computer Networks

54

Ethernet Address

Unicast Address

(for source and Destination)00-E0-00-AB-04-50

Broadcast Address FF-FF-FF-FF-FF-FF

Multicast Address 11-C0-02-D9-12-77

Page 55: 204325 Data Communication and Computer Networks

55

Ethernet

For Baseband:

Manchester Encoding

For Broadband:

Differential PSK

Support up to 100 Mbps

Page 56: 204325 Data Communication and Computer Networks

56

10BaseT

Page 57: 204325 Data Communication and Computer Networks

57

Collision Domain

Page 58: 204325 Data Communication and Computer Networks

58

Switched Ethernet

Page 59: 204325 Data Communication and Computer Networks

59

100Base-TX

Page 60: 204325 Data Communication and Computer Networks

60

1000Base-X

Page 61: 204325 Data Communication and Computer Networks

61

1000Base-T

Page 62: 204325 Data Communication and Computer Networks

62

Token Passing

Page 63: 204325 Data Communication and Computer Networks

63

Token Ring Frame

Page 64: 204325 Data Communication and Computer Networks

64

Token Ring

Page 65: 204325 Data Communication and Computer Networks

65

Token Ring Switch

Page 66: 204325 Data Communication and Computer Networks

66

FDDI Rings

Page 67: 204325 Data Communication and Computer Networks

67

FDDI Ring Failure

Page 68: 204325 Data Communication and Computer Networks

68

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Page 69: 204325 Data Communication and Computer Networks

69

“Warriors of The Net”

Sit Back and Relax

… Enjoy the show