Patent ID: 7844688

Claim:
A method for high level event-based monitoring, classifying, and control of a network system, comprising: defining an event that occurs in the network system corresponding to at least one of application, presentation, session, transport and network layers of a communication model; defining a match instruction in an open programming language which is operative to identify packet traffic belonging to a specified peer-to-peer protocol, said match instruction accepting as an argument a protocol message associated with said specifies peer-to-peer protocol; defining a concurrent operation via a concurrent instruction containing at least two sub-instructions which are concurrently executed until a sub-instruction is completed, such that the concurrent operation includes at least two other operations to be concurrently performed over the network system; detecting said event; responsively upon detecting said event, identifying packet traffic belonging to said specified peer-to-peer protocol according to said match instruction; and controlling at least a portion of the network system based on said identifying packet traffic belonging to said specified peer-to-peer protocol, by executing said concurrent operation; wherein said event is a download flow.