PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Noms de domaine > comp.protocols.tcp-ip > TCP thru UDP?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.protocols.tcp-ip TCP and IP network protocols.

TCP thru UDP?

Réponse
 
LinkBack Outils de la discussion
Vieux 14/10/2006, 05h12   #1
smerf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut TCP thru UDP?

I have a constant UDP connection from one office to another office. I use
it for an in-house application and it works just fine.

But, I want to add file transfer to my little app without requiring another
port be opened on the firewall and I don't want to reinvent the TCP wheel.

Is there a way to tunnel TCP through my existing UDP connection and take
advantage of the packet checks that TCP offers for transfering files?



  Réponse avec citation
Vieux 14/10/2006, 09h00   #2
Arkady Frenkel
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?

Usually within LAN that be OK, TFTP ( UDP base ) work pretty nice for LANs,
but if you "reinvent the TCP wheel"
you need to use TCP, otherwise you can use 3-th party s/w which did that
Arkady

"smerf" <smerf@shroom.com> wrote in message
news:MsZXg.10453$nn6.9747@bignews6.bellsouth.net.. .
>I have a constant UDP connection from one office to another office. I use
>it for an in-house application and it works just fine.
>
> But, I want to add file transfer to my little app without requiring
> another port be opened on the firewall and I don't want to reinvent the
> TCP wheel.
>
> Is there a way to tunnel TCP through my existing UDP connection and take
> advantage of the packet checks that TCP offers for transfering files?
>
>
>



  Réponse avec citation
Vieux 14/10/2006, 16h22   #3
hasenhei
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?

smerf wrote:

> Is there a way to tunnel TCP through my existing UDP connection and take
> advantage of the packet checks that TCP offers for transfering files?


Have a look at http://gray-world.net/pr_cctt.shtml

They say it can tunnel TCP inside UDP. I've not tested that.
There should be other tools that can do.

Cheers,
Armin

  Réponse avec citation
Vieux 15/10/2006, 05h41   #4
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?

In article <MsZXg.10453$nn6.9747@bignews6.bellsouth.net>,
"smerf" <smerf@shroom.com> wrote:

> I have a constant UDP connection from one office to another office. I use
> it for an in-house application and it works just fine.
>
> But, I want to add file transfer to my little app without requiring another
> port be opened on the firewall and I don't want to reinvent the TCP wheel.
>
> Is there a way to tunnel TCP through my existing UDP connection and take
> advantage of the packet checks that TCP offers for transfering files?


How does this avoid opening another port on the firewall? You'll need
to open the port that's used for the TCP-over-UDP protocol, since it
will be different from whatever port you're using for your "constant UDP
connection" (I have no idea what you mean by that, BTW).

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
  Réponse avec citation
Vieux 15/10/2006, 05h53   #5
Walter Roberson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?

In article <MsZXg.10453$nn6.9747@bignews6.bellsouth.net>,
smerf <smerf@shroom.com> wrote:
>I have a constant UDP connection from one office to another office. I use
>it for an in-house application and it works just fine.


>But, I want to add file transfer to my little app without requiring another
>port be opened on the firewall and I don't want to reinvent the TCP wheel.


>Is there a way to tunnel TCP through my existing UDP connection and take
>advantage of the packet checks that TCP offers for transfering files?


Yeh, you could do it, but the bother would be relatively high.
You'd probably find it a lot easier to just adapt one of the old
modem file transfer protocols such as x-modem.
  Réponse avec citation
Vieux 15/10/2006, 06h25   #6
smerf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?


"Barry Margolin" <barmar@alum.mit.edu> wrote in message
news:barmar-D0E4B5.00412215102006@comcast.dca.giganews.com...
> In article <MsZXg.10453$nn6.9747@bignews6.bellsouth.net>,
> "smerf" <smerf@shroom.com> wrote:
>
>> I have a constant UDP connection from one office to another office. I
>> use
>> it for an in-house application and it works just fine.
>>
>> But, I want to add file transfer to my little app without requiring
>> another
>> port be opened on the firewall and I don't want to reinvent the TCP
>> wheel.
>>
>> Is there a way to tunnel TCP through my existing UDP connection and take
>> advantage of the packet checks that TCP offers for transfering files?

