FWPS_LAYER_STREAM_V4和FWPS_LAYER_STREAM_PACKET_V4图层有什么区别? [英] What is difference between FWPS_LAYER_STREAM_V4 and FWPS_LAYER_STREAM_PACKET_V4 layer?

查看:453
本文介绍了FWPS_LAYER_STREAM_V4和FWPS_LAYER_STREAM_PACKET_V4图层有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

FWPS_LAYER_STREAM_V4和FWPS_LAYER_STREAM_PACKET_V4图层有什么区别?



我在Windows 8.1中运行Internet Explorer应用程序。

我打印了  callout windbg中各层的功能。

有时,如果是出站,则每个FWPS_LAYER_STREAM_PACKET_V4打印两个FWPS_LAYER_STREAM_V4。

FWPS_LAYER_STREAM_PACKET_V4与FWPM_LAYER_OUTBOUND_IPPACKET_V4和FWPM_LAYER_OUTBOUND_TRANSPORT_V4一对一对应IP和端口。



我可以将FWPS_LAYER_STREAM_PACKET_V4视为一个具有以太网帧的数据包

解决方案

< blockquote>

BOth是双向的。


STREAM_PACKET是一个打包的图层。  这实际上是DATAGRAM_DATA图层的TCP等价物。 这里的任何数据操作意味着您必须适当地更新ACK和SEQ#并跟踪所有后续数据包的更改。


STREAM仅处理TCP数据(无标题)。 &NBSP;如果您正在操作TCP有效负载,这是最好的位置,因为TCP状态机已经验证了ACK / SEQ#的入站,并且将自动生成出站的#。


如您所见,传输层将具有STREAM_PACKET的匹配指示,而STREAM可能具有更多或更少的指示,具体取决于堆栈对数据的处理。


Hope这有帮助,



What is difference between FWPS_LAYER_STREAM_V4 and FWPS_LAYER_STREAM_PACKET_V4 layer?

I run Internet explorer application in windows 8.1.
I printed  callout functions of their layers in windbg.
Sometimes, in case of outbound, two FWPS_LAYER_STREAM_V4 per a FWPS_LAYER_STREAM_PACKET_V4 were printed.
FWPS_LAYER_STREAM_PACKET_V4 corresponded one-to-on to FWPM_LAYER_OUTBOUND_IPPACKET_V4 and FWPM_LAYER_OUTBOUND_TRANSPORT_V4 with IP and Port.

Could I regard FWPS_LAYER_STREAM_PACKET_V4 as a segment that would be a packet having ethernet frame

解决方案

BOth are bi-directional.

STREAM_PACKET is a packetized layer.  This is essentially the TCP equivalent of the DATAGRAM_DATA layer.  Any data manipulation here means you must update the ACK and SEQ #'s appropriately and keep track of the changes for all subsequent packets.

STREAM deals in TCP data only (no headers).  This is the best place to sit if you are manipulating the TCP payload, as the TCP state machine has already validated the ACK / SEQ #'s for inbound, and will auto-generate the #'s for outbound.

As you observed, the Transport layers will have matching indications for STREAM_PACKET, whereas STREAM may have more or less indications, depending on the stack's processing of the data.

Hope this helps,


这篇关于FWPS_LAYER_STREAM_V4和FWPS_LAYER_STREAM_PACKET_V4图层有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