SlideShare a Scribd company logo
1 of 28
jndqadar@gmail.comjndqadar@gmail.com
Packet Switching, Layer ModelsPacket Switching, Layer Models
and Protocol Suitesand Protocol Suites
JUNAID QADARJUNAID QADAR
MSC ELECTRONICSMSC ELECTRONICS
Department of ElectronicsDepartment of Electronics
UNIVERSITY OF PESHAWARUNIVERSITY OF PESHAWAR
22
OutlineOutline
 Packet vs. circuit switchingPacket vs. circuit switching
 Layered tasksLayered tasks
 Internet protocol suitesInternet protocol suites
 ISO's OSI modelISO's OSI model
33
Communication:Communication: App's ViewpointApp's Viewpoint
 Two network applications interact as ifTwo network applications interact as if
there is a dedicate pipe connecting themthere is a dedicate pipe connecting them
 But what's going on underneath?But what's going on underneath?
 What is inside the "cloud"?What is inside the "cloud"?
InternetInternet
AA
AppApp
BB
AppApp
55
Circuit vs. Packet SwitchingCircuit vs. Packet Switching
 Dedicated circuitsDedicated circuits
 Circuit switchingCircuit switching
 Telephone switchesTelephone switches
establish circuitsestablish circuits
for communicationfor communication
 Packet switchingPacket switching
 Data are put intoData are put into
packetspackets
 Each stamped withEach stamped with
sourcesource andand destinationdestination
addressesaddresses
 RoutersRouters know where toknow where to
forward packetsforward packets
telephone
switch
RouterPacket
66
Layered TasksLayered Tasks
 Computer networks are complex systemsComputer networks are complex systems
 Tasks involve varieties of hardware andTasks involve varieties of hardware and
software components, and protocolssoftware components, and protocols
 Networking task is divided into severalNetworking task is divided into several
subtasks, or layerssubtasks, or layers
77
Real World ExampleReal World Example
 Communication between managers of twoCommunication between managers of two
companiescompanies
Communicate
88
What Actually HappensWhat Actually Happens
 Communication takes place thru many layersCommunication takes place thru many layers
Logical communication
Secretary:
types a letter
Delivery boy:
drops the letter
Secretary:
reads and reports
the message
Delivery boy:
takes the letter
Post office:
Processes and routes the letter
Postal truck
1111
Internet Layer ModelInternet Layer Model
 The Internet Protocol StackThe Internet Protocol Stack
Application LayerApplication Layer
Transport LayerTransport Layer
Network LayerNetwork Layer
Data Link LayerData Link Layer
Physical LayerPhysical Layer
User
Transmission
Medium
Hardware
Software
1212
Application LayerApplication Layer
 The only layer to interact with userThe only layer to interact with user
Responsible for providing services to the userResponsible for providing services to the userResponsible for providing services to the userResponsible for providing services to the user
SMTP HTTP FTP SMTP HTTP FTP
Data
Data H5
Application
Layer
to Transport from Transport
Data H5
Data
Logical communication
1313
Transport LayerTransport Layer
 Duties/servicesDuties/services
 Port addressingPort addressing
 Segmentation and reassemblySegmentation and reassembly
 Connection controlConnection control
 Flow control (end-to-end)Flow control (end-to-end)
 Error control (end-to-end)Error control (end-to-end)
Responsible for delivery of a messageResponsible for delivery of a message
from one process to anotherfrom one process to another
Responsible for delivery of a messageResponsible for delivery of a message
from one process to anotherfrom one process to another
1414
Transport LayerTransport Layer
Transport
Layer
Data
from Application
Data1 Data2 Data3H4 H4 H4
to Network
Data
to Application
Data1 Data2 Data3H4 H4 H4
from Network
(segments)
1515
Network LayerNetwork Layer
 Duties/servicesDuties/services
 Logical addressingLogical addressing
 RoutingRouting
