4-Oct-15 Basic Protocols. 2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you send.

Slides:



Advertisements
Similar presentations
Basic Internet Terms Digital Design. Arpanet The first Internet prototype created in 1965 by the Department of Defense.
Advertisements

TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 22 World Wide Web and HTTP.
The Internet Useful Definitions and Concepts About the Internet.
1 Java Networking – Part I CS , Spring 2008/9.
Layer 7- Application Layer
Chapter Extension 7 How the Internet Works © 2008 Prentice Hall, Experiencing MIS, David Kroenke.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
The Internet and the World Wide Web. Una DooneyThe Internet and WWWSlide 2 What is the Internet? A collection of networks (LANS and WANS) around the world.
28-Jun-15 Basic Protocols. 2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
Vocabulary URL = uniform resource locator: web address protocol –set of rules that networked computers follow in order to share data and coordinate communications.
15-Jul-15 Basic Protocols. 2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you.
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.
A global, public network of computer networks. The largest computer network in the world. Computer Network A collection of computing devices connected.
Computer Networks  Network - A system of computers interconnected in order to share information.  Data transmission - consists of sending and receiving.
CISCO NETWORKING ACADEMY Chabot College ELEC Application Layer Puzzles.
Human-Computer Interface Course 5. ISPs and Internet connection.
TCP/IP protocols Communication over Internet is mostly TCP/IP (Transmission Control Protocol over Internet Protocol) TCP/IP "stack" is software which allows.
Syllabus outcomes Describes and applies problem-solving processes when creating solutions Designs, produces and evaluates appropriate solutions.
 TCP/IP is the communication protocol for the Internet  TCP/IP defines how electronic devices should be connected to the Internet, and how data should.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
© 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.
How Web Servers and the Internet Work by by: Marshall Brainby: Marshall Brain
Internet Concept and Terminology. The Internet The Internet is the largest computer system in the world. The Internet is often called the Net, the Information.
Chapter 1: Introduction to Web Applications. This chapter gives an overview of the Internet, and where the World Wide Web fits in. It then outlines the.
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.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
ITIS 1210 Introduction to Web-Based Information Systems Chapter 23 How Web Host Servers Work.
15 Semester 1 JEOPARDY IndirectnetworksupportDNSDNSNetworkApps.NetworkApps.MoreNetworkApps.Misc.Misc
1 CSC111H Client-Server: An Introduction Dennis Burford
An Overview of the Internet: The Internet: Then and Now How the Internet Works Major Features of the Internet.
TCP/IP Transport and Application (Topic 6)
How Does the Internet Work? Protocols Protocols are rules that describe how computers communicate and exchange data. The Internet has a series of these.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
The Web and Web Services Jim Graham NR 621 Spring 2009.
Networks: LANs, WANs and Communication Protocols How do computers communicate?
TCP/IP (Transmission Control Protocol / Internet Protocol)
1 WWW. 2 World Wide Web Major application protocol used on the Internet Simple interface Two concepts –Point –Click.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
TCP =Transmission Control Protocol IP = Internet Protocol TCP/IP Protocol.
27.1 Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Cisco Discovery Semester 1 Chapter 6 JEOPADY RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands RouterModesWANEncapsulationWANServicesRouterBasicsRouterCommands.
Transmission Control Protocol (TCP) Internet Protocol (IP)
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
TCP/IP Protocol Suite ©Richard L. Goldman September 25, 2002.
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.
World Wide Web. The World Wide Web is a system of interlinked hypertext documents accessed via the Internet The World Wide Web is a system of interlinked.
Introduction to the Internet
Instructor Materials Chapter 5 Providing Network Services
How is all that data traffic controlled on the Internet?
Chapter 27 WWW and HTTP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Some bits on how it works
Networking for Home and Small Businesses – Chapter 6
Lecture 6: TCP/IP Networking By: Adal Alashban
Working at a Small-to-Medium Business or ISP – Chapter 7
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.
Web Development & Design Chapter 1, Sections 4, 5 & 6
Networking for Home and Small Businesses – Chapter 6
Working at a Small-to-Medium Business or ISP – Chapter 7
I. Basic Network Concepts
Working at a Small-to-Medium Business or ISP – Chapter 7
Basic Protocols 24-Nov-18.
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
Basic Protocols 19-Feb-19.
How Our Customers Communicate With Us
Networking for Home and Small Businesses – Chapter 6
Computer Networks Protocols
Presentation transcript:

