SlideShare a Scribd company logo
1 of 33
Download to read offline
Network Models
OSI vs. TCP/IP
Network Models
„ Using a formal model allows us to deal
with various aspects of Networks
abstractly.
„ We will look at two popular models
„ OSI reference model
„ TCP/IP model
„ Both models are based on the concept of
layering.
Layering
„ Divide a task into sub-tasks and then
solve each sub-task independently.
„ Establishing a well defined interface
between layers makes porting easier.
„ Major Advantages:
♦ Code Reuse
♦ Extensibility
Layering Example: Federal Express
„ Letter in envelope, address on outside
„ FedX guy adds addressing information,
barcode.
„ Local office drives to airport and
delivers to hub.
„ Sent via airplane to nearest city.
„ Delivered to right office
„ Delivered to right person
FedX Layers
Letter
Letter Addressed
Envelope
Addressed
Envelope
OSI Reference Model
The International Standards Organization
(ISO) proposal for the standardization of the
various protocols used in computer networks
(specifically those networks used to connect
open systems) is called the Open Systems
Interconnection Reference Model (1984), or
simply the OSI model.
Why a Layered Model?
All People Seem To Need Data Processing
Layers with Functions
The Seven Layers of the OSI
Reference Model
„ The application (upper) layers
Layer 7: Application
Layer 6: Presentation
Layer 5: Session
„ The data-flow (lower) layers
Layer 4: Transport
Layer 3: Network
Layer 2: Data link
Layer 1: Physical
The Application (Upper) Layers
„ Application
User interface
Examples – Telnet, HTTP
„ Presentation
How data is presented
Special processing, such as encryption
Examples – ASCII, EBCDIC, JPEG
„ Session
Keeping different applications’ data separate
establishes, manages, and terminates sessions
between applications.
The Data-Flow (Lower) Layers
„ Transport
Reliable or unreliable delivery
Error correction before transmit
Examples: TCP, UDP, SPX
„ Network
Provide logical addressing which routers use for path
determination
Examples: IP, IPX
The Lower Layers (cont.)
„ Data link
Combines bits into bytes and bytes into frames
Access to media using MAC address
Error detection not correction
Examples: 802.3/802.2, HDLC
„ Physical
Moves bits between devices
Specifies voltage, wire speed, and pinout cables
Examples: EIA/TIA
- 232, V.35
Layering & Headers
„ Each layer needs to add some control
information to the data in order to do it’s
job.
„ This information is typically prepended
to the data before being given to the
lower layer.
„ Once the lower layers deliver the the
data and control information - the peer
layer uses the control information.
Packet Propagation
Each router provides its services to
support upper
- l
ayer functions.
Addresses
„ Each communication endpoint must have
an address.
„ Consider 2 processes communicating over
an internet:
the network must be specified
the host (end-system) must be specified
the process must be specified.
Addresses at Layers
„ Physical Layer: no address necessary
„ Data Link Layer - address must be able to
select any host on the network (MAC).
„ Network Layer - address must be able to
provide information to enable routing (IP).
„ Transport Layer - address must identify
the destination process (PORT).
Broadcasts
„ Many networks support the notion of
sending a message from one host to all
other hosts on the network.
„ A special address called the “broadcast
address” is often used.
TCP/IP Network Model
Process
Transport
Network
Data Link
Process
Transport
Network
Data Link
Interface Protocols
Peer-to-peer
Protocols
Headers
(Encapsulation Î De-Encapsulation)
Process
Transport
Network
Data Link
Process
Transport
Network
Data Link
DATA
DATA
DATA
DATA
H
H
H
H
H
H
Terms Often Used
„ Frames: think data link layer
„ Packets: think network layer
„ Datagrams: think IP
„ Segments: think TCP
„ Cells: think ATM
„ Layer <x>: refer to reference models
What’s a Protocol?
„ An agreed upon convention for
communication.
both endpoints need to understand the
protocol.
„ Protocols must be formally defined and
unambiguous!
„ We will study some of the important
existing TCP/IP protocols.
Interface Vs. Peer-to-peer Protocols
„ Interface protocols describe the communication
between layers on the same endpoint.
„ Peer-to-peer protocols describe
communication between peers at the same
layer.
OSI Model and TCP/IP Model
Differences of the OSI and TCP/IP
models
„ TCP/IP combines the presentation and session
layer into its application layer.
„ TCP/IP combines the OSI data link and physical
layers into one layer.
„ TCP/IP appears simpler because it has fewer
layers.
„ TCP/IP transport layer using UDP does not
always guarantee reliable delivery of packets as
the transport layer in the OSI model does.
Programs & Processes
„ A program is an executable file.
„ A process or task is an instance of a
program that is being executed.
„ A single program can generate multiple
processes.
Client - Server
„ A server is a process - not a machine !
„ A server waits for a request from a
client.
„ A client is a process that sends a
request to an existing server and
(usually) waits for a reply.
Client - Server Examples
„ Server returns the time-of-day.
„ Server returns a document.
„ Server prints a file for client.
„ Server does a disk read or write.
„ Server records a transaction.
Servers
„ Servers are generally more complex (more
interesting).
„ 2 Basic types of servers:
♦ Iterative - server handles one client at a time.
♦ Concurrent - server handles many clients at a
time.
TCP/IP Protocol Graph
ICMP
&
IGMP
ARP
&
RARP
Ports
„ TCP/IP uses an abstract destination
point called a protocol port.
„ Ports are identified by a positive integer.
„ Operating systems provide some
mechanism that processes use to
specify a port.
Ports
Host A
Host A Host B
Host B
Process
Process
Process
Process
Process
Process
Port Numbers
References
„ Cisco Networking Academy Program (CCNA), Cisco Press.
„ CSCI-5273 : Computer Networks, Dirk Grunwald, University of Colorado-Boulder
„ CSCI-4220: Network Programming, Dave Hollinger, Rensselaer Polytechnic Institute.
„ TCP/IP Illustrated, Volume 1, Stevens.
„ Java Network Programming and Distributed Computing, Reilly & Reilly.
„ Computer Networks: A Systems Approach, Peterson & Davie.
„ http://www.firewall.cx
„ http://www.javasoft.com

