Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?




Hierarchy Level


Number of bytes to add to packet to determine shaped session packet length.


On M Series and T Series routers with Gigabit Ethernet Intelligent Queuing 2 (IQ2) PICs and Enhanced IQ2 (IQ2E) PICs and on MX Series routers with Dense Port Concentrators (DPCs) only, to account for egress shaping overhead bytes added to output traffic on the line card, you must use the egress-policer-overhead statement to explicitly configure corresponding egress policing overhead for Layer 2 policers, MAC policers, or queue rate limits applied to output traffic on the line card.


For MIC and MPC interfaces on MX Series routers, by default the value of egress-shaping-overhead is configured to 20, which means that the number of class-of-service (CoS) shaping overhead bytes to be added to the packets is 20. The interfaces on DPCs in MX Series routers, the default value is zero. For interfaces on PICs other than the 10-port 10-Gigabit Oversubscribed Ethernet (OSE) Type 4, you should configure egress-shaping-overhead to a minimum of 20 bytes to add a shaping overhead of 20 bytes to the packets.


When you change the egress-shaping-overhead value, on M Series, T Series, and MX104 routers the PIC on which it is changed is restarted. On MX5 routers, the MIC on which it is changed is restarted. On other MX Series routers, the DPC/MPC on which it is changed is restarted.


number—When traffic management (queuing and scheduling) is configured on the egress side, the number of CoS shaping overhead bytes to add to the packets on the egress interface.


  • –63 through 192.

  • –62 through 192 for vSRX Virtual Firewall.


The L2 headers (DA/SA + VLAN tags) are automatically a part of the shaping calculation.

Required Privilege Level

interface—To view this statement in the configuration.

interface-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 8.3.