CSI 3125, Preliminaries, page 1 Networking. CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable.

Slides:



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

COP 4930 Computer Network Projects Summer C 2004 Prof. Roy B. Levow Lecture 1.
IS 247 Introduction to Web Application Development Tim Wu.
Socket Programming.
A CHAT CLIENT-SERVER MODULE IN JAVA BY MAHTAB M HUSSAIN MAYANK MOHAN ISE 582 FALL 2003 PROJECT.
The Internet Useful Definitions and Concepts About the Internet.
1 Java Networking – Part I CS , Spring 2008/9.
Layer 7- Application Layer
Networking Support In Java 2 Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Jacob Boston Josh Pfeifer. Definition of HyperText Transfer Protocol How HTTP works How Websites work GoDaddy.com OSI Model Networking.
McGraw-Hill©The McGraw-Hill Companies, Inc., 2004 Application Layer PART VI.
Networking Support In Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Networks: HTTP and DNS1 The Internet and HTTP and DNS Examples.
Networks: HTTP and DNS1 Internet, HTTP and DNS Examples.
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.
Networking Support In Java 2 Fawzi Emad Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
© 2004, Robert K. Moniot Chapter 1 Introduction to Computers and the Internet.
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.
A global, public network of computer networks. The largest computer network in the world. Computer Network A collection of computing devices connected.
INTRODUCTION TO WEB DATABASE PROGRAMMING
Socket Programming -What is it ? -Why bother ?. Basic Interface for programming networks at transport level It is communication end point Used for inter.
Copyright © Texas Education Agency, All rights reserved.1 Web Technologies Web Administration.
Computer Networks  Network - A system of computers interconnected in order to share information.  Data transmission - consists of sending and receiving.
Human-Computer Interface Course 5. ISPs and Internet connection.
Chapter 10 Intro to Routing & Switching.  Upon completion of this chapter, you should be able to:  Explain how the functions of the application layer,
思科网络技术学院理事会. 1 Application Layer Functionality and Protocols Network Fundamentals – Chapter 3.
How Web Servers and the Internet Work by by: Marshall Brainby: Marshall Brain
Introduction to Interprocess communication SE-2811 Dr. Mark L. Hornick 1.
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.
 Socket  The combination of an IP address and a port number. (RFC 793 original TCP specification)  The name of the Berkeley-derived application programming.
Web Page Design I Basic Computer Terms “How the Internet & the World Wide Web (www) Works”
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
I. Basic Network Concepts. I.1 Networks Network Node Address Packet Protocol.

 TCP (Transport Control Protocol) is a connection-oriented protocol that provides a reliable flow of data between two computers.  TCP/IP Stack Application.
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
How Does the Internet Work? Protocols Protocols are rules that describe how computers communicate and exchange data. The Internet has a series of these.
CIS 250 Advanced Computer Applications Internet/WWW Review.
1. I NTRODUCTION TO N ETWORKS Network programming is surprisingly easy in Java ◦ Most of the classes relevant to network programming are in the java.net.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
Application Layer Honolulu Community College Cisco Academy Training Center Semester 1 Version
TCP/IP (Transmission Control Protocol / Internet Protocol)
Socket Programming Introduction. Socket Definition A network socket is one endpoint in a two-way communication flow between two programs running over.
INTERNET PROTOCOLS. Microsoft’s Internet Information Server Home Page Figure IT2031 UNIT-3.
Getting Connected Overview Getting Connected Overview.
Transmission Control Protocol (TCP) Internet Protocol (IP)
UNIT-6. Basics of Networking TCP/IP Sockets Simple Client Server program Multiple clients Sending file from Server to Client Parallel search server.
How Web Servers and The Internet Work The Basic Process.
1 Network Communications A Brief Introduction. 2 Network Communications.
Advance Computer Programming Networking Basics – explores the java.net package which provides support for networking. – Also Called “programming for the.
LAN Chat server BY: VIPUL GUPTA VIKESH SINGH SUKHDEEP SINGH.
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.
Network Programming. These days almost all devices.
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.
MCA – 405 Elective –I (A) Java Programming & Technology
Some bits on how it works
Socket Programming Cal Poly Pomona Young CS380.
Lecture 6: TCP/IP Networking By: Adal Alashban
Network Programming Introduction
Packet Switching To improve the efficiency of transferring information over a shared communication line, messages are divided into fixed-sized, numbered.
Advanced Programming in Java
I. Basic Network Concepts
Web Design & Development
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
Internet Applications & Programming
Computer Networks Protocols
Exceptions and networking
Presentation transcript:

