Communication Networks

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

OSI and TCP/IP Models

Chapter 2 Layer Architecture of Network Protocols. School of Info. Sci. & Eng. Shandong Univ.

PROGRAMMING Kyriacou E. Frederick University Cyprus. Network communication examples

Introduction to CSE 3213

Reference Models. 7.3 A Comparison of the OSI and TCP/IP Reference Models

TCP/IP THE TCP/IP ARCHITECTURE

Computer Networks (Introduction to TCP/IP Protocols)

Computer Communication Networks

Need For Protocol Architecture

CS3600 SYSTEMS AND NETWORKS

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

Chapter 2 Network Architectures A global view

Networking Applications

Need For Protocol Architecture

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

Defining Networks with the OSI Model. Module 2

Subnetting and addresses revisited

Peer entities. Protocol Layering. Protocols. Example

Network Layers. Standardization Cruelty 2009/08/12. (C) Herbert Haas

Distributed Systems. 02. Networking. Paul Krzyzanowski. Rutgers University. Fall 2017

L6: OSI Reference Model

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

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

Chapter -4 OSI Reference Model

Computer Networking. Introduction. Quintin jean-noël Grenoble university

Applications and Layered Architectures. Chapter 2 Communication Networks Leon-Garcia, Widjaja

Network Architecture Models

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

03 The Internet Model and TCP/IP

Computer Network : Lecture Notes Nepal Engineering College Compiled by: Junior Professor: Daya Ram Budhathoki Nepal Engineering college, Changunarayan

CS4700/CS5700 Fundaments of Computer Networks

Computer Networks and reference models. 1. List of Problems (so far)

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

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

Operating Systems and. Computer Networks. Introduction to Computer Networks. Operating Systems and

Chapter 2 Network Models 2.1

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

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

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

Communicating over the Network

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

Data Communication & Computer Networks MCQ S

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

5105: BHARATHIDASAN ENGINEERING COLLEGE NATTARMPALLI UNIT I FUNDAMENTALS AND LINK LAYER PART A

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.

OSI Transport Layer. objectives

Topics for this Week

CPEG514 Advanced Computer Networks. Atef Abu Salim University of Nizwa Spring 2013/2014

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

SUBJECT: DATA COMMUNICATION AND NETWORK SEMESTER: V SEMESTER COURSE: BCA SUBJECT TEACHER: Dr.K.Chitra Assistant Professor, Department of Computer

Layered Architecture

Chapter 2 Applications and Layered Architectures

Raj Jain. The Ohio State University Columbus, OH

Introduction to computer networking

Architectures of Communication Subsystems

Switching Networks (Fall 2010) EE 586 Communication and. August 27, Lecture 2. (modified by Cheung for EE586; based on K&R original) 1-1

TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

The Client Server Model and Software Design

Lecture 3 Protocol Stacks and Layering

Chapter 12. Network Organization and Architecture. Chapter 12 Objectives Introduction Introduction

Transport Layer (TCP/UDP)

Verteilte Systeme (Distributed Systems)

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

Chapter 7. Local Area Network Communications Protocols

Network Layer (1) Networked Systems 3 Lecture 8

CS 520 Networking in the TCP/IP enviornment

Transport Layer. Chapter 3: Transport Layer

CS 428/528 Computer Networks Lecture 01. Yan Wang

Review of Important Networking Concepts

Data and Computer Communications

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

Chapter 2 Communicating Over the Network

Lecture-4. TCP/IP-Overview:

Network Model: Each layer has a specific function.

Networking and Internetworking 1

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

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

Cisco Cisco Certified Network Associate (CCNA)

1: Review Of Semester Provide an overview of encapsulation.

Data Communication and Network. Introducing Networks

CCNA Exploration1 Chapter 7: OSI Data Link Layer

Outline. Challenges of the Internet. The Internet. CS4233 Network Programming Introduction to TCP/IP

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

ITEC 3800 Data Communication and Network. Introducing Networks

Network Architecture

Different Layers Lecture 21

Communication System Models

APPENDIX F THE TCP/IP PROTOCOL ARCHITECTURE

Summary of Data Communications

Introduction to Networks

Lecture 2: Internet Architecture

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

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

CSEN 503 Introduction to Communication Networks. Mervat AbuElkheir Hana Medhat Ayman Dayf. ** Slides are attributed to J. F.

Packet Switching, Layer Models and Protocol Suites

TSIN02 - Internetworking

System Programming. Introduction to computer networks

NT1210 Introduction to Networking. Unit 10

Transcription:

