LinuxQuestions.org
Help answer threads with 0 replies.
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 01-19-2014, 03:26 AM   #1
gabyz
LQ Newbie
 
Registered: Oct 2006
Posts: 21

Rep: Reputation: 0
how do I make shapers count FCS (CRC) bytes


Hi All,
From testing that I've done with TC HTC shaping I noticed that the shaper doesn't count packet FCS, so effectively where I expect traffic to be X Mbps I get a bit more. How much more depends on the packet length.
Is there a way to make the shaper count the packet's FCS?

Thanks
Gaby

Last edited by gabyz; 01-19-2014 at 05:09 AM.
 
Old 01-19-2014, 08:45 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
If you're talking about the Ethernet FCS, then I believe the answer is no. The FCS is discarded by the NIC itself, and is never visible to applications. I don't even think the NIC driver sees that part of the frame.
 
Old 01-20-2014, 01:20 AM   #3
gabyz
LQ Newbie
 
Registered: Oct 2006
Posts: 21

Original Poster
Rep: Reputation: 0
Nevertheless, from my perspective, a shaper configured to Xmbit/s should transmit Xmbit/s on the line. So I'm looking for a way to make shapers count the 4 bytes of the FCS when they check if they have enough tokens in their buckets, even if it means modifying kernel code.
 
Old 01-20-2014, 01:28 AM   #4
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,348

Rep: Reputation: Disabled
I can't say whether or not the shaper takes into account the size of the FCS (it would be a simple matter of adding 32 to the bit counter for every frame), only that the FCS isn't available to anything above the layer 1/2 logic circuitry in the NIC itself.
 
Old 01-20-2014, 04:02 AM   #5
gabyz
LQ Newbie
 
Registered: Oct 2006
Posts: 21

Original Poster
Rep: Reputation: 0
I measured the shaper configuration using IXIA and it doesn't count the FCS.
Actually, for a shaper you don't modify the bit counter, but deficit the token bucket by 4 additional bytes.
I'm looking to modify the HTB code to accommodate that. (reduce by configuration, to enable also support to accommodate for the IPG in Ethernet)
Any pointer will be appreciated.

Thanks
 
  


Reply

Tags
control, crc, shaper, traffic


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
Traffic Control doesn't count CRC bytes gabyz Linux - Newbie 0 01-17-2014 05:44 PM
Bypassing ISP traffic shapers jaredscott Linux - Networking 3 02-19-2010 01:03 AM
How to make an xxxx bytes file kniwor Linux - Newbie 2 12-31-2006 07:27 AM
qos, packet shapers and bandwidth throttling svartrev Linux - Networking 1 12-29-2004 07:44 AM
count bytes with awk alaios Linux - General 8 05-13-2003 06:41 AM

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

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