# Packet length is varying

**URL:** <https://www.ruby-forum.com/t/packet-length-is-varying/230731>\
**Category:** GNU Radio\
**Created:** [July 1, 2014, 11:32pm UTC](https://www.ruby-forum.com/t/packet-length-is-varying/230731 "2014-07-01T23:32:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 1, 2014, 11:32pm UTC](https://www.ruby-forum.com/t/packet-length-is-varying/230731/1 "2014-07-01T23:32:14Z")

</div>

Dear all,  
If the length of the packets coming from an application is varying , But  
the most of them are 70 bytes & the app sends the packets in bursts not  
continuously.  
I use ofdm tx & ofdm rx & 2 usrps to send and receive the packets by  
another app.  
So if I write 70 in the packet length parameter & if the packet coming  
is  
less than 70 bytes then it is buffered and not transmitted until it is  
70  
bytes when another coming data completes it. And so the last packet is  
not  
transmitted if it is less than 70 bytes as no coming packets after it.  
How to solve this problem ? Is there any blocks that can check if the  
packet length is less than 70 bytes , it pads it with zeros until the  
packet is 70 ?  
Or is there any other solutions?  
Thanks.
