Why is the maximum port range 65535 in the TCP/IP Suite?

时光总嘲笑我的痴心妄想 提交于 2020-03-21 19:05:45

问题


My doubt is that - a port is just logical, so why such restriction ? Why can't I have a port of 9924593 or something like that ?


回答1:


Look at the packet format for the TCP segment. The port identifiers are unsigned 16-bit integers, meaning that the largest number you can put in there is 216-1 = 65535.



来源:https://stackoverflow.com/questions/36796183/why-is-the-maximum-port-range-65535-in-the-tcp-ip-suite

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