Różnice między wybraną wersją a wersją aktualną.
Both sides previous revision Poprzednia wersja Nowa wersja | Poprzednia wersja | ||
sk1:lacze_danych [2017/03/21 14:54] jkonczak |
sk1:lacze_danych [2022/12/06 17:51] (aktualna) jkonczak [Mierzenie prędkości] |
||
---|---|---|---|
Linia 25: | Linia 25: | ||
* odczyt adresu MAC: ''ifconfig eth0'' / '' ip link'' | * odczyt adresu MAC: ''ifconfig eth0'' / '' ip link'' | ||
* zmiana adresu MAC: ''ifconfig eth0 hw ether 12:34:56:78:90:ab'' / '' ip link set dev eth0 address 12:34:56:78:90:ab'' | * zmiana adresu MAC: ''ifconfig eth0 hw ether 12:34:56:78:90:ab'' / '' ip link set dev eth0 address 12:34:56:78:90:ab'' | ||
+ | |||
+ | ++++ Przykłady poleceń wyświetlających adres MAC: | | ||
+ | <html> | ||
+ | <pre> | ||
+ | <b>/ # ip l</b> | ||
+ | 2: em1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast master br0 state UP mode DEFAULT group default qlen 1000 | ||
+ | link/ether <span title="Adres MAC interfejsu em1" style="background-color:rgba(0,255,0,0.2)">5c:f9:dd:78:3d:88</span> brd ff:ff:ff:ff:ff:ff | ||
+ | 3: p4p1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT group default qlen 1000 | ||
+ | link/ether <span title="OUI (organizationally unique identifier), identyfikator organizacji" style="background-color:rgba(255,0,0,0.2)">90:e2:ba</span>:<span title="24 bity na urządzenia w tym bloku adresów MAC" style="background-color:rgba(0,0,255,0.15)">1a:4d:48</span> brd ff:ff:ff:ff:ff:ff | ||
+ | 5: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 | ||
+ | link/ether <span style="background-color:rgba(0,0,0,0.1)">0</span><span title="Bit 0x1 w tym bloku oznaczałby adres multicastowy, bit 0x2 oznaczały lokalnie administrowany MAC" style="background-color:rgba(255,0,0,0.25)">8</span><span style="background-color:rgba(0,0,0,0.1)">:ed:b9:4c:31:8b</span> brd ff:ff:ff:ff:ff:ff | ||
+ | |||
+ | <b>/ # ifconfig -a</b> | ||
+ | em1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | ether <span title="Adres MAC interfejsu em1" style="background-color:rgba(0,255,0,0.2)">5c:f9:dd:78:3d:88</span> txqueuelen 1000 (Ethernet) | ||
+ | RX packets 2702 bytes 355076 (346.7 KiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 523 bytes 53668 (52.4 KiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | device interrupt 20 memory 0xddf00000-ddf20000 | ||
+ | |||
+ | p4p1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 | ||
+ | inet 192.168.1.2 netmask 255.255.255.0 broadcast 0.0.0.0 | ||
+ | inet6 fe80::92e2:baff:fe1a:4d48 prefixlen 64 scopeid 0x20<link> | ||
+ | ether <span title="OUI (organizationally unique identifier), identyfikator organizacji" style="background-color:rgba(255,0,0,0.2)">90:e2:ba</span>:<span title="24 bity na urządzenia w tym bloku adresów MAC" style="background-color:rgba(0,0,255,0.15)">1a:4d:48</span> txqueuelen 1000 (Ethernet) | ||
+ | RX packets 293 bytes 60122 (58.7 KiB) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 286 bytes 26478 (25.8 KiB) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | device memory 0xdd420000-dd43ffff | ||
+ | |||
+ | wlan0: flags=4098<BROADCAST,MULTICAST> mtu 1500 | ||
+ | ether <span style="background-color:rgba(0,0,0,0.1)">0</span><span title="Bit 0x1 w tym bloku oznaczałby adres multicastowy, bit 0x2 oznaczały lokalnie administrowany MAC" style="background-color:rgba(255,0,0,0.25)">8</span><span style="background-color:rgba(0,0,0,0.1)">:ed:b9:4c:31:8b</span> txqueuelen 1000 (Ethernet) | ||
+ | RX packets 0 bytes 0 (0.0 B) | ||
+ | RX errors 0 dropped 0 overruns 0 frame 0 | ||
+ | TX packets 0 bytes 0 (0.0 B) | ||
+ | TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 | ||
+ | </pre> | ||
+ | </html> | ||
+ | ++++ | ||
Domena rozgłoszeniowa http://en.wikipedia.org/wiki/Broadcast_domain [[http://soisk.info/index.php?title=Domena_kolizyjna_i_rozg%C5%82oszeniowa|[1]]] [[http://study-ccna.com/collision-broadcast-domain|[2]]] | Domena rozgłoszeniowa http://en.wikipedia.org/wiki/Broadcast_domain [[http://soisk.info/index.php?title=Domena_kolizyjna_i_rozg%C5%82oszeniowa|[1]]] [[http://study-ccna.com/collision-broadcast-domain|[2]]] | ||
Linia 50: | Linia 90: | ||
===== Mierzenie prędkości ===== | ===== Mierzenie prędkości ===== | ||
* Do mierzenia prędkości na jednym urządzeniu musi działać program czekający na połączenie (serwer), na drugim należy uruchomić program który łączy się z serwerem i mierzy prędkość (klient) | * Do mierzenia prędkości na jednym urządzeniu musi działać program czekający na połączenie (serwer), na drugim należy uruchomić program który łączy się z serwerem i mierzy prędkość (klient) | ||
- | * [[http://www.netperf.org/netperf/|netperf]] [[http://www.netperf.org/svn/netperf2/tags/netperf-2.7.0/doc/netperf.html|[1]]] | + | * [[https://github.com/HewlettPackard/netperf|netperf]] [[https://hewlettpackard.github.io/netperf/doc/netperf.html|[1]]] |
- | * serwer: ''netserver'' | + | * serwer: ''netserver -N'' |
* klient: ''netperf -H <//cel//>'' | * klient: ''netperf -H <//cel//>'' | ||
* [[https://iperf.fr/|iperf]] | * [[https://iperf.fr/|iperf]] | ||
Linia 58: | Linia 98: | ||
<html><small></html> | <html><small></html> | ||
- | Instalacja w/w programów w OpenSUSE: ''zypper install netperf'' / iperf: ''zypper install iperf'' | + | |
+ | Opcje programu netperf: | ||
+ | * ''netperf -h'' – pomoc ogólna | ||
+ | * ''netperf [-t {TCP_STREAM|…}] -- -h'' – pomoc dla wybranego testu | ||
+ | * ''netperf -D //1// …'' – wyniki pośrednie co 1 sekundę | ||
+ | * ''netperf -l //15// …'' – test o długości 15 sekund | ||
+ | * ''netperf -t UDP_STREAM …'' – test wykorzystujący protokół UDP | ||
+ | * ''netperf -t UDP_STREAM -H <cel> -- -m //1400//'' – test "dużych" wiadomości | ||
+ | * ''netperf -t UDP_STREAM -H <cel> -- -m //22//'' – test "małych" wiadomości | ||
+ | |||
+ | <del>Instalacja w/w programów w OpenSUSE: ''zypper install netperf'' / iperf: ''zypper install iperf''</del> | ||
<html></small></html> | <html></small></html> | ||
+ | |||
Przepustowość: bandwidth ≥ throughput ≥ goodput [[https://en.wikipedia.org/wiki/Goodput|[1]]] \\ | Przepustowość: bandwidth ≥ throughput ≥ goodput [[https://en.wikipedia.org/wiki/Goodput|[1]]] \\ |