Chapter XVII. UDP Segmentation Offload and Pacing
Here:
•
sockfd : The file descriptor of the UDP socket
•
&fs / &cl : Pointer to the framesize and class variables
•
sizeof(fs) / sizeof(cl) : The size of the variables
v. Now, compile the application.
UDP offload functionality for RTP data
In case of RTP data, the video server application sends the initial sequence number and the RTP
payload. The USO engine segments the payload data, increments the sequence number and
sends out the data.
In order to use the UDP offload functionality for RTP data, make the following additions to the
steps mentioned above:
i.
In step (ii), declare and initialize a new variable in the application:
int rtp_header_size=16;
Here, rtp_header_size is the RTP header size in bytes that the application sends.
ii. In step (iii), define a new macro, UDP_RTPHEADERLEN used for setting RTP header
length with the value 292.
# define UDP_RTPHEADERLEN 292
iii. In step (iv), define a new socket option:
setsockopt (sockfd,17,UDP_RTPHEADERLEN,&rtp_header_size,
sizeof(rtp_header_size));
Here,
•
&rtp_header_size : pointer to the RTP header length variable
•
sizeof(rtp_header_size) : the size of the RTP header length variable
4.2.
Configuring UDP Pacing
Now that the application has been modified to associate the application's UDP socket to a
particular UDP traffic class, the pacing of that socket's traffic can be set using the cxgbtool
utility.
Chelsio Unified Wire for Linux
255
Need help?
Do you have a question about the Terminator Series and is the answer not in the manual?
Questions and answers