Gentoo Archives: gentoo-user

From: Jonathan Wright <mail@×××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Lots of network collisions - can I eliminate them?
Date: Fri, 23 Sep 2005 21:32:23
Message-Id: 43347353.4090300@djnauk.co.uk
In Reply to: [gentoo-user] Lots of network collisions - can I eliminate them? by Mark Knecht
1 Mark Knecht wrote:
2 > 1) What causes a 'collision' on a network interface?
3
4 As Paul pointed out via his e-mail (via the previous thread), collisions
5 are when two packets try and talk over an ethernet cable at the same time.
6
7 In terms of a hub, it's very common, esp. when the hub becomes loaded as
8 2/4/8/32, etc. machines are all essentially using the same bit of
9 cable (what with a hub being nothing more than a repeater).
10
11 If an interface detects a collision, the transfer is stopped and a it
12 waits a random amount of time before trying to send it again. This goes
13 round and round until it's sent.
14
15 For a switch on the other hand, its not so common, as there are only
16 ever two machines on the cable - the switch and the computer. Although
17 31% collision rate on dragonfly does seam alot.
18
19 Again, Paul is probably right, with half-duplex being the problem. In
20 this case, the same 'cable' us used for both sending and receiving
21 traffic. If one conflicts the other, you'll get a collision. With
22 Full-duplex, sends and receives are independent and therefore you can't
23 get collisions:
24
25 jwright on jonathan [ ~ ] --> /sbin/ifconfig eth0
26 eth0 Link encap:Ethernet HWaddr 00:02:B3:87:89:03
27 inet addr:10.0.0.10 Bcast:10.0.0.255 Mask:255.255.255.0
28 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
29 RX packets:3481762 errors:0 dropped:0 overruns:0 frame:0
30 TX packets:3664852 errors:0 dropped:0 overruns:0 carrier:0
31 collisions:0 txqueuelen:1000
32 RX bytes:1212745301 (1156.5 Mb) TX bytes:1002484102 (956.0 Mb)
33
34 jwright on jonathan [ ~ ] --> ssh -t kenny /sbin/ifconfig eth0
35 eth0 Link encap:Ethernet HWaddr 00:50:8B:4C:9C:EA
36 inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
37 UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
38 RX packets:18415888 errors:0 dropped:0 overruns:0 frame:0
39 TX packets:17153032 errors:0 dropped:0 overruns:0 carrier:0
40 collisions:0 txqueuelen:100
41 RX bytes:2907452267 (2772.7 Mb) TX bytes:960767410 (916.2 Mb)
42 Interrupt:11 Base address:0x2000 Memory:42100000-42100038
43
44 Connection to kenny closed.
45 jwright on jonathan [ ~ ] --> ssh -t kyle /sbin/ifconfig eth0
46 eth0 Link encap:Ethernet HWaddr 00:08:C7:7F:CF:A7
47 inet addr:10.0.0.1 Bcast:10.0.0.255 Mask:255.255.255.0
48 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
49 RX packets:34264896 errors:0 dropped:0 overruns:0 frame:0
50 TX packets:33334375 errors:0 dropped:0 overruns:0 carrier:0
51 collisions:0 txqueuelen:1000
52 RX bytes:3580726012 (3414.8 MB) TX bytes:196135708 (187.0 MB)
53 Interrupt:9 Base address:0x2000 Memory:42100000-42100038
54
55 Connection to kyle closed.
56
57 > 2) How can I eliminate them? (Including hardware changes if required.)
58 > The two machines are connected through a small LinkSys switch. model EZXS55W:
59
60 When I first read that I thought 'cheap built-in hub', so only 10MBps @
61 HD, however looking at it, 100MBps-FD shouldn't be a problem. A good
62 tool to look at is mii-tool (emerge mii-diag):
63
64 root on jonathan [ ~ ] --> mii-tool
65 eth0: negotiated 100baseTx-FD flow-control, link ok
66 root on jonathan [ ~ ] --> mii-tool -v
67 eth0: negotiated 100baseTx-FD flow-control, link ok
68 product info: Intel 82555 rev 4
69 basic mode: autonegotiation enabled
70 basic status: autonegotiation complete, link ok
71 capabilities: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
72 advertising: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
73 flow-control
74 link partner: 100baseTx-FD 100baseTx-HD 10baseT-FD 10baseT-HD
75 flow-control
76
77 Then you can run:
78
79 root on jonathan [ ~ ] --> mii-tool -F 100baseTx-FD
80
81 Which should put the computer into 100MBps via Full Duplex. Give that a
82 go - it should work. If there's a problem putting it into that (and you
83 can run 'mii-tool -r' to re-negotiate), it may be the switch and/or the
84 cable.
85
86 --
87 Jonathan Wright ~ mail at djnauk.co.uk
88 ~ www.djnauk.co.uk
89 --
90 2.6.12-gentoo-r6-djnauk-b2 AMD Athlon(tm) XP 2100+
91 up 11:04, 4 users, load average: 3.06, 5.30, 6.56
92 --
93 "People sometimes think I'm gay because I once played a gay in a
94 movie. It's funny. Audiences don't think you're a murderer if
95 you play a murderer, but they do think you're gay if you play a
96 gay."
97
98 ~ Perry King
99 --
100 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Lots of network collisions - can I eliminate them? Mark Knecht <markknecht@×××××.com>