More Related Content

Similar to layering.pdf

Similar to layering.pdf (20)

ip-basics.ppt
ip-basics.pptip-basics.ppt
ip-basics.ppt
 
ip net basic understanding slide show ppt
ip net basic understanding slide show pptip net basic understanding slide show ppt
ip net basic understanding slide show ppt
 
Osi model
Osi modelOsi model
Osi model
 
layering.ppt
layering.pptlayering.ppt
layering.ppt
 
Lecture 1 networking &amp; internetworking
Lecture 1 networking &amp; internetworkingLecture 1 networking &amp; internetworking
Lecture 1 networking &amp; internetworking
 
Chapter 4 communication2
Chapter 4 communication2Chapter 4 communication2
Chapter 4 communication2
 
OSI model.pptx
OSI model.pptxOSI model.pptx
OSI model.pptx
 
OSI TCP.pptx
OSI TCP.pptxOSI TCP.pptx
OSI TCP.pptx
 
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
 
Osi
OsiOsi
Osi
 
IMD 251 - Networking
IMD 251 - NetworkingIMD 251 - Networking
IMD 251 - Networking
 
Lecture 2 -_understanding_networks_with_presenter_notes
Lecture 2 -_understanding_networks_with_presenter_notesLecture 2 -_understanding_networks_with_presenter_notes
Lecture 2 -_understanding_networks_with_presenter_notes
 
chapter 4.pptx
chapter 4.pptxchapter 4.pptx
chapter 4.pptx
 
Computer networking
Computer networkingComputer networking
Computer networking
 
lecture-2-tcp-ip.ppt
lecture-2-tcp-ip.pptlecture-2-tcp-ip.ppt
lecture-2-tcp-ip.ppt
 
ipbasics.ppt
ipbasics.pptipbasics.ppt
ipbasics.ppt
 
ELEC2 - Lecture 1
ELEC2 - Lecture 1ELEC2 - Lecture 1
ELEC2 - Lecture 1
 
CN-OSI-TCP-Models-001.pdf
CN-OSI-TCP-Models-001.pdfCN-OSI-TCP-Models-001.pdf
CN-OSI-TCP-Models-001.pdf
 
Osi
OsiOsi
Osi
 
Comparison and Contrast between OSI and TCP/IP Model
Comparison and Contrast between OSI and TCP/IP ModelComparison and Contrast between OSI and TCP/IP Model
Comparison and Contrast between OSI and TCP/IP Model
 

Recently uploaded

Thane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsThane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsPooja Nehwal
 
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Pooja Nehwal
 
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一Fi sss
 
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /WhatsappsBeautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsappssapnasaifi408
 
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查awo24iot
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfchapmanellie27
 
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...Authentic No 1 Amil Baba In Pakistan
 
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberCall Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberMs Riya
 
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一ss ss
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》o8wvnojp
 
