摘要 |
The present invention provides a method for inserting and unloading a TCP proxy and a service gateway device. The method comprises: during establishment of TCP connection, forwarding, through an L3 layer, a TCP connection establishing message between a TCP client and a TCP serving end, and recording option information and serial number information of the TCP connection establishing message; after the TCP connection is established, judging the received message according to a proxy policy; forwarding, through the L3 layer, a message with no need of the proxy as determined according to the proxy policy, and updating the recorded serial number information according to serial number information of the received message; and for a message in need of the proxy as determined according to the proxy policy, generating a client pseudo-socket and a serving end pseudo-socket according to the recorded option information and serial number information, terminating the received message by adopting the client pseudo-socket and the serving end pseudo-socket, processing the terminated message through an L7 layer, and forwarding the processed message. The embodiment of the invention can improve the system performance. |
申请人 |
HUAWEI TECHNOLOGIES CO., LTD.;XIE, HUAGUO;ZHOU, TONG;WANG, MINGXIA;WU, JIE |
发明人 |
XIE, HUAGUO;ZHOU, TONG;WANG, MINGXIA;WU, JIE |