>
> How does this avoid opening another port on the firewall? You'll need
> to open the port that's used for the TCP-over-UDP protocol, since it
> will be different from whatever port you're using for your "constant UDP
> connection" (I have no idea what you mean by that, BTW).


I simply mean that there is a UDP port open on PC1 and another UDP port open
on PC2 and that they are available and the apps hosting them are aware that
they are available for data transfer betwen the 2 PCs.

I don't have access to the other firewall, and may not be able to get the
admin to open an external TCP port without a tremendous gnashing of teeth
and perhaps some boils and a plague or two. So, I thought, why not tunnel
the TCP connections thru the UDP ports?

The idea here is similar to the Hamachi VPN solution (which LogMeIn
purchased and does not release the server code for). See
http://www.realvnc.com/pipermail/vnc...ry/053895.html for a
short description of how Hamachi encapsulated TCP in UDP.

I don't really understand all of what is needed to accomplish that. I
assume the Hamachi solution used an ethernet driver of some sort and simply
relayed the data sent to it to the other end of the tunnel via the UDP used
to get thru the firewalls and NATs.

Well, I can't code a device driver yet (no C++ skills), so I thought I might
be able to aim the TCP connections through my UDP tunnel.

Any ideas? I am looking into using WinPcap to sniff the packets on the
network and send them thru the UDP tunnel, but that may result in packets
being split (according to the referenced article) - and nobody wants split
packets.

The only WinPcap that I have found to use is wrapped in an activex control.
But, won't COM interop really screw with the speed if I do something like
this via an activex component from .Net?

Then there is the encrpytion of the data stream between the endpoints -
something I haven't even bothered to tackle at this point.

Does encryption + COM interop = too damned slow to bother with?


  Réponse avec citation
Vieux 15/10/2006, 06h33   #7
smerf
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?

Thanks for the idea.

While researching it, the damndest thing happened. I thought of a simple
way to do file transfer via UDP. It involves my own little
protocol....small and simple but possibly more verbose than the TCP
protocols - so speed may suffer.

Now, I am on a hunt to enable other apps to work thru my little UDP tunnel -
like Remote Desktop or VNC or Video Conferencing etc..

To do this, I still need to find the best way to make my UDP connection on
each end act as a connecting point between the PCs. They would essentially
be TCP Proxies for any app that required a TCP connection.

Any ideas?


"Walter Roberson" <roberson@hushmail.com> wrote in message
news:b9jYg.139987$1T2.115593@pd7urf2no...
> In article <MsZXg.10453$nn6.9747@bignews6.bellsouth.net>,
> smerf <smerf@shroom.com> wrote:
>>I have a constant UDP connection from one office to another office. I use
>>it for an in-house application and it works just fine.

>
>>But, I want to add file transfer to my little app without requiring
>>another
>>port be opened on the firewall and I don't want to reinvent the TCP wheel.

>
>>Is there a way to tunnel TCP through my existing UDP connection and take
>>advantage of the packet checks that TCP offers for transfering files?

>
> Yeh, you could do it, but the bother would be relatively high.
> You'd probably find it a lot easier to just adapt one of the old
> modem file transfer protocols such as x-modem.



  Réponse avec citation
Vieux 15/10/2006, 06h40   #8
Walter Roberson
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: TCP thru UDP?

In article <3LjYg.16088$O65.15047@bignews5.bellsouth.net>,
smerf <smerf@shroom.com> wrote:
>Now, I am on a hunt to enable other apps to work thru my little UDP tunnel -
>like Remote Desktop or VNC or Video Conferencing etc..


>To do this, I still need to find the best way to make my UDP connection on
>each end act as a connecting point between the PCs. They would essentially
>be TCP Proxies for any app that required a TCP connection.


It'd be a small modification to any gre encapsulator.
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h41.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,17474 seconds with 16 queries