The most comprehensive wireless trace format in ns2-easier to understand

Source: Internet
Author: User

 

Chinese:

First, give some records in the tr file (some records may have other data ).

R 2.562406515 _ 93 _ RTR --- 1 DSR 32 [0 ffffffff 1 800] ------- [32 0] 1 [1 1] [0 1 0 0-> 0] [0 0 0 0 0-> 0]

12345: 6789[1, 10/11, 12/13]14: 16[
17-1819 20]

S 3.000000000 _ 0 _ RTR---0Oscar48[0000]-------[0: 255
-0]

S 10.00000000 _ 0 _ AGT---2TCP40[0000]-------[
0: 01:0320]

R 10.00000000 _ 0 _ RTR---2TCP40[0000]-------[0: 01:0320]

S 12.50000000 _ 0 _ RTR---0Oscar48[0000]-------[0: 255
-0]

The orange part indicates the wireless trace. Each record has 20 columns. The meanings of each column are described below:

(1) Event Type:

S: Group Sending event;

R: events received by the Group;

D: Group discard events;

F: group forwarding events;

(2) event generation time.

(3) The Node ID that processes the event.

(4) trace types:

RTR: Router trace;

AGT: Agent trace;

Mac: MAC layer trace;

(5: 6) delimiter.

(7) group ID.

(8) group type.

(9) group size (in bytes ).

[] MAC layer details

(10) The sending node sends the expected time value of the Group over the wireless channel, expressed in hexadecimal notation.

(11) MAC address of the receiving node.

(12) MAC address of the sending node.

(13) The group type encapsulated by the MAC layer. 0x800: IP group, 0x806: ARP Group

() Delimiter.

(17) source IP address sent by the Group. Node number. Port Number

(18) The destination IP address sent by the Group. Node number. Port Number

(19) The TTL value of the group.

(20) Number of hops from the source node to the target node.

 

English

Action: [S | r | D]: s -- sent, r -- stored ed, d -- dropped

When: the time when the action happened

Where: The node where the action happened

Layer:

AGT -- Application, RTR -- routing, ll -- Link Layer (ARP is done here)

Ifq -- outgoing packet Queue (between link and MAC layer)

Mac -- Mac, phy -- physical flags:

Seqno: the sequence number of the packet

Type: the packet type

CBR-CBR data stream Packet

DSR -- DSR routing packet (Control Packet Generated by routing)

RTS -- RTS Packet Generated by Mac 802.11

ARP -- Link Layer ARP

Packet size: the size of packet at current layer, when packet goes down, size increases, goes up size decreases

[A B C D]: A -- the packet duration in MAC layer Header

B -- the MAC address of destination

C -- the MAC address of Source

D -- the Mac type of the packet body

Flags: [...]: [source node IP: port_number destination node IP (-1 means broadcast): port_number IP header ttl ip of Next Hop (0 means node 0 or broadcast)]

Example: trace file for mflood protocol simulation.

S 10.000000000 _ 0 _ AGT --- 0 CBR 512 [0 0 0 0] ------- [0: 0 32 0] [0] 0 0

R 10.000000000 _ 0 _ RTR --- 0 CBR 512 [0 0 0 0] ------- [0: 0 32 0] [0] 0 0

S 10.000000000 _ 0 _ RTR --- 0 CBR 532 [0 0 0 0] ------- [0: 0 30 0] [0] 0 0

R 10.004812500 _ 1 _ RTR --- 0 CBR 532 [0 ffffffff 0 800] ------- [0: 0 30 0] [0] 1 0

F 10.020795609 _ 1 _ RTR --- 0 CBR 532 [0 ffffffff 0 800] ------- [0: 0 29 0] [0] 1 0

R 10.025728109 _ 0 _ RTR --- 0 CBR 532 [0 ffffffff 1 800] ------- [0: 0 29 0] [0] 2 0

D 10.025728109 _ 0 _ RTR loop 0 CBR 532 [0 ffffffff 1 800] ------- [0: 0 29 0] [0] 2 0

R 10.025728109 _ 2 _ AGT --- 0 CBR 532 [0 ffffffff 1 800] ------- [0: 0 29 0] [0] 2 0

1. At the 10s, a CBR group is sent to the application layer of a node with ID 0. The UID of this group is 0, the length is 512, the source address is 0: 0, the target address is, and the group life cycle is 32.

2. in the 10s, a node routing layer with ID 0 receives a CBR group. The UID of this group is 0, the length is 512, the source address is 0: 0, the target address is 2: 0, and the group life cycle is 32.

3. in the 10s, a node routing layer with ID 0 sends a CBR group. The UID of this group is 0, the length is 532, the source address is 0: 0, the target address is 2: 0, and the group life cycle is 30.

4. at 10.004812500s, a node routing layer with ID 1 receives a CBR group. The UID of this group is 0, the length is 532, the source address is 0, the target address is 2: 0, and the group life cycle is 30.

5. in 10.020795609s, a node routing layer with ID 1 is forwarded to a CBR group. The UID of this group is 0, the length is 532, the source address is 0: 0, the target address is, and the group life cycle is 29.

6. at 10.025728109s, a node routing layer with a ID of 0 receives a CBR group. The UID of this group is 0, the length is 532, the source address is 0: 0, the target address is 2: 0, and the group life cycle is 20.

7. When 10.025728109s is run, a node routing layer with the ID of 0 loses a group because the route returns.

8. When 10.025728109s, the application layer of a node with ID 2 receives a CBR group. The UID of this group is 0, the length is 532, the source address is 0: 0, the target address is 2: 0, and the group life cycle is 30.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.