리눅스 Traffic Control 질문이요 ㅠㅠㅠ
며칠전에도 질문했었는데 답변이 없어서 다시 질문 올려요 ㅠㅠㅠㅠ
이번에 실험을 하나 하려하는데
리눅스 TC나 TCNG를 이용해서 ingress bandwidth를 제한해서 제가 만든 프로그램이 얼마나 효율적인가를 보려고 하는데요
구글링등해서 스스로 해봤는데 잘 안되네요...
컨트롤이 아에 안된다던지 500kbps를 만족해줘야 하는데 아에 말도 안되는 속도로 제한이 걸린다던지...
어떻게 해야할까요.. 도움이 필요합니다..
#!/bin/bash
TC=/sbin/tc
DEV=eth0
MAX=1
# clear all queuing on the device.
${TC} qdisc del dev ${DEV} root 2> /dev/null > /dev/null
${TC} qdisc del dev ${DEV} ingress 2> /dev/null > /dev/null
# Handle the speed of the traffic coming from network
# Add a limiter to the ingress
${TC} qdisc add dev ${DEV} handle ffff: ingress
# Set the maximum limit
${TC} filter add dev ${DEV} parent ffff: protocol ip prio 2 u32 match ip src 0.0.0.0/0 police rate ${MAX}mBps burst 100mB drop
이런깃으로 TC 스크립트를 만들어서 했었습니다. ㅜㅠㅠㅠㅠㅠㅠ
댓글 달기