No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Eth-trunk interface does not support random packet sampling problem

Publication Date:  2014-12-31 Views:  10 Downloads:  0
Issue Description

After configuring Eth-trunk,User feedback Cache does not generate sampling packet and relevant interface no packet output.

User enabled sampling in Eth-trunk8:

#

InterfaceEth - Trunk8. 103

Vlan - type dot1q 103

...

IP netstreaminbound

#

InterfaceEth - Trunk8. 105

Vlan - type dot1q 105

...

IP netstreaminbound

#

The ports of Slot 2, 3, 7 add to Eth-trunk8 :

#

Interface GigabitEthernet2 / 0/1

Undoshu TD own

Eth-trunk8

#

Interface GigabitEthernet3 / 0/0

Undoshu TD own

Eth-trunk8

#

Interface GigabitEthernet7 / 0/0

Undoshu TD own

Eth-trunk8

#

To query Cache Information,for example slot3, no Cache  and no statistical information:

[ ROUT6 ] dis IP NetStream Cache Asslot3

Info: Norequiredstreamcanbefoundinthecache.

[ ROUT6 ] dis IP netstreamst

[ ROUT6 ] dis IP netstreamstatistics Slot Three

Netstreamstatisticinformationonslot3:

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Lengthofpackets Number Protocol Number

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

One ~ 64 : 0 IPV4 : 0

65 ~ 128 : 0 IPV6 : 0

129 ~ 256 : 0 MPLS : 0

257 ~ 512 : 0 L2 : 0

513 ~ 1024: 0 Total : 0

1025 ~ 1500: 0

Longerthan 1500: 0

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Aggregation CurrentStreams AgedStreams

CreatedStreams ExportedPackets ExportedStreams

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

Origin 0 0

0 0 0

As 0 0

0 0 0

As-tos 0 0

0 0 0

Protport 0 0

0 0 0

Protporttos 0 0

0 0 0

Srcprefix 0 0

0 0 0

Srcpretos 0 0

0 0 0

Dstprefix 0 0

0 0 0

Dstpretos 0 0

0 0 0

Prefix 0 0

0 0 0

Prefix-tos 0 0

0 0 0

Mpls-label 0 0

0 0 0

Vlan - id 0 0

0 0 0

Bgp-nhp-tos 0 0

0 0 0

Index-tos 0 0

0 0 0

Src - index, tos0 0

0 0 0

All-aggre 0 0

0 0 0
....

Handling Process

1.Firstly,We check sampling configuration is complete.configuration include sampling ratio, host and source address, configure sampling mode in slot view, enable sampling in interface view.

#

IP netstreamas - mode 32

IP netstreamexportversion9origin - as BG P - nexthop

IP netstreamsampler RAN dom, packets 100 inbound

IP netstreamsampler RAN dom, packets 100 outbound

IP netstreamexportsource 172.3.1.1

IP netstreamexporthost 172.3.2.6 9905

#

InterfaceEth - Trunk8. 103

Vlan - type dot1q 103

...

IP netstreaminbound

#

Slot 3

IP netstreamsamplertoslotself

#

2. To compare and analyze  other sampling configuration of interface.

other sampling configuration is shown below

#

Interface GigabitEthernet2 / 0/4

Undoshu TD own

Mtu 1550

...
IP netstreaminbound

IP netstreamstatisticsenable

#

After inquiry,sampling information can be collected in slot2.

[RST-ISP - AGG -06 -diagnose ] dis IP NetStream Cache Asslot2

Starttoshowinformationofaggregation - ascacheofslot 2

Gettinguserdatafromcachesuccess.

DstIf DstAs Streams Packets Direction

SrcIf SrcAs

,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

108 /0/0 36351 One 2. In

GI2 and 0/4 132032

108 and 1/0 45758 Three 135 In

GI2 and 0/4 132032

108 and 1/0 1267 One One In

GI2 and 0/4 132032

108 /0/0 18837 2. 2. In

GI2 and 0/4 132032

108 and 1/0 56041 Three Three In

GI2 and 0/4 132032

108 /0/0 48882 One One In

GI2 and 0/4 132032

...

After analysis,sampling information cannot be colleced in et-trunk and sampling mode is random packet sampling.

After analysis and confirmation,Eth-trunk only support fixed packet sampling.

 

fixed package sampling command:

IP netstreamsamplerfix - packets Fix, packet - number { Inbound | Outbound }

Root Cause

Eth-trunk does not support random packet sampling.

Solution

Sampling mode change to fixed package sampling to slove the problem.

Whatever sampling mode, only sampling way is different.packet size is random in live network and two ways does not differ much.

Suggestions

1. Eth-trunk/ip-trunk /tunnel /mtunel only Support  fixed package sampling.

2.  Physical port and  logical port  are only Support fixed package sampling in LPUF-20/21/40 Board.

equipment support four simpling mode: fixed packet sampling, random packet sampling, fixed interval sampling and random interval sampling,

so we should  set a proper sampling mode to suit your need.

END