The OSI Model - Andrew · PDF file · 2016-09-23OSI Model Consider the network...

43
The OSI Model Level 3 Unit 9 Computer Networks Level 3 Unit 9 Computer Networks Lecturer: Andrew Blundell

Transcript of The OSI Model - Andrew · PDF file · 2016-09-23OSI Model Consider the network...

TheOSIModelLevel3Unit9ComputerNetworks

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

OSIModelConsiderthenetworkmodelswehavealreadycovered

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

WheneverdataistransferredfromPCtoPCorPCtoServeritwilltravelthroughtheLayersoftheOSIModel

OSIModel

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

OSIModelWhydoyouneedtoLearnaboutOSI?

• NetworkprofessionalsusetheOSItocommunicatewitheachotherintheworkplace!

OSI=OpenSystemsInterconnection• DevelopedbyComputerNetworkingindustryatISO(InternationalStandardization

Organization)meetingstoallowforequipmentfromdifferentmanufacturerstoworktogether.

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

OSILayers

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

OSIModelMnemonicLayer7 All A> ApplicationLayer6 People P> PresentationLayer5 Seem S> SessionLayer4 To T> TransportLayer3 Need N> NetworkLayer2 Data D> DataLinkLayer1 Processing P> Physical

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

SoftwareEngineersv’sNetworkEngineers

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

SoftwareEngineerLayers

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

SoftwareEngineeringLayers

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer7– ApplicationLayer

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer7– ApplicationLayerLayer7=ApplicationLayer– WhatIfwehadnoGUI?

Wewouldneedtowritecode\commands!

ForExample:TheHTTPGetRequest:

GET /index.html HTTP/1.1 Host: www.google.co.uk

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer6– PresentationLayerFormattheDataCorrectly!EnsureitisReadable:

Compression- LZ(Lossless)MP3(Lossy)Encryption- SSL,IPSecFileFormats– ASCII,MIME,XML,RTF(Text)

JPEG,GIF,PNG(Picture)MPEG,MP4(Video)MP3(Audio)

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer5– SessionLayerLayer5=SessionLayer– StartaSession!

TCP3WayHandshaking>

1/.Client1Q:WouldYouLiketoHaveaConversation?2/.Client2A:Yes!3/.Client1A:OKLetsStartTalking!

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer5– SessionLayerLayer5=SessionLayer– MultipleSessions

SessionAuthentication–

e.g.LoggingInToOnlineBankingoreStudy

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

• ConsiderBrowser“Tabs”• 1xApplications,3xSessionsOpen!

DayinthelifeofaPacketPt.1

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

NetworkEngineerLayers

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer4- TransportADayintheLifeofaPacket!– EmailExamplePart2

Layer4=TransportLayer– LogicalPortNumbers

Encapsulation=SplittheDataintoSegments

Encapsulation =LabelLogicalPortNumbersGettheDatatotheCorrectApplication

From:SMTPPort#25 (SendorReceive?)To:POP3Port#110

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer3– NetworkLayerADayintheLifeofaPacket!– EmailExamplePart3

Encapsulation=Packets

Remember:TheIPAddressislookedupusingDNS

LabelFrom:SourceIPAddresse.g.192.168.1.10LabelTo:DestinationIPAddresse.g.192.168.2.10

UsingaMaskof255.255.255.0AretheseClientsintheSameNetwork?

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer2– DataLinkLayerLayer2=DataLinkLayer– MediaIndependence

DifferentTypeofFramesforDifferentMediae.g.CopperorFibreopticCabling

ADayintheLifeofaPacket!– EmailExamplePart4

Encapsulation=Frames

LabelFrom:SourceMACAddresse.g.00-11-22-33-44-55LabelTo:DestinationMACAddresse.g.66-77-88-99-AA-BB(Note:MACisaGloballyUniqueIdentifieronallNICsitismadeupofHexadecimaldigits0-9andA-F)

Layer2vsLayer3AddressingLocalLAN(MAC)vsRemoteWAN(IP)AddressingIPAddressStaystheSame!MACChangesEveryStep

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer2– DataLinkLayerQ:Layer2=DataLinkLayer– HowDoestheClientKnowtheMACAddress?A:ARP(AddressResolutionProtocol)(CoverLater!)

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer2– DataLinkLayer• ARPisusedtoperformIPaddressresolutionwhichisthelinkingofaLayer3IPaddressestoaLayer2

MAC(MediaAccessControl)hardwareaddresses.

• ARPusesabroadcasttodothisbyaskingthehostthathasthegivenIPaddresstorespondtothebroadcast(ARPREQUEST=WHOHASXX.XX.XX.XX.XX.XXTELL172.19.13.1)withitsMACaddress([email protected]).

• BroadcasttrafficgoestoallhostsintheLAN,soallhostswillreceivetheARPrequestandthespecifichostwillbetheonlyonetoreply.

• EntriesinARPcachearekeptforamaximumof10minutes.Anentrythatisnotusedwithin2minutesisdeleted.

• ThisallowsforfaultyhardwarebeingremovedfromthenetworkandtheIPaddressbeingassignedtodifferentphysicalhardware.

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer1– PhysicalLayer

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Layer1– PhysicalLayer

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

RepresenttheDataasElectricalorLightPulses

OSIModel

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell

Level3Unit9 ComputerNetworksLecturer:AndrewBlundell