What are ports in networking? [closed]

。_饼干妹妹 提交于 2019-12-03 11:19:32

问题


I am studying Networking in java.I am not clear about what are ports. Also i need to know about what is a socket?

Please explain it well.


回答1:


PORTS :

In computer networking, the term port can refer to either physical or virtual connection points.

Physical network ports allow connecting cables to computers, routers, modems and other peripheral devices.
Virtual ports are part of TCP/IP networking. These ports allow software applications to share hardware resources without interfering with each other. Computers and routers automatically manage network traffic traveling via their virtual ports. Network firewalls additionally provide some control over the flow of traffic on each virtual port for security purposes.

SOCKET :

A socket represents a single connection between two network applications. A socket is one end-point of a two-way communication link between two programs running on the network

A good read :

  • Networking Basics
  • Socket

Since you are new to networking, you must visit this link .



来源:https://stackoverflow.com/questions/5378406/what-are-ports-in-networking

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!