Chapter 2 Application Layer. Lecture 4: principles of network applications. Computer Networking: A Top Down Approach

Similar documents
CS 3516: Advanced Computer Networks

Introduction to the Application Layer. Computer Networks Term B14

Chapter 2 Application Layer

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 4

Chapter 2: Application Layer. Chapter 2 Application Layer. Some network apps. Application architectures. Chapter 2: Application layer

Chapter 2. Application Layer. Chapter 2: Application Layer. Application layer - Overview. Some network apps. Creating a network appication

Goal and A sample Network App

Protocol Layers, Security Sec: Application Layer: Sec 2.1 Prof Lina Battestilli Fall 2017

EECS 3214: Computer Network Protocols and Applications

DATA COMMUNICATOIN NETWORKING

Review of Previous Lecture

CSC 4900 Computer Networks: End-to-End Design

CMSC 322 Computer Networks Applications and End-To- End

CS 3516: Advanced Computer Networks

Chapter 2 Application Layer

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

Chapter 2: Application layer

CSC358 Week 2. Adapted from slides by J.F. Kurose and K. W. Ross. All material copyright J.F Kurose and K.W. Ross, All Rights Reserved

Application Layer: HTTP

Chapter II: Application Layer

Lecture 04: Application Layer (Part 01) Principles and the World Wide Web (HTTP) Dr. Anis Koubaa

Client/Server Computing

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

Lecture 11. Transport Layer (cont d) Transport Layer 1

Chapter 2 Application Layer

1. What is a Computer Network? interconnected collection of autonomous computers connected by a communication technology

Chapter 1 Introduction

Foundations of Telematics

Chapter 1 Introduction

Client/Server Computing & Socket Programming

Chapter 2 Application Layer

Chapter 2 Application Layer

ECE 4450:427/527 - Computer Networks Spring 2017

Computer Networks and Applications

SCS3004 Networking Technologies Application Layer Protocols

Networking. Layered Model. DoD Model. Application Layer. ISO/OSI Model

Client/Server Computing & Socket Programming

Chapter 2 Application Layer

Layered Model. DoD Model. ISO/OSI Model

Module 2 Overview of Computer Networks

Module 2 Overview of. Computer Networks

Transport layer Internet layer

COSC4377. Chapter 1: Roadmap

Chapter 2: Application Layer. Chapter 2: application layer. outline. Some network apps. Client-server architecture. Application architectures

NWEN 243. Networked Applications. Transport layer and application layer

Different Layers Lecture 21

Hybrid of client-server and P2P. Pure P2P Architecture. App-layer Protocols. Communicating Processes. Transport Service Requirements

CMSC 332 Computer Networking Web and FTP

Application Layer: The Web and HTTP Sec 2.2 Prof Lina Battestilli Fall 2017

CSC 4900 Computer Networks:

1-1. Switching Networks (Fall 2010) EE 586 Communication and. September Lecture 10

Network Applications Principles of Network Applications

Computer Networks. Wenzhong Li. Nanjing University

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

HyperText Transfer Protocol

CMPE 80N: Introduction to Networking and the Internet

Web, HTTP and Web Caching

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

PLEASE READ CAREFULLY BEFORE YOU START

Lecture 2 - Application Layer. Lecture 1 Review. Application Layer. Principles of network applications. Notes. Notes. Notes. Notes

Introduction to Computer Networking. Guy Leduc. Chapter 2 Application Layer. Chapter 2: outline

Chapter 2: outline. 2.1 principles of network applications. 2.6 P2P applications 2.7 socket programming with UDP and TCP

Application Layer Protocols

Chapter 3 Transport Layer

Application. Transport. Network. Link. Physical

Deliver packets from srce to all other nodes Source duplication is inefficient: creation/transmission. in-network duplication

Application Protocols and HTTP

PLEASE READ CAREFULLY BEFORE YOU START

PLEASE READ CAREFULLY BEFORE YOU START

Application Layer Protocols

The Transmission Control Protocol (TCP)

