comp.protocols.tcp-ip
Affichage de l'article :
Re: Keeping UDP port open

Date : Le 03 mai 2005
From : glen herrmannsfeldt
Sujet : Re: Keeping UDP port open

Bjoern wrote:

> I'm designing an application which transmits voice in UDP packets. To
> keep the connection alive (like if users don't talk for a while) I send
> UDP keepalive packets every 30 seconds in order to keep the UDP ports
> open on routers. It seems, however, that some routers still close the
> UDP ports although I send these keepalive packets. Does anyone know
> some tricks to make sure that routers won't close the UDP ports?

UDP is a connectionless protocol but...

NAT requires that the router keep some state to know where to
send the replies. Note, though, that there is no requirement
in UDP that the replies have a port number related to the request,
or that the source address be the same as the destination address
of the request.

It seems that many NAT implementations don't even recognize TCP
keepalive (zero data length) packets to keep a TCP connection open.
I would call it a defective NAT implementation, and search for
router companies that don't have this bug.

-- glen


Posez vos questions, réponses et remarques sur les forums de FrameIP



mot clé : tcp port comp ip udp keeping open ipv6 vpn tcpip ipv4 voip ip re protocols

Copyright © 2003-2010 FrameIP TcpIP. Tous droits réservés. Les marques et marques commerciales mentionnées appartiennent à leurs propriétaires respectifs. L'utilisation de ce site Web TcpIP implique l'acceptation des conditions d'utilisation et du règlement sur le respect de la vie privée.
Sécurité entreprise Téléphonie entreprise Expert de votre Infrastructure Test ADSL Affiliation