Disclosed are a method and device for packet processing. A same TCN is preconfigured for packets in a same packet stream. The TCN and a value of the number of service nodes in a hop are utilized for a load-balancing computation. If suitable TCNs can be selected respectively for different packet streams on the basis of the number of packet streams, sharing of packet streams among service nodes can be implemented. When the number of packet streams is stable, regardless of that the topology states of the service nodes change, load balancing for the service nodes in a same hop can be implemented in a statistical sense.
展开▼