Beruflich Dokumente
Kultur Dokumente
com)
Agenda
Network System definition wrt Internet
Network Addressing
Network Proxy Other network server applications Questions?
router
server local ISP
workstation
mobile
regional ISP
bandwidth
Internet phones
workstation mobile
Internet: network of
networks
regional ISP
Internet standards RFC: Request for comments IETF: Internet Engineering Task Force
company network
access networks,
routers the fundamental question: how is data transferred through net? circuit switching: dedicated circuit per call: telephone net packet-switching: data sent thru net in discrete chunks
Keep in mind:
bandwidth (bits per
up to 56Kbps direct access to router (often less) Cant surf and phone at same time: cant be always on
up to 1 Mbps upstream (today typically < 256 kbps) up to 8 Mbps downstream (today typically < 1 Mbps) FDM: 50 kHz - 1 MHz for downstream
network (LAN) connects end system to edge router Ethernet: shared or dedicated link connects end system and router 10 Mbs, 100Mbps, Gigabit Ethernet, 10 Gigabit Ethernet (Coming soon)
wireless access
wireless LANs: 802.11b/g (WiFi): 11 or 54 Mbps wider-area wireless access provided by telco operator 3G ~ 384 kbps Will it happen?? GPRS in Europe/US
mobile hosts
Home networks
Typical home network components: ADSL or cable modem router/firewall/NAT Ethernet wireless access point
to/from cable headend cable modem router/ firewall Ethernet wireless laptops wireless access point
Physical Media
Bit: propagates between
transmitter/rcvr pairs physical link: what lies between transmitter & receiver guided media:
Tier 1 ISP
NAP
Tier 1 ISP
Tier 1 ISP
Seattle Tacoma
POP: point-of-presence
to/from backbone
Stockton San Jose Cheyenne
Kansas City .
peering
Chicago Roachdale
Anaheim
Atlanta
Tier-2 ISP pays tier-1 ISP for connectivity to rest of Internet tier-2 ISP is customer of tier-1 provider
Tier-2 ISP
Tier 1 ISP
Tier-2 ISP
NAP
Tier-2 ISPs also peer privately with each other, interconnect at NAP
Tier-2 ISP
Tier 1 ISP
Tier-2 ISP
Tier 1 ISP
Tier-2 ISP
local
ISP
Tier 1 ISP
NAP
Tier 1 ISP
Tier 1 ISP
Tier-2 ISP local ISP
local ISP
local
ISP
local ISP
local
Tier 1 ISP
NAP
Tier 1 ISP
Tier-2 ISP local local ISP ISP
Tier 1 ISP
Tier-2 ISP local ISP
A B
packets queueing (delay) free (available) buffers: arriving packets dropped (loss) if no free buffers
A B
transmission
nodal processing
queueing
4. Propagation delay: d = length of physical link s = propagation speed in medium propagation delay = d/s
nodal processing
queueing
measurement from source to router along end-end Internet path towards destination. For all i:
sends three packets that will reach router i on path towards destination router i will return packets to sender sender times interval between transmission and reply.
3 probes 3 probes
3 probes
Packet loss
queue (aka buffer) preceding link in buffer
has finite capacity when packet arrives to full queue, packet is dropped (aka lost) lost packet may be retransmitted by previous node, by source end system, or not retransmitted at all
applications
transfer
TCP, UDP
source to destination
source
message segment
Ht M M M M
frame Hl Hn Ht
datagram Hn Ht
Encapsulation
destination
M
Ht
Hn Ht Hl Hn Ht
M M M
Hn Ht Hl Hn Ht
M
M
Hn Ht
router
Agenda
Network System definition wrt Internet
Network Addressing
Network Proxy Other network server applications Questions?
Network layer
forwarding table
IP datagram format
IP protocol version number header length (bytes) type of data max number remaining hops (decremented at each router) upper layer protocol to deliver payload to 32 bits head. type of length ver len service fragment 16-bit identifier flgs offset upper time to header layer live checksum 32 bit source IP address 32 bit destination IP address Options (if any) E.g. timestamp, record route taken, specify list of routers to visit. total datagram length (bytes) for fragmentation/ reassembly
how much overhead with TCP? 20 bytes of TCP 20 bytes of IP = 40 bytes + app layer overhead
IP Addressing: introduction
IP address: 32-bit
223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.1.3 223.1.2.9
identifier for host, router interface interface: connection between host/router and physical link
223.1.3.27
223.1.2.2
routers typically have multiple interfaces host typically has one interface IP addresses associated with each interface
223.1.3.1
223.1.3.2
Subnets
IP address: subnet part (high order bits) host part (low order bits)
223.1.1.1 223.1.2.1 223.1.1.2 223.1.1.4 223.1.1.3 223.1.2.9 223.1.2.2
Whats a subnet ?
223.1.3.27
device interfaces with same subnet part of IP address can physically reach each other without intervening router
subnet
223.1.3.1 223.1.3.2
Subnets
Recipe To determine the subnets, detach each interface from its host or router, creating islands of isolated networks. Each isolated network is called a subnet.
223.1.1.0/24
223.1.2.0/24
223.1.3.0/24
network have same single source NAT IP address: 138.76.29.7, different source port numbers
Datagrams with source or destination in this network have 10.0.0/24 address for source, destination (as usual)
far as outside world is concerned: range of addresses not needed from ISP: just one IP address for all devices can change addresses of devices in local network without notifying outside world can change ISP without changing addresses of devices in local network devices inside local net not explicitly addressable, visible by outside world (a security plus).
remember (in NAT translation table) every (source incoming datagrams: replace (NAT IP address, new
port #) in dest fields of every incoming datagram with corresponding (source IP address, port #) stored in NAT table
1
10.0.0.4
S: 128.119.40.186, 80 D: 10.0.0.1, 3345
10.0.0.1
10.0.0.2
138.76.29.7
10.0.0.3 4: NAT router changes datagram dest addr from 138.76.29.7, 5001 to 10.0.0.1, 3345
Agenda
Network System definition wrt Internet
Network Addressing
Network Proxy Other network server applications Questions?
object in cache: cache returns object else cache requests object from origin server, then returns object to client
client
Proxy server
client
origin server
and server Typically cache is installed by ISP (university, company, residential ISP)
client request. Reduce traffic on an institutions access link. Internet dense with caches: enables poor content providers to effectively deliver content (but so does P2P file sharing)
Conditional GET
Goal: dont send object if
cache
HTTP request msg
If-modified-since: <date>
server
object not modified
cache has up-to-date cached version cache: specify date of cached copy in HTTP request
If-modified-since: <date>
server: response contains no
HTTP response
HTTP/1.0 304 Not Modified
HTTP response
HTTP/1.0 200 OK
object modified
<data>
Agenda
Network System definition wrt Internet
Network Addressing
Network Proxy Other network server applications
FTP SMTP
Questions?
file transfer
FTP server
remote file system
user at host
remote) server: remote host ftp: RFC 959 ftp server: port 21
server at port 21, specifying TCP as transport protocol Client obtains authorization over control connection Client browses remote directory by sending commands over control connection. When server receives file transfer command, server opens 2nd TCP connection (for file) to client After transferring one file, server closes data connection.
FTP client
FTP server
data connection to transfer another file. Control connection: out of band FTP server maintains state: current directory, earlier authentication
in HTTP) 331 Username OK, password required 125 data connection already open; transfer starting 425 Cant open data connection 452 Error writing file
Electronic Mail
Three major components:
user agents
mail servers simple mail transfer
mail server user agent
protocol: SMTP
SMTP SMTP
mail server
User Agent a.k.a. mail reader composing, editing, reading mail messages e.g., Eudora, Outlook, elm, Netscape Messenger outgoing, incoming messages stored on server
user agent
SMTP
user agent
user agent
user agent
messages for user message queue of outgoing (to be sent) mail messages SMTP protocol between mail servers to send email messages client: sending mail server server: receiving mail server
SMTP SMTP
mail server
SMTP
user agent
user agent
user agent
to server, port 25 direct transfer: sending server to receiving server three phases of transfer handshaking (greeting) transfer of messages closure command/response interaction commands: ASCII text response: status code and phrase
1 user agent 2
mail server 3
mail server 4 5 6
user agent