Lecture 2 Protocol Layers CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger.

Slides:



Advertisements
Similar presentations
Why to learn OSI reference Model? The answer is too simple that It tells us that how communication takes place between computers on internet but how??
Advertisements

OSI Model OSI MODEL.
OSI Model OSI LAYER / MODEL.
Open System Interconnection
Prabhaker Mateti (ack: Many many sources …)
CS 582 / CMPE 481 Distributed Systems Communications.
CSCE 515: Computer Network Programming Wenyuan Xu Department of Computer Science and Engineering University.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Chapter 2 Network Models.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Communicating over the Network Network Fundamentals – Chapter 2.
Data Communications Network Models.
OIS Model TCP/IP Model.
Lecturer: Tamanna Haque Nipa
THE OSI REFERENCE MODEL LES M C LELLAN DEAN WHITTAKER SANDY WORKMAN.
2-2008UP-Copyrights reserved1 ITGD4103 Data Communications and Networks OSI Reference Model Lecture-5: OSI Reference Model week 5- q-2/ 2008 Dr. Anwar.
Lecture 1 Internet CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger and Daniel Zappala Lecture 1 Introduction.
Lecture 1 The OSI Model Reference: TCP/IP Protocol Suite, 4 th Edition (chapter 2) 1.
Presentation on Osi & TCP/IP MODEL
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
Internet Addresses. Universal Identifiers Universal Communication Service - Communication system which allows any host to communicate with any other host.
THE OSI REFERENCE MODEL Open Systems Interconnection (OSI) International Organization for Standardization( ISO)
Mukesh N. Tekwani Elphinstone College Mumbai
1 Review - OSI Model n OSI Reference Model u represents the communications process. u 7 layers: physical, data link, network, transport, session, presentation.
Layer Architecture Layer architecture simplifies the network design. It is easy to debug network applications in a layered architecture network. The network.
The OSI Model An ISO (International standard Organization) that covers all aspects of network communications is the Open System Interconnection (OSI) model.
 An ISO is a multi national body dedicated to worldwide agreement on international standards.  An ISO standard that covers all aspects of network communications.
COMPUTER NETWORKS Ms. Mrinmoyee Mukherjee Assistant Professor
Network Protocol Hierarchies
The OSI Model.
Lecture 3 Overview. Protocol An agreed upon convention for communication both endpoints need to understand the protocol. Protocols must be formally defined.
Spring 2006Computer Networks1 Chapter 2 Network Models.
INTRODUCTION TO NETWORKS & OSI MODEL T.RAMYAAPI/EIEKLNCE.
UNDERSTANDING THE HOST-TO-HOST COMMUNICATIONS MODEL - OSI LAYER & TCP/IP MODEL 1.
Chapter 15 – Part 2 Networks The Internal Operating System The Architecture of Computer Hardware and Systems Software: An Information Technology Approach.
Lecture 4 Overview. Ethernet Data Link Layer protocol Ethernet (IEEE 802.3) is widely used Supported by a variety of physical layer implementations Multi-access.
Chapter 2. Network Models
THE OSI MODEL ISO is the organization.OSI is the model. ISO  International Standards Organization OSI  Open Systems Interconnection.
1 Packet Switching, Layer Models and Protocol Suites.
Open System Interconnection Describe how information from a software application in one computer moves through a network medium to a software application.
1 Networking. 2 Network “... communication system for connecting end-systems” End-systems a.k.a. “hosts” PCs, workstations dedicated computers network.
Network Models.
Protocol Suits and Layering Models OSI Model Dr. Abraham UTPA.
Chapter 2. Network Models
Protocol Layering Chapter 11.
1 Netprog: OSI Reference Model Networking. 2 Network “... communication system for connecting end-systems” End-systems a.k.a. “hosts” PCs, workstations.
OSI Model. Open Systems Interconnection (OSI) is a set of internationally recognized, non proprietary standards for networking and for operating system.
Data Communication Network Models
TCP/IP Protocol Suite Suresh Kr Sharma 1 The OSI Model and the TCP/IP Protocol Suite Established in 1947, the International Standards Organization (ISO)
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
Mr. Sathish Kumar. M Department of Electronics and Communication Engineering I’ve learned that people will forget what you said, people will forget what.
Computer Network Lab. 1 3 장 OSI 기본 참조 모델 n OSI : Open System Interconnection n Basic Reference Model : ISO-7498 n Purpose of OSI Model ~ is to open communication.
Computer Engineering and Networks, College of Engineering, Majmaah University Protocols OSI reference MODEL TCp /ip model Mohammed Saleem Bhat
OSI Model OSI MODEL. Communication Architecture Strategy for connecting host computers and other communicating equipment. Defines necessary elements for.
OSI Model OSI MODEL.
The OSI Model Prof. Choong Seon HONG.
OSI NETWORK MODEL.
ISO/OSI Model and Collision Domain
Lecturer, Department of Computer Application
DEPARTMENT OF COMPUTER SCIENCE
Lecture 2 Overview.
CPE 401 / 601 Computer Network Systems
Chapter 3: Open Systems Interconnection (OSI) Model
Networking.
OSI Model OSI MODEL.
Networking.
OSI Reference Model Unit II
OSI Model 7 Layers 7. Application Layer 6. Presentation Layer
Unit – III Network Essentials
Presentation transcript:

Lecture 2 Protocol Layers CPE 401 / 601 Computer Network Systems slides are modified from Dave Hollinger

OSI Reference Model The International Standards Organization (ISO) proposal for the standardization of various protocols used in computer networks is called the Open Systems Interconnection Reference Model. Although the OSI model is a just a model (not a specification), it is generally regarded as the most complete model. Protocol Layers 2

OSI 7 Layer Model: 7 Application 6 Presentation 5 Session 4 Transport 3 Network 2 Data-Link 1 Physical High level protocols Low level protocols Protocol Layers 3 TCP/IP Model

Simplified Network Model Application Transport Network Data Link Application Transport Network Data Link Interface Protocols Peer-to-peer Protocols Protocol Layers 4

The Physical Layer  Responsibility:  transmission of raw bits over a communication channel  Issues:  mechanical and electrical interfaces  time per bit  distances Protocol Layers 5

The Data Link Layer  Responsibility:  provide an error-free communication link  Issues:  framing (dividing data into chunks) header & trailer bits  addressing Protocol Layers 6

The Data Link Layer  Data Link Control sublayer  Medium Access Control sublayer  needed by mutiaccess networks.  MAC provides Data Link Control with “virtual wires” on multiaccess networks. Protocol Layers 7

The Network Layer  Responsibilities:  path selection between end-systems (routing).  flow control.  fragmentation & reassembly  translation between different network types.  Issues:  packet headers  virtual circuits Protocol Layers 8

The Transport Layer  Responsibilities:  provides virtual end-to-end links between peer processes.  end-to-end flow control  Issues:  headers  error detection  reliable communication Protocol Layers 9

The Session Layer  Responsibilities:  establishes, manages, and terminates sessions between applications.  service location lookup  Many protocol suites do not include a session layer.  Not in TCP/IP model Protocol Layers 10

The Presentation Layer  Responsibilities:  data encryption  data compression  data conversion  Many protocol suites do not include a Presentation Layer.  Not in TCP/IP model Protocol Layers 11

The Application Layer  Responsibilities:  anything not provided by any of the other layers  TCP/IP model Session and Presentation Layer functions  Issues:  application level protocols  appropriate selection of “type of service” Protocol Layers 12

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 data and control information - the peer layer uses the control information. Protocol Layers 13

Headers Application Transport Network Data Link Application Transport Network Data Link DATA H H H H HH Protocol Layers 14

What are the headers? Physical:  no header - just a bunch of bits Data Link:  address of the receiving endpoints  address of the sending endpoint  length of the data  checksum Protocol Layers 15

What are the headers?  Network:  Protocol  Protocol version  type of service  packet identifier  time to live  source network address  destination network address  length of the data  fragment number  header checksum Protocol Layers 16

The Internet Hourglass Protocol Layers 17

Layers Summary  Data-Link: communication between machines on the same network.  Network: communication between machines on possibly different networks.  Transport: communication between processes (running on machines on possibly different networks). Protocol Layers 18

Connecting Networks  Repeater: physical layer  Bridge: data link layer  Router: network layer  Gateway: network layer and above.  Many workstations can operate as routers or gateways Protocol Layers 19

