시스템에서 사용하고 있는 프로토콜들의 사용통계량 확인하기
작성자 정보
- 관리자 작성
- 작성일
컨텐츠 정보
- 2,565 조회
- 0 추천
- 목록
본문
시스템에서 사용하고 있는 프로토콜들의 사용통계량 확인하기
지금까지 우리는 netstat을 이용하여 여러가지 확인작업들을 할 수 있다는 것을 알 수 있었다.
이번에는 netstat에서 흔하게 사용하는 것은 아니지만 netstat의 -s옵션을 사용하여 서버에서 사용하는 프로토콜들의 사용통계를 확인하는 방법에 대해서 알아보도록 할 것이다.
먼저, netstat에서 -s옵션을 사용하면 다음과 같은 IN/OUT데이터의 프로토콜 사용 통계를 확인할 수 있다.
① Ip트로토콜의 receive데이터와 incoming데이터통계
②
Icmp프로토콜의 receive데이터와 incoming데이터통계
③ Tcp프로토콜의 receive데이터와 incoming데이터통계
④ Udp프로토콜의 receive데이터와 incoming데이터통계
⑤ 기타
다음 예는 “netstat -s”를 실행한 예로서 각 프로토콜들의 사용통계를 확인한 것이다.
[root@sulinux ~]#netstat -s Ip: 8138 total packets received 0 forwarded 0 incoming packets discarded 8102 incoming packets delivered 2664 requests sent out Icmp: 2 ICMP messages received 0 input ICMP message failed. ICMP input histogram: destination unreachable: 2 2 ICMP messages sent 0 ICMP messages failed ICMP output histogram: destination unreachable: 2 IcmpMsg: InType3: 2 OutType3: 2 Tcp: 142 active connections openings 5 passive connection openings 120 failed connection attempts 1 connection resets received 2 connections established 2697 segments received 2572 segments send out 0 segments retransmited 0 bad segments received. 240 resets sent Udp: 82 packets received 2 packets to unknown port received. 0 packet receive errors 84 packets sent TcpExt: 2 TCP sockets finished time wait in fast timer 301 delayed acks sent 1 delayed acks further delayed because of locked socket 1 packets directly queued to recvmsg prequeue. 1 packets directly received from prequeue 473 packets header predicted 499 acknowledgments not containing data received 514 predicted acknowledgments 0 TCP data loss events 20 connections reset due to unexpected data IpExt: InMcastPkts: 35 OutMcastPkts: 41 InBcastPkts: 5319 [root@sulinux ~]# |
즉, 위의 “netstat -s”의 결과를 보면 IP, ICMP, TCP, UDP, TcpExt등의 각 프로토콜들에 대한 사용통계를 볼 수 있다.
위의 예에서는 IP와 ICMP, 그리고 TCP 프로토콜이 가장 많이 사용되었다는 것을 알 수 있으며, 각 프로토콜들의 주고, 받은 패킷량을 확인할 수 있다.
이와 같이 현재 시스템에서 사용하고 있는 프로토콜들의 통계를 모두 확인하려면 “netstat -s”를 실행하면 된다.
관련자료
-
이전
-
다음