Presentation on theme: "Layering in Networked computing"— Presentation transcript:
1 Layering in Networked computing OSI ModelTCP/IP ModelProtocols at each layer
2 Learning outcomesUnderstand the need of layering in Networked computingUnderstand the OSI model and the tcp/ip modelUnderstand the function protocols and their role at each layer.TCP protocolUDP protocolUnderstand the role of header in communication between layersUnderstand how data sent from one host arrive to the target host.
3 What is layering in Networked computing? Breaks down communication into smaller, simpler parts.
4 Why a layered model? Easier to teach communication process. Speeds development, changes in one layer does not affect how the other levels works.Standardization across manufactures.Allows different hardware and software to work together.Reduces complexity
6 The OSI Model OSI “ Open Systems Interconnection". OSI model was first introduced in 1984 by the International Organization for Standardization (ISO).Outlines WHAT needs to be done to send data from one computer to another.Not HOW it should be done.Protocols stacks handle how data is prepared for transmittal (to be transmitted)In the OSI model, The specification neededare contained in 7 different layers that interact with each other.
7 What is “THE MODEL?” Commonly referred to as the OSI reference model. The OSI modelis a theoretical blueprint that helps us understand how data gets from one user’s computer to another.It is also a model that helps develop standards so that all of our hardware and software talks nicely to each other.It aids standardization of networking technologies by providing an organized structure for hardware and software developers to follow, to insure there products are compatible with current and future technologies.
8 7 Layer OSI Model Why use a reference model? Serves as an outline of rules for how protocols can be used to allow communication between computers.Each layer has its own function and provides support to other layers.Other reference models are in use.Most well known is the TCP/IP reference model.We will compare OSI and TCP/IP modelsAs computing requirements increased, the network modeling had to evolve to meet ever increasing demands of larger networks and multiple venders.Problems and technology advances also added to the demands for changes in network modeling.
9 Evolution of the 7-Layers Single Layer Model - First Communication Between Computer DevicesDedicated copper wire or radio linkHardware & software inextricably intertwinedSingle specification for all aspects of communicationHardware&Software1DEVICE ADEVICE B
10 Evolution of the 7-Layers (1) ApplicationTechnicalStandardsTwo Layer ModelProblem: Applications were being developed to run over ever-increasing number of media/signaling systems.Solution: Separate application aspects from technical (signaling and routing) aspectsApplication Layer: Concerned with user interface, file access and file transfer1
11 Evolution of the 7-Layers (3) NetworkPhysicalData-LinkApplicationFour Layer Model - Network connectivity inherently requires travel over intermediate devices (nodes)Technical Standards Level divided into Network, Data-link and Physical Layers1
12 Evolution of the 7-Layers (3) cont. Physical LayerDescribes physical aspects of network: cards, wires, etcSpecifies interconnect topologies and devicesNetwork LayerDefines a standard method for operating between nodesAddress scheme is defined (IP)Accounts for varying topologiesData-LinkWorks with Network Layer to translate logical addresses (IP) into hardware addresses (MAC) for transmissionDefines a single link protocol for transfer between two nodes
13 Evolution of the 7-Layers (4) TransportApplicationNetworkPhysicalData-LinkFive Layer Model – Increase Quality of Service (QOS)Variable levels of data integrity in networkAdditional data exchanges to ensure connectivity over worst conditionsBecame the Transport Layer1
14 Evolution of the 7-Layers (5) TransportNetworkPhysicalData-LinkSessionApplicationSix Layer Model - Dialogue Control and Dialogue SeparationMeans of synchronizing transfer of data packetsAllows for checkpointing to see if data arrives (at nodes and end stations)Became Session Layer1
15 Evolution of the 7-Layers (6) PresentationTransportNetworkPhysicalData-LinkSessionApplicationThe Seven Layer OSI Model - Addition of Management and SecurityStandardizing notation or syntax for application messages (abstract syntax)Set of encoding rules (transfer syntax)Became the Presentation Layer1
19 Session Layer 3 Allows applications to maintain an ongoing session Where is it on my computer?Workstation and Server Service (MS)Windows Client for NetWare (NetWare)3
20 Transport Layer 3 Provides reliable data delivery It’s the TCP in TCP/IPReceives info from upper layers and segments it into packetsCan provide error detection and correction3
21 Figure 2.9 Transport layer The transport layer is responsible for the delivery of a message from one process to another.
22 Network LayerProvides network-wide addressing and a mechanism to move packets between networks (routing)Responsibilities:Network addressingRoutingExample:IP from TCP/IP3
23 Network layerThe network layer is responsible for the delivery of individual packets from the source host to the destination host.
24 Network Addresses Network-wide addresses Used to transfer data across subnetsUsed by routers for packet forwardingExample:IP AddressWhere is it on my computer?TCP/IP Software
25 Data Link LayerPlaces data and retrieves it from the physical layer and provides error detection capabilities3
26 Data link layerThe data link layer is responsible for moving frames from one hop (node) to the next.
27 Sub-layers of the Data Link Layer MAC (Media Access Control)Gives data to the NICControls access to the media through:CSMA/CD Carrier Sense Multiple Access/Collision DetectionToken passingLLC (Logical Link Layer)Manages the data link interface (or Service Access Points (SAPs))Can detect some transmission errors using a Cyclic Redundancy Check (CRC). If the packet is bad the LLC will request the sender to resend that particular packet.
28 Physical Layer Determines the specs for all physical components CablingInterconnect methods (topology / devices)Data encoding (bits to waves)Electrical propertiesExamples:Ethernet (IEEE 802.3)Token Ring (IEEE 802.5)Wireless (IEEE b)3
29 Physical layerThe physical layer is responsible for the movement of individual bits from one hop (node) to the next.
30 Physical Layer (cont’d) What are the Physical Layer components on my computer?NICNetwork Interface CardHas a unique 12 character Hexadecimal number permanently burned into it at the manufacturer.The number is the MAC Address/Physical address of a computerCablingTwister PairFiber OpticCoax Cable
31 How Does It All Work Together Each layer contains a Protocol Data Unit (PDU)PDU’s are used for peer-to-peer contact between corresponding layers.Data is handled by the top three layers, then Segmented by the Transport layer.The Network layer places it into packets and the Data Link frames the packets for transmission.Physical layer converts it to bits and sends it out over the media.The receiving computer reverses the process using the information contained in the PDU.2
33 Data Encapsulation In TCP/IP At each layer in the TCP/IP protocol stackOutgoing data is packaged and identified for delivery to the layer underneathPDU – Packet Data Unit – the “envelop” information attached to a packet at a particular TCP/IP protocole.g. header and trailerHeaderPDU’s own particular opening componentIdentifies the protocol in use, the sender and intended recipientTrailer (or packet trailer)Provides data integrity checks for the payload
38 The Postal AnalogyHow would the OSI compare to the regular Post OfficePresentationTransportNetworkPhysicalData-LinkSessionApplicationA- Write a 20 page letter to a foreign country.P- Translate the letter so the receiver can read it.S- Insure the intended recipient can receive letter.T- Separate and number pages. Like registered mail, tracks delivery and requests another package if one is “lost” or “damaged” in the mail.N- Postal Center sorting letters by zip code to route them closer to destination.D- Local Post Office determining which vehicles to deliver letters.P- Physical Trucks, Planes, Rail, autos, etc which carry letter between stations.
39 Remembering the 7 Layers 7 - Application All6 - Presentation People5 - Session Seem4 - Transport To3 - Network Need2 - Data Link Data1 - Physical Processing
40 TCP/IP model development The late-60s The Defense Advance Research Projects Agency (DARPA) originally developed Transmission Control Protocol/Internet Protocol (TCP/IP) to interconnect various defense department computer networks.The Internet, an International Wide Area Network, uses TCP/IP to connect networks across the world.
41 4 layers of the TCP/IP model Layer 4: ApplicationLayer 3: TransportLayer 2: InternetLayer 1: Network accessIt is important to note that some of the layers in the TCP/IP model have the same name as layers in the OSI model.Do not confuse the layers of the two models.
42 The network access layer Concerned with all of the issues that an IP packet requires to actually make the physical link. All the details in the OSI physical and data link layers.Electrical, mechanical, procedural and functional specifications.Data rate, Distances, Physical connector.Frames, physical addressing.Synchronization, flow control, error control.
43 The internet layerSend source packets from any network on the internetwork and have them arrive at the destination independent of the path and networks they took to get there.Packets, Logical addressing.Internet Protocol (IP).Route , routing table, routing protocol.
44 The transport layerThe transport layer deals with the quality-of-service issues of reliability, flow control, and error correction.Segments, data stream, datagram.Connection oriented and connectionless.Transmission control protocol (TCP).User datagram protocol (UDP).End-to-end flow control.Error detection and recovery.
45 TCP/IP Reference Model (cont) 3. Transport layer (layer 3)Allows end-to-end communicationConnection establishment, error control, flow controlTwo main protocols at this levelTransmission control protocol (TCP),Connection orientedConnection established before sending dataReliableuser datagram protocol (UDP)ConnectionlessSending data without establishing connectionFast but unreliable
46 The application layerHandles high-level protocols, issues of representation, encoding, and dialog control. The TCP/IP combines all application-related issues into one layer, and assures this data is properly packaged for the next layer.FTP, HTTP, SMNP, DNS ...Format of data, data structure, encode …Dialog control, session management …
48 TCP/IP Reference Model LayerProtocolsApplicationHTTPTELNETFTPSMTPSNMPTransportTCPUDPInternetIPICMPNetwork Access (Host-to-network)ETHERNETPACKET RADIO
49 Protocols at the application layer HTTP:browser and web server communicatinFTP :file transfer protocolTELNET:remote login protocolPOP3: RetrievePOP3 is designed to delete mail on the server as soon as the user has downloaded itIMAP (Internet Message Access Protocol )Retrieve s,retaining on the server and for organizing it in folders on the serve
50 Protocols at the transport layer Transmission control protocol (TCP),Connection orientedConnection established before sending dataReliableuser datagram protocol (UDP)ConnectionlessSending data without establishing connectionFast but unreliable
51 Protocol at the network layer IPPath selection ,routing and addressingICMP (Internet Control Message Protocol )sends error messages relying on IPa requested service is not availablea host or router could not be reached
52 Protocols at the link layer EthernetUses CSMA/CDToken Ring
53 Data Formats Application data data data data data data message layertransportlayerTCPheaderdataTCPheaderdataTCPheaderdatasegmentnetworklayerIPheaderTCPheaderdatapacketdata linklayerEthernetheaderIPheaderTCPheaderdataEthernettrailerframe
54 Packet Encapsulation (TCP/IP) The data is sent down the protocol stackEach layer adds to the data by prepending headers22Bytes20Bytes20Bytes4Bytes64 to 1500 Bytes
55 Comparing TCP/IP with OSI OSI ModelTCP/IP HierarchyProtocols7thApplication Layer6thPresentation Layer5thSession Layer4thTransport Layer3rdNetwork Layer2ndLink Layer1stPhysical LayerLink Layer : includes device driver and network interface cardNetwork Layer : handles the movement of packets, i.e. RoutingTransport Layer : provides a reliable flow of data between two hostsApplication Layer : handles the details of the particular application
56 How the OSI and TCP/IP Models Relate in a Networking Environment
57 Internet applications TCP/IP takes care of the hard problemsLocation of the destination hostMaking sure the data is received in the correct order and error freeCoding Internet applicationsTurns out to be straightforward.The key concept of Internet programming isThe client-server model
58 Client-Server modelClient and server processes operate on machines which are able to communicate through a network:The Server waits for requests from clientWhen a request is receivedThe server lookup for the requested dataAnd send a response the clientSockets and portsA socket is and end-point of way communication link between two programsA port number bound to a socket specifies the protocol need the be used at the receiving endExample of serversFile serversWeb serversExample of client applicationsBrowsersclients
59 What is a socket? An interface between application and network. Create a socketSocket(Protocolfamily, type-of-communicatio, specific- protocol);The application creates a socketThe socket type dictates the style of communicationreliable vs. best effortconnection-oriented vs. connectionless
60 Ports Each host has 65,536 ports 20,21: FTP23: Telnet80: HTTPA socket provides an interface to send data to/from the network through a port
61 ProtocolsFor a great graphic of protocol stacks in relationship to the OSI model, visitFor more information on the OSI model, including an animated graphic and various protocol information, visit
62 Reading, Charles C. Botsford, 2001.https://cisconetacad.net, Cisco Academy Connection Editors, 2002.William L. Whipple & Sharla Riead, 1997.Lexicon Computing, Dallas TX, 2002