Re: [ns] [NS-ANS] counting control packet in trace file

2011-09-09 Thread Mariam A. Moustafa

Al Salamo Alikom,

Here is the AWK calculation of total_RTRpackets_sent, the control packets
sent by the RTR



 #defining the variables to be used to store every field in the trace line

 event = $1;

 layer = $4;

 if(event != N) {


 if (layer == RTR)

 {

 if(event == s || event == f)

 {

 total_RTRpackets_sent++;
  }
  }

 }



On Thu, Sep 8, 2011 at 1:02 PM, jeni martin jeni_m...@yahoo.com wrote:








 Dear all,
 I wanted to count control packets in the trace file by using awk file, but
 I don't know which packets are control packet as the most type of packets
 are cbr from routing layer (RTR).can anyone tell me which kinds of packet
 are control packet in trace file?
 Regards,



Re: [ns] [NS-ANS] counting control packet in trace file

2011-09-09 Thread Mariam A. Moustafa

This may help, http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
-

#explanation of trace file
#ACTION: [s|r|D]: s -- sent, r -- received, 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
# energy [ energy w ei x es y et z er m ]:
# w -- the total energy of the node
# x -- the total energy consumed while the node was in idle state
# y -- the total energy consumed while the node was in sleep state
# z -- the total energy consumed during packet transmission
# m -- the total energy consumed during packet reception
# 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)
# ]


 Dear all,
 I wanted to count control packets in the trace file by using awk file,
 but I don't know which packets are control packet as the most type of
 packets are cbr from routing layer (RTR).can anyone tell me which kinds of
 packet are control packet in trace file?
 Regards,







[ns] [NS-ANS] Re: [NS-ANS] counting control packet in trace file

2011-09-09 Thread Teerawat@UBC

Hi,

If you are interested in learning how tracing works in NS2, please read

http://www.ns2ultimate.com/post/3995318343/post-processing-ns2-result-using-ns2-trace-main-post

The above posts are based on the normal trace. If you are interested in 
wireless trace you might have to modify it  a bit. Please look at new wireless 
trace format at the link below:

http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats#New_Wireless_Trace_Formats


Best Wishes,

Teerawat Issariyakul
http://www.ns2ultimate.com/
http://www.facebook.com/pages/Teerawat-Issariyakul/358240861417
http://twitter.com/T_Bear
http://www.t-issariyakul.blogspot.com
http://www.ece.ubc.ca/~teerawat



On Sep 9, 2011, at 6:07 PM, Mariam A. Moustafa wrote:

 
 This may help, http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats
 -
 
 #explanation of trace file
 #ACTION: [s|r|D]: s -- sent, r -- received, 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
 # energy [ energy w ei x es y et z er m ]:
 # w -- the total energy of the node
 # x -- the total energy consumed while the node was in idle state
 # y -- the total energy consumed while the node was in sleep state
 # z -- the total energy consumed during packet transmission
 # m -- the total energy consumed during packet reception
 # 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)
 # ]
 
 
 Dear all,
 I wanted to count control packets in the trace file by using awk file,
 but I don't know which packets are control packet as the most type of
 packets are cbr from routing layer (RTR).can anyone tell me which kinds of
 packet are control packet in trace file?
 Regards,
 
 
 
 
 
 




Re: [ns] trace file

2011-09-09 Thread RamiHach


I think control packet is not cbr nor tcp, is the rest of paquet but I am not
sure

AfterEight wrote:
 
 
 Dear all,
 I wanted to count control packets in the trace file by using awk file, but
 I don't know which packets are control packet as the most type of packets
 are cbr from routing layer (RTR).can anyone tell me which kinds of packet
 are control packet in trace file?
 Regards,
 
 

-- 
View this message in context: 
http://old.nabble.com/trace-file-tp32422670p32434353.html
Sent from the ns-users mailing list archive at Nabble.com.



[ns] CFP: International Journal Network Protocols and Algorithms

2011-09-09 Thread Jaime Lloret Mauri


* Call for Papers * 

Network Protocols and Algorithms 

ISSN 1943-3581

http://www.macrothink.org/journal/index.php/npa/

Network Protocols and Algorithms is a free-access online international journal, 
peer-reviewed and published by Macrothink Institute. It publishes papers 
focused on the design, development, manage, optimize or monitoring any type of 
network protocol, communication system, algorithm for communication and any 
protocol and algorithm to communicate network devices.

The scope of the journal include, but are not limited to, the following topic 
areas:

- Synchronization Protocols and Algorithms
- Security Protocols and Algorithms
- QoS Protocols and Algorithms
- Ad-Hoc and Sensor Networks Protocols and Algorithms
- Content Delivery Networks Protocols and Algorithms
- P2P Protocols and Algorithms
- Cluster-Based Protocols and Algorithms
- Real-Time Protocols and Algorithms
- Wireless Protocols and Algorithms
- MAC Protocols and Algorithms for Wired Networks
- Mobile wireless internet protocols and algorithms
- Delay Tolerant protocols and algorithms
- Mesh network protocols and algorithms
- Protocols and algorithms for Voice over IP delivery
- Cognitive Radio Network Protocols and Algorithms
- Monitoring and management protocols and algorithms
- optical networking protocols and algorithms
- Scalable Network Protocols and Algorithms
- Protocols and algorithms for Green Computing and Resource Allocation
- Routing Protocols and Algorithms
- Tree-based Protocols and Algorithms
- Distributed/Decentralized Algorithms for Networks
- Fault tolerant Protocols and Algorithms
- Protocols and algorithms for Mobile and Dynamic Networks
- Cross-Layer Collaborative Protocols and Algorithms
- Formal methods and cryptographic algorithms for communication
- Power Efficient and Energy Saving Network Protocols and Algorithms
- Multimedia Network Protocols and Algorithms
- Network Protocols and Algorithms for Context-Aware and Semantic Networks
- Localized Network Protocols and Algorithms
- Transport Layer Protocols
- Smart Grids protocols and algorithms

Network Protocols and Algorithms has linked its papers to references by DOI 
(Digital Object Identifier) numbers.

Network Protocols and Algorithms appears in the next search engines: Google 
Scholar, Bing, Yahoo and Ask.

Network Protocols and Algorithms is added and indexed in Index Copernicus, 
ProQuest, EBSCO, Ulrichsweb.com, Directory of Open Access Journals (DOAJ), Open 
J-Gate, Gale, Socolar, io-port Database, NewJour - Electronic Journals and 
Newsletters, Public Knowledge Project metadata harvester, Ovid LinkSolver, 
Genamics JournalSeek and PublicationsList.org. It is also requested to be 
included in other major Indexing Databases.

You are welcome to submit a paper or forward this call for papers to any people 
working in Network Protocols and Algorithms that may be interested in 
submitting a paper.

The topics suggested by the journal can be discussed in term of concepts, state 
of the art, standards, implementations, running experiments and applications. 
Proposals and deployments are also welcome.

Submission Information:
Only original and unpublished research papers will be considered in this 
journal. Manuscripts must be writen in English. All submissions will be 
reviewed based on technical merit and relevance. Instructions for authors and 
submissions can be found in 
http://www.macrothink.org/journal/index.php/npa/about/submissions


Jaime Lloret Mauri
Editor in Chief of the International Journal of Network Protocols and Algorithms
Department of Communications
Polytechnic University of Valencia, Spain