osi model slides

50
1 Netprog: OSI Reference Model Networking

Transcript of osi model slides

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 1/50

1Netprog: OSI Reference Model

Networking

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 2/50

2Netprog: OSI Reference Model

Network

“ ... communication system for connecting

end-systems” 

End-systems a.k.a. “hosts” 

PCs, workstations

dedicated computers

network components

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 3/50

3Netprog: OSI Reference Model

Multiaccess vs. Point-to-point

Multiaccess means shared medium.

 – many end-systems share the same physical

communication resources (wire, frequency, ...) – There must be some arbitration mechanism.

Point-to-point – only 2 systems involved

 – no doubt about where data came from !

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 4/50

4Netprog: OSI Reference Model

Multiaccess Point-to-point 

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 5/50

5Netprog: OSI Reference Model

LAN - Local Area Network

connects computers that are physically

close together ( < 1 mile).

 – high speed – multi-access

Technologies:

 – Ethernet 10 Mbps, 100Mbps – Token Ring 16 Mbps

 – FDDI 100 Mbps

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 6/50

6Netprog: OSI Reference Model

WAN - Wide Area Network

connects computers that are physically

far apart. “long-haul network”. 

 – typically slower than a LAN. – typically less reliable than a LAN.

 – point-to-point

Technologies: – telephone lines

 – Satellite communications

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 7/507Netprog: OSI Reference Model

MAN - Metropolitan Area

Network Larger than a LAN and smaller than a

WAN

- example: campus-wide network

- multi-access network

Technologies:

 – coaxial cable

 – microwave

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 8/508Netprog: OSI Reference Model

Internetwork

Connection of 2 or more distinct(possibly dissimilar) networks.

Requires some kind of network device

to facilitate the connection.

Net A Net B

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 9/50

9Netprog: OSI Reference Model

OSI Reference Model

Layered model:

7. Application

6. Presentation5. Session

4. Transport

3. Network2. Data Link

1. Physical

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 10/50

10Netprog: OSI Reference Model

The Physical Layer

Responsibility:

 – transmission of raw bits over acommunication channel.

Issues:

 – mechanical and electrical interfaces

 – time per bit

 – distances

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 11/50

11Netprog: OSI Reference Model

The Data Link Layer -

Data Link Control Responsibility:

 – provide an error-free communication link

Issues: – framing (dividing data into chunks)

» header & trailer bits

 – addressing

10110110101 01100010011 10110000001

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 12/50

12Netprog: OSI Reference Model

The Data Link Layer -

The MAC sublayer Medium Access Control - needed by

mutiaccess networks.

MAC provides DLC with “virtual wires”

on multiaccess networks.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 13/50

13Netprog: OSI Reference Model

The Network Layer

Responsibilities:

 – path selection between end-systems (routing).

 – subnet flow control.

 – fragmentation & reassembly

 – translation between different network types.

Issues:

 – packet  headers

 – virtual circuits

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 14/50

14Netprog: OSI Reference Model

The Transport Layer

Responsibilities: – provides virtual end-to-end links between

peer processes.

 – end-to-end flow control Issues:

 – headers

 – error detection – reliable communication

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 15/50

15Netprog: OSI Reference Model

The Session Layer

Responsibilities:

 – establishes, manages, and terminates

sessions between applications. – service location lookup

Many protocol suites do not include asession layer.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 16/50

16Netprog: OSI Reference Model

The Presentation Layer

Responsibilities:

 – data encryption

 – data compression – data conversion

Many protocol suites do not include a

Presentation Layer.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 17/50

17Netprog: OSI Reference Model

The Application Layer

Responsibilities:

 – anything not provided by any of the other

layers Issues:

 – application level protocols

 – appropriate selection of “type of service” 

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 18/50

18Netprog: OSI Reference Model

Layering & Headers

Each layer needs to add some controlinformation to the data in order to do it’s

 job.

This information is typically prependedto the data before being given to thelower layer.

Once the lower layers deliver the thedata and control information - the peerlayer uses the control information.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 19/50

19Netprog: OSI Reference Model

Headers

Process

Transport

Networ

k

DataLink

Process

Transport

Network

Data Link

DATA

DATA

DATA

DATA

H

H

H

H

HH

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 20/50

20Netprog: OSI Reference Model

What are the headers?

Physical: no header - just a bunch of bits.

Data Link: – address of the receiving endpoints

 – address of the sending endpoint

 – length of the data – checksum.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 21/50

21Netprog: OSI Reference Model

Network layer header -

examples protocol suite

version

type of service length of the data

packet identifier

fragment number

time to live

protocol

header checksum

source networkaddress

destination network

address

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 22/50

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 23/50

23Netprog: OSI Reference Model

Connecting Networks

Repeater: physical layer

Bridge: data link layer

Router: network layer

Gateway: network layer and above.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 24/50

24Netprog: OSI Reference Model

Repeater

Copies bits from one network to another

Does not look at any bits

Allows the extension of a networkbeyond physical length limitations

REPEATER

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 25/50

25Netprog: OSI Reference Model

Bridge

Copies frames from one network toanother

Can operate selectively - does not copy

all frames (must look at data-linkheaders).

Extends the network beyond physical

length limitations.BRIDGE

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 26/50

