Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-02-2014, 12:16 AM
|
#1
|
Member
Registered: May 2014
Posts: 38
Rep:
|
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.
|
|
|
06-03-2014, 01:26 AM
|
#2
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
Does your routing protocol conform to a known standard or have you trained all the hardware to accept your new protocol?
|
|
|
06-05-2014, 01:07 AM
|
#3
|
Member
Registered: May 2014
Posts: 38
Original Poster
Rep:
|
Sorry, I couldn't get your question. I'm new to the simulation.
Could you please rephrase it?
|
|
|
06-05-2014, 05:35 AM
|
#4
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
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.
|
06-05-2014, 07:27 AM
|
#6
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
@knudfl
#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
Last edited by dijetlo; 06-05-2014 at 07:30 AM.
|
|
|
06-06-2014, 11:45 PM
|
#7
|
Member
Registered: May 2014
Posts: 38
Original Poster
Rep:
|
The problem solved by adding TCP or RTP(which can be used as a UDP) header in the tcl file.
Thank you
|
|
|
06-06-2014, 11:51 PM
|
#8
|
Member
Registered: May 2014
Posts: 38
Original Poster
Rep:
|
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?
|
|
|
06-07-2014, 02:08 AM
|
#9
|
LQ Newbie
Registered: May 2014
Location: USA
Posts: 4
Rep:
|
I agree with dijetlo do so and see what will be the result.
|
|
|
06-07-2014, 09:05 AM
|
#10
|
Senior Member
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 09:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|