SlideShare a Scribd company logo
1 of 47
Network Models
OSI Reference Model
Layered Communication
Requirement
How It works
Seven layers of the OSI model
ISO is the organization.
OSI is the model.
 It prevents changes in one layer from affecting other layers.
 It describes what functions occur at each layer of the model that encourages
industry standardization.
 Dividing network communication process in smaller component makes software
development, design, and troubleshooting easier.
 Standardization of network components allows many vendors make development
 It allows different types of network hardware and software to communicate.
 Dividing network in layers make network administrators life easier.
 They can troubleshoot issue more quickly and effectually by looking in layer that
is causing issue rather than finding it entire network.
 It also makes learning easier.
Advantages of Layering
Protocols
• For proper communication, entities in different systems must speak the same
language
• Therefore, there must be mutually acceptable conventions and rules about
the content, timing and underlying mechanisms
• A protocol is a set of rules and formats that govern the communication
between communicating peers. Such activities include:
 set of valid messages
 meaning of each message
 error detection
 Encryption
 Routing
 etc.
• A protocol is necessary for any function that requires cooperation between
peers
• Sometimes there could be more than one protocol for a task or layer( TCP vs
UDP, POP vs IMAP), however one has to be selected (per layer) according to
the communication requirement.
Protocols
• There is a standard protocol for each network
communication task or layer, such as:
• How to send data over the Internet (TCP/IP)
• How to send and receive email (POP, IMAP)
• How to request and deliver web pages
(HTTP)
• How to request and deliver files (FTP)
OSI as Framework for Standardization
Each layer obtain
services from the
layer below and
provides a service to
the layer above
The interaction between layers in the OSI model
(Router) (Router)
Protocol Data Units (PDU)
 User data is passed from layer to layer
 Control information is added/removed to/from user
data at each layer
 Header (and sometimes trailer)
 each layer has a different header/trailer
 Data + header + trailer = PDU (Protocol Data Unit)
 each layer has a different PDU
 Outgoing data (PDU) in each layer is packaged and
handed over to the layer underneath. This process is
called encapsulation.
A data exchange using the OSI model
Physical layer
The physical layer is responsible for movements of
individual bits from one hop (node) to the next.
Data link layer
The data link layer is responsible for moving
frames from one hop (node) to the next.
Data link layer - Hop-to-hop delivery
Network layer
The network layer is responsible for the
delivery of individual packets from
the source host to the destination host.
Network layer - Source-to-destination delivery
The transport layer is responsible for the delivery
of a message from one process to another.
Transport layer
Transport layer - Reliable process-to-process delivery of a message
The session layer is responsible for dialog
control and synchronization.
Session layer
Presentation layer
The presentation layer is responsible for translation,
compression, and encryption.
Application layer
The application layer is responsible for
providing services to the user.
Summary of OSI layers
Network Models
TCP / IP Protocol Suite
TCP/IP and OSI model
TCP/IP and OSI model
TCP/IP protocol stack
Underlying
Network
Network
Access
Data Formats
Application data
data
TCP
header data
TCP
header data
TCP
header
data
TCP
header
IP
header
data
TCP
header
IP
header
Ethernet
header
Ethernet
trailer
application
layer
transport
layer
network
layer
data link
layer
message
segment
packet
frame
28
Some Protocols in TCP/IP Suite
Packet Encapsulation (TCP/IP)
 The data is sent down the protocol stack
 Each layer adds to the data by prepending headers
