OSI and TCP/IP Models

Similar documents
Introduction to CSE 3213

SC/CSE 3213 Winter Sebastian Magierowski York University CSE 3213, W13 L8: TCP/IP. Outline. Forwarding over network and data link layers

Communicating over the Network

PROGRAMMING Kyriacou E. Frederick University Cyprus. Network communication examples

Layering in Networked computing. OSI Model TCP/IP Model Protocols at each layer

Communication Networks

ก ก Information Technology II

User Datagram Protocol(UDP)

BABU MADHAV INSTITUTE OF INFORMATION TECHNOLOGY, UTU 2017

Chapter 16 Networking

Interconnecting Networks with TCP/IP. 2000, Cisco Systems, Inc. 8-1

Lab - Using Wireshark to Examine a UDP DNS Capture

Lab - Using Wireshark to Examine a UDP DNS Capture

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

Outline. Inter-Process Communication. IPC across machines: Problems. CSCI 4061 Introduction to Operating Systems

Communication Networks - 3 general areas: data communications, networking, protocols

Defining Networks with the OSI Model. Module 2

Computer Communication & Networks / Data Communication & Computer Networks Week # 03

Operating Systems CS 571

Data Communication & Computer Networks MCQ S

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

System Programming. Introduction to computer networks

Lecture-4. TCP/IP-Overview:

Chapter 2 Network Models 2.1

Chapter 7. Local Area Network Communications Protocols

Networking Background

Review of Important Networking Concepts

Time : 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups are directed. Group A.

Chapter 2 Network Architectures A global view

QUESTION BANK UNIT-I

OSI Model. Teran Subasinghe MBCS, Bsc.(Hons) in Computer Science - University of Greenwich, UK

Computer Networks. More on Standards & Protocols Quality of Service. Week 10. College of Information Science and Engineering Ritsumeikan University

Network.... communication system for connecting end- systems. End-systems a.k.a. hosts PCs, workstations dedicated computers network components

CS1302-COMPUTER NETWORKS UNIT I -DATA COMMUNICATION PART A

OSI Reference Model. Computer Networks lab ECOM Prepared By : Eng. Motaz Murtaja Eng. Ola Abd Elatief

DATA COMMUNICATION AND NETWORKS

Networking and TCP/IP. John Kalbach November 8, 2004

ECE 333: Introduction to Communication Networks Fall 2002

NetWare Protocols. Background CHAPTER

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Internet. 1) Internet basic technology (overview) 3) Quality of Service (QoS) aspects

ECE4110 Internetwork Programming. Introduction and Overview

The OSI Model. Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO).

Interconnecting Networks with TCP/IP

Operating Systems. 16. Networking. Paul Krzyzanowski. Rutgers University. Spring /6/ Paul Krzyzanowski

KINGS COLLEGE OF ENGINEERING

E&CE 358: Tutorial 1. Instructor: Sherman (Xuemin) Shen TA: Miao Wang

Communication Networks

CSCD 330 Network Programming

Chapter 2 Network Models 2.1

precise rules that govern communication between two parties TCP/IP: the basic Internet protocols IP: Internet protocol (bottom level)

03 The Internet Model and TCP/IP

CS3600 SYSTEMS AND NETWORKS

Overview of Ethernet Networking

COMS Introduction to Computers. Networking

Networking. Networking and Communication Trends Convergence (Accessibility) Speed Stability Simplicity* Embeddedness

Introduction to computer networking

QUESTION BANK EVEN SEMESTER

Network Reference Models

CHAPTER -1. Introduction to Computer Networks

Data Transport over IP Networks

Network Architecture Models

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

Summary of Data Communications

Computer Networks. General Course Information. Addressing and Routing. Computer Networks 9/8/2009. Basic Building Blocks for Computer Networks

CS-461 Internetworking. Dr. Mohamed Aboutabl

Chapter 11: Wide-Area Networks and the Internet

Typical Network Uses

NetWare Protocols. Background. Technology Basics CHAPTER

Lecture #9 Introduction to communication networks

Data Communication and Network. Introducing Networks

CPS221 Lecture: Layered Network Architecture

Networking Applications

Lecture Outline. Lecture 2. OSI model and networking. The OSI model and networking. The OSI model and networking. The OSI model and networking

Solved MCQ of Computer networking. Set-1

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

Guide to Networking Essentials, 6 th Edition. Chapter 6: Network Reference Models and Standards

CS 43: Computer Networks The Link Layer. Kevin Webb Swarthmore College November 28, 2017

