dbTalk Databases Forums  

sqla11 tcp udp

sybase.public.sqlanywhere.general sybase.public.sqlanywhere.general


Discuss sqla11 tcp udp in the sybase.public.sqlanywhere.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Doug Stone
 
Posts: n/a

Default sqla11 tcp udp - 08-26-2009 , 02:05 PM






I'm starting a sqla11 setup at a new customer site.
The customer wants to know which ports to open.
I replied 2638 and 49152.
He then asked if those ports will carry both tcp and udp traffic.
I replied 'both tcp and udp.'
However, after googling the subject, I'm not sure if udp is necessary.

What is the function of udp traffic and is it necessary?
Am I correct that sqla11 ip traffic is normally both tcp and udp?

Thanks,
Doug

Reply With Quote
  #2  
Old   
Graeme Perrow [Sybase iAnywhere]
 
Posts: n/a

Default Re: sqla11 tcp udp - 08-26-2009 , 02:26 PM






The default port used by SQL Anywhere is 2638. If this port number is in
use, then the server picks an unused port, beginning at 49152, and
listens on that. (Note that 49152 is not reserved for use by SA, while
2638 is.)

The default connection mechanism uses UDP to find the server and then
TCP to connect to it. However, you can bypass the UDP discovery using
the the Host and DoBroadcast TCP parameters in your client's connection
string / DSN. For example:

Links=tcpip
-- will broadcast for the server using UDP

Links=tcpip(host=foo)
-- will attempt to connect via TCP to a server on host "foo". If the
connection fails, we will broadcast for the server using UDP.

Links=tcpip(host=foo;DoBroadcast=none)
-- will attempt to connect via TCP to a server on host "foo". If the
connection fails, we will not broadcast.

If you always use Host and DoBroadcast=None in your connection strings,
SA will not use UDP at all.

Graeme Perrow
Senior Software Developer
gperrow _at_ ianywhere _dot_ com
Sybase iAnywhere Engineering

SQL Anywhere Developer Community
http://www.sybase.com/developer/libr...ere-techcorner
SQL Anywhere Blog Center
http://www.sybase.com/sqlanyblogs


Doug Stone wrote:
Quote:
I'm starting a sqla11 setup at a new customer site.
The customer wants to know which ports to open.
I replied 2638 and 49152.
He then asked if those ports will carry both tcp and udp traffic.
I replied 'both tcp and udp.'
However, after googling the subject, I'm not sure if udp is necessary.

What is the function of udp traffic and is it necessary?
Am I correct that sqla11 ip traffic is normally both tcp and udp?

Thanks,
Doug

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.