文章标题

Java Networking

Java Networking is a concept of connecting two or more computing devices together so that we can share resources.

Java socket programming provides facility to share data between different computing devices.

Advantage of Java Networking

  1. sharing resources
  2. centralize software management

  3. How to perform connection-oriented Socket Programming in networking
    ?

  4. How to display the data of any online web page ?
  5. How to get the IP address of any host name e.g. www.google.com ?
  6. How to perform connection-less socket programming in networking ?

Java Networking Terminology

The widely used java networking terminologies are given below:

IP Address
Protocol
Port Number
MAC Address
Connection-oriented and connection-less protocol
Socket

1) IP Address

IP address is a unique number assigned to a node of a network e.g.
192.168.0.1 . It is composed of octets that range from 0 to 255.
It is a logical address that can be changed.

2) Protocol

A protocol is a set of rules basically that is followed for
communication. For example:
TCP
FTP
Telnet
SMTP
POP etc.

3) Port Number

The port number is used to uniquely identify different applications.
It acts as a communication endpoint between applications.

The port number is associated with the IP address for communication
between two applications.

4) MAC Address

MAC (Media Access Control) Address is a unique identifier of NIC
(Network Interface Controller). A network node can have multiple NIC
but each with unique MAC.

5) Connection-oriented and connection-less protocol

In connection-oriented protocol, acknowledgement is sent by the
receiver. So it is reliable but slow. The example of
connection-oriented protocol is TCP.

But, in connection-less protocol, acknowledgement is not sent by the
receiver. So it is not reliable but fast. The example of
connection-less protocol is UDP.

6) Socket

A socket is an endpoint between two way communication.

Visit next page for java socket programming.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值