1 i206: Lecture 21: Networking, WWW, and Internet Protocols Marti Hearst Spring 2012.

Slides:



Advertisements
Similar presentations
Internet and WWW CS216. Open System Interconnection (OSI)
Advertisements

Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 2 The OSI Model and the TCP/IP.
Inter-Process Communication i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg; Calvert and Donahoo.
Introduction To Networking
Networking and Internetworking: Standards and Protocols i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg.
Introduction to Management Information Systems Chapter 5 Data Communications and Internet Technology HTM 304 Fall 07.
Course Review i206 Fall 2010 John Chuang. 2 Outline  Test 3 topics  Course review  Course evaluation.
Data Networking Fundamentals Unit 7 7/2/ Modified by: Brierley.
Distributed Systems & Networks i206 Fall 2010 John Chuang Some slides adapted from Coulouris, Dollimore and Kindberg.
Transport Layer TCP and UDP IS250 Spring 2010
Networking and Internetworking i206 Fall 2010 John Chuang.
Inside of a computer… What happens when you turn your computer on? What loads? Where are applications stored? How are do they run? In what form is information.
 The Open Systems Interconnection model (OSI model) is a product of the Open Systems Interconnection effort at the International Organization for Standardization.
©Brooks/Cole, 2003 Chapter 6 Computer Networks. ©Brooks/Cole, 2003 Understand the rationale for the existence of networks. Distinguish between the three.
Lecturer: Tamanna Haque Nipa
1 Review of Important Networking Concepts Introductory material. This slide uses the example from the previous module to review important networking concepts:
CS 356 Systems Security Spring Dr. Indrajit Ray
Lesson 3: Introduction to Internet Technology
Copyright © 2012 Certification Partners, LLC -- All Rights Reserved Lesson 3: Introduction to Internet Technology.
Chapter 3 The Basics of Networking
Networking Basics TCP/IP TRANSPORT and APPLICATION LAYER Version 3.0 Cisco Regional Networking Academy.
What is a Protocol A set of definitions and rules defining the method by which data is transferred between two or more entities or systems. The key elements.
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
Characteristics of Communication Systems
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Network Services Networking for Home and Small Businesses – Chapter.
THE OSI MODEL AND THE TCP/IP PROTOCOL SUITE CS 1202 Lectur3 part2.
ACM 511 Chapter 2. Communication Communicating the Messages The best approach is to divide the data into smaller, more manageable pieces to send over.
1.1 What is the Internet What is the Internet? The Internet is a shared media (coaxial cable, copper wire, fiber optics, and radio spectrum) communication.
Copyright © 2002 Pearson Education, Inc. Slide 3-1 CHAPTER 3 Created by, David Zolzer, Northwestern State University—Louisiana The Internet and World Wide.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Computer Communication & Networks Lecture # 02 Nadeem Majeed Choudhary
1 Version 3.0 Module 11 TCP Application and Transport.
Chap 9 TCP/IP Andres, Wen-Yuan Liao Department of Computer Science and Engineering De Lin Institute of Technology
Okay, here’s a scenario… You’re sitting at a computer…. Type in www. yourcompany.com As soon as you click on search your browser will ask your Operation.
Data Transmission Basics for Digital Investigations.
Computer Networks. Introduction Computer Network2 A History Lesson of Networking 1969 – ARPANET, first packet switched network consist of UCLA, Stanford,
CS1Q Computer Systems Lecture 17 Simon Gay. Lecture 17CS1Q Computer Systems - Simon Gay2 The Layered Model of Networks It is useful to think of networks.
TCOM 509 – Internet Protocols (TCP/IP) Lecture 03_b Protocol Layering Instructor: Dr. Li-Chuan Chen Date: 09/15/2003 Based in part upon slides of Prof.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
Net 221D:Computer Networks Fundamentals
ISDS 4120 Project 1 DWAYNE CARRAL JR 3/27/15. There are seven layers which make up the OSI (Open Systems Interconnection Model) which is the model for.
2.1 Chapter 2 Network Models Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Voice Over Internet Protocol (VoIP) Copyright © 2006 Heathkit Company, Inc. All Rights Reserved Presentation 5 – VoIP and the OSI Model.
Dr. ClincyLecture1 Chapter 2 (handout 1– only sections 2.1, 2.2 and 2.3) 1 of 10 Dr. Clincy Professor of CS Exam #3 Monday (3/14/16): Opened Book, No Computer,
Network Models. The OSI Model Open Systems Interconnection (OSI). Developed by the International Organization for Standardization (ISO). Model for understanding.
The OSI Model. Understanding the OSI Model In early 1980s, manufacturers began to standardize networking so that networks from different manufacturers.
COMPUTER NETWORKS Hwajung Lee. Image Source:
Lecture # 02 Network Models Course Instructor: Engr. Sana Ziafat.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Network Architecture IS250 Spring 2010 John Chuang
6/28/ A global mesh of interconnected networks (internetworks) meets these human communication needs. Some of these interconnected networks are.
Internet Basics. The Internet: Then and Now The Internet was created by the Advanced Research Projects Agency (ARPA) and the U.S. Department of Defense.
Computer Networks.
Computer Networks.
Level 2 Diploma Unit 10 Setting up an IT Network
The OSI Model and the TCP/IP Protocol Suite
OSI Protocol Stack Given the post man exemple.
Networking for Home and Small Businesses – Chapter 6
Data Networking Fundamentals
Networking for Home and Small Businesses – Chapter 6
The OSI Model and the TCP/IP Protocol Suite
Topic 5: Communication and the Internet
TCP/IP Protocol Suite: Review
1 TRANSMISSION CONTROL PROTOCOL / INTERNET PROTOCOL (TCP/IP) K. PALANIVEL Systems Analyst, Computer Centre Pondicherry University, Puducherry –
Lesson 3: Introduction to Internet Technology
Networking for Home and Small Businesses – Chapter 6
The OSI Model and the TCP/IP Protocol Suite
Unit – III Network Essentials
Presentation transcript:

