Есть проблема - периодически CPU usage на коммутаторах DES-3526 взлетает до 100%, когда абоненты на них отсылают трафик на скорости, близкой к 100Мбит.
Коммутаторы при этом жутко тупят и пингуются с задержками около 2000 мс. Трафик заканчивается и все приходит в норму.
ACL довольно скромные, я так понимаю, что это не тот трафик, из-за которого этот коммутатор должен затыкаться.
Вот вывод команды show packet port 25, который удалось снять в момент 100% загрузки с аплинкового порта (на который уходил трафик абонента и на который ему возвращались ACK):
Код:
Port number : 25
Frame Size Frame Counts Frames/sec Frame Type Total Total/sec
------------ ------------ ---------- ---------- ---------- ---------
64 5341147 2 RX Bytes 1292494776 234359
65-127 2582794092 3372 RX Frames 2761734514 3298
128-255 100297907 46
256-511 45916667 16 TX Bytes 2936573612 8164558
512-1023 233475600 41 TX Frames 3973653963 5214
1024-1518 911947258 111
Unicast RX 2735939483 3126
Multicast RX 10929486 2
Broadcast RX 14858821 2
sFlow-sampler на порту того коммутатора, в который включен этот 3526, показал только вот такие пакеты (tcp по 1500 байт):
Код:
22:24:41.000000 IP (tos 0x0, ttl 128, id 41097, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.1431 > 10.16.1.15.3681: . 77260507:77261967(1460) ack 1404 win 32144
22:24:41.000000 IP (tos 0x0, ttl 128, id 41553, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.1431 > 10.16.1.15.3681: . 77378439:77379899(1460) ack 1404 win 32144
22:24:41.000000 IP (tos 0x0, ttl 128, id 41718, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.1431 > 10.16.1.15.3681: . 77479663:77481123(1460) ack 1404 win 32144
22:24:41.000000 IP (tos 0x0, ttl 128, id 41734, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.1431 > 10.16.1.15.3681: . 77492803:77494263(1460) ack 1404 win 32144
22:24:41.000000 IP (tos 0x0, ttl 128, id 41995, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.1431 > 10.16.1.15.3681: . 77676271:77677731(1460) ack 1404 win 32144
22:24:41.000000 IP (tos 0x0, ttl 128, id 43308, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.4502 > 10.14.1.239.2429: . 104874263:104875723(1460) ack 1028 win 32412
22:24:41.000000 IP (tos 0x0, ttl 128, id 43309, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.4502 > 10.14.1.239.2429: . 104875723:104877183(1460) ack 1028 win 32412
22:24:41.000000 IP (tos 0x0, ttl 128, id 43394, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.4502 > 10.14.1.239.2429: . 104889511:104890971(1460) ack 1028 win 32412
22:24:41.000000 IP (tos 0x0, ttl 128, id 44857, offset 0, flags [DF], proto: TCP (6), length: 1500) 10.13.1.35.1431 > 10.16.1.15.3681: . 78917075:78918535(1460) ack 1404 win 32144
Их количество в секунду примерно совпадает с ожидаемым (около 115 пакетов за 10 сек. при sample rate 1/256 - это около 3kpps).
В том, что этот трафик идет не в управляющем VLAN, я полностью уверен.
Конфиг коммутатора 3526 прилагаю (абонент, который отправлял, сидит в 1-м порту):
Код:
#-------------------------------------------------------------------
# DES-3526 Configuration
#
# Firmware: Build 6.00.B22
# Copyright(C) 2008 D-Link Corporation. All rights reserved.
#-------------------------------------------------------------------
# BASIC
config serial_port baud_rate 9600 auto_logout 10_minutes
enable telnet 23
enable web 80
config terminal_line default
enable clipaging
debug error_log auto_reboot enabled
# ACCOUNT LIST
create account admin admin encrypt sha_1 *@&/zuH1MTDXXXXXXXXX
# PASSWORD ENCRYPTION
enable password encryption
# BNR
config command_prompt default
# STORM
config traffic control_trap both
config traffic control 1-5 broadcast enable multicast disable unicast disable action drop threshold 5000
# LOOP_DETECT
enable loopdetect
config loopdetect recover_timer 60
config loopdetect interval 10
config loopdetect mode port-based
config loopdetect ports 1-22 state enabled
config loopdetect ports 23-26 state disabled
# GM
config sim candidate
disable sim
config sim dp_interval 30
config sim hold_time 100
# SYSLOG
enable syslog
config system_severity trap information
config system_severity log information
create syslog host 1 ipaddress 192.168.0.20 severity all facility local0 udp_port 514 state enable
# QOS
config scheduling 0 max_packet 0 max_latency 0
config scheduling 1 max_packet 0 max_latency 0
config scheduling 2 max_packet 0 max_latency 0
config scheduling 3 max_packet 0 max_latency 0
config 802.1p user_priority 0 1
config 802.1p user_priority 1 0
config 802.1p user_priority 2 0
config 802.1p user_priority 3 1
config 802.1p user_priority 4 2
config 802.1p user_priority 5 2
config 802.1p user_priority 6 3
config 802.1p user_priority 7 3
config 802.1p default_priority 1-26 0
config bandwidth_control 1-2,4-26 rx_rate no_limit tx_rate no_limit
config bandwidth_control 3 rx_rate no_limit tx_rate 2
# MIRROR
disable mirror
# TRAF-SEGMENTATION
config traffic_segmentation 1-26 forward_list 1-26
# PORT
config ports 1 speed auto flow_control disable mdix auto learning enable state enable trap disable
config ports 2 speed auto flow_control disable mdix auto learning enable state enable trap disable
config ports 3 speed auto flow_control enable mdix auto learning enable state enable trap disable
config ports 4-22 speed auto flow_control disable mdix auto learning enable state disable trap disable
config ports 23-24 speed auto flow_control disable mdix auto learning enable state enable description "Loop port for signalisation" trap enable
config ports 25 medium_type copper speed auto flow_control disable mdix auto learning enable state enable description "Aggregator Trunk" trap disable
config ports 25-26 medium_type fiber speed auto flow_control disable learning enable state enable trap disable
config ports 26 medium_type copper speed auto flow_control disable mdix auto learning enable state enable trap disable
# PORT_LOCK
enable port_security trap_log
config port_security ports 1-24 admin_state enable max_learning_addr 10 lock_address_mode DeleteOnTimeout
config port_security ports 25-26 admin_state disable max_learning_addr 1 lock_address_mode DeleteOnReset
# 8021X
disable 802.1x
config 802.1x auth_protocol radius_eap
config 802.1x capability ports 1-26 none
config 802.1x auth_parameter ports 1-26 direction both port_control auto quiet_period 60 tx_period 30 supp_timeout 30 server_timeout 30 max_req 2 reauth_period 3600 enable_reauth disable
# SNMPv3
delete snmp community public
delete snmp community private
delete snmp user initial
delete snmp group initial
delete snmp view restricted all
delete snmp view CommunityView all
config snmp engineID 800000ab03001cf00fbbaf
create snmp view restricted 1.3.6.1.2.1.1 view_type included
create snmp view restricted 1.3.6.1.2.1.11 view_type included
create snmp view restricted 1.3.6.1.6.3.10.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.11.2.1 view_type included
create snmp view restricted 1.3.6.1.6.3.15.1.1 view_type included
create snmp view CommunityView 1 view_type included
create snmp view CommunityView 1.3.6.1.6.3 view_type excluded
create snmp view CommunityView 1.3.6.1.6.3.1 view_type included
create snmp group public v1 read_view CommunityView notify_view CommunityView
create snmp group public v2c read_view CommunityView notify_view CommunityView
create snmp group initial v3 noauth_nopriv read_view restricted notify_view restricted
create snmp group private v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group private v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group ReadGroup v1 read_view CommunityView notify_view CommunityView
create snmp group ReadGroup v2c read_view CommunityView notify_view CommunityView
create snmp group WriteGroup v1 read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp group WriteGroup v2c read_view CommunityView write_view CommunityView notify_view CommunityView
create snmp community private view CommunityView read_write
create snmp community public view CommunityView read_only
create snmp user initial initial
create snmp host 192.168.0.20 v2c public
# MANAGEMENT
enable snmp traps
disable snmp authenticate traps
config snmp system_name accs-13-173
config snmp system_location XXXXXXXXX
disable rmon
# VLAN
disable asymmetric_vlan
config vlan default delete 1-26
config vlan default add untagged 25
config vlan default advertisement disable
create vlan Block tag 400
config vlan Block add tagged 25
config vlan Block add untagged 4-22
config vlan Block advertisement disable
create vlan Clients tag 415
config vlan Clients add tagged 25
config vlan Clients add untagged 1-3
config vlan Clients advertisement disable
disable gvrp
config gvrp 1-3 state disable ingress_checking enable acceptable_frame admit_all pvid 415
config gvrp 4-22 state disable ingress_checking enable acceptable_frame admit_all pvid 400
config gvrp 23-26 state disable ingress_checking enable acceptable_frame admit_all pvid 1
# FDB
config fdb aging_time 300
config multicast port_filtering_mode 1-26 filter_unregistered_groups
# MAC_ADDRESS_TABLE_NOTIFICATION
config mac_notification interval 1 historysize 1
disable mac_notification
config mac_notification ports 1-26 disable
# STP
config stp version rstp
config stp maxage 20 maxhops 20 forwarddelay 15 txholdcount 3 fbpdu enable
config stp priority 32768 instance_id 0
config stp hellotime 2
config stp mst_config_id name 00:17:9A:04:1A:11 revision_level 0
disable stp
config stp ports 1-26 externalCost auto edge false p2p auto state enable
config stp ports 1-26 fbpdu disable
config stp ports 1-26 restricted_role false
config stp ports 1-26 restricted_tcn false
config stp mst_ports 1-26 instance_id 0 internalCost auto priority 128
# SSH
config ssh server maxsession 8
config ssh server contimeout 300
config ssh server authfail 2
config ssh server rekey never
config ssh server port 22
disable ssh
# SSL
disable ssl
enable ssl ciphersuite RSA_with_RC4_128_MD5
enable ssl ciphersuite RSA_with_3DES_EDE_CBC_SHA
enable ssl ciphersuite DHE_DSS_with_3DES_EDE_CBC_SHA
enable ssl ciphersuite RSA_EXPORT_with_RC4_40_MD5
config ssl cachetimeout timeout 600
# SAFE_GUARD
config safeguard_engine state disable cpu_utilization rising_threshold 100 falling_threshold 20 trap_log disable
# TIMERANGE
# ACL
create access_profile ip udp src_port_mask 0xFFFF profile_id 50
config access_profile profile_id 50 add access_id 1 ip udp src_port 67 port 1 deny
config access_profile profile_id 50 add access_id 2 ip udp src_port 67 port 2 deny
config access_profile profile_id 50 add access_id 3 ip udp src_port 67 port 3 deny
create access_profile packet_content_mask offset_16-31 0xFFFF0000 0x0 0x0 0x0 offset_32-47 0xFFFFFFFF 0x0 0x0 0x0 profile_id 70
config access_profile profile_id 70 add access_id 1 packet_content_mask offset_16-31 0x8060000 0x0 0x0 0x0 offset_32-47 0xA0D0123 0x0 0x0 0x0 port 1 permit
config access_profile profile_id 70 add access_id 2 packet_content_mask offset_16-31 0x8060000 0x0 0x0 0x0 offset_32-47 0xA0D0124 0x0 0x0 0x0 port 2 permit
config access_profile profile_id 70 add access_id 3 packet_content_mask offset_16-31 0x8060000 0x0 0x0 0x0 offset_32-47 0xA0D013E 0x0 0x0 0x0 port 3 permit
create access_profile packet_content_mask offset_16-31 0xFFFF0000 0x0 0x0 0x0 profile_id 80
config access_profile profile_id 80 add access_id 1 packet_content_mask offset_16-31 0x8060000 0x0 0x0 0x0 port 1 deny
config access_profile profile_id 80 add access_id 2 packet_content_mask offset_16-31 0x8060000 0x0 0x0 0x0 port 2 deny
config access_profile profile_id 80 add access_id 3 packet_content_mask offset_16-31 0x8060000 0x0 0x0 0x0 port 3 deny
create access_profile ip source_ip_mask 255.255.255.255 profile_id 90
config access_profile profile_id 90 add access_id 1 ip source_ip 10.13.1.35 port 1 permit
config access_profile profile_id 90 add access_id 2 ip source_ip 10.13.1.36 port 2 permit
config access_profile profile_id 90 add access_id 3 ip source_ip 10.13.1.62 port 3 permit
create access_profile ip source_ip_mask 0.0.0.0 profile_id 100
config access_profile profile_id 100 add access_id 1 ip source_ip 0.0.0.0 port 1 deny
config access_profile profile_id 100 add access_id 2 ip source_ip 0.0.0.0 port 2 deny
config access_profile profile_id 100 add access_id 3 ip source_ip 0.0.0.0 port 3 deny
disable cpu_interface_filtering
# SNTP
enable sntp
config time_zone operator + hour 3 min 0
config sntp primary 192.168.0.17 secondary 0.0.0.0 poll-interval 720
config dst repeating s_week last s_day sun s_mth 3 s_time 2:0 e_week last e_day sun e_mth 10 e_time 3:0 offset 60
# IPBIND
disable address_binding acl_mode
disable address_binding trap_log
disable address_binding dhcp_snoop
config address_binding dhcp_snoop max_entry ports 1-26 limit 5
# FILTER
# ARP_Spoofing_Prevention
# PPPoE_Circuit_ID_Insertion
config pppoe circuit_id_insertion state disable
config pppoe circuit_id_insertion ports 1-26 state enable circuit_id ip
# ROUTE
create iproute default 192.168.143.254 1
# SNOOP
enable igmp_snooping
config igmp_snooping default host_timeout 260 router_timeout 260 leave_timer 2 state disable
config igmp_snooping querier default query_interval 125 max_response_time 10 robustness_variable 2
config igmp_snooping querier default last_member_query_interval 1 state disable
config igmp_snooping Block host_timeout 260 router_timeout 260 leave_timer 2 state disable
config igmp_snooping querier Block query_interval 125 max_response_time 10 robustness_variable 2
config igmp_snooping querier Block last_member_query_interval 1 state disable
config igmp_snooping Clients host_timeout 260 router_timeout 260 leave_timer 2 state enable
config igmp_snooping querier Clients query_interval 125 max_response_time 10 robustness_variable 2
config igmp_snooping querier Clients last_member_query_interval 1 state enable
config router_ports Clients add 25
config router_ports_forbidden Clients add 1-24,26
create multicast_range 1 from 224.0.0.1 to 224.0.0.2
create multicast_range 2 from 233.168.227.1 to 233.168.227.255
config limited_multicast_addr ports 1-2,4-24,26 add multicast_range 1
config limited_multicast_addr ports 1-2,4-24,26 add multicast_range 2
config limited_multicast_addr ports 1-24,26 access permit state enable
config limited_multicast_addr ports 25 access deny state disable
# LACP
config link_aggregation algorithm mac_source
config lacp_port 1-26 mode passive
# GVLAN
# IP
config ipif System vlan default ipaddress 192.168.140.173/22 state enable
disable autoconfig
config autoconfig timeout 50
# ARP
config arp_aging time 20
config gratuitous_arp send ipif_status_up enable
config gratuitous_arp send dup_ip_detected enable
config gratuitous_arp learning enable
# LLDP
disable lldp
config lldp message_tx_interval 30
config lldp tx_delay 2
config lldp message_tx_hold_multiplier 4
config lldp reinit_delay 2
config lldp notification_interval 5
config lldp ports 1-26 notification disable
config lldp ports 1-26 admin_status tx_and_rx
# ACCESS_AUTHENTICATION_CONTROL
config authen_login default method local
config authen_enable default method local_enable
config authen application console login default
config authen application console enable default
config authen application telnet login default
config authen application telnet enable default
config authen application ssh login default
config authen application ssh enable default
config authen application http login default
config authen application http enable default
config authen parameter response_timeout 30
config authen parameter attempt 3
config authen enable_admin all state enable
disable authen_policy
# DHCP_RELAY
enable dhcp_relay
config dhcp_relay hops 16 time 0
config dhcp_relay option_82 state enable
config dhcp_relay option_82 check disable
config dhcp_relay option_82 policy replace
config dhcp_relay option_82 remote_id default
config dhcp_relay option_60 state disable
config dhcp_relay option_60 default mode drop
config dhcp_relay option_61 state disable
config dhcp_relay option_61 default drop
config dhcp_relay add ipif System 10.0.100.10
config dhcp_relay add ipif System 10.0.100.26
# DHCP_LOCAL_RELAY
enable dhcp_local_relay
#-------------------------------------------------------------------
# End of configuration file for DES-3526
#-------------------------------------------------------------------