TCP/IP and the OSI Model

CN1047 INTRODUCTION TO COMPUTER NETWORKING CHAPTER 6 OSI MODEL TRANSPORT LAYER

ROYAL INSTITUTE OF INFORMATION & MANAGEMENT

OSI Transport Layer. objectives

Introduction to Information Science and Technology 2017 Networking II. Sören Schwertfeger 师泽仁

Copyleft 2005, Binnur Kurt. Objectives

COMP750. Distributed Systems. Network Overview

TCP/IP THE TCP/IP ARCHITECTURE

ECE 333: Introduction to Communication Networks Fall 2001

TCOM 370 NOTES 99-1 NETWORKING AND COMMUNICATIONS

IT 4504 Section 4.0. Network Architectures. 2008, University of Colombo School of Computing 1

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Lecture 10 Internet. ECE 197SA Systems Appreciation. Internet

ITEC 3800 Data Communication and Network. Introducing Networks

APPENDIX F THE TCP/IP PROTOCOL ARCHITECTURE

CS 4390 Computer Networks. Transport Services and Protocols

Overview of TCP/IP Overview of TCP/IP protocol: TCP/IP architectural models TCP protocol layers.

Raj Jain. The Ohio State University Columbus, OH

Transcription:

EECS 3214 Department of Electrical Engineering & Computer Science York University 18-01-08 12:12 1 OSI and / Models 2 1

/ Encapsula5on (Packet) (Frame) 3 / Model and Example Protocols A list of protocols used in /: Application DNS FTP SMTP HTTP Transport UDP Internet Network Access Physical ARPANET SATNET Packet Radio 4 2

/ Protocols 5 / Addressing Port (or SAP) numbers of processes at source and destination addresses of source and destination Network interface card (NIC) addresses defined by the NIC Port number address NIC address 6 3

Addresses Each host in the Internet is identified by a globally unique address The address identifies the host s network interface rather than the host itself (usually the host is identified by its physical address within a network). An address consists of two parts: network ID and host ID (more on formats of addresses later). : a node that is attached to two or more physical networks. Each network interface has its own address. 7 Physical Addresses On a physical network, the attachment of a device to the network is often identified by a physical address. The format of the physical address depends on the particular type of network. Example: Ethernet s use 48- bit addresses. Ethernet: protocol for bus s, originally designed by Xerox, later developed into IEEE 802.3 standard. Every machine in a comes with a NIC that is assigned a physical address. 8 4

Physical Addresses (cont.) s (and other networks) assign physical addresses to the physical attachment to the network. The network uses its own address to transfer packets or frames to the appropriate destination. address needs to be resolved to physical address at each network interface. Example: Ethernet uses 48- bit addresses Each Ethernet network interface card (NIC) has globally unique Medium Access Control (MAC) or physical address First 24 bits identify NIC manufacturer; second 24 bits are serial number 00:90:27:96:68:07 12 hex numbers Intel 9 Network Interface Cards (NICs) NICs are adapters installed in a computer that provide the connection point to a network. Each NIC is designed for a specific type of (e.g., Ethernet, token ring, FDDI). A NIC provides an attachment point for a specific type of cable, such as coaxial cable, twisted- pair cable, or fiber- optic cable. Every NIC has a globally unique identifying node address (globally unique physical address). Ethernet card addresses are hardwired on the card. The IEEE (Institute of Electrical and Electronic Engineers) is in charge of assigning addresses to Ethernet cards. Each manufacturer is given a unique code and a block of addresses. 10 5

Example: HTTP and Web Browsing (1,1), s Server (1,2), w Workstation (1,3), r Infrastructure: 1. A comprising of a server and a workstation is connected via a router to a PC. The connection between the router and PC is a point-to-point () connection. 2. Each machine on the typically have two addresses: An address known globally An Ethernet address determined by its network interface card (NIC) 3. The router has as many addresses as the number of networks connected to it. Server Work station PC (1,1) (1,2) (1,3) (2,2) Ethernet s w r r (2,2) PC Example: HTTP and Web Browsing (2) Protocols: used for an HTTP request made by PC to server (1,1), s Server Server / workstation HTTP PC HTTP (1,2), w Workstation (1,3), r Interface Interface Ethernet Interface (2,2) PC 6

Example: HTTP and Web Browsing (3) Instruction: http://www.tesla.comm.utoronto.ca/infocomm/index.html Hypertext transfer protocol: Specifies rules by which client / server interact. Uniform Resource locator (URL) of the server: 1st part typically translated to an address by Domain Name Server (DNS), 2 nd part specifies document q q q HTTP is only concerned with the interaction of the client with the server, not with the actual setting up of connection. A connection is first set up between the client and the server. For connection-oriented services, this implies setting up of a physical connection. HTTP requires the service of to provide a reliable service between the two machines. itself requires the service of and so on. This leads to a layered approach. HTTP (application) (Transport) (Internet) Example: HTTP and Web Browsing (4) (1,1), s Server Task: Transfer of an HTML request from PC to Server 1. For simplicity, assume a connection is established between the server and PC (more on connections later). 2. HTTP request is passed on to the layer of PC that creates a segment containing server port number (SP#) and client port number (CP#) (1,2), w Workstation. SP# CP# HTTP request (1,3), r (2,2) PC Header 3. segment is passed to layer that creates an datagram where protocol field (PF) shows that upper layer has asked for the information. datagram is passed on to interface layer.. (1,1) (2,2) Header PF segment 7

Example: HTTP and Web Browsing (5) 4. Interface layer encapsulates the datagram into a frame, and sends the frame to the router. (1,1), s Server (1,2), w Workstation (1,3), r datagram 5. The datagram is extracted by the interface layer of the router and passed on to the Internet layer. The Internet layer extracts the destination address (1,1) and checks the routing table for a match. 6. Since a match exists, the Interface layer prepares an Ethernet frame encapsulating the datagram plus the Ethernet addresses in the, and broadcasts the Ethernet frame on the. C Checksum. s r datagram C (2,2) PC Header Checksum Example: HTTP and Web Browsing (6) (1,1), s Server 4. Interface layer of the Server compares the Ethernet address with the address on its network interface card (NIC). The address matches so the Ethernet frame is accepted. 5. A Checksum is performed to check for errors. In case of no errors, the datagram is extracted and passed on to the Internet layer. (1,2), w Workstation. (1,1) (2,2) PF segment (1,3), r (2,2) PC Header 6. The Internet layer maps the address and sees that the datagram is meant for it. It extracts the segment and passes it on to the layer. SP# CP# HTTP request Header 8

Example: HTTP and Web Browsing (7) (1,1), s Server (1,2), w Workstation (1,3), r 7. HTTP request is extracted by layer and passed on to specified port number. 8. Recall that the protocol used by the Transport layer is, which is a reliable connection-oriented protocol. An acknowledgment is therefore sent to the PC in exactly the same manner as the request was received. q The Application layer retrieves the HTML document and transmits it to the PC following steps (1-8) in reverse order. (2,2) PC How the layers work together (a) Server (1,1) s Ethernet (b) Server HTTP PC (1,3) r (2,2) HTTP uses process-to-process Reliable byte stream transfer of connection: Server socket: ( Address, 80) PC socket ( Address, Eph. #) uses node-to-node Unreliable packet transfer of Server address & PC address PC HTTP Network interface Network interface Internet Network interface Ethernet 18 9

Encapsulation Header contains source & destination port numbers HTTP Request Header contains source and destination addresses; transport protocol type HTTP Request Ethernet Header contains source & destination MAC addresses; network protocol type HTTP Request Ethernet HTTP Request FCS 19 Summary Encapsulation is key to layering provides for transfer of packets across diverse networks and UDP provide universal communications services across the Internet Distributed applications that use and UDP can operate over the entire Internet Internet names, addresses, port numbers, sockets, connections, physical addresses 20 10

Summary of / Model 21 Connec5on- oriented vs. Connec5onless Communica5ons Connectionless: Does not requires a session connection be established before sending data Sender simply starts sending packets (datagrams) to the receiver Different packets may take different routes Data packets may arrive out- of- order. Less reliable than connection- oriented services, but more efficient for data communications 22 11

Examples of Connec5on- oriented and Connec5onless Communica5ons Internet: One big connectionless packet switching network in which all packet deliveries are handled by (unreliable) adds connection- oriented services on top of (for reliable delivery) UDP provides connectionless services on top of ATM: connection- oriented packet switching networks s: Connectionless systems can be used to provide connection- oriented (reliable) services Reference: www.linktionary.com/c/connections.html 23 References Data and Computer Communications by William Stallings, section The / Protocol Architecture of chapter 2. The example HTTP and Web Browsing is from the textbook by A. Leon- Garcia and I. Widjaja, section Overview of / Architecture of chapter 2. 24 12