次に、パケット トレーサ機能を使用してフィルタとレポートをキャプチャする例を示します。switch# packet-trace
switch(config-pt)# trigger init rxpp
switch(config-pt-rxpp)# packet-format eth-dot1q-ipv4
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)# set outer ipv4 src-ip 62.0.134.2
switch(config-pt-rxpp-pkt-fmt)# set outer ipv
ipv4 ipv6
switch(config-pt-rxpp-pkt-fmt)# set outer ipv4 next-protocol 17
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)# show filters
slot 1
=======
OUTER
Ethernet
eth_type:: value: 0x800, mask: 0xffff, offset: 16
DOT1Q
tpid:: value: 0x8100, mask: 0xffff, offset: 12
IPv4
protocol:: value: 17, mask: 0xff, offset: 27
src_ip:: value: 62.0.134.2, mask: 0xffffffff, offset: 30
INNER
Packet filters:: 0000000000000000000000008100000008000000000000000000001100003e0086020000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Packet filters mask:: 000000000000000000000000ffff0000ffff000000000000000000ff0000ffffffff0000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)# start
Filter name: eth_type
Filter name: tpid
Filter name: protocol
Filter name: src_ip
Setting RX packet data filters (filter count 4).
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)# status
Packet trace hit
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)#
switch(config-pt-rxpp-pkt-fmt)# report
Rx Packet traced in slot #0 slice #1:
Frame 1: 128 bytes on wire (1024 bits), 128 bytes captured (1024 bits)
[Protocols in frame: eth:ethertype:vlan:ethertype:ip:udp:hsrp]
Ethernet II, Src: Cisco_21:e5:5b (40:14:82:21:e5:5b), Dst: IPv4mcast_66 (01:00:5e:00:00:66)
Destination: IPv4mcast_66 (01:00:5e:00:00:66)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
Source: Cisco_21:e5:5b (40:14:82:21:e5:5b)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: 802.1Q Virtual LAN (0x8100)
[Stream index: 0]
802.1Q Virtual LAN, PRI: 0, DEI: 0, ID: 134
000. .... .... .... = Priority: Best Effort (default) (0)
...0 .... .... .... = DEI: Ineligible
.... 0000 1000 0110 = ID: 134
Type: IPv4 (0x0800)
Trailer: 000000000000000000000000000073636f00000000000000000000000000
Internet Protocol Version 4, Src: 62.0.134.2, Dst: 224.0.0.102
0100 .... = Version: 4
.... 0101 = Header Length: 20 bytes (5)
Differentiated Services Field: 0x00 (DSCP: CS0, ECN: Not-ECT)
0000 00.. = Differentiated Services Codepoint: Default (0)
.... ..00 = Explicit Congestion Notification: Not ECN-Capable Transport (0)
Total Length: 80
Identification: 0x0000 (0)
000. .... = Flags: 0x0
0... .... = Reserved bit: Not set
.0.. .... = Don't fragment: Not set
..0. .... = More fragments: Not set
...0 0000 0000 0000 = Fragment Offset: 0
Protocol: UDP (17)
Header Checksum: 0x1734 [validation disabled]
[Header checksum status: Unverified]
Source Address: 62.0.134.2
Destination Address: 224.0.0.102
[Stream index: 0]
User Datagram Protocol, Src Port: 1985, Dst Port: 1985
Source Port: 1985
Destination Port: 1985
Length: 60
Checksum: 0x5b42 [unverified]
[Checksum Status: Unverified]
[Stream index: 0]
[Stream Packet Number: 1]
UDP payload (52 bytes)
Cisco Hot Standby Router Protocol
Group State TLV: Type=1 Len=40
Version: 2
Op Code: Hello (0)
State: Standby (5)
IP Ver.: IPv4 (4)
Group: 134
Identifier: Cisco_21:e5:5b (40:14:82:21:e5:5b)
Priority: 100
Hellotime: Default (3000)
Holdtime: Default (10000)
Virtual IP Address: 62.0.134.3
Text Authentication TLV: Type=3 Len=8
Authentication Data: Default (cisco)
Packet Summary Decode:
Packet capture Summary : (Captured at RXPP) :
Ingress port details:
Interface : Eth1/22
LTL : 0x58
System Port : 0x98
PIF : 24
Slice : 1
ifg : 1
Packet drop summary:
Packet dropped : NO
Packet punt summary:
Punt Details :Packet is not punted
Packet Details:
===============
decode_termination_input slice_idi 1
Packet Bytes(up to 128B) : 0x01005e00006640148221e55b8100008608004500005000000000ff1117343e008602e000006607c107c1003c5b42012802000504008640148221
e55b0000006400000bb8000027103e0086030000000000000000000000000308636973636f000000000000000000000000000000000073636f00000000000000000000000000
==== FI Array ====
------------------------------------------------------------------------------------------------------------------------
FIELD_NAME : VALUE
------------------------------------------------------------------------------------------------------------------------
array[9] : 0x0
array[8] : 0x0
array[7] : 0x0
array[6] : 0x0
array[5] : 0x0
array[4] : 0x2e00
array[3] : 0x260f
offset_in_bytes 0x26
protocol_type PROTOCOL_TYPE_UDP
array[2] : 0x1214
offset_in_bytes 0x12
protocol_type PROTOCOL_TYPE_IPV4_L4
array[1] : 0xe48
offset_in_bytes 0xe
protocol_type PROTOCOL_TYPE_VLAN
flags 2
array[0] : 0x11
offset_in_bytes 0x0
protocol_type PROTOCOL_TYPE_ETHERNET_VLAN
==== RXPP Termination Input ====
------------------------------------------------------------------------------------------------------------------------
FIELD_NAME : VALUE
------------------------------------------------------------------------------------------------------------------------
padding_1 : 0x0
pch_label : 0x0
unsch_rcy_code : 0x0
tx_to_rx_rcy_data : 0xf4
mtu_violation : 0x0
initial_tc : 0x0
offset_in_fragment : 0x0
slice_source_system_port : 0x98
processing_code : 0x0
destination : 0x0
use_cache : 0x0
single_fragment_packet : 0x1
flow_signature_on_npuh : 0x0
phb : 0x0
reassembly_context : 0x7ff
learn_enable : 0x0
receive_time_from_nppd : 0x0
rxnpu_recycle_count : 0x0
rxnpu_recycle_data : 0x0
==== RXPP Termination Macro Stack ====
NPE-macros-stack[0]: network_rx_mac_af_and_termination_macro
NPE-macros-stack[1]: network_rx_mac_relay_ipv4_mc_termination_macro
==== IRXPP Termination Lookup Keys/Results ====
NPE-lookup Keys/Results[0]:
no lookup hit, bucket #1 context network engine termination
no lookup hit, bucket #2 context network engine termination
+------------+-----------------------------------------------------------------------+----------------------------+---------------+--------------
--------------------------------------+--------------+
| Key Bucket | Key Type | Key Value | Result Bucket |
Result Type | Result Value |
+------------+-----------------------------------------------------------------------+----------------------------+---------------+--------------
--------------------------------------+--------------+
| a | npl_service_mapping_ac_port_tag_compound_table_key_t | 0x5e000066000000138184327c | d |
NoneType | 0 |
| d | npl_ingress_qos_tag_encoding_pack_table_key_option_tag_type_v4_dscp_t | 0x0 | d | npl_ingress_q
os_tag_encoding_pack_table_payloads_t | 0x0 |
+------------+-----------------------------------------------------------------------+----------------------------+---------------+--------------
--------------------------------------+--------------+
NPE-lookup Keys/Results[1]:
no lookup hit, bucket #0 context network engine termination
no lookup hit, bucket #2 context network engine termination
+------------+-----------------------------------------------------------+-----------+---------------+-------------------------------------------
-----------+------------------------------+
| Key Bucket | Key Type | Key Value | Result Bucket | Result Type
| Result Value |
+------------+-----------------------------------------------------------+-----------+---------------+-------------------------------------------
-----------+------------------------------+
| b | npl_mac_mc_em_termination_attributes_compound_table_key_t | 0x21b | b | npl_base_l3_lp_attr_union_t
| 0xe00010c32af008674000000000 |
| d | npl_mc_macro_compressed_fileds_pack_table_key_t | 0x388 | d | npl_mc_macro_compressed_fileds_pack_table_
payloads_t | 0x0 |
+------------+-----------------------------------------------------------+-----------+---------------+-------------------------------------------
-----------+------------------------------+
==== RXPP Termination Output ====
------------------------------------------------------------------------------------------------------------------------
FIELD_NAME : VALUE
------------------------------------------------------------------------------------------------------------------------
learn_command : 0x0
lb_command : 0x0
offset_in_fragment : 0x0
slice_source_system_port : 0x98
processing_code : 0x0
destination : 0xe0086
use_cache : 0x0
single_fragment_packet : 0x1
flow_signature_on_npuh : 0x0
phb : 0x0
reassembly_context : 0x7ff
learn_enable : 0x0
receive_time_from_nppd : 0x0
rxnpu_recycle_count : 0x0
rxnpu_recycle_data : 0x0
==== RXPP Forwarding Macro Stack ====
NPE-macros-stack[0]: network_rx_ipv4_rtf_macro
NPE-macros-stack[1]: network_rx_mac_forwarding_macro
NPE-macros-stack[2]: resolution_macro
==== RXPP Forwarding Lookup Keys/Results ====
NPE-lookup Keys/Results[0]:
no lookup hit, bucket #1 context network engine forwarding
no lookup hit, bucket #3 context network engine forwarding
Error result bucket # 0 , from table ingress_rtf_ipv4_db1_240_f0_compound_table , overlapping previous value
Error result bucket # 1 , from table ingress_rtf_ipv4_db1_240_f0_compound_table , overlapping previous value
Error result bucket # 2 , from table ingress_rtf_ipv4_db1_240_f0_compound_table , overlapping previous value
Error result bucket # 3 , from table ingress_rtf_ipv4_db1_240_f0_compound_table , overlapping previous value
+------------+------------------------------------------------------+-----------------------------------------+---------------+------------------
-+--------------+
| Key Bucket | Key Type | Key Value | Result Bucket | Result Type
| Result Value |
+------------+------------------------------------------------------+-----------------------------------------+---------------+------------------
-+--------------+
| a | npl_ingress_rtf_ipv6_db4_480_f0_compound_table_key_t | 0x4ff45003e008602e000006607c19c0101f056 | b | npl_rtf_payload_t
| 0x0 |
| a | npl_ingress_rtf_ipv6_db4_480_f0_compound_table_key_t | 0x4ff45003e008602e000006607c19c0101f056 | c | npl_rtf_payload_t
| 0x0 |
| a | npl_ingress_rtf_ipv6_db4_480_f0_compound_table_key_t | 0x4ff45003e008602e000006607c19c0101f056 | d | npl_rtf_payload_t
| 0x0 |
| a | npl_ingress_rtf_ipv6_db4_480_f0_compound_table_key_t | 0x4ff45003e008602e000006607c19c0101f056 | a | npl_rtf_payload_t
| 0x0 |
| c | npl_ingress_rtf_ipv4_db1_240_f0_compound_table_key_t | 0x3821a | b | npl_rtf_payload_t
| 0x0 |
| c | npl_ingress_rtf_ipv4_db1_240_f0_compound_table_key_t | 0x3821a | c | npl_rtf_payload_t
| 0x0 |
| c | npl_ingress_rtf_ipv4_db1_240_f0_compound_table_key_t | 0x3821a | d | npl_rtf_payload_t
| 0x0 |
| c | npl_ingress_rtf_ipv4_db1_240_f0_compound_table_key_t | 0x3821a | a | npl_rtf_payload_t
| 0x0 |
+------------+------------------------------------------------------+-----------------------------------------+---------------+------------------
-+--------------+
NPE-lookup Keys/Results[1]:
no lookup hit, bucket #0 context network engine forwarding
no lookup hit, bucket #1 context network engine forwarding
no lookup hit, bucket #2 context network engine forwarding
+------------+-----------------------------------------+--------------------+---------------+----------------------------------------------+-----
---------+
| Key Bucket | Key Type | Key Value | Result Bucket | Result Type | Resu
lt Value |
+------------+-----------------------------------------+--------------------+---------------+----------------------------------------------+-----
---------+
| d | npl_mac_forwarding_table_compound_key_t | 0x8601005e00006612 | a | npl_mac_forwarding_table_compound_payloads_t |
0x0 |
+------------+-----------------------------------------+--------------------+---------------+----------------------------------------------+-----
---------+
NPE-lookup Keys/Results[2]:
no lookup hit, bucket #3 context network engine forwarding
+------------+---------------------------------------------------------------------+-----------------------------------------+---------------+---
----------------------------------------------------+--------------+
| Key Bucket | Key Type | Key Value | Result Bucket |
Result Type | Result Value |
+------------+---------------------------------------------------------------------+-----------------------------------------+---------------+---
----------------------------------------------------+--------------+
| a | npl_v4_l4_resolution_table_compound_key_t | 0x3300103802183 | a |
npl_resolution_table_compound_payloads_t | 0xa9100e0086 |
| b | npl_v4_l4_resolution_table_compound_key_t | 0x113e008602e00007c107c1800000000000000 | a |
npl_resolution_table_compound_payloads_t | 0xa9100e0086 |
| c | npl_select_fwd_q_m_counter_base_pack_table_key_option_false_value_t | 0x4000000 | c | np
l_select_fwd_q_m_counter_base_pack_table_payloads_t | 0x0 |
+------------+---------------------------------------------------------------------+-----------------------------------------+---------------+---
----------------------------------------------------+--------------+
==== RXPP Forwarding Output ====
------------------------------------------------------------------------------------------------------------------------
FIELD_NAME : VALUE
------------------------------------------------------------------------------------------------------------------------
offset_in_fragment : 0x0
slice_source_system_port : 0x98
processing_code : 0x0
destination : 0x0
use_cache : 0x0
single_fragment_packet : 0x1
flow_signature_on_npuh : 0x0
phb : 0x0
reassembly_context : 0x7ff
learn_enable : 0x0
receive_time_from_nppd : 0x0
rxnpu_recycle_count : 0x0
rxnpu_recycle_data : 0x0
padding_2 : 0x0
use_ecn : 0x0
fllb_control_code : 0x0
padding_1 : 0x0
ethernet_rate_limiter_type : 0x7
fwd_offset_cmd : 0x0
==== RXPP TM PD IFG0 ====
--------------------------------------------------------------------------------
FIELD_NAME : VALUE
--------------------------------------------------------------------------------
color : 0x0
counter_meter_command : 0xfdfcf5
is_dummy_pd : 0x1
reorder_data : 0xb72a
drop : 0x1
forwarding_destination : 0x0
mirror_bitmap : 0x37ff
source_slice_system_port : 0x0
traffic_class : 0x0
slice_mode_data : 0x1fb7ff4fcc9fd1ec2f4000000000000
processing_code : 0x0
lb_key_msbs_bits : 0x0
packet_size_bits : 0x0
==== RXPP TM PD IFG1 ====
--------------------------------------------------------------------------------
FIELD_NAME : VALUE
--------------------------------------------------------------------------------
color : 0x0
counter_meter_command : 0x43d
is_dummy_pd : 0x0
reorder_data : 0xba70
drop : 0x0
forwarding_destination : 0x100086
mirror_bitmap : 0x10
source_slice_system_port : 0x98
traffic_class : 0x0
slice_mode_data : 0x5fffffdfffffdfffffc0217227fffd0
processing_code : 0x0
lb_key_msbs_bits : 0x0
packet_size_bits : 0x0
==== NPU HEADER IFG0 ====
45ca99bdfecfefd5332fbfd000000000000000000000000000000000000000000000000000000000
------------------------------------------------------------------------------------------------------------------------
FIELD_NAME : VALUE
------------------------------------------------------------------------------------------------------------------------
base_type : 0x4
version : 0x0
ive_valid : 0x1
packet_edit_valid : 0x0
issu_codespace : 0x1
receive_time : 0xca99bdfe
meter_color : 0x3
l2_flood_mc_pruning_or_etm : 0x0
ingress_qos_remark : 0xfefd5
fwd_header_type : 0x3
rx_nw_app_or_lb_key : 0x32f
fwd_offset : 0xbf
slp_qos_id : 0xd
encap_type : 0x0
slp_dm_ptp : 0x0
is_inject_packet_capture_en : 0x0
is_inject_up : 0x0
ip_first_fragment : 0x0
ttl : 0x0
collapsed_mc : 0x0
da_bcast_or_mc_rpf : 0x0
slp_profile : 0x0
l2_slp : 0x0
l3_slp : 0x0
is_l2 : 0x0
is_rpf_id : 0x0
value : 0x0
sgt : 0x0
==== NPU HEADER IFG1 ====
0400000000020000044330f000000000000008600000008000010009e00100860000000000000058
------------------------------------------------------------------------------------------------------------------------
FIELD_NAME : VALUE
------------------------------------------------------------------------------------------------------------------------
base_type : 0x0
version : 0x0
ive_valid : 0x1
packet_edit_valid : 0x0
issu_codespace : 0x0
receive_time : 0x0
meter_color : 0x0
l2_flood_mc_pruning_or_etm : 0x0
ingress_qos_remark : 0x20000
fwd_header_type : 0x0
rx_nw_app_or_lb_key : 0x443
fwd_offset : 0x30
slp_qos_id : 0xf
encap_type : 0x0
L2_encap : 0x0
padding : 0x0
l2_dlp : 0x0
pif : 0x0
ifg : 0x0
slp_dm_ptp : 0x0
is_inject_packet_capture_en : 0x0
is_inject_up : 0x0
ip_first_fragment : 0x1
ttl : 0x0
collapsed_mc : 0x0
da_bcast_or_mc_rpf : 0x0
slp_profile : 0x0
l2_slp : 0x9e001
l3_slp : 0x9e00
is_l2 : 0x1
is_rpf_id : 0x1
value : 0x9e001
sgt : 0x0
switch(config-pt-rxpp-pkt-fmt)#