Review for Internet Introduction

Similar documents
Electronic Mail. Three Components: SMTP SMTP. SMTP mail server. 1. User Agents. 2. Mail Servers. 3. SMTP protocol

Introduction to computer networking

Lecture 12. Application Layer. Application Layer 1

CSEN 404 Introduction to Networks. Mervat AbuElkheir Mohamed Abdelrazik. ** Slides are attributed to J. F. Kurose

Chapter 1. Computer Networks and the Internet

Different Layers Lecture 21

Chapter 1 Introduction

CSEE 4119 Computer Networks. Chapter 1 Introduction (4/4) Introduction 1-1

The Application Layer: Sockets, DNS

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

CSEN 503 Introduction to Communication Networks

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

Network Applications Principles of Network Applications

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

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

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

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

Chapter 2 Application Layer

Computer Networking Introduction

Application Layer: HTTP

COMP 562: Advanced Topics in Networking

CC451 Computer Networks

Layered Model. DoD Model. ISO/OSI Model

Review of Previous Lecture

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

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

Computer Networks. Wenzhong Li. Nanjing University

Chapter 1 Introduction

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

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

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? Hardware view: What s the Internet?

CSC 4900 Computer Networks:

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

CS 204: Advanced Computer Networks

Application Layer. Pure P2P architecture. Client-server architecture. Processes communicating. Hybrid of client-server and P2P. Creating a network app

Chapter 2: Application layer

end systems, access networks, links circuit switching, packet switching, network structure

Chapter 2 Application Layer

PLEASE READ CAREFULLY BEFORE YOU START

Computer Communication Networks Midterm Review

end systems, access networks, links 1.3 network core

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

Computer Networking Introduction

CS4/MSc Computer Networking. Lecture 3: The Application Layer

Computer Networks and the Internet. CMPS 4750/6750: Computer Networks

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

Lecture 05: Application Layer (Part 02) Domain Name System. Dr. Anis Koubaa

CMSC 332 Computer Networking Web and FTP

Part 1: Introduction. Goal: Review of how the Internet works Overview

Chapter 1: introduction

Chapter 2 Application Layer

Announcements. TAs office hours: Mohamed Grissa: Mohamed Alkalbani:

Chapter 2 Application Layer

EECS 3214: Computer Network Protocols and Applications

Application layer. Some network apps. Client-server architecture. Hybrid of client-server and P2P. Pure P2P architecture. Creating a network app

Chapter 2 part B: outline

Network and Mobile Compu4ng in the 20 th Century and Beyond. COMP 1400 Memorial University Winter 2015

LECTURE 1 - INTRODUCTION. Jacob Aae Mikkelsen

HyperText Transfer Protocol

Chapter 1 Computer Networks and the Internet

CSC 401 Data and Computer Communications Networks

Computer Networking: A Top Down Approach

Lecture 2: Internet Structure

Web, HTTP and Web Caching

Data Communication & Computer Networks MCQ S

Operating Systems CS 571

Application Layer Protocols

Chapter 8 Security. Computer Networking: A Top Down Approach

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

PLEASE READ CAREFULLY BEFORE YOU START

Application Layer. Applications and application-layer protocols. Goals:

Lecture 6 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Chapter I: Introduction

Chapter 2 Application Layer

CSC 401 Data and Computer Communications Networks

FTP. Mail. File Transfer Protocol (FTP) FTP commands, responses. Electronic Mail. TDTS06: Computer Networks

Application Layer: , DNS

Application Layer. Pure P2P architecture. Client-server architecture. Processes communicating. Hybrid of client-server and P2P. Creating a network app

RSC Part I: Introduction

Application Layer. Goals: Service models. Conceptual aspects of network application protocols Client server paradigm

Lecture 7 Application Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

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

Chapter 1: roadmap. 1.1 what is the Internet? 1.2 network edge. 1.3 network core

Protocol Layers & Wireshark TDTS11:COMPUTER NETWORKS AND INTERNET PROTOCOLS

PLEASE READ CAREFULLY BEFORE YOU START

Chapter 2. Application Layer

Computer Networking Introduction

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

Computer Networks. Lecture 1: Introduction. Computer Networking: A Top Down Approach. Dr. Yaoqing Liu

Chapter 4: Networking and the Internet. Network Classifications. Network topologies. Network topologies (continued) Connecting Networks.

