LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-11-2015, 04:09 PM   #16
hobykash
LQ Newbie
 
Registered: Sep 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled

Hi knudfl,
In my research I have to evaluate live video streaming quality in p2p networks so I should use both of zetasim and myevalvid2 in ns2 .

please could you help me to know how to use zetasim in ns2.28?

Last edited by hobykash; 10-11-2015 at 04:23 PM.
 
Old 10-11-2015, 05:21 PM   #17
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 #16.

Using a clean ns-allinone-2.28 :
Code:
patch -p0 < ns228-gcc40.patch
patch -p0 < ns-2.28-gcc410.patch <Enter> <Enter> <Enter>
cd ns-allinone-2.28/
patch -p0 < p2p-Zetasim_ns228.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
export CC=gcc41 CXX=g++41 && ./install

P2P/nssocket.cc: In member function `void NSSocket::SendPktTo(Packet*, std::string)':
P2P/nssocket.cc:122: error: no matching function for call to `NSSocket::target(NsObject*)'
./common/connector.h:48: note: candidates are: NsObject* Connector::target()
Makefile:90: recipe for target 'P2P/nssocket.o' failed
make: *** [P2P/nssocket.o] Error 1
? May be you can fix the issues ?
The original Zetasim is for ns-2.34, which is working OK.
( p2p-Zetasim_ns234.patch ).


-
 
Old 10-12-2015, 04:42 AM   #18
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 #16.

Solution : Use ns-2.34 ( Or ns-2.35 ? )

cd ns-allinone-2.34/
patch -p0 < zetasim+myevalvid2_ns234.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... Etc. etc. : No issues, be_a01.tcl OK, star.tcl OK, full-connected.tcl OK.


-
 
Old 11-17-2015, 02:55 AM   #19
hobykash
LQ Newbie
 
Registered: Sep 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
hello sir, I tried your solution with ns2.35 but there were errors

root@ubuntu:~/ns-allinone-2.35# patch -p0 < zetasim+myevalvid2_ns234.patch
patching file ns-2.34/common/agent.cc
Hunk #1 FAILED at 68.
Hunk #2 FAILED at 464.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.34/common/agent.cc.rej
patching file ns-2.34/common/agent.h
Hunk #1 FAILED at 102.
Hunk #2 FAILED at 122.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.34/common/agent.h.rej
patching file ns-2.34/common/packet.h
Hunk #1 FAILED at 46.
Hunk #2 FAILED at 182.
Hunk #3 FAILED at 383.
Hunk #4 FAILED at 576.
4 out of 4 hunks FAILED -- saving rejects to file ns-2.34/common/packet.h.rej
patching file ns-2.34/Makefile.in
Hunk #1 FAILED at 328.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.34/Makefile.in.rej
patching file ns-2.34/myevalvid/myevalvid.cc
patching file ns-2.34/myevalvid/myevalvid_sink.cc
patching file ns-2.34/myevalvid/myevalvid_sink.h
patching file ns-2.34/myevalvid/myudp.cc
patching file ns-2.34/myevalvid/myudp.h
patching file ns-2.34/P2P/demo/full-connected.tcl
patching file ns-2.34/P2P/demo/mfiles/ana.m
patching file ns-2.34/P2P/demo/mfiles/GetFile.m
patching file ns-2.34/P2P/demo/mfiles/GetLoad.m
patching file ns-2.34/P2P/demo/mfiles/GetNode.m
patching file ns-2.34/P2P/demo/mfiles/GetTime.m
patching file ns-2.34/P2P/demo/nam_show.tcl
patching file ns-2.34/P2P/demo/ReadMe
patching file ns-2.34/P2P/demo/real-internet.tcl
patching file ns-2.34/P2P/demo/star.tcl
patching file ns-2.34/P2P/demo/ts200.script
patching file ns-2.34/P2P/demo/ts200.script-0.gb
patching file ns-2.34/P2P/demo/ts200.tcl
patching file ns-2.34/P2P/ExtendInfo.h
patching file ns-2.34/P2P/FiniteFieldCal.cc
patching file ns-2.34/P2P/FiniteFieldCal.h
patching file ns-2.34/P2P/galois.cc
patching file ns-2.34/P2P/galois.h
patching file ns-2.34/P2P/nssocket.cc
patching file ns-2.34/P2P/nssocket.h
patching file ns-2.34/P2P/P2PApp.h
patching file ns-2.34/P2P/P2PMsger.h
patching file ns-2.34/P2P/TypeDefine.h
patching file ns-2.34/P2P/wj_galois.h
patching file ns-2.34/P2P/ZetaApp.cc
patching file ns-2.34/P2P/ZetaApp.h
patching file ns-2.34/P2P/ZetaFileManager.cc
The next patch would create the file ns-2.34/P2P/ZetaFileManager.h,
which already exists! Assume -R? [n] y
patching file ns-2.34/P2P/ZetaFileManager.h
patching file ns-2.34/P2P/ZetaMsger.cc
patching file ns-2.34/P2P/ZetaMsger.h
patching file ns-2.34/P2P/ZetaPacket.cc
patching file ns-2.34/P2P/ZetaPacket.h
patching file ns-2.34/tcl/lib/ns-default.tcl
Hunk #1 FAILED at 45.
Hunk #2 FAILED at 833.
Hunk #3 FAILED at 1379.
Hunk #4 FAILED at 1463.
4 out of 4 hunks FAILED -- saving rejects to file ns-2.34/tcl/lib/ns-default.tcl.rej


