Networking Forums

Networking Forums > Computer Networking > Linux Networking > Allocating many 'net_device's (virtual interfaces)

Reply
Thread Tools Display Modes

Allocating many 'net_device's (virtual interfaces)

 
 
tal.omer.17@gmail.com
Guest
Posts: n/a

 
      01-28-2008, 08:47 AM
Dear all,

I wish to allocate many (ten of thousands) 'net_device's, for a
virtual interfaces application
I'm looking for references this capability.

-. I know vconfig target ~4K interfaces
I need/wish many more

any numbers? refernce?

Best regards
++Tal

 
Reply With Quote
 
 
 
 
David Schwartz
Guest
Posts: n/a

 
      01-28-2008, 11:46 AM
On Jan 28, 1:47 am, tal.omer...@gmail.com wrote:

> I wish to allocate many (ten of thousands) 'net_device's, for a
> virtual interfaces application
> I'm looking for references this capability.


What is your outer problem? It's extremely unlikely creating tens of
thousands of devices is the correct solution to it.

DS
 
Reply With Quote
 
tal.omer.17@gmail.com
Guest
Posts: n/a

 
      01-28-2008, 12:17 PM
On Jan 28, 2:46*pm, David Schwartz <dav...@webmaster.com> wrote:
> On Jan 28, 1:47 am, tal.omer...@gmail.com wrote:
>
> > I wish to allocate many (ten of thousands) 'net_device's, for a
> > virtual interfaces application
> > I'm looking for references this capability.

>
> What is your outer problem? It's extremely unlikely creating tens of
> thousands of devices is the correct solution to it.
>
> DS


Hi David

I wish to build a system with many external virtual interfaces.
Each virtual interface, encapsulate something (service/user/...).

A good solution will be: create one physical interface.
Many "virtual" interface using this one physical interface.
This is similar solution to 8021q/vconfig - one physical with many
"logical".

The problems I suspect:
1. "net_device" is big structure with many un-needed information
This may cause problems in scaling
2. "net_device" is saved in various search-data-structure.
This may cause problems in scaling
Others? info?


Regards,
++Tal
 
Reply With Quote
 
David Schwartz
Guest
Posts: n/a

 
      01-28-2008, 01:37 PM
On Jan 28, 5:17 am, tal.omer...@gmail.com wrote:

> I wish to build a system with many external virtual interfaces.
> Each virtual interface, encapsulate something (service/user/...).


That really doesn't make any sense. Why would a service or a user need
its own virtual interface?

> A good solution will be: create one physical interface.
> Many "virtual" interface using this one physical interface.
> This is similar solution to 8021q/vconfig - one physical with many
> "logical".
>
> The problems I suspect:
> 1. "net_device" is big structure with many un-needed information
> This may cause problems in scaling
> 2. "net_device" is saved in various search-data-structure.
> This may cause problems in scaling
> Others? info?


Right, so you are going about this the wrong way.

DS
 
Reply With Quote
 
Stefan Monnier
Guest
Posts: n/a

 
      01-28-2008, 07:27 PM
> I wish to build a system with many external virtual interfaces.
> Each virtual interface, encapsulate something (service/user/...).


Each IP adress already provides you with about 64K "virtual TCP
interfaces" (the port number). That'll be a lot cheaper than net_devices.


Stefan
 
Reply With Quote
 
tal.omer.17@gmail.com
Guest
Posts: n/a

 
      01-30-2008, 05:48 AM
On Jan 28, 10:27*pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > I wish to build a system with many external virtual interfaces.
> > Each virtual interface, encapsulate something (service/user/...).

>
> Each IP adress already provides you with about 64K "virtual TCP
> interfaces" (the port number). *That'll be a lot cheaper than net_devices.
>
> * * * * Stefan


Not sure that this will work for me, since not all targets can be
modules as
"virtual TCP interface". Thanks for the idea.

I still wish to target the "interface-scheme".
I am still looking for "net_device" scalability issues.

++Tal

 
Reply With Quote
 
tal.omer.17@gmail.com
Guest
Posts: n/a

 
      02-03-2008, 09:16 AM
On Jan 28, 10:27*pm, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > I wish to build a system with many external virtual interfaces.
> > Each virtual interface, encapsulate something (service/user/...).

>
> Each IP adress already provides you with about 64K "virtual TCP
> interfaces" (the port number). *That'll be a lot cheaper than net_devices.
>
> * * * * Stefan


Hi, as I get in: 802.1q
using vconfig create a net_device on top of the physical interface.
Thus, using 4 real-NICs I can create 4x4K vlan interfaces (16K).
Any knowledge/ref to that?

Regards,
++Tal
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Assigning virtual Interfaces to Debian 5 The Doctor Linux Networking 5 03-24-2009 11:07 PM
Multiple Virtual Ethernet Interfaces netfiber@gmail.com Linux Networking 0 02-02-2007 12:05 AM
How to use ospfd and zebra on virtual interfaces? sandy Linux Networking 0 10-28-2005 07:53 AM
Virtual Ethernet Interfaces Troy C Linux Networking 6 10-10-2004 10:52 PM
Help with dhcpd and virtual interfaces noc Linux Networking 1 07-10-2003 04:59 PM



1 2 3 4 5 6 7 8 9 10 11