reference model. goal: 2 message exchange between application processes

21
Reference model

Upload: dorthy-harrison

Post on 17-Jan-2016

223 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Reference model. Goal: 2 message exchange between application processes

Reference model

Page 2: Reference model. Goal: 2 message exchange between application processes

Goal:

2

message exchange between application processes

Page 3: Reference model. Goal: 2 message exchange between application processes

What we should do?

message

Electrical signal

message

Where is the destination station?How to reach the station?What if error happens?What if congestion happens?How to make electrical signal?………..

Page 4: Reference model. Goal: 2 message exchange between application processes

Reference model

message

Electrical signal

message

Page 5: Reference model. Goal: 2 message exchange between application processes

Reference model

• Divide and conquer; divide the whole work into separate small tasks – layers

• Each layer is independent of other layers.

• Each layer in a station is communicating with the same layer in the corresponding station.

Page 6: Reference model. Goal: 2 message exchange between application processes

Introduction 1-6

analogy: overseas air travel

• Each task is working independently.

ticket (purchase)

baggage (check)

gates (load)

runway takeoff

airplane routing

ticket (complain)

baggage (claim)

gates (unload)

runway landing

airplane routing

airplane routing

Page 7: Reference model. Goal: 2 message exchange between application processes

Introduction 1-7

ticket (purchase)

baggage (check)

gates (load)

runway (takeoff)

airplane routing

departureairport

arrivalairport

intermediate air-trafficcontrol centers

airplane routing airplane routing

ticket (complain)

baggage (claim

gates (unload)

runway (land)

airplane routing

ticket

baggage

gate

takeoff/landing

airplane routing

Reference model for the travel

layers: each layer has its own mission.– Each layer works independently.– Lower layers provide services to the very

higher layer.

Page 8: Reference model. Goal: 2 message exchange between application processes

Reference model

application

transport

network

link

physical

application

presentation

session

transport

network

data link

physical

OSI 7 layersInternet layers

Page 9: Reference model. Goal: 2 message exchange between application processes

Application layer

• Application process has its own task to provide some services.– Web client/server, email, ftp, DNS etc.

• Then how can processes exchange messages to provide some services.

Page 10: Reference model. Goal: 2 message exchange between application processes

Transport Layer• Transport layer delivers all messages from

several application processes to the corresponding transport layer. – Then, how they can differentiate all messages?

networkaccess 1

IP

Transport

networkAccess 2

IP

transport

network networkaccess1 access2

IP

subnet 1

end-to-end

subnet 2

AP1 AP2 AP3 AP1 AP2 AP3

Page 11: Reference model. Goal: 2 message exchange between application processes

Network layernode-to-node delivery

• How to find the path to reach the destination.

Page 12: Reference model. Goal: 2 message exchange between application processes

Link layer

• Link layer takes the responsibility of delivering data between two nodes which are connected by the same physical link.

4.12

Page 13: Reference model. Goal: 2 message exchange between application processes

Link layer

• The data unit to be delivered at the link layer is called a frame.

• goal– How to know where the frame begins and

ends?• In addition,

– Is there any error during transmission?– Is there any frame loss because of the

processing speed difference between a sender and a receiver?

– And others.

Page 14: Reference model. Goal: 2 message exchange between application processes

Physical layer

• How to make a data frame into an electrical signal? (coding)

Page 15: Reference model. Goal: 2 message exchange between application processes

Physical layer and link layer

Page 16: Reference model. Goal: 2 message exchange between application processes

• How is the data unit (PDU) at each layer delivered to its lower or higher layer at the boundary?– encapsulation

• PDU consists of data part and header part.

• The header has the information with which each layer can do its own functions.

encapsulation

Page 17: Reference model. Goal: 2 message exchange between application processes

Introduction 1-17

source

application

transportnetwork

linkphysical

HtHn M

segment Ht

datagram

destination

application

transportnetwork

linkphysical

HtHnHl M

HtHn M

Ht M

M

networklink

physical

linkphysical

HtHnHl M

HtHn M

HtHn M

HtHnHl M

router

switch

message M

Ht M

Hn

frame

Page 18: Reference model. Goal: 2 message exchange between application processes

encapsulation

Page 19: Reference model. Goal: 2 message exchange between application processes

Communication protocol

Page 20: Reference model. Goal: 2 message exchange between application processes

Common protocol

TCP connection req

TCP connectionresponse

<file>

Hi

Hi

Got thetime?

2:00

time

Page 21: Reference model. Goal: 2 message exchange between application processes

How to specify in protocol

• Procedure to exchange messages• What kind of information should be

exchanged to do jobs.• How these information is contained

in the header.