Data stream recognition method and device

The present invention provides a method and apparatus for identifying a data stream. A method comprising: receiving a request to a host, said host request comprising at least one datastream; a sliding window for each data stream channel allocation request of the host, the sliding window having a start logical address and end logical address; The way block data stream requesting access to updated data stream are assigned to the sliding window passage; within a first predetermined time, if the start logical address and end logical address of the sliding window update occurred, and the sliding window the size does not exceed a predetermined maximum value, the data streams identified as the sequence flow. Apparatus comprising: a receiving module, a distribution module, an update module and a recognition module. The present invention provides an effective solution to solve the problem of out of sequence, while the recognition sequence of the flow to achieve effective multiplex.