내용 : 전송속도가 T1(1.544 Mbps)으로 연결된 라우터에 대해서 60초 동안 traffic을 체크하여, 트래픽 양과 전송속도의 관계를 확인하고자 함.
라우터IP(가상) : 10.1.1.1
community : public
포트번호 : 2번
사용한 프로그램 : snmpget
[트래픽추출]
#snmpget 10.1.1.1 public ifInOctets.2 ifOutOctets.2
interfaces.ifTable.ifEntry.ifInOctets.2 = 2870061957
interfaces.ifTable.ifEntry.ifOutOctets.2 = 3914191972
60초 후에 다시 체크
# snmpget 10.1.1.1 public ifInOctets.2 ifOutOctets.2
interfaces.ifTable.ifEntry.ifInOctets.2 = 2870917187
interfaces.ifTable.ifEntry.ifOutOctets.2 = 3915984744
위의 interfaces.ifTable.ifEntry.ifInOctets.2 가 의미하는 것은, 2번 포트에 입력된 트래픽 양을 의미합니다. 따라서 위 두 값의 차이가 60초 동안 입력된 트래픽 양이 됩니다. 출력값도 마찬가지로 계산하면 됩니다.
ifInOctets - The total number of octets received on the interface, including framing characters.
IfOutOctets – The total number of octets transmitted out of the interface, including framing characters
Octet – 8비트로 구성된 바이트와 같은 단위.
[계산]
① 60초 동안 발생한 트래픽
input: 2870917187 - 2870061957 = 855230 (bytes)
output: 3915984744 - 3914191972 = 1792772 (bytes)
펌'd by nanha님 블로그(http://www.nanha.com/index.php?p=b/view&n=776&b=dft)
라우터IP(가상) : 10.1.1.1
community : public
포트번호 : 2번
사용한 프로그램 : snmpget
[트래픽추출]
#snmpget 10.1.1.1 public ifInOctets.2 ifOutOctets.2
interfaces.ifTable.ifEntry.ifInOctets.2 = 2870061957
interfaces.ifTable.ifEntry.ifOutOctets.2 = 3914191972
60초 후에 다시 체크
# snmpget 10.1.1.1 public ifInOctets.2 ifOutOctets.2
interfaces.ifTable.ifEntry.ifInOctets.2 = 2870917187
interfaces.ifTable.ifEntry.ifOutOctets.2 = 3915984744
위의 interfaces.ifTable.ifEntry.ifInOctets.2 가 의미하는 것은, 2번 포트에 입력된 트래픽 양을 의미합니다. 따라서 위 두 값의 차이가 60초 동안 입력된 트래픽 양이 됩니다. 출력값도 마찬가지로 계산하면 됩니다.
ifInOctets - The total number of octets received on the interface, including framing characters.
IfOutOctets – The total number of octets transmitted out of the interface, including framing characters
Octet – 8비트로 구성된 바이트와 같은 단위.
[계산]
① 60초 동안 발생한 트래픽
input: 2870917187 - 2870061957 = 855230 (bytes)
output: 3915984744 - 3914191972 = 1792772 (bytes)
펌'd by nanha님 블로그(http://www.nanha.com/index.php?p=b/view&n=776&b=dft)
댓글을 달아 주세요
① 60초 동안 발생한 트래픽
input: 2870917187 - 2870061957 = 855230 (bytes) = 106903.75 (bits)
output: 3915984744 - 3914191972 = 1792772 (bytes) = 224096.5 (bits)
요기에서 1byte에 8bit이니
input: 2870917187 - 2870061957 = 855230 (bytes) = 6841840(bits)
output: 3915984744 - 3914191972 = 1792772 (bytes) = 14342176(bits)
가 맞는거 같은데요.. 아닌가요?
일단 복사해둔것인데.. 계산상의 착오가 있나보네요..
원본이 제것이 아닌관계로 수정하는건 의미가 없고..
착오라고 생각되는 이후부분을 삭제하도록 하겠습니다.