Someone please help me to run some example scripts on ns2.28 No one is actually giving me any examples? Srirupa
On Sun, 02 Jul 2006 [EMAIL PROTECTED] wrote : >Send Ns-users mailing list submissions to > ns-users@isi.edu > >To subscribe or unsubscribe via the World Wide Web, visit > http://mailman.isi.edu/mailman/listinfo/ns-users >or, via email, send a message with subject or body 'help' to > [EMAIL PROTECTED] > >You can reach the person managing the list at > [EMAIL PROTECTED] > >When replying, please edit your Subject line so it is more specific >than "Re: Contents of Ns-users digest..." > > >Today's Topics: > > 1. JET signaling protocol in ns-OBS (TINDO SANGHAPI Judith Noelle) > 2. ns-2 FAQ (Tom Henderson) > 3. Re: Applying Saved Layout in Nam (Nicholas Loulloudes) > 4. Re: changes in c++ code of AODV protocol (Sanjay Raghani) > 5. FOSS, Science, and Public activism ([EMAIL PROTECTED]) > 6. Count node neighbors (Nicholas Loulloudes) > 7. Re: Count node neighbors (Brad Montgomery) > 8. Re: Count node neighbors (Nicholas Loulloudes) > > >---------------------------------------------------------------------- > >Message: 1 >Date: Sat, 1 Jul 2006 16:20:57 +0200 (CEST) > From: TINDO SANGHAPI Judith Noelle <[EMAIL PROTECTED]> >Subject: [ns] JET signaling protocol in ns-OBS >To: ns-users@ISI.EDU >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=iso-8859-1 > >Hi, > Can anabody tell me if the JET signaling protocol FO OBS network is >implement un NS-OBS? > Thanks > >--------------------------------- > Yahoo! Mail r?invente le mail ! D?couvrez le nouveau Yahoo! Mail et son > interface r?volutionnaire. > >------------------------------ > >Message: 2 >Date: Sat, 01 Jul 2006 11:32:48 -0700 > From: Tom Henderson <[EMAIL PROTECTED]> >Subject: [ns] ns-2 FAQ >To: ns-users@ISI.EDU >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > > > The Network Simulator ns-2: Frequently Asked Questions > > >Note: This FAQ is now available at the project wiki: >http://nsnam.isi.edu/nsnam/index.php/Ns_Users_FAQ > > > > _The mailing is is now subscriber only---please see the FAQ entry on > "How do I post to the mailing list? Why was my post rejected?" for > details._ > > * _Where do I get ns?_ > > From the ns web site at http://www.isi.edu/nsnam/ns/ns.html and > the download page http://www.isi.edu/nsnam/ns/ns-tests.html. > > * _What platforms does ns run on and what kind of hardware do I > need?_ > > Please see "where to start" on the building ns web page: > http://www.isi.edu/nsnam/ns/ns-build.html#start. > > * _What should I do if I have trouble downloading/extracting ns?_ > > This question is answered in detail at > http://www.isi.edu/nsnam/ns/ns-problems.html#downloading. > > * _What should I do if I encounter problems building ns?_ > > Check: > 1. the README that comes in the distribution (very brief), > 2. the "installation problems, bug fixes and help" web page > http://www.isi.edu/nsnam/ns/ns-problems.html, > 3. the archives of the ns-users mailing list > http://www.isi.edu/nsnam/ns/ns-lists.html, > 4. post a bug report (see below) > http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. > > * _What do I do after I successfully build ns?_ > > + Put the path to your ns executable into your PATH environment > + Put the path to your otcl into your LD_LIBRARY_PATH > environment > + Put the path to your tcl library into your TCL_LIBRARY > environment > > * _Where can I find documentation for ns?_ > > All documentation is linked from the main ns web page > http://www.isi.edu/nsnam/ns/. Documentation includes a tutorial > (originally from Marc Greis) and a reference manual (ns notes and > documentation). > > * _Words, words, words... that documentation is nice, but where are > some sample scripts I can start from?_ > > Many sample scripts can be found in the ns distribution in > ~ns-2/tcl/ex and ~ns-2/tcl/test. > > * _What protocols does ns support?_ > > A lot! Almost all variants of TCP, several forms of multicast, > wired networking, several ad hoc routing protocols and propagation > models (but not cellular phones), data diffusion, satellite, and > other stuff. See the documentation (described above) for details, > or download ns and look. > > * _How do I know that ns correctly implements these protocols?_ > > Ns has validation tests that cover many protocols, see > http://www.isi.edu/nsnam/ns/ns-tests.html. However, ultimately > users are responsible for verifying that ns is accurate for their > purposes---since we cannot foresee all the ways ns may be used, we > cannot test all cases with all inputs. > > * _Are there any contributed/additional protocols not in the main > distribution?_ > > Yes, please see the contributed code web page > http://www.isi.edu/nsnam/ns/ns-contributed.html. The mailing list > archives can also be helpful (see below). > > * _How should I get started doing something (like implementing a new > protocol or trying an experiment)?_ > > We recommend that you look through the tutorial (see > documentation, above), then start with an example program that is > most similar to yours (in the tutorial, or in tcl/ex or tcl/test > in the distribution), and then start changing things. > > * _What should I do to compile ns to reflect my changes if I've > modified some .cc or .h files?_ > > go to ns directory and run "make" or "make depend; make" > > * _How do I subscribe to the ns-users mailing list? How do I search > old list archives? I can't take any more---how do I get off this > list?_ > > To subscribe or unsubscribe, see > http://www.isi.edu/nsnam/ns/ns-lists.html. The list archive is at > http://www.isi.edu/nsnam/ns/ns-lists.html. > > * _How do I post to the mailing list? Why was my post rejected?_ > > As of June 2004 the ns-users lists allow posts from _subscriber > only_. If you're not a subscriber, your posts to the list will be > rejected. (This is unfortunately necessary to dispose efficiently > of spam; manual filtering is too expensive.) We realize that the > list is high traffic, so if you wish to post to the list without > receiving messages on it, please subscribe and select the _no-mail_ > option for your subscription. > > For details about the mailing list including mailing-list specific > FAQ (for example, what if you're subscribed but still can't post), > please see http://www.isi.edu/nsnam/ns/ns-lists.html. > > * _Did my post appear on the mailing list? (Or, why didn't my post > appear on the mailing list?)_ > > See the http://www.isi.edu/nsnam/ns/ns-lists.html web page for > help debugging mailing list problems. > > * _What if I have a question that's not answered here?_ > > If you've checked the installation problems and bug fixes web page > (http://www.isi.edu/nsnam/ns/ns-problems.html) and there's no > answer to your question, you may want to file a bug report or post > a question to the ns-user's mailing list. > > First, you should check the archive of the list at > http://www.isi.edu/nsnam/ns/ns-lists.html. Your question may > already be answered there. > > If not, you can post a bug report using the web form at > http://www.isi.edu/cgi-bin/nsnam/reportbug.cgi. > > If your question is NOT about ns implementation bugs, you may wish > to post to the list. First you should subscribe. Subscription > instructions are at http://www.isi.edu/nsnam/ns/ns-lists.html. > > _Please note that mail sent to the list is publicly distributed > and archived. _If you have concerns about your message being made > public (spam harvesting of your address), please consider that > _before_ posting. We cannot remove messages from reciepient's > mailboxes or the public archive after they're posted. > > When posting bug reports, please _always_ include information > including at least (the bug report form includes spaces for > these): > + what version of ns you're using, > + what operating system you're running on (not just Linux or > Solaris, but RedHat version 7.0 or Solaris 2.4---send us the > output of "uname -a"), > + what specific behavior you see (if ns doesn't compile, what's > the specific error; if TCP does something strange, what > exactly did it do [send a pointer to a packet trace]), > + what behavior you expected to see (if ns doesn't compile this > is obvious, but if TCP does something strange, why is it > strange, where is the TCP spec violated?), > + pointers to your script detailed output files, > + a statement that "yes, I've read the FAQ, ns-problems page, > and manual and I couldn't find the answer there" (or a > statement about why you didn't do that yet :-) > > Soo-Hyun Choi observed from posts to the list: _Sometimes, I see > this list is filled with the questions with: 1) asked many times > before 2) hardly understandable what this guy is asking 3) too > easy to find an answer over a few clicks over the Internet 4) > soliciting to do their homework in a simple way by asking in this > list 5) easily seekable an answer by contributing a couple of > hours of reading the ns-manual 6) etc, etc. _ > > _As many of us in this list are doing an advanced degree, it would > be suggested to read the following article in order to raise a > useful/meaningful question in a smart way. > http://www.catb.org/~esr/faqs/smart-questions.html _ > > This is _very_ good advice, since asking the Right Question is > very likely to get a good/helpful answer, while asking a question > poorly. For example, think about how you would answer these two > questions: _"Ns doesn't work for me, it crashes. Help."_ as > compared to _"I get a segmentation fault when running test script > test-suite-webcache on Mandrake 10 Linux. The backtrace is on my > web page at www.someu.edu/~someone. It looks like it passes in the > on-line test suites, but it fails for me. Am I doing something > wrong?_ > > A reminder about mailing list etiquette: > + Please check the web pages and list archives before posting > your question. > + Please keep the body of your post to simple ASCII, not HTML. > + Please do _not_ send large attachments (if what you have is > bigger than a few kilobytes, put it on a web page and send a > URL) > + Before posting a question like "did people see my post" or > "the list seems down", please check the archives (you can > answer this question more accurately by checking yourself > rather than asking). > + Please don't post subscribe/unsubscribe requests directly to > the list, use the lists' information page. (see the web page > mentioned above for details). > _________________________________________________________________ > > > > > > > > > > >------------------------------ > >Message: 3 >Date: Sat, 1 Jul 2006 20:14:47 +0100 > From: "Nicholas Loulloudes" <[EMAIL PROTECTED]> >Subject: Re: [ns] Applying Saved Layout in Nam >To: ns-users@ISI.EDU >Message-ID: > <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Anyone can give me a help on the above topic? > > >Regards, > > >On 6/26/06, Nicholas Loulloudes <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I have created a topology in ns2 and adjusted it's layout in NAM as it > > suits me. I have now saved this layout in nam using the Save Layout function > > provided. > > > > Is it possible to apply this specific layout to the respective tcl file > > everytime i am loading it ??? > > > > Regards, > > -- > > Nicholas Loulloudes > > > > Postgraduate at Communication Networks and Software. > > > > BSc in Computer Science. > > > > > >-- >Nicholas Loulloudes > >Postgraduate at Communication Networks and Software. > >BSc in Computer Science. > > >------------------------------ > >Message: 4 >Date: Sun, 2 Jul 2006 01:20:40 +0530 > From: "Sanjay Raghani" <[EMAIL PROTECTED]> >Subject: Re: [ns] changes in c++ code of AODV protocol >To: ns-users@ISI.EDU >Message-ID: > <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Hi, > I can help only regarding the flow of the broadcast packets. If that >would be of ne help, let me know. I shall reply back with details. > >Regards >Sanjay Raghani > > >------------------------------ > >Message: 5 >Date: Sat, 1 Jul 2006 16:08:45 -0400 (EDT) > From: [EMAIL PROTECTED] >Subject: [ns] FOSS, Science, and Public activism >To: [EMAIL PROTECTED] >Message-ID: <[EMAIL PROTECTED]> > >-----BEGIN PGP SIGNED MESSAGE----- >Hash: SHA1 > >(Sorry if you get more than one copy of this message, but I felt >that it was urgent to get this important info out.) > >The values of freedom and openness are crucial to understanding >itself, so that civilization and public welfare now depend on >them, as I argue below. These values may find their best >expression in the free and open source software (FOSS) movement, >and the foresightful example of FOSS developers should now be >beneficially applied to many other disciplines in the context of a >global and public Internet. > >It is crucial that we occasionally take time to discuss the >reasons _why_ we release our source code, and this is one of >those occasions. There are good reasons for the freedom and >openness which are characteristics of FOSS development, reasons >which should receive wider attention now that they can be readily >communicated to other arenas. The consequences of doing otherwise >are often catastrophic. > >For example, it incomprehensible that Genentech could consider >withdrawing a cheap cure for blindness (ARMD) from the market. > >http://lists.essential.org/pipermail/random-bits/2006-june/001374.html > >The mechanism of this drug is public knowledge. > >http://sourceforge.net/mailarchive/forum.php?thread_id=14183567&forum_id=6042 > >This abhorrent situation is a great example of the kind of thing >that will happen if people don't get behind the values of freedom >and openness that we are espousing. Please let Genentech know >that you find what they are doing offensive. Publicize the mechanism >so that new compounds can be obtained as replacements. For the >future, continued vociferous public activism is required to prevent >such outrages from occurring in the future. > >It becomes clear that the compounds which come from common roots, >fruits, and vegetables are a shared human heritage and the free and >open source of the future. Tannins are another interesting case in >point, because as molecules, and as anti-oxidents, they are similar to >resveratrol (resV), and that molecular mechanism has been anchored to >the public domain via a prior art declaration. It is a so-called >CR-memetic, which may increase healthy human longevity by many >decades. Here are some links about it. > >Resveratrol mechanism posts from GNU-Darwin list >http://proclus.gnu-darwin.org/gdposts.html > >CR protocol for human bodies >http://proclus.gnu-darwin.org/bootstrap.html > >Here is some important recent news about it. > >http://www.imminst.org/forum/index.php?s=&act=print&client=printer&f=237&t=10749 > >It is exciting to suppose that people can get off the pharmaceuticals >that they are taking with calorie restriction or CR-memetics. I >personally am trying to get off the cholesterol drug Pravachol, a >statin compound, starting a few of weeks ago. Write me, and I'll let >you know how it turns out. From the article... > >"Fontana says ... evidence of "younger" hearts in people on calorie >restriction, suggest that humans on CR have the same adaptive >responses as did animals whose rates of aging were slowed by CR." > >I think that it is time to look at the tannins in tobacco leaves. >There may be other treasures lurking there too. As you may be >aware there is ample public research into any possible beneficial >compounds that may be obtained from tobacco leaves. The mechanisms >are there waiting to be discovered. If you want to post them, just >reply to me and I'd be delighted to host them. > >The public establishment of prior art is a time-honed method of >entering inventions into the public domain. We now have other >methods at our disposal as well. If you are planning to establish >prior art against future CR-memetic related patents, you might want >to have a look at www.creativecommons.org. Perhaps it goes without >saying at this point that you should please choose a license that >provides for free and broad public access to your memetic. > >In that way you will assure that the public health is served by >anchoring them to the public common, where they cannot be exploited >by those who would withhold them for their own profit. The DRM >situation is precisely analogous to this. Can you imagine doing >science in a world where your ability to read and write your data is >filtered through secret protocols that are hidden from you? I >recommend the Defective By Design campaign to fight the outrage of >DRM, which is incompatible with the scientific pursuit. > >http://www.defectivebydesign.org/ > >It is clear that scientific tools must be demonstrably and >penetratingly understood, or else our claims will likely be skewed >and called into question. Free and open source software is >a great example of how to make your science verifiable to the >public. Establishing prior art against future patents is >another good one, which is precisely analogous in method, >making the result explicit to the public, free and open to all. >Thank goodness for the free and open software movement, which >gave us such a great example of how to serve the public in this >manner. > >I am willing to grant that there are particular exceptions to >these rules of freedom and openness, and such exceptions may be >relatively harmless; however, let us posit the opposite, that >freedom and openness are _not_ crucial to understanding. Think of >the implications. When people are compelled to learn, they do not >receive the intended message. It is not understood correctly >or completely. When crucial facts are withheld from the people >you are trying to teach they become paranoid, possibly unteachable. >Freedom and openness are obviously the best approach to understanding. > >This is not a metaphor for the pursuit of science, but a fact. >We are learning from nature, and it is ultimately required that >our tools be demonstrably and penetratingly understood, or else >we will receive incorrect lessons from nature. Clearly this >requires public access to the source code and more. This >is why many of us are pressing for public access to scientific >publications. > >Moreover FOSS tools are becoming ever more important to the >pursuit of the scientific endeavor itself. In our biophysics >department we are obsolescing proprietary hardware and software >in favor of open standards and free software, which is a >widespread phenomenon in the science sector, and sure to continue. >We build most of the workstations ourselves with commodity hardware, >but we also have some clusters running Debian and FedoraCore. > >Some of you will know that I am the lead developer for the >GNU-Darwin distribution. GNU-Darwin has a FOSS operating system, >which is getting alot of press these days. Here is an example > >How Apple and Microsoft are advancing desktop Linux >http://www.desktopLinux.com/news/ns7294331817.html > >I see the article as counter-productive against building a FOSS >coalition that includes democracy, freedom, and public access >activists, Apple, GNU-Darwin, GNU, and GNU/Linux all linked >together in spectrum. > >It is important to alert the whole FOSS community that Darwin >cannot be classified as a free or open source operation system >as of the Darwin-8 revision, because AppleACPIplatform-39 which >is required to boot the system is proprietary. It is notable that >only the current version of Darwin from Apple is a non-free OS. >GNU-Darwin has a free version, an earlier revision that includes >the source code. It is FOSS, and we call upon Apple to maintain >Darwin as such, as it has been in the past. We hope that the >current situation with the kernel and ACPI driver will soon be >remedied so that Darwin will continue as a FOSS OS. > >We are asking for free software developers to please write to the >*nix core of Darwin, which is the core OS for both Mac OS X and >GNU-Darwin OS. Darwin OS, which underlies both systems, comprises >parts from GNU, the BSD's, mach, plus Apple's substantial >contributions to the free software community. Be consistent with your >philosophy and avoid linkage to proprietary binaries, such as OpenGL >and CoreAudio, except when it is imperatively required in order to >lead users to the values of software freedom. Under that principle, >another reason to maintain compatibility with the *nix core, is so >that your code will be readily portable to new platforms and usable >by free-software-only aficionados too. > >GNU-Darwin OS is not an obsolete implementation of Darwin OS, or to be >superseded by Mac OS X. We are trying to lead users to freedom, not >away from it. By maintaining Darwin core compatibility your code will >remain valuable as the marketplace and industry continues to evolve >(trust me here), particularly as DRM-related problems continue to come >forward. Of course, that means releasing your source code under a FOSS >license, such as APSL. Darwin OS is a free and open source operating >system that is not going away, so try to focus your coding towards >supporting that standard instead of proprietary software. > >Here is the essence of the current problem with Darwin OS. Apple >replaced working boot code with the following proprietary drivers, >which are required for the system to boot. > >Darwin-7: >AppleAPIC.kext/ >Applei386genericplatform.kext/ > >Darwin-8: >AppleACPIplatform > >In addition the kernel (xnu) has been taken proprietary in the >recent revisions. We are not asking for Apple to give away such >things, but rather to continue maintaining Darwin OS as FOSS, which >it already was. > >After repeated attempts by many FOSS developers to get this >situation remedied, nothing has happened. It is now time for us to >better use the measures at our disposal in order to assure that >Darwin OS remains free and open. If you are unhappy that xnu and >the boot drivers have not been released, I would encourage you to >spread your dissatisfaction to other forums, so that Apple will take >notice and commit to a workable free and open Darwin OS from now on. > >Moving on to coalition strategy now, some of you may not know that >GNU/Linux system administration is one of my day jobs. I manage a >wide range of systems. Here is a screen-shot of my work desktop, so >that you can see I use the same tools at work that I use at home at >night on GNU-Darwin. (weekends too, so please read I am your friend) > >http://proclus.gnu-darwin.org/debian.html > >The only time that I ever use proprietary software is when I am trying >to help other users learn free and open source free software. I'm a >long time Apple and GNU/Linux user, and here is the old proof doc ;-}. > >http://proclus.tripod.com/indulge.html > >Now, it is embarrassing but, I want you to have a look at my cv. > >http://biophysics.med.jhmi.edu/love/thesis/cv6.html > >In all my years I have never used Microsoft Windows. There are only >two exceptions to this statement, where I was helping Windows users to >access our servers at Hopkins. Clearly, you can get a few things done >without it ;-}. > >One of the primary reasons for founding GNU-Darwin was to help people >to put Microsoft behind them, and it is definitely possible to do it >now. You have many resources at your disposal to help you leave >Microsoft behind. Look at the link below to see what you can do >with free software. Apple, GNU-Darwin, GNU.org, and GNU/Linux will >all help, and we are largely all helping together, because we have a >shared foundation of free software. > >http://www.gnu-darwin.org/gdc/ > >Microsoft is only one example. That is why we are so insistent that >Apple keep true to free and open source software principles. We >should ultimately try to leave all proprietary software behind us, so >that we can participate fully in the freedom and openness of the >internet culture and public domain. What more do we need, when we >have such a rich store of information and so many capable people at >our sides? > >Finally, as a scientist, it is obvious to me that this situation is >relevant current and ongoing discussion in the scientific community, >and as such, it is also clear that many members of the various lists >would be interested in the current state of Darwin with respect to >FOSS and with respect to science. > >Here is the crucial point. > >The principles of FOSS and scientific inquiry converge. In >practical terms, how else can you know is what happening in your >experiments? Free and open source software, open standards, best >promote the scientific endeavor by mirroring its method, but also >they assure that the work is accessible to the public. > >Freedom and openness are crucial to understanding, and foundational >to the scientific endeavor, and they should not be compromised. >There are a few examples of exceptions, but clearly, this matter >will find further debate in the appropriate forums. We should not >quell debate because a few people are offended or complaining. >- From a scientific perspective that would be incorrect. > >On that last point, I would suggest that Apple get on the right side >of the debate, and they will make tremendous headway. Now is the >time. > >Some people will find this message annoying and divisive, and the >delete button is ready at hand for them, but other people will find >it interesting and engaging. All as you like. Let us not quell >discussion because a few people are annoyed. > >Some will call this a troll, but I hope that folks will see through >such name-calling. Trolls are mythological creatures, so don't >believe in them. Everyone has a right to have their opinion >heard, even if those opinions are divisive or unpopular. It is >clear that the idea of trolls is being used to attack freedom of >expression. In fact, freedom of expression demands that we >listen to the so-called-trolls sometimes, and if you are civil, it >helps, so don't resort to name-calling. > >On cross-posting; when there are matters of urgent importance that >affect a broad range of subscriber lists, courtesy must sometimes >take a back seat, and cross-posting is an example of that. >Cross-posting is to be encouraged when the subject of the post is on >topic. Each of the various lists will respond in the way that seems >appropriate to the people in that forum, and the threads on the >various lists will diverge accordingly. As the threads diverge, the >cross-posting addresses should be removed as needed. Relevance to >all people is an unattainable goal, but messages of the broadest >applicability should have the broadest reach, and discussion should >not be stymied because some find it irrelevant. I have given this >method due consideration; it is not trolling, not spam, not off-topic, >and cross-posting is an example of something that is sometimes >required according to the felt importance and relevance of a given >subject matter. > >In summary, Freedom and openness are now the bedrock of our >civilization and public welfare depends on these values, so that we >should actively engage ourselves in preserving and making them happen. >In keeping with these principles it is crucial to note that there are >exceptions to etiquette, otherwise free expression will be overly >channeled, damped, and ultimately suppressed in our forums. This >notion of courtesy will certainly receive additional consideration, >but meanwhile, let us together get to work on the activism now. > >Duly, I am amenable to valid criticism and able to respond, but please >reply with kindness. Obviously, feel free to write back, copy, or >send these comments along to anyone else as you see fit. > >Regards, >Michael L. Love Ph.D >Department of Biophysics and Biophysical Chemistry >School of Medicine >Johns Hopkins University >725 N. Wolfe Street >Room 608B WBSB >Baltimore MD 21205-2185 > >Interoffice Mail: 608B WBSB, SoM > >office: 410-614-2267 >lab: 410-614-3179 >fax: 410-502-6910 >cell: 443-824-3451 >http://www.gnu-darwin.org/ >-----BEGIN PGP SIGNATURE----- >Version: GnuPG v1.4.1 (Darwin) > >iD8DBQFEpIl6u0oI3iz5oZcRAtpQAJ9X7D6kq1vmWKXkG/3LBvx3gGrK1QCZAbgI >8Ww6QABLiZtmFmS9Ekea5nI= >=a0Oy >-----END PGP SIGNATURE----- > > > >------------------------------ > >Message: 6 >Date: Sat, 1 Jul 2006 21:29:43 +0100 > From: "Nicholas Loulloudes" <[EMAIL PROTECTED]> >Subject: [ns] Count node neighbors >To: ns-users@ISI.EDU >Message-ID: > <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Hello, > >i know in ns2 you can find the neighbors of each node by using [$node >neighbors]. Is it possible to count how many neighbors a node has? > >The reason i want to do this is because i need to apply a TCL script >regardless to the topology i create. > >Regards, > > >-- >Nicholas Loulloudes > >Postgraduate at Communication Networks and Software. > >BSc in Computer Science. > > >------------------------------ > >Message: 7 >Date: Sat, 01 Jul 2006 15:54:48 -0500 > From: Brad Montgomery <[EMAIL PROTECTED]> >Subject: Re: [ns] Count node neighbors >To: Nicholas Loulloudes <[EMAIL PROTECTED]>, > <ns-users@ISI.EDU> >Message-ID: <[EMAIL PROTECTED]> >Content-Type: text/plain; charset="US-ASCII" > >This will print the number of neighbors for node: $node > >puts [llength [$node neighbors]] > > >On 7/1/06 3:29 PM, "Nicholas Loulloudes" <[EMAIL PROTECTED]> >wrote: > > > you can find the neighbors of each node by using [$node > > neighbors]. Is it possible to count how many neighbors a node has? > > > > The reason i want to do this is because i need to apply a TCL script > > regardless to the topology i create. > > > > Regards, > > > > > > -- > > Nicholas Loulloudes > > > > Postgraduate at Communication Networks and Software. > > > > BSc in Computer Science. > > > >------------------------------ > >Message: 8 >Date: Sat, 1 Jul 2006 22:36:58 +0100 > From: "Nicholas Loulloudes" <[EMAIL PROTECTED]> >Subject: Re: [ns] Count node neighbors >To: "Brad Montgomery" <[EMAIL PROTECTED]>, ns-users@ISI.EDU >Message-ID: > <[EMAIL PROTECTED]> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Thanx Brad, > >thats was all i needed. > >Regards, > > >On 7/1/06, Brad Montgomery <[EMAIL PROTECTED]> wrote: > > > > This will print the number of neighbors for node: $node > > > > puts [llength [$node neighbors]] > > > > > > On 7/1/06 3:29 PM, "Nicholas Loulloudes" <[EMAIL PROTECTED]> > > wrote: > > > > > you can find the neighbors of each node by using [$node > > > neighbors]. Is it possible to count how many neighbors a node has? > > > > > > The reason i want to do this is because i need to apply a TCL script > > > regardless to the topology i create. > > > > > > Regards, > > > > > > > > > -- > > > Nicholas Loulloudes > > > > > > Postgraduate at Communication Networks and Software. > > > > > > BSc in Computer Science. > > > > > > >-- >Nicholas Loulloudes > >Postgraduate at Communication Networks and Software. > >BSc in Computer Science. > > >------------------------------ > >_______________________________________________ >Ns-users mailing list >Ns-users@isi.edu >http://mailman.isi.edu/mailman/listinfo/ns-users > > >End of Ns-users Digest, Vol 31, Issue 1 >***************************************