LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 07-30-2006, 10:17 PM   #1
GatorBlade
LQ Newbie
 
Registered: Apr 2006
Location: /usr/bin
Posts: 12

Rep: Reputation: 0
Diffrence between Network int and device node?


Hello, I was wondering if someone could describe Diffrence between Device node file and Network interface file?
Why do we have to use Diffrent file for networking devices?
Is communication Serial as in Character device file or parallel as in Block device file?

Regards.
G.B
 
Old 07-31-2006, 07:19 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
Quote:
Device node file
I suppose you are referring to the "special device files" in /dev that allow access to block and character devices?

Quote:
Network interface file
What do you mean by this?
If you are talking about network interfaces, like "eth0", then the answer is that they are not files nor special device files.

So, please elaborate, give examples, tell us where you found the terms you want to have us explain to you, ...
 
Old 08-01-2006, 02:36 AM   #3
GatorBlade
LQ Newbie
 
Registered: Apr 2006
Location: /usr/bin
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by timmeke
I suppose you are referring to the "special device files" in /dev that allow access to block and character devices?


What do you mean by this?
If you are talking about network interfaces, like "eth0", then the answer is that they are not files nor special device files.

So, please elaborate, give examples, tell us where you found the terms you want to have us explain to you, ...
Hello,
Thanks for replying.

Yes, i am talking about special device files in /dev that allow us to communicate with block and charcter devices...as we know communication is serial in case of character devices and parallel in case of block devies...
I am wodering how application communicate with network interface..which is neither block device nor character device. i hope you got the point.

G.B
 
Old 08-01-2006, 03:04 AM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
I wouldn't call it "serial" and "parallel", judging from my electronics background. Yes, the amount of data sent to the device is different (char-per-char or block-by-block) and may or may not include disk caching, but the physical interface can be either serial (ie SATA) or parallel (ie PATA), depending on the disk type and the bus (IDE/SCSI) the disk is connected to.

As for network interfaces, the story may be a little more complicated and may also depend on the network protocol considered. Ethernet cards (like the standard eth0 interface), for instance, support a typical TCP/IP protocol stack, which means that any data you give, is cut up into packets of a fixed maximum size (ie 1.5 KB) before they are physically transmitted over the network.
So yes, applications can probably send the interface device more than just one char at a time.
The hardware access to the card may be different though and may depend on the type of the network card.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ieee1394: /dev/raw1394 device node missing kevinatkins Linux - Hardware 4 12-16-2008 12:07 PM
Floppy device node missing. jcormacey Red Hat 2 01-25-2006 06:05 AM
I can`t create a device node in /dev gcasados Slackware 8 02-21-2005 06:17 AM
udev does not create scsi device node maenho Linux - Software 0 11-27-2004 06:08 AM
VMWare problems: can't change device node... shiny_spoon Linux - Software 2 11-19-2003 10:33 PM


All times are GMT -5. The time now is 04:12 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration