Data Communication and NetworksSwitching NetworksTechnologySimple Switched NetworkCircuit SwitchingCircuit Switching - IssuesPacket SwitchingBasic OperationUse of PacketsNetwork layerKey Network-Layer FunctionsSlide 12Connection setupNetwork service modelNetwork layer service models:Virtual circuit vs. datagram networksNetwork layer connection and connection-less serviceVirtual circuitsVC implementationForwarding tableVirtual circuits: signaling protocolsDatagram networksSlide 23Longest prefix matchingDatagram or VC network: why?IP: Internet ProtocolThe Internet Network layerIP Addressing: introductionSubnetsSlide 30Slide 31IP addressing: CIDRIP datagram formatIP Fragmentation & ReassemblyIP Fragmentation and ReassemblyNAT: Network Address TranslationSlide 37Slide 38Slide 39Slide 40Network Layer 4-1Data Communication and NetworksLecture 6Networks: Part 1Circuit Switching, Packet Switching, The Network LayerOctober 13, 2005Network Layer 4-2Switching NetworksLong distance transmission is typically done over a network of switched nodesNodes not concerned with content of dataEnd devices are stationsComputer, terminal, phone, etc.A collection of nodes and connections is a communications networkData routed by being switched from node to nodeNetwork Layer 4-3TechnologyTwo different switching technologiesCircuit switchingPacket switchingNetwork Layer 4-4Simple Switched NetworkNetwork Layer 4-5Circuit SwitchingDedicated communication path between two stations (during conversation)Three phasesEstablishTransferDisconnectMust have switching capacity and channel capacity to establish connectionMust have intelligence to work out routingNetwork Layer 4-6Circuit Switching - IssuesCircuit switching is inefficient (designed for voice)Resources dedicated to a particular callMuch of the time a data connection is idleData rate is fixed•Both ends must operate at the same rateSet up (connection) takes timeOnce connected, transfer is transparentNetwork Layer 4-7Packet SwitchingNetwork Layer 4-8Basic OperationData transmitted in small packetsTypically 1000 octetsLonger messages split into series of packetsEach packet contains a portion of user data plus some control infoControl infoRouting (addressing) infoPackets are received, stored briefly (buffered) and passed on to the next nodeStore and forwardNetwork Layer 4-9Use of PacketsNetwork Layer 4-10Network layertransport segment from sending to receiving host on sending side encapsulates segments into datagramson rcving side, delivers segments to transport layernetwork layer protocols in every host, routerRouter examines header fields in all IP datagrams passing through itnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalnetworkdata linkphysicalapplicationtransportnetworkdata linkphysicalapplicationtransportnetworkdata linkphysicalNetwork Layer 4-11Key Network-Layer Functionsforwarding: move packets from router’s input to appropriate router outputrouting: determine route taken by packets from source to dest. Routing algorithmsanalogy:routing: process of planning trip from source to destforwarding: process of getting through single interchangeNetwork Layer 4-121230111value in arrivingpacket’s headerrouting algorithmlocal forwarding tableheader valueoutput link01000101011110013221Interplay between routing and forwardingNetwork Layer 4-13Connection setup3rd important function in some network architectures:ATM, frame relay, X.25Before datagrams flow, two hosts and intervening routers establish virtual connectionRouters get involvedNetwork and transport layer cnctn service:Network: between two hostsTransport: between two processesNetwork Layer 4-14Network service modelQ: What service model for “channel” transporting datagrams from sender to rcvr?Example services for individual datagrams:guaranteed deliveryGuaranteed delivery with less than 40 msec delayExample services for a flow of datagrams:In-order datagram deliveryGuaranteed minimum bandwidth to flowRestrictions on changes in inter-packet spacingNetwork Layer 4-15Network layer service models:NetworkArchitectureInternetATMATMATMATMServiceModelbest effortCBRVBRABRUBRBandwidthnoneconstantrateguaranteedrateguaranteed minimumnoneLossnoyesyesnonoOrdernoyesyesyesyesTimingnoyesyesnonoCongestionfeedbackno (inferredvia loss)nocongestionnocongestionyesnoGuarantees ?Network Layer 4-16Virtual circuit vs. datagram networksNetwork Layer 4-17Network layer connection and connection-less serviceDatagram network provides network-layer connectionless serviceVC network provides network-layer connection serviceAnalogous to the transport-layer services, but:Service: host-to-hostNo choice: network provides one or the otherImplementation: in the coreNetwork Layer 4-18Virtual circuitscall setup, teardown for each call before data can floweach packet carries VC identifier (not destination host address)every router on source-dest path maintains “state” for each passing connectionlink, router resources (bandwidth, buffers) may be allocated to VC“source-to-dest path behaves much like telephone circuit”performance-wisenetwork actions along source-to-dest pathNetwork Layer 4-19VC implementationA VC consists of:1. Path from source to destination2. VC numbers, one number for each link along path3. Entries in forwarding tables in routers along pathPacket belonging to VC carries a VC number.VC number must be changed on each link.New VC number comes from forwarding tableNetwork Layer 4-20Forwarding table122232123VC numberinterfacenumberIncoming interface Incoming VC # Outgoing interface Outgoing VC #1 12 2 222 63 1 18 3 7 2 171 97 3 87… … … …Forwarding table innorthwest router:Routers maintain connection state information!Network Layer 4-21Virtual circuits: signaling protocolsused to setup, maintain teardown VCused in ATM, frame-relay, X.25not used in today’s Internetapplicationtransportnetworkdata linkphysicalapplicationtransportnetworkdata linkphysical1. Initiate call2. incoming call3. Accept call4. Call connected5. Data flow begins6.
View Full Document