could you help me please?

Last edited by hobykash; 11-17-2015 at 02:57 AM.
 
Old 11-17-2015, 05:15 AM   #20
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 #19.

Do the edits. According to the <files>.rej :
common/{ agent.cc.rej, common/agent.h.rej, common/packet.h.rej } EDIT: See post #21.
Makefile.in.rej
tcl/lib/ns-default.tcl.rej
... Usually easy to do.

-

Last edited by knudfl; 11-17-2015 at 05:42 AM.
 
Old 11-17-2015, 05:30 AM   #21
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 #19.

Wonder what you are doing. Wrong version of ns-allinone-2.35 ?
? Or is it the notorious "Ubuntu patch command" ?

tar xvf ns-allinone-2.35_gcc482.tar.gz
cd ns-allinone-2.35/
ln -s ns-2.35 ns-2.34
patch -p0 < zetasim+myevalvid2_ns234.patch
1 out of 4 hunks FAILED -- saving rejects to file ns-2.34/common/packet.h.rej (you got 4 fails)
1 out of 4 hunks FAILED -- saving rejects to file ns-2.34/tcl/lib/ns-default.tcl.rej
.......... I.e. only two files to edit.


-

Last edited by knudfl; 11-17-2015 at 06:06 AM.
 
Old 11-17-2015, 05:53 AM   #22
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 #21.

Editing done.
cd ns-allinone-2.35/
diff -Naur ns-2.35-orig/ ns-2.35/ >> zetasim+myevalvid2_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

ns235-evalvid2-zeta real-internet.tcl : OK.
ns235-evalvid2-zeta be_a01.tcl : OK.

One remark :
g++-4.4 must be used for the build of ns-allinone-2.35/(-evalvid2-zeta):
export CXX=g++-4.4 && ./install


-

Last edited by knudfl; 11-17-2015 at 05:57 AM.
 
Old 11-17-2015, 09:23 AM   #23
hobykash
LQ Newbie
 
Registered: Sep 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
Quote:
Wonder what you are doing. Wrong version of ns-allinone-2.35 ?
? Or is it the notorious "Ubuntu patch command" ?
I think your first patch file(zetasim+myevalvid2_ns234.patch) was for ns2.34 and I applied it to ns2.35.

I tried your patch for ns2.35 (zetasim+myevalvid2_ns235.patch)

