01 6 1 Transport Layer Overview

background image

David Wetherall (djw@uw.edu)

Professor of Computer Science & Engineering

Introduction to Computer Networks

Transport Layer Overview

(§6.1.2-6.1.4)

background image

CSE 461 University of Washington

2

Where we are in the Course

Starting the Transport Layer!

Builds on the network layer to deliver
data across networks for applications
with the desired reliability or quality

Physical

Link

Network

Transport

Application

background image

Recall

Transport layer provides end-to-end connectivity
across the network

CSE 461 University of Washington

3

TCP

IP

802.11

app

IP

802.11

IP

Ethernet

TCP

IP

Ethernet

app

Router

Host

Host

background image

CSE 461 University of Washington

4

Recall (2)

Segments carry application data
across the network

Segments are carried within
packets within frames

802.11

IP

TCP

App, e.g., HTTP

Segment

Packet

Frame

background image

CSE 461 University of Washington

5

Transport Layer Services

Provide different kinds of data
delivery across the network to
applications

Unreliable

Reliable

Messages Datagrams (UDP)

Bytestream

Streams (TCP)

background image

Comparison of Internet Transports

TCP is full-featured, UDP is a glorified packet

CSE 461 University of Washington

6

TCP (Streams)

UDP (Datagrams)

Connections

Datagrams

Bytes are delivered once,

reliably, and in order

Messages may be lost,

reordered, duplicated

Arbitrary length content

Limited message size

Flow control matches

sender to receiver

Can send regardless

of receiver state

Congestion control matches

sender to network

Can send regardless

of network state

background image

CSE 461 University of Washington

7

Socket API

Simple abstraction to use the network

The “network” API (really Transport
service) used to write all Internet apps

Part of all major OSes and languages;
originally Berkeley (Unix) ~1983

Supports both Internet transport
services (Streams and Datagrams)

background image

CSE 461 University of Washington

8

Socket API (2)

Sockets let apps attach to the
local network at different ports

Socket,

Port #1

Socket,

Port #2

background image

Socket API (3)

Same API used for Streams and Datagrams

CSE 461 University of Washington

9

Primitive

Meaning

SOCKET

Create a new communication endpoint

BIND

Associate a local address (port) with a socket

LISTEN

Announce willingness to accept connections

ACCEPT

Passively establish an incoming connection

CONNECT

Actively attempt to establish a connection

SEND(TO)

Send some data over the socket

RECEIVE(FROM) Receive some data over the socket

CLOSE

Release the socket

Only needed

for Streams

To/From

forms for

Datagrams

background image

CSE 461 University of Washington

10

Ports

Application process is identified by the
tuple IP address, protocol, and port

Ports are 16-bit integers representing local
“mailboxes” that a process leases

Servers often bind to “well-known ports”

<1024, require administrative privileges

Clients often assigned “ephemeral” ports

Chosen by OS, used temporarily

background image

Some Well-Known Ports

CSE 461 University of Washington

11

Port

Protocol

Use

20, 21 FTP

File transfer

22 SSH

Remote login, replacement for Telnet

25 SMTP

Email

80 HTTP

World Wide Web

110 POP-3

Remote email access

143 IMAP

Remote email access

443 HTTPS

Secure Web (HTTP over SSL/TLS)

543 RTSP

Media player control

631 IPP

Printer sharing

background image

CSE 461 University of Washington

12

Topics

Service models

Socket API and ports

Datagrams, Streams

User Datagram Protocol (UDP)

Connections (TCP)

Sliding Window (TCP)

Flow control (TCP)

Retransmission timers (TCP)

Congestion control (TCP)

Next

time

Later

This

time

background image

END

© 2013 D. Wetherall

Slide material from: TANENBAUM, ANDREW S.; WETHERALL, DAVID J., COMPUTER NETWORKS, 5th Edition, © 2011.

Electronically reproduced by permission of Pearson Education, Inc., Upper Saddle River, New Jersey

CSE 461 University of Washington

13


Wyszukiwarka

Podobne podstrony:
BN 69 0455 01 Transport w kopalniach odkrywkowych Skrajnia taboru 900 mm
01-transport mechaniczny, Instrukcje BHP, III - CEGIELNIA
info - odbiorcy jabłek PL do RUS - 2013.12 + 2014.01 z Transportline, 1---Eksporty-all, 1---Eksporty
01 transport subst. przez błony, Transportery pierwotne:
01 Virtual Memory Overview
BN 69 0455 01 Transport w kopalniach odkrywkowych Skrajnia taboru 900 mm
01 Z Chłopek Oddziaływanie transportu na środowisko mini
Ekonomika transportu11 01 2012
TRANSPORT I SPEDYCJA  01 12
01 Śrubka, PW Transport, Gadżety i pomoce PW CD2, płytki, ChujWieCo, fizyka, fizyka, od Marka, Fizyk
transport i handel morski w2 (01 03 2006) 6MT5XE5S2QPTIAEOQGRQ6PIM3ZDM6FMYGHF2ROA
obliczanie gestosci cieczy i cial stalych, Transport i Logistyka (AM) 1 (semestr I), Fizyka, fiza la
01 Z Chłopek Oddziaływanie transportu na środowisko mini
2014 12 01 Rozp MON WT dozoru technicznego transportu
EŚT 07 Użytkowanie środków transportu
TD 01
IK Transport a środowisko
Ubytki,niepr,poch poł(16 01 2008)

więcej podobnych podstron