如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一
如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一
如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一ga6c6bdl
 
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls KolkataCall Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一ga6c6bdl
 
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一C SSS
 
(办理学位证)多伦多大学毕业证成绩单原版一比一
(办理学位证)多伦多大学毕业证成绩单原版一比一(办理学位证)多伦多大学毕业证成绩单原版一比一
(办理学位证)多伦多大学毕业证成绩单原版一比一C SSS
 
Gaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service GayaGaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service Gayasrsj9000
 

Recently uploaded (20)

Thane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call GirlsThane Escorts, (Pooja 09892124323), Thane Call Girls
Thane Escorts, (Pooja 09892124323), Thane Call Girls
 
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
Call Girls In Andheri East Call 9892124323 Book Hot And Sexy Girls,
 
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
(办理学位证)加州州立大学北岭分校毕业证成绩单原版一比一
 
Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565Low rate Call girls in Delhi Justdial | 9953330565
Low rate Call girls in Delhi Justdial | 9953330565
 
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /WhatsappsBeautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
Beautiful Sapna Call Girls CP 9711199012 ☎ Call /Whatsapps
 
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
如何办理(Adelaide毕业证)阿德莱德大学毕业证成绩单Adelaide学历认证真实可查
 
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvfPresentation.pptxjnfoigneoifnvoeifnvklfnvf
Presentation.pptxjnfoigneoifnvoeifnvklfnvf
 
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...Papular No 1 Online Istikhara Amil Baba Pakistan  Amil Baba In Karachi Amil B...
Papular No 1 Online Istikhara Amil Baba Pakistan Amil Baba In Karachi Amil B...
 
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Bhavna Call 7001035870 Meet With Nagpur Escorts
 
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
(SANA) Call Girls Landewadi ( 7001035870 ) HI-Fi Pune Escorts Service
 
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up NumberCall Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
Call Girls Delhi {Rs-10000 Laxmi Nagar] 9711199012 Whats Up Number
 
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(PARI) Alandi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一定制(USF学位证)旧金山大学毕业证成绩单原版一比一
定制(USF学位证)旧金山大学毕业证成绩单原版一比一
 
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
《1:1仿制麦克马斯特大学毕业证|订制麦克马斯特大学文凭》
 
如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一
如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一
如何办理萨省大学毕业证(UofS毕业证)成绩单留信学历认证原版一比一
 
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls KolkataCall Girls Service Kolkata Aishwarya 🤌  8250192130 🚀 Vip Call Girls Kolkata
Call Girls Service Kolkata Aishwarya 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
如何办理(NUS毕业证书)新加坡国立大学毕业证成绩单留信学历认证原版一比一
 
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
(办理学位证)韩国汉阳大学毕业证成绩单原版一比一
 
(办理学位证)多伦多大学毕业证成绩单原版一比一
(办理学位证)多伦多大学毕业证成绩单原版一比一(办理学位证)多伦多大学毕业证成绩单原版一比一
(办理学位证)多伦多大学毕业证成绩单原版一比一
 
Gaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service GayaGaya Call Girls #9907093804 Contact Number Escorts Service Gaya
Gaya Call Girls #9907093804 Contact Number Escorts Service Gaya
 

