1 |
On 9/23/05, Jonathan Wright <mail@×××××××××.uk> wrote: |
2 |
> Mark Knecht wrote: |
3 |
> > 1) What causes a 'collision' on a network interface? |
4 |
> |
5 |
> As Paul pointed out via his e-mail (via the previous thread), collisions |
6 |
> are when two packets try and talk over an ethernet cable at the same time. |
7 |
> |
8 |
> In terms of a hub, it's very common, esp. when the hub becomes loaded as |
9 |
> 2/4/8/32, etc. machines are all essentially using the same bit of |
10 |
> cable (what with a hub being nothing more than a repeater). |
11 |
> |
12 |
> If an interface detects a collision, the transfer is stopped and a it |
13 |
> waits a random amount of time before trying to send it again. This goes |
14 |
> round and round until it's sent. |
15 |
> |
16 |
> For a switch on the other hand, its not so common, as there are only |
17 |
> ever two machines on the cable - the switch and the computer. Although |
18 |
> 31% collision rate on dragonfly does seam alot. |
19 |
> |
20 |
> Again, Paul is probably right, with half-duplex being the problem. In |
21 |
> this case, the same 'cable' us used for both sending and receiving |
22 |
> traffic. If one conflicts the other, you'll get a collision. With |
23 |
> Full-duplex, sends and receives are independent and therefore you can't |
24 |
> get collisions: |
25 |
> |
26 |
<SNIP> |
27 |
> |
28 |
> > 2) How can I eliminate them? (Including hardware changes if required.) |
29 |
> > The two machines are connected through a small LinkSys switch. model EZXS55W: |
30 |
> |
31 |
> When I first read that I thought 'cheap built-in hub', so only 10MBps @ |
32 |
> HD, however looking at it, 100MBps-FD shouldn't be a problem. |
33 |
|
34 |
I bought the switch base don it being able to do 100Mb FD. Thanks to |
35 |
your suggestion about mii-tool I'm not so sure right now that it's |
36 |
actually doing it... |
37 |
|
38 |
> A good |
39 |
> tool to look at is mii-tool (emerge mii-diag): |
40 |
|
41 |
YES!! VERY HELPFUL! Thanks! |
42 |
|
43 |
> |
44 |
> root on jonathan [ ~ ] --> mii-tool |
45 |
> eth0: negotiated 100baseTx-FD flow-control, link ok |
46 |
|
47 |
Now, I'm thinking that this is setting the mii on my PC, correct? (Not |
48 |
on the switch.) Unfortunately it appears that Dragonfly cannot/will |
49 |
not do 100baseTx-FD or HD! |
50 |
|
51 |
dragonfly ~ # mii-tool |
52 |
eth0: 10 Mbit, full duplex, link ok |
53 |
dragonfly ~ # mii-tool -F 100baseTx-FD |
54 |
dragonfly ~ # mii-tool |
55 |
eth0: 100 Mbit, full duplex, no link |
56 |
dragonfly ~ # mii-tool -F 10baseT-FD |
57 |
dragonfly ~ # mii-tool |
58 |
eth0: 10 Mbit, full duplex, link ok |
59 |
dragonfly ~ # mii-tool -F 10baseT-HD |
60 |
dragonfly ~ # mii-tool |
61 |
eth0: 10 Mbit, half duplex, link ok |
62 |
dragonfly ~ # mii-tool -F 100baseTx-HD |
63 |
dragonfly ~ # mii-tool |
64 |
eth0: 100 Mbit, half duplex, no link |
65 |
dragonfly ~ # mii-tool -F 10baseT-FD |
66 |
dragonfly ~ # mii-tool |
67 |
eth0: 10 Mbit, full duplex, link ok |
68 |
dragonfly ~ # mii-tool -F 100baseTx-FD |
69 |
dragonfly ~ # mii-tool |
70 |
eth0: 100 Mbit, full duplex, no link |
71 |
dragonfly ~ # |
72 |
|
73 |
dragonfly ~ # lspci | grep Ethernet |
74 |
0000:01:03.0 Ethernet controller: Realtek Semiconductor Co., Ltd. |
75 |
RTL-8139/8139C/8139C+ (rev 10) |
76 |
dragonfly ~ # |
77 |
|
78 |
Note that there is no link for any of the 100Mb settings. This is |
79 |
verified looking at the switch itself as the link light turns off. |
80 |
Actually, I had never noticed that the 100 light was not turning on |
81 |
before today. so much for plug and play! (My bad...me stupido...) ;-) |
82 |
|
83 |
dragonfly ~ # mii-tool -v |
84 |
eth0: 100 Mbit, full duplex, no link |
85 |
product info: vendor 00:00:00, model 0 rev 0 |
86 |
basic mode: 100 Mbit, full duplex |
87 |
basic status: no link |
88 |
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
89 |
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
90 |
dragonfly ~ # |
91 |
|
92 |
dragonfly ~ # mii-tool -F 10baseT-FD |
93 |
dragonfly ~ # mii-tool -v |
94 |
eth0: 10 Mbit, full duplex, link ok |
95 |
product info: vendor 00:00:00, model 0 rev 0 |
96 |
basic mode: 10 Mbit, full duplex |
97 |
basic status: link ok |
98 |
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
99 |
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
100 |
dragonfly ~ # |
101 |
|
102 |
So far, up to this point, I can at least see the world using |
103 |
100baseT-FD. That should be better than what I had before. (I |
104 |
think...) |
105 |
|
106 |
> root on jonathan [ ~ ] --> mii-tool -v |
107 |
> eth0: negotiated 100baseTx-FD flow-control, link ok |
108 |
> product info: Intel 82555 rev 4 |
109 |
> basic mode: autonegotiation enabled |
110 |
> basic status: autonegotiation complete, link ok |
111 |
> capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
112 |
> advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
113 |
> flow-control |
114 |
> link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
115 |
> flow-control |
116 |
> |
117 |
> Then you can run: |
118 |
> |
119 |
> root on jonathan [ ~ ] --> mii-tool -F 100baseTx-FD |
120 |
> |
121 |
> Which should put the computer into 100MBps via Full Duplex. Give that a |
122 |
> go - it should work. If there's a problem putting it into that (and you |
123 |
> can run 'mii-tool -r' to re-negotiate), it may be the switch and/or the |
124 |
> cable. |
125 |
|
126 |
dragonfly ~ # mii-tool -r |
127 |
restarting autonegotiation... |
128 |
dragonfly ~ # mii-tool -v |
129 |
eth0: autonegotiation failed, link ok |
130 |
product info: vendor 00:00:00, model 0 rev 0 |
131 |
basic mode: autonegotiation enabled |
132 |
basic status: autonegotiation complete, link ok |
133 |
capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
134 |
advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD |
135 |
dragonfly ~ # |
136 |
|
137 |
OK, so something is having trouble with this negotiation stuff. I'll |
138 |
drag out some new cables after I send this and see what happens with |
139 |
that. I looked at the LinkSys switch docs again. There are no user |
140 |
settings that I see to get the switch to support 100Mb/S. It's |
141 |
supposed to be automatic. |
142 |
|
143 |
Again, thanks very much. mii-tool is very helpful. I'll also have to |
144 |
look at mii-diag to see if it can help with this problem. |
145 |
|
146 |
cheers, |
147 |
Mark |
148 |
|
149 |
-- |
150 |
gentoo-user@g.o mailing list |