LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 08-20-2009, 01:08 PM   #1
farkeu
LQ Newbie
 
Registered: Aug 2009
Posts: 6

Rep: Reputation: 0
Why packet incoming interface (sk_buff->dev) effects application reception?


Hello! I have a question.

I use a video player at client to receive a video stream from server, video player use wlan0 to receive video stream, then I use iptables at middle router to change some packet's IP destination addr, so 1 stream become 2 streams.

1st stream received by wlan0(192.168.1.1) and 2ed stream received by wlan1 (192.168.2.1).

Of course I got a problem, video player seems don't recognize those packets that received by wlan1(video looks not smooth). So,I use iptables change packet incoming interface like this:
Quote:
iptables -A PREROUTING -t mangle -i wlan1 -j ROUTE --iif wlan0
Well, it solved problem! The video looks smooth again!

But, why? Why sk_buff->dev (-j ROUTE --iif changes this field) effect application layer? Please help! Thanks~
 
Old 08-22-2009, 06:11 PM   #2
j-osh
Member
 
Registered: Nov 2008
Location: Madison, WI
Posts: 34

Rep: Reputation: 16
Wait, so are both interfaces wlan0 and wlan1 on the same machine?

If that is the case video is very sensitive to packets arriving out of order and also with packets no arriving at a constant rate (jitter). So if you are splitting the stream of packets and then letting the application re-assemble them then you are probably cause these issues.

Also, how to you know your application is receive both streams of packets? Could it be receiving only that packets from say wlan0?
 
  


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
Routing IP Packet from user Application using rawsocket johnniealan Linux - Networking 0 06-09-2009 11:33 PM
Help me ... Install packet application start with reboot system ! minhstone Red Hat 2 01-18-2008 01:34 AM
why i see same packet twice on network interface? cranium2004 Linux - Networking 6 11-26-2004 09:42 AM
How to get the IP header of packet going through an interface thanh Programming 1 06-12-2004 12:26 PM
packet reception by virtual network interface seeker321in Linux - Networking 0 04-19-2002 01:48 PM

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

All times are GMT -5. The time now is 09:39 PM.

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