A device for medium access control of a node of a wireless communication network with time-shared medium, comprising: - a slot allocation module configured to allocate a timeslot for transmission of a data flow from said node to a destination node over said time-shared medium, said data flow comprising multiple data packets to be transmitted to said destination node, and said timeslot being a time interval within the duration of a superframe, such that said allocated timeslot is exclusively reserved for the communication corresponding to said data flow, thereby guaranteeing collision-free medium access upon repetitive execution of said superframe; - a validation module configured to validate a data packet comprised in said data flow before transmission to said destination node based on ∘ a latency requirement for said data packet, wherein said latency requirement is a maximum allowed latency for said data packet, and is defined by an application working at the Application layer, and ∘ an expected latency for said data packet, wherein said expected latency is based on the position in time of said timeslot, resulting in an approved data packet or a disapproved data packet, wherein said validation module is configured to validate said data packet by comparing said expected latency with said maximum allowed latency, resulting in an approved data packet if said expected latency is smaller than said maximum allowed latency, and otherwise resulting in a disapproved data packet; - a scheduling module configured to schedule in said timeslot, a data packet comprised in said data flow and approved by said validation module, for transmission to said destination node, wherein said approved data packet is scheduled in said timeslot together with other data packets comprised in said data flow and approved by said validation module, and wherein said device is configured to drop a data packet comprised in said data flow and disapproved by said validation module, such that said disapproved data packet is not scheduled in said timeslot by said scheduling module and is not transmitted to said destination node. - a slot allocation module configured to allocate a timeslot for transmission of a data flow from said node to a destination node over said time-shared medium, said data flow comprising multiple data packets to be transmitted to said destination node, and said timeslot being a time interval within the duration of a superframe, such that said allocated timeslot is exclusively reserved for the communication corresponding to said data flow, thereby guaranteeing collision-free medium access upon repetitive execution of said superframe; said data flow comprising multiple data packets to be transmitted to said destination node, and said timeslot being a time interval within the duration of a superframe, such that said allocated timeslot is exclusively reserved for the communication corresponding to said data flow, thereby guaranteeing collision-free medium access upon repetitive execution of said superframe; - a validation module configured to validate a data packet comprised in said data flow before transmission to said destination node based on ∘ a latency requirement for said data packet, wherein said latency requirement is a maximum allowed latency for said data packet, and is defined by an application working at the Application layer, and ∘ an expected latency for said data packet, wherein said expected latency is based on the position in time of said timeslot, resulting in an approved data packet or a disapproved data packet, wherein said validation module is configured to validate said data packet by comparing said expected latency with said maximum allowed latency, resulting in an approved data packet if said expected latency is smaller than said maximum allowed latency, and otherwise resulting in a disapproved data packet; ∘ a latency requirement for said data packet, wherein said latency requirement is a maximum allowed latency for said data packet, and is defined by an application working at the Application layer, and ∘ an expected latency for said data packet, wherein said expected latency is based on the position in time of said timeslot, - a scheduling module configured to schedule in said timeslot, a data packet comprised in said data flow and approved by said validation module, for transmission to said destination node, wherein said approved data packet is scheduled in said timeslot together with other data packets comprised in said data flow and approved by said validation module,