Click here to get back home

Perl Module for Sockets that can Mark DSCP

 HomeNewsGroups | Search | About
 comp.lang.perl.modules    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Perl Module for Sockets that can Mark DSCP Scott \(Scooter\) McHugh 04-26-2006
Get Chitika Premium
Posted by Scott \(Scooter\) McHugh on April 26, 2006, 7:11 pm
Please log in for more thread options


Hey all,
I am new to modules as I have only used perl on Solaris to call external
executeables and write log files. I am really a Network Engineer that has
been saddled with running Openview on Solaris to manage VoIP.

What I want to do is create a client app and a server app that sends IP
traffic to each other but would allow me to pass in QoS/ToS values as well
as port numbers. This will be used for testing in my lab

Bassically I want to create traffic to go through a few hops and will be
able to test out Cisco routers and how they react to the packets that are
marked for queing and of course use perl to mark the packets.

TIA




Posted by Jim Gibson on April 27, 2006, 7:57 pm
Please log in for more thread options



> Hey all,
> I am new to modules as I have only used perl on Solaris to call external
> executeables and write log files. I am really a Network Engineer that has
> been saddled with running Openview on Solaris to manage VoIP.
>
> What I want to do is create a client app and a server app that sends IP
> traffic to each other but would allow me to pass in QoS/ToS values as well
> as port numbers. This will be used for testing in my lab
>
> Bassically I want to create traffic to go through a few hops and will be
> able to test out Cisco routers and how they react to the packets that are
> marked for queing and of course use perl to mark the packets.

While perl has socket functions built-in, you should look into using
the IO::Socket module and its derivative IO::Socket::Inet. Also look at
the Perl documentation 'perldoc perlipc'.

Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Posted by Brian McCauley on April 30, 2006, 1:09 pm
Please log in for more thread options



Jim Gibson wrote:
>
> > Hey all,
> > I am new to modules as I have only used perl on Solaris to call external
> > executeables and write log files. I am really a Network Engineer that has
> > been saddled with running Openview on Solaris to manage VoIP.
> >
> > What I want to do is create a client app and a server app that sends IP
> > traffic to each other but would allow me to pass in QoS/ToS values as well
> > as port numbers. This will be used for testing in my lab
> >
> > Bassically I want to create traffic to go through a few hops and will be
> > able to test out Cisco routers and how they react to the packets that are
> > marked for queing and of course use perl to mark the packets.
>
> While perl has socket functions built-in, you should look into using
> the IO::Socket module and its derivative IO::Socket::Inet.

That's way too high level.

You may be able to manipulate ToS with something like

setsockopt($socket, SOL_IP, IP_TOS, IPTOS_LOWDELAY);

But note the constants SOL_IP, IP_TOS and IPTOS_LOWDELAY are probably
not in the Socket module so you'll hace to grab them out of the C
header files yourself.

My answer is based on Linux - ymmv.


Posted by Scott \(Scooter\) McHugh on May 2, 2006, 6:57 pm
Please log in for more thread options


Thanks guys! I am new to this stuff I know what I need to do just don't
have a budget to spend on a vendor tool.

This is really cool. Got a udp flood perl script to work today!




Posted by Scott \(Scooter\) McHugh on May 2, 2006, 7:58 pm
Please log in for more thread options


> But note the constants SOL_IP, IP_TOS and IPTOS_LOWDELAY are probably
> not in the Socket module so you'll hace to grab them out of the C
> header files yourself.

Ughhh sorry but I am really a newbie. How do I grab them from the C header
files? I have googled for this but I am just really lost.
TIA



Similar ThreadsPosted
Sockets - client unable to connect May 1, 2006, 5:28 pm
Maximum number of sockets - FD_SETSIZE September 8, 2006, 10:14 am
Need help with a simple UNIX sockets server based on IO::Socket::UNIX April 14, 2005, 3:02 am
Perl Module using XS May 3, 2008, 5:09 pm
Perl module PDF::API2 July 11, 2004, 5:35 am
Perl GD::Graph module: bug? August 3, 2004, 8:42 pm
Installing DBI module for Perl 5.8.4 October 4, 2005, 6:26 am
Problem with Net::SSH::Perl module December 22, 2004, 12:38 pm
Perl module for R-trees March 29, 2005, 9:02 pm
Perl module installation April 11, 2005, 9:55 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap