1. A method for analyzing network packets, comprising: receiving, using a network processor, a network packet having a packet header including address and control information; extracting, using the network processor, a set of bytes from the packet header, wherein the set of bytes to extract is selected based on a location of the network processor within a network structure; deriving, using the network processor, from the set of bytes a set of input bits for generating a hash code; and generating, using the network processor, the hash code using the input bits, wherein the hash code is utilized to identify a packet flow of the network packet, and wherein in response to the network processor being located at a first physical location in the network structure the network processor extracts a first set of bytes and in response to the network processor being located at a second physical location, different from the first physical location, in the network structure the network processor extracts a second set of bytes, different from the first set of bytes.