Responsible for the delivery of packetsResponsible for the delivery of packets
from the original source to the destinationfrom the original source to the destination
Responsible for the delivery of packetsResponsible for the delivery of packets
from the original source to the destinationfrom the original source to the destination
1616
Network LayerNetwork Layer
Network
Layer
Data
from Transport
to Data Link
Data
to Transport
from Data Link
Data H3 Data H3
(packet)
1717
Network LayerNetwork Layer
Network 1
Network 6
Network 5
1.1 1.2
6.6
6.1
6.3
5.7
5.2
Network 3
3.8
3.3
Router
Data 1.1 5.7
1.1, 1.2, 6.1, 5.7, ... are logical addresses1.1, 1.2, 6.1, 5.7, ... are logical addresses
R1
R3
R2
1818
Data Link LayerData Link Layer
 Duties/servicesDuties/services
 FramingFraming
 Physical addressingPhysical addressing
 Flow control (hop-to-hop)Flow control (hop-to-hop)
 Error control (hop-to-hop)Error control (hop-to-hop)
 Access controlAccess control
Responsible for transmitting framesResponsible for transmitting frames
from one node to the nextfrom one node to the next
Responsible for transmitting framesResponsible for transmitting frames
from one node to the nextfrom one node to the next
1919
Data Link LayerData Link Layer
Data Link
Layer
Data
from Network
to Physical
Data
to Network
from Physical
Data H2 Data H2
(frame)
T2 T2
2020
Data Link LayerData Link Layer
3B
A3, 3B, 82, 9F, ... are physical addressesA3, 3B, 82, 9F, ... are physical addresses
9F 82 A3
Data 9FT2 A3
Data
H2
2121
Data Link LayerData Link Layer
Network 1
Network 6
Network 5
1.1 1.2
6.6
B1
6.3
5.7
5.2
Network 3
3.8
3.3
Data 1.15.7
97 32
25
79
62
54
74
12
88
Data 1.15.7 2597
Data 1.15.7 6279
Data 1.15.7 7454
R1
R3
R2
2222
Physical LayerPhysical Layer
 Duties/servicesDuties/services
 Physical characteristics of interfacesPhysical characteristics of interfaces
and mediaand media
 Representation of bitsRepresentation of bits
 Data rate (transmission rate)Data rate (transmission rate)
 Synchronization of bitsSynchronization of bits
Responsible for transmitting individual bitsResponsible for transmitting individual bits
from one node to the nextfrom one node to the next
Responsible for transmitting individual bitsResponsible for transmitting individual bits
from one node to the nextfrom one node to the next
2323
Physical LayerPhysical Layer
Physical
Layer
Data
from Data Link to Data Link
Data
01001011 01001011
Transmission medium
(bits)
2424
The Big PictureThe Big Picture
L5 data H5
L4 data H4
L3 data H3
L2 dataT2 H2
0111011010101001010101001
L5 data H5
L4 data H4
L3 data H3
L2 dataT2 H2
0111010101010010101010101
5
4
3
2
1
5
4
3
2
1
Transmission medium
2525
Internet ModelInternet Model
ApplicationApplication
TransportTransport
NetworkNetwork
Data LinkData Link
PhysicalPhysical
NetworkNetwork
Data LinkData Link
PhysicalPhysical
NetworkNetwork
Data LinkData Link
PhysicalPhysical
ApplicationApplication
TransportTransport
NetworkNetwork
Data LinkData Link
PhysicalPhysical
Transmission medium
sender
router
router
receiver
262626
Protocol SuitesProtocol Suites
 A set of protocols must be constructedA set of protocols must be constructed
 to ensure that the resulting communicationto ensure that the resulting communication
system issystem is completecomplete andand efficientefficient
 Each protocol should handle a part ofEach protocol should handle a part of
communication not handled by othercommunication not handled by other
protocolsprotocols
 How can we guarantee that protocolsHow can we guarantee that protocols
work well together?work well together?
 Instead of creating each protocol in isolation,Instead of creating each protocol in isolation,
protocols are designed in complete,protocols are designed in complete,
cooperative sets calledcooperative sets called suitessuites oror familiesfamilies
2727
Internet Protocol SuiteInternet Protocol Suite
LayerLayer ProtocolsProtocols
ApplicationApplication HTTP, FTP, Telnet, SMTP, ...HTTP, FTP, Telnet, SMTP, ...
TransportTransport TCP, UDP, SCTP, ...TCP, UDP, SCTP, ...
NetworkNetwork IP (IPv4), IPv6, ICMP, IGMP, ...IP (IPv4), IPv6, ICMP, IGMP, ...
Data LinkData Link Ethernet, Wi-Fi, PPP, ...Ethernet, Wi-Fi, PPP, ...
PhysicalPhysical RS-232, DSL, 10Base-T, ...RS-232, DSL, 10Base-T, ...
2828
OSI ModelOSI Model
 OSI –OSI – OOpenpen SSystemsystems