26Netprog: OSI Reference Model

Router Copies packets from one network to another.

Makes decisions about what route a packet

should take (looks at network headers).

ROUTER 

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 27/50

27Netprog: OSI Reference Model

Gateway

Operates as a router

Data conversions above the network

layer. Conversions:

encapsulation - use an intermediate network

translation - connect different applicationprotocols

encrpyption - could be done by a gateway

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 28/50

28Netprog: OSI Reference Model

Encapsulation Example

Gateway  Gateway 

Provides service connectivity

even though intermediatenetwork does not supportprotocols.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 29/50

29Netprog: OSI Reference Model

Translation

Translate from green protocol to brownprotocol

Gateway 

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 30/50

30Netprog: OSI Reference Model

Encryption gateway

Encryption/DecryptionGateways

SecureNetwork SecureNetwork

GW GW  ??

?

Insecure Network

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 31/50

31Netprog: OSI Reference Model

Hardware vs. Software

Repeaters are typically hardware devices.

Bridges can be implemented in hardware or

software. Routers & Gateways are typically

implemented in software so that they can beextended to handle new protocols.

Many workstations can operate as routers orgateways.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 32/50

32Netprog: OSI Reference Model

Byte Ordering

Different computer architectures usedifferent byte ordering to representmultibyte values.

16 bit integer:

Low Byte

High Byte

High Byte

Low Byte

Address A

Address A+1

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 33/50

33Netprog: OSI Reference Model

Byte Ordering

Low ByteHigh Byte

Addr A Addr A+1

High ByteLow Byte

Addr A Addr A+1

Big-Endian

IBM 370

Motorola 68000Sun

Little-Endian

IBM 80x86

DEC VAXDEC PDP-11

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 34/50

34Netprog: OSI Reference Model

Byte Order and Networking

Suppose a Big Endian machine sends a

16 bit integer with the value 2:

A Little Endian machine will think it got

the number 512:

0000000000000010 

0000001000000000 

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 35/50

35Netprog: OSI Reference Model

Network Byte Order

Conversion of application-level data is

left up to the presentation layer.

But hold on !!! How do lower level layerscommunicate if they all represent valuesdifferently ? (data length fields in

headers) A fixed byte order is used (called

network byte order ) for all control data.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 36/50

36Netprog: OSI Reference Model

Multiplexing

“.. to combine many into one”.

Many processes sharing a single

network interface. A single process could use multiple

protocols.

More on this when we look at TCP/IP.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 37/50

37Netprog: OSI Reference Model

Modes of Service

connection-oriented vs. connectionless

sequencing

error-control flow-control

byte stream vs. message based

full-duplex vs. half-duplex.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 38/50

38Netprog: OSI Reference Model

Connection-Oriented vs.

Connectionless Service A connection-oriented service includes

the establishment of a logical

connection between 2 processes. – establish logical connection

 – transfer data

 – terminate connection.

Connectionless services involvesending of independent messages.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 39/50

39Netprog: OSI Reference Model

Sequencing

Sequencing provides support for an

order to communications.

A service that includes sequencingrequires that messages (or bytes) arereceived in the same order they are

sent.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 40/50

40Netprog: OSI Reference Model

Error Control

Some services require error detection (it

is important to know when a

transmission error has occured). Checksums provide a simple error

detection mechanism.

Error control sometimes involvesnotification and retransmission.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 41/50

41Netprog: OSI Reference Model

Flow Control

Flow control prevents the sending

process from overwhelming the

receiving process. Flow control can be handled a variety of

ways - this is one of the major researchissues in the development of the nextgeneration of networks (ATM).

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 42/50

42Netprog: OSI Reference Model

Byte Stream vs. Message

Byte stream implies an ordered

sequence of bytes with no message

boundaries. Message oriented services provide

communication service to chunks ofdata called datagrams.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 43/50

43Netprog: OSI Reference Model

Full- vs. Half-Duplex

Full-Duplex services support the

transfer of data in both directions.

Half-Duplex services support the

transfer of data in a single direction.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 44/50

44Netprog: OSI Reference Model

End-to-End vs. Hop-toHop

Many service modes/features such as

flow control and error control can be

done either:between endpoints of the communication.

-or-

between every 2 nodes on the path betweenthe endpoints.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 45/50

45Netprog: OSI Reference Model

End-to-End

Process A

Process B

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 46/50

46Netprog: OSI Reference Model

Hop-by-Hop

Process A

Process B

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 47/50

47Netprog: OSI Reference Model

Buffering

Buffering can provide more efficientcommunications.

Buffering is most useful for byte streamservices.

Process A Process B

Send

Buffer 

Recv.

Buffer 

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 48/50

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 49/50

49Netprog: OSI Reference Model

Addresses at Layers

Physical Layer: no address necessary

Data Link Layer - address must be able

to select any host on the network. Network Layer - address must be able

to provide information to enable routing.

Transport Layer - address must identify

the destination process.

8/12/2019 osi model slides

http://slidepdf.com/reader/full/osi-model-slides 50/50

Netprog: OSI Reference Model

Broadcasts

Many networks support the notion of

sending a message from one host to all

other hosts on the network. A special address called the “broadcast

address” is often used. 

Some popular network services arebased on broadcasting (YP/NIS, rup,rusers)