EECS 3214: Computer Network Protocols and Applications

13. Internet Applications 최양희서울대학교컴퓨터공학부

Chapter 2 Application Layer

Web Protocols and Practice

CS 640: Introduction to Computer Networks. Today s Lecture. Page 1

ENEE 457: Computer Systems Security 11/07/16. Lecture 18 Computer Networking Basics

CSC 401 Data and Computer Communications Networks

Chapter 2 Application Layer

Chapter 9. Multimedia Networking. Computer Networking: A Top Down Approach

Lecture 12. Application Layer. Application Layer 1

Chapter 7 Multimedia Networking

PLEASE READ CAREFULLY BEFORE YOU START

Chapter 7: Multimedia Networking

Review for Internet Introduction

Chapter 2: outline. 2.6 P2P applications 2.7 socket programming with UDP and TCP

Paper solution Subject: Computer Networks (TE Computer pattern) Marks : 30 Date: 5/2/2015

COSC4377. Chapter 1: Roadmap

Internet Architecture & Performance. What s the Internet: nuts and bolts view

Data Communication & Computer Networks MCQ S

Computer Networks. Dr. Abdel Ilah ALshbatat Dept. of Communication and Computer Engineering Faculty of Engineering Tafila Technical University

CSCD 330 Network Programming

Introduction to Computer Networking. Guy Leduc. Chapter 2 Application Layer. Chapter 2: outline

WWW: the http protocol

ECE697AA Lecture 2. Today s lecture

Application Layer Introduction; HTTP; FTP

Lecture Overview : Computer Networking. Applications and Application-Layer Protocols. Client-Server Paradigm

CS 43: Computer Networks. HTTP September 10, 2018

Network Communication

Computer Systems and Networks

Transcription:

Chapter 2 Application Layer Lecture 4: principles of network applications Computer Networking: A Top Down Approach 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012 Application Layer 2-1

Chapter 2: outline 2.1 principles of network applications app architectures app requirements 2.2 Web and HTTP 2.3 FTP 2.4 electronic mail SMTP, POP3, IMAP 2.5 DNS 2.6 P2P applications 2.7 socket programming with UDP and TCP Application Layer 2-2

HTTP connections non-persistent HTTP at most one object sent over TCP connection connection then closed downloading multiple objects required multiple connections persistent HTTP multiple objects can be sent over single TCP connection between client, server Application Layer 2-3

Non-persistent HTTP suppose user enters URL: www.clarkson.edu/cs/index.htm time 1a. HTTP client initiates TCP connection to HTTP server (process) at www.clarkson.edu on port 80 2. HTTP client sends HTTP request message (containing URL) into TCP connection socket. Message indicates that client wants object cs/index.htm (contains text, references to 10 jpeg images) 1b. HTTP server at host www.clarkson.edu waiting for TCP connection at port 80. accepts connection, notifying client 3. HTTP server receives request message, forms response message containing requested object, and sends message into its socket Application Layer 2-4

Non-persistent HTTP (cont.) 5. HTTP client receives response message containing html file, displays html. Parsing html file, finds 10 referenced jpeg objects 4. HTTP server closes TCP connection. time 6. Steps 1-5 repeated for each of 10 jpeg objects Application Layer 2-5

Non-persistent HTTP: response time RTT (Round Trip Time): time for a small packet to travel from client to server and back HTTP response time: one RTT to initiate TCP connection one RTT for HTTP request and first few bytes of HTTP response to return file transmission time non-persistent HTTP response time = 2RTT+ file transmission time initiate TCP connection RTT request file RTT file received time time time to transmit file Application Layer 2-6

Persistent HTTP non-persistent HTTP issues: requires 2 RTTs per object OS overhead for each TCP connection browsers often open parallel TCP connections to fetch referenced objects persistent HTTP: server leaves connection open after sending response subsequent HTTP messages between same client/server sent over open connection client sends requests as soon as it encounters a referenced object as little as one RTT for all the referenced objects Application Layer 2-7

