Method for providing, for the processing of a data stream having a protocol header, a connection identifier, said connection identifier being extracted from said protocol header (20) of said data stream, said protocol header (20) comprising fields (22-24, 25-27) of a first protocol and fields of a second protocol, which builds on said first protocol, said method comprising the following steps:
- a) scanning said protocol header (20) to read protocol-type information of said first protocol,
- b) reading protocol information in said fields (22-24, 25-27) of the first and second protocol of said protocol header (20),
- c) applying said protocol-type information and said protocol information, read in steps a) and b), to the input (84) of a content-addressable memory (CAM, 80),
- d) comparing said protocol-type information and said protocol information with information stored in said CAM (80) and for providing the CAM address containing identical information at an output (82) of said CAM (80), and
- e) generating said connection identifier by concatenating the CAM address provided at said output (82) of said CAM (80).