LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-28-2017, 01:59 PM   #1
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Rep: Reputation: Disabled
problem when scheduling packet in ns2 and c++


hi friends, i want to send two agents from one node at the same time
so,i created two packets(p1,p2) and i scheduled them like this



scheduler::instance().schedule(target_,p1,0.0);
scheduler::instance().schedule(target_,p2,0.0);

i get error message event uid invalid!!!
 
Old 05-29-2017, 04:58 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
If at all possible :
Looks like something you can do in "Otcl", i.e. in a simulation script.tcl


Else:
Check what ns2{multi-hop, multi-interface, multi-channel, multipath} is doing.
 
Old 05-29-2017, 10:22 AM   #3
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
ok knudfl, i have to used in c++ to sent 2 agents but i dont found a documentation to solve it
 
Old 05-29-2017, 01:22 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
? Is it about sending like Agent/TCP and Agent/UDP or similar ?
From the same node ?
 
Old 05-29-2017, 02:25 PM   #5
dadi1004
LQ Newbie
 
Registered: Apr 2017
Posts: 23

Original Poster
Rep: Reputation: Disabled
yes knudfl
 
Old 05-29-2017, 04:55 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Sending Agent/TCP and Agent/UDP

Sending Agent/TCP and Agent/UDP, please read this thread ...
https://groups.google.com/forum/?fro...rs/LVdlQye9pUo

Please download all the files, and try them out.
 
  


Reply

Tags
c++, ns2, protocol


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to do weight based clustering in ns2 and how to give that output as input to the next step scheduling. sabitha k Linux - Wireless Networking 0 03-09-2017 09:46 AM
PQWFQ scheduling C++ code in ns2 MLinux Linux - Networking 2 11-22-2010 05:47 PM
packet reordering NS2 passer-by Linux - Newbie 3 11-01-2010 07:37 PM
ns2 problem: common/packet.h errors de_gr33 General 0 05-25-2009 09:33 PM
Packet scheduling? hades255 Linux - Networking 0 08-24-2003 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:26 AM.

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