Docsity

Layering - Computer Networks - Lecture Slides, Slides of Computer Networks

Partial preview of the text

Download Layering - Computer Networks - Lecture Slides and more Slides Computer Networks in PDF only on Docsity!

A Layered Approach to Computer

Networks

  • Physical Layer • Data Link Layer • Network Layer • Transport Layer • Session Layer • Presentation Layer • Application Layer

•^

Different layer ofabstraction

-^

Different error controlmechanisms at differentlayers

L

n +

L

n +

L

n +

L

n +

L

1

L

1

Physical Layer Layer

n

+2 protocol

Layer

n

+1 protocol

Design of a Network

• Layer to Layer interface must be well

understood.

• A set of layers and protocols constitute a

network architecture.

• A list of protocols used by a system, one per

layer is called a protocol stack.

M

M

H

4 H

4

H

4

H

3

H

2 H

3

H

2

H

3

M

1

M

2

M

1

M

2

T

1

T

1

H

3

M

H

4 H

4

H

4

H

3

H

2 H

3

H

2

H

3

M

1

M

2

M

T 1

1 H

3 M

M

T 2

1

L

protocol (^5) L 4 protocol

L

protocol (^3) L 2 protocol

ApplicationTransmission

NW Layer

DLL

src

dest

Physical

Docsity.com

Design of a Network

-^

Virtual communication between peers exceptPhysical Layer.

-^

Each layer thinks that there is a horizontalcommunication.

-^

At each layer:Procedures:^ – Send To Other Side^ – Get From Other Side^ – each communicates with lower layers.^ – each layer needs a mechanism to identify senders and

receivers

Design of a Network (Continued) • Modes of data transfer

  • Simplex, duplex, half-duplex

• Number of logical channels

  • Minium two
    • One for data, one for control

Fileapp

DigitalLib

Videoappl

RRP

MSP

HHP

Fileapp

DigitalLib

Videoappl

RRP

MSP

HHP

Example of Multiple protocols a the same layer

Different requirements for different

Applications

  • protocol stack for: -^

file application: • RRP / HHP

  • Digital Library

• RRP / HHP

  • Video Application:

•^

MSP / HHP

  • enable QoS, jitter, delay

video on demand / video conferencing

Must ensure reliable transmission

Layering in a Network

•^

flow and control:^ – prevented sender from swamping receiver.

• message formats:

  • different sizes at different levels – assemble / disassemble messages

Layer to Layer Communication

• Each layer provides service to the layer

above it^ – Layer n provides services for Layer n+1^ – Layer n service provider^ – Layer n+1 service user

Exchange of information between

two layers.

(IDU) IDU

ICI

SDU

control

Service Data Unit

(Interface Data Unit)

Interfaces and Services

-^

SDU

transmitted across Network

-^

Control

useful for lower layer to do their job

-^

e.g.

number of bytes

-^

Layer

n

fragments data into

PDUs (Protocol

Data Unit – packets)^ – each

PDU

has a header.

-^

PDUs

are used by peers to carry out peer control.

Types of Services

• connection oriented service

  • Telephone system

• connection less – postal system

  • (second message come before first – no

acknowledgement)^ • Two letters posted at the same time to same address

• reply paid telegram

  • Acknowledgement received for message

Layers and their functions

• Physical layer:

  • Transmits bits 0 & 1
    • what voltage to use • width of a bit
      • connection establishment – tearing down of connection – number of pins on Network connector and use

of each pin on the connector