Session 2. Application and Layered Architectures Dongsoo S. Kim Electrical and Computer Engineering. Indiana U. Purdue U. Indianapolis Communication s Various services and flexibility architectures Grouping a set of related function to a layer A set of protocols Advantage of layered architectures Simplification Flexibility Interface Monolithic vs. Interface Layered 2-2 1

Example of Protocol Interaction between two peer entities Server/Client Server a process waiting a request Listening a specific port in TCP/ Httpd (Apache ), telnetd, ftpd, Client a process making a request A request to server address and the port number Netscape, telnet, gftp, ws_ftp, A connection in a server/client model is a 5-tuple Protocol type, Source address, Destination address Source port number, destination port number 2-3 Example of Protocol, http (1) Server Client Listening on port 80 Request to 134.68.80.4:80 Connection established Send a result code HTTP/1.1 200 Waiting Connection established Send a request GET/index.html HTTP 1.0 Read and send the file <html> <head> Interpret and display the html Disconnect the connection 2-4 2

Example of Protocol, http (2) Need a connection-oriented service & a reliable underlying layer Interface HTTP Server Protocol HTTP Client Interface 80 #n TCP Protocol TCP 2-5 Other Examples DNS (Domain Name System) Convert an name to an address, or vice versa netlab.ece.iupui.edu 134.68.80.4 UDP/ - Connectionless SMTP (Simple Mail Transfer Protocol) TCP connection to local SMTP server Work as if connectionless for forwarding the message to remote SMTP server 2-6 3

OSI Reference Model International Organization for Standardization / Open System Interconnection (IOS/OSI) Reference model, but not a real implementation A process on one machine at layer n Communicates with a peer process on the other machine By exchanging PDU (Protocol Data Unit) PDU contains a header and a payload called SDU (Service Data Unit) Header control information Payload do not care Layer n protocol - A set of rules governing the behavior of the layer n Terminal A Layer n Entity n-pdu n-sdu H Terminal B Layer n Entity H n-sdu n-pdu 2-7 Interface and Service Communication between two peer processes is not physical The layer n+1 uses the services provided by layer n through layer n interface, called SAP (Service Access Point). Terminal A n-sap layer n+1 (n+1)-pdu (n+1)-pdu layer n+1 Terminal B n-sap layer n n-sdu H H n-sdu n-pdu layer n 2-8 4

Segmentation and Reassembly Maximum PDU size of Ethernet is 1500 bytes How can we send information larger than the maximum thru Ethernet? Segmentation The layer n in a terminal can segment its payload into small pieces Reassembly The layer n in the other terminal put together the small pieces in a payload. (n+1)-pdu Host A Host B (n+1)-pdu n-sdu H n-sdu H n-sdu H n-sdu H n-sdu H n-sdu H 2-9 ISO/OSI Reference Model International Standard Organization / Open Systems Interconnection 7 Layers Principles A layer should be created where a different level of abstraction is needed. Each layer should perform a well defined function. The function of each layer should be chosen with an eye toward defining internationally standardized protocols. The layer boundaries should be chosen to minimize the information flow across the interfaces. The number of layers should be large enough that distinct function need not be thrown together in the same layer out of necessity. The number of layers should be small enough that the architecture does not become unwieldy. 2-10 5

OSI 7 Layer Reference Model Layer 7 Application Application Protocol Application Layer 6 Presentation Presentation Protocol Presentation Layer 5 Session Session Protocol Session Layer 4 Transport Transport Protocol Communication network boundary Transport Layer 3 Layer 2 Data Link Data Link Data Link Data Link Layer 1 Physical Physical Physical Physical layer host-router protocol Data link layer host-router protocol Physical layer host-router protocol 2-11 The Physical Layer Deal with the transfer of raw bits over communication channel Electrical aspects Voltage level Signal duration Mechanical aspects Socket type Number of pines Examples Twisted copper wire telephone wire, 10/100BaseT, Coaxial cable CATV, 10Base2, 10Base5, Radio cellular phone, 802.11, LMDS, Optical fiber WDM, DWDM, 2-12 6

The Data Link Layer Deal with the transfer of frames Framing information Boundary of the frame attaching special bit patterns to the beginning and end of the frame Control and address information Check bit for recovering from transmission errors acknowledge frames handle with damaged, lost, and duplicate frames Flow controls prevent a fast transmitter from drowning a slow receiver in Broadcast networks control access to the shared channel LAN Sub-layer: Medium Access Control layer (MAC) One-to-one communication over broadcast medium Examples HDLC High-level Data Link Control PPP Point-to-Point Protocol SONET Synchronous Optical 2-13 The Layer Transfer of (packet) over networks Routing Select a path from the source to the destination thru many intermediate network components as switches and routers. Static routing vs. dynamic routing Deal with congestion temporary traffic surges in a network components forming bottlenecks Differentiation of packet types Heterogeneous Different address scheme Maximum Transfer Unit (MTU) Political routing Inter-office emails between Microsoft branches shouldn t pass through Netscape s routers. Billing 2-14 7

The Transport Layer Responsible for the end-to-end transfer of message Segmentation and reassembly Error-free transfer Error detection and recovery Sequencing Flow control Establishing and releasing connections Multiple connections for high throughputs Multiplexing a connection among many session layers for reducing the cost Type of Services Connection-oriented services error-free point-to-point channel Connectionless services no guarantee on the correct delivery of the message Example Unix socket interface 2-15 The Session Layer Enhance a reliable transfer service Control how is exchanged manage dialogue control full duplex half duplex Examples Log in to a remote system Transfer a file between two machine Token management both side do not attempt the same operation at the same time. Synchronization Two-hour file transfer with one-hour mean time crashes The whole transfer would start over again Insert checkpoints into the stream After a crash, continue after the last checkpoint 2-16 8

The Presentation Layer Concern with the syntax and sematic of the information Overcome the difference in representation Resolve machine-dependencies Character code ASCII, EBCDIC, Unicode, Big endian or little endian 32-bit word like an integers SUN Sparc, MS Intel x86, Dec Alpha 4 3 2 1 1 2 3 4 The POWER Processor can be configured as either big endian or little endian 2-17 The Application Layer To provide network services Example HTTP web browsing application FTP File transfer between two different systems different file name convention different ways of representing text lines SMTP Electronic mail Virtual terminals vt100, TN 3270, xterm 2-18 9

Data Transmission in OSI Model sending process receivng process Application AH Application Presentation PH Presentation Session SH Session Transport TH Transport NH Data Link DT DH Data Link Physical Bits Physical actual transmission path 2-19 TCP/ Architecture History Successor of ARPANET (Defense Advanced Research Project Agency) Principles Robustness If failures occurs in the network, the packets are routed around the failure point. Multiple paths and globally unique address. Flexibility No Data link layer or physical layer defined Packet switching networks Best-effort connectionless in the layer I will do my best to transfer your, though I cannot guarantee their quality and delivery packets are exchanged between routers without a connection setup. Two services in the Transport layer TCP reliable connection-oriented transfer UDP unreliable connectionless transfer Applications remote login, e-mail, file transfer, network management 2-20 10

OSI Model vs. TCP/ OSI Application Presentation Session Transport Data Link Physical TCP/ Application TCP,UDP Interface Layer Not present in the model 2-21 Protocols and s in TCP/ TELNET FTP SMTP DNS RTP Application TCP UDP Transport ICMP ARP X.25 ATM FR ETHER Interface 2-22 11

TCP/ Protocol Each host (C) is assigned by a globally unique address (32-bit) address = network address + host address A net mask is used to calculate them Each host (C) is also assigned by a machine address, or a physical address Meaningful in one network by router Ethernet uses 6-octect (48-bit). ATM uses 16-octect. Router consists of two or more network interfaces app TCP router app TCP 2-23 TCP/ in a (1,2) (1,3) 1,2 1,3 1,2 1,3 3487 3487 6537 6537 2-24 12

TCP/ thru a Router Host A Router Host B (1,2) (1,1) (2,3) (2,5) 1,2 2,5 1,2 2,5 1,2 2,5 3487 6543 1002 3903 3487 6543 1002 3903 2-25 TCP/ in a System Data Source Port #, Destin Port # TCP Header TCP Payload Source addr, Destin addr, Protocol type Header Payload Source PH addr, Destin PH addr, protocol type Ethernet Header Ethernet Payload Ethernet Tail 2-26 13

Server in TCP/ A process waiting a packet on a specific port number Duplicate a connection after establishing Connection? 5 tuple (PT, SA, SP, DA, DP) protocol type, source address, source port, destin address, destin port. A server waits on (pt, sa, sp, any -DA, any -DP) Upon a request from the client, any -DA and any -DP are filled with specific value. Server Port Number 0 to 1023 are reserved to well-known services. Protocol FTP telnet SMTP DNS HTTP Reserved Port # 21 23 25 53 80 Comments File Transfer remote login E-mail Domain name system World Wide Web 2-27 Berkeley Socket API interface available to programmer socket(), bind(), listen(), accept(), connect(), sendto(), recvfrom(), htonl(), htons(), ntohl(), ntohs() Utility function - gethostbyname(), gethostbyaddr() Support multiple communication protocols Internet Domain Unix Domain Xerox NS Domain (XNS) ATM Domain (Recent progress in several implementation) References Richard Stevens, Unix Programming 2-28 14