User Tools

Site Tools


proiecte:wireless-mac

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
proiecte:wireless-mac [2014/01/31 00:54]
adrian.ciobanu [Informatii aditionale]
proiecte:wireless-mac [2014/02/07 10:47] (current)
codrin.ciubotariu [Rulare si rezultate]
Line 34: Line 34:
 == Testul 1 == == Testul 1 ==
 Topologia contine doua noduri Topologia contine doua noduri
- 
  
 Node          Time   Event Node          Time   Event
Line 40: Line 39:
     0:00:00.000762  ----> 00.00.00.00.7A.04.0D.FF.68.AC  0.319 ms     0:00:00.000762  ----> 00.00.00.00.7A.04.0D.FF.68.AC  0.319 ms
     0:00:00.000796  <==== 00.00.00.00.7A.04.0D.FF.68.AC  0.319 ms     0:00:00.000796  <==== 00.00.00.00.7A.04.0D.FF.68.AC  0.319 ms
-   + 
 + 
 +== Testul 2 == 
 +Topologia contine sase noduri 
 + 
 +Node          Time   Event 
 +------------------------------------------------------------------------------ 
 +    0:00:00.000882  ----> 00.00.00.00.7A.07.0D.FF.00.00.00.6A.D9  0.416 ms 
 +    0:00:00.000916  <==== 00.00.00.00.7A.07.0D.FF.00.00.00.6A.D9  0.416 ms 
 +    0:00:00.000916  <==== 00.00.00.00.7A.07.0D.FF.00.00.00.6A.D9  0.416 ms 
 +    0:00:00.102397  ----> 00.00.00.00.7A.07.0D.FF.01.00.01.4D.C8  0.416 ms 
 +    0:00:00.202771  ----> 00.00.00.00.7A.07.0D.FF.02.00.01.14.98  0.416 ms 
 +    0:00:00.203306  ----> 00.00.00.00.7A.07.0D.FF.01.00.01.4D.C8  0.416 ms 
 +    0:00:00.404054  ----> 00.00.00.00.7A.07.0D.FF.02.00.01.14.98  0.416 ms 
 +    0:00:00.102432  <==== 00.00.00.00.7A.07.0D.FF.01.00.01.4D.C8  0.416 ms 
 +    0:00:00.102432  <==== 00.00.00.00.7A.07.0D.FF.01.00.01.4D.C8  0.416 ms 
 +    0:00:00.404672  ----> 00.00.00.00.7A.07.0D.FF.03.00.02.13.CB  0.416 ms 
 +    0:00:00.505044  ----> 00.00.00.00.7A.07.0D.FF.04.00.02.96.5B  0.416 ms 
 +    0:00:00.706335  ----> 00.00.00.00.7A.07.0D.FF.03.00.02.13.CB  0.416 ms 
 +    0:00:00.907079  ----> 00.00.00.00.7A.07.0D.FF.04.00.02.96.5B  0.416 ms 
 +    0:00:00.505080  <==== 00.00.00.00.7A.07.0D.FF.04.00.02.96.5B  0.416 ms 
 +    0:00:01.008073  ----> 00.00.00.00.7A.07.0D.FF.05.00.03.B1.4A  0.416 ms 
 +    0:00:01.510491  ----> 00.00.00.00.7A.07.0D.FF.05.00.03.B1.4A  0.416 ms 
 + 
 +In continuare vom descrie un frame de mai sus. Vom lua ca referinta frame-ul nr 4 (00.00.00.00.7A.07.0D.FF.01.00.01.4D.C8): 
 +  * 7A.07 (2 octeti) - lungimea frame-ului; 
 +  * 0D (1 octet) - Magic payload, numarul 13; 
 +  * FF (1 octet) - Adresa destinatie (MAC) a frame-ului; FF reprezinta adresa broadcast; 
 +  * 01 (1 octet) - Adresa sursa (MAC) a frame-ului; 
 +  * 00 (1 octet) - tipul pachetului encapsulat. Acesta este un pachet numit "DISCOVERY" de catre noi, si are valoarea 0; 
 +  * 01 (1 octet) - Numarul de hopuri pe care il are nodul sursa pana la nodul base station; Informatie specifica pachetului DISCOVERY 
 +  * 4D.C8 (2 octeti) - CRC; 
 ===== Informatii aditionale ===== ===== Informatii aditionale =====
 == Anexa 1 - structuri de date == == Anexa 1 - structuri de date ==
- +* tipurile de mesaje si structurile lor 
-''typedef enum {+<file> 
 +typedef enum {
 DISCOVERY = 0, DISCOVERY = 0,
 RTS, RTS,
Line 67: Line 99:
 uint8_t val; uint8_t val;
 }normal_packet; }normal_packet;
 +</file>
  
 +* componenta unui mesaj
 +<file>
 typedef struct { typedef struct {
 uint8_t destination_node; /* receiver of the packet */ uint8_t destination_node; /* receiver of the packet */
Line 75: Line 110:
 void * data; /* pointer to data_size bytes of data */ void * data; /* pointer to data_size bytes of data */
 }Frame_t; }Frame_t;
 +</file>
  
 +* tabela de rutare pentru fiecare nod (directia catre nodul 0) 
 +<file>
 typedef struct { typedef struct {
 int next_hop; int next_hop;
 int hop_count; int hop_count;
-}route_table;'' +}route_table; 
- +</file>
- +
 ===== Bibliografie ===== ===== Bibliografie =====
  
 * [1] http://elf.cs.pub.ro/wsn/wiki/lab3 * [1] http://elf.cs.pub.ro/wsn/wiki/lab3
 * [2] http://en.wikipedia.org/wiki/IEEE_802.11_RTS/CTS * [2] http://en.wikipedia.org/wiki/IEEE_802.11_RTS/CTS
 +
proiecte/wireless-mac.1391122472.txt.gz · Last modified: 2014/01/31 00:54 by adrian.ciobanu