1 i206: Lecture 21: Networking, WWW, and Internet Protocols Marti Hearst Spring 2012

2 Network Bits & Bytes Binary Numbers Number Systems Gates Boolean Logic Circuits CPU Machine Instructions Assembly Instructions Program Algorithms Application Memory Data compression Compiler/ Interpreter Operating System Data Structures Analysis I/O Memory hierarchy Design Methodologies/ Tools Process Truth table Venn Diagram DeMorgan ’ s Law Numbers, text, audio, video, image, … Decimal, Hexadecimal, Binary AND, OR, NOT, XOR, NAND, NOR, etc. Register, Cache Main Memory, Secondary Storage Context switch Process vs. Thread Locks and deadlocks Op-code, operands Instruction set arch Lossless v. lossy Info entropy & Huffman code Adders, decoders, Memory latches, ALUs, etc. Data Representation Data storage Principles ALUs, Registers, Program Counter, Instruction Register Network Distributed Systems Security Cryptography Standards & Protocols Inter-process Communication Searching, sorting, Encryption, etc. Stacks, queues, maps, trees, graphs, … Big-O TCP/IP, RSA, … Confidentiality Integrity Authentication … Formal models Finite automata regex

3 Topics Network abstractions Network architecture How the WWW works, end to end –Illustrated with the example of a web search engine

4 Network as Communication Channel Source: Coulouris, Dollimore and Kindberg

5 Network Cloud client server Network

6 Network: Routers & Links Hosts Links or local networks A DE B C Routers Source: Coulouris, Dollimore and Kindberg

7 7 Local Exchange Carrier (LEC) Router ISP Backbone Provider 1 Router Client Tandem Switch Inter-exchange Carrier (IXC) Long- Distance Network Corporate LAN Firewall Analog Modem Content Provider Server Router Remote ISP Point of Presence xDSL Modem Cable Modem Packet Network Headend Cable ISP Local Loop DNS Local Ingress Switch Exchange Point Router Internet Service ProvidersCustomer Premises Internet backbonesTelephone Network Local Egress Switch Backbone Provider 2 router Mobile Client Wireless ISP Network: More Details

8 Network Utilities Run from Terminal in unix/mac –Ping: round trip time on an IP network from the originating host to the destination computer –Traceroute: displaying the route (path) and measuring transit delays of packets across an IP network ends a sequence of Internet Control Message Protocol(ICMP) echo request packets addressed to a destination host. $ ping PING ( ): 56 data bytes 64 bytes from : icmp_seq=0 ttl=61 time=0.846 ms 64 bytes from : icmp_seq=1 ttl=61 time=0.915 ms

9 TraceRoute $ traceroute traceroute to ( ), 64 hops max, 52 byte packets 1 g2-11.inr-270-doecev.berkeley.edu ( ) ms ms ms 2 g3-3.inr-202-reccev.berkeley.edu ( ) ms ms ms 3 t5-5.inr-211-srb.berkeley.edu ( ) ms ms ms 4 www ( ) ms ms ms $ traceroute traceroute: Warning: has multiple addresses; using traceroute to ( ), 64 hops max, 52 byte packets 1 g2-11.inr-270-doecev.berkeley.edu ( ) ms ms ms 2 g3-3.inr-201-sut.berkeley.edu ( ) ms ms ms 3 xe inr-001-sut.berkeley.edu ( ) ms ms ms 4 dc-svl-agg1--ucb-10ge.cenic.net ( ) ms ms ms 5 dc-svl-core1--svl-agg1-10ge.cenic.net ( ) ms ms ms 6 dc-svl-px1--svl-core1-10ge-2.cenic.net ( ) ms ms ms ( ) ms ms ms ( ) ms ms ms ( ) ms ms ms ( ) ms ms ms 11 nuq04s07-in-f19.1e100.net ( ) ms ms ms

