Q: I read about Real-Time Transport Protocol(RTP) and I have some doubts.
1) Why does the protocol require to send the data packets & control packets at 2 different ports? Can they not be combined into 1?
A: The designers wanted to separate the two functions of data delivery and session management. Furthermore, RTP usually travels over UDP, which is unreliable. So, keeping the ports separate means that control traffic will not be lost if an application stops reading data traffic.
Q: What I feel is that if both data & control packets are combined then the congestion control would be much easier, whereas it would have to keep track of the data packets so that accordingly we have to send the control packets. Can't we combine the functionality of data & control into 1 rather than splitting them into 2 different types. We could then do some kind of piggybacking & the receiver would then tell the sender to stop sending any more. This is my view.
A: Many implementations will use separate threads for data processing and control. In such cases, having separate ports means that the operating system (i.e. socket procedures) handle demultiplexing.
If you want more information about RTP (including code for an example MP3 player that shows how threads use the two ports), there are two chapters in a book that just came out:
Comer and Stevens, Internetworking With TCP/IP Volume 3:
Client-Server Programming And Applications, Linux/POSIX version,
Prentice Hall, 2000
ISBN 0-13-032071-4


Ukraine launches fresh drone attack on St. Petersburg region on final day of ‘Ru...
US Ebola facility in Kenya fuels anger in a country with no cases
Ghana considering legal action against South Africa over xenophobic attacks — Ab...
There's no acrimony between Agric and Finance Ministers — Dafeamekpor
Finance and Agric Ministries clash could create COVID-like effect — Bryan Acheam...
Allow people to do their things in their rooms — Senyo Hosi on anti-LGBTQ bill
Disregard news of ministerial reshuffle — NDC urges Ghanaians
Awutu Senya East NDC Branch elections face uncertainty amid register controversy
Flooding is now a festival in Ghana, we have it every year – Kamal-Deen Abdulai
Mother, son arrested over alleged murder of husband at Nsawam-Adoagyiri
