Re: Ethernet over Kernel Sockets



On Fri 2008-02-29 21:54:21, Lukas Razik wrote:
Hello all!

As you know, some network cards doesn't have a 'eth'
interface under linux.
Because of that I'm developing a net_device based driver
which doesn't transmit and receive directly through a
real network card but through UDP kernel sockets.

What is it good for?

So the eth1 interfaces are based on sockets which use
the eth0 (Gigabit) interfaces for the communication.
Now, if I measure the transmission between 192.168.0.1
and 192.168.0.2 then I get transmission rates that are
normal for Gigabit-Ethernet (~25?sec (PingPong) and
~900Mbit/s).
If I measure the transmission through the eth1
interfaces between 192.168.1.1 and 192.168.1.2 then I
only get ~1msec (PingPong) and only about ~400Mbit/s.

The interesting thing is, that I always get PingPongs of
1ms (= one jiffie). Although if I measure with 100MBit-
or other non-Ethernet cards.

Try increasing HZ :-)... or maybe it is a gigabit interrupt mitigation
issue?

--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Ethernet over Kernel Sockets
    ... some network cards doesn't have a 'eth' interface under linux. ... Because of that I'm developing a net_device based driver which doesn't transmit and receive directly through a real network card but through UDP kernel sockets. ... The current state is that all works stable but I've bad transmission rates and bad ping times. ... So the eth1 interfaces are based on sockets which use the eth0 interfaces for the communication. ...
    (Linux-Kernel)
  • Re: Could someone please explain this?
    ... I'm writing a program that interfaces with a device on the serial port and in the documentation it says the folowing: ... Number of Dims is a value between 0 and 22 identifying the number of dims to be transmitted ... E/S defines whether the following byte is an extended transmission or a standard transmission. ...
    (sci.electronics.basics)
  • Re: Could someone please explain this?
    ... I'm writing a program that interfaces with a device on the serial port ... Number of Dims is a value between 0 and 22 identifying the number of dims ... a standard transmission. ... A link to the documentation: ...
    (sci.electronics.basics)
  • Could someone please explain this?
    ... I'm writing a program that interfaces with a device on the serial port and ... Number of Dims is a value between 0 and 22 identifying the number of dims to ... standard transmission. ... A link to the documentation: ...
    (sci.electronics.basics)
  • Running a DHCP server on multihomed Linux
    ... Im using openSuSE 10.3 and I have a 2 network cards: ... There is no packet forwarding between the interfaces. ... Im using the DHCP server shipped with openSUSE and want to be able to ...
    (comp.os.linux.networking)