IInterconnectionnterconnection
 Developed by theDeveloped by the IInternationalnternational
SStandardstandards OOrganizationsrganizations
(ISO)(ISO)
 Two additional layersTwo additional layers
 Presentation layerPresentation layer
 Session layerSession layer
7.Application Layer7.Application Layer
6.Presentation Layer6.Presentation Layer
5.Session Layer5.Session Layer
4.Transport Layer4.Transport Layer
3.Network Layer3.Network Layer
2.Data Link Layer2.Data Link Layer
1.Physical Layer1.Physical Layer
User
Transmission
Medium
2929
Session LayerSession Layer
 Duties/servicesDuties/services
 Interaction managementInteraction management
 Simplex, half-duplex, full-duplexSimplex, half-duplex, full-duplex
 Session recoverySession recovery
Responsible for establishing, managing andResponsible for establishing, managing and
terminating connections between applicationsterminating connections between applications
Responsible for establishing, managing andResponsible for establishing, managing and
terminating connections between applicationsterminating connections between applications
3030
Presentation LayerPresentation Layer
 Duties/servicesDuties/services
 Data translationData translation
 EncryptionEncryption
 DecryptionDecryption
 CompressionCompression
Responsible for handling differences inResponsible for handling differences in
data representation to applicationsdata representation to applications
Responsible for handling differences inResponsible for handling differences in
data representation to applicationsdata representation to applications
THANKSTHANKS
??????????????????????????????
3232

More Related Content

What's hot

Lesson 5 data communication and networking (136 kb)
Lesson 5   data communication and networking (136 kb)Lesson 5   data communication and networking (136 kb)
Lesson 5 data communication and networking (136 kb)
IMRAN KHAN
 
Introduction to Computer Networks and Data Communications
Introduction to Computer Networks and Data CommunicationsIntroduction to Computer Networks and Data Communications
Introduction to Computer Networks and Data Communications
Angel G Diaz
 
Computer Networks-1 1st unit (10CS55) VTU
Computer Networks-1 1st unit (10CS55) VTUComputer Networks-1 1st unit (10CS55) VTU
Computer Networks-1 1st unit (10CS55) VTU
Siddharaj Junnarkar
 
Chapter 1 - Data Communications, Data Networks, and the Internet
Chapter 1 - Data Communications, Data Networks, and the InternetChapter 1 - Data Communications, Data Networks, and the Internet
Chapter 1 - Data Communications, Data Networks, and the Internet
adpeer
 
Lan, man and wan ppt final
Lan, man and wan ppt finalLan, man and wan ppt final
Lan, man and wan ppt final
Arushi Garg
 
Basic networking tutorial
Basic networking tutorialBasic networking tutorial
Basic networking tutorial
reddydivakara
 

What's hot (20)

Data communications Class notes
Data communications  Class notesData communications  Class notes
Data communications Class notes
 
Computer networks lan
Computer networks lanComputer networks lan
Computer networks lan
 
Lesson 5 data communication and networking (136 kb)
Lesson 5   data communication and networking (136 kb)Lesson 5   data communication and networking (136 kb)
Lesson 5 data communication and networking (136 kb)
 
Data Communication & Network
Data Communication & NetworkData Communication & Network
Data Communication & Network
 
Introduction to Computer Networks and Data Communications
Introduction to Computer Networks and Data CommunicationsIntroduction to Computer Networks and Data Communications
Introduction to Computer Networks and Data Communications
 
Lan wan
Lan wanLan wan
Lan wan
 
What are data networks?
What are data networks?What are data networks?
What are data networks?
 
Introduction to Data Communication by Vishal Garg
Introduction to Data Communication by Vishal GargIntroduction to Data Communication by Vishal Garg
Introduction to Data Communication by Vishal Garg
 