root@ubuntu:~/ns-allinone-2.35# patch -p0 < zetasim+myevalvid2_ns235.patch
patching file ns-2.35/common/agent.cc
patching file ns-2.35/common/agent.h
patching file ns-2.35/common/packet.h
Hunk #2 FAILED at 200.
Hunk #3 FAILED at 419.
Hunk #4 succeeded at 618 (offset 6 lines).
2 out of 4 hunks FAILED -- saving rejects to file ns-2.35/common/packet.h.rej
patching file ns-2.35/Makefile.in
Hunk #1 succeeded at 360 (offset 27 lines).
The next patch would create the file ns-2.35/myevalvid/myevalvid.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/myevalvid/myevalvid.cc
The next patch would create the file ns-2.35/myevalvid/myevalvid_sink.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/myevalvid/myevalvid_sink.cc
The next patch would create the file ns-2.35/myevalvid/myevalvid_sink.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/myevalvid/myevalvid_sink.h
The next patch would create the file ns-2.35/myevalvid/myudp.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/myevalvid/myudp.cc
The next patch would create the file ns-2.35/myevalvid/myudp.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/myevalvid/myudp.h
The next patch would create the file ns-2.35/P2P/demo/full-connected.tcl,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/full-connected.tcl
The next patch would create the file ns-2.35/P2P/demo/mfiles/ana.m,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/mfiles/ana.m
The next patch would create the file ns-2.35/P2P/demo/mfiles/GetFile.m,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/mfiles/GetFile.m
The next patch would create the file ns-2.35/P2P/demo/mfiles/GetLoad.m,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/mfiles/GetLoad.m
The next patch would create the file ns-2.35/P2P/demo/mfiles/GetNode.m,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/mfiles/GetNode.m
The next patch would create the file ns-2.35/P2P/demo/mfiles/GetTime.m,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/mfiles/GetTime.m
The next patch would create the file ns-2.35/P2P/demo/nam_show.tcl,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/nam_show.tcl
The next patch would create the file ns-2.35/P2P/demo/ReadMe,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/ReadMe
The next patch would create the file ns-2.35/P2P/demo/real-internet.tcl,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/real-internet.tcl
The next patch would create the file ns-2.35/P2P/demo/star.tcl,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/star.tcl
The next patch would create the file ns-2.35/P2P/demo/ts200.script,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/ts200.script
The next patch would create the file ns-2.35/P2P/demo/ts200.script-0.gb,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/ts200.script-0.gb
The next patch would create the file ns-2.35/P2P/demo/ts200.tcl,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/demo/ts200.tcl
The next patch would create the file ns-2.35/P2P/ExtendInfo.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ExtendInfo.h
The next patch would create the file ns-2.35/P2P/FiniteFieldCal.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/FiniteFieldCal.cc
The next patch would create the file ns-2.35/P2P/FiniteFieldCal.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/FiniteFieldCal.h
The next patch would create the file ns-2.35/P2P/galois.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/galois.cc
The next patch would create the file ns-2.35/P2P/galois.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/galois.h
The next patch would create the file ns-2.35/P2P/nssocket.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/nssocket.cc
The next patch would create the file ns-2.35/P2P/nssocket.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/nssocket.h
The next patch would create the file ns-2.35/P2P/P2PApp.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/P2PApp.h
The next patch would create the file ns-2.35/P2P/P2PMsger.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/P2PMsger.h
The next patch would create the file ns-2.35/P2P/TypeDefine.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/TypeDefine.h
The next patch would create the file ns-2.35/P2P/wj_galois.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/wj_galois.h
The next patch would create the file ns-2.35/P2P/ZetaApp.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaApp.cc
The next patch would create the file ns-2.35/P2P/ZetaApp.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaApp.h
The next patch would create the file ns-2.35/P2P/ZetaFileManager.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaFileManager.cc
The next patch would create the file ns-2.35/P2P/ZetaFileManager.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaFileManager.h
The next patch would create the file ns-2.35/P2P/ZetaMsger.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaMsger.cc
The next patch would create the file ns-2.35/P2P/ZetaMsger.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaMsger.h
The next patch would create the file ns-2.35/P2P/ZetaPacket.cc,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaPacket.cc
The next patch would create the file ns-2.35/P2P/ZetaPacket.h,
which already exists! Assume -R? [n] y
patching file ns-2.35/P2P/ZetaPacket.h
patching file ns-2.35/tcl/lib/ns-default.tcl
Hunk #4 FAILED at 1594.
1 out of 4 hunks FAILED -- saving rejects to file ns-2.35/tcl/lib/ns-default.tcl.rej

thats mean i still have problem any suggestion please?

Last edited by hobykash; 11-17-2015 at 09:28 AM.
 
Old 11-17-2015, 09:25 AM   #24
hobykash
LQ Newbie
 
Registered: Sep 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
I applied the patch without errors.
and after doing
export CXX=g++-4.4 && ./install
Everything was ok .
but when I try

