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

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSJoshuaGantuangco2
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 

Recently uploaded (20)

Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTSGRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
GRADE 4 - SUMMATIVE TEST QUARTER 4 ALL SUBJECTS
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 

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?