SlideShare una empresa de Scribd logo
1 de 17
Peer to Peer Protocols Prof. Anish Goel
Peer-to-Peer Protocols Peer-to-Peer processes execute layer-n protocol to provide service to layer-(n+1) Layer-(n+1) peer calls layer-n and passes Service Data Units (SDUs) for transfer Layer-n peers exchange Protocol Data Units (PDUs) to effect transfer Layer-n delivers SDUs to destination layer-(n+1) peer 2           Peer to Peer Protocols              	                  Anish Goel
Service Models The service model specifies the information transfer service layer-n provides to layer-(n+1) The most important distinction is whether the service is:  Connection-oriented  Connectionless Example service model features: Arbitrary message size or structure Sequencing and Reliability Timing, Pacing, and Flow control Multiplexing Privacy, integrity, and authentication 3           Peer to Peer Protocols              	                  Anish Goel
Connection-Oriented Transfer Service Connection Establishment phase Connection must be established between layer-(n+1) peers Layer-n protocol must: Set initial parameters, e.g. sequence numbers;  and Allocate resources, e.g. buffers Message transfer phase Exchange of SDUs Disconnect phase Example: TCP, PPP 4           Peer to Peer Protocols              	                  Anish Goel
Connectionless Transfer Service  No Connection setup, simply send SDU  Each message send independently  Must provide all address information per message  Simple & quick  Example: UDP, IP 5           Peer to Peer Protocols              	                  Anish Goel
Message Size and Structure What message size and structure will a service model accept? Different services impose restrictions on size & structure of data it will transfer Single bit? Block of bytes? Byte stream? Ex: Transfer of voice mail = 1 long message Ex: Transfer of voice call = byte stream 6           Peer to Peer Protocols              	                  Anish Goel
Segmentation & Blocking To accommodate arbitrary message size, a layer may have to deal with messages that are too long or too short for its protocol Segmentation & Reassembly: a layer breaks long messages into smaller blocks and reassembles these at the destination Blocking & Unblocking: a layer combines small messages into bigger blocks prior to transfer and unblock these at the destination 7           Peer to Peer Protocols              	                  Anish Goel
Reliability & Sequencing Reliability: Are messages or information stream delivered error-free and without loss or duplication? Sequencing: Are messages or information stream delivered in order? ARQ (Automatic Repeat reQuest) protocols combine error detection, retransmission, and sequence numbering to provide reliability & sequencing Examples: TCP and HDLC (High-Level Data Link Control) 8           Peer to Peer Protocols              	                  Anish Goel
Pacing and Flow Control Messages can be lost if receiving system does not have sufficient buffering to store arriving messages If destination layer-(n+1) does not retrieve its information fast enough, destination layer-n buffers may overflow Pacing & Flow Control provide backpressure mechanisms that control transfer according to availability of buffers at the destination Examples: TCP and HDLC 9           Peer to Peer Protocols              	                  Anish Goel
Timing Applications involving voice and video generate units of information that are related temporally Destination application must reconstruct temporal relation in voice/video units Network transfer introduces delay & jitter Timing Recovery protocols use timestamps & sequence numbering to control the delay & jitter in delivered  information Examples: RTP (Real-time Transfer Protocol) & associated protocols in Voice over IP 10           Peer to Peer Protocols              	                  Anish Goel
Multiplexing Multiplexing enables multiple layer-(n+1) users to share a layer-n service A multiplexing tag (addressing information) is required to identify specific users at the destination Examples: UDP, IP 11           Peer to Peer Protocols              	                  Anish Goel
Privacy, Integrity, & Authentication Privacy: ensuring that information transferred cannot be read by others Integrity: ensuring that information is not altered during transfer Authentication: verifying that sender and/or receiver are who they claim to be Security protocols provide these services Examples: IPSec, SSL 12           Peer to Peer Protocols              	                  Anish Goel
End-to-End vs. Hop-by-Hop A service feature can be provided by implementing a protocol  end-to-end across the network  across every hop in the network Example: Perform error control at every hop in the network or only between the source and destination? Perform flow control between every hop in the network or only between source & destination? We next consider the tradeoffs between the two approaches 13           Peer to Peer Protocols              	                  Anish Goel
Error control in Data Link Layer Data Link operates over wire-like, directly connected systems (over one hop link) Frames can be corrupted or lost, but arrive in order Data link performs error-checking & retransmission Ensures error-free packet transfer between two systems over one hop link (one hop error control) 14           Peer to Peer Protocols              	                  Anish Goel
Error Control in Transport Layer (1/2) Transport layer protocol (e.g. TCP) sends segments across network and performs end-to-end error checking & retransmission (end-to-end error control) Underlying network is assumed to be unreliable 15           Peer to Peer Protocols              	                  Anish Goel
Error Control in Transport Layer (2/2) Segments can experience long delays, can be lost, or arrive out-of order because packets can follow different paths across network End-to-end error control protocol more difficult 16           Peer to Peer Protocols              	                  Anish Goel
Hop-by-Hop vs. End-to-End •Hop-by-hop cannot  ensure E2E correctness (No. why? errors in switches or routers) •Faster error recovery      Ex: HDLC Simple inside the network More scalable if complexity at the edge Inefficient if each link is not reliable. Ex: TCP 17           Peer to Peer Protocols              	                  Anish Goel