CSI 3125, Preliminaries, page 1 Networking

CSI 3125, Preliminaries, page 2 Networking A network represents interconnection of computers that is capable of sharing files and information between multiple systems. The computer which receives service is called client and The computer which provides service is called server. The term network programming refers to writing programs that execute across multiple devices (computers), in which the devices are all connected to each other using a network. There is a unique identification number called IP address (Internet Protocol) allotted to every computer on a network or Internet. An IP address consists of four dotted decimal numbers between 0 and 255, such as

CSI 3125, Preliminaries, page 3 Networking The computers in a network make use of this IP address in order to communicate with each other. Since it is not easy to remember an IP address, they are often mapped to meaningful names called domain names or hostnames. Special servers called Domain Name Servers (DNS) are available on the Internet that translate host names into IP addresses.

CSI 3125, Preliminaries, page 4 Networking When a computer specifies a site address, it first asks the DNS to translate this domain name into a numeric IP address and then sends the request using the IP address. Need to specify certain set of rules to communicates with another system. A protocol is a set of rules defining how computers communicate: such as the format of addresses, how data is split into packets, etc.

CSI 3125, Preliminaries, page 5 Networking There are many different protocols defining different aspects of network communication. For example HTTP is used to transfer HTML documents on the Web and FTP allows you to transfer binary files over the Internet. Both protocols have their own set of rules and standards on how data is transferred.

CSI 3125, Preliminaries, page 6 Networking Each computer with an IP address has several thousand logical ports Each computer on the internet can provide a variety of services and the type of service Each port is identified by a number from 1 to 65,535. and each port can be allocated to a particular service. For example, the HTTP service, generally runs on port 80: we say that a web server listens on port 80 for incoming connections. SMTP or servers run on port 25.

CSI 3125, Preliminaries, page 7 Networking When data is sent to a web server on a particular machine at a particular IP address, it is also sent to a particular port on that machine. The receiver checks each packet it sees for the port and sends the data to any programs that are listening to the specified port. Port numbers from 1 to 1023 are reserved for well-known services such as FTP, HTTP, and .

CSI 3125, Preliminaries, page 8 Socket Communication The socket is the software abstraction used to represent the "terminals" of a connection between two machines. Network programming usually involves a server and one or more clients. The client sends requests for information/services own by the Server. Once the connection is established between Client and Server, they can start sending / receiving information. Socket acts as an interface between sever and client It create a communication channel A programmer can use that channel to send data between the two machines.

CSI 3125, Preliminaries, page 9 Socket Communication Java treats socket communications as I/O operations; thus programs can read from or write to sockets. The socket associates the server program with a specific port on the machine where it runs so any client program anywhere in the network with a socket associated with that same port can communicate with the server program. The server waits and listens to the socket for a client to make a connection request

CSI 3125, Preliminaries, page 10 Socket Communication

CSI 3125, Preliminaries, page 11 Client Server Comminication The server accepts the connection request from client which contains the name of the server and port number. Upon acceptance, the server creates a new socket bound to a different port and this new socket is dedicated for serving the client that had sent request. The original socket can continue to listen for further connection requests

CSI 3125, Preliminaries, page 12 Client Server Comminication

CSI 3125, Preliminaries, page 13 The Java Networking Package The java.net package contains a collection of classes and interfaces that provide functionalities for writing programs Some of the important classes available in java.net Package are: InetAddress ServerSocket Socket DatagramPacket DatagramSocket URL