Networking Mehdi Einali Advanced Programming in Java 1.

Slides:



Advertisements
Similar presentations
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Advertisements

CCNA 1 v3.1 Module 11 Review.
Socket Programming.
1 Java Networking – Part I CS , Spring 2008/9.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Networking Support In Java Nelson Padua-Perez Chau-Wen Tseng Department of Computer Science University of Maryland, College Park.
Chapter Eleven An Introduction to TCP/IP. Objectives To compare TCP/IP’s layered structure to OSI To review the structure of an IP address To look at.
Lesson 24. Protocols and the OSI Model. Objectives At the end of this Presentation, you will be able to:
Network Protocols. Why Protocols?  Rules and procedures to govern communication Some for transferring data Some for transferring data Some for route.
Layer 4 of the TCP/IP protocol stack: Application level Services: TELNET, FTP, SMTP, HTTP, DNS, RIP, NFS Hierarchy of protocols and services.
CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
© 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.
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.
HTTP HTTP stands for Hypertext Transfer Protocol. It is an TCP/IP based communication protocol which is used to deliver virtually all files and other.
Huda AL_Omairl - Network 71 Protocols and Network Software.
E-Business William R. Mussatto CyberStrategies, Inc. 12/2/2000.
Networks – Network Architecture Network architecture is specification of design principles (including data formats and procedures) for creating a network.
Network Services Networking for Home & Small Business.
Transport Layer Layer #4 (OSI-RM). Transport Layer Main function of OSI Transport layer: Accept data from the Application layer and prepare it for addressing.
Lector: Aliyev H.U. Lecture №14: Telecommun ication network software design for data bases and servers. TASHKENT UNIVERSITY OF INFORMATION TECHNOLOGIES.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
IT COOKBOOK Windows Network Programming. Chapter 01. Intro. to Network and Socket Programming.
1 Version 3.0 Module 11 TCP Application and Transport.
1 CSC111H Client-Server: An Introduction Dennis Burford
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 OSI Transport Layer Network Fundamentals – Chapter 4.
Vassil Roussev 2 A socket is the basic remote communication abstraction provided by the OS to processes. controlled by operating system.
TCP/IP Transport and Application (Topic 6)
RGEC MEERUT(IWT CS703) 1 Java Networking RGEC Meerut.
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
The Inter-network is a big network of networks.. The five-layer networking model for the internet.
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.
1 Networking Chapter Distributed Capabilities Communications architectures –Software that supports a group of networked computers Network operating.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 1 v3.0 Module 11 TCP/IP Transport and Application Layers.
Application Layer Khondaker Abdullah-Al-Mamun Lecturer, CSE Instructor, CNAP AUST.
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.
4061 Session 25 (4/17). Today Briefly: Select and Poll Layered Protocols and the Internets Intro to Network Programming.
Networking Terminology: ISP (Internet service provider) – dialup, dsl, cable LAN (local area network) IP (internet protocol) address, eg
1 Chapter 8 – TCP/IP Fundamentals TCP/IP Protocols IP Addressing.
Data Communications and Networks
ECEN “Internet Protocols and Modeling”, Spring 2012 Course Materials: Papers, Reference Texts: Bertsekas/Gallager, Stuber, Stallings, etc Class.
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.
1 Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
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)
Protocols Monil Adhikari. Agenda Introduction Port Numbers Non Secure Protocols FTP HTTP Telnet POP3, SMTP Secure Protocols HTTPS.
Computer Network Architecture Lecture 6: OSI Model Layers Examples 1 20/12/2012.
TCP/IP Protocol Suite ©Richard L. Goldman September 25, 2002.
1 User Datagram Protocol. 2 Transport Protocols Provide logical communication between application processes running on different hosts Run on end hosts.
COMPUTER NETWORKS Hwajung Lee. Image Source:
1 Network Communications A Brief Introduction. 2 Network Communications.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Network Services Networking for Home and Small Businesses – Chapter 6.
Network Programming. These days almost all devices.
SOCKET PROGRAMMING Presented By : Divya Sharma.
Introduction to Networks
Networking Based Applications
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Network Wiring and Reference
Some bits on how it works
Understand the OSI Model Part 2
Introduction to Networks
Advanced Programming in Java
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Transport Protocols An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Lecture 6: TCP/IP Networking 1nd semester By: Adal ALashban.
Computer Networks Protocols
Transport Protocols Relates to Lab 5. An overview of the transport protocols of the TCP/IP protocol suite. Also, a short discussion of UDP.
Network programming Lecture 1 Prepared by: Dr. Osama Mokhtar.
Presentation transcript:

Networking Mehdi Einali Advanced Programming in Java 1

2 agenda Basic Concepts on Networking 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

3 Networking

4 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

5 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 docs.rinet.ru(via dns) (2 32 ) addresses Pv6 uses a 128-bit address, theoretically allowing 2 128, or approximately 3.4×10 38 addresses

6 Protocol Why protocols? 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

7 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

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

9 Network protocol stack

10 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

11 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

12 Ports

13 Transport layer protocols TCPUDP Acronym for Transmission Control Protocol User Datagram Protocol or Universal Datagram Protocol Connection TCP is a connection- oriented protocol. UDP is a connectionless protocol Usage TCP is suited for applications that require high reliability, and transmission time is relatively less critical. UDP is suitable for applications that need fast, efficient transmission, such as games. UDP's stateless nature is also useful for servers that answer small queries from huge numbers of clients Use by other protocols HTTP, HTTPs, FTP, SMTP, Telnet DNS, DHCP, TFTP, SNMP, RIP, VOIP.Ping Java Classes ServerSocket, SocketDatagramSocket,DatagramPacket

14 Java network api

15 url vs socket Socket programing Working with sockets to do network operation. It work on transportation layer(building its own application based on it) URL processing Work with URL objects Based on HTTP protocol( don’t need to work with underlying transport layer e.g. sockets)

16 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

17 The ServerSocket Class

18

19

20 The Socket Class

21

22

23

24

25 end