Customer enabled class-of-service configuration and found subscriber login failure.
Refer below error log from bbe-smgd traceoption:
Mar 18 08:19:55 dprof_response_handler: NACK received for profile request id: 10037 from server plugin: CoS, error code: 0x06010001
Mar 18 08:19:55 bbe_dyn_prof_send_response: NACKing dynamic profile, plugin error: NACK from plugin: CoS cfg_err: 1 error_code: 1
Customer added cos configurion in dynamic-profile.
Refer below example:
user@mx#set dynamic-profiles PPPOE-PROFILE predefined-variable-defaults cos-shaping-rate 10m
user@mx#set dynamic-profiles PPPOE-PROFILE class-of-service traffic-control-profiles TC_PROF_TRAFFICSHAPER shaping-rate "$junos-cos-shaping-rate"
user@mx#set dynamic-profiles PPPOE-PROFILE class-of-service interfaces pp0 unit "$junos-interface-unit" output-traffic-control-profile TC_PROF_TRAFFICSHAPER
Enable bbe-smgd traceoption, we can find below error:
user@mx# run show log smgd-trace | match err | match cos
Mar 18 08:19:55 sdb_get_internal_variables_internal_sts:9217: Failed to get dyn attr: junos-cos-shaping-rate, vid: 22, session_id=17,err=SDB data not found
Mar 18 08:19:55 dprof_build_and_send_response: NACK from CoS sent for request: 10037, error: 1 cfg_err: 1
First of all, check if FPC has cos scheduler-resources:
user@mx# run show class-of-service scheduler-resources fpc slot 1 Slot: 1 PFE: 0 Scheduler: 0 Resource Unavailable Used Total for (seconds) L1 29 127 L2 30 2048 L3 29 2048 L4 31 2048 Q 248 16384 PFE: 1 Scheduler: 0 Resource Unavailable Used Total for (seconds) L1 29 127 L2 30 2048 L3 29 2048 L4 31 2048 Q 248 16384
If fpc shows cos scheduler-resources available, enable hierarchical-scheduler can resolve this issue.
user@mx#set interfaces xe-1/0/0:0 hierarchical-scheduler
To check class-of-service scheduler-hierarchy, refer below example:
user@mx# run show subscribers Interface IP Address/VLAN ID User Name LS:RI xe-1/0/0:0.3221225485 0x8100.100 0x8100.100 default:default pp0.3221225486 10.0.0.8 spirent default:default user@mx# run show class-of-service scheduler-hierarchy interface pp0.3221225486 Interface/ Shaping Guaranteed Guaranteed/ Queue Excess Resource name rate rate Excess weight weight kbits kbits priority high/low xe-1/0/0:0 10000000 xe-1/0/0:0 RTP 10000000 0 1 1 best-effort 10000000 0 Low Low 95 network-control 10000000 0 Low Low 5 pp0.3221225486 10000 0 500 500 best-effort 10000 0 Low Low 95 network-control 10000 0 Low Low 5