SlideShare a Scribd company logo
1 of 16
Download to read offline
Computer Networks
December 2008
A few questions before we start…
How many of you have…
Access to a PC and the Internet (home or nearby)
Chatted online
Used a Bluetooth device
Video-chatted
Uploaded a photo or video
Your own blog or website
Written a web application
Contributed to an open source project
What we will cover in        What you need to learn in
this session                 your syllabus



      Useful in     Will help you      Read up
      real life     understand         yourself
Watch out
I will deliberately lie once today
  You can guess where at the end of the class
We will cover one or both these topics

THE INTERNET THE NETWORK




When you type a web site, how does it     How did the information travel from
appear the way it does on your browser?   that machine into your machine?
URL
            HTML XML
            HTTP SMTP
              CSS Javascript
           Hosting Hacking
            Privacy Piracy
           Security




1   ST TOPIC
    THE INTERNET
If you search on Google for “network”…



http://www.google.com/search?hl=en&q=network&...

scheme     resource   path          query
When you type a URL…
 http://www.google.com/search?hl=en&q=network&...


scheme              resource             path                    query


                                        What to ask for?
What method? Which machine?
http: Use the HTTP protocol, and connect to port 80
ftp: Use the FTP protocol, and connect to port 21
mailto: Use the SMTP protocol, and connect to port 25
etc.
                   Use DNS (Domain Name System) to find the address of www.google.com
                 > nslookup www.google.com
                   Non-authoritative answer:
                   Name:    www.google.com
                   Address: 92.52.125.20
