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

204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

1

Computer Networks

รศ.ดร.อนันต์ ผลเพิ่มAssoc. Prof. Anan Phonphoem, Ph.D.

[email protected]

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

Computer Engineering Department

Kasetsart University, Bangkok, Thailand

Jan – May 2017

Page 2: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

2

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Communication Concept

Page 3: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

3

How can the communication happen ?

Page 4: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

4

Data Communication

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 Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

Data Comm. Components

5

Hi

How are you

doing?

5 Protocol

4 Medium

3 Receiver 2 Sender

1 Message

Page 6: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

6

Networks

Set of Devices

Media Links

Page 7: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

7

Set of Devices

Networks

Media Links

Page 8: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

8

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Physical Connectivity

Page 9: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

9

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 10: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

10

Point-to-point

Satellite dish Satellite dish

Link

Page 11: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

11

Multipoint

Link

Page 12: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

12

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 13: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

13

Mesh Topology

Each device has a dedicated point-to-point link

total links = n(n-1)/2

Page 14: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

14

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 15: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

15

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 16: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

16

Bus Topology

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

Terminator

Page 17: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

17

Ring Topology

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

Page 18: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

Ring Physical TopologyIBM 8272 Token Ring

LAN Switchhttp://www.lordsnet.com/New8272.htm

Page 19: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

19

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 20: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

20

Transmission mode

The direction of signal flows between two linked devices

Three types of transmission modes

Simplex

Half-duplex

Full-duplex

Page 21: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

21

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Layering Concept

Page 22: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

22

Computer Communication Model

Modularity

Well-defined interfaces

Well-defined functions and protocol

Page 23: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

23

Transmit a letter

Page 24: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

24

Layered Architecture

•Applications

•Allow interoperability

•Ensure reliable data transmission

•Moving data

•Physical connections

User Support

Transport

Network Support

Network

User

Page 25: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

25

Layering Concept

1. Interfaces between layers (Physical)

2. Peer-to-Peer process (Logical)

Page 26: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

26

1. Interfaces between layers(Physical)

5

4

3

2

1

Above

Below

Page 27: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

27

2. Peer-to-Peer process(Logical)

5

4

3

2

1

5

4

3

2

1

Page 28: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

28

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 29: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

29

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 30: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

30

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 31: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

31

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 32: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

32

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Direct connection

Page 33: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

33

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 34: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

34

Data Flow in a station

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Hello

Hello543

Hello5432 T

1001101001011101011

4 Hello5

5 Hello

Encapsulation

Page 35: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

35

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Data Link Protocols

Page 36: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

36

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 37: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

37

Line Discipline

Flow Control

Error Control

TCP/IP Protocol Suite

Application5

4 Transport

3 Network

2 Data Link

1 Physical

Page 38: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

38

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 39: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

39

Data Link Control

Line Discipline

Flow Control

Error Control

ENQ / ACK

Poll / Select

Page 40: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

40

Line Discipline: ENQ/ACK

Page 41: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

41

Line Discipline:Poll/Select

Primary-secondary communicationMultipoint Discipline

Page 42: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

42

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 43: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

43

Stop-and-wait

Page 44: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

44

Sliding window

Page 45: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

45

Data Link Control

Line Discipline

Flow Control

Error Control

Stop-and-wait ARQ

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

Page 46: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

46

Stop-and-wait ARQ: Lost data frame

Page 47: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

47

Sliding WindowGo-back-n: Damaged data frame

Page 48: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

48

Sliding Window Selective-reject: Damaged data frame

Page 49: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

49

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LANLAN

Page 50: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

50

Local Area Networks

Project 802

Ethernet

Token Ring

FDDI

Page 51: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

51

OSI Model and Project 802

LLC: Logical Link ControlMAC: Medium Access Control

Page 52: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

52

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 53: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

53

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 54: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

54

3 Generations of Ethernet

Page 55: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

55

802.3 MAC Frame

Preamble + SFD Flag in HDLC

Page 56: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

56

Ethernet Address

Unicast Address

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

Broadcast Address

Multicast Address

FF-FF-FF-FF-FF-FF

01-00-5E-40-12-03range of 01-00-5E-00-00-00 to 01-00-5E-7F-FF-FF

Page 57: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

57

Ethernet

For Baseband:

Manchester Encoding

For Broadband:

Differential PSK

Support up to 100 Mbps

Page 58: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

58

10BaseT

Page 59: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

59

Collision Domain

Page 60: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

60

Switched Ethernet

Page 61: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

61

100Base-TX

Page 62: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

62

1000Base-X

Page 63: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

63

1000Base-T

Page 64: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

64

Token Passing

Page 65: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

65

Token Ring Frame

Page 66: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

66

Token Ring

Page 67: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

67

Token Ring Switch

Page 68: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

68

FDDI Rings

Page 69: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

69

FDDI Ring Failure

Page 70: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

70

Data Communication Review

Communication Concept

Physical Connectivity

Layering Concept

Data Link Protocols

LAN

Page 71: 204325 Data Communication and Computer Networksanan/myhomepage/wp-content/...204325 Data Communication and Computer Networks Author Anan Created Date 3/23/2017 11:20:01 AM

71

“Warriors of The Net”

Sit Back and Relax

… Enjoy the show