network models osi vs. tcp/ip - wmich.edualfuqaha/spring11/cs5550/lectures/layering.pdf · we will...
TRANSCRIPT
![Page 1: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/1.jpg)
Network ModelsOSI vs. TCP/IP
![Page 2: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/2.jpg)
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 modelTCP/IP model
Both models are based on the concept of layering.
![Page 3: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/3.jpg)
LayeringDivide 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
![Page 4: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/4.jpg)
Layering Example: Federal Express
Letter in envelope, address on outsideFedX guy adds addressing information, barcode.Local office drives to airport and delivers to hub. Sent via airplane to nearest city.Delivered to right officeDelivered to right person
![Page 5: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/5.jpg)
FedX Layers
Letter
Letter Addressed Envelope
Addressed Envelope
![Page 6: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/6.jpg)
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.
![Page 7: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/7.jpg)
Why a Layered Model?
All People Seem To Need Data Processing
![Page 8: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/8.jpg)
Layers with Functions
![Page 9: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/9.jpg)
The Seven Layers of the OSI Reference Model
The application (upper) layersLayer 7: ApplicationLayer 6: PresentationLayer 5: Session
The data-flow (lower) layersLayer 4: TransportLayer 3: NetworkLayer 2: Data linkLayer 1: Physical
![Page 10: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/10.jpg)
The Application (Upper) LayersApplication
User interfaceExamples – Telnet, HTTP
PresentationHow data is presentedSpecial processing, such as encryptionExamples – ASCII, EBCDIC, JPEG
SessionKeeping different applications’ data separateestablishes, manages, and terminates sessions between applications.
![Page 11: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/11.jpg)
The Data-Flow (Lower) Layers
Transport Reliable or unreliable deliveryError correction before transmitExamples: TCP, UDP, SPX
NetworkProvide logical addressing which routers use for path determinationExamples: IP, IPX
![Page 12: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/12.jpg)
The Lower Layers (cont.)
Data linkCombines bits into bytes and bytes into framesAccess to media using MAC addressError detection not correctionExamples: 802.3/802.2, HDLC
PhysicalMoves bits between devicesSpecifies voltage, wire speed, and pinout cablesExamples: EIA/TIA- 232, V.35
![Page 13: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/13.jpg)
Layering & Headers Each layer needs to add some control information to the data in order to do it’s job. This information is typically prependedto 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.
![Page 14: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/14.jpg)
Packet Propagation
Each router provides its services to support upper- layer functions.
![Page 15: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/15.jpg)
Addresses
Each communication endpoint must have an address.Consider 2 processes communicating over an internet:
the network must be specifiedthe host (end-system) must be specifiedthe process must be specified.
![Page 16: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/16.jpg)
Addresses at Layers
Physical Layer: no address necessaryData 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).
![Page 17: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/17.jpg)
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.
![Page 18: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/18.jpg)
TCP/IP Network Model
Process
Transport
Network
Data Link
Process
Transport
Network
Data Link
Interface Protocols
Peer-to-peerProtocols
![Page 19: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/19.jpg)
Headers(Encapsulation De-Encapsulation)
Process
Transport
Network
Data Link
Process
Transport
Network
Data Link
DATA
DATA
DATA
DATA
H
H
H
H
HH
![Page 20: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/20.jpg)
Terms Often Used
Frames: think data link layerPackets: think network layerDatagrams: think IPSegments: think TCPCells: think ATMLayer <x>: refer to reference models
![Page 21: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/21.jpg)
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.
![Page 22: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/22.jpg)
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.
![Page 23: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/23.jpg)
OSI Model and TCP/IP Model
![Page 24: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/24.jpg)
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.
![Page 25: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/25.jpg)
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.
![Page 26: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/26.jpg)
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.
![Page 27: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/27.jpg)
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.
![Page 28: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/28.jpg)
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.
![Page 29: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/29.jpg)
TCP/IP Protocol Graph
ICMP&
IGMP
ARP &
RARP
![Page 30: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/30.jpg)
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.
![Page 31: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/31.jpg)
PortsHost AHost A Host BHost B
Process
Process
Process
Process
Process
Process
![Page 32: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/32.jpg)
Port Numbers
![Page 33: Network Models OSI vs. TCP/IP - wmich.edualfuqaha/Spring11/cs5550/lectures/layering.pdf · We will look at two popular models ... sending a message from one host to all other hosts](https://reader031.vdocuments.net/reader031/viewer/2022030502/5aaf0d517f8b9a59478cd878/html5/thumbnails/33.jpg)
ReferencesCisco 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