Repeater  Copies bits from one network to another  Does not look at any bits  Allows the extension of a network beyond physical length limitations  typically hardware devices. REPEATER Protocol Layers 20

Bridge  Copies frames from one network to another  Can operate selectively - does not copy all frames (must look at data-link headers).  Extends the network beyond physical length limitations.  can be implemented in hardware or software BRIDGE Protocol Layers 21

Router  Copies packets from one network to another.  Makes decisions about what route a packet should take (looks at network headers).  typically implemented in software so that they can be extended to handle new protocols ROUTER Protocol Layers 22

Gateway  Operates as a router  Data conversions above the network layer.  Conversions: encapsulation - use an intermediate network translation - connect different application protocols encrpyption - could be done by a gateway  typically implemented in software so that they can be extended to handle new protocols Protocol Layers 23

Encapsulation Example Gateway  Provides service connectivity even though intermediate network does not support protocols. Protocol Layers 24

Translation  Translate from green protocol to brown protocol Gateway Protocol Layers 25

Encryption gateway Encryption/Decryption Gateways Secure Network Secure Network GW ? ? ? Insecure Network Protocol Layers 26

Byte Ordering Low ByteHigh Byte Addr AAddr A+1 High ByteLow Byte Addr AAddr A+1 Big-Endian IBM 370 Motorola Sun Little-Endian IBM 80x86 DEC VAX DEC PDP-11 Protocol Layers 27  Different computer architectures use different byte ordering to represent multibyte values.

Byte Order and Networking  Suppose a Big Endian machine sends a 16 bit integer with the value 2:  A Little Endian machine will think it got the number 512: Protocol Layers 28

Network Byte Order  How do lower level layers communicate if they all represent values differently ? (data length fields in headers)  A fixed byte order is used (called network byte order) for all control data.  TCP/IP : big-endian order Protocol Layers 29

Multiplexing  “.. to combine many into one”.  Many processes sharing a single network interface.  A single process could use multiple protocols.  More on this when we look at TCP/IP. Protocol Layers 30

Modes of Service  connection-oriented vs. connectionless  sequencing  error-control  flow-control  byte stream vs. message based  full-duplex vs. half-duplex. Protocol Layers 31

Connection-Oriented vs. Connectionless Service  A connection-oriented service includes the establishment of a logical connection between 2 processes.  establish logical connection  transfer data  terminate connection.  Connectionless services involve sending of independent messages. Protocol Layers 32

Sequencing  Sequencing provides support for an order to communications.  A service that includes sequencing requires that messages (or bytes) are received in the same order they are sent. Protocol Layers 33

Error Control  Some services require error detection  it is important to know when a transmission error has occured.  Error control sometimes involves notification and retransmission.  Checksums provide a simple error detection mechanism. Protocol Layers 34

Flow Control  Flow control prevents the sending process from overwhelming the receiving process.  Flow control can be handled a variety of ways  this is one of the major research issues Protocol Layers 35

Byte Stream vs. Message  Byte stream implies an ordered sequence of bytes with no message boundaries.  Message oriented services provide communication service to chunks of data called datagrams. Protocol Layers 36

Full- vs. Half-Duplex  Full-Duplex services support the transfer of data in both directions.  Half-Duplex services support the transfer of data in a single direction. Protocol Layers 37

End-to-End vs. Hop-to-Hop  Many service modes/features such as flow control and error control can be done either: between endpoints of the communication -or- between every 2 nodes on the path between the endpoints Protocol Layers 38

End-to-End Process A Process B Protocol Layers 39

Hop-by-Hop Process A Process B Protocol Layers 40

Buffering  Buffering can provide more efficient communications.  Buffering is most useful for byte stream services. Process AProcess B Send Buffer Recv. Buffer Protocol Layers 41

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. Protocol Layers 42

Addresses at Layers  Physical Layer - no address necessary  Data Link Layer - address must be able to select any host on the network.  Network Layer - address must be able to provide information to enable routing.  Transport Layer - address must identify the destination process. Protocol Layers 43

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.  Services based on broadcasting  Address Resolution Protocol  Routing Information Protocol  rusers Protocol Layers 44

Multicast  Goal is to efficiently send a message from one host to a group of hosts.  Information is sent over spanning trees.  A special “multicast address” is often used.  Services based on multicasting  Streaming Media  Internet Television Protocol Layers 45