不同 TCP 通道但同一机器的网络路由路径
Process1 在 machineA 中运行。 Process1已打开服务器端口X。
Process2 在 machineB 中运行。 Process2 已打开服务器端口Y。
流程1& Process2 通过 2 个不同的 TCP 通道交换消息。
Process1 opens client socket to portY of machineB and start sending msgs to Process2. (tcp channel 1)
Process2 opens client socket to portX of machineA and start sending msgs to Process1. (tcp channel 2)
问题:
通道 1 和通道 1 的网络路径是否相同?在所有情况下都是通道2吗?即通过相同的路由器等?
更新:
我需要此信息来做出有关进程同步的一些决定(以便 1 个进程不会比其他进程快,
谢谢
Process1 runs in machineA. Process1 has opened server portX.
Process2 runs in machineB. Process2 has opened server portY.
Process1 & Process2 exchange messages over 2 different tcp channels.
Process1 opens client socket to portY of machineB and start sending msgs to Process2. (tcp channel 1)
Process2 opens client socket to portX of machineA and start sending msgs to Process1. (tcp channel 2)
Question:
Is the network path the same for channel1 & channel2 in all cases? I.e. go through same routers etc?
UPDATE:
I need this information to make some decision concerning synchronization of processes (so that 1 process is not faster than the other
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
对此没有任何保证。这与您关于交错的其他问题有关吗?
There is no guarantee about it. Is this related to your other question about interleaving?
考虑一下:如果两个系统之间的路径始终相同......为什么有人要关心设计路由协议。
Think about this: If the path between two system is always the same ... why should someone cared about designing routing protocols.