Re: Creating fragmentation using sockets (on ethernet)



And make sure Jumbo packets are switched OFF.

1) Why should this be done ?
2) How should this be done ? I don't have any experience with Jumbo
frames

Regards,
Ian

On Mar 26, 12:33 am, Janaka <jana...@xxxxxxxxxxxx> wrote:
On Mar 26, 12:14 am, pk...@xxxxxxxxxxxxx (Patrick Klos) wrote:



In article <ae18d296-bbd2-4d1c-b332-3a9fc2ad6...@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,

ian...@xxxxxxxxx <ian...@xxxxxxxxx> wrote:
Hello,

Packets which are bigger than 1500 (which is the default MTU for
ethernet) should cause
fragmentation (assuming that the machine supports it).

I want to test fragmentation issues on some system.

- Can anybody give some advice/pointers for creating a small "c"
programs using sockets API
which will cause fragmentation ?

You must be asking about IP fragmentation since ethernet doesn't have
such a notion.

The easiest way to generate fragmented IP packets is to use UDP to send
large datagrams. Simply open a SOCK_DGRAM socket and use sendto() to
send datagrams larger than 1500 bytes (well, technically, anything above
1472 bytes in a UDP datagram should do the job).

Or, if you don't want to write a program, just use ping:

ping -s 32768 10.0.0.23

Patrick
========= For LAN/WAN Protocol Analysis, check out PacketView Pro! =========
Patrick Klos Email: patr...@xxxxxxxx
Klos Technologies, Inc. Web: http://www.klos.com/
============================================================================

And make sure Jumbo packets are switched OFF.

.



Relevant Pages

  • Re: Creating fragmentation using sockets (on ethernet)
    ... fragmentation. ... programs using sockets API ... You must be asking about IP fragmentation since ethernet doesn't have ... send datagrams larger than 1500 bytes (well, technically, anything above ...
    (comp.os.linux.development.system)
  • Re: MTU for cable modem connection to shaw.ca
    ... MTU of 576 bytes would avoid IP fragmentation, but it is by no means a ... I believe it *is* a guarantee, but am open to seeing an authoritative ... "All hosts must be prepared to accept datagrams of up to 576 octets ... Certainly, link layers can cut the size of a packet down, but I do not ...
    (comp.dcom.lans.ethernet)
  • Re: Network Stream behaving strangely.
    ... I was soo frustrated!!! ... Fragmentation and reassembly ... IP datagrams may be reassembled en route ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Creating fragmentation using sockets (on ethernet)
    ... I want to test fragmentation issues on some system. ... You must be asking about IP fragmentation since ethernet doesn't have ... The easiest way to generate fragmented IP packets is to use UDP to send ... send datagrams larger than 1500 bytes (well, technically, anything above ...
    (comp.os.linux.development.system)