4-Oct-15 Basic Protocols

2 Sockets Sockets, or ports, are a very low level software construct that allows computers to talk to one another When you send information from one computer to another, you send it to a port on the receiving computer If the computer is “listening” on that port, it receives the information In order for the computer to “make sense” of the information, it must know what protocol is being used Common port numbers are 80 (for web pages), 23 (for telnet) and 25 and 110 (for mail) Port numbers above 1024 are available for other kinds of communication between our programs

3 Protocols In order for computers to communicate with one another, they must agree on a set of rules for who says what, when they say it, and what format they say it in This set of rules is a protocol Different programs can use different protocols Protocols may be in ASCII (characters) or in binary Some common protocols are HTTP (for web pages), FTP (for file transfer), and SMTP (Simple Mail Transfer Protocol)

4 TCP/IP The Internet (and most other computer networks) are connected through TCP/IP networks TCP/IP is actually a combination of two protocols: IP, Internet Protocol, is used to move packets (chunks) of data from one place to another Places are specified by IP addresses: four single-byte (0..255) numbers separated by periods Example: TCP, Transmission Control Protocol, ensures that all necessary packets are present, and puts them together in the correct order TCP/IP forms a “wrapper” around data of any kind The data uses its own protocol, for example, FTP

5 Hostnames and DNS servers The “real” name of a computer on the internet is its four-byte IP address People, however, don’t like to remember numbers, so we use hostnames instead For example, the hostname is www.cis.upenn.edu A DNS (Domain Name Server) is a computer that translates hostnames into IP addresses Think of it as like a phone book--names to useful numbers Of course, you have to know the IP address of the DNS in order to use it! You usually get two DNS numbers from your Internet Service Provider (ISP)

6 DHCP If you have a web site, it must be hosted on a computer that is “permanently” on the Web This computer must have a permanent IP address There aren’t enough IP addresses for the number of computers there are these days If you have no permanent web site, you can be given a temporary (dynamically allocated) IP address each time you connect to the Web Similarly, if you have a home or office network, only one computer needs a permanent IP address The rest of the computers can be assigned internal, permanent IP addresses (not known to the rest of the world) They can also be assigned internal IP addresses dynamically DHCP (Dynamic Host Configuration Protocol) is a way of assigning temporary IP addresses as needed

7 URLs A URL, Uniform Resource Locater, defines a location on the Web A URL has up to five parts: Protocol -- http is used for Web pages Hostname Port is default for http requests Path to a given page Anchor -- a location within the page

8 TryURL.java import java.net.*; // Gittleman, Example 2.2, pp import java.applet.Applet; public class ShowURL extends Applet { public void init() { try { URL url = new URL(getParameter("url")); getAppletContext().showDocument(url); } catch(MalformedURLException e) { e.printStackTrace(); } } }

9 About the ShowURL.java applet import java.net.*; This is the package that defines sockets, URLs, etc. URL url = new URL(getParameter("url")); Constructs a URL object from a text string getAppletContext() An AppletContext describes the document containing this applet and the other applets in the same document showDocument(url) Replaces the Web page currently being viewed with the given URL catch(MalformedURLException e) This exception is thrown if the given String cannot be parsed by newURL( String )

10 Running the applet 1 2 3

11 Applet results If the applet is run using appletviewer, you get an applet, but it’s blank Unless, that is, the page you go to has a applet on it If the applet is run using a browser, First, a web page appears, with a gray rectangle for the applet (which is just starting up) Then the initial web page is replaced by the web page specified by the URL You are now in your regular browser, just as if you had typed the URL into it

12 The End