Networking Forums

Networking Forums > Computer Networking > Linux Networking > determining the cause of data transfer weirdness

Reply
Thread Tools Display Modes

determining the cause of data transfer weirdness

 
 
jm
Guest
Posts: n/a

 
      03-06-2009, 04:49 PM
hi all,

I have 2 servers that talk over the internet. server1 and server2.

Server1 has a file with a size of 5MB that needs to be transferred
to server2.

Im using sftp to transfer data.

Weird problem:

* if i initiate sftp from server1 to server2 and send the file its
very slow
* if i initiate sftp from server2 to server1 and get the file its
very fast

I was also wondering if routes are symmetric?


jm,
 
Reply With Quote
 
 
 
 
jm
Guest
Posts: n/a

 
      03-09-2009, 06:47 PM
On Mar 6, 2:58*pm, Maxwell Lol <nos...@com.invalid> wrote:
> jm <jerom...@gmail.com> writes:
> > hi all,

>
> > * I have 2 servers that talk over the internet. *server1 and server2.

>
> > * Server1 has a file with a size of 5MB that needs to be transferred
> > to server2.

>
> > * Im using sftp to transfer data.

>
> > * Weird problem:

>
> > * ** if i initiate sftp from server1 to server2 and send the file its
> > very slow
> > * ** if i initiate sftp from server2 to server1 and get the file its
> > very fast

>
> > * I was also wondering if routes are symmetric?

>
> Routes and bandwidth are not always symmetric.
>
> There is also variations in applications, and OS parameters (default
> TCP window size)
>
> Try ping, and also try using different packet sizes.
>
> Traceroute will also show you the route.


hmm.. application is not going to an issue since im using the same app
to transfer data on both sides.
OS parameters are the same on both machines..

the only difference is the route is take..

from server1 it takes path A, B, C to get to server2

from server2 it takes path C, D, E, F, G, B, A to get to server1.

im assuming that when server1 connects to server2 the return packet
will use the same path, (path used to initiate the connection)...

by hunch.. is that there is a QoS running but i don't have access on
the router on the other end since its being managed by the ISP...

 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      03-09-2009, 09:26 PM
On Mar 9, 12:47*pm, jm <jerom...@gmail.com> wrote:

> im assuming that when server1 connects to server2 the return packet
> will use the same path, (path used to initiate the connection)...


No. That's not only impossible but would cause network providers to
violate their contracts.

DS
 
Reply With Quote
 
Unruh
Guest
Posts: n/a

 
      03-09-2009, 10:01 PM
David Schwartz <(E-Mail Removed)> writes:

>On Mar 9, 12:47=A0pm, jm <jerom...@gmail.com> wrote:


>> im assuming that when server1 connects to server2 the return packet
>> will use the same path, (path used to initiate the connection)...


>No. That's not only impossible but would cause network providers to
>violate their contracts.


??? No idea what this means. But, there is no reason the packet should take
the same route. The packet has no idea of what the route was on the
outgoing leg, so has not idea what the "same" route is. All it has is an
IP address, and it tries to get the packet to that address. The path it
takes will depend entirely on the routing tables along the way.



>DS

 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      03-10-2009, 01:06 AM
On Mar 9, 4:01*pm, Unruh <unruh-s...@physics.ubc.ca> wrote:

> David Schwartz <dav...@webmaster.com> writes:


> >No. That's not only impossible but would cause network providers to
> >violate their contracts.


> ??? No idea what this means.


It means that a network provider would have to violate their contract
to allow a packet to take the same route back that it took out.

For example, suppose you are on the West Coast and use ProviderX. I am
on the East Coast and use ProviderY. The contract between ProviderX
and ProviderY specifies nearest exit.

If I send a packet to your server, my packet will cross between
ProviderX and ProviderY on the East Coast, as their contract requires.
If you send a reply along the same path, you would be causing your
provider to violate its contract with my provider by dumping the
traffic on the wrong coast.

Or suppose you are in Japan and I am in Singapore, and we have
different providers. Typically, one provider will be responsible for
the long haul in one direction and one would be responsible for the
long haul in the other direction. If reply packets took the same path,
that would be abusing whichever provider's long haul circuits the
packet happened to take by making them do the long haul in both
directions.

Same path in both directions is simply not equitable on the Internet.

DS
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(question) Determining delivery of data to remote end William Park Linux Networking 1 04-22-2007 04:53 AM
transfer data from one machine to another bahoo Linux Networking 2 03-04-2007 02:03 PM
data transfer louis@inlovewithfashion.com Windows Networking 2 12-09-2006 05:49 AM
Data transfer twosheds Wireless Networks 2 08-16-2005 09:29 AM
data transfer 98 to xp brad Windows Networking 1 07-26-2005 07:38 PM



1 2 3 4 5 6 7 8 9 10 11