LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-26-2015, 12:23 PM   #31
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641

Re #30.

Security >>> Encrypt : May be you should read the "Security manual" ?
>> http://www.nsnam.com/2015/03/securit...et-in-ns2.html
>>> " Here is the document to read " >>> `NS-2_Security_Node_Document.doc'.


Your errors : May be you typed the wrong expression = Security_Packet ?
Instead of the valid lower case "packet" = Security_packet


-

Last edited by knudfl; 04-26-2015 at 12:29 PM.
 
Old 04-26-2015, 12:50 PM   #32
Raaha Priya
LQ Newbie
 
Registered: Dec 2014
Posts: 18

Rep: Reputation: Disabled
Thanks. That is the protocol for which u provided the patch earlier.
The problem is vanetrbc is a separate protocol and security is implemeted as a separate protocol. It means both have different packets.
But I am trying to encrypt a packet that is sent using vanetrbc protocol.
And when i tried to use both the protocols in the same tcl file error occurred.
There is no problem with the expression i used.
Basically I tried to attach two agents (one vanetrbc and another security) to the nodes. The program cudn identify the security agent. hence the error.
but vanetrbc and the security protocol works just fine separately. Again thanks for your patch for it.
 
Old 04-05-2017, 12:13 AM   #33
ratnasih
LQ Newbie
 
Registered: Apr 2017
Location: Bandung
Posts: 3

Rep: Reputation: Disabled
error when run the script

Quote:
Originally Posted by knudfl View Post
Re #8.

VanetRBC :
Setup another ns-allinone-2.35 in a new directory, for testing vanetrbc.

$ tar xvf ns-allinone-2.35_gcc482.tar.gz
$ cd ns-allinone-2.35/
$ zcat vanetrbc_ns235.patch.gz | patch -p0
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ ./install
$ cd ns-2.35/
$ cp ns ns235-vanetrbc
$ sudo cp ns235-vanetrbc /usr/local/bin/
Simulation :
$ cd vanetrbc/
$ ns235-vanetrbc vntest-2015.tcl : Lots of activity in the Nam window.


-
Hello sir, thank you for your tutorial sir
I have been try to patch it, but when i try to run the script i got the error like this :

ns: finish: wrong # args: should be "source fileName"
while executing
"source -encoding utf-8 [file join $TclLibDir clock.tcl]"
(procedure "::tcl::clock::format" line 3)
invoked from within
"clock format $scriptEnd -format {%d.%m.%y %H:%M:%S}"
(procedure "finish" line 45)
invoked from within
"finish"
Node: 124 send RBC-confirm

can you help me sir?
Best regrads
Ratnasih
 
Old 04-05-2017, 08:18 AM   #34
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #33, @ratnasih.
Quote:
when i try to run the script
Assume vntest-2015.tcl : $ ns235-vanetrcb vntest-2015.tcl
... The issues are about :
"display some statistics.. nice for very long simulations". ( See lines 150, 151.)

You can comment out lines 152, 153 in 'vntest-2015.tcl', like this
Code:
#    puts "Finishing ns.. Execution time: [expr $scriptEnd - $scriptStart] \
#        seconds (End: [clock format $scriptEnd -format {%d.%m.%y %H:%M:%S}])"
 
1 members found this post helpful.
Old 05-01-2017, 04:33 PM   #35
ratnasih
LQ Newbie
 
Registered: Apr 2017
Location: Bandung
Posts: 3

Rep: Reputation: Disabled
eror when input qos parameter (.awk)

hello sir, thank you for your answer
i have to tried and its works fine sir, but when i want to input qos (.awk file) it's not work.
The result just 0 for every parameter like in my attachments. Do you want to help me to resolve this problem sir?
Thank you
Attached Thumbnails
Click image for larger version

Name:	Capture.JPG
Views:	22
Size:	88.8 KB
ID:	24901  
 
Old 05-01-2017, 04:53 PM   #36
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #35.

Please do not post text as an image. Less readable. And cannot be copied.

Please attach as text.txt to a new post.
... I assume you know how to copy / paste a text.
 
  


Reply

Tags
ns2, security-ns2, vanetrbc



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with NS2.34 with BGP patch TLa Linux - Networking 49 02-15-2015 02:24 PM
run the perl script in ns2 zana Linux - Software 1 03-14-2013 05:45 AM
[SOLVED] NS2 Nam Issue atb2010 Linux - Newbie 2 03-17-2011 09:52 AM
script tcl NS2 MounaRM Linux - Networking 0 01-10-2011 08:49 AM
NS2 Script wanted. Will pay :D zeeshan12 Linux - Networking 2 06-09-2008 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration