HTTP协议属于应用层,而SOCKS协议属于传输层

HTTP协议属于应用层,而SOCKS协议属于传输层

SOCKS代理

SOCKS代理能在任何端口,任何协议下运行。

SOCKS V4只支持 TCP连接,而SOCKS V5在其基础上增加了安全认证以及对UDP协议的支持(SOCKS5支持密码认证以及

转发UDP流量,注意,HTTP是不支持转发UDP的)。SOCKS代理在任何情况下都不会中断server与client之间的数据(非明

文传输决定的,但是在SOCKS代理服务器上还是可以还原出TCP和UDP的原始流量的)

HTTP代理

HTTP代理可以中断连接(即在中间截断数据流),因为HTTP代理是以HTTP请求为基础的, 而这些请求以明文形式存在,所

以HTTP代理可以在Client和Service中间窃听,修改数据。

 SOCKS Protocol Version 5
   The protocol described here is designed to provide a framework for
   client-server applications in both the TCP and UDP domains to
   conveniently and securely use the services of a network firewall.
   The protocol is conceptually a "shim-layer" between the application
   layer and the transport layer, and as such does not provide network-
   layer gateway services, such as forwarding of ICMP messages.

七层:物理层、链路层、网络层、传输层、会话层、表示层、应用层

五层:物理层、链路层、网络层、传输层、                          应用层

阮一峰:互联网协议入门

原文地址:https://www.cnblogs.com/yuyutianxia/p/7501921.html