The working mechanism of RTP
The full name of RTP is Real-time Transport Protocol. RTP is used to provide end-to-end real-time transmission services for voice, image, fax and other multimedia data that need real-time transmission on the IP network. RTP provides time information and stream synchronization for end-to-end real-time transmission on the Internet, but does not guarantee the quality of service, which is provided by RTCP.
RTP is a protocol that runs at the transport layer, usually based on the UDP protocol, but also supports the TCP protocol.
The RTP packet consists of two parts, one is RTP Header, the other is RTP Payload, RTP Header occupies at least 12 bytes and at most 72 bytes; the other part is RTP Payload, which is used to encapsulate the actual data load, such as h264 Bare stream data.
How RTP works？
When the application program provides the RTSP protocol to establish an RTP session, the application program will determine a pair of destination transmission addresses (one network address and two port numbers), and the even port of the two port numbers is allocated to RTP for raw stream data For transmission, odd-numbered ports are assigned to RTCP for transmission control.
The sending process of RTP is as follows:
Receive streaming media information code stream (such as H.264) from the upper layer and encapsulate it into RTP data packets; RTCP receives control information from the upper layer and encapsulates it into RTCP control packets.
Send the RTP data packet to the even-numbered port in the UDP port pair; RTCP sends the RTCP control packet to the receiving port in the UDP port pair.
Established in 2001 and located in the city of Qingdao, China. Crystech Inc. is a global supplier of Alexandrite, KTP, RTP and E-O Q-Switch, YAG crystals, Laser Optics and more.