Network Protocols and Architectures

CS 4390 Computer Networks

Internet Routing. Review of Networking Principles. What s the Internet: nuts and bolts view. Communication links

Internet Routing. Review of Networking Principles

Course on Computer Communication and Networks. Lecture 1 Chapter 1: Introduction Part A: Internet, Protocol Layering and Data

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

Since enrollment is very small this semester, we have flexibilty. Traditional lecture Assigned reading, and then student(s) present during class time

CS 3516: Advanced Computer Networks

CS 43: Computer Networks. Layering & HTTP September 7, 2018

Computer Networking. Chapter #1. Dr. Abdulrhaman Alameer

Transcription:

Review for Internet Introduction

What s the Internet: Two Views View 1: Nuts and Bolts View billions of connected hosts routers and switches protocols control sending, receiving of messages network of networks mobile network home network global ISP regional ISP View 2: Service View Infrastructure that provides services to applications: Web, VoIP, email, games, e- commerce, social nets, institutional network Introduction 1-2

Internet Components Network Edge: hosts: clients and servers mobile network Access networks Home: DSL & Cable Institutional: Ethernet Quiz 1 Wireless: WiFi & 3G & 4G LTE Physical Media guided media: copper, fiber, coax unguided media: radio Network Core: Interconnected Routers home network institutional network Packet Switching: Shared Resources: Store and Forward Circuit Switching: Shared Resources: Reserved Circuit global ISP regional ISP Quiz 4

Internet Structure: Network of Networks Tier 1 ISP Tier 1 ISP Google IXP IXP IXP Regional ISP Regional ISP access ISP access ISP access ISP access ISP access ISP access ISP access ISP access ISP End systems connect to Internet via access ISPs residential, company and university ISPs Access ISPs in turn must be interconnected.

Network Metrics 1: Delay A transmission propagation B processing queueing d nodal = d proc + d queue + d trans + d prop Quiz 2

Network Metrics 2: Packet loss Queue (aka buffer) has limited capacity Packet is dropped if arriving to full queue (aka lost) A buffer (waiting area) B packet arriving to full buffer is lost Introduction 1-6

Network Metrics 3: Throughput throughput: rate (bits/time unit) at which bits transferred between sender/receiver Real-time: rate at a given time point Average: rate over longer period of time Introduction 1-7

Internet protocol stack application: supporting network applications FTP, SMTP, HTTP transport: process-process data transfer TCP, UDP network: routing of datagrams from source to destination IP, routing protocols link: data transfer between neighboring network devices Ethernet, 802.111 (WiFi), PPP physical: bits on the wire application transport network link physical Quiz 3-1 Introduction 1-8

ISO/OSI reference model Open Systems Interconnections Presentation: allow applications to interpret meaning of data, e.g., encryption, compression, Session: synchronization, recovery of data exchange 5-layer Internet stack missing these 2 layers! these services, if needed, must be implemented in application application presentation session transport network link physical Quiz 3-2 Introduction 1-9

Network security field of network security: how bad guys can attack computer networks how we can defend networks against attacks how to design architectures that are immune to attacks Malware can get in host from: Virus & Worm Denial of Service (DoS): attackers make resources (server, bandwidth) unavailable to legitimate traffic by overwhelming resource with bogus traffic Introduction 1-10

Review for App Layer Protocols

App-Layer Protocols Host A Application Layer Application Protocol Host B Application Layer Transport Layer Transport Protocol Transport Layer Network Layer Network Layer Network Layer Network Layer H-to-N Layer H-to-N Layer H-to-N Layer H-to-N Layer Router Router 12

App-layer protocol defines Types of messages exchanged: e.g., request, response Message format: Syntax :what fields in messages Semantics: meaning of information in fields Rules for when and how processes send & respond to messages Public-domain protocols: defined in RFCs DNS, HTTP, FTP, SMTP Proprietary protocols: e.g., Skype, Hangout A network connection is a 4-tuple:IP S, Port S, IP D, Port D To communicate, 2 hosts need to identify each other with IP address More than one process on a host: Port # 13

Client-server architecture (CS) client Server: Always-on host Permanent IP address A net of servers for scaling client server Clients: may not be always connected may have dynamic IP addresses communicate with server but do not communicate directly with each other Quiz 5 14

App-layer protocols DNS: Domain Name Service HTTP: HyperText Transfer Protocol CDN: Content Distribution Networks FTP: File Transfer Protocol SMTP: Simple Mail Transfer Protocol Quiz 6 Quiz 7 Quiz 8 Quiz 9 Quiz 10 15

DNS

Domain Name System (DNS) For any networked application, we need to know the IP address of a given host name Problem: On average, IP addresses have 12 digits We need an easier way to remember IP addresses Solution: Use names to refer to hosts Add a service (DNS) to map between host names and IP addresses We call this Address Resolution 17

Simple DNS <Client IP, CPort, DNS server IP, 53> QUERY cs.rutgers.edu <DNS server, 53, Client IP, Cport> RESPONSE 128.6.4.2 Centralize DNS? Single Point of Failure traffic volume Distant centralized database maintenance doesn t scale! Quiz 6 18

Distributed, Tree-based DNS Database Root DNS Servers com DNS servers org DNS servers edu DNS servers yahoo.com DNS servers amazon.com DNS servers pbs.org DNS servers rutgers.edu DNS servers umass.edu DNS servers cs.rutgers.edu DNS server RFC 1034 19

2 DNS Query Types Iterated Query root DNS server Recursive Query root DNS server 2 3 4.edu DNS server 2 7 6 3.edu DNS server 5 local DNS server dns.poly.edu 1 8 7 6 local DNS server dns.poly.edu 1 8 5 4 requesting host cis.poly.edu cs.umass.edu DNS server dns.cs.umass.edu requesting host cis.poly.edu cs.umass.edu DNS serve dns.cs.umass.edu gaia.cs.umass.edu gaia.cs.umass.edu 20

DNS: Caching, Updating, Bootstrapping Once (any) name server learns mapping, it caches mapping Cache entries timeout (disappear) after some time How does a host contact the name server if all it has is the name and no IP address? IP address of at least 1 nameserver must be given in advance 21

HTTP

HTTP overview Web page consists of a base HTMLfile which includes several referenced objects addressable by a URL Client/Server model client: browser that requests, receives, displays Web objects server: Web server sends objects in response to requests Request & Response Message PC running Explorer Mac running Navigator Server running Apache Web server 23

HTTP connections Nonpersistent HTTP At most one object is sent over a single TCP connection. Persistent HTTP Multiple objects can be sent over a single TCP connection between client and server. Nonpersistent HTTP issues: requires 2 RTTs per object TCP Connection and HTTP Request Quiz 8 Browsers can open parallel TCP connections to fetch objects Persistent HTTP server leaves TCP connection open after sending response subsequent HTTP messages sent over open connection 24

Cookie : User-server State HTTP is stateless server maintains no information about past client requests What state can bring: Authorization, shopping carts, recommendations, user session state Four components: 1) cookie header line of HTTP response message 2) cookie header line in HTTP request message 3) cookie file kept on user s host, managed by user s browser 4) back-end database at Web site 25

Web caches (proxy server) Reduce response time for client request. Reduce traffic on an institution s access link. browser sends all HTTP requests to cache Miss: cache requests object from origin server, then returns object to client Hit: cache returns object guarantees cache content is up-to-date saves traffic and response time whenever possible 26

CDN

Content Distribution Networks (CDN) Reduce bandwidth Requirement & Traffic of content provider Reduce $$ of maintaining Servers Improve response time to user Quiz 7 Clients Origin Server CDN servers Huge B/W requirements & Does not scale Origin server Without CDN With CDN 28

FTP

FTP: the file transfer protocol user at host FTP user interface FTP client local file system file transfer Transfer file to/from remote host client/server model client: side that initiates transfer (either to/from remote) server: remote host FTP server remote file system out of band control Control connection port 21 & Data connection port 20 Active connection: data connection initiated form server Passive connection: : data connection initiated form client Key Drawback: Sends passwords in plain ASCII text Replaced with scp, sftp instead Quiz 9 30

SMTP

Electronic Mail Three Components: 1. User Agents 2. Mail Servers mailbox contains incoming messages for user message queue of outgoing (to be sent) mail messages 3. SMTP protocol Used to send messages Client: sending user agent or sending mail server server: receiving mail server Quiz 10 Mail access protocol: retrieval from server POP: Post Office Protocol IMAP: Internet Mail Access Protocol HTTP: Hotmail, Yahoo! Mail, etc. 32

Questions?