Ethernet
From Hackepedia
Ethernet is a method for communication also called CSMA/CD (carrier sense, media access / collision detect). It was developed at DEC first. It was cheaper than token ring for a Local Area Network (LAN) so it became the industrial standard. Ethernet has historically been used on copper cabling up to Gigabit speeds, but fibre-optic cabling is becoming very popular especially at Gigabit speeds. When ethernet is in a half-duplex setting (possibly connected to a hub) collisions can occur when two or more NICS broadcast at the same time. When a collission is detected a NIC will back off a random amount of time and try again, because the other cards also back off a random amount of time the odds are low that they will collide again. Today hubs are not used anymore but switches which eliminate the need to put cards in half duplex mode. If you only have one network card,
# /sbin/ifconfig -a | grep media
media: Ethernet autoselect (100baseTX )
should show you what your network card is currently running at. If you have multiple cards, or are not getting the anticipated response, just try
# /sbin/ifconfig -a
On BSD, once you've determined your network
device you can see what options it has in section 4 of the Manual. In this case I'm using sis0:
man 4 sis
Contents
- 1 Thinnet & Thicknet
- 2 10base2
- 3 10base5
- 4 Twisted Pair & Fibre optics
- 5 10baseT Ethernet
- 6 100baseT Fast Ethernet
- 7 1000baseT Gigabit Ethernet
- 8 10 Gigabit Ethernet
- 9 Twisted Pair Copper Cabling
- 10 Wireless LAN
- 11 PPPoE
Thinnet & Thicknet
10base2
Called Thin-net or Cheapernet. Today this is not used anymore.
10base5
Uses coaxial cable for a range of 500 meters without repeaters. Today this is not used anymore.
Twisted Pair & Fibre optics
10baseT Ethernet
Has a bandwidth of 10 Mbps (Mega bit per second). It can work in full duplex and half duplex mode. The maximum length of one copper ethernet cable between 2 NIC's is 100 meters, 200 meters if a ethernet repeater is used, which boosts the signal.
100baseT Fast Ethernet
Has a bandwidth of 100 Mbps. It can work in full duplex and half duplex mode. The maximum length between 2 NICS is the same as 10 Mbps ethernet.
1000baseT Gigabit Ethernet
Has a bandwidth of 1000 Mbps. It can work in full duplex and half duplex mode.
10 Gigabit Ethernet
Has a bandwidth of 10 Gbps (Giga bit per second). It probably works in full duplex mode.
Twisted Pair Copper Cabling
common type of cabling for ethernet is category 5 cabling although there is category 5e now for gigabit. To attach the RJ-45 bits to the cabling a special tool called a RJ-45 crimper is used. Cheap version s are about $30 (CA) at cabling surplus stores.
Image:Rj45-st.jpg Image:Rj45-co.jpg
Wireless LAN
WLAN also called Wifi was first developed at Lucent with their Wavelan product. It is a standard based around IEEE 802.11b and g. At first Wifi could speak only 11 Mbps maximum which was then upgraded to 54 Mbps with the 802.11g standard. Wifi came with built-in encryption at first called WEP but the implementation of this
cryptography was breakable. It should be noted that all Wifi should be encrypted with ipsec to ensure additional security.
Image:Open-wifi-symbol.jpg
PPPoE
PPP over Ethernet is a hack of
protocol spoken with most DSL home end-user connections. It is covered in RFC 2516 and involves packet encasulation, a packet within a packet. As a result a PPPoE user will often have to dumb down their MTU and/or MRU settings. Although the default is usually 1500, this author has the following in his ppp.conf:
set mru 1492
set mtu 1492
as the best setting for his PPPoE sDSL connection.
German - von Hackepedia
Ethernet, auch genannt CSMA/CD (carrier sense, media access / collission detect), ist eine Methode für Kommunikation.
Es wurde erfunden bei DEC in Kalifornien. Es war billiger als IBM's Token Ring
für Local Area Networks (LAN's) und so wurde es der Industrieller Standard.
Ethernet war immer gut auf Kupfer basiertem Kabel mit Gigabit Bandbreiten,
aber Licht-Wellenleiter Ethernet wird immer mehr populär besonders mit
Bandbreiten über 1 Gbit/s. Wenn Ethernet im Half-Duplex Modus
ist (und warscheinlich mit einem Hub verbunden) können Kollisionen auftreten,
wenn Zwei oder mehr NICs (Netzwerkadapter) zur gleichen Zeit senden. Wenn
eine Kollision erkannt wird, halten alle Ethernet sender inne und geben sich
selbst eine kleine Pause, die mit einem Zufallsgenerator generiert wird. Dann
senden sie erneut mit ungefärem wissen das sie jetzt der einzige sind der
sendet. Heutzutage werden Hub's nicht mehr viel benutzt aber Switches sind
populär und diese vermeiden den Half-Duplex Modus. Falls Sie nur eine
Ethernet Netzwerkkarte haben,
# /sbin/ifconfig -a | grep media
media: Ethernet autoselect (100baseTX )
sollte das oberige zeigen in welchem Modus die Netzwerkkarte gerade ist. Falls
sie mehrere NIC's haben oder sie wissen das "grep media" nicht funktioniert,
dann versuchen Sie doch:
# /sbin/ifconfig -a
auf BSD, sobald sie das Netzwerk gerät erkannt haben können Sie sehen welche
Optionen sie haben in der vierten sektion des Manual. Hier wird sis0
benutzt:
man 4 sis
Inhalt
- 1 Thinnet & Thicknet
- 2 10base2
- 3 10base5
- 4 Twisted Pair & Fibre optics
- 5 10baseT Ethernet
- 6 100baseT Fast Ethernet
- 7 1000baseT Gigabit Ethernet
- 8 10 Gigabit Ethernet
- 9 Twisted Pair Copper Cabling
- 10 Wireless LAN
- 11 PPPoE
Thinnet & Thicknet
10base2
Genannt Thin-net oder Cheapernet. Wird heutzutage nicht mehr benutzt.
10base5
Benutzt Koaxial kabel mit einer maximalen länge von 500 Metern ohne
Repeatern (Verstärker). Wird heutzutage nicht mehr benutzt.
Twisted Pair & Fibre optics
10baseT Ethernet
Hat eine bandbreite von 10 Mbps (Megabits pro Sekunde). Es kann in Full-Duplex
oder Half-Duplex Modus funktionierten/senden. Die maximale länge zwischen
zwei Netzwerkkarten auf Kupferkabel ist 100 Meter, 200 Meter when ein Ethernet
Repeater benutzt wird. Ein Repeater ist ein Verstärker.
100baseT Fast Ethernet
Hat eine Bandbreite von 100 Mbps. Es kann Full-Duplex und Half-Duplex modii.
Die maximale länge zwischen zwei NICs sind die selben als 10baseT Ethernet.
1000baseT Gigabit Ethernet
Hat eine Bandbreite von 1000 Mbps. Es kann Full-Duplex und Half-Duplex modii.
10 Gigabit Ethernet
Hat eine Bandbreite von 10 Gbps (Gigabit pro Sekunde). Es funktioniert bestimmt
nur im Full-Duplex modus.
Twisted Pair Copper Cabling
Kupfer Ethernet Kabel Category 5e ist heutzutage noch das meist populärste
und geht in die Gigabit bereiche. Um einen RJ-45 Stecker an das kabel zu
befestigen braucht man ein spezielles Werkzeug das "Crimper" genannt wird.
Es gibt billige Crimper für 20 euro im Elektrogeschäft.
Wireless LAN
WLAN das auch Wifi genannt wird wurde zuerst erfunden bei Lucent mit ihren
Wavelan Produkt. Es ist ein standard der basiert um IEEE 802.11b, g und n.
Zuerst konnte Wifi nur 11 Mbps schnell sprechen das wiederum schneller wurde
mit 802.11g das 54 Mbps Bandbreite hatte. WLAN kame mit eingebauter
Verschlüsselung namens WEP aber dieses verfahren was durchbrechbar. Es ist
gute Sicherheit mit IPSEC die Daten auf einem WLAN extra noch zu verschlüsseln.
PPPoE
PPP over Ethernet ist ein gehacktes zwischen-protokoll das mit den meisten
DSL Heim end-usern gesprochen wird. Es ist beschrieben in RFC 2516 und
involviert Paket Enkapsulation (also ein Paket innerhalb eines anderen
Pakets). Deswegen muss ein PPPoE Benutzer die MRU/MTU (Maximum Transmission
Unit) runter zwingen. Ein Ethernet hat eine MTU von 1500 aber hier im
beispiel werden wir die MRU runterzwingen auf 1492 damit PPPoE funktionieren
kann (im ppp.conf):
set mru 1492
set mtu 1492
das ist das beste setting für eine PPPoE sDSL verbindung.