LinuxQuestions.org
Visit Jeremy's Blog.
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 10-31-2015, 09:24 PM   #1
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Rep: Reputation: Disabled
drop packet is showing in .cc file but is not included in trace file NS-2 ??


In Ns-2.35(ubuntu LTE 14.04), I am running a script where there is a bottleneck queue. Dropped packet is showing in droptail.cc (Checking by putting counter, let, drop packet=8000) file but is not included in trace file (.tr)(there is no 'd'). For this, I cannot measure proper throughput, delay for that particular link. I don't understand why it is happening?

Can anyone help please? I am stuck in here for last 1 month.
 
Old 11-01-2015, 04:08 PM   #2
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 https://stackoverflow.com/questions/...race-file-ns-2
Quote:
when run by droptail, it shows the 'd' but it shows no 'd' when run by my queue
? Did you investigate if a <queue expression> could be added to tcl/lib/<files>.tcl ?
 
Old 11-01-2015, 11:13 PM   #3
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Original Poster
Rep: Reputation: Disabled
Actually, I am using LTE patch with 2.35 which uses 6 queues under LTE queue such as (DLAirQueue,DLS1Queue,..etc). I ran some scripts like (eyana.tcl) but in the (eyana.tr), there is no 'd' though I increase the CBR set rate more than the link BW (eNB-UE) and decrease the queue limit between the link (eNB-UE). NO drop in the trace file???
 
Old 11-02-2015, 07:23 PM   #4
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Original Poster
Rep: Reputation: Disabled
@knudfl, can you please tell why drop packet is not showing ?
 
Old 11-03-2015, 08:14 PM   #5
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Original Poster
Rep: Reputation: Disabled
1. $ns simplex-link $eNB $UE($i) 10Mb 2ms DropTail
2. $ns simplex-link $eNB $UE($i) 10Mb 2ms LTEQueue/DLAirQueue


If 1 is used, then [drop_->recv(p);] works; packets are dropped as usual also showing in trace file.
But, if 2 is used, then [Packet::free(p);] works; No drops as well as in trace file.

Can anyone help in this issue those who are using LTE model in NS 2.35?

Code:
/common/connector.cc

void Connector::drop(Packet* p)
{
	if (drop_ != 0)
		drop_->recv(p);
	else
		Packet::free(p);

}

Last edited by rimonece; 11-03-2015 at 08:25 PM. Reason: Want to know exact reason
 
Old 11-03-2015, 10:24 PM   #6
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 #5.

You can try asking at https://stackoverflow.com/questions/tagged/ns2

Please use the tag ns2 below your question in Stackoverflow : [tag:ns2]


-
 
Old 11-03-2015, 11:08 PM   #7
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Original Poster
Rep: Reputation: Disabled
thanks @knudfl. I already ask the question...
 
Old 11-04-2015, 04:23 AM   #8
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 #2, repeat :

Did you investigate if a <queue expression> could be added to tcl/lib/<files>.tcl ?
 
Old 11-04-2015, 09:10 PM   #9
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Original Poster
Rep: Reputation: Disabled
Did you investigate if a <queue expression> could be added to tcl/lib/<files>.tcl ?[/QUOTE]

Which .tcl files? A lot of files in that folders. Is is ns-queue.tcl??
 
Old 11-05-2015, 06:03 AM   #10
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 #9.

Example, "queue" entries, (also) see LTE-ns235_2014-2.patch :
$ grep -n queue LTE-ns235_2014-2.patch
>>>
tcl/webcache/{ http-agent.tcl, http-cache.tcl, http-server.tcl },
tcl/lib/{ ns-default.tcl, ns-lib.tcl, ns-link.tcl },
tcl/rtp/session-rtp.tcl
( By searching in the patch, only the LTE added stuff is shown.)

Searching in ns-2.35/tcl/ :
$ cd ns-2.35/tcl/
$ grep -Rin queue *

.. And in that way you can search for any expression / word, by using the 'grep -Rin' command.


-

Last edited by knudfl; 11-05-2015 at 06:07 AM.
 
Old 11-11-2015, 05:51 AM   #11
rimonece
LQ Newbie
 
Registered: Jun 2015
Location: Perth, WA
Posts: 22

Original Poster
Rep: Reputation: Disabled
The drop_ Object is not created in the Queue;

Include these lines in queue.h
Code:
void SetDropObject(NsObject *drop_obj){if (drop_ == NULL) drop_ = drop_obj;}
and also all dlAirqueue.cc/dlS1queue.cc/dlqueue.cc:
Code:
        q0->SetDropObject(drop_);
	q1->SetDropObject(drop_);
	q2->SetDropObject(drop_);

Last edited by rimonece; 11-17-2015 at 09:18 PM.
 
  


Reply

Tags
dropping, lte, lte-ns235, ns-2, ns2, trace+awk


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
running nam file in ns2 it gives warning as trace file events are not sorted by time s20 Linux - Software 0 07-19-2013 09:45 PM
Log iptables drop packet to file but not /var/log/messages? kikilinux Linux - Security 1 10-02-2012 09:42 AM
Problem with calculate loss packet and Mean delay in a a trace file of wimax maymouna Linux - Newbie 3 07-05-2011 06:06 PM
detect file deletion on an operating system and trace the file history or activity? lovsis Linux - Security 2 10-19-2010 08:52 AM

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

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