• No results found

DATA COMMUNICATOIN NETWORKING

N/A
N/A
Protected

Academic year: 2021

Share "DATA COMMUNICATOIN NETWORKING"

Copied!
13
0
0

Loading.... (view fulltext now)

Full text

(1)

DATA COMMUNICATOIN

NETWORKING

Instructor: Ouldooz Baghban Karimi

Course Book:

Computer Networking, A Top-Down Approach By: Kurose, Ross

(2)

Introduction 2

Course Overview

Basics of Computer Networks

Internet & Protocol Stack

Application Layer

Transport Layer

Network Layer

Data Link Layer

Advanced Topics

Case Studies of Computer Networks

Internet Applications

Network Management

Network Security

(3)

User-Server State: Cookies

Four Components

Cookie header line of HTTP response

Cookie header line in next HTTP request message

Back-end database at Web site

Cookie file kept on user’s host, managed by user’s

(4)

Introduction 4

Cookies

client server usual http response msg usual http response msg cookie file

one week later:

usual http request msg cookie: 1678 cookie- specific action access ebay 8734 usual http request msg Amazon server creates ID

1678 for user create

entry usual http response set-cookie: 1678 ebay 8734 amazon 1678 usual http request msg cookie: 1678 cookie- specific action access ebay 8734 amazon 1678 backend database

(5)

Cookies Usage

Usage

 Authorization  Shopping Carts  Recommendations

 User session state (Web email)

Keeping State

 protocol endpoints: maintain state at sender/receiver over multiple

transactions

 cookies: http messages carry state

cookies and privacy

cookies permit sites to learn a lot about you

you may supply name and e-mail to sites

(6)

Introduction 6

Web Caches (Proxy Server)

User sets browser

 Web accesses via cache

Browser sends all HTTP requests to cache

 Object in cache

 cache returns object

 Else cache requests

object from origin server, then returns object to client client

proxy

server

client origin server origin server

(7)

Web Catching

Cache acts as both client and server

 server for original requesting client  client to origin server

Typically cache is installed by ISP

 university, company, residential ISP

Why Web Catching?

 Reduce response time for client request  Reduce traffic on an institution’s access link

(8)

Introduction 8

Web Catching Example

origin servers public Internet institutional network 1 Gbps LAN 1.54 Mbps access link

Example

 Average object size:

100kbits

 Average request rate from

browser to origin servers: 15/sec

 Average Data rate to

Browsers: 1.50Mbps

 RTT from institutional router

to any high origin server: 2sec

(9)

Web Catching Example

Example

 LAN utilization: 15%

 Access link utilization = 99%

 Total delay = Internet delay + access delay + LAN delay = 2 sec + minutes + usecs

Increase access link speed to 154Mbps

 LAN utilization: 15%

 Access link utilization = 9.9%

 Total delay = Internet delay + access delay + LAN delay = 2 sec + msecs + usecs

Cache with hit rate 0.4

 Access link utilization:

 60% of requests use access link

 Data rate to browsers over access link = 0.6*1.50 Mbps = .9 Mbps

 Utilization = 0.9/1.54 = 0.58

 Total delay

(10)

Introduction 10

Conditional GET

Goal: don’t send object

if cache has up-to-date cached version

 no object transmission delay

 lower link utilization

Cache: specify date of

cached copy in HTTP request

If-modified-since: <date> Server: response

contains no object if cached copy is up-to-date:  HTTP/1.0 304 Not Modified HTTP request msg If-modified-since: <date> HTTP response HTTP/1.0 304 Not Modified object not modified before <date> HTTP request msg If-modified-since: <date> HTTP response HTTP/1.0 200 OK

<data>

object modified after <date> client server

(11)

FTP: File Transfer Protocol

Transfer to/from remote host

Client/server model

Client: side that initiates transfer (either to/from remote)

Server: remote host

ftp: RFC 959

file transfer FTP server FTP user interface FTP client local file system remote file system user at host

(12)

Introduction 12

FTP: Separate Control & Data

 FTP client contacts FTP server

at port 21, using TCP

 Client authorized over control connection

 Client browses remote

directory, sends commands over control connection  When server receives file

transfer command, server

opens 2nd TCP data

connection (for file) to client  After transferring one file,

server closes data connection

FTP client server FTP TCP control connection, server port 21 TCP data connection, server port 20

 Server opens another TCP data connection to transfer another file

 control connection: “out of

band”

 FTP server maintains “state”: current directory, earlier authentication

(13)

FTP: Commands & Responses

sample commands:

 sent as ASCII text over control channel

USER username

PASS password

LIST return list of file in current directory

RETR filename retrieves (gets)

file

sample return codes:

 status code and phrase (as in HTTP)

331 Username OK, password

required

125 data connection already

open; transfer starting

425 Can’t open data

References

Related documents

The Forth Replacement Crossing is currently being built across the Firth of Forth to maintain and improve reliability of a vital transport link in Scotland. The total length of the

Figure 3.4.C shows the SAGE output for total Pseudocalanus abundance when the initial abundance of females was set equal to that of the first sampling day in the data set, and

The following is a report relating to the first simulation practice project and pre- sents a re-analysis of data following an unexpected finding, and therefore focuses primarily

From January 1967 to July 1968, the money stock had risen at a 7 per cent annual rate, about three times the trend rate from 1957 to 1966, Studies indicate that changes in the

3) Challenges: The major challenges for BBN are: the energy efficiency, when the coordinators will play the role of cluster head and will transmit the value or vital signs in the

Theorem 4.10: Every edge-to-edge tiling of the plane by congruent triangles meeting 6 at a vertex formed by dividing the plane by lines, except tilings by isosceles triangles

 FTP transfer services— Server hardware and software to enable file transfers using the customer’s FTP client software..  Establishing agency

The Bonny Method of Guided Imagery and Music (GIM) is a music-assisted therapy used to explore one's own inner world and help clients to work on significant life issues, for instance,