LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-02-2014, 12:16 AM   #1
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Rep: Reputation: Disabled
Question simulating routing protocols in aqua-sim


Dear all,

I'm trying to run my own routing protocol in aqua-sim, but i face a problem.

The packet type gets changed during transmission. What might cause that problem? and what are the packet headers (in addition with common, Ip and my own routing header) that I need to include in the tcl file. if I'm using
Channel/UnderwaterChannel as a channel type,
Propagation/UnderwaterPropagation as an Underwater propagation model,
Phy/UnderwaterPhy as an Underwater physical layer,
Mac/UnderwaterMac/BroadcastMac as Mac type,
Queue/DropTail/PriQueue as an Interface queue type.

Thank you in advance.
 
Old 06-03-2014, 01:26 AM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Does your routing protocol conform to a known standard or have you trained all the hardware to accept your new protocol?
 
Old 06-05-2014, 01:07 AM   #3
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Sorry, I couldn't get your question. I'm new to the simulation.

Could you please rephrase it?
 
Old 06-05-2014, 05:35 AM   #4
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Now worries, Faiza, my written English to closely mirrors my spoken English so if you're not a native speaker, I tend to be confusing, let me know anytime that's a problem.

TCP/IP4 (for example) contains a known routing element that all hardware on the TCP/IP4 network understand. The routing "protocol" encapsulates in the packet header, every machine that touches the packet manipulates the information in the header based on that shared understanding and it's the aggregate of that information that allows the routing protocol associated with TCP/IP4 to route.
If you create your own protocol and modify the meaning of the bits in the header of your packets, no other machine on your network will understand the changes unless you modify their programming to understand it. They will, most likely, just treat the packet like TCP/IP4 and mangle the custom header, returning a TCP/IP4 packet back to you (albeit, with a mangled header).
In your original post that sounded to me like what was happening.
 
1 members found this post helpful.
Old 06-05-2014, 06:35 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
#2, #4 @dijetlo.

`Aqua-Simī is a simulator : Network Simulator ns-2.31 + the underwater code.
Aqua-Sim http://obinet.engr.uconn.edu/wiki/index.php/Aqua-Sim
Ns2 http://nsnam.isi.edu/nsnam/index.php/User_Information

I.e. not hardware based.

-
 
Old 06-05-2014, 07:27 AM   #6
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
@knudfl

Quote:
Open Architecture: easily import new protocols
#1
Quote:
The packet type gets changed during transmission. What might cause that problem?
That suggested to me his new protocol wasn't fully implemented. I got off onto the topic of copper networks because it was easier for me to explain why a failure to fully import the new protocol might be causing this problem.
#4
Quote:
TCP/IP4 (for example)

Last edited by dijetlo; 06-05-2014 at 07:30 AM.
 
Old 06-06-2014, 11:45 PM   #7
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Wink

The problem solved by adding TCP or RTP(which can be used as a UDP) header in the tcl file.

Thank you
 
Old 06-06-2014, 11:51 PM   #8
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
The question now is that in my packet header, I declare some string variables,
but when I create a packet and try to assign them values I get Segmentation fault (core dump) error.

How it can be solved, please?
 
Old 06-07-2014, 02:08 AM   #9
johnsoto
LQ Newbie
 
Registered: May 2014
Location: USA
Posts: 4

Rep: Reputation: Disabled
I agree with dijetlo do so and see what will be the result.
 
Old 06-07-2014, 09:05 AM   #10
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
The packet is being "formed" on the adapter, Faiza.
It's my understanding the packet interactions are handled at the machine level by specifically designed hardware on the adapter. I'd check to make sure what your doing is something that hardware can understand and accommodate. You can make a header so large it pops the packet buffer in the adapter. Keep in mind, when the network is active, that adapter is going to be handling an awful lot of packets/per second.
The facility exists in Linux to inject data into existing variables in outbound TCP/IP packets and to read the custom values from the inbound, so the basis of what your trying is solid. Before I created new variables, I'd try to better utilize the ones that already exist in the packet and watch your bit counts in the header, 1 bit over is going to give you the same result as 100 bits over, just not as quickly.
 
  


Reply

Tags
aquasim, ns2


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
aqua sim in ns2 - DBR protocol saye_s Linux - Software 71 03-04-2017 09:19 AM
Aqua-Sim (ns-2 based underwater network simulator) Questions sdb Linux - Wireless Networking 1 01-29-2016 02:05 AM
Simulation in aqua-sim Faiza Al-Salti Linux - Newbie 9 05-29-2014 08:41 AM
VBF protocol in Aqua-sim lilong_guet Linux - Wireless Networking 2 07-05-2013 06:30 AM
[SOLVED] install aqua-sim on ubuntu dina Linux - Newbie 4 11-01-2012 04:49 AM

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

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