22Bytes20Bytes20Bytes 4Bytes
64 to 1500 Bytes
Communication at the physical layer
A
Physical
layer
Physical
layer
R1 R3 R4 B
Source Destination
Legend
011 ... 101
0
1
1
.
.
.
1
0
1
011 ... 101 011 ... 101
Link 3 Link 5 Link 6
Link 1
The unit of communication at the physical layer are
bits.
Communication at the data link layer
A
Physical Physical
Data link
Data link
R1 R3 R4 B
Source Destination Data
D Header
H
Legend
Link 1 Link 3 Link 5 Link 6
Frame
D2 H2
F
r
a
m
e
D
2
H
2
Frame
D2 H2
Frame
D2 H2
The unit of communication at the data link layer is a frame.
Communication at the network layer
A
Physical Physical
Data link
Data link
R1 R3 R4 B
Network
Network
Source Destination Data
D Header
H
Legend
Datagram
D3 H3
Datagram
D3 H3
The unit of communication at the network layer is a datagram.
Communication at transport layer
A
Physical Physical
Data link
Data link
R1 R3 R4
B
Network
Network
Transport Transport
Source Destination Data
D Header
H
Legend
Segment
D4 H4
Segment
D4 H4
The unit of communication at the transport layer is a segment.
Communication at application layer
A
Physical Physical
Data link
Data link
R1 R3 R4
B
Network
Network
Transport Transport
Application
Application Source Destination Data
D Header
H
Legend
Message
D5 D5
D5 D5
Message
The unit of communication at the application layer is a message.
Addresses in TCP/IP
Addresses in the TCP/IP protocol suite
Relationship of layers and addresses in TCP/IP
Most local-area networks use a 48-bit (6-byte) physical
address written as 12 hexadecimal digits; every byte (2
hexadecimal digits) is separated by a colon, as shown
below:
MAC address (Physical Address)
07:01:02:01:2C:4B
A 6-byte (12 hexadecimal digits) physical address.
Data
87 10
1 packet
accepted
Data
87 10
4
Physical addressing inside a single LAN
This figure shows a node with physical address 10 sends a frame to a node
with physical address 87. The two nodes are connected within a LAN. As
the figure shows, the computer with physical address 10 is the sender, and
the computer with physical address 87 is the receiver.
Physical addressing inside a single LAN
This figure shows a node with physical address 10 sends a frame to a node
with physical address 87. The two nodes are connected within a LAN. As
the figure shows, the computer with physical address 10 is the sender, and
the computer with physical address 87 is the receiver.
Data
A P
20 10 Data
A P
20 10
Physical
addresses
changed
Data
A P
33 99
Data
A P
33 99
Physical
addresses
changed
Data
A P
95 66 Data
A P
95 66
IP addresses – Logical addressing
IP addresses – Logical addressing
The physical addresses will change from hop to hop,
but the logical addresses usually remain the same.
• Following figure shows two computers communicating via
the Internet.
• The sending computer is running three processes at this time
with port addresses a, b, and c. The receiving computer is
running two processes at this time with port addresses j and
k.
• Process a in the sending computer needs to communicate
with process j in the receiving computer.
• Note that although both computers are using the same
application, FTP, for example, the port addresses are
different because one is a client program and the other is a
server program.
Port Addressing
A Sender Receiver P
Internet
a Data
j
A P
H2
a Data
j
A P
a Data
j
Data
a Data
j
A P
H2
a Data
j
A P
a Data
j
Data
Port addressing
Port addressing
Source
Port
Destination
Port
Port addressing
Port Addresses
A port address is a 16-bit address represented by one decimal
number as shown.
Ex:- 21: FTP, 23: Telnet, 80: HTTP
It is TCP / UDP segments that carry the source and destination
port numbers
Port numbers range from 0 to 65,539.
Well Known Ports are in the range of 0 to 1023 and are assigned
to well known processes such as FTP, HTTP, SMTP.

More Related Content

Similar to OSI - OSI Reference Model and TCP (Transmission Control Protocol)

Similar to OSI - OSI Reference Model and TCP (Transmission Control Protocol) (20)

Dc2 t1
Dc2 t1Dc2 t1
Dc2 t1
 
CN unit 1 part 2 2023.ppt
CN unit 1 part 2 2023.pptCN unit 1 part 2 2023.ppt
CN unit 1 part 2 2023.ppt
 
Cisco ccna certification knowledge to pass the exam
Cisco ccna certification knowledge to pass the examCisco ccna certification knowledge to pass the exam
Cisco ccna certification knowledge to pass the exam
 
Week 2
Week 2Week 2
Week 2
 
OSI model (7 LAYER )
OSI model (7 LAYER )OSI model (7 LAYER )
OSI model (7 LAYER )
 
Week2 lec2-bscs1
Week2 lec2-bscs1Week2 lec2-bscs1
Week2 lec2-bscs1
 
OSI Pankaj yadav
OSI  Pankaj yadavOSI  Pankaj yadav
OSI Pankaj yadav
 
OSI Model of Networking
OSI Model of NetworkingOSI Model of Networking
OSI Model of Networking
 
seven layer OSI model
seven layer OSI modelseven layer OSI model
seven layer OSI model
 
Protocol
ProtocolProtocol
Protocol
 
Osi model 7 Layers
Osi model 7 LayersOsi model 7 Layers
Osi model 7 Layers
 
Ch 2 network
Ch 2 networkCh 2 network
Ch 2 network
 
osireferencemodel-170703104058 (1).pdf
osireferencemodel-170703104058 (1).pdfosireferencemodel-170703104058 (1).pdf
osireferencemodel-170703104058 (1).pdf
 
OSI MODEL
OSI MODEL OSI MODEL
OSI MODEL
 
UNIT 3 - EXPLAINING THE NEED OF COMPUTER NETWORK
UNIT 3 - EXPLAINING THE NEED OF COMPUTER NETWORKUNIT 3 - EXPLAINING THE NEED OF COMPUTER NETWORK
UNIT 3 - EXPLAINING THE NEED OF COMPUTER NETWORK
 
Osi reference model
Osi reference modelOsi reference model
Osi reference model
 
Computer networks--networks
Computer networks--networksComputer networks--networks
Computer networks--networks
 
1.- Networking Models, Devices.pdf
1.- Networking Models, Devices.pdf1.- Networking Models, Devices.pdf
1.- Networking Models, Devices.pdf
 
Osi model
Osi modelOsi model
Osi model
 
Osi model
Osi modelOsi model
Osi model
 

Recently uploaded

Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Delhi Call girls
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024APNIC
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.soniya singh
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)Damian Radcliffe
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsstephieert
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts servicesonalikaur4
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Roomgirls4nights
 

Recently uploaded (20)

Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Saket Delhi 💯Call Us 🔝8264348440🔝
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
Best VIP Call Girls Noida Sector 75 Call Me: 8448380779
 
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 26 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
DDoS In Oceania and the Pacific, presented by Dave Phelan at NZNOG 2024
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With RoomVIP Kolkata Call Girl Dum Dum 👉 8250192130  Available With Room
VIP Kolkata Call Girl Dum Dum 👉 8250192130 Available With Room
 
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
Call Now ☎ 8264348440 !! Call Girls in Shahpur Jat Escort Service Delhi N.C.R.
 
How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)How is AI changing journalism? (v. April 2024)
How is AI changing journalism? (v. April 2024)
 
Radiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girlsRadiant Call girls in Dubai O56338O268 Dubai Call girls
Radiant Call girls in Dubai O56338O268 Dubai Call girls
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Pratap Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Porur Phone 🍆 8250192130 👅 celebrity escorts service
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With RoomVIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
VIP Kolkata Call Girls Salt Lake 8250192130 Available With Room
 