10 Network Types RangeBandwidth (Mbps)Latency (ms) LAN1-2 kms WANworldwide MAN2-50 kms Wireless LAN km Wireless WANworldwide Internetworldwide  An internet: a set of interconnected networks  The Internet: the global internetwork based upon the Internet Protocol (IP) Source: Coulouris, Dollimore and Kindberg circa 2000

11 Network Building Blocks Transmission media –Copper (coax, twisted pair), optical fiber, free space (wireless) Signals –Electrical currents, light, RF (radio-frequency), microwave Hardware devices –End hosts, network interfaces –Routers, switches, hubs, bridges, repeaters Software components –Communication protocol stack

12 Network Architecture

13 Network Architecture Networking can be quite complex and requires a high degree of cooperation between the involved parties. Cooperation is achieved by forcing parties to adhere to a set of rules and conventions (protocol). The complexity of the communication task is reduced by using multiple protocol layers: Each layer is implemented independently. Each layer is responsible for a specific subtask. Layers are grouped in a hierarchy. A structured set of protocols is called a network architecture, protocol architecture, or protocol suite.

14 TCP/IP Model Appl Trans port Net work Link Net work Link Net work Link Appl Trans port Net work Link Host AHost BRouter 1Router 2 end-to-end point-to-point end-to-end

15 TCP/IP Model Appl Trans port Net work Link Net work Link Net work Link Appl Trans port Net work Link Host AHost BRouter 1Router 2 end-to-end point-to-point end-to-end client server (ping)

16 Message Flow Appl Trans port Net work Link Net work Link Net work Link Appl Trans port Net work Link Host AHost BRouter 1Router 2

17 Encapsulation Appl Trans port Net work Link Net work Link Net work Link Appl Trans port Net work Link Host AHost BRouter 1Router 2 Data

18 Encapsulation Example: Sending HTTP message using TCP/IP over Ethernet HTTP message TCP header IP header Ethernet header Ethernet frame port TCP IP IP datagram/packet TCP segment HTTP message Adapted from Coulouris, Dollimore and Kindberg

19 ISO layer model Application (layer 7): specific to application need Presentation (layer 6): conversion of data representation Session (layer 5): access mgt, synchronization Transport (layer 4): end-to-end delivery, congestion and flow control Network (layer 3): addressing, routing Data Link (layer 2): framing, error detection Physical (layer 1): bits (0/1), voltages, frequencies, wires, pins, … Application layer Presentation layer Session layer Transport layer Network layer Data link layer Physical layer Layer 1 Layer 2 Layer 7 Layer 6 Layer 5 Layer 4 Layer 3 ISO/OSI Reference Model

20 Layered Protocol Architecture Application layer Transport layer Network layer Link layer TCP/IP Model Physical layer Layer 1 Layer 2 Layer 7 Layer 4 Layer 3 Software Operating System Hardware Application layer Presentation layer Session layer Transport layer Network layer Data link layer Physical layer Layer 1 Layer 2 Layer 7 Layer 6 Layer 5 Layer 4 Layer 3 ISO/OSI Reference Model Socket API

21 The “ IP Hourglass ” IP TCP, UDP HTTP, FTP, SSH, SMTP, Your python program,... coax, twisted pair, fiber, wireless, pigeons,... Ethernet, WiFi, SONET Physical Layer Data Link Layer Network Layer Transport Layer Application Layer A single protocol

22 Ensuring Reliability Layering: –Hourglass: many different applications and underlying network technologies, but Internet Protocol establishes universal addressing scheme –Envelope/Encapsulation: layer-specific functionalities; isolation between layers Reliable communication over unreliable network –IP provides “ best-effort ” packet delivery service –TCP supports retransmission of lost packets

23 Internet and Web are not synonymous Internet is a global communication network connecting millions of computers. World Wide Web (WWW) is one component of the Internet, along with , chat, etc. Now we’ll talk about both. Internet vs. WWW

24 How Does the WWW Work? Let’s say Oski received with the address for the i206 web page, or saw it on a flyer. He goes to a networked computer, and launches a web browser. He then types the address, known as a URL, into the address bar of the browser. What happens next? (URL stands for Uniform Resource Locator)

25 How Does the WWW Work? Say Marti has written some web pages for her class on her PC. This computer is connected to the Internet and runs a program called Apache. This allows herald to act as a web server. She copied the pages to a directory on a computer on her local network at the ischool. The computer’s name is herald. Web server

26 How Does the WWW Work? How does the computer at Oski’s desk figure out where the i206 web pages are? In order for him to use the WWW, Oski’s computer must be connected to another machine acting as a web server (via his ISP). This machine is in turn connected to other computers, some of which are routers. Routers figure out how to move information from one part of the network to another. There are many different possible routes. iSchool Network

