[Ns-bugs] [Bug 750] New: Small Ethernet do not get padded

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Wed Nov 25 02:09:26 PST 2009


http://www.nsnam.org/bugzilla/show_bug.cgi?id=750

           Summary: Small Ethernet do not get padded
           Product: ns-3
           Version: ns-3-dev
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: devices
        AssignedTo: ns-bugs at isi.edu
        ReportedBy: Florian.Schmidt at cs.rwth-aachen.de
   Estimated Hours: 0.0


Created an attachment (id=676)
 --> (http://www.nsnam.org/bugzilla/attachment.cgi?id=676)
patch to pad ethernet frames

When packets that are less than 46 bytes long reach CsmaNetDevice, it will add
header and trailer and send them out. However, these packets will be less than
the required minimum frame size of 64 bytes. This also influences the time that
the line is used by each packet.

Solution: add a check in CsmaNetDevice::AddHeader. Before adding the header and
trailer, check for the length of the packet and pad it if necessary. Small and
simple patch is attached.

-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Ns-bugs mailing list