Using Ethernet cards to create arbitrary frames?

Discussions of the Ethernet/IEEE 802.3 protocols.

Using Ethernet cards to create arbitrary frames?

Postby Herbert Haas » Wed Oct 26, 2005 11:20 am

Hi experts, hackers.

Does anybody know if Ethernet NICs can be misused to create
arbitrary frames?

As far as I know, cheap NICs don't create the frame
headers by themselves rather it's the job of the SW-drivers.

I would like to do some experiments in basic data communications...

Thanks for help!

Herbert
Herbert Haas
 

Re: Using Ethernet cards to create arbitrary frames?

Postby William P.N. Smith » Thu Oct 27, 2005 1:02 am

Herbert Haas <haas@removethis.astro.removethat.univie.ac.at> wrote:
Does anybody know if Ethernet NICs can be misused to create
arbitrary frames?

IIRC, you can build about anything you want with the packet driver
interface. I wrote some code in a previous life to saturate a 10BaseT
network using some old DOS machines, but of course it was on a
separate test LAN.
William P.N. Smith
 

Re: Using Ethernet cards to create arbitrary frames?

Postby Herbert Haas » Thu Oct 27, 2005 9:45 am

Am Wed, 26 Oct 2005 21:02:57 -0400 schrieb William P. N. Smith:

Herbert Haas <haas@removethis.astro.removethat.univie.ac.at> wrote:
Does anybody know if Ethernet NICs can be misused to create
arbitrary frames?

IIRC, you can build about anything you want with the packet driver
interface. I wrote some code in a previous life to saturate a 10BaseT
network using some old DOS machines, but of course it was on a
separate test LAN.

Is it also possible to create non-Ethernet headers?
For example 2-byte address fields, etc...

Thanks
Herbert
Herbert Haas
 

Re: Using Ethernet cards to create arbitrary frames?

Postby Manfred Kwiatkowski » Thu Oct 27, 2005 11:20 am

In article <pan.2005.10.27.09.45.04.799875@removethis.astro.removethat.univie.ac.at>,
Herbert Haas <haas@removethis.astro.removethat.univie.ac.at> writes:
Am Wed, 26 Oct 2005 21:02:57 -0400 schrieb William P. N. Smith:

Herbert Haas <haas@removethis.astro.removethat.univie.ac.at> wrote:
Does anybody know if Ethernet NICs can be misused to create
arbitrary frames?

IIRC, you can build about anything you want with the packet driver
interface. I wrote some code in a previous life to saturate a 10BaseT
network using some old DOS machines, but of course it was on a
separate test LAN.

Is it also possible to create non-Ethernet headers?
For example 2-byte address fields, etc...

Yes. It is the standard procedure for a driver to assemble the
whole frame in software. The NIC sends whatever there is and does
not care for dest, source or type fields.
--

Manfred Kwiatkowski kwiatkowski@zrz.tu-berlin.de
Manfred Kwiatkowski
 

Re: Using Ethernet cards to create arbitrary frames?

Postby glen herrmannsfeldt » Fri Oct 28, 2005 3:20 am

Manfred Kwiatkowski wrote:

(snip)

Is it also possible to create non-Ethernet headers?
For example 2-byte address fields, etc...

Yes. It is the standard procedure for a driver to assemble the
whole frame in software. The NIC sends whatever there is and does
not care for dest, source or type fields.

Not to mention, if I remember right, that ethernet includes
a version with 16 bit addresses.

-- glen
glen herrmannsfeldt
 

Re: Using Ethernet cards to create arbitrary frames?

Postby Rich Seifert » Fri Oct 28, 2005 11:20 am

In article <6f6dnRAsbdkkMPzeRVn-rA@comcast.com>,
glen herrmannsfeldt <gah@ugcs.caltech.edu> wrote:

Not to mention, if I remember right, that ethernet includes
a version with 16 bit addresses.


Two-byte addresses are no longer part of the standard; the "feature" was
removed in 1997 (and was never commercially implemented anyway).


--
Rich Seifert Networks and Communications Consulting
21885 Bear Creek Way
(408) 395-5700 Los Gatos, CA 95033
(408) 228-0803 FAX

Send replies to: usenet at richseifert dot com
Rich Seifert
 

Re: Using Ethernet cards to create arbitrary frames?

Postby William P.N. Smith » Fri Oct 28, 2005 11:20 am

Herbert Haas <haas@removethis.astro.removethat.univie.ac.at> wrote:
Is it also possible to create non-Ethernet headers?

Probably, though I don't recall the details. Look up the
documentation on the packet interface, it shold all be there.

BTW, if you start spewing non-ethernet stuff onto the cable, you'd
have a very good chance that it's not going anywhere, as 'broken'
frames (bad checksum, etc) aren't going anywhere, and probably
(hopefully) won't propagate through switches...
William P.N. Smith
 


Return to Ethernet

Who is online

Users browsing this forum: No registered users and 0 guests

cron