LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 04-27-2015, 11:31 AM   #1
Icculus
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Rep: Reputation: Disabled
Do Iptables support jitter simulation?


I'm trying to find out if Iptables supports creating jitter, like it does for packet loss. I'm using 'iptables -A INPUT -m statistic --mode random --probability 0.02 -j DROP' to simulate packet loss, but can I do something similar to create jitter? I think TC will do it, but our firmware does not support it. If there is an alternate solution, any advice would be greatly appreciated.
 
Old 04-27-2015, 02:47 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Icculus View Post
I'm trying to find out if Iptables supports creating jitter
If you are trying to find out all by yourself then searching the Netfilter framework code and web site should be your first stop, right?


Quote:
Originally Posted by Icculus View Post
I think TC will do it, but our firmware does not support it.
Then put a machine in front of it that can make use of 'tc'?
 
Old 04-27-2015, 03:02 PM   #3
Icculus
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
I've already proposed that, but since these devices have 3 logical zones, each having it's own IP Address, sharing/crossing an internal switch on the MB, going out one shared interface, and our firmware does not support TC, we cannot test between each zone's IP Address, unless we come up with another solution, like iptables doing delay/jitter, like it simulates packet loss. The only thing I've found, is somehow writing a script that that will support using iptables to simulate delay/jitter. I've tried to explain to my Boss, that it doesn't matter testing from zone to zone, and an inline device simulating packet loss & jitter between the devices interfaces will be fine. I'm sure he just wants to be extra sure. Can you see any reason why it would be necessary to test from IP to IP, when it's all one shared interface? Thanks for you help!
 
Old 04-27-2015, 03:29 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
You may have explained why it doesn't matter testing from zone to zone to your boss but not to us. So until you do, and preferably in a detailed way outlining components that could pose problems (or not) and therefore should be tested (or not), there is no need for me to come up with any reasons why it would be necessary to test from IP to IP (or not). Or am I mistaken about how things usually work?
 
Old 04-27-2015, 03:37 PM   #5
Icculus
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Well, before I do that, do you know of a way to make Iptables work to create jitter?
 
Old 04-27-2015, 04:01 PM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
I don't (well, not w/o using NFQUEUE). If you must ensure there isn't a way then do search the Netfilter framework source code and mailing list archives and ask on the iptables users / developer mailing list.
 
Old 04-27-2015, 04:35 PM   #7
Icculus
LQ Newbie
 
Registered: Apr 2015
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thank You, you've been very helpful.
 
  


Reply



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
NTP jitter problem qrange Linux - Software 1 10-17-2013 08:31 AM
Using tc or iptables to control jitter (packet delay variation) rladams65 Linux - Networking 5 02-08-2012 01:17 PM
NS2 network simulation problem:Change queue parameters dynamically during simulation raeisy Linux - Networking 1 11-21-2010 11:30 AM
Acoustic simulation program or (sound wave simulation program) tarotint Linux - Software 2 02-24-2010 04:04 AM
dvd jitter correction linuxmandrake Linux - Software 0 09-29-2006 12:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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