layering.pdf

  • 2. Network Models „ Using a formal model allows us to deal with various aspects of Networks abstractly. „ We will look at two popular models „ OSI reference model „ TCP/IP model „ Both models are based on the concept of layering.
  • 3. Layering „ Divide a task into sub-tasks and then solve each sub-task independently. „ Establishing a well defined interface between layers makes porting easier. „ Major Advantages: ♦ Code Reuse ♦ Extensibility
  • 4. Layering Example: Federal Express „ Letter in envelope, address on outside „ FedX guy adds addressing information, barcode. „ Local office drives to airport and delivers to hub. „ Sent via airplane to nearest city. „ Delivered to right office „ Delivered to right person
  • 6. OSI Reference Model The International Standards Organization (ISO) proposal for the standardization of the various protocols used in computer networks (specifically those networks used to connect open systems) is called the Open Systems Interconnection Reference Model (1984), or simply the OSI model.
  • 7. Why a Layered Model? All People Seem To Need Data Processing
  • 9. The Seven Layers of the OSI Reference Model „ The application (upper) layers Layer 7: Application Layer 6: Presentation Layer 5: Session „ The data-flow (lower) layers Layer 4: Transport Layer 3: Network Layer 2: Data link Layer 1: Physical
  • 10. The Application (Upper) Layers „ Application User interface Examples – Telnet, HTTP „ Presentation How data is presented Special processing, such as encryption Examples – ASCII, EBCDIC, JPEG „ Session Keeping different applications’ data separate establishes, manages, and terminates sessions between applications.
  • 11. The Data-Flow (Lower) Layers „ Transport Reliable or unreliable delivery Error correction before transmit Examples: TCP, UDP, SPX „ Network Provide logical addressing which routers use for path determination Examples: IP, IPX
  • 12. The Lower Layers (cont.) „ Data link Combines bits into bytes and bytes into frames Access to media using MAC address Error detection not correction Examples: 802.3/802.2, HDLC „ Physical Moves bits between devices Specifies voltage, wire speed, and pinout cables Examples: EIA/TIA - 232, V.35
  • 13. Layering & Headers „ Each layer needs to add some control information to the data in order to do it’s job. „ This information is typically prepended to the data before being given to the lower layer. „ Once the lower layers deliver the the data and control information - the peer layer uses the control information.
  • 14. Packet Propagation Each router provides its services to support upper - l ayer functions.
  • 15. Addresses „ Each communication endpoint must have an address. „ Consider 2 processes communicating over an internet: the network must be specified the host (end-system) must be specified the process must be specified.
  • 16. Addresses at Layers „ Physical Layer: no address necessary „ Data Link Layer - address must be able to select any host on the network (MAC). „ Network Layer - address must be able to provide information to enable routing (IP). „ Transport Layer - address must identify the destination process (PORT).
  • 17. Broadcasts „ Many networks support the notion of sending a message from one host to all other hosts on the network. „ A special address called the “broadcast address” is often used.
  • 18. TCP/IP Network Model Process Transport Network Data Link Process Transport Network Data Link Interface Protocols Peer-to-peer Protocols
  • 19. Headers (Encapsulation Î De-Encapsulation) Process Transport Network Data Link Process Transport Network Data Link DATA DATA DATA DATA H H H H H H
  • 20. Terms Often Used „ Frames: think data link layer „ Packets: think network layer „ Datagrams: think IP „ Segments: think TCP „ Cells: think ATM „ Layer <x>: refer to reference models
  • 21. What’s a Protocol? „ An agreed upon convention for communication. both endpoints need to understand the protocol. „ Protocols must be formally defined and unambiguous! „ We will study some of the important existing TCP/IP protocols.
  • 22. Interface Vs. Peer-to-peer Protocols „ Interface protocols describe the communication between layers on the same endpoint. „ Peer-to-peer protocols describe communication between peers at the same layer.
  • 23. OSI Model and TCP/IP Model
  • 24. Differences of the OSI and TCP/IP models „ TCP/IP combines the presentation and session layer into its application layer. „ TCP/IP combines the OSI data link and physical layers into one layer. „ TCP/IP appears simpler because it has fewer layers. „ TCP/IP transport layer using UDP does not always guarantee reliable delivery of packets as the transport layer in the OSI model does.
  • 25. Programs & Processes „ A program is an executable file. „ A process or task is an instance of a program that is being executed. „ A single program can generate multiple processes.
  • 26. Client - Server „ A server is a process - not a machine ! „ A server waits for a request from a client. „ A client is a process that sends a request to an existing server and (usually) waits for a reply.
  • 27. Client - Server Examples „ Server returns the time-of-day. „ Server returns a document. „ Server prints a file for client. „ Server does a disk read or write. „ Server records a transaction.
  • 28. Servers „ Servers are generally more complex (more interesting). „ 2 Basic types of servers: ♦ Iterative - server handles one client at a time. ♦ Concurrent - server handles many clients at a time.
  • 30. Ports „ TCP/IP uses an abstract destination point called a protocol port. „ Ports are identified by a positive integer. „ Operating systems provide some mechanism that processes use to specify a port.
  • 31. Ports Host A Host A Host B Host B Process Process Process Process Process Process
  • 33. References „ Cisco Networking Academy Program (CCNA), Cisco Press. „ CSCI-5273 : Computer Networks, Dirk Grunwald, University of Colorado-Boulder „ CSCI-4220: Network Programming, Dave Hollinger, Rensselaer Polytechnic Institute. „ TCP/IP Illustrated, Volume 1, Stevens. „ Java Network Programming and Distributed Computing, Reilly & Reilly. „ Computer Networks: A Systems Approach, Peterson & Davie. „ http://www.firewall.cx „ http://www.javasoft.com