Method for traffic shaping in a packet processing system, in a telecommunications network, wherein the packet processing system comprises a programmable packet switching processor and a traffic shaping processor, wherein data packets received by the packet processing system are ingressed to the packet switching processor, and wherein the data packets transmitted by the packet processing system are egressed by the traffic shaping processor, wherein the traffic shaping processor comprises a multitude of different queues, wherein for traffic shaping, the method comprises the following steps: -- in a first step, a number of considered data packets, after or while being received by the packet processing system, are ingressed to the packet switching processor, -- in a second step, subsequent to the first step, the packet switching processor processes the number of considered data packets, appends a queue identification information to each one of the considered data packets, and transmits the considered data packets to the traffic shaping processor, wherein the existing Ethernet headers of the considered data packets are replaced with the queue identification information, -- in a third step, subsequent to the second step, the traffic shaping processor applies traffic shaping to the considered data packets by means of using the queue identification information of each one of the considered data packets to select a queue from the multitude of different queues for each one of the considered data packets, such that a multitude of data consumers can be provided with data packets in parallel, wherein the missing Ethernet headers are added to each of the considered data packets after dequeuing the considered data packets before being sent on egress from the packet processing system. wherein the packet processing system comprises a programmable packet switching processor and a traffic shaping processor, wherein data packets received by the packet processing system are ingressed to the packet switching processor, and wherein the data packets transmitted by the packet processing system are egressed by the traffic shaping processor, wherein the traffic shaping processor comprises a multitude of different queues, wherein for traffic shaping, the method comprises the following steps: -- in a first step, a number of considered data packets, after or while being received by the packet processing system, are ingressed to the packet switching processor, -- in a second step, subsequent to the first step, the packet switching processor processes the number of considered data packets, appends a queue identification information to each one of the considered data packets, and transmits the considered data packets to the traffic shaping processor, wherein the existing Ethernet headers of the considered data packets are replaced with the queue identification information, -- in a third step, subsequent to the second step, the traffic shaping processor applies traffic shaping to the considered data packets by means of using the queue identification information of each one of the considered data packets to select a queue from the multitude of different queues for each one of the considered data packets, such that a multitude of data consumers can be provided with data packets in parallel, -- in a first step, a number of considered data packets, after or while being received by the packet processing system, are ingressed to the packet switching processor, -- in a second step, subsequent to the first step, the packet switching processor processes the number of considered data packets, appends a queue identification information to each one of the considered data packets, and transmits the considered data packets to the traffic shaping processor, wherein the existing Ethernet headers of the considered data packets are replaced with the queue identification information, -- in a third step, subsequent to the second step, the traffic shaping processor applies traffic shaping to the considered data packets by means of using the queue identification information of each one of the considered data packets to select a queue from the multitude of different queues for each one of the considered data packets, such that a multitude of data consumers can be provided with data packets in parallel, wherein the missing Ethernet headers are added to each of the considered data packets after dequeuing the considered data packets before being sent on egress from the packet processing system.