





Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






-! HTTP, SMTP, FTP, etc.!
-! IP, routing protocols!
-! Ethernet, WiFi!
application transport network link physical
-! conceptual, implementation aspects of network application
-! transport-layer service models! -! client-server paradigm! -! peer-to-peer paradigm! -! examine some popular application-level protocols -! HTTP -! SMTP / POP3 / IMAP
-! syntax and semantics of the messages between end-
-! tailored to the specific application (e.g., Web, e-mail)! -! Messages transferred over transport connection (e.g.,
-! HTTP, SMTP, FTP, SSH, …!
-! E-mail (SMTP)! -! Web (HTTP)! -! Instant messaging (IRC)! -! Remote login (Telnet)! -! P2P file sharing (Napster,
-! Multi-user network games! -! Streaming stored video
-! Internet telephone
-! Real-time video
-! Massively parallel
-! run on different end systems and! -! communicate over a network.! -! e.g., Web browser software communicates with browser server!
-! Network core devices do not function at app layer! -! This design allows for rapid app development! application transport network data link physical application transport network data link physical application transport network data link physical
-! hybrid of p2p and centralized server! -! pure p2p! -! hierarchical p2p!
-! DNS! -! FTP! -! SMTP! -! HTTP! -! cookies! -! web caching! -! CDN! -! Multi-player games!
-! file transfer P2P! -! file search centralized:! -! peers register IP address and content at central index server! -! peers query central index server to locate content!
-! how to find peer?! -! how to find content?!
-! cannot peer with a host you can’t address!
-! Gnutella:! -! querier sends PUSH message to responder over the p2p network! -! responder opens a TCP connection to querier and send over the file! -! no luck if both are behind firewalls! -! KaZaA, eDonkey, Skype:! -! supernodes act as proxy if both peers are behind firewalls! -! Standards to circumvent NAT (and firewall!): UPnP, STUN!
-! hybrid of p2p and centralized server! -! pure p2p! -! hierarchical p2p!
-! DNS! -! FTP! -! SMTP! -! HTTP! -! cookies! -! web caching! -! CDN! -! Multi-player games!
-! unicasting: two copies of packets from S are sent over
-! broadcasting: one copy of packet sent from S to all
-! multicasting: one copy of packets from S is sent over
D D D D S R
-! video conferencing, distance learning, distributed
-! can support millions of receivers per multicast group! -! receivers can join and leave any group at any time! -! senders don’t have to know all receivers! -! senders don’t have to be members of a group to send!
-! use multicast (Class-D) addresses as anonymous
-! create a well-known multicast group (address) to
-! multicast data is sent using UDP! -! sender sendto() the multicast address! -! receiver recvfrom() the multicast address! -! not uniformly deployed throughout the Internet!
-! use a well-known, centralized rendezvous server! -! each peer must register with rendezvous server! -! rendezvous server returns a (random) list of peers! -! each peer can support only a limited number of peers! -! avoid sending duplicate messages and looping:! -! if single source, construct a shortest-path tree rooted at source! -! or use flood-and-prune algorithm! -! prefer peers in same subnet!
-! keep track of sequence number! -! only forward packet that comes from" shortest path from (to) source!
-! only forward if self is on neighbor’s shortest path from (to) source! -! prune ( P3 telling P2 not to forward pkts from S )! -! must be done per source if there are multiple sources," each source forming its own multicast group and (logically) its own multicast tree! -! must periodically flood in case of membership change!
-! hybrid of p2p and centralized server! -! pure p2p! -! hierarchical p2p!
-! DNS! -! FTP! -! SMTP! -! HTTP! -! cookies! -! web caching! -! CDN! -! Multi-player games!
-! hybrid of p2p and centralized server! -! pure p2p! -! hierarchical p2p!
-! DNS! -! FTP! -! SMTP! -! HTTP! -! cookies! -! web caching! -! CDN! -! Multi-player games!
-! user agents! -! mail servers! -! simple mail " transfer protocol (SMTP)!
-! a.k.a. “mail reader”! -! composing, editing, reading mail messages! -! e.g., Thunderbird, Apple Mail, Eudora, Outlook! -! outgoing, incoming messages stored on server!
-! mailbox contains incoming messages for user! -! message queue contains outgoing (to be sent) mail messages!
user mailbox outgoing message queue mail server user agent user agent user agent mail server user agent user agent mail server user agent SMTP SMTP SMTP SMTP mail access protocol mail message format
-! client: sending mail server! -! server: receiving mail server! Uses TCP to reliably transfer email message from client 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! -! messages must be in 7-bit ASCII!
S: 220 hamburger.edu C: HELO crepes.fr S: 250 Hello crepes.fr, pleased to meet you C: MAIL FROM: S: 250 [email protected]... Sender ok C: RCPT TO: S: 250 [email protected] ... Recipient ok C: DATA S: 354 Enter mail, end with "." on a line by itself C: Do you like ketchup? C: How about pickles? C:. S: 250 Message accepted for delivery C: QUIT S: 221 hamburger.edu closing connection Try it out!! (Real programmers send email by... not)!
-! header lines, e.g.,! -! To:! -! From:! -! Subject:! -! different from SMTP commands!! -! body! -! the “message”, ASCII characters only! user agent sender’s mail server user agent SMTP mail access protocol receiver’s mail server mail message mail message format SMTP format
blank! line!
From: [email protected] To: [email protected] Subject: Picture of yummy crepe. MIME-Version: 1. Content-Transfer-Encoding: base Content-Type: image/jpeg base64 encoded data ..... ......................... ......base64 encoded data multimedia data! type, subtype,! parameter declaration! method used! to encode data! MIME version! encoded data!
-! POP: Post Office Protocol (RFC 1939)! -! authorization (agent server) and download! -! IMAP: Internet Mail Access Protocol (RFC 1730)! -! more features (more complex)! -! manipulation of stored messages on server! -! HTTP: Yahoo! Mail, Gmail, Hotmail, etc.! user agent sender’s mail server user agent SMTP^ mail access protocol receiver’s mail server SMTP