THE OSI MODEL AND THE TCPIP PROTOCOL SUITE

  • Slides: 49
Download presentation
THE OSI MODEL AND THE TCP/IP PROTOCOL SUITE OUTLINE: 1. 2. 3. 4. Protocol

THE OSI MODEL AND THE TCP/IP PROTOCOL SUITE OUTLINE: 1. 2. 3. 4. Protocol Layers OSI Model TCP/IP Model Addressing

OBJECTIVES • To discuss the OSI model and its layer architecture and to show

OBJECTIVES • To discuss the OSI model and its layer architecture and to show the interface between the layers. • To briefly discuss the functions of each layer in the OSI model. • To introduce the TCP/IP protocol suite and compare its layers with the ones in the OSI model. • To show the functionality of each layer in the TCP/IP protocol with some examples. TCP/IP Protocol Suite 2 • To discuss the addressing mechanism used in some layers of the TCP/IP protocol suite for the delivery of a message from the source to the destination.

COMPUTER NETWORK COMPONENTS • • • 10/20/2021 Fatimah Al. Akeel - Network 1 3

COMPUTER NETWORK COMPONENTS • • • 10/20/2021 Fatimah Al. Akeel - Network 1 3 Computer with NIC (PCs, laptops, handhelds) routers & switches (IP router, Ethernet switch) Links” Transmission media” (wired, wireless) protocols (IP, TCP, CSMA/CD, CSMA/CA) applications (network services) i. e. Network Operating System (NOS) • humans and service agents

PROTOCOL “LAYERS” Introduction Question: Is there any hope of organizing structure of network? Or

PROTOCOL “LAYERS” Introduction Question: Is there any hope of organizing structure of network? Or at least our discussion of networks? 1 -4 Networks are complex! many “pieces”: • hosts • routers • links of various media • applications • protocols • hardware, software

ORGANIZATION OF AIR TRAVEL ticket (purchase) ticket (complain) baggage (check) baggage (claim) gates (load)

ORGANIZATION OF AIR TRAVEL ticket (purchase) ticket (complain) baggage (check) baggage (claim) gates (load) gates (unload) runway takeoff runway landing airplane routing Introduction 1 -5 a series of steps

