Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to force UDP packet size?

Reply
Thread Tools Display Modes

How to force UDP packet size?

 
 
Nicola Gatti
Guest
Posts: n/a

 
      01-06-2004, 03:07 PM
I use Videolan to redirect a live video mpeg2 stream from a source with
MTU=65535 to a pc behind a firewall which receives only UDP packets with an
MTU of no more than 1500,is there a way to tell my redirecting machine to
split automatically the UDP packets? Videolan lets you change the MTU but
only for both input and output and non separately...


 
Reply With Quote
 
 
 
 
Neil Horman
Guest
Posts: n/a

 
      01-06-2004, 05:17 PM
Nicola Gatti wrote:
> I use Videolan to redirect a live video mpeg2 stream from a source with
> MTU=65535 to a pc behind a firewall which receives only UDP packets with an
> MTU of no more than 1500,is there a way to tell my redirecting machine to
> split automatically the UDP packets? Videolan lets you change the MTU but
> only for both input and output and non separately...
>
>

MTU is a media layer setting. Any device whcich sits on multiple
networks should be able to automatically fragment packets which arrive
from a source with a larger MTU than the destination network segment can
support. As for packet reassembly, most devices won't bother because
you never know if another packet is going to arrive, at least not
without some stateful inspection (makes for a real queueing headache).

Sorry, fragmentation should work automatically, but reassembly you're
likely out of luck on unless you want to write some code of your own on
the Videolan box.

Neil

--
Neil Horman
Red Hat, Inc., http://people.redhat.com/nhorman
gpg keyid: 1024D / 0x92A74FA1, http://www.keyserver.net

 
Reply With Quote
 
Baho Utot
Guest
Posts: n/a

 
      01-06-2004, 11:01 PM
Neil Horman wrote:

> Nicola Gatti wrote:
>> I use Videolan to redirect a live video mpeg2 stream from a source with
>> MTU=65535 to a pc behind a firewall which receives only UDP packets with
>> an MTU of no more than 1500,is there a way to tell my redirecting machine
>> to split automatically the UDP packets? Videolan lets you change the MTU
>> but only for both input and output and non separately...
>>
>>

> MTU is a media layer setting. Any device whcich sits on multiple
> networks should be able to automatically fragment packets which arrive
> from a source with a larger MTU than the destination network segment can
> support. As for packet reassembly, most devices won't bother because
> you never know if another packet is going to arrive, at least not
> without some stateful inspection (makes for a real queueing headache).
>
> Sorry, fragmentation should work automatically, but reassembly you're
> likely out of luck on unless you want to write some code of your own on
> the Videolan box.
>
> Neil
>



Dosen't ethernet automagically limit the MTU to 1500. I think taht it does.
 
Reply With Quote
 
Nicola Gatti
Guest
Posts: n/a

 
      01-07-2004, 08:28 AM
What I don't understand is: BOTH my two pc's are set with and MTU of 1500
but when i get the video stream from my tv provider I have to put the option
of --mtu 65535 in videolan otherwise I only get a few corrupted data,that
means that my pc gets packets of more than 1500 even if the mtu for his
network card is 1500?
After that I made some tests and I tried to simply stream an avi from my
first pc to the firewalled second,if i put --mtu with more than 1500 the
second pc doesn't get any packet,that means that the packets are not
automatically fragmented?

"Baho Utot" <baho-(E-Mail Removed)> wrote in message
news:dftrc1-(E-Mail Removed)...
> Neil Horman wrote:
>
> > Nicola Gatti wrote:
> >> I use Videolan to redirect a live video mpeg2 stream from a source with
> >> MTU=65535 to a pc behind a firewall which receives only UDP packets

with
> >> an MTU of no more than 1500,is there a way to tell my redirecting

machine
> >> to split automatically the UDP packets? Videolan lets you change the

MTU
> >> but only for both input and output and non separately...
> >>
> >>

> > MTU is a media layer setting. Any device whcich sits on multiple
> > networks should be able to automatically fragment packets which arrive
> > from a source with a larger MTU than the destination network segment can
> > support. As for packet reassembly, most devices won't bother because
> > you never know if another packet is going to arrive, at least not
> > without some stateful inspection (makes for a real queueing headache).
> >
> > Sorry, fragmentation should work automatically, but reassembly you're
> > likely out of luck on unless you want to write some code of your own on
> > the Videolan box.
> >
> > Neil
> >

>
>
> Dosen't ethernet automagically limit the MTU to 1500. I think taht it

does.


 
Reply With Quote
 
Nicola Gatti
Guest
Posts: n/a

 
      01-07-2004, 11:25 AM
I did it, I run two session of videolan like that:
vlc --mtu 65535
udp:@ipproviderort --sout='#duplicate{dst=std{access=http,mux=ts,url=12 7.0
..0.1:11112}}'
vlc --mtu 1500
http:@127.0.0.1:11112 --sout='#duplicate{dst=std{access=udp,mux=ts,url=ipd estinationort}}
passing through http made him resize the packets
cheers

"Nicola Gatti" <(E-Mail Removed)> wrote in message
news:btemgf$rde$(E-Mail Removed)...
> I use Videolan to redirect a live video mpeg2 stream from a source with
> MTU=65535 to a pc behind a firewall which receives only UDP packets with

an
> MTU of no more than 1500,is there a way to tell my redirecting machine to
> split automatically the UDP packets? Videolan lets you change the MTU but
> only for both input and output and non separately...
>
>



 
Reply With Quote
 
Leon.
Guest
Posts: n/a

 
      01-07-2004, 12:02 PM
> Dosen't ethernet automagically limit the MTU to 1500. I think taht it
does.

Correct, ethernet is MTU of 1500.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
why the ip packet size is too small Thinking Linux Networking 30 03-05-2011 12:09 AM
Does anyone know the size a standard TCP/IP packet which is just simply performing an "SNMP GET"? Spin Windows Networking 2 07-18-2008 04:10 PM
Nike Air Force Ones,Air Force One Air Force One-1,25th anniversary lky52136@gmail.com Windows Networking 0 01-14-2008 07:45 PM
What is MAX size allocated to packet in kernel??? linux.lover Linux Networking 0 01-10-2005 01:56 PM
set maximum ip-packet-size ? peter pilsl Linux Networking 1 06-01-2004 11:48 PM



1 2 3 4 5 6 7 8 9 10 11