Telecommunications
TelecommunicationsTelecommunications
Telecommunications
 
Data Communication and Networking
Data Communication and NetworkingData Communication and Networking
Data Communication and Networking
 
Chapter 7 principles of data communication
Chapter 7   principles of data communicationChapter 7   principles of data communication
Chapter 7 principles of data communication
 
Computer Networks-1 1st unit (10CS55) VTU
Computer Networks-1 1st unit (10CS55) VTUComputer Networks-1 1st unit (10CS55) VTU
Computer Networks-1 1st unit (10CS55) VTU
 
Chapter 1 - Data Communications, Data Networks, and the Internet
Chapter 1 - Data Communications, Data Networks, and the InternetChapter 1 - Data Communications, Data Networks, and the Internet
Chapter 1 - Data Communications, Data Networks, and the Internet
 
Lan, man and wan ppt final
Lan, man and wan ppt finalLan, man and wan ppt final
Lan, man and wan ppt final
 
Ccna report
Ccna reportCcna report
Ccna report
 
Data communication and networking
Data communication and networkingData communication and networking
Data communication and networking
 
Computer networks 1
Computer networks 1Computer networks 1
Computer networks 1
 
Concept of networking
Concept of networkingConcept of networking
Concept of networking
 
Ccna day1
Ccna day1Ccna day1
Ccna day1
 
Basic networking tutorial
Basic networking tutorialBasic networking tutorial
Basic networking tutorial
 

Viewers also liked

Hands on Data Communication, Networking & TCP/IP Troubleshooting
Hands on Data Communication, Networking & TCP/IP TroubleshootingHands on Data Communication, Networking & TCP/IP Troubleshooting
Hands on Data Communication, Networking & TCP/IP Troubleshooting
Living Online
 
Basic concepts of wireless communication system
Basic concepts of wireless communication systemBasic concepts of wireless communication system
Basic concepts of wireless communication system
Bogs De Castro
 

Viewers also liked (9)

Hands on Data Communication, Networking & TCP/IP Troubleshooting
Hands on Data Communication, Networking & TCP/IP TroubleshootingHands on Data Communication, Networking & TCP/IP Troubleshooting
Hands on Data Communication, Networking & TCP/IP Troubleshooting
 
Cloud computing and networking course: paper presentation -Data Mining for In...
Cloud computing and networking course: paper presentation -Data Mining for In...Cloud computing and networking course: paper presentation -Data Mining for In...
Cloud computing and networking course: paper presentation -Data Mining for In...
 
What is Content centric networking
What is Content centric networkingWhat is Content centric networking
What is Content centric networking
 
Iso layers
Iso layersIso layers
Iso layers
 
Security in Data Communication and Networking
Security in Data Communication and NetworkingSecurity in Data Communication and Networking
Security in Data Communication and Networking
 
Ccn(Data communication and networking) edited solution-manual suitable to be ...
Ccn(Data communication and networking) edited solution-manual suitable to be ...Ccn(Data communication and networking) edited solution-manual suitable to be ...
Ccn(Data communication and networking) edited solution-manual suitable to be ...
 
OSI Model of Networking
OSI Model of NetworkingOSI Model of Networking
OSI Model of Networking
 
Basic concepts of wireless communication system
Basic concepts of wireless communication systemBasic concepts of wireless communication system
Basic concepts of wireless communication system
 
Thesis in IT Online Grade Encoding and Inquiry System via SMS Technology
Thesis in IT Online Grade Encoding and Inquiry System via SMS TechnologyThesis in IT Online Grade Encoding and Inquiry System via SMS Technology
Thesis in IT Online Grade Encoding and Inquiry System via SMS Technology
 

Similar to Data Communication and Computer Networking Part # 2

Ccent notes part 1
Ccent notes part 1Ccent notes part 1
Ccent notes part 1
ahmady
 

Similar to Data Communication and Computer Networking Part # 2 (20)

protocol architecture
 protocol architecture protocol architecture
protocol architecture
 
ACIT Mumbai - Open Systems Interconnect
ACIT Mumbai - Open Systems InterconnectACIT Mumbai - Open Systems Interconnect
ACIT Mumbai - Open Systems Interconnect
 
ACIT Mumbai - OSI Model
ACIT Mumbai - OSI ModelACIT Mumbai - OSI Model
ACIT Mumbai - OSI Model
 
OSI 7 Layer Model
OSI 7 Layer ModelOSI 7 Layer Model
OSI 7 Layer Model
 
Networking and communications security – network architecture design
Networking and communications security – network architecture designNetworking and communications security – network architecture design
Networking and communications security – network architecture design
 
computer network and chapter 7 OSI layers.pptx
computer network and chapter 7 OSI layers.pptxcomputer network and chapter 7 OSI layers.pptx
computer network and chapter 7 OSI layers.pptx
 
Security And Privacy Issues Of Iots
Security And Privacy Issues Of IotsSecurity And Privacy Issues Of Iots
Security And Privacy Issues Of Iots
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
Lecture12 ie321 dr_atifshahzad - networks
Lecture12 ie321 dr_atifshahzad - networksLecture12 ie321 dr_atifshahzad - networks
Lecture12 ie321 dr_atifshahzad - networks
 
Basic networking 07-2012
Basic networking 07-2012Basic networking 07-2012
Basic networking 07-2012
 
Ccent notes part 1
Ccent notes part 1Ccent notes part 1
Ccent notes part 1
 
Basics of Computer Networks
Basics of Computer NetworksBasics of Computer Networks
Basics of Computer Networks
 
circuit-packet
circuit-packetcircuit-packet
circuit-packet
 
OSI model.pptx
OSI model.pptxOSI model.pptx
OSI model.pptx
 
internet protocols
internet protocolsinternet protocols
internet protocols
 
SYBSC IT COMPUTER NETWORKS UNIT I Network Models
SYBSC IT COMPUTER NETWORKS UNIT I Network ModelsSYBSC IT COMPUTER NETWORKS UNIT I Network Models
SYBSC IT COMPUTER NETWORKS UNIT I Network Models
 
Cell Tech V09 0312
Cell Tech V09 0312Cell Tech V09 0312
Cell Tech V09 0312
 
Introduction to PPP
Introduction to PPPIntroduction to PPP
Introduction to PPP
 
COMPUTER NETWORKING
COMPUTER NETWORKINGCOMPUTER NETWORKING
COMPUTER NETWORKING
 
Ccna introduction
Ccna introductionCcna introduction
Ccna introduction
 

Recently uploaded

result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Porous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writingPorous Ceramics seminar and technical writing
Porous Ceramics seminar and technical writing
 

