Hi everyone !! I've been having compiling issues regarding a click code from the conf file.I have modified it a little bit to suit my purpose, I would like my router to guarantee qos for various kinds of data.I have started my tests by considering voip (eg skype audio call) and video streaming, with of course signalling for voip packets. I modified the "print-pings.click" file. Here it is :
FromDevice(eth1) // read packets from device -> Classifier(12/0800) // select IP-in-Ethernet -> Strip(14) // strip Ethernet header -> CheckIPHeader // check IP header, mark as IP -> ip :: IPClassifier(ip dscp cs5, ip dscp ef, ip dscp cs6, ip dscp af31); rr :: DRRSched p :: PrioSched ip[0] -> Paint(255,255,255) -> Queue(20) -> [0]rr -> BandwidthRatedSplitter(32kBps)[0] -> [0]p // white colour for signalling packets ip[1] -> Paint(255,255,0) -> Queue(25) -> AdaptiveRED -> [1]rr -> Shaper(1) -> [1]p // yellow colour for network control ip[2] -> Paint(0,0,255) -> Queue(1000) -> [2]rr -> Shaper(10) -> [2]p // blue colour for video streaming ip[3] -> Paint(255,0,0) -> Queue(1000) -> BandwidthRatedUnqueue(128kBps,10ms)[0] -> [3]p // red colour for voip packets p -> ToDevice(eth1); While compiling the code I get these errors : ‘BandwidthRatedSplitter@10 :: BandwidthRatedSplitter’ push output 0 connected to ‘p :: PrioSched’ pull input 0 ‘BandwidthRatedUnqueue@20 :: BandwidthRatedUnqueue’ push output 0 connected to ‘p :: PrioSched’ pull input 3 ‘rr :: DRRSched’ pull output 0 connected to ‘BandwidthRatedSplitter@10 :: BandwidthRatedSplitter’ push input 0 Router could not be initialized! I've been trying to figure out what's going on for the past 2 days, but I'm stuck. I would appreciate some help from anyone. I would also like to know if I made a mistake with the Paint element. I know it takes integers as parameters, but when I checked on the internet I saw that colours are represented using red,green and blue (RGB). So I would like to know if I made a mistake by defining 3 integers for representing 1 colour int the Paint element Thx again for your responses......... _______________________________________________ click mailing list click@amsterdam.lcs.mit.edu https://amsterdam.lcs.mit.edu/mailman/listinfo/click