27 How Does the WWW Work? How do Oski’s server and the routers know how to find the right server? First, the url has to be translated into a number known as an IP address. Oski’s server connects to a Domain Names Server (DNS) that knows how to do the translation. DNS server

28 Slide adapted from CIW foundations Domain Name Syntax Domain names are read right to left, from general to more specific locations For example, can be interpreted as follows: com — commercial site top-level domain xyz — registered company domain name www — host name (it is a convention to name web server hosts “www” which stands for “world wide web”)

29 Slide adapted from CIW foundations Typical Domain Name Server (host) name Registered company domain name Domain category (top-level domain) Domain names are part of URLs, used in web pages.

30 Slide adapted from CIW foundations Top-Level Domains com, biz, cc — commercial or company sites edu — educational institutions, typically universities org — organizations; originally meant for clubs, associations and nonprofit groups mil — U.S. military gov — U.S. civilian government net — network sites, including ISPs int — international organizations (rarely used) Many other top level domains are available

31 Slide adapted from CIW foundations Converting Domain Names Domain names are for humans to read. The Internet actually uses numbers called IP addresses to describe network addresses. The Domain Name System (DNS) – resolves IP addresses into easily recognizable names For example: – = A domain name and its IP address refer to the same Web server.

32 Internet Addresses The internet is a network on which each computer must have a unique address. The Internet uses IP addresses; for example, herald’s IP address is Internet Protocol version 4 (IPv4) – supports 32-bit dotted quad IP address format –Four sets of numbers, each set ranging from 0 to 255 –UC Berkeley’s LAN addresses range from to –Other addresses in the iSchool LAN include Using this setup, there are approximately 4 billion possible unique IP addresses Router software knows how to use the IP addresses to find the target computer.

33 Slide adapted from CIW foundations How the Internet Works Network Protocols: –Protocol – an agreed-upon format for transmitting data between two devices Like a secret handshake –The Internet protocol is TCP/IP –The WWW protocol is HTTP Network Packets: Typically a message is broken up into smaller pieces and re-assembled at the receiving end. These pieces of information, surrounded by address information are called packets

34 IP Packet Format (v4) Total Length in bytes (16) Time to Live (8) Options (if any) Bit 0Bit 31 Version (4) Hdr Len (4) TOS (8) Identification (16 bits) Flags (3) Fragment Offset (13) Source IP Address (32) Destination IP Address (32) Header Checksum (16)Protocol (8) Data (variable length) Header Data Field length in bits

35 How Does the WWW Work? What happens now that the request for information from Oski’s browser has been received by the web server herald at The web server processes the url to figure out which page on the server is requested. It then sends all the information from that page back to the requesting address. iSchool Network

36 Reading a URL ischool.berkeley.edu/i206/s12/index.html = HyperText Transfer Protocol courses = service name (often is www).ischool = host name.berkeley = primary domain name.edu/ = top level domain i206/= directory name s12/= directory name index.html = file name of web page

37 Web Pages and HTML So what do we see at ?

38 Web Pages and HTML What does HTML look like?

39 HTML HyperText Markup Language –Uses which mark up the text and tell the browser how to display the content. –A backslash tag means the end of the command but is sometimes optional Examples –This is boldface text. – indicates a paragraph break – This is a large heading – This is a smaller heading

40 HTML Hyperlinks Hyperlink is the most important: 100 Genetics & Plant Biology Bldg –The green part is called anchor text It’s the text you see on the link –The pink part is the url that the link will take you to if you click on it. The at the front indicates the http (Web) protocol. –The … is the command that indicates the enclosed information is a hyperlink, and the that text between the tags is the anchor text. A hyperlink can be clicked on by a person OR followed by a computer program.

41 HTTP HTTP is the protocol used by the WWW When a user clicks on a hyperlink in their web browser, this sends an HTTP command to the Web server named in the URL This command usually is to “GET” the contents of the web page and return them to the user’s browser. It is a very simple protocol –It relies on the TCP/IP functionality

42 HTTP Request: Example Request line GET i141/s07/index.html HTTP/1.1 Host: courses.ischool.berkeley.edu Blank line Request header This information is received by the web server at : Because HTTP is built on TCP/IP, the web server knows which IP address to send the contents of the web page back to.

43 How Does the WWW Work? When Oski typed in the url for the i206 home page, this was turned into an HTTP request and routed to the web server in Berkeley. The web server then decomposed the url and figured out which web page in its directories was being asked for. The server then sends the HTML contents of the page back to Oski’s IP address. iSchool Network Oski’s browser receives these HTML contents and renders the page in graphical form. If he clicks on a hyperlink in that page, a similar sequence of events occurs.