EΠΛ344: Tεχνολογίες Διαδικτύου
http://www.cs.ucy.ac.cy/courses/EPL344
Οι διαφάνειες στηρίζονται σε υλικό του Δρ. Μάριου Δικαιάκου
E344: T http://www.cs.ucy.ac.cy/courses/EPL344 - - PowerPoint PPT Presentation
E344: T http://www.cs.ucy.ac.cy/courses/EPL344 . 1:
Οι διαφάνειες στηρίζονται σε υλικό του Δρ. Μάριου Δικαιάκου
EPL344
4
http://en.wikipedia.org/wiki/Internet
EPL344
5
EPL344
1969: Πρώτες δοκιμές του δικτύου ARPANET (προοίμιο
1969-1978: Εκθετική ανάπτυξη του ARPANET και
7
Μ Δικαιάκος EΠΛ425
EPL344
12
EPL344
Πρωτόκολλα Διαδικτύου: TCP/IP Hourglass Architecture (αρχιτεκτονική
End-to-End Architecture (άκρου-εις-άκρον
IP Addresses (διευθύνσεις διαδικτύου) Domain Name System (ονοματοδοσία)
18
EPL344
A formal description of message formats and a set of rules
Rules may define sequence of message exchanges Protocol may define state-change in endpoint, e.g., file system
Good protocols designed to do one thing
Protocols can be layered
Examples of protocols
IP, TCP, TLS (was SSL), HTTP, Kerberos 20
EPL344
21
3 4 5 7
6 1 2
EPL344
Modularity
Each layer relies on services from layer below Each layer exports services to layer above
Interfaces
Hides implementation details Layers can change without disturbing other layers 22
EPL344
Packet switching
Divide messages into a sequence of packets Headers with source and destination address
Best-effort delivery
Packets may be lost Packets may be corrupted Packets may be delivered out of order
23
EPL344
Data traffic is bursty (εκρηκτικό)
Logging in to remote machines Exchanging e-mail messages
Don’t want to waste reserved bandwidth
No traffic exchanged during idle periods
Better to allow multiplexing
Different transfers share access to same links
Packets can be delivered by almost anything
RFC 2549: IP over Avian Carriers (aka birds)
… still, packet switching can be inefficient
Extra header bits on every packet 24
EPL344
IP means never having to say you’re sorry…
Don’t need to reserve bandwidth and memory Don’t need to do error detection & correction Don’t need to remember from one packet to next
Easier to survive failures
Transient disruptions are okay during fail-over
… but, applications do want efficient, accurate
25
EPL344
No error detection or correction
Higher-level protocol can provide error checking
Successive packets may not follow the same path
Not a problem as long as packets reach the destination
Packets can be delivered out-of-order
Receiver can put packets back in order (if necessary)
Packets may be lost or arbitrarily delayed
Sender can send the packets again (if desired)
No network congestion control (beyond “drop”)
Sender can slow down in response to loss or delay
26
EPL344
Multiple transport protocol available to applications
Internet: TCP and UDP
27 3
EPL344
Adds multiplexing, guaranteed message delivery on top
Multiplexing: multiple programs using the same IP
port: a number given to each program or service port 80: web browser (port 443 for secure browsing) port 25: email port 22: ssh port 5190: AOL Instant Messenger more common ports
Some programs (games, streaming media programs)
28
EPL344
29
Web server (port 80)
Client host Server host 128.2.194.242
Echo server (port 7)
Service request for 128.2.194.242:80 (i.e., the Web server)
OS Client
EPL344
Host receives IP datagrams
Each datagram has source and
Each datagram carries one
Each segment has source and
Host uses IP addresses and port
30
source port # dest port # 32 bits
application data (message)
TCP/UDP segment format
EPL344
Subnetworks can stand on their own Computers can dynamically join and leave the network Built on open standards; anyone can create a new internet
Oι προδιαγραφές και τα πρωτόκολλα του Διαδικτύου -
Lack of centralised control (mostly) Everyone can use it with simple, commonly available
31
EPL344
Internet Engineering Task Force (IETF): internet protocol
Internet Corporation for Assigned Names and Numbers
World Wide Web Consortium (W3C): web standards
32
EPL344
Πρωτόκολλο IP, αποτελεί το δικτυακό
2 πρωτόκολλα μεταφοράς:
TCP (Transmission Control Protocol) –
UDP (User Datagram Protocol) – πρωτόκολλο
33
EPL344
Ανοικτές προδιαγραφές πρωτοκόλλων (Open protocol
Ανεξαρτησία από υλικό δικτύωσης και πρωτόκολλα
Κοινό σχήμα διευθυνσιοδότησης. Προδιαγεγραμμένα πρωτόκολλα υψηλότερων
34
EPL344
TCP/IP is a two-layer protocol.
The higher layer, Transmission Control Protocol, manages the assembling of a message
layer that reassembles the packets into the original message.
The lower layer, Internet Protocol, handles the address part of each packet so that it gets
to the right destination.
Each gateway computer (router) on the network checks this address to see
where to forward the message. Even though some packets from the same message are routed differently than others, they'll be reassembled at the destination.
TCP/IP solves several problems of network reliability
if a router is overrun with packets, it discards them if a packet is lost, it re-requests it the receiver acknowledges receipt to the source the sender starts a timer and if no acknowledgement is received it automatically
resends the packet
it reorders the packets into proper sequence it eliminates duplicate packets
38
EPL344
39
EPL344
40
User Datagram Protocol (UDP) Transmission Control Protocol (TCP)
ICMP
Cable modem
EPL344
41
UDP TCP Data Link Physical Applications
FTP HTTP TFTP NV TCP UDP IP NET1 NET2 NETn …
Source: Hoffman & Beaumont
email WWW phone... SMTP HTTP RTP... TCP UDP… IP ethernet PPP… CSMA async sonet... copper fiber radio...
EPL344
Why an internet layer?
make a bigger network global addressing virtualise network to isolate end-to-end
Why a single internet protocol?
maximise interoperability minimise number of service interfaces
Why a narrow internet protocol?
assumes least common network functionality
43
email WWW phone... SMTP HTTP RTP... TCP UDP… IP ethernet PPP… CSMA async sonet... copper fiber radio...
Source: Hoffman & Beaumont