High Latency in Gstreamer UDP Stream

I have trouble with gstreamer udpsrc element on Jetson Nano. I want to separate my old pipeline through UDP Server in order multiaccess.

My old pipeline is that:

v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw,format=YUY2,width=1280,height=720,framerate=25/1 ! timeoverlay ! nvvidconv ! queue max-size-buffers=1 leaky=2 ! nvv4l2vp8enc control-rate=1 bitrate=500000 iframeinterval=10 ! appsink name=appsink

I tried to separate it like this:

SENDER:

v4l2src device=/dev/video0 do-timestamp=true ! video/x-raw,format=YUY2,width=1280,height=720,framerate=25/1 ! timeoverlay ! nvvidconv ! queue max-size-buffers=1 leaky=2 ! nvv4l2vp8enc control-rate=1 bitrate=500000 iframeinterval=10 ! rtpvp8pay ! udpsink host=127.0.0.1 port=1234

RECEIVER:

udpsrc port=1234 caps="application/x-rtp,media=(string)video,encoding-name=(string)VP8,payload=(int)96,clock-rate=(int)90000" ! rtpjitterbuffer ! rtpvp8depay ! appsink name=appsink

I was able to get the video but there was too much delay and frames droped even though it worked locally. Then I tried to change kernel parameters like below but unfortunately I didn’t get any results.

sysctl -w net.core.rmem_max = 134217728 
sysctl -w net.core.wmem_max = 134217728
sysctl -w net.core.rmem_default = 134217728 
sysctl -w net.core.wmem_default = 134217728

Hi,
Please check if you can run this setup:
Gstreamer TCPserversink 2-3 seconds latency - #5 by DaneLLL

We see neglectable latency in the setup. Please give it a try and see if you can achieve the same.