Application architectures possible structure of applications: client-server peer-to-peer (P2P) Application Layer 2-8

Client-server architecture server: always-on host permanent IP address data centers for scaling client/server clients: communicate with server may be intermittently connected may have dynamic IP addresses do not communicate directly with each other Application Layer 2-9

P2P architecture no always-on server arbitrary end systems directly communicate peers request service from other peers, provide service in return to other peers self scalability new peers bring new service capacity, as well as new service demands peers are intermittently connected and change IP addresses complex management peer-peer Application Layer 2-10

Processes communicating process: program running within a host within same host, two processes communicate using inter-process communication (defined by OS) processes in different hosts communicate by exchanging messages clients, servers client process: process that initiates communication server process: process that waits to be contacted aside: applications with P2P architectures have client processes & server processes Application Layer 2-11

Sockets process sends/receives messages to/from its socket socket analogous to door sending process shoves message out door sending process relies on transport infrastructure on other side of door to deliver message to socket at receiving process application process socket application process controlled by app developer transport network link physical Internet transport network link physical controlled by OS Application Layer 2-12

Addressing processes to receive messages, process must have identifier host device has unique 32- bit IP address Q: does IP address of host on which process runs suffice for identifying the process? A: no, many processes can be running on same host identifier includes both IP address and port numbers associated with process on host. example port numbers: HTTP server: 80 mail server: 25 to send HTTP message to clarkson.edu web server: IP address: 128.153.5.187 port number: 80 more shortly Application Layer 2-13

App-layer protocol defines types of messages exchanged, e.g., request, response message syntax: what fields in messages & how fields are delineated message semantics meaning of information in fields rules for when and how processes send & respond to messages open protocols: defined in RFCs allows for interoperability e.g., HTTP, SMTP proprietary protocols: e.g., Skype Application Layer 2-14

What transport service does an app need? data integrity some apps (e.g., file transfer, web transactions) require 100% reliable data transfer other apps (e.g., audio) can tolerate some loss timing some apps (e.g., Internet telephony, interactive games) require low delay to be effective throughput some apps (e.g., multimedia) require minimum amount of throughput to be effective other apps ( elastic apps ) make use of whatever throughput they get security encryption, data integrity, Application Layer 2-15

Transport service requirements: common apps application data loss throughput time sensitive file transfer e-mail Web documents real-time audio/video stored audio/video interactive games text messaging no loss no loss no loss loss-tolerant loss-tolerant loss-tolerant no loss elastic elastic elastic audio: 5kbps-1Mbps video:10kbps-5mbps same as above few kbps up elastic no no no yes, 100 s msec yes, few secs yes, 100 s msec yes and no Application Layer 2-16

Internet transport protocols services TCP service: reliable transport between sending and receiving process flow control: sender won t overwhelm receiver congestion control: throttle sender when network overloaded does not provide: timing, minimum throughput guarantee, security connection-oriented: setup required between client and server processes UDP service: unreliable data transfer between sending and receiving process does not provide: reliability, flow control, congestion control, timing, throughput guarantee, security, orconnection setup, Q: why bother? Why is there a UDP? Application Layer 2-17

Internet apps: application, transport protocols application e-mail remote terminal access Web file transfer streaming multimedia Internet telephony application layer protocol SMTP [RFC 2821] Telnet [RFC 854] HTTP [RFC 2616] FTP [RFC 959] HTTP (e.g., YouTube), RTP [RFC 1889] SIP, RTP, proprietary (e.g., Skype) underlying transport protocol TCP TCP TCP TCP TCP or UDP TCP or UDP Application Layer 2-18

Securing TCP TCP & UDP no encryption cleartext passwds sent into socket traverse Internet in cleartext SSL provides encrypted TCP connection data integrity end-point authentication SSL is at app layer Apps use SSL libraries, which talk to TCP SSL socket API cleartext passwds sent into socket traverse Internet encrypted See Chapter 7 Application Layer 2-19