• SEARCH
  • DOWNLOADS
  • MY ACCOUNT
  • Buy (0)
  • CONTACT
  • Free Trial
Wowza Logo
  • PRODUCTS
  • DEVELOPER
  • SOLUTIONS
  • PRICING
  • RESOURCES
  • SUPPORT
  • My Account
  • Buy (0)
  • SEARCH
  • Ask a question
  • Forums
    • Wowza ClearCaster
    • Wowza Streaming Engine
    • Wowza Streaming Cloud
    • Wowza Player
    • Wowza GoCoder SDK
    • Wowza Developer Dojo
    • Topics
    • Questions
    • Articles
    • Users
    • Badges
  • Sign in
  • Community Home /
  • Wowza Streaming Engine /
  • General Forum /
avatar image
Question by Florian Iragne · Sep 01, 2010 at 08:20 AM ·

rtp/rtcp udp or tcp

Hi,

i still have problems streaming live contents utsing rtsp, and it may be due to the fact that i don't have huge knowledge on how rtsp/rtp/rtcp works.

To my mind, the client initiate a connection to Wowza using rtsp. It issues DESCRIBE/OPTIONS/PLAY. Then Wowza reply with a port to connect using RTP (udp), and the client initiate a UDP connection to the port. Regularly, Wowza send RTCP packets on the connection, and if the client does not answer in a defined time, Wowza shut it down.

is that correct?

What i don't understand is that it does not work for me if i use vlc/mplayer to read the stream, unless i force rtp over tcp. What i don't understand is that there is no filtering of udp/tcp on both side (client/server).

using tcpdump, i clearly see the tcp packets corresponding to the rtsp communications, then i see the udp packets corresponding to the rtp communication, and after that, i see a UDP packet corresponding to ICMP (i assume it is RTCP) on the same port than the RTP, that is dropped (connection refused, port unreachable) and shortly after, the UDP/RTP packets stops and the player stops.

So, if anyone can explain to me why it doesn't work using udp, but works using tcp, it would be great.

thanks
Comment

People who like this

0 Show 0
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image

Answer by Charlie Good · Sep 02, 2010 at 05:09 AM

Your description is correct (one small mistake, it is DESCRIBE/SETUP/PLAY). The RTP over UDP problem is some kind of network problem on your side. We have tons of customers doing RTSP/RTP over UDP to VLC, QuickTime and MPlayer. It works great for me.

So I would try different network setups, configuration and different playback setups. You should be able to narrow down the problem. The fact that you are seeing ICMP port unreachable messages makes it sound like it is a firewall issue. NAT can be a big factor as well. NAT traversal is very tricky with UDP. If you are behind NAT you might try mapping all UDP ports to your local ip address to see if that helps. I know that is what I need to do on my internal network at home. I have all UDP ports mapped to my development machine's ip address. Without this UDP does not work.

Charlie
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Florian Iragne · Sep 02, 2010 at 02:46 PM 0
Share
so, it means that wowza initate UDP connections to the user, since, if wowza used a connections already established by the client, the NAT firewall wil be ok with this.

does it really happens?

indeed, if i map all udp incomming trafic to my machine, it works, but it's clearly not usable in enterprises networks.

anyway, thanks for your answer
avatar image

Answer by Charlie Good · Sep 02, 2010 at 06:13 AM

Yes, it is.

Charlie
Comment

People who like this

0 Show 0 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Charlie Good · Sep 02, 2010 at 05:52 AM

It is just the way RTP works. Some firewalls are able to handle the NAT traversal. Some are not. That is why so much of streaming is moving to TCP based methods. The HTTP based methods are even more reliable.

Charlie
Comment

People who like this

0 Show 1 · Share
10 |600 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Florian Iragne · Sep 02, 2010 at 02:59 PM 0
Share
wowza is able to do rtp over http? didn't see it in the doc

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

SSL Setup docs not correct 2 Answers

What technologies should I use to build a live video streaming website like twitch.tv 1 Answer

Schedule Loader 1 Answer

Failed to load resource: net::ERR_TIMED_OUT after applied my own certificate to 443 1 Answer

Wowza and azure blob - record, live view and VOD 1 Answer

Hot Topics
  • AWS Hosting
  • Mobile SDK
  • Deployment Options
  • Load Balancing
  • Content Security
Product Sign-in
  • Wowza Streaming Cloud
  • Wowza Player
Under the Hood
  • Developer Tools
  • Wowza System Status
  • Test Players
  • Developer IDE
Resellers
  • Find a Reseller
  • Reseller Portal
  • Become a Reseller
Company
  • About Us
  • Blog
  • News
  • Events
  • Careers
  • Customers
  • Partners
  • Contact Us
Stay Connected
Get Monthly Newsletter
Select a Language
  • English
    • English
    • Español
    • 日本語
    • 한국어
    • हिन्दी भाषा
    • 中文
    • русский язык

© 2005–2019 Wowza Media Systems, LLC. All rights reserved.   Terms | Privacy | Trademarks | Legal


Enterprise
Social Q&A

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Forums
  • Wowza ClearCaster
  • Wowza Streaming Engine
  • Wowza Streaming Cloud
  • Wowza Player
  • Wowza GoCoder SDK
  • Wowza Developer Dojo
  • Explore
  • Topics
  • Questions
  • Articles
  • Users
  • Badges