02 how the internet works_pr_tm

Upload: anitkumardas

Post on 05-Apr-2018

214 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 02 How the Internet Works_PR_TM

    1/13

    www.netskills.ac.uk

    How the Internet Works

  • 7/31/2019 02 How the Internet Works_PR_TM

    2/13

    CSC1014

    JISC Netskills

    What is the Internet?

    Networking infrastructure that allows hardware devices tophysically connect to one another

    Servers, Desktop PCs, Mobile devices etc. Based on common standards notably the TCP/IP protocol suite

    Protocolsspecify how the transactions are carried out How communication is initiated and maintained

    Type, size and structure of the data sent/received Enable the services running over the internet ("the web" is just one!)

    Software clients(and servers) allow users and devices to accessand use internet services

    Using centralised servers or distributed peer-to-peer systems

  • 7/31/2019 02 How the Internet Works_PR_TM

    3/13

    CSC1014

    JISC Netskills

    Clients, Servers and Peers

    Most common internet services based on a client/servermodelusing appropriate communication protocol(s)

    Usually local software clients access centralised remote servers Email via an Outlook client accessing an ISP's mail server Web pages via a Firefox web client accessing an Apache web server

    Peer-to-peertechnology can directly connect multiple,decentralised computers - each acting as both client and server

    Responsibly implemented P2P can be very efficient for data-rich services Distributed download services e.g. BitTorrent Media on demand services e.g. Spotify Internet telephony/video calling e.g. Skype

  • 7/31/2019 02 How the Internet Works_PR_TM

    4/13

    CSC1014

    JISC Netskills

    Clients: Take your pick?

    Mosaic kick-started the mainstream interest Followed by Internet Explorer & Netscape

    Internet Explorer survives with: Firefox, Chrome, Safari, Opera plus Camino, Seamonkey, Flock,

    Konqueror, iCab, Web TV, MSN Explorer, AOL, Omniweb, Lynx etc "Under the hood" many share common layout engines e.g.

    Trident, Gecko, KHTML/Webkit etc.

    Proliferation and diversity due in part to better support forstandards along with a greater range of web access devices andmethods http://www.upsdell.com/BrowserNews/overview.htm

    http://en.wikipedia.org/wiki/List_of_web_browsers

    http://www.upsdell.com/BrowserNews/overview.htmhttp://en.wikipedia.org/wiki/List_of_web_browsershttp://en.wikipedia.org/wiki/List_of_web_browsershttp://www.upsdell.com/BrowserNews/overview.htmhttp://www.upsdell.com/BrowserNews/overview.htm
  • 7/31/2019 02 How the Internet Works_PR_TM

    5/13

  • 7/31/2019 02 How the Internet Works_PR_TM

    6/13

    CSC1014

    JISC Netskills

    Protocols to build services

    Clients and servers typically use a combination (stack) ofprotocols to provide specific services

    Web access Email File transfer Peer-to-peer data exchange Chat/instant messaging Shell/console access to computers

    Most common protocols in use today are those associated withweb and email services

    HTTP/HTTPS SMTP/IMAP/POP etc.

  • 7/31/2019 02 How the Internet Works_PR_TM

    7/13

    CSC1014

    JISC Netskills

    Common internet protocols

    Protocol Notes

    HTTP HyperText Transfer Protocol Core protocol for web transactions

    SSL Secure Sockets Layer Data encryption

    HTTPS Secure HTTP A combination of HTTP and SSL

    SMTP

    POP

    IMAP

    Simple Mail Transfer Protocol

    Post Office Protocol

    Internet Message Access Protocol

    Used in combination to provide most email

    services

    FTP File Transfer Protocol Used to exchange files between computers

    SSH and

    SFTPSecure SHell and Secure/SSH FTP

    Encrypted access to remote computers plus

    extension for encrypted file transfer

    BitTorrent er BitTorrentProtocol for peer-to-peer data access and

    exchange

  • 7/31/2019 02 How the Internet Works_PR_TM

    8/13

    CSC1014

    JISC Netskills

    TCP/IP: The Heart of the Internet

    TCP (Transmission Control Protocol ) Handles direct connection on computer between client/server software

    and network interface(s) Breaks outgoing messages from application into packets to send via IP Assembles incoming packets into messages to pass back to application

    Packetshave two parts: Header (addressing/sequencing information and metadata)

    Body (actual data payload)

    IP (Internet Protocol ) Handles delivery of packets to/from any device with an IP address a unique numeric identifier for a device on the internet e.g.

    128.240.233.249

  • 7/31/2019 02 How the Internet Works_PR_TM

    9/13

    CSC1014

    JISC Netskills

    IP: Routing Packets

    IP routespackets using address info in header todirect them to their destination

    IP routing is connection-less Does not require a fixed connection between endpoints Enables data to travel via multiple routes to reach endpoint One "wire" can handle multiple connections/services Packets can be re-routed around points of failure

    but risks include Corruption of data/loss of packets/duplicate packets arriving Packets delivered out of sequence (sent A -> B, received B -> A)

    As a result IP only promises best-effort-delivery

  • 7/31/2019 02 How the Internet Works_PR_TM

    10/13

    CSC1014

    JISC Netskills

    Best Effort Delivery?

    Performance of IP routing can be affected by various factors e.g. Available bandwidth and competing traffic

    Distance/number of "hops" between routers

    Unpredictability means IP cannot guarantee that all packets will: Arrive within a fixed time/in correct order/at all!

    To mitigate, TCP on destination device checks and reassemblespackets based on header information

    Can request re-transmission of lost/corrupted packets Can correctly re-sequence packets Can refuse to accept/wait for any more (drop connection)

  • 7/31/2019 02 How the Internet Works_PR_TM

    11/13

    CSC1014

    JISC Netskills

    A (Very) Commonly UsedAnalogy

    Common analogy is of a written message sent as a series ofseparate, sequenced postcards

    Sequence set by sender, each cardaddressed to same recipient and posted

    Cards take their own slightly differentroute through postal system and are delivered(over a period of time) to recipient

    Recipient assembles cards and acts accordingly Put in order and read message? Contact sender and ask for missing cards? Stop waiting and ignore future deliveries? Ask sender to stop sending cards?

    TCP

    IP

    TCP

  • 7/31/2019 02 How the Internet Works_PR_TM

    12/13

    CSC1014

    JISC Netskills

    Domain Names

    Domain names make internet easier (for humans) to use bymapping numeric IP addresses to text-based names e.g.

    When device makes an request using a domain name it isresolved back into a numeric IP address by a DNS server

    Thousands of DNS servers across internet Your device/ISP will primarily point to one

    New domain registrations are automatically propagated acrossglobal DNS system

    128.240.233.249 www.netskills.ac.uk

  • 7/31/2019 02 How the Internet Works_PR_TM

    13/13

    CSC1014

    JISC Netskills

    4. TCP connection established (2-way)

    6. HTTP response (from server)

    5. HTTP request (from client)

    2. Client makes a DNS query

    "Where is www.netskills.ac.uk?"

    3. DNS server looks up & responds

    "At IP address 128.240.233.249"

    1. User types URL(or clicks a link)

    7. Browser processes &displays response

    DNS server

    Web server

    at128.240.233.249

    A Simple Request