0% found this document useful (0 votes)
48 views6 pages

ch-1 AJ

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views6 pages

ch-1 AJ

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

ADVANC JAVA

UNIT 1: JAVA NETWORKING

SEMESTER: 6
PREPARED BY: PROF. NITI KHETRA
JAVA NETWORKING

• INTRODUCTION
• Java networking is the concept of connecting
two or more computing devices to share
resources. The application layer of a Java
program communicates with the network. The
java.net package contains all of the Java
networking classes and interfaces

DEPARTMENT OF COMPUTER ENGINEERING, *Proprietary material of SILVER OAK


2
UNIVERSITY
NETWORKING TERMINOLOGY

• IP Address • MAC Address


• Protocol • Connection-oriented
• Port Number and connection-less
protocol
• Socket

DEPARTMENT OF COMPUTER ENGINEERING, *Proprietary material of SILVER OAK


3
UNIVERSITY
TCP AND UPD

TCP UPD
• TCP (Transmission Control Protocol) • DatagramSockets are Java’s mechanism
is a reliable and connection-oriented for network communication via UDP
protocol used for data communication instead of TCP. Java provides
between devices over a network. It DatagramSocket to communicate over
guarantees the delivery of data in the UDP instead of TCP. It is also built on top
order it was sent and handles any lost of IP.
or corrupted packets.

DEPARTMENT OF COMPUTER ENGINEERING, *Proprietary material of SILVER OAK


4
UNIVERSITY
RMI(REMOTE DESKKTOP INVOCATION)

• In RMI the definition of remote service is coded using a java interface


and its implementation is coded using a class
• The RMI system consists of three layers in its architecture
• The stub/skeleton layer : Stubs are local copy or proxy for the remote object.
Skeleton is the remote proxy for the remote object
• The remote reference layer : Supports communication between stub and
skeleton
• The transport layer : Sets up and manage connections between different JVMs

• The client objects invoking the remote object and using the stub,skeleton,remote
reference layer and transport layer
DEPARTMENTDEPARTMENT
OF ELECTRICAL
OF COMPUTER
ENGINEERING,
ENGINEERING,
*Proprietary*Proprietary
material of material of SILVER OAK
5
SILVER OAKUNIVERSITY
UNIVERSITY
Client Server Connectivity

Client Serve
r
Application Application

Stub Layer Skeleton Layer

Remote Remote
Reference Reference
Layer Layer

Transport Layer Transport Layer


Network

DEPARTMENT OF ELECTRICAL ENGINEERING,


DEPARTMENT OF COMPUTER ENGINEERING, *Proprietary material of SILVER OAK
*Proprietary material of SILVER OAK UNIVERSITY 6
UNIVERSITY

You might also like