In this Tutorials section we cover and explain Java Network Main Basics in details for freshers and experienced
previous | Home | Next |
The Java Network Main Basics Introduction Are
In the Network the Main Protocols are using
- TCP (Transmission Control Protocol)
- UDP (User Datagram Protocol)
But In this Network Mainly attach four phases
- Application Phase
- Transport Phase
- IP Phase
- Link Phase
If you create the program and communicate the over the network, then right a java program for the application layer. Typically, you don't need to concern yourself with the TCP and UDP layers. Instead, If you concern the TCP and UDP then you use the classes for java.net package.
In this package java.net package contain the classes. These classes provide system-independent network communication. it's mean the network communication is totally independent way . However, to decide which Java classes your programs should use, you do need to understand how TCP and UDP different.
TCP (Transmission control Protocols)
The TCP describes that when two applications are want to communicate to each other easily. The connection has been establish and send data back and forth over that connection.. A connection is established when you dial her phone number and she answers.
You send data back and forth over the connection by speak to one another over the phone lines. Like the phone company, TCP guarantees that data sent from one end to another connection actually gets to the other end and in the same order it was sent. Otherwise, an error is reported.
TCP is typically used over the Internet Protocol, which is referred to as TCP/IP.
TCP provides a point-to-point channel for applications that require reliable communications.
The Hypertext Transfer Protocol (HTTP)
File Transfer Protocol (FTP)
Telnet are all examples of applications that require a reliable communication channel.
The order in which the data is sent and received over the network is critical to the success of these applications. When HTTP is used to read from a URL, the data must be received in the order in which it was sent. Otherwise, you end up with a jumbled HTML file, a corrupt zip file, or some other invalid information.
UDP (User Datagram Protocol)
The UDP is described by it's protocol provides for communication that is not guaranteed between two applications on the network. UDP is different protocol than TCP it's not connection-based like TCP. Rather, it sending the independent packets of data, the independent packets are calling datagram's and it's transferring from one application to another. Sending datagram's is much like sending a letter through the postal service for other applications . In this Protocol performing order of delivery is not important and is not guaranteed, and each message is independent of any other.
The Main Definition is UDP is the it's a connection-less protocol that allows for packets of data to be transmitted between applications. and it's protocol define as protocol that sends independent packets of data, called datagram's, from one computer to another with no guarantees about arrival. UDP is not connection-based like TCP.
NOTE:The TCP and UDP protocols use ports to map incoming data to a particular process running on a computer.
previous | Home | Next |