























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An engineering approach to computer networking, focusing on the concept of protocol layering. Peers and protocols are introduced, with an explanation of how a protocol is a set of rules governing communication between peers. The document also covers the importance of cooperation between peers and the use of protocol data units. The document further discusses the iso osi reference model, its layers, and their functions, including error control, flow control, and session synchronization.
Typology: Slides
1 / 31
This page cannot be seen from the preview
Don't miss anything!
























nn Peer entities
nn
nn Example
but doesn’t lose or reorder them^ but doesn’t lose or reorder them
nn
send a^ uu^ send a^ send file as a series of packetssend file as a series of packets
checksumchecksum
uu receiver sends OK or not-OK messagereceiver sends OK or not-OK message
uu sender waits for OK messagesender waits for OK message
uu if no response, resends entire fileif no response, resends entire file
nn
uwhat if not-OK message itself is corrupted?u (^) what if not-OK message itself is corrupted? uwhat if link goes down?u (^) what if link goes down?single bit corruption requires retransmission of entire file (^) single bit corruption requires retransmission of entire file
nn What does a protocol tell us?
uu what fields does it contain?what fields does it contain?
uu in what format?in what format?
nn
uu what does a message mean?what does a message mean?
uu for example, not-OK message means receiver got a corrupted filefor example, not-OK message means receiver got a corrupted file
nn
(^) for example, on receiving not-OK message, retransmit the entire file
nn Protocol layering
nn
nn
nn
uu example reliable file transfer protocolexample reliable file transfer protocolfor example, packet transfer is one step in the execution of thefor example, packet transfer is one step in the execution of the
nn
uu reliable file transfer isreliable file transfer is
layeredlayered above packet transfer protocol
above packet transfer protocol
uu like a subroutinelike a subroutine
nn Some terminology
interface between an upper layer and a lower layer^ interface between an upper layer and a lower layer
nn
uu packets exchanged between peer entitiespackets exchanged between peer entities
nn
uu packets handed to a layer by an upper layerpackets handed to a layer by an upper layer
nn
nn
u(what is the SDU header?)u (^) (what is the SDU header?) uprotocol data unit = mailbag (aggregation of letters)u (^) protocol data unit = mailbag (aggregation of letters) uservice data unit for postal service = letteru (^) service data unit for postal service = letter uprotocol data unit between customers = letteru (^) protocol data unit between customers = letterletter transfer service (^) letter transfer service
nn The importance of being layered
uses DNS, ARP, DHCP, RIP, OSPF, BGP, PPP, ICMP)uses DNS, ARP, DHCP, RIP, OSPF, BGP, PPP, ICMP)^ ufor example, WWW (HTTP) is Java layered over TCP over IP (andu^ for example, WWW (HTTP) is Java layered over TCP over IP (andcan compose simple service to provide complex ones^ can compose simple service to provide complex ones
nn
maintainedmaintained^ ucan change implementation as long as service interface isu^ can change implementation as long as service interface isseparation of implementation and specification^ separation of implementation and specification
nn
uexample:u (^) example: WinSock (^) upper layers can share lower layer functionalityupper layers can share lower layer functionality
WinSock on Microsoft Windows
on Microsoft Windows
nn Problems with layering
everywhereeverywhereif it didn’t then changes to one layer could require changes^ if it didn’t then changes to one layer could require changes FF layering violationlayering violation
nn
uif it is, instead, due to au (^) if it is, instead, due to a lossybecause of network congestionbecause of network congestionfor example, flow control protocol may think packet loss is always (^) for example, flow control protocol may think packet loss is always
lossy link, the flow control breaks link, the flow control breaks
uu flow control protocolflow control protocolthis is because we hid information about reason of packet loss fromthis is because we hid information about reason of packet loss from
nn ISO OSI reference model
uu protocol details are publicly availableprotocol details are publicly available
uu transactions are open to the publictransactions are open to the publicchanges are managed by an organization whose membership andchanges are managed by an organization whose membership and
nn
nn
open system interconnect (OSI)open system interconnect (OSI)
nn
nn ISO OSI
formally defines what is meant by a layer, a service etc.^ formally defines what is meant by a layer, a service etc.
nn
access pointaccess point^ describes the services provided by each layer and the servicedescribes the services provided by each layer and the service
nn
architecturesarchitecturescompliant service architectures may still use non-compliant protocol^ uu^ compliant service architectures may still use non-compliant protocolset of protocols that implement the service architecture^ set of protocols that implement the service architecture
nn Physical layer
nn
bit-level synchronization^ uu^ bit-level synchronization^ uu^ shapes and sizes of connectorsshapes and sizes of connectors^ coding scheme to represent a bitcoding scheme to represent a bit
nn
planes, vans, bicycles, ships…)planes, vans, bicycles, ships…)technology for moving letters from one point to another (trains,^ technology for moving letters from one point to another (trains,
nn
etc.etc.technology to move bits on a wire, wireless link, satellite channel^ technology to move bits on a wire, wireless link, satellite channel
nn Datalink layer
uu set of bits that belong togetherset of bits that belong together
nn
nn
nn
uu (^) these functions are provided bythese functions are provided byalso need to decide who gets to speak next uu (^) also need to decide who gets to speak next uu (^) need datalink-layer addressneed datalink-layer address (^) end-system must receive only bits meant for itend-system must receive only bits meant for it
Medium AccessMedium Access sublayer
sublayer (MAC)
(MAC)
nn
part of^ part of logical link controllogical link control sublayer
sublayer
uu layered over MAClayered over MAC sublayer
sublayer
nn Network layer
nn
nn
nn
nn
nn
(^) segmentation andsegmentation and reassembly
reassembly
uu error detectionerror detection
nn Network layer (contd.)
uresponsigleu (^) responsigle for forwarding packetsparticipates in routing protocol to create routing tables (^) participates in routing protocol to create routing tables
for forwarding packets
uu scheduling the transmission order of packetsscheduling the transmission order of packets
uu choosing which packets to dropchoosing which packets to drop