LAYERING OF AIRLINE FUNCTIONALITY ticket (purchase) ticket (complain) ticket baggage (check) baggage (claim baggage

LAYERING OF AIRLINE FUNCTIONALITY ticket (purchase) ticket (complain) ticket baggage (check) baggage (claim baggage gates (load) gates (unload) gate runway (takeoff) runway (land) takeoff/landing airplane routing departure airport airplane routing intermediate air-traffic control centers arrival airport Layers: each layer implements a service Introduction 1 -6 • via its own internal-layer actions • relying on services provided by layer below

WHY LAYERING? • Dealing with complex systems: • explicit structure allows identification, relationship of

WHY LAYERING? • Dealing with complex systems: • explicit structure allows identification, relationship of complex system’s pieces • layered reference model for discussion • modularization eases maintenance, updating of system Introduction 1 -7 • change of implementation of layer’s service transparent to rest of system • e. g. , change in gate procedure doesn’t affect rest of system

WHAT’S A PROTOCOL? human protocols: network protocols: “what’s the time? ” machines rather than

WHAT’S A PROTOCOL? human protocols: network protocols: “what’s the time? ” machines rather than humans introductions … specific msgs sent … specific actions taken when msgs received, or other events Introduction all communication activity in Internet governed by protocols define format, order of msgs sent and received among network entities, and actions taken on msg transmission , receipt 1 -8 “I have a question”

WHAT’S A PROTOCOL? a human protocol and a computer network protocol: Hi TCP connection

WHAT’S A PROTOCOL? a human protocol and a computer network protocol: Hi TCP connection request Hi TCP connection response Got the time? Get http: //www. awl. com/kurose-ross 2: 00 <file> Q: Other human protocols? Introduction 1 -9 time

PROTOCOL LAYERS TCP/IP Protocol Suite 10 We discussed that a protocol is required when

PROTOCOL LAYERS TCP/IP Protocol Suite 10 We discussed that a protocol is required when two entities need to communicate. When communication is not simple, we may divide the complex task of communication into several layers. Let us use a scenario in communication in which the role of protocol layering may be better understood. We use two examples. In the first example, communication is so simple that it can occur in only one layer.

EXAMPLE 1 Assume Maria and Ann are neighbors with a lot of common ideas.

EXAMPLE 1 Assume Maria and Ann are neighbors with a lot of common ideas. However, Maria speaks only Spanish, and Ann speaks only English. Since both have learned the sign language in their childhood, they enjoy meeting in a cafe a couple of days per week and exchange their ideas using signs. TCP/IP Protocol Suite 11 Occasionally, they also use a bilingual dictionary. Communication is face to face and Happens in one layer as shown in Figure.

EXAMPLE 2 Now assume that Ann has to move to another town because of

EXAMPLE 2 Now assume that Ann has to move to another town because of her job. Before she moves, the two meet for the last time in the same cafe. Although both are sad, Maria surprises Ann when she opens a packet that contains two small machines. • • The first machine can scan and transform a letter in English to a secret code or vice versa. The other machine can scan and translate a letter in Spanish to the same secret code or vice versa. Ann takes the first machine; Maria keeps the second one. TCP/IP Protocol Suite 12 The two friends can still communicate using the secret code, as shown in Figure.

PROTOCOL LAYERS Network activity involves sending data from one computer to another. This complex

PROTOCOL LAYERS Network activity involves sending data from one computer to another. This complex process can be broken into discrete, sequential tasks. The sending computer must: • Recognize the data. • Divide the data into manageable chunks. • Add information to each chunk of data to determine the location of the data and to identify the receiver. • Add timing and error-checking information. • Put the data on the network and send it on its way. In this case, we may need several protocols, one for each layer.

 • In 1978, the International Organization for Standardization (ISO) released a set of

• In 1978, the International Organization for Standardization (ISO) released a set of specifications that described network architecture for connecting dissimilar devices. • Established in 1947, the International Standards Organization (ISO) is a multinational body dedicated to worldwide agreement on international standards. • Almost three-fourths of countries in the world are represented in the ISO. • An ISO standard that covers all aspects of network communications is the Open Systems Interconnection (OSI) model. TCP/IP Protocol Suite 14 THE OSI MODEL

Note TCP/IP Protocol Suite 15 ISO is the organization; OSI is the model.

Note TCP/IP Protocol Suite 15 ISO is the organization; OSI is the model.

TOPICS DISCUSSED IN THE SECTION Layers in the OSI Model Layered Architecture Layer-to-layer Communication

TOPICS DISCUSSED IN THE SECTION Layers in the OSI Model Layered Architecture Layer-to-layer Communication TCP/IP Protocol Suite 16 Encapsulation

OSI MODEL LAYERS The OSI reference model architecture divides network communication into seven layers.

OSI MODEL LAYERS The OSI reference model architecture divides network communication into seven layers. Each layer covers different network activities, equipment, or protocols. Layering specifies different functions and services as data moves from one computer through the network cabling to another computer.

OSI MODEL LAYERS Each layer provides some service or action that prepares the data

OSI MODEL LAYERS Each layer provides some service or action that prepares the data for delivery over the network to another computer. The lowest layers— 1 and 2—define the network's physical media and related tasks, such as putting data bits onto the network interface cards (NICs) and cable. The highest layers define how applications access communication services. The higher the layer, the more complex its task.

OSI MODEL LAYERS Also, the OSI reference model defines how each layer communicates and

OSI MODEL LAYERS Also, the OSI reference model defines how each layer communicates and works with the layers immediately above and below it. The layers are separated from each other by boundaries called interfaces. The interface defines the services offered by the lower networking layer to the upper one and further defines how those services will be accessed. All requests are passed from one layer, through the interface, to the next layer. Each layer builds upon the standards and activities of the layer below it. Each layer provides services to the next-higher layer and shields the upper layer from the details of how the services below it are actually implemented.

TCP/IP Protocol Suite 20 OSI layers

TCP/IP Protocol Suite 20 OSI layers

OSI MODEL LAYERS With the exception of the lowest layer in the OSI networking

OSI MODEL LAYERS With the exception of the lowest layer in the OSI networking model, no layer can pass information directly to its counterpart on another computer. Instead, information on the sending computer must be passed down through each successive layer until it reaches the physical layer. The information then moves across the networking cable to the receiving computer and up that computer's networking layers until it arrives at the corresponding layer.

OSI MODEL LAYERS But, we can visualize that each layer has a direct communication

OSI MODEL LAYERS But, we can visualize that each layer has a direct communication with its associated layer on the other computer. This provides a logical, or virtual, communication between peer layers

TCP/IP Protocol Suite 23 An exchange using the OSI model ( Encapsulation)

TCP/IP Protocol Suite 23 An exchange using the OSI model ( Encapsulation)

ENCAPSULATION Before data is passed from one layer to another, it is broken down

ENCAPSULATION Before data is passed from one layer to another, it is broken down into packets, or units of information, which are transmitted as a whole from one device to another on a network. At the sender, each layer adds additional formatting or addressing to the packet, which is needed for the packet to be successfully transmitted across the network. At the receiving end, the packet passes through the layers in reverse order. Each layer reads the information on the packet, strips it away, and passes the packet up to the next layer. When the packet is finally passed up to the application layer, the packet is in its original form, which is readable by the receiver.

ENCAPSULATIO N source message segment Ht M datagram Hn Ht M frame Hl Hn

ENCAPSULATIO N source message segment Ht M datagram Hn Ht M frame Hl Hn Ht M M application transport network link physical switch M Ht M Hn Ht Hl Hn Ht M M Introduction application transport network link physical Hn Ht Hl Hn Ht M M network link physical Hn Ht M router 1 -25 destination

TCP/IP MODEL The TCP/IP protocol suite was developed prior to the OSI model. •

TCP/IP MODEL The TCP/IP protocol suite was developed prior to the OSI model. • Therefore, the layers in the TCP/IP protocol suite do not match exactly with those in the OSI model. The original TCP/IP protocol suite was defined as four layers. Today, however, TCP/IP is thought of as a five-layer model. • TCP/IP Protocol Suite • Troubleshooting, Application file sharing, internet Transport • Flow control, error control Internet • IP addressing and routing of network traffic Network Access • Interface with the physical network 26 •

COMPARISON BETWEEN OSI AND TCP/IP IOS MODEL TCP/IP MODEL Application Presentation Application Session Transport

COMPARISON BETWEEN OSI AND TCP/IP IOS MODEL TCP/IP MODEL Application Presentation Application Session Transport Network Internet Data Link Physical Network Access

IN THIS SECTION WE BRIEFLY DESCRIBE THE FUNCTIONS OF EACH LAYER IN THE OSI

IN THIS SECTION WE BRIEFLY DESCRIBE THE FUNCTIONS OF EACH LAYER IN THE OSI MODEL. LAYERS IN THE OSI MODEL

TCP/IP Protocol Suite 29 A private internet

TCP/IP Protocol Suite 29 A private internet

PHYSICAL LAYER The physical layer coordinates the functions required to transmit a bit stream

PHYSICAL LAYER The physical layer coordinates the functions required to transmit a bit stream over a physical medium. It defines the procedures and functions that physical devices and interfaces have to perform for transmission occur. The physical layer is concerned with the following: • • • Physical characteristics of interfaces and media: Representation of the bits Data rate, the number of bits sent each second. Line configuration, Point to point or multipoint configuration. Physical topology Transmission Mode : Simplex, half duplex or full duplex 10/20/2021 Nouf Aljaffan (C) 2012 - CSC 1202 Course at KSU

Note TCP/IP Protocol Suite 31 The physical layer is responsible for moving individual bits

Note TCP/IP Protocol Suite 31 The physical layer is responsible for moving individual bits from one (node) to the next.

TCP/IP Protocol Suite 32 Communication at the physical layer

TCP/IP Protocol Suite 32 Communication at the physical layer

Note TCP/IP Protocol Suite 33 The unit of communication at the physical layer is

Note TCP/IP Protocol Suite 33 The unit of communication at the physical layer is a bit.

LINK LAYER: INTRODUCTION Some terminology: hosts and routers are nodes communication channels that connect

LINK LAYER: INTRODUCTION Some terminology: hosts and routers are nodes communication channels that connect adjacent nodes along communication path are links • wired links • wireless links • LANs data-link layer has responsibility of transferring datagram from one node to adjacent node over a link 5: Data. Link Layer 5 -34 layer-2 packet is a frame, encapsulates datagram

LINK LAYER: CONTEXT datagram transferred by different link protocols over different links: • e.

LINK LAYER: CONTEXT datagram transferred by different link protocols over different links: • e. g. , Ethernet on first link, frame relay on intermediate links, 802. 11 on last link each link protocol provides different services • e. g. , may or may not provide rdt over link transportation analogy trip from Princeton to Lausanne • limo: Princeton to JFK • plane: JFK to Geneva • train: Geneva to Lausanne tourist = datagram transport segment = communication link transportation mode = link layer protocol 5: Data. Link Layer 5 -35 travel agent = routing algorithm

LINK LAYER SERVICES framing, link access: • encapsulate datagram into frame, adding header, trailer

LINK LAYER SERVICES framing, link access: • encapsulate datagram into frame, adding header, trailer • channel access if shared medium • “MAC” addresses used in frame headers to identify source, dest 5: Data. Link Layer 5 -36 • different from IP address!

LINK LAYER SERVICES (MORE) flow control: • pacing between adjacent sending and receiving nodes

LINK LAYER SERVICES (MORE) flow control: • pacing between adjacent sending and receiving nodes error detection: • errors caused by signal attenuation, noise. • receiver detects presence of errors: • signals sender for retransmission or drops frame error correction: • receiver identifies and corrects bit error(s) without resorting to retransmission half-duplex and full-duplex 5: Data. Link Layer 5 -37 • with half duplex, nodes at both ends of link can transmit, but not at same time

WHERE IS THE LINK LAYER IMPLEMENTED? in each and every host link layer implemented

WHERE IS THE LINK LAYER IMPLEMENTED? in each and every host link layer implemented in “adaptor” (aka network interface card NIC) host schematic application transport network link cpu memory controller link physical host bus (e. g. , PCI) physical transmission 5: Data. Link Layer 5 -38 network adapter card

DATA LINK LAYER The data link layer transforms the physical layer, a raw transmission

DATA LINK LAYER The data link layer transforms the physical layer, a raw transmission facility, to a reliable link ( it make the physical layer appear error-free to the upper layer) it responsible for node-to-node delivery. The Data Link layer is concerned with the following: • • • Framing. Physical addressing, each node has its unique address. Flow Control. Access Control. Error control, normally achieved through a trailer to the end of the frame.

TCP/IP Protocol Suite 40 Communication at the data link layer

TCP/IP Protocol Suite 40 Communication at the data link layer

Note TCP/IP Protocol Suite 41 The unit of communication at the data link layer

Note TCP/IP Protocol Suite 41 The unit of communication at the data link layer is a frame.

NETWORK LAYER Network Layer application transport network data link physical network data link physical

NETWORK LAYER Network Layer application transport network data link physical network data link physical network data link physical application transport network data link physical 4 -42 transport segment from sending to receiving host on sending side encapsulates segments into data grams. on receiving side, delivers segments to transport layer. network layer protocols in every host, router examines header fields in all IP data grams passing through it

TWO KEY NETWORKLAYER FUNCTIONS forwarding: move packets from router’s input to appropriate router output

TWO KEY NETWORKLAYER FUNCTIONS forwarding: move packets from router’s input to appropriate router output routing: determine route taken by packets from source to dest. • routing algorithms analogy: r routing: process of planning trip from source to dest r forwarding: process of Network Layer 4 -43 getting through single interchange

NETWORK LAYER • Is responsible for the source-to-destination delivery of a packet possible across

NETWORK LAYER • Is responsible for the source-to-destination delivery of a packet possible across multiple networks. Functions: • Logical addressing. • Routing, It determines which path the data should take based on network conditions, priority of service, and other factors.

Note TCP/IP Protocol Suite 46 The unit of communication at the network layer is

Note TCP/IP Protocol Suite 46 The unit of communication at the network layer is a datagram (Packet).

TRANSPORT LAYER The transport layer is responsible for process-to-process delivery of the entire message.

TRANSPORT LAYER The transport layer is responsible for process-to-process delivery of the entire message. Makes sure that the data arrives without errors, in the proper sequence and in a reliable condition. Functions: Port addressing, The network layer gets each packet to the correct computer; • the transport layer gets the entire message to the correct process on that computer. Segmentation and reassembly: a message is divided into transmittable • segments, each having a sequence number Connection control: The transport layer can be either connectionless or • connection-oriented. Flow control • Error control • 10/20/2021 Nouf Aljaffan (C) 2012 - CSC 1202 Course at KSU

TCP/IP Protocol Suite 48 Communication at transport layer

TCP/IP Protocol Suite 48 Communication at transport layer

Note TCP/IP Protocol Suite 49 The unit of communication at the transport layer is

Note TCP/IP Protocol Suite 49 The unit of communication at the transport layer is a segment, user datagram, or a packet, depending on the specific protocol used in this layer.