OSI - OSI Reference Model and TCP (Transmission Control Protocol)

  • 3. Seven layers of the OSI model ISO is the organization. OSI is the model.
  • 4.  It prevents changes in one layer from affecting other layers.  It describes what functions occur at each layer of the model that encourages industry standardization.  Dividing network communication process in smaller component makes software development, design, and troubleshooting easier.  Standardization of network components allows many vendors make development  It allows different types of network hardware and software to communicate.  Dividing network in layers make network administrators life easier.  They can troubleshoot issue more quickly and effectually by looking in layer that is causing issue rather than finding it entire network.  It also makes learning easier. Advantages of Layering
  • 5. Protocols • For proper communication, entities in different systems must speak the same language • Therefore, there must be mutually acceptable conventions and rules about the content, timing and underlying mechanisms • A protocol is a set of rules and formats that govern the communication between communicating peers. Such activities include:  set of valid messages  meaning of each message  error detection  Encryption  Routing  etc. • A protocol is necessary for any function that requires cooperation between peers • Sometimes there could be more than one protocol for a task or layer( TCP vs UDP, POP vs IMAP), however one has to be selected (per layer) according to the communication requirement.
  • 6. Protocols • There is a standard protocol for each network communication task or layer, such as: • How to send data over the Internet (TCP/IP) • How to send and receive email (POP, IMAP) • How to request and deliver web pages (HTTP) • How to request and deliver files (FTP)
  • 7. OSI as Framework for Standardization Each layer obtain services from the layer below and provides a service to the layer above
  • 8. The interaction between layers in the OSI model (Router) (Router)
  • 9. Protocol Data Units (PDU)  User data is passed from layer to layer  Control information is added/removed to/from user data at each layer  Header (and sometimes trailer)  each layer has a different header/trailer  Data + header + trailer = PDU (Protocol Data Unit)  each layer has a different PDU  Outgoing data (PDU) in each layer is packaged and handed over to the layer underneath. This process is called encapsulation.
  • 10. A data exchange using the OSI model
  • 11. Physical layer The physical layer is responsible for movements of individual bits from one hop (node) to the next.
  • 12. Data link layer The data link layer is responsible for moving frames from one hop (node) to the next.
  • 13. Data link layer - Hop-to-hop delivery
  • 14. Network layer The network layer is responsible for the delivery of individual packets from the source host to the destination host.
  • 15. Network layer - Source-to-destination delivery
  • 16. The transport layer is responsible for the delivery of a message from one process to another. Transport layer
  • 17. Transport layer - Reliable process-to-process delivery of a message
  • 18. The session layer is responsible for dialog control and synchronization. Session layer
  • 19. Presentation layer The presentation layer is responsible for translation, compression, and encryption.
  • 20. Application layer The application layer is responsible for providing services to the user.
  • 21. Summary of OSI layers
  • 22.
  • 23. Network Models TCP / IP Protocol Suite
  • 24. TCP/IP and OSI model
  • 25. TCP/IP and OSI model
  • 27. Data Formats Application data data TCP header data TCP header data TCP header data TCP header IP header data TCP header IP header Ethernet header Ethernet trailer application layer transport layer network layer data link layer message segment packet frame
  • 28. 28 Some Protocols in TCP/IP Suite
  • 29. Packet Encapsulation (TCP/IP)  The data is sent down the protocol stack  Each layer adds to the data by prepending headers 22Bytes20Bytes20Bytes 4Bytes 64 to 1500 Bytes
  • 30. Communication at the physical layer A Physical layer Physical layer R1 R3 R4 B Source Destination Legend 011 ... 101 0 1 1 . . . 1 0 1 011 ... 101 011 ... 101 Link 3 Link 5 Link 6 Link 1 The unit of communication at the physical layer are bits.
  • 31. Communication at the data link layer A Physical Physical Data link Data link R1 R3 R4 B Source Destination Data D Header H Legend Link 1 Link 3 Link 5 Link 6 Frame D2 H2 F r a m e D 2 H 2 Frame D2 H2 Frame D2 H2 The unit of communication at the data link layer is a frame.
  • 32. Communication at the network layer A Physical Physical Data link Data link R1 R3 R4 B Network Network Source Destination Data D Header H Legend Datagram D3 H3 Datagram D3 H3 The unit of communication at the network layer is a datagram.
  • 33. Communication at transport layer A Physical Physical Data link Data link R1 R3 R4 B Network Network Transport Transport Source Destination Data D Header H Legend Segment D4 H4 Segment D4 H4 The unit of communication at the transport layer is a segment.
  • 34. Communication at application layer A Physical Physical Data link Data link R1 R3 R4 B Network Network Transport Transport Application Application Source Destination Data D Header H Legend Message D5 D5 D5 D5 Message The unit of communication at the application layer is a message.
  • 36. Addresses in the TCP/IP protocol suite
  • 37. Relationship of layers and addresses in TCP/IP
  • 38. Most local-area networks use a 48-bit (6-byte) physical address written as 12 hexadecimal digits; every byte (2 hexadecimal digits) is separated by a colon, as shown below: MAC address (Physical Address) 07:01:02:01:2C:4B A 6-byte (12 hexadecimal digits) physical address.
  • 39. Data 87 10 1 packet accepted Data 87 10 4 Physical addressing inside a single LAN This figure shows a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected within a LAN. As the figure shows, the computer with physical address 10 is the sender, and the computer with physical address 87 is the receiver.
  • 40. Physical addressing inside a single LAN This figure shows a node with physical address 10 sends a frame to a node with physical address 87. The two nodes are connected within a LAN. As the figure shows, the computer with physical address 10 is the sender, and the computer with physical address 87 is the receiver.
  • 41. Data A P 20 10 Data A P 20 10 Physical addresses changed Data A P 33 99 Data A P 33 99 Physical addresses changed Data A P 95 66 Data A P 95 66 IP addresses – Logical addressing
  • 42. IP addresses – Logical addressing The physical addresses will change from hop to hop, but the logical addresses usually remain the same.
  • 43. • Following figure shows two computers communicating via the Internet. • The sending computer is running three processes at this time with port addresses a, b, and c. The receiving computer is running two processes at this time with port addresses j and k. • Process a in the sending computer needs to communicate with process j in the receiving computer. • Note that although both computers are using the same application, FTP, for example, the port addresses are different because one is a client program and the other is a server program. Port Addressing
  • 44. A Sender Receiver P Internet a Data j A P H2 a Data j A P a Data j Data a Data j A P H2 a Data j A P a Data j Data Port addressing
  • 47. Port Addresses A port address is a 16-bit address represented by one decimal number as shown. Ex:- 21: FTP, 23: Telnet, 80: HTTP It is TCP / UDP segments that carry the source and destination port numbers Port numbers range from 0 to 65,539. Well Known Ports are in the range of 0 to 1023 and are assigned to well known processes such as FTP, HTTP, SMTP.