当WCF服务和调用该服务的应用程序都托管在同一台机器上时,是否使用网卡?
- 如果我在同一台计算机上托管Web服务和WCF服务。 Web 服务使用 WCF 服务。通信将仅通过内存还是也通过物理网卡。
- 我也可以这样说。如果我有两个程序在同一台机器上运行,并且它们使用 tcp 套接字相互通信,那么 IP 数据包是通过物理网卡传递还是仅通过内存传递。不同的是:如果是通过网卡的话,可能会受到卡的速度或者缓存的限制,对吗?
谢谢
- If I host Web service and WCF service on the same machine. The web service consumes the WCF service. Will the communication go through only memory or also the physical network card.
- I can also put it this way. If I have two programs running on the same machine, and they use tcp sockets to communcates to each other, will the IP packet be delivered through the physical network card or it only go through memory. The difference is: if it go through the network card, it may be limited by the speed or cache of the card, right?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
答案是……有点。 :) 服务将通过系统上的套接字或端口进行通信。他们将联系网络设备,该网络设备位于堆栈的最高层将识别出服务位于同一台计算机上,然后环回设备将在通信真正进入网络之前将通信重定向回主机。那么,这一切都是在内存中完成的吗?不。但它实际上也没有进入网络。
The answer is.... kind of. :) The services will communicate through a socket or port on the system. They will reach out to the network device, which very high in the stack will identify that the services are on the same machine then the loopback device will redirect the communications back to the host computer before it ever actually goes out on the network. So, is it all done in memory? No. But it also does not actually hit the network.