user369823
user369823

Reputation: 371

TCP connection basics

This a basic doubt, but I wanted to know that if establish two TCP connections between the same two machines, will the packets in both the connection follow the same path(same link and nodes). The reason why I am asking this is because I want to measure the bandwidth between the two machines for both IPv4 and Ipv6 TCP connection and I want to make sure that both these connections follow the same path.

Upvotes: 2

Views: 576

Answers (3)

KikoV
KikoV

Reputation: 1019

2 TCPv4 connections could follow different paths, though it's not usual. a TCPv4 nd a TCPv6 is probably using different paths for not full TCPv6 implementation. [ It's usual having IPv6 island connecting IPv4 nodes with tunnels. ].

For the Internet, surely BGPv6 routes are quite different to BGPv4.

Upvotes: 1

andri
andri

Reputation: 11292

Unless you have control of the network and routing between the two hosts you should never make that assumption. This is especially true with IPv4 vs IPv6 as there aren't too many native IPv6 networks yet and the tunnels may follow vastly different routes than "direct" IPv4.

To make matters even worse, IIRC there is nothing stopping some intermediary network from routing half your packets via one link and half via some other, so you can't really assume that every TCP packet in one connection will follow the same path either.

Upvotes: 6

rmk
rmk

Reputation: 4455

In theory, not necessarily, but in practice, it depends upon where the two machines are located. If there is only one set of routers between the two machines, then the answer to your question is yes.

Upvotes: 2

Related Questions