Data Communication and Computer Networking Part # 2

  • 1. jndqadar@gmail.comjndqadar@gmail.com Packet Switching, Layer ModelsPacket Switching, Layer Models and Protocol Suitesand Protocol Suites JUNAID QADARJUNAID QADAR MSC ELECTRONICSMSC ELECTRONICS Department of ElectronicsDepartment of Electronics UNIVERSITY OF PESHAWARUNIVERSITY OF PESHAWAR
  • 2. 22 OutlineOutline  Packet vs. circuit switchingPacket vs. circuit switching  Layered tasksLayered tasks  Internet protocol suitesInternet protocol suites  ISO's OSI modelISO's OSI model
  • 3. 33 Communication:Communication: App's ViewpointApp's Viewpoint  Two network applications interact as ifTwo network applications interact as if there is a dedicate pipe connecting themthere is a dedicate pipe connecting them  But what's going on underneath?But what's going on underneath?  What is inside the "cloud"?What is inside the "cloud"? InternetInternet AA AppApp BB AppApp
  • 4. 55 Circuit vs. Packet SwitchingCircuit vs. Packet Switching  Dedicated circuitsDedicated circuits  Circuit switchingCircuit switching  Telephone switchesTelephone switches establish circuitsestablish circuits for communicationfor communication  Packet switchingPacket switching  Data are put intoData are put into packetspackets  Each stamped withEach stamped with sourcesource andand destinationdestination addressesaddresses  RoutersRouters know where toknow where to forward packetsforward packets telephone switch RouterPacket
  • 5. 66 Layered TasksLayered Tasks  Computer networks are complex systemsComputer networks are complex systems  Tasks involve varieties of hardware andTasks involve varieties of hardware and software components, and protocolssoftware components, and protocols  Networking task is divided into severalNetworking task is divided into several subtasks, or layerssubtasks, or layers
  • 6. 77 Real World ExampleReal World Example  Communication between managers of twoCommunication between managers of two companiescompanies Communicate
  • 7. 88 What Actually HappensWhat Actually Happens  Communication takes place thru many layersCommunication takes place thru many layers Logical communication Secretary: types a letter Delivery boy: drops the letter Secretary: reads and reports the message Delivery boy: takes the letter Post office: Processes and routes the letter Postal truck
  • 8. 1111 Internet Layer ModelInternet Layer Model  The Internet Protocol StackThe Internet Protocol Stack Application LayerApplication Layer Transport LayerTransport Layer Network LayerNetwork Layer Data Link LayerData Link Layer Physical LayerPhysical Layer User Transmission Medium Hardware Software
  • 9. 1212 Application LayerApplication Layer  The only layer to interact with userThe only layer to interact with user Responsible for providing services to the userResponsible for providing services to the userResponsible for providing services to the userResponsible for providing services to the user SMTP HTTP FTP SMTP HTTP FTP Data Data H5 Application Layer to Transport from Transport Data H5 Data Logical communication
  • 10. 1313 Transport LayerTransport Layer  Duties/servicesDuties/services  Port addressingPort addressing  Segmentation and reassemblySegmentation and reassembly  Connection controlConnection control  Flow control (end-to-end)Flow control (end-to-end)  Error control (end-to-end)Error control (end-to-end) Responsible for delivery of a messageResponsible for delivery of a message from one process to anotherfrom one process to another Responsible for delivery of a messageResponsible for delivery of a message from one process to anotherfrom one process to another
  • 11. 1414 Transport LayerTransport Layer Transport Layer Data from Application Data1 Data2 Data3H4 H4 H4 to Network Data to Application Data1 Data2 Data3H4 H4 H4 from Network (segments)
  • 12. 1515 Network LayerNetwork Layer  Duties/servicesDuties/services  Logical addressingLogical addressing  RoutingRouting Responsible for the delivery of packetsResponsible for the delivery of packets from the original source to the destinationfrom the original source to the destination Responsible for the delivery of packetsResponsible for the delivery of packets from the original source to the destinationfrom the original source to the destination
  • 13. 1616 Network LayerNetwork Layer Network Layer Data from Transport to Data Link Data to Transport from Data Link Data H3 Data H3 (packet)
  • 14. 1717 Network LayerNetwork Layer Network 1 Network 6 Network 5 1.1 1.2 6.6 6.1 6.3 5.7 5.2 Network 3 3.8 3.3 Router Data 1.1 5.7 1.1, 1.2, 6.1, 5.7, ... are logical addresses1.1, 1.2, 6.1, 5.7, ... are logical addresses R1 R3 R2
  • 15. 1818 Data Link LayerData Link Layer  Duties/servicesDuties/services  FramingFraming  Physical addressingPhysical addressing  Flow control (hop-to-hop)Flow control (hop-to-hop)  Error control (hop-to-hop)Error control (hop-to-hop)  Access controlAccess control Responsible for transmitting framesResponsible for transmitting frames from one node to the nextfrom one node to the next Responsible for transmitting framesResponsible for transmitting frames from one node to the nextfrom one node to the next
  • 16. 1919 Data Link LayerData Link Layer Data Link Layer Data from Network to Physical Data to Network from Physical Data H2 Data H2 (frame) T2 T2
  • 17. 2020 Data Link LayerData Link Layer 3B A3, 3B, 82, 9F, ... are physical addressesA3, 3B, 82, 9F, ... are physical addresses 9F 82 A3 Data 9FT2 A3 Data H2
  • 18. 2121 Data Link LayerData Link Layer Network 1 Network 6 Network 5 1.1 1.2 6.6 B1 6.3 5.7 5.2 Network 3 3.8 3.3 Data 1.15.7 97 32 25 79 62 54 74 12 88 Data 1.15.7 2597 Data 1.15.7 6279 Data 1.15.7 7454 R1 R3 R2
  • 19. 2222 Physical LayerPhysical Layer  Duties/servicesDuties/services  Physical characteristics of interfacesPhysical characteristics of interfaces and mediaand media  Representation of bitsRepresentation of bits  Data rate (transmission rate)Data rate (transmission rate)  Synchronization of bitsSynchronization of bits Responsible for transmitting individual bitsResponsible for transmitting individual bits from one node to the nextfrom one node to the next Responsible for transmitting individual bitsResponsible for transmitting individual bits from one node to the nextfrom one node to the next
  • 20. 2323 Physical LayerPhysical Layer Physical Layer Data from Data Link to Data Link Data 01001011 01001011 Transmission medium (bits)
  • 21. 2424 The Big PictureThe Big Picture L5 data H5 L4 data H4 L3 data H3 L2 dataT2 H2 0111011010101001010101001 L5 data H5 L4 data H4 L3 data H3 L2 dataT2 H2 0111010101010010101010101 5 4 3 2 1 5 4 3 2 1 Transmission medium
  • 22. 2525 Internet ModelInternet Model ApplicationApplication TransportTransport NetworkNetwork Data LinkData Link PhysicalPhysical NetworkNetwork Data LinkData Link PhysicalPhysical NetworkNetwork Data LinkData Link PhysicalPhysical ApplicationApplication TransportTransport NetworkNetwork Data LinkData Link PhysicalPhysical Transmission medium sender router router receiver
  • 23. 262626 Protocol SuitesProtocol Suites  A set of protocols must be constructedA set of protocols must be constructed  to ensure that the resulting communicationto ensure that the resulting communication system issystem is completecomplete andand efficientefficient  Each protocol should handle a part ofEach protocol should handle a part of communication not handled by othercommunication not handled by other protocolsprotocols  How can we guarantee that protocolsHow can we guarantee that protocols work well together?work well together?  Instead of creating each protocol in isolation,Instead of creating each protocol in isolation, protocols are designed in complete,protocols are designed in complete, cooperative sets calledcooperative sets called suitessuites oror familiesfamilies
  • 24. 2727 Internet Protocol SuiteInternet Protocol Suite LayerLayer ProtocolsProtocols ApplicationApplication HTTP, FTP, Telnet, SMTP, ...HTTP, FTP, Telnet, SMTP, ... TransportTransport TCP, UDP, SCTP, ...TCP, UDP, SCTP, ... NetworkNetwork IP (IPv4), IPv6, ICMP, IGMP, ...IP (IPv4), IPv6, ICMP, IGMP, ... Data LinkData Link Ethernet, Wi-Fi, PPP, ...Ethernet, Wi-Fi, PPP, ... PhysicalPhysical RS-232, DSL, 10Base-T, ...RS-232, DSL, 10Base-T, ...
  • 25. 2828 OSI ModelOSI Model  OSI –OSI – OOpenpen SSystemsystems IInterconnectionnterconnection  Developed by theDeveloped by the IInternationalnternational SStandardstandards OOrganizationsrganizations (ISO)(ISO)  Two additional layersTwo additional layers  Presentation layerPresentation layer  Session layerSession layer 7.Application Layer7.Application Layer 6.Presentation Layer6.Presentation Layer 5.Session Layer5.Session Layer 4.Transport Layer4.Transport Layer 3.Network Layer3.Network Layer 2.Data Link Layer2.Data Link Layer 1.Physical Layer1.Physical Layer User Transmission Medium
  • 26. 2929 Session LayerSession Layer  Duties/servicesDuties/services  Interaction managementInteraction management  Simplex, half-duplex, full-duplexSimplex, half-duplex, full-duplex  Session recoverySession recovery Responsible for establishing, managing andResponsible for establishing, managing and terminating connections between applicationsterminating connections between applications Responsible for establishing, managing andResponsible for establishing, managing and terminating connections between applicationsterminating connections between applications
  • 27. 3030 Presentation LayerPresentation Layer  Duties/servicesDuties/services  Data translationData translation  EncryptionEncryption  DecryptionDecryption  CompressionCompression Responsible for handling differences inResponsible for handling differences in data representation to applicationsdata representation to applications Responsible for handling differences inResponsible for handling differences in data representation to applicationsdata representation to applications