Más contenido relacionado

La actualidad más candente

Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point Protocol
Phan Vuong
 

La actualidad más candente (20)

IPV4 Frame Format
IPV4 Frame FormatIPV4 Frame Format
IPV4 Frame Format
 
Digital Communication 4
Digital Communication 4Digital Communication 4
Digital Communication 4
 
Data transmission
Data transmissionData transmission
Data transmission
 
Slide 02 - Asynchronous Transfer Mode (ATM).pdf
Slide 02 - Asynchronous Transfer Mode (ATM).pdfSlide 02 - Asynchronous Transfer Mode (ATM).pdf
Slide 02 - Asynchronous Transfer Mode (ATM).pdf
 
Ch2020
Ch2020Ch2020
Ch2020
 
Transport protocols
Transport protocolsTransport protocols
Transport protocols
 
Chapter04 -- network protocols
Chapter04  -- network protocolsChapter04  -- network protocols
Chapter04 -- network protocols
 
CS8591 Computer Networks - Unit IV
CS8591 Computer Networks - Unit IVCS8591 Computer Networks - Unit IV
CS8591 Computer Networks - Unit IV
 
Data link layer
Data link layer Data link layer
Data link layer
 
TCP /IP
TCP /IPTCP /IP
TCP /IP
 
TOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.pptTOKEN BUS & TOKEN RING.ppt
TOKEN BUS & TOKEN RING.ppt
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)Parity check(Error Detecting Codes)
Parity check(Error Detecting Codes)
 
Point To Point Protocol
Point To Point ProtocolPoint To Point Protocol
Point To Point Protocol
 
Lecture 07
Lecture 07Lecture 07
Lecture 07
 
Routing algorithm network layer
Routing algorithm  network layerRouting algorithm  network layer
Routing algorithm network layer
 
Computer network switching
Computer network switchingComputer network switching
Computer network switching
 
Computer Networks - Unit 1 PPT
Computer Networks - Unit 1 PPTComputer Networks - Unit 1 PPT
Computer Networks - Unit 1 PPT
 
Synchronous and Asynchronous Transmission
Synchronous and Asynchronous TransmissionSynchronous and Asynchronous Transmission
Synchronous and Asynchronous Transmission
 
IEEE 802 Standard for Computer Networks
IEEE 802 Standard for Computer NetworksIEEE 802 Standard for Computer Networks
IEEE 802 Standard for Computer Networks
 

Destacado

My Final Project
My Final ProjectMy Final Project
My Final Project
askkathir
 

Destacado (20)

Bit torrent a revolution in p2p
Bit torrent a revolution in p2pBit torrent a revolution in p2p
Bit torrent a revolution in p2p
 
Svt maneuvers hany abed
Svt maneuvers hany abedSvt maneuvers hany abed
Svt maneuvers hany abed
 
My Final Project
My Final ProjectMy Final Project
My Final Project
 
Natural history of common congenital heart diseases
Natural history of common congenital heart diseasesNatural history of common congenital heart diseases
Natural history of common congenital heart diseases
 
Longitudinal stent deformation in PCI
Longitudinal stent deformation in PCILongitudinal stent deformation in PCI
Longitudinal stent deformation in PCI
 
