LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-19-2017, 03:20 PM   #1
Fatimah
LQ Newbie
 
Registered: Mar 2017
Posts: 3

Rep: Reputation: Disabled
how I can implement content centric caching strategy using NS2?


I have followed the tutorial instructions but I still face difficulties to achieve my research idea. I created wired with wireless topology similar to existing wired-cum-wireless-sim.tcl file then I aim to integrate the http caching into it. I don't know if am I in right way or not. Can you guide me step by step?
 
Old 03-19-2017, 04:34 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by Fatimah View Post
I have followed the tutorial instructions but I still face difficulties to achieve my research idea. I created wired with wireless topology similar to existing wired-cum-wireless-sim.tcl file then I aim to integrate the http caching into it. I don't know if am I in right way or not. Can you guide me step by step?
No, sorry...read the "Question Guidelines" link in my posting signature.

We are happy to help with specific questions/problems, but we aren't going to write up step-by-step tutorials for you. You don't say what "tutorial instructions" you followed, from where, or what exactly your difficulties are...not even version/distro of Linux or NS2. Post the code that YOU have written, what error(s)/message(s) you're seeing, and what you're doing to get them, and we can try to help. Otherwise, there are thousands of pages of tutorials and how-to guides for NS2 you can find with a Google search to help you get started.
 
1 members found this post helpful.
Old 03-19-2017, 05:07 PM   #3
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
Welcome to LQ!

To help keep the quality of questions and resulting answers useful for everyone, please review the Site FAQ, and in particular the Welcome page and the links it provides for guidance in posting your questions.

We have no way of knowing what tutorial you have followed, and without seeing the code you have written no one can offer useful help.

Please use the LQ Search feature to find other related questions here on LQ, and of course your search engine of choice for other possible sources.
 
2 members found this post helpful.
Old 03-20-2017, 08:26 AM   #4
Fatimah
LQ Newbie
 
Registered: Mar 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
No, sorry...read the "Question Guidelines" link in my posting signature.

We are happy to help with specific questions/problems, but we aren't going to write up step-by-step tutorials for you. You don't say what "tutorial instructions" you followed, from where, or what exactly your difficulties are...not even version/distro of Linux or NS2. Post the code that YOU have written, what error(s)/message(s) you're seeing, and what you're doing to get them, and we can try to help. Otherwise, there are thousands of pages of tutorials and how-to guides for NS2 you can find with a Google search to help you get started.
Thanks for your notes, I will re ask my question specifically.

1- The tutorial is Mark Greis' Tutorial with the related parts on ns2 manual (VINT project 2011) adding to web cache chapter on ns2 manual. I meant by " guide me step by step" that I want someone have experience on ns2 caching to tell me the steps that I should go through in to learn how I can implement my caching algorithm successfully, especially I have a close deadline to submit.
2- I work on ns-2.35, windows 7 with Cygwin.

my question:
-I want to implement ccn caching algorithm using ns2. The first step that I have taken is create wired-wireless topology, then I tried to apply simple caching on the base station (like simple-webcache.tcl example on ns2 manual). The code works but the http log file results with only one record. I attached the TCL script and http log files to help me find where is the mistake, why only one record?

- For my caching algorithm, what the files should I modified and in which I put my algorithm?
Attached Files
File Type: log http.log (39 Bytes, 7 views)
File Type: txt cache-wired-cum-wireless.txt (5.1 KB, 22 views)
 
Old 03-20-2017, 08:54 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Quote:
Originally Posted by Fatimah View Post
Thanks for your notes, I will re ask my question specifically.

1- The tutorial is Mark Greis' Tutorial with the related parts on ns2 manual (VINT project 2011) adding to web cache chapter on ns2 manual.
Are you expecting us to look this up and read it, so you can work on your project?
Quote:
I meant by " guide me step by step" that I want someone have experience on ns2 caching to tell me the steps that I should go through in to learn how I can implement my caching algorithm successfully, especially I have a close deadline to submit.
Your deadlines on your homework have no bearing on responses you get. Yes, we understand you want us to type up guides and walk you through coding, but we are saying that YOU need to do your own homework, and make your own changes, and we will help you if you get stuck.
Quote:
2- I work on ns-2.35, windows 7 with Cygwin.
Windows is not Linux.
Quote:
my question:
-I want to implement ccn caching algorithm using ns2. The first step that I have taken is create wired-wireless topology, then I tried to apply simple caching on the base station (like simple-webcache.tcl example on ns2 manual). The code works but the http log file results with only one record. I attached the TCL script and http log files to help me find where is the mistake, why only one record?

- For my caching algorithm, what the files should I modified and in which I put my algorithm?
Your algorithm should go into your TCL script.
 
1 members found this post helpful.
Old 03-20-2017, 09:12 AM   #6
Fatimah
LQ Newbie
 
Registered: Mar 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Are you expecting us to look this up and read it, so you can work on your project?
No, I just answer your question "what tutorial instructions you followed, from where"

thank you.

Last edited by Fatimah; 03-20-2017 at 09:16 AM.
 
Old 03-20-2017, 04:18 PM   #7
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,269
Blog Entries: 24

Rep: Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196Reputation: 4196
If the reference point is to be "the tutorial", then a link to the tutorial would be most helpful. The name alone is not very useful as it would require others to do the leg-work and still have to figure out at what point you are having trouble.

A better description of your implementation and the point at which you are experiencing problems, perhaps in terms of the tutorial example, would be the best place to begin when asking for help.

The fact you are running it on a Window$ platform may limit the number of people here with applicable experience, so patience may be in order, but this forum is not restricted to Linux related questions only.
 
Old 03-27-2017, 06:25 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,513

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4.
Quote:
why only one record ?
If you mean the one line in http.log :

Please have a look at simple-webcache.tcl (http.log, 40 text lines)
... and simple-webcache-comp.tcl (comp.log, 314 text lines).


-
 
2 members found this post helpful.
  


Reply

Tags
ccn caching ns2, ns2



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 implement GSR in ns2 en.khalid82 Linux - Virtualization and Cloud 10 07-19-2016 11:23 AM
LXer: Content strategy: the new philosophy of technical documentation LXer Syndicated Linux News 0 06-25-2015 11:50 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
permanently caching content of specific directory stanga Linux - General 5 07-15-2009 01:35 AM
How to provision Data Storage Capacity for content caching rsean LQ Articles Discussion 0 07-30-2007 02:06 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

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