Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397
Rep:
"Segmentation fault" : Of course you cannot run the above code as a simulation.
The last section of the file is missing : The section with $ns run.
You can find the similar / real simulation files here : ns-2.xx/tcl/ex/diffserv/ds-cbr**
... All the eight ds-cbr** files are running OK with the "ns-nist-pmipv6" executable.
And with the "ns-nistmob-wimax" executable.
( The file null.tcl isn't necessarily usable.)
EDIT : null.tcl works with old ns-2.27 "ns executable`s".
Dear sir
Thanks for your reply.
Now i want to implement DiffServ in my integrated network.Individual codes are simulated but combine codes generate segmentation fault. Codes are attached. Please guide.
regards
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,397
Rep:
Re #3.
Not sure you can mix diffserv into a nist-mob simulation.
( Besides that, none of those are supporting NAM ,,, AFAIK.
Like several other protocols : No nam can be used.)
----
If you want to watch a complex nist simulation :
Run './ABCpref.sh' and './distance.sh' in the `script/' folder from NS-MIH-MULTI-CRITERIA http://sourceforge.net/projects/mihnistns229/
... Both simulations are running OK with the 'ns' from ns2 + nist-mob + pmipv6.
See multiMN.tcl, umts-80211-80216.tcl : UMTS, LTE?, MIH, MIPV6, Mac802.11, Mac802.16
Dear sir
I want to implement DiffServ in UMTS WLAN integrated network through ns2.29 NIST module as shown in previous post. In ns2.29 i can see DiffServ folder with no of files including core and edge router. I have gone through your suggested links, but still not able to find out any solution. Please guide how i can i simulate this.
My topology is like ....CN----R0-----CORE------R1---RNC & AP (NOW R1 connected with AP and RNC both)further RNC connected to BS
Concept is R0 & R1 act as Edge router and Core as core router.
Regards
Dear sir
I am again asking whether ns2.29 NIST add on module can support DiffServ implementation or not as my problem not solved on https://stackoverflow.com/questions/tagged/ns2. I want to implement DiffServ in integrated network of UMTS-WLAN. Without DiffServ integrated network is working fine.
Other problem is how to attach out.res file in this forum as i have some problem with awk script and want to post awk script along with .res file for evaluation.
regards
Dear sir
I am again asking whether ns2.29 NIST add on module can support DiffServ implementation or not as my problem not solved on https://stackoverflow.com/questions/tagged/ns2. I want to implement DiffServ in integrated network of UMTS-WLAN. Without DiffServ integrated network is working fine.
Other problem is how to attach out.res file in this forum as i have some problem with awk script and want to post awk script along with .res file for evaluation.
regards
What EXACTLY have you tried? Some details here. I see no publication of a segmentation fault at all, and it appears you've changed your question into a request for a guide to do something which you haven't even tried.
What have you tried to do in resolving this during the last 6 months?
Dear sir
During last six months i read literature related to DiffServ,UMTS,WLAN i.e. technologies i want to use in simulation. I also tried to simulate attached codes (in second post of this thread- To_send.tcl.txt) in ns2.29 NIST add on module. And even after several corrections and modifications out put of simulation remain unchanged that is segmentation fault, so why i asked my question again.
Post the segmentation fault report which you are experiencing.
Turn on core files within your terminal, and analyze the core file using GDB.
None of that has anything to do with DiffServ,UMTS,WLAN.
Your simulator is giving you segmentation faults on any simulation, so debug that first. At the very least, you either can or cannot run the most fundamental simulation without any error. If that statement is not true, then you have incorrect built your simulator, or the simulator you're using was potentially not built for the machine on which you are running it.
Dear sir
I have attached screenshot of terminal window, showing segmentation fault. Other script based on UMTS-WLAN integration simulated without any error with same simulator.
Dear sir
I have attached screenshot of terminal window, showing segmentation fault. Other script based on UMTS-WLAN integration simulated without any error with same simulator.
OK, well you have some options here to consider. You either can or cannot perform GDB analysis of a core file dump. You didn't have core file dumping enabled in your terminal.
Code:
$ ulimit -c unlimited
Will enable core file dumping, for the terminal in which you type this, only for that login session. But if you haven't built the simulator from source, then likely you do not have the symbols to debug with. While it may be worth trying to analyze a core file, not sure you'll get far without source symbols. At the very least it may show you the binary executable file which is experiencing the fault and then you can analyze that file in this manner by trying to rebuild it locally with symbols.
Where did you get the simulator? Was it installed as part of a package, or something you downloaded and ran?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.