Re: Switches and ARP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 27 Jun 2002, Danny Lepage wrote:

> On Thu, 2002-06-27 at 16:40, Amit Kucheria wrote:
> > That what I would have thought too. But my NetGear FS516 100Mbit switch 
> > shows some characteristics that led me to believe that it "depends" on 
> > catching ARPs.
> > 
> > My scenario is as follows:
> > 
> > I have 2 virtual devices V1 & V2 (NOARP) on machines 1 and 2
> > respectively. They use the physical interface eth0 on the machines as
> > slave to send packets. In the virtual device code, I just hardwire the
> > source and destincation MAC address in the packet and send it to the
> > physical device's hard_start_xmit function, thus doing no ARP.
> 
> Do you use the same hardwire src MAC and dst MAC in V1 and V2 or is V2
> the mirror of V1 ?

I think you misunderstood my problem. I stated that V1 and V2 donot 
generate ARP (NOARP flag is set). Instead they use eth0 to xmit their 
packets. So the ethernet header carries the source and destination mac 
addresses of machines 1 and 2 rather than V1 & V2.

 
> In case I'm not too clear:
> >From V1, packets are generated with src MAC xxxxx, dst MAC yyyyy
> >From V2, packets are generated with src MAC yyyyy, dst MAC xxxxx

>From V1, packet has src mac addr m/c 1, dst mac addr m/c 2
>From V2, packet has src mac addr m/c 2, dst mac addr m/c 1

> > Infact all packets are broadcast on the switch till I send 
> > 'normal' traffic through eth0 on both machines.
> 
> I think this is the real reason. 'Till you generate traffic from both
> machines, the switch will never learn on which port is which machine and
> thus, will keep broadcasting packets on all ports.

BTW, for this experiment, I only have unidirectional UDP traffic. So I 
dont expect any packets back on the reverse path. Not that it should 
really matter, should it?

Regards,
Amit
-- 
I'm an angel!!! Honest!
The horns are just there to hold the halo up straight.
^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^-^
                  Amit Kucheria
          EECS Grad. Research Assistant
         University of Kansas @ Lawrence
   (R): +1-785-830-8521 ||| (C): +1-785-760-2871
____________________________________________________

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux