Hi all,

I am working on a very small and basic os, the only function it really has is sharing files over a network.

Now i got a driver up and running for the Ethernet-device, (in this case: RTL8139).
i am also able to send/recieve packet's

i know (think) that the lay-out of an packet is like this:
6 Bytes: Dest-Mac address
6 Bytes: Src-Mac address
1 Word: protocol
x Bytes: Data inside packet

The problem is: i dont know anything else.
dont even know what kind of 'protocol s' exist, or is this like in windows (Sock_Stream or Sock_DataGram)

could somebody help me whit this...


Regards
PyroMathic

Posted on 2005-07-25 18:47:53 by pyr0_mathic
You can study SolarOS code (network drivers) here:
http://www.hostileencounter.com/os_main.html

And you must search the relevant RFC's (Google for them) for example:
http://www.faqs.org/rfcs/rfc826.html

As a word of advice: the path is like this...
-------------------------------------------------------
1) RAW packets
-test them a lot since you must get maximum performance here
-if possible test while sending and receiving on multiple boards (eth0/1) and running other processes also (GUI)
-everything will go slower from now on; so if you do not have high speed here...  then things are not going to improve later!
2)ARP
3)IP
4)ICMP/PING
5)UDP/ DNS
6)TCP on IP

-Try not to copy packets too much in memory OR you will loose performance
-also try to keep packets in network board memory if possible and make use of such buffers and board DMA/PCI Buss Master as much as possible (if the board has any or some of them)


Posted on 2005-07-25 19:54:18 by BogdanOntanu
thx for the quick reply,

and ty for the very usefull link, http://www.faqs.org/rfcs/
it seems that almost every network protocol is on that site :)

Regards.
PyroMathic
Posted on 2005-07-26 05:56:53 by pyr0_mathic

thx for the quick reply,

and ty for the very usefull link, http://www.faqs.org/rfcs/
it seems that almost every network protocol is on that site :)

Regards.
PyroMathic


All those protocols are suppose to be "public knowledge", it is just our burden to implement them :shock:
Posted on 2005-07-27 16:17:29 by SpooK