Lecture 6 Networking Basics
Lecture 6 Networking Basics
Networking Basics
Communication
https://www.researchgate.net/publication/269310409_A_review_of_sensor_networks_Technologies_and_applications/figures?lo=1&
utm_source=google&utm_medium=organic
[Kurose2012]
Application
Presentation Application
Session Transport
Transport Network
Network Link
Link Physical
Physical
Five-layer
Seven-layer Internet Protocol
Open Systems Interconnection stack
(OSI) model
Protocols Layers and Their Service Models
• A layered architecture allows us to discuss a well-
defined, specific part of a large and complex system.
• Provides modularity, making it much easier to change
the implementation of the service provided by the layer.
• As long as the layer provides the same service to the
layer above it and uses the same services from the layer
below it, the remainder of the system remains
unchanged when a layer’s implementation is changed.
Internet protocol stack: Toy Example
• Sending a courier from company branch in Hyderabad
to company branch in New York
– Application Layer: Individuals giving parcels
– Transport Layer: office boy or admin assistant
– Network Layer: Speed post/ Blue Dart (representative)
– Link Layer: Different drivers (and vehicles)
– Physical Layer: Road/Air/Water
Analogy: e-Commerce supply chain
https://blog.driv.in/en/customer-centric-logistics-amazons-supply-chain-success-case/
Encapsulation of data across layers
[Kurose2012]
Questions?
Internet Protocol Stack: Application Layer
• The application layer is where network applications
and their application-layer protocols reside
• Example of network applications: www, file sharing, text
chat, electronic commerce, instant messaging, video
chat
Socket = API
www.somechool.edu/page.html
Addressing Mechanism
• A host has one IP address
• How does the sending host identifies the receiving
process running in the receiving host?
• Port Number:
– Web server : port 80
– SMTP : port 25
Questions?
Internet protocol stack: Transport Layer
Application
Transport
Network
Link
Physical
Five-layer
Internet Protocol
stack
Internet Protocol Stack: Transport Layer
• It provides logical communication between application
processes running on different hosts
Internet Protocol Stack: Transport Layer
• It provides logical communication between application
processes running on different hosts
• Provides two transport protocols
– TCP (connection-oriented)
• provides reliability
• flow control
• congestion control
• Breaks long messages
• Application layer protocols using TCP: SMTP, HTTP, FTP
– UDP (connectionless)
• No frills service
• No reliability, no flow control, no congestion control
• Application layer protocols: IP telephony or video (Youtube, Skype)
• Multiplexing and demultiplexing of data
Multiplexing and Demultiplexing
TCP: Multiplexing and Demultiplexing
TCP: Use of IP and Port Addresses
TCP: Connection Oriented
TCP: Reliable data transfer
Use of ACK/NACK
TCP: Use of ACK
TCP: Congestion Control
TCP: Header
TCP: Dividing the packets
Internet Protocol Stack: Transport Layer
• Resides at the end-host!
Questions?