LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-01-2016, 08:13 AM   #1
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Rep: Reputation: Disabled
Specifying address type of a packet


Dear All,

How to allow nodes to be received by only a single node having the address in iph->dst_.addr_ and ch->next_hop() where iph and ch are the ip and common header, respectively.

I'm working with aqua-sim. The MAC protocol is broadcastMac described in the simulator.
 
Old 07-01-2016, 09:54 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: root
Distribution: Slackware & BSD
Posts: 1,669

Rep: Reputation: 498Reputation: 498Reputation: 498Reputation: 498Reputation: 498
Quote:
Originally Posted by Faiza Al-Salti View Post
Dear All,

How to allow nodes to be received by only a single node having the address in iph->dst_.addr_ and ch->next_hop() where iph and ch are the ip and common header, respectively..
Use Point-to-Point Protocol.
or
use layered tunneling where your repackaged payload carry its own service that underlying network does not support.

m.m.
 
Old 07-03-2016, 08:28 AM   #3
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Could you please elaborate more on this and how to achieve this through a specific routing protocol?
 
Old 07-11-2016, 02:21 AM   #4
Faiza Al-Salti
Member
 
Registered: May 2014
Posts: 38

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by malekmustaq View Post
Use Point-to-Point Protocol.
or
use layered tunneling where your repackaged payload carry its own service that underlying network does not support.

m.m.
Is there any routing protocol in NS2 that use such technique because all routing protocols available in Aqua-sim use broadcast rather than unicast?
 
Old 07-21-2016, 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,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
P2P-Zetasim can be added to Aqua-Sim.

INFO https://code.google.com/archive/p/zetasim/
. http://www.linuxquestions.org/questions/tags/p2p-ns2/

Patch : aquasim+p2p-Zetasim_ns230.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Using : 'cd aquasim/'
patch -p0 < aquasim+p2p-Zetasim_ns230.patch
export CC=gcc34 CXX=g++34 && ./install

Examples, P2P-Zetasim, see the patched ns-2.30/ :
ns-2.30/P2P/demo/{full-connected.tcl, nam_show.tcl, real-internet.tcl, star.tcl}

P.S.: The p2p examples are working perfect with the new executable 'ns-aquasim-p2p' :
$ ns-aquasim-p2p full-connected.tcl
etc. etc.

My test OS : PCLinuxOS 2016 - x86_64.


-

Last edited by knudfl; 07-21-2016 at 06:46 AM.
 
Old 07-21-2016, 07:40 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,516

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
The other P2P patch "bittorrent-p2p" can also be added ... together with "p2p-zetasim".

Patch : p2p-bittorrent_for-the-zetasim-patched_ns230-aqua.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

Using : 'cd aquasim/'
patch -p0 < aquasim+p2p-Zetasim_ns230.patch
patch -p0 < p2p-bittorrent_for-the-zetasim-patched_ns230-aqua.patch
export CC=gcc34 CXX=g++34 && ./install

Examples, p2p-bitterent, see the patched ns-2.30/ :
ns-2.30/p2p/{bt_flashcrowd_flow.tcl, bt_flashcrowd_star.tcl, cbrgen_star.tcl}

Examples simulation, p2p-bitterent :
Code:
ns-aqua_zeta-bittor.p2p cbrgen_star.tcl -type cbr -nn 4 -seed 1 -mc 4 -rate 1 -starttime 1 -timegap 2

ns-aqua_zeta-bittor.p2p bt_flashcrowd_star.tcl 4 44 4
Works perfectly.


-

Last edited by knudfl; 07-21-2016 at 07:47 AM.
 
  


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
error: format_rtaodv: invalid RTAODV packet type mary1001 Linux - Software 4 12-19-2014 01:59 PM
route type unreachable overriding local packet generation for marking packets jp413 Linux - Networking 2 07-10-2010 08:51 PM
A packet filter using libipq which uses ether type field to capture the packet can26_manish Programming 2 10-16-2007 05:35 AM
Traffic Shaping (by type of packet) snufferz Linux - Networking 1 06-07-2004 11:40 AM
Traffic Shaping (by type of packet) snufferz Linux - Software 0 06-07-2004 10:46 AM

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

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