NBAR Flesh Tone Detection

To help combat world-wide congestion on the public Internet, Cisco has developed an extension to its Network-Based Application Recognition (NBAR) engine on IOS routers. The NBAR flesh tone detection feature performs deep packet inspection (DPI) on supported protocols to detect pornographic images for (de)prioritization.

Flesh tones are the beige/brown colors common to human skin pigments. Images with a high percentage of pixels set to these colors carry a high probability of being pornographic in nature. NBAR flesh tone detection is able to process images carried by NBAR-supported protocols like HTTP and FTP and heuristically detect and mark packets carrying suspect image fragments for prioritization.

NBAR flesh tone detection, powered by Cisco's proprietary Flexible Advanced Pornographic Protocol Recognition (FAPPR) algorithm, currently supports JPG, PNG, TIFF, GIF, and animated GIF image formats of up to 2048x2048 pixels.

NBAR Flesh tone Detection Configuration

Flesh tone detection is applied to a class map similar to any other NBAR match statement. A percentage of pixels must be specified between 1 and 100.

Router(config)# class-map hardcore
Router(config-cmap)# match flesh-tone percentage 75

At this point, the class map can be applied to an NBAR traffic policy to prioritize and/or mark traffic.

Router(config)# policy-map skintastic
Router(config-pmap)# class hardcore
Router(config-pmap-c)# priority percent 90
Router(config-pmap-c)# interface f0/0
Router(config-if)# service-policy input skintastic

About the Author

Jeremy Stretch is a networking engineer and the maintainer of PacketLife.net. He currently lives in the Raleigh-Durham area of North Carolina. Although employed full-time out of necessity, his true passion lies in improving the field of network engineering around the world. You can contact him by email or follow him on Twitter.

Comments

Had me until FAPPR.

I have seriously heard about technology that can do this, but I guess it being posted in Humor kinda gives it away..

So the same way we can identify and drop the priority level down, does that mean we can raise the priority level up ??? www.cisco.com/go/porn

Great stuff and most import "priority precent 90"

Yea, you got me. I did double check on the Cisco Web site. :)

Almost as good as last year.

You got me too... :)

Good thing I'm into alien porn. Pics composed mainly of green and gray skin tones won't be affected!

Fantastic technology ;)

Nice! 90% bandwidth priority should be sufficient.

hahahaha...

I was thinking this would give everyone a reason to search porn and play on their work/home lab at the same time :) I can just see the look on my wife's face.

FAPPR, that is awesome :)

:LOL:

2 thumbs up!!!!!!

had me until the comments

Haha, stretch, I was having a serious conversation about flesh tone mapping until I found this post on the 'nets. Wow.

Leave a Comment


Register to comment as a member. You'll look cooler.

Optional; will not be displayed publicly or given out.

No commercial links. Only personal (e.g. blog, Twitter, or LinkedIn) and/or on-topic links, please.
How many bits are in a byte?