dist 03 4 netwoking

Upload: pradeesh-boopathy

Post on 05-Apr-2018

220 views

Category:

Documents


1 download

TRANSCRIPT

  • 8/2/2019 Dist 03 4 Netwoking

    1/29

    BasicNetworkingConcepts

    1.Introduction2.Protocols3.ProtocolLayers4.NetworkInterconnection/Internet

  • 8/2/2019 Dist 03 4 Netwoking

    2/29

    1.Introduction-Anetworkcanbedefinedasagroupofcomputersandotherdevicesconnectedinsomewayssoastobeabletoexchangedata.-Eachofthedevicesonthenetworkcanbethoughtofasanode;eachnodehasauniqueaddress.-Addressesarenumericquantitiesthatareeasyforcomputerstoworkwith,butnotforhumanstoremember.

    Example:204.160.241.98

    -Somenetworksalsoprovidenamesthathumanscanmoreeasilyrememberthannumbers.

    Example:www.javasoft.com,correspondingtotheabovenumericaddress.

    NICaddr1NICaddrNNICaddr2

  • 8/2/2019 Dist 03 4 Netwoking

    3/29

    Addressing

    Internetaddress

    Consistsof4bytesseparatedbyperiods

    Example:136.102.233.49-TheRfirstbytes(R=1,2,3)correspondtothenetworkaddress;-TheremainingHbytes(H=3,2,1)areusedforthehostmachine.-InterNICRegister:organizationinchargeoftheallocationofthe

    addressrangescorrespondingtonetworks.-Criteriaconsidered:

    .Geographicalarea(country)

    .Organization,enterprise

    .Department

    .HostDomainNameSystem(DNS)

    -Mnemonictextualaddressesareprovidedtofacilitatethemanipulationofinternetaddresses.-DNSserversareresponsiblefortranslatingmnemonictextualInternet

    3

    addressesintohardnumericInternetaddresses.

  • 8/2/2019 Dist 03 4 Netwoking

    4/29

    Ports

    -AnIPaddressidentifiesahostmachineontheInternet.

    -AnIPportwillidentifyaspecificapplicationrunningonanInternethostmachine.

    -Aportisidentifiedbyanumber,theportnumber.

    -Thenumberofportsisnotfunctionallylimited,incontrasttoserialcommunicationswhereonly4portsareallowed.

    -Therearesomeportnumberswhicharededicatedforspecificapplications.

    ApplicationsPortnumbersHTTP80FTP20and21Gopher70SMTP(e-mail)25POP3(e-mail)110Telnet23Finger79

    4

  • 8/2/2019 Dist 03 4 Netwoking

    5/29

    DataTransmission

    -Inmodernnetworks,dataaretransferredusingpacketswitching.

    -Messagesarebrokenintounitscalledpackets,andsentfromonecomputertotheother.

    -Atthedestination,dataareextractedfromoneormorepacketsandusedtoreconstructtheoriginalmessage.

    -Eachpackethasamaximumsize,andconsistsofaheaderandadataarea.

    -Theheadercontainstheaddressesofthesourceanddestinationcomputersandsequencinginformationnecessarytoreassemblethemessageatthedestination.

    packet

    headerdata

    1001.101

    00010000111000000110001100

  • 8/2/2019 Dist 03 4 Netwoking

    6/29

    TypesofNetworks

    Therearetwoprinciplekindsofnetworks:WideAreaNetworks(WANs)andLocalAreaNetworks(LANs).

    WANs

    -Covercities,countries,andcontinents.-Basedonpacketswitchingtechnology-ExamplesofWANtechnology:AsynchronousTransferMode(ATM)

    IntegratedServicesDigitalNetwork(ISDN)

    LANs

    -Coverbuildingsorasetofcloselyrelatedbuildings.-ExamplesofLANtechnology:Ethernet,TokenRing,andFibber

    DistributedDataInterconnect(FDDI).EthernetLANs:basedonabustopologyandbroadcastcommunication

    TokenringLANs:basedonringtopologyFDDILANs:useopticalfibbersandanimprovedtokenringmechanism

    basedontworingsflowinginoppositedirections.

    6

  • 8/2/2019 Dist 03 4 Netwoking

    7/29

    Sharedbus

    (a)EthernetLANDualring

    Ring

    (b)TokenRingLAN(c)FDDILAN

  • 8/2/2019 Dist 03 4 Netwoking

    8/29

    NetworkconnectivitytypeSpeedTransmissiontimefor10Mbytes(Telephone)dial-upmodem14.4Kbps90minISDNmodem56/128Kbps45/12minT1connection1.54Mbps50sEthernet10Mbps9sTokenring4/16MbpsFastEthernet100MbpsFDDI100MbpsGigabitEthernet1GbpsATM25Mbps/2.4Gbs

  • 8/2/2019 Dist 03 4 Netwoking

    9/29

    Interconnection

    -NetworksoflowcapacitymaybeconnectedtogetherviaabackbonenetworkwhichisanetworkofhighcapacitysuchasaFDDInetwork,aWANnetworketc.

    -LANsandWANscanbeinterconnectedviaT1orT3digitalleasedlines

    -Accordingtotheprotocolsinvolved,networksinterconnectionisachievedusingoneorseveralofthefollowingdevices:

    .Bridge:acomputerordevicethatlinkstwosimilarLANsbasedonthesameprotocol..Router:acommunicationcomputerthatconnectsdifferenttypesofnetworksusingdifferentprotocols..B-routerorBridge/Router:asingledevicethatcombinesboththefunctionsofbridgeandrouter..Gateway:anetworkdevicethatconnectstwodifferentsystems,usingdirectandsystematictranslationbetweenprotocols.9

  • 8/2/2019 Dist 03 4 Netwoking

    10/29

    TorontobranchEthernetLANRouterVancouverbranchTokenRingLANGatewayFrameRelayATMT1lineNYheadquatersBridge/RouteTokenRingLANRouterBridgeBridge/RouterEthernetEthernetLANRouterVancouverbranchTokenRingLANGatewayFrameRelayATM

    T1lineNYheadquatersBridge/RouteTokenRingLANRouterBridgeBridge/RouterEthernet

  • 8/2/2019 Dist 03 4 Netwoking

    11/29

    NetworkTopologyDiagram

    Thespecificationofthenetworktopologydiagramrequiresthedefinitionofthecharacteristicsandentitiesunderlyingthenetwork:-Geographicallocationsofthedifferentcomponentsorsubnets

    involvedinthenetwork.-DescriptionoftheLANtopology-DescriptionoftheWANtopology-Descriptionofthenetworkconnectorssuchasrouters,bridges,

    repeaters,andgateways.

  • 8/2/2019 Dist 03 4 Netwoking

    12/29

    2.Protocols-Definetherulesthatgovernthecommunicationsbetweentwocomputersconnectedtothenetwork.

    -Roles:addressingandroutingofmessages,errordetectionandrecovery,sequenceandflowcontrolsetc.

    -Aprotocolspecificationconsistsofthesyntax,whichdefinesthekindsandformatsofthemessagesexchanged,andthesemantic,whichspecifiestheactiontakenbyeachentitywhenspecificeventsoccur.

    Example:HTTPprotocolforcommunicationbetweenwebbrowsersandservers.

    12

  • 8/2/2019 Dist 03 4 Netwoking

    13/29

    RequestForComments(RFC):specificationsoftheprotocolsinvolvedinInternetCommunications.-Example:sampleofRFC821describingcommunicationsbetween

    SMTPserverandclient.

    S:MAILFROM:[email protected]:250OKS:RCPTTO:[email protected]:250OKS:DATAR:354Beginningofmail;endingby.S:BlahblahblahS:etc.S:.R:250OK13

  • 8/2/2019 Dist 03 4 Netwoking

    14/29

    -ProtocolsaredesignedbasedonalayeredarchitecturesuchastheOSI

    referencemodel.-Eachentityatalayerncommunicatesonlywithentitiesatlayern-1.-Thedataexchanged,knownasProtocolDataUnit(PDU),goesback

    andforththroughthelayers,eachlayeraddsorremovesitsownheaderandvice-versa.ThereforealayernPDUmaybecomealayern-1data.

    nthlayernthlayer(n-1)thlayer(n-1)thlayer

    Network14

  • 8/2/2019 Dist 03 4 Netwoking

    15/29

    3.ProtocolLayersTheOSI(OpenSystemsInterconnection)DataModel

    -ISOstandardforcomputernetworksdesignandfunctioning.

    -Involvesatleast7layers,eachplayingaspecificrolewhenapplicationsarecommunicatingoverthenet.

    -Duringthesendingprocess,eachlayer(fromtoptodown)willaddaspecificheadertotherawdata.

    -Atthereception,headersareeliminatedconverselyuntilthedataarrivedtothereceivingapplication.

  • 8/2/2019 Dist 03 4 Netwoking

    16/29

    OSILayers

    Physicallayer(definesthephysicalcharacteristicsofthenetwork)Data-linklayer(providessafecommunicationofdataoverthephysicalnetwork)Networklayer(handlesconnectiontothenetworkbythehigherlayers)Transportlayer(providesend-to-enderrorsdetectionandcorrection)Sessionlayer(managessessionsamongapplications)Presentationlayer(providesstandarddatarepresentationsforapplications)Applicationlayer(applicationsconnectedtothenetwork)

  • 8/2/2019 Dist 03 4 Netwoking

    17/29

    Physicallayer:ensuresasafeandefficienttravelofdata;consistsofelectroniccircuitsfordatatransmissionetc.

    Datalinklayer:inchargeofdataencapsulationundertheformofpacketsandtheirinterpretationatthephysicallayer.

    Networklayer:inchargeofpacketstransmissionfromasourceAtoadestinationB.

    Transportlayer:inchargeofthedeliveryofpacketsfromasourceAtoadestinationB

    Sessionlayer:inchargeofthemanagementofnetworkaccess.Presentationlayer:determinestheformatofthedatatransmittedto

    applications,datacompressing/decompressing,encryptingetc.

    Applicationlayer:containstheapplicationswhichareusedbytheend-user,suchasJava,Wordetc.17

  • 8/2/2019 Dist 03 4 Netwoking

    18/29

    TheTCP/IPModel

    -Consistsofonly4layers:application,transport,internetandnetwork.

    Layers

    Applicationlayer(applicationsandprocessesrunningonthenetwork)Transportlayer(providesend-to-enddatadeliveryservices)Internetlayer(makesdatagramsandhandlesdatarouting)Networklayer(providesroutinesallowingaccesstothephysicalnetwork)18

  • 8/2/2019 Dist 03 4 Netwoking

    19/29

    Networklayer

    -Providesthesamefunctionalityasthephysical,thedatalinkandnetworklayersintheOSImodel.

    -MappingbetweenIPaddressesandnetworkphysicaladdresses.

    -EncapsulationofIPdatagrams,e.gpackets,informatunderstandablebythenetwork.

    Internetlayer

    -LiesattheheartofTCP/IP.

    -BasedontheInternetProtocol(IP),whichprovidestheframefortransmittingdatafromplaceAtoplaceB.

    Transportlayer

    -Basedontwomainprotocols:TCP(TransmissionControlProtocol)andUDP(UserDatagramprotocol)

    Applicationlayer

    -CombinesthefunctionsoftheOSIapplication,presentation,andsessionlayers.

    -Protocolsinvolvedinthislayer:HTTP,FTP,SMTPetc.

    19

  • 8/2/2019 Dist 03 4 Netwoking

    20/29

    4.NetworksInterconnection/InternetConceptofNetworkInterconnection

    -FirstimplementedintheDefenseAdvancedResearchProjectAgencyNetwork(Arpanet),in1966inUSA.-Consistsofconnectingseveralcomputernetworksbasedondifferentprotocols-Requiresthedefinitionofacommoninterconnectionprotocolontopthelocalprotocols.-TheInternetProtocol(IP)playsthisrole,bydefininguniqueaddressesforanetworkandahostmachine.

    SNMP

    FTPTelnetSMTP

    20TCP/UDPIPEthernetArpanetTokenring

  • 8/2/2019 Dist 03 4 Netwoking

    21/29

    21P1P2P4P3IP

  • 8/2/2019 Dist 03 4 Netwoking

    22/29

    InternetProtocol(IP)

    Overview

    -TheIPprotocolprovidestwomainfunctionality:

    .Decompositionoftheinitialinformationflowintopacketsofstandardizedsize,andreassemblingatthedestination..Routingofapacketthroughsuccessivenetworks,fromthesourcemachinetothedestinationidentifiedbyitsIPaddress.-Transmittedpacketsarenotguaranteedtobedelivered(datagramprotocol).-TheIPprotocoldoesnotrequestforconnection(connectionless)beforesendingdataanddoesnotmakeanyerrordetection.

    Functions

    -Decomposetheinitialdata(tobesent)intodatagrams.

    -Eachdatagramwillhaveaheaderincluding,theIPaddressandtheportnumberofthedestination.

    -Datagramsarethensenttoselectedgateways,e.gIProuters,connected

    atthesametimetothelocalnetworkandtoanIPserviceprovider

    22

    network.

  • 8/2/2019 Dist 03 4 Netwoking

    23/29

    -Datagramsaretransferredfromgatewaystogatewaysuntiltheyarrivedattheirfinaldestination.

    packet1Sender

    Receiver

    packet2

    Routers23

  • 8/2/2019 Dist 03 4 Netwoking

    24/29

    StructureofanIPpacket

    -Thefieldsatthebeginningofthepacket,calledtheframeheader,definetheIPprotocolsfunctionalityandlimitations.

    -32bitsareallocatedforencodingsourceanddestinationaddresses(32bitsforeachoftheseaddressfields).

    -Theremainderoftheheader(16bits)encodesvariousinformationsuchasthetotalpacketlengthinbytes.

    -HenceanIPpacketcanbeamaximumof64Kblong.

    01012162024

    HeaderChecksumSourceaddressDestinationaddressOptions

    24

    Data

  • 8/2/2019 Dist 03 4 Netwoking

    25/29

    TransmissionControlProtocol(TCP)

    Overview

    -TCPprovidesbyusingIPpacketsabasicservicethatdoesguaranteesafedelivery:

    .errordetection

    .safedatatransmission

    .assurancethatdataarereceivedinthecorrectorder-Beforesendingdata,TCPrequiresthatthecomputerscommunicatingestablishaconnection(connection-orientedprotocol).

    ClientServerTCPSYNSYN_ACKACKDATADATAACKDATAFINFINACK

    25

  • 8/2/2019 Dist 03 4 Netwoking

    26/29

    -TCPprovidessupportforsendingandreceivingarbitraryamountsof

    dataasonebigstreamofbytedata(IPislimitedto64Kb).-TCPdoessobybreakingupthedatastreamintoseparateIPpackets.-Packetsarenumbered,andreassembledonarrival,usingsequenceand

    sequenceacknowledgenumbers.-TCPalsoimprovesthecapabilityofIPbyspecifyingportnumbers.

    .Thereare65,536differentTCPports(sockets)throughwhicheveryTCP/IPmachinecantalk.StructureofaTCPpacket

    02481220

    SourceportDestinationportSequenceNo.SequenceAck.No.Misc.headerData

    26

  • 8/2/2019 Dist 03 4 Netwoking

    27/29

    UserDatagramProtocol(UDP)

    Overview

    -DatagramprotocolalsobuiltontopofIP.

    -Hasthesamepacket-sizelimit(64Kb)asIP,butallowsforportnumberspecification.

    -Providesalso65,536differentports.

    -Hence,everymachinehastwosetsof65,536ports:oneforTCPandtheotherforUDP.

    -Connectionlessprotocol,withoutanyerrordetectionfacility.

    -Providesonlysupportfordatatransmissionfromoneendtotheother,withoutanyfurtherverification.

    -ThemaininterestofUDPisthatsinceitdoesnotmakefurtherverification,itisveryfast.

    -Usefulforsendingsmallsizedatainarepetitivewaysuchastime

    information.

    27

  • 8/2/2019 Dist 03 4 Netwoking

    28/29

    4.5InternetApplicationProtocolsOntopofTCP/IP,severalserviceshavebeendevelopedinordertohomogenizeapplicationsofsamenature:-FTP(FileTransferProtocol)allowsthetransferofcollectionoffilesbetweentwomachinesconnectedtotheInternet.-Telnet(TerminalProtocol)allowsausertoconnecttoaremotehostinterminalmode.-NNTP(NetworkNewsTransferProtocol)allowstheconstitutionofcommunicationgroups(newsgroups)organizedaroundspecifictopics.-SMTP(SimpleMailTransferProtocol)definesabasicserviceforelectronicmails.-SNMP(SimpleNetworkManagementProtocol)allowsthemanagementofthenetwork.

    28FTPTelnetSNMPSMTPTCP/UDPIPEthernetArpanetTokenring

  • 8/2/2019 Dist 03 4 Netwoking

    29/29