root@ubuntu:~/ns-allinone-2.35/ns-2.35# ns be_a01.tcl
invalid command name "Agent/myUDP"
while executing
"Agent/myUDP create _o82 "
invoked from within
"catch "$className create $o $args" msg"
invoked from within
"if [catch "$className create $o $args" msg] {
if [string match "__FAILED_SHADOW_OBJECT_" $msg] {
delete $o
return ""
}
global errorInfo
error "class $..."
(procedure "new" line 3)
invoked from within
"new Agent/myUDP"
invoked from within
"set udp1 [new Agent/myUDP]"
(file "be_a01.tcl" line 24)

and the same with
root@ubuntu:~/ns-allinone-2.35/P2P/demo# ns real-internet.tcl
invalid command name "Application/ZetaApp"
while executing
"Application/ZetaApp set packetSize_ 1000"
(file "real-internet.tcl" line 8)

I don't know what is the problem

Last edited by hobykash; 11-17-2015 at 10:58 AM.
 
Old 11-17-2015, 12:36 PM   #25
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 #24.
Quote:
# ns be_a01.tcl
invalid command name "Agent/myUDP"
You are supposed to make a copy of the newly created 'ns' to 'ns-new-name'.
I.e. do not use the command ns :

cd ns-2.35/
cp ns ns235-evalvid2-zeta
# cp ns235-evalvid2-zeta /usr/local/bin/

Simulation : Read post #22 >>>
ns235-evalvid2-zeta be_a01.tcl
ns235-evalvid2-zeta real-internet.tcl


-
 
Old 01-07-2016, 08:52 AM   #26
zaina
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Rep: Reputation: Disabled
plz
can provide me with an example combine evalvid with zetasim in the same time?
 
Old 01-09-2016, 02:28 PM   #27
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zaina View Post
plz
can provide me with an example combine evalvid with zetasim in the same time?
AGAIN, you need to read the LQ Rules...not only did you hijack someone elses thread, you CONTINUE to use text-speak, re-opened an old thread, and DOUBLE-POSTED the same question.

We are NOT going to give you handouts. This thread is full of information...what have you actually DONE or TRIED on your own yet? We aren't going to type you up a how-to guide and write your code for you. Did you not read/understand the post here, saying SPECIFICALLY to look at post #22? Try it again...

Last edited by TB0ne; 01-09-2016 at 02:29 PM.
 
Old 01-22-2016, 06:26 AM   #28
zaina
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Rep: Reputation: Disabled
Hi Dr. knudfl
please I have some gues. and I hope to get some help from you
1. can I combine zetasim with evalvid to transfer video streaming over p2p network?
2. if I can, plz can you tell me the steps to do that?
please help me, this is my last step in my project.
I'm waiting.
 
Old 01-22-2016, 09:32 AM   #29
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by zaina View Post
Hi Dr. knudfl
please I have some gues. and I hope to get some help from you
1. can I combine zetasim with evalvid to transfer video streaming over p2p network?
2. if I can, plz can you tell me the steps to do that?
please help me, this is my last step in my project.
I'm waiting.
Keep waiting. Until you read and understand what's been told to you, there is NO POINT POSTING. You have been led SEVERAL TIMES to post #22, that has what you need. Again, if you're looking for someone to spoon-feed you a how-to guide, or explain every word to you, you're in the wrong place.

To make it simple for you:
  • Yes, you can combine zetasim and evalid
  • You were given the EXACT post # with instructions to follow
 
Old 01-23-2016, 01:23 AM   #30
zaina
LQ Newbie
 
Registered: Jan 2016
Posts: 7

Rep: Reputation: Disabled
Ok. thanks TB0ne
but I'm not like that "looking for someone to spoon-feed"
in general thanks for you
 
  


Reply

Tags
myevalvid2, ns2, ns228, zetasim



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
NS2 EURANE & Evalvid cukstn Linux - Software 0 08-07-2015 01:44 AM
Integrating Evalvid and ns2hcca patch in NS2 artificialive Linux - Networking 0 05-03-2014 06:48 PM
how to install both ns2.28 and ns2.34 versions on ubuntu 10.04? popoaung Linux - Software 3 06-10-2013 04:52 PM
Problem : Evalvid and bugs on Eurena NS2 track_mouse Programming 0 08-03-2012 04:28 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:21 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