Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-22-2015, 07:11 AM   #1
LQ Newbie
Registered: Mar 2015
Posts: 13

Rep: Reputation: Disabled
after install gpsr, test the perimeter mode , it has throw "Wrong the other node"

hello there!
the common communication between nodes is fine, but when i want to test the perimeter mode it has throw the error "Wrong the other node", it seems that it couldn't find its next hop node.
i trace the code as show below
GPSRNeighbors::intersect(nsaddr_t theother, double sx, double sy,
			 double dx, double dy){
  //line 1 (x1,y1)--(x2,y2) is the segment
  //line 2 (x3,y3)--(x4,y4) is the xD 
  struct gpsr_neighbor *other = getnb(theother);

    printf("Wrong the other node\n");


struct gpsr_neighbor*
GPSRNeighbors::getnb(nsaddr_t nid){
  struct gpsr_neighbor *temp = head_;
    if(temp->id_ == nid){
      if((GPSR_CURRENT - temp->ts_) < DEFAULT_GPSR_TIMEOUT)
	return temp;
      else {
	delnb(temp); //if this entry expire, delete it and return NULL
	return NULL;
      return temp;
    temp = temp->next_;
  return NULL;
the simulation scene was shown in the attachment.
when i make node 0 send packet to node 1, the error will occur.
would somebody know how to solve it?
thank you for your time!
Attached Thumbnails
Click image for larger version

Name:	catch.JPG
Views:	28
Size:	39.9 KB
ID:	18538  

Last edited by whatamazing; 05-22-2015 at 07:15 AM.
Old 05-23-2015, 08:55 PM   #2
LQ Newbie
Registered: Mar 2015
Posts: 13

Original Poster
Rep: Reputation: Disabled
did anybody face that before?
Old 11-20-2015, 05:20 AM   #3
Registered: Aug 2012
Posts: 50

Rep: Reputation: Disabled
Hello everyone

I am using GPSR ke-liu patch on ns2.32 .
For some paramter values (parameters means transmission range , simulation time , no of nodes) its runnning prefectly fine but for other's it is giving an error "wrong the other node".
Example 1: When i am running same code with 150 transmission range, simulation time =1000 and nodes = 150 , it works prefectly fine . But when i run with same simulation time, same number of nodes but transmission range as 200 or 250 , it gives the error "wrong the other node".

Example 2: simulation time = 1000 , nodes = 250, trnamission range = 100 - works prefectly fine
but with simulation time = 1000 , nodes = 250, trnamission range = 50 or 150 or 200 or 250 -- gives error.

Does anyone ever faced this kind of problem . how can i overcome this problem.
Kindly help.



c++, gpsr-keliu, ns2, ns2 ns-allinone

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
TAP interface vlan-qos throw "opeartion not supported" by kernel 3.10. palani.rm Linux - Networking 0 03-31-2015 12:45 PM
What are the options "Nosuid" "mode" "size" in /etc/fstab? does not help pstein Linux - Newbie 1 11-16-2012 12:58 AM
what is "sticky bit mode" , "SUID" , "SGID" augustus123 Linux - General 10 08-03-2012 04:40 AM
[SOLVED] Silencing the line "echo test > test/test.txt" in a shell script Arenlor Linux - General 2 06-18-2010 01:37 PM
Writing to "/dev/usb/hiddev*" and to "/proc/bus/usb/00B/00S" throw an arror EI stpg Programming 0 07-14-2004 05:44 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:04 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration