Advanced Programming in Java

Slides:



Advertisements
Similar presentations
PowerPoint presentation of first 25 pages of instructional manual Edith Fabiyi Essentials of Internet Access.
Advertisements

Basic Internet Terms Digital Design. Arpanet The first Internet prototype created in 1965 by the Department of Defense.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Socket Programming.
1 Java Networking – Part I CS , Spring 2008/9.
Davide Rossi 2002 Using Sockets in Java. 2Davide Rossi 2002 TCP/IP  A protocol is a set of rules that determine how things communicate with each other.
INTRODUCTION TO WEB DATABASE PROGRAMMING
NAVIGATING THE INTERNET ALPHABET SOUP.  A global network that connects millions of computers all over the world.  The Internet backbone is the central.
© 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.
Introduction to Interprocess communication SE-2811 Dr. Mark L. Hornick 1.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Web Services Description Language (WSDL) Jason Glenn CDA 5937 Process Coordination in Service and Computational Grids September 30, 2002.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Jozef Goetz, Application Layer PART VI Jozef Goetz, Position of application layer The application layer enables the user, whether human.
1 CSC111H Client-Server: An Introduction Dennis Burford
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
CS 7: Introduction to Computer Programming Java and the Internet Sections ,2.1.
Introduction to Sockets “A socket is one endpoint of a two-way communication link between two programs running on the network. A socket is bound to a port.
The Web and Web Services Jim Graham NR 621 Spring 2009.
By Vivek Dimri. Basic Concepts on Networking IP Address – Protocol – Ports – The Client/Server Paradigm – Sockets The Java Networking Package – The InetAddress.
CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.
Protocols Monil Adhikari. Agenda Introduction Port Numbers Non Secure Protocols FTP HTTP Telnet POP3, SMTP Secure Protocols HTTPS.
HOW THE INTERNET WORKS. Introduction : The internet has brought revolutionary changes Has become a medium for interaction and information Can access to.
Networking Mehdi Einali Advanced Programming in Java 1.
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.
Internet Essentials. The History of the Internet The Internet started when the Advanced Research Projects Agency (ARPA) of the United States Defense Department.
Web Development & Design Foundations with XHTML Chapter 1 Key Concepts 1.
Prepared by: Dr. Abdallah Mohamed, AOU-KW Unit9: Internet programming 1.
1 Chapter 1 INTRODUCTION TO WEB. 2 Objectives In this chapter, you will: Become familiar with the architecture of the World Wide Web Learn about communication.
Introduction to the Internet
CS299: Web Programming and Design Instructor: Dr. Fang (Daisy) Tang
Internet Socket Programing
Chapter Objectives In this chapter, you will learn:
Networking Based Applications
Instructor Materials Chapter 5 Providing Network Services
HTTP AND ABSTRACTION ON THE INTERNET
Technologies and Applications
Computer Roles in a Network
Network Wiring and Reference
E-commerce | WWW World Wide Web - Concepts
E-commerce | WWW World Wide Web - Concepts
Naming in Distributed Web-based Systems
Some bits on how it works
Understand the OSI Model Part 2
Networking for Home and Small Businesses – Chapter 6
Professional Web Designing For Absolute Beginners
Understanding the OSI Reference Model
HTTP: the hypertext transfer protocol
Web Development & Design Chapter 1, Sections 4, 5 & 6
Client-Server Interaction
Networking for Home and Small Businesses – Chapter 6
Internet Protocol Mr. Paulk.
Topic 5: Communication and the Internet
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
How did the internet develop?
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
Web Page Concept and Design :
HTTP and Abstraction on the Internet / The Need for DNS
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
Networks & Communication (continued)
Part of Chapter 1 Key Concepts Networks
Protocols 2 Key Revision Points.
COSC-100 (Elements of Computer Science) Prof. Juola
Internet Applications & Programming
Networking for Home and Small Businesses – Chapter 6
4.01 How Web Pages Work.
The Internet and Electronic mail
Web Programming : Building Internet Applications Chris Bates CSE :
Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.
Presentation transcript:

Advanced Programming in Java Networking Mehdi Einali

agenda Basic Concepts on Networking The Java Networking Package IP Address Protocol Ports The Client/Server Paradigm Sockets The Java Networking Package The ServerSocket and the Socket Class The MulticastSocket and the DatagramPacket Class

Basic Concepts on Networking The Internet A global network of computers connected together in various ways Remains functional despite of diversity of hardware and software connected together Possible through communication standards defined and conformed to Guarantee compatibility and reliability of communication

IP Address Logically similar to the traditional mailing address An address uniquely identifies a particular object Each computer connected to the Internet has a unique IP address (Version 4) A 32-bit number used to uniquely identify each computer connected to the Internet 192.1.1.1 docs.rinet.ru(via dns) 4294967296 (232) addresses Pv6 uses a 128-bit address, theoretically allowing 2128, or approximately 3.4×1038 addresses

Protocol Why protocols? Definition Different types of communication occurring over the Internet Each type of communication requires a specific and unique protocol Definition Set of rules and standards that define a certain type of Internet communication

Protocol-2 Consider this type of conversation: "Hello." "Hello. Good afternoon. May I please speak at Joan?" "Okay, please wait for a while." "Thanks.“ Social protocol used in a telephone conversation Gives us confidence and familiarity of knowing what to do

Protocol stack Post Cargo Post Cargo Tehran Envelope Package INOC Envelope Envelope Accounting Loan Request Loan Request Loan Manager Formal Letter Formal Letter Persian Language Persian Language Persian Alphabet Persian Alphabet Paper and Pen Paper and Pen

Network protocol stack

Net protocols Some important protocols used over the Internet Hypertext Transfer Protocol (HTTP) Used to transfer HTML documents on the Web File Transfer Protocol (FTP) More general compared to HTTP Allows you to transfer binary files over the Internet Both protocols have their own set of rules and standards on how data is transferred Java provides support for both protocols

Ports Protocols only make sense when used in the context of a service HTTP protocol is used when you are providing Web content through an HTTP service Each computer on the Internet can provide a variety of services Why Ports? Ports locate appropriate process with is responsible to service A 16-bit number that identifies each service offered by a network server 80 : http, 21: ftp Given port values below 1024

socket Definitions: Software abstraction for an input or output medium of communication Communication channels that enable you to transfer data through a particular port An endpoint for communication between two machines A particular type of network communication used in most Java network programming Java performs all of its low-level network communication through sockets

The ServerSocket Class

The Socket Class