This shows you the differences between two versions of the page.
|
isrm:laborator-todo [2019/10/14 07:42] mbarbulescu [Laborator ns-3 - propunere structura] |
isrm:laborator-todo [2019/10/29 19:34] (current) mbarbulescu |
||
|---|---|---|---|
| Line 9: | Line 9: | ||
| - Modele de propagare WiFi: Friis, LogDistancePropagationLossModel, ThreeLogDistancePropagationLossModel , TwoRayGroundPropagationLossModel cu trafic UDP vs. TCP si cu/fara RTS/CTS | - Modele de propagare WiFi: Friis, LogDistancePropagationLossModel, ThreeLogDistancePropagationLossModel , TwoRayGroundPropagationLossModel cu trafic UDP vs. TCP si cu/fara RTS/CTS | ||
| - Carrier sense fizic (EnergyDetectionThreshold) vs virtual (RX sensitivity) | - Carrier sense fizic (EnergyDetectionThreshold) vs virtual (RX sensitivity) | ||
| - | - DCF / contention window (TODO: de gasit exemple in ns-3) | + | - DCF / contention window |
| - | - DCF / contention window (TODO: de gasit exemple in ns-3) | + | - DCF / contention window (cont.) |
| + | - Jain Fairness | ||
| - MCS multiple si rate adaption cu distanta (e unul din exemplele din ns-3) | - MCS multiple si rate adaption cu distanta (e unul din exemplele din ns-3) | ||
| - WiFi in Linux: setup ''hostapd'', ''wpa_supplicant'', ''iw'', modul monitor si ''tcpdump'' - analizat radio tap header | - WiFi in Linux: setup ''hostapd'', ''wpa_supplicant'', ''iw'', modul monitor si ''tcpdump'' - analizat radio tap header | ||
| - WiFi in Linux 2: monitorizare PHY cu USRP? | - WiFi in Linux 2: monitorizare PHY cu USRP? | ||
| + | <code C++> | ||
| + | //Din documentatia ns-3: https://www.nsnam.org/doxygen/classns3_1_1_wifi_mac.html | ||
| + | //https://www.nsnam.org/docs/release/3.5/manual/manual_59.html | ||
| + | //https://mehmetalierturk.com/2014/01/07/how-to-set-edca-parameters-in-ns3-802-11/ | ||
| + | |||
| + | void ns3::WifiMac::ConfigureDcf ( Ptr< Txop > dcf, | ||
| + | uint32_t cwmin, | ||
| + | uint32_t cwmax, | ||
| + | bool isDsss, | ||
| + | AcIndex ac | ||
| + | ) | ||
| + | |||
| + | NqosWifiMacHelper wifiMacHelper = NqosWifiMacHelper::Default (); | ||
| + | Ssid ssid = Ssid ("ns-3-ssid"); | ||
| + | wifiMacHelper.SetType ("ns3::NqstaWifiMac", "Ssid", SsidValue (ssid), "ActiveProbing", BooleanValue (false)); | ||
| + | wifiMacHelper.SetDcaParameters ("MinCw", UintegerValue (20), "Aifsn", UintegerValue (3)); | ||
| + | </code> | ||
| ==== Laborator - subiecte de explorat ==== | ==== Laborator - subiecte de explorat ==== | ||