Electrophysiology study protocol
Electrophysiology study protocolElectrophysiology study protocol
Electrophysiology study protocol
 
Clinical approach to multi valvular heart disease
Clinical approach to multi valvular heart diseaseClinical approach to multi valvular heart disease
Clinical approach to multi valvular heart disease
 
Trans septal puncture
Trans septal punctureTrans septal puncture
Trans septal puncture
 
Approach to TOF physiology
Approach to TOF physiologyApproach to TOF physiology
Approach to TOF physiology
 
Electrophysiology AVNRT
Electrophysiology AVNRTElectrophysiology AVNRT
Electrophysiology AVNRT
 
DRUG ELUTING BALLOONS (DCB/DEB)
DRUG ELUTING BALLOONS (DCB/DEB)DRUG ELUTING BALLOONS (DCB/DEB)
DRUG ELUTING BALLOONS (DCB/DEB)
 
Electrophysiologic Study
Electrophysiologic StudyElectrophysiologic Study
Electrophysiologic Study
 
Choice of guiding catheters in PCI
Choice of guiding catheters in PCIChoice of guiding catheters in PCI
Choice of guiding catheters in PCI
 
Bradyarrhythmias
BradyarrhythmiasBradyarrhythmias
Bradyarrhythmias
 
Electrophysiology basics,part1(lecture)
Electrophysiology basics,part1(lecture)Electrophysiology basics,part1(lecture)
Electrophysiology basics,part1(lecture)
 
Peer to peer Networks
Peer to peer Networks Peer to peer Networks
Peer to peer Networks
 
Peer to peer system
Peer to peer systemPeer to peer system
Peer to peer system
 
Peer-to-Peer Systems
Peer-to-Peer SystemsPeer-to-Peer Systems
Peer-to-Peer Systems
 
How to perform and interpret entrainment pacing Basics
How to perform and interpret entrainment pacing BasicsHow to perform and interpret entrainment pacing Basics
How to perform and interpret entrainment pacing Basics
 
Peer To Peer Networking
Peer To Peer NetworkingPeer To Peer Networking
Peer To Peer Networking
 

Similar a Peer To Peer Protocols

ETE405-lec7.ppt
ETE405-lec7.pptETE405-lec7.ppt
ETE405-lec7.ppt
mashiur
 
ETE405-lec7.pptx
ETE405-lec7.pptxETE405-lec7.pptx
ETE405-lec7.pptx
mashiur
 
group11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressinggroup11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressing
Anitha Selvan
 
ETE405-lec7.pdf
ETE405-lec7.pdfETE405-lec7.pdf
ETE405-lec7.pdf
mashiur
 
Networks (Distributed computing)
Networks (Distributed computing)Networks (Distributed computing)
Networks (Distributed computing)
Sri Prasanna
 

Similar a Peer To Peer Protocols (20)

ETE405-lec7.ppt
ETE405-lec7.pptETE405-lec7.ppt
ETE405-lec7.ppt
 
ETE405-lec7.pptx
ETE405-lec7.pptxETE405-lec7.pptx
ETE405-lec7.pptx
 
Transport layer
Transport layerTransport layer
Transport layer
 
group11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressinggroup11_DNAA:protocol stack and addressing
group11_DNAA:protocol stack and addressing
 
Week10 transport
Week10 transportWeek10 transport
Week10 transport
 
Chapter3 transport
Chapter3 transportChapter3 transport
Chapter3 transport
 
ETE405-lec7.pdf
ETE405-lec7.pdfETE405-lec7.pdf
ETE405-lec7.pdf
 
Sem 1 Ch 11
Sem 1 Ch 11Sem 1 Ch 11
Sem 1 Ch 11
 
CISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network FundamentalCISSP - Chapter 4 - Network Fundamental
CISSP - Chapter 4 - Network Fundamental
 
01 pengenalan
01 pengenalan01 pengenalan
01 pengenalan
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Tcp IP Model
Tcp IP ModelTcp IP Model
Tcp IP Model
 
TCP-IP Reference Model
TCP-IP Reference ModelTCP-IP Reference Model
TCP-IP Reference Model
 
PPT of Communications Systems
PPT of Communications SystemsPPT of Communications Systems
PPT of Communications Systems
 
Tcp ip
Tcp ipTcp ip
Tcp ip
 
Udp vs-tcp
Udp vs-tcpUdp vs-tcp
Udp vs-tcp
 
Transport layer
Transport layer Transport layer
Transport layer
 
Tcp vs udp difference and comparison diffen
Tcp vs udp   difference and comparison   diffenTcp vs udp   difference and comparison   diffen
Tcp vs udp difference and comparison diffen
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Networks (Distributed computing)
Networks (Distributed computing)Networks (Distributed computing)
Networks (Distributed computing)
 

Más de anishgoel

Más de anishgoel (20)

Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Learning vhdl by examples
Learning vhdl by examplesLearning vhdl by examples
Learning vhdl by examples
 
Dot matrix module interface wit Raspberry Pi
Dot matrix module interface wit Raspberry PiDot matrix module interface wit Raspberry Pi
Dot matrix module interface wit Raspberry Pi
 
Input interface with Raspberry pi
Input interface with Raspberry piInput interface with Raspberry pi
Input interface with Raspberry pi
 
Learning Python for Raspberry Pi
Learning Python for Raspberry PiLearning Python for Raspberry Pi
Learning Python for Raspberry Pi
 
Raspberry Pi
Raspberry PiRaspberry Pi
Raspberry Pi
 
learning vhdl by examples
learning vhdl by exampleslearning vhdl by examples
learning vhdl by examples
 
Digital System Design Basics
Digital System Design BasicsDigital System Design Basics
Digital System Design Basics
 
digital design of communication systems
digital design of communication systemsdigital design of communication systems
digital design of communication systems
 
Rtos concepts
Rtos conceptsRtos concepts
Rtos concepts
 
8051 Microcontroller Timer
8051 Microcontroller Timer8051 Microcontroller Timer
8051 Microcontroller Timer
 
8051 Microcontroller I/O ports
8051 Microcontroller I/O ports8051 Microcontroller I/O ports
8051 Microcontroller I/O ports
 
Serial Communication Interfaces
Serial Communication InterfacesSerial Communication Interfaces
Serial Communication Interfaces
 
Embedded systems ppt iv part d
Embedded systems ppt iv   part dEmbedded systems ppt iv   part d
Embedded systems ppt iv part d
 
Embedded systems ppt iv part c
Embedded systems ppt iv   part cEmbedded systems ppt iv   part c
Embedded systems ppt iv part c
 
Embedded systems ppt iv part b
Embedded systems ppt iv   part bEmbedded systems ppt iv   part b
Embedded systems ppt iv part b
 
Embedded systems ppt ii
Embedded systems ppt iiEmbedded systems ppt ii
Embedded systems ppt ii
 
Embedded systems ppt iii
Embedded systems ppt iiiEmbedded systems ppt iii
Embedded systems ppt iii
 
Embedded systems ppt iv part a
Embedded systems ppt iv   part aEmbedded systems ppt iv   part a
Embedded systems ppt iv part a
 
Embedded systems ppt i
Embedded systems ppt iEmbedded systems ppt i
Embedded systems ppt i
 

Último

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 

Peer To Peer Protocols

  • 1. Peer to Peer Protocols Prof. Anish Goel
  • 2. Peer-to-Peer Protocols Peer-to-Peer processes execute layer-n protocol to provide service to layer-(n+1) Layer-(n+1) peer calls layer-n and passes Service Data Units (SDUs) for transfer Layer-n peers exchange Protocol Data Units (PDUs) to effect transfer Layer-n delivers SDUs to destination layer-(n+1) peer 2 Peer to Peer Protocols Anish Goel
  • 3. Service Models The service model specifies the information transfer service layer-n provides to layer-(n+1) The most important distinction is whether the service is: Connection-oriented Connectionless Example service model features: Arbitrary message size or structure Sequencing and Reliability Timing, Pacing, and Flow control Multiplexing Privacy, integrity, and authentication 3 Peer to Peer Protocols Anish Goel
  • 4. Connection-Oriented Transfer Service Connection Establishment phase Connection must be established between layer-(n+1) peers Layer-n protocol must: Set initial parameters, e.g. sequence numbers; and Allocate resources, e.g. buffers Message transfer phase Exchange of SDUs Disconnect phase Example: TCP, PPP 4 Peer to Peer Protocols Anish Goel
  • 5. Connectionless Transfer Service No Connection setup, simply send SDU Each message send independently Must provide all address information per message Simple & quick Example: UDP, IP 5 Peer to Peer Protocols Anish Goel
  • 6. Message Size and Structure What message size and structure will a service model accept? Different services impose restrictions on size & structure of data it will transfer Single bit? Block of bytes? Byte stream? Ex: Transfer of voice mail = 1 long message Ex: Transfer of voice call = byte stream 6 Peer to Peer Protocols Anish Goel
  • 7. Segmentation & Blocking To accommodate arbitrary message size, a layer may have to deal with messages that are too long or too short for its protocol Segmentation & Reassembly: a layer breaks long messages into smaller blocks and reassembles these at the destination Blocking & Unblocking: a layer combines small messages into bigger blocks prior to transfer and unblock these at the destination 7 Peer to Peer Protocols Anish Goel
  • 8. Reliability & Sequencing Reliability: Are messages or information stream delivered error-free and without loss or duplication? Sequencing: Are messages or information stream delivered in order? ARQ (Automatic Repeat reQuest) protocols combine error detection, retransmission, and sequence numbering to provide reliability & sequencing Examples: TCP and HDLC (High-Level Data Link Control) 8 Peer to Peer Protocols Anish Goel
  • 9. Pacing and Flow Control Messages can be lost if receiving system does not have sufficient buffering to store arriving messages If destination layer-(n+1) does not retrieve its information fast enough, destination layer-n buffers may overflow Pacing & Flow Control provide backpressure mechanisms that control transfer according to availability of buffers at the destination Examples: TCP and HDLC 9 Peer to Peer Protocols Anish Goel
  • 10. Timing Applications involving voice and video generate units of information that are related temporally Destination application must reconstruct temporal relation in voice/video units Network transfer introduces delay & jitter Timing Recovery protocols use timestamps & sequence numbering to control the delay & jitter in delivered information Examples: RTP (Real-time Transfer Protocol) & associated protocols in Voice over IP 10 Peer to Peer Protocols Anish Goel
  • 11. Multiplexing Multiplexing enables multiple layer-(n+1) users to share a layer-n service A multiplexing tag (addressing information) is required to identify specific users at the destination Examples: UDP, IP 11 Peer to Peer Protocols Anish Goel
  • 12. Privacy, Integrity, & Authentication Privacy: ensuring that information transferred cannot be read by others Integrity: ensuring that information is not altered during transfer Authentication: verifying that sender and/or receiver are who they claim to be Security protocols provide these services Examples: IPSec, SSL 12 Peer to Peer Protocols Anish Goel
  • 13. End-to-End vs. Hop-by-Hop A service feature can be provided by implementing a protocol end-to-end across the network across every hop in the network Example: Perform error control at every hop in the network or only between the source and destination? Perform flow control between every hop in the network or only between source & destination? We next consider the tradeoffs between the two approaches 13 Peer to Peer Protocols Anish Goel
  • 14. Error control in Data Link Layer Data Link operates over wire-like, directly connected systems (over one hop link) Frames can be corrupted or lost, but arrive in order Data link performs error-checking & retransmission Ensures error-free packet transfer between two systems over one hop link (one hop error control) 14 Peer to Peer Protocols Anish Goel
  • 15. Error Control in Transport Layer (1/2) Transport layer protocol (e.g. TCP) sends segments across network and performs end-to-end error checking & retransmission (end-to-end error control) Underlying network is assumed to be unreliable 15 Peer to Peer Protocols Anish Goel
  • 16. Error Control in Transport Layer (2/2) Segments can experience long delays, can be lost, or arrive out-of order because packets can follow different paths across network End-to-end error control protocol more difficult 16 Peer to Peer Protocols Anish Goel
  • 17. Hop-by-Hop vs. End-to-End •Hop-by-hop cannot ensure E2E correctness (No. why? errors in switches or routers) •Faster error recovery Ex: HDLC Simple inside the network More scalable if complexity at the edge Inefficient if each link is not reliable. Ex: TCP 17 Peer to Peer Protocols Anish Goel