network programming - SIP Over TCP versus SIP over UDP [ SIP: Session Initiation Protocol ] -


what difference between sip on udp , sip on tcp?

what sip on tcp means? means:

sip on tcp means both sip , underlying rtp protocol use tcp

or

run sip on tcp , udp rtp

?

which one?

"sip on tcp" means "send sip messages on tcp stream". sip largely transport protocol agnostic, same protocol can run on sctp, dtls, , on.

from user's perspective there's no difference.

from perspective of using sip stack/writing sip application, there's little difference: sip on udp implements various reliability mechanisms (resend+backoff starters).

the session descriptions may use rtp media streams, sdp not tied using rtp. may use plain tcp streams if wish, or other protocol (provided there's way of describing protocol in sdp, , useful clients understand transport protocol, of course).

rtp transport protocol usually runs on udp (because timeliness more important in real-time transport protocol reliability), can run on tcp (provided media framed - rfc 4103 data not, instance).

so usually people run sip on tcp , rtp on udp, neither protocol limited particular setup.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -