Method for optimizing the resources of a data transmission, configured according to an OSI-type model comprising at least a medium access layer, MAC, and a physical layer, consisting, based on a set of available pairs of modulation and first correcting code intended to be applied on the physical layer, in: - determining, for each of said pairs, the maximum yield of a second correcting code, called "Maximum Separable Distance", to be applied to the data to be transmitted before application of the first correcting code and of the modulation so that the error rate, TEP S, in the data received after transmission on an imperfect channel is at most equal to a target error rate, TEP C, - said second correcting code being a "Maximum Separable Distance" and being intended to be applied on the medium access layer, MAC, so as to generate a plurality, N PR, of packets of redundancy bits from a plurality, K, of packets of received data bits supplemented with padding sections so that they all have the same size, - the maximum yield of the second correcting code being determined by applying the following sub-steps: i. determining the theoretical probability of error of the pair consisting of modulation and first correcting code associated with the transmission channel, ii. simulating the error rate, TEP S, of a transmission of data protected by said second correcting code, on a channel modelled by said theoretical probability, iii. incrementing the number of packets of redundancy bits generated by said second correcting code until the simulated error rate, TEP S, is less than the target error rate, TEP C, - evaluating an item of information representative of the ratio between the number of bits at input of the medium access layer, MAC, and the number of bits actually transmitted for the set of solutions associating modulation, first and second correcting codes, - selecting, among the set of solutions associating modulation, first and second correcting codes, the solution which corresponds to the highest ratio. - determining, for each of said pairs, the maximum yield of a second correcting code, called "Maximum Separable Distance", to be applied to the data to be transmitted before application of the first correcting code and of the modulation so that the error rate, TEP S, in the data received after transmission on an imperfect channel is at most equal to a target error rate, TEP C, - said second correcting code being a "Maximum Separable Distance" and being intended to be applied on the medium access layer, MAC, so as to generate a plurality, N PR, of packets of redundancy bits from a plurality, K, of packets of received data bits supplemented with padding sections so that they all have the same size, - the maximum yield of the second correcting code being determined by applying the following sub-steps: i. determining the theoretical probability of error of the pair consisting of modulation and first correcting code associated with the transmission channel, ii. simulating the error rate, TEP S, of a transmission of data protected by said second correcting code, on a channel modelled by said theoretical probability, iii. incrementing the number of packets of redundancy bits generated by said second correcting code until the simulated error rate, TEP S, is less than the target error rate, TEP C, i. determining the theoretical probability of error of the pair consisting of modulation and first correcting code associated with the transmission channel, ii. simulating the error rate, TEP S, of a transmission of data protected by said second correcting code, on a channel modelled by said theoretical probability, iii. incrementing the number of packets of redundancy bits generated by said second correcting code until the simulated error rate, TEP S, is less than the target error rate, TEP C, - evaluating an item of information representative of the ratio between the number of bits at input of the medium access layer, MAC, and the number of bits actually transmitted for the set of solutions associating modulation, first and second correcting codes, - selecting, among the set of solutions associating modulation, first and second correcting codes, the solution which corresponds to the highest ratio.