A HTTP request is sent to the resource
GET /search?hl=en&q=network&meta= HTTP/1.1
Accept: image/gif, image/jpeg, */*
Accept-Language: en-gb
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0;
  Windows NT 5.1)
Host: www.google.com
Proxy-Connection: Keep-Alive
The resource sends back a response
HTTP/1.1 200 OK
Cache-Control: private, max-age=0
Date: Sat, 06 Dec 2008 04:46:55 GMT
Expires: -1
Content-Type: text/html; charset=UTF-8
Set-Cookie: SS=Q0=bmV0d29yaw; path=/search
Server: gws
Content-Length: 29240
<!DOCTYPE html>
<html>
<head>
  <title>network - Google Search</title>
  <style type=text/css>
  ...
This is what the resulting HTML looks like
<!DOCTYPE html>
<html>
<head>
  <title>network - Google Search</title>
  <style type=text/css>
    body{background:#fff;...
  </style>
  <script type=text/javascript>
    ...
  </script>
</head>

<body id=gsr topmargin=3 marginheight=3>
  <div id=header>
    <div id=gbar>
      <nobr> <b class=gb1>Web</b> <a href=... class=gb1>Images</a> </nobr>
      ....
    </div>
  </div>
</body>
</html>
It’s easy to create a web page yourself
• Type some text and save it as something.html
     Here is some simple text
• Add tags around it
     Here is some <b>bold</b> <i>italics</i> text
• Add links
     <a href=“http://www.google.com/”>Google</a>
• Create headings
     <h1>Heading</h1>
• Upload it. Search for “free web hosting”
     Freehostia.com, Awardspace.com
• Rent your own server online
     Amazon EC2 (Rs 5 / hr)
The response need not be HTML
• Text, images, video, audio as
• Structured data transferred as XML / JSON
• XML from Amazon’s ECommerce Service (ECS):
<ItemSearchResponse xmlns=http://webservices.amazon.com/AWSECommerceService/2005-03-23>
    <Items>
           <Request>
           <IsValid>True</IsValid>
           <ItemSearchRequest><Author>J K Rowling</Author>
           <Condition>New</Condition>
           <DeliveryMethod>Ship</DeliveryMethod>
           ...
    </Items>
</ItemSearchResponse>


• HTML is a subset of XML with pre-defined tags
You don’t want to show everyone everything
Authorization: Are you who you say you are?
   – Most online mail sites asks for login and password
   – Some will remember you, using cookies
   – Passwords are stolen. Hence, two-factor authentication
      • Something you have + and something you know
      • Examples: Credit Card and PIN, RSA SecureID and passcode
   – Biometric sensors are common on most new laptops
Authentication: Are you allowed to do that?
   – Use of “Pro” features on Yahoo! Mail or Flickr restricted to
     Pro users
   – What you’re allowed to do is often stored in one server.
     Other machines ask this server, “Can this fellow do that?”
2   ND TOPIC
    THE NETWORK
What is a network?
   Examples of devices you connect?
            What medium connects these devices?

   How to connect multiple devices?

How to talk simultaneously?

More Related Content

What's hot

Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Jesse Thomas
 
Joseph-Smarr-Plaxo-OSCON-2006
Joseph-Smarr-Plaxo-OSCON-2006Joseph-Smarr-Plaxo-OSCON-2006
Joseph-Smarr-Plaxo-OSCON-2006guestfbf1e1
 
Plaxo OSCON 2006
Plaxo OSCON 2006Plaxo OSCON 2006
Plaxo OSCON 2006gueste8e0fb
 
HTTP/2 BrightonSEO 2018
HTTP/2 BrightonSEO 2018HTTP/2 BrightonSEO 2018
HTTP/2 BrightonSEO 2018Tom Anthony
 
How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20
How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20
How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20Tom Pool
 
#1 of HTML and CSS3
#1 of HTML and CSS3 #1 of HTML and CSS3
#1 of HTML and CSS3 Ahmed Yousef
 
Web Browsers And Other Mistakes
Web Browsers And Other MistakesWeb Browsers And Other Mistakes
Web Browsers And Other Mistakeskuza55
 
REST, the internet as a database?
REST, the internet as a database?REST, the internet as a database?
REST, the internet as a database?Andrej Koelewijn
 
#2 of HTML and CSS3
#2 of HTML and CSS3 #2 of HTML and CSS3
#2 of HTML and CSS3 Ahmed Yousef
 
Web Page Test - Beyond the Basics
Web Page Test - Beyond the BasicsWeb Page Test - Beyond the Basics
Web Page Test - Beyond the BasicsAndy Davies
 
PL2235 2009 1 HTML
PL2235 2009 1 HTMLPL2235 2009 1 HTML
PL2235 2009 1 HTMLAliamat UBD
 
Web Browsers And Other Mistakes
Web Browsers And Other MistakesWeb Browsers And Other Mistakes
Web Browsers And Other Mistakesguest2821a2
 
Introduction To The OpenSocial API
Introduction To The OpenSocial APIIntroduction To The OpenSocial API
Introduction To The OpenSocial APIChristopher St. John
 
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaDre Armeda
 
Why Use Google Docs?
Why Use Google Docs?Why Use Google Docs?
Why Use Google Docs?lindahb1950
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System Channy Yun
 
Approaches To WordPress Theme Development
Approaches To WordPress Theme DevelopmentApproaches To WordPress Theme Development
Approaches To WordPress Theme DevelopmentCatch Themes
 

What's hot (20)

Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1Web 2.0 Lessonplan Day1
Web 2.0 Lessonplan Day1
 
Joseph-Smarr-Plaxo-OSCON-2006
Joseph-Smarr-Plaxo-OSCON-2006Joseph-Smarr-Plaxo-OSCON-2006
Joseph-Smarr-Plaxo-OSCON-2006
 
Plaxo OSCON 2006
Plaxo OSCON 2006Plaxo OSCON 2006
Plaxo OSCON 2006
 
HTTP/2 BrightonSEO 2018
HTTP/2 BrightonSEO 2018HTTP/2 BrightonSEO 2018
HTTP/2 BrightonSEO 2018
 
How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20
How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20
How To Make Any Site Blazing Fast!!! Tom Pool - London SEO Meetup Jan'20
 
#1 of HTML and CSS3
#1 of HTML and CSS3 #1 of HTML and CSS3
#1 of HTML and CSS3
 
Web Browsers And Other Mistakes
Web Browsers And Other MistakesWeb Browsers And Other Mistakes
Web Browsers And Other Mistakes
 
REST, the internet as a database?
REST, the internet as a database?REST, the internet as a database?
REST, the internet as a database?
 
#2 of HTML and CSS3
#2 of HTML and CSS3 #2 of HTML and CSS3
#2 of HTML and CSS3
 
Web Page Test - Beyond the Basics
Web Page Test - Beyond the BasicsWeb Page Test - Beyond the Basics
Web Page Test - Beyond the Basics
 
RESTful design
RESTful designRESTful design
RESTful design
 
PL2235 2009 1 HTML
PL2235 2009 1 HTMLPL2235 2009 1 HTML
PL2235 2009 1 HTML
 
PHP
PHPPHP
PHP
 
Web Browsers And Other Mistakes
Web Browsers And Other MistakesWeb Browsers And Other Mistakes
Web Browsers And Other Mistakes
 
Introduction To The OpenSocial API
Introduction To The OpenSocial APIIntroduction To The OpenSocial API
Introduction To The OpenSocial API
 
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre ArmedaReno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
Reno-Tahoe WordCamp 2011 - WordPress End User Security - Dre Armeda
 
Why Use Google Docs?
Why Use Google Docs?Why Use Google Docs?
Why Use Google Docs?
 
Php workshop L02 php basics
Php workshop L02 php basicsPhp workshop L02 php basics
Php workshop L02 php basics
 
Webware - from Document to Operating System
Webware - from Document to Operating System Webware - from Document to Operating System
Webware - from Document to Operating System
 
Approaches To WordPress Theme Development
Approaches To WordPress Theme DevelopmentApproaches To WordPress Theme Development
Approaches To WordPress Theme Development
 

Viewers also liked

Content Management
Content ManagementContent Management
Content Managementsanand0
 
Education: Insights from data
Education: Insights from dataEducation: Insights from data
Education: Insights from datasanand0
 
Mobility Needs in Financial Services
Mobility Needs in Financial ServicesMobility Needs in Financial Services
Mobility Needs in Financial Servicessanand0
 
Leveraging Technology
Leveraging TechnologyLeveraging Technology
Leveraging Technologysanand0
 
Travel 2.0
Travel 2.0Travel 2.0
Travel 2.0sanand0
 
Learning R
Learning RLearning R
Learning Rsanand0
 
Global Connections Renaissance Art Ppt
Global Connections Renaissance Art PptGlobal Connections Renaissance Art Ppt
Global Connections Renaissance Art Pptamiller
 
Greek Art & Architecture
Greek Art & ArchitectureGreek Art & Architecture
Greek Art & Architectureamiller
 

Viewers also liked (9)

Content Management
Content ManagementContent Management
Content Management
 
Education: Insights from data
Education: Insights from dataEducation: Insights from data
Education: Insights from data
 
Mobility Needs in Financial Services
Mobility Needs in Financial ServicesMobility Needs in Financial Services
Mobility Needs in Financial Services
 
7 donotsaftermeals
7 donotsaftermeals7 donotsaftermeals
7 donotsaftermeals
 
Leveraging Technology
Leveraging TechnologyLeveraging Technology
Leveraging Technology
 
Travel 2.0
Travel 2.0Travel 2.0
Travel 2.0
 
Learning R
Learning RLearning R
Learning R
 
Global Connections Renaissance Art Ppt
Global Connections Renaissance Art PptGlobal Connections Renaissance Art Ppt
Global Connections Renaissance Art Ppt
 
Greek Art & Architecture
Greek Art & ArchitectureGreek Art & Architecture
Greek Art & Architecture
 

Similar to Computer Networks: An Introduction

Developing Gadgets
Developing GadgetsDeveloping Gadgets
Developing GadgetsQuirk
 
HTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushHTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushPeter Lubbers
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09pemaquid
 
Introduction to Web Programming with Perl
Introduction to Web Programming with PerlIntroduction to Web Programming with Perl
Introduction to Web Programming with PerlDave Cross
 
20190516 web security-basic
20190516 web security-basic20190516 web security-basic
20190516 web security-basicMksYi
 
A Holistic View of Website Performance
A Holistic View of Website PerformanceA Holistic View of Website Performance
A Holistic View of Website PerformanceRene Churchill
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPyucefmerhi
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter Lubbers
 
1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development1 Introduction to Drupal Web Development
1 Introduction to Drupal Web DevelopmentWingston
 
HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)Performics.Convonix
 
Ajax to the Moon
Ajax to the MoonAjax to the Moon
Ajax to the Moondavejohnson
 
How the web works june 2010
How the web works june 2010How the web works june 2010
How the web works june 2010Mark Carter
 
Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010Matthew Mobbs
 

Similar to Computer Networks: An Introduction (20)

Html5
Html5 Html5
Html5
 
Shifting Gears
Shifting GearsShifting Gears
Shifting Gears
 
Developing Gadgets
Developing GadgetsDeveloping Gadgets
Developing Gadgets
 
WWW and HTTP
WWW and HTTPWWW and HTTP
WWW and HTTP
 
HTML5: The Next Internet Goldrush
HTML5: The Next Internet GoldrushHTML5: The Next Internet Goldrush
HTML5: The Next Internet Goldrush
 
HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09HTML5 - techMaine Presentation 5/18/09
HTML5 - techMaine Presentation 5/18/09
 
Introduction to Web Programming with Perl
Introduction to Web Programming with PerlIntroduction to Web Programming with Perl
Introduction to Web Programming with Perl
 
20190516 web security-basic
20190516 web security-basic20190516 web security-basic
20190516 web security-basic
 
A Holistic View of Website Performance
A Holistic View of Website PerformanceA Holistic View of Website Performance
A Holistic View of Website Performance
 
Lecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITPLecture 1 - Comm Lab: Web @ ITP
Lecture 1 - Comm Lab: Web @ ITP
 
Looking into HTML5
Looking into HTML5Looking into HTML5
Looking into HTML5
 
Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011Peter lubbers-html5-overview-sf-dev-conf-2011
Peter lubbers-html5-overview-sf-dev-conf-2011
 
1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development1 Introduction to Drupal Web Development
1 Introduction to Drupal Web Development
 
HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)HTML5 and Search Engine Optimization (SEO)
HTML5 and Search Engine Optimization (SEO)
 
Ajax to the Moon
Ajax to the MoonAjax to the Moon
Ajax to the Moon
 
Html5 Overview
Html5 OverviewHtml5 Overview
Html5 Overview
 
Lecture1 B Frames&Forms
Lecture1 B  Frames&FormsLecture1 B  Frames&Forms
Lecture1 B Frames&Forms
 
How the web works june 2010
How the web works june 2010How the web works june 2010
How the web works june 2010
 
Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010Web design 2 - Basic HTML 2010
Web design 2 - Basic HTML 2010
 
Lecture 9 Professional Practices
Lecture 9 Professional PracticesLecture 9 Professional Practices
Lecture 9 Professional Practices
 

Recently uploaded

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 

Recently uploaded (20)

Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 

Computer Networks: An Introduction

  • 2. A few questions before we start… How many of you have… Access to a PC and the Internet (home or nearby) Chatted online Used a Bluetooth device Video-chatted Uploaded a photo or video Your own blog or website Written a web application Contributed to an open source project
  • 3. What we will cover in What you need to learn in this session your syllabus Useful in Will help you Read up real life understand yourself
  • 4. Watch out I will deliberately lie once today You can guess where at the end of the class
  • 5. We will cover one or both these topics THE INTERNET THE NETWORK When you type a web site, how does it How did the information travel from appear the way it does on your browser? that machine into your machine?
  • 6. URL HTML XML HTTP SMTP CSS Javascript Hosting Hacking Privacy Piracy Security 1 ST TOPIC THE INTERNET
  • 7. If you search on Google for “network”… http://www.google.com/search?hl=en&q=network&... scheme resource path query
  • 8. When you type a URL… http://www.google.com/search?hl=en&q=network&... scheme resource path query What to ask for? What method? Which machine? http: Use the HTTP protocol, and connect to port 80 ftp: Use the FTP protocol, and connect to port 21 mailto: Use the SMTP protocol, and connect to port 25 etc. Use DNS (Domain Name System) to find the address of www.google.com > nslookup www.google.com Non-authoritative answer: Name: www.google.com Address: 92.52.125.20
  • 9. A HTTP request is sent to the resource GET /search?hl=en&q=network&meta= HTTP/1.1 Accept: image/gif, image/jpeg, */* Accept-Language: en-gb UA-CPU: x86 Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1) Host: www.google.com Proxy-Connection: Keep-Alive
  • 10. The resource sends back a response HTTP/1.1 200 OK Cache-Control: private, max-age=0 Date: Sat, 06 Dec 2008 04:46:55 GMT Expires: -1 Content-Type: text/html; charset=UTF-8 Set-Cookie: SS=Q0=bmV0d29yaw; path=/search Server: gws Content-Length: 29240 <!DOCTYPE html> <html> <head> <title>network - Google Search</title> <style type=text/css> ...
  • 11. This is what the resulting HTML looks like <!DOCTYPE html> <html> <head> <title>network - Google Search</title> <style type=text/css> body{background:#fff;... </style> <script type=text/javascript> ... </script> </head> <body id=gsr topmargin=3 marginheight=3> <div id=header> <div id=gbar> <nobr> <b class=gb1>Web</b> <a href=... class=gb1>Images</a> </nobr> .... </div> </div> </body> </html>
  • 12. It’s easy to create a web page yourself • Type some text and save it as something.html Here is some simple text • Add tags around it Here is some <b>bold</b> <i>italics</i> text • Add links <a href=“http://www.google.com/”>Google</a> • Create headings <h1>Heading</h1> • Upload it. Search for “free web hosting” Freehostia.com, Awardspace.com • Rent your own server online Amazon EC2 (Rs 5 / hr)
  • 13. The response need not be HTML • Text, images, video, audio as • Structured data transferred as XML / JSON • XML from Amazon’s ECommerce Service (ECS): <ItemSearchResponse xmlns=http://webservices.amazon.com/AWSECommerceService/2005-03-23> <Items> <Request> <IsValid>True</IsValid> <ItemSearchRequest><Author>J K Rowling</Author> <Condition>New</Condition> <DeliveryMethod>Ship</DeliveryMethod> ... </Items> </ItemSearchResponse> • HTML is a subset of XML with pre-defined tags
  • 14. You don’t want to show everyone everything Authorization: Are you who you say you are? – Most online mail sites asks for login and password – Some will remember you, using cookies – Passwords are stolen. Hence, two-factor authentication • Something you have + and something you know • Examples: Credit Card and PIN, RSA SecureID and passcode – Biometric sensors are common on most new laptops Authentication: Are you allowed to do that? – Use of “Pro” features on Yahoo! Mail or Flickr restricted to Pro users – What you’re allowed to do is often stored in one server. Other machines ask this server, “Can this fellow do that?”
  • 15. 2 ND TOPIC THE NETWORK
  • 16. What is a network? Examples of devices you connect? What medium connects these devices? How to connect multiple devices? How to talk simultaneously?