Method for obtaining a set of compression rules for a data packet transmitted in a network

Reinforcement learning-based compression rule generation addresses inefficiencies in dynamic contexts by automatically adapting to network changes, enhancing data packet compression efficiency and reducing resource use.

US20260379901A1Pending Publication Date: 2026-11-26ORANGE SA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
US19/490611
Authority / Receiving Office
US · United States
Patent Type
Applications(United States)
Current Assignee / Owner
Priority Date
2023-06-09
Filing Date
2024-06-03
Publication Date
2026-11-26

AI Technical Summary

Technical Problem

Existing header compression protocols, such as SCHC, are inefficient in dynamic contexts and require manual rule creation for each context change, leading to increased energy and hardware consumption in networks like LPWANs.

Method used

A method using reinforcement learning to automatically generate compression rules based on packet traffic patterns, allowing rules to adapt dynamically and efficiently compress both header fields and payload sections.

Benefits of technology

Enables adaptive and efficient data packet compression without manual intervention, reducing resource consumption and facilitating deployment across various contexts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure US20260379901A1-D00000_ABST
    Figure US20260379901A1-D00000_ABST
Patent Text Reader

Abstract

A method for obtaining a set of compression rules able to compress a data packet transmitted in a network. The packet includes sections taking respective values expressed in the form of a bit string. The packet is able to be compressed by applying compression rules able to remove bits from a value taken by a section of the packet. The method includes, for several given sections of packets, obtaining a compression potential for a given section, relative to the values taken by the given section in the packets belonging to a set, called learning set, of data packets, followed by obtaining the set of compression rules as a function of the obtained compression potentials.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The technical field is that of compressing and decompressing data.

[0002] More specifically, the invention relates to a method for obtaining a set of compression rules able to compress a data packet transmitted in a network.

[0003] It will be seen hereafter that the set of compression rules obtained according to the method of the invention will be used during a phase of compressing a data packet transmitted in a network.

[0004] Modern digital telecommunications operate on the principle of exchanging data packets between transmitters and receivers according to protocols such as the Internet Protocol (IP). A set of data packets relating to a communication is sent by the transmitter to a receiver. The packets contain the address of the receiver so that they can be addressed thereto using different routing algorithms, and the content of the communication is reconstructed by the receiver by consolidating the data contained in the various packets. In order to achieve a complete communication, many protocols must be used, each of which fulfills a role ranging from physically sending bits, namely, the atomic elements forming the digital data, to interpreting data for computer applications. The bits are conventionally consolidated into bytes, sets of eight bits. The various protocols are conventionally seen as being organized in layers, with a protocol of one layer relying on a protocol of a lower layer. The OSI (Open Systems Interconnection) model and the Internet model describe the articulation of the various protocols between various layers.

[0005] For example, in a simplified version, the HTTP (Hypertext Transfer Protocol) protocol is an application layer protocol that allows data to be transferred to or from a website. The data to be transferred is organized into data packets. The HTTP protocol uses the Transmission Control Protocol (TCP), which belongs to the transport layer, for example, in order to request the transfer of data packets representing the content of a website to a user. The TCP protocol, for example, operates in three phases: establishing a connection, transferring data, and terminating the connection. The transport layer protocols will use a network layer protocol, in general the Internet Protocol (IP) in one of its IPv4 or IPv6 versions. This protocol is only interested in the transmission of data organized in packets from one address to another, without being concerned with establishing the connection or the order of arrival of the data packets forming a transmission, with these considerations being managed by the upper transport layer protocol. The IP protocol will use a link layer protocol, for example, the Ethernet protocol that will organize the sending of the elementary data forming the packet, with this elementary data being bits, transmitted using the physical layer, whether it is using a transmission via optical fiber, or via a wireless communication, as appropriate.

[0006] Other application layer protocols will use other lower layer protocols to perform their functions. For example, the Constrained Application Protocol (CoAP) used in the Internet of Things domain is generally based on the User Datagram Protocol (UDP) of the transport layer.

[0007] A common point for all the protocols on all the layers is the organization of the exchanged data into data packets. A data packet is organized in two parts: a first part is the header of the packet that consolidates the information necessary for the protocol that is responsible for processing the packet; a second part is the payload that consolidates the data conveyed in the packet itself. In terms of the link layer, a frame is referred to rather than a packet, and in addition to the header, there is a frame footer indicating the end of the frame.

[0008] The packet headers include fields. A field is a continuous set of bits of fixed or variable length. When a field is of variable length, mechanisms are used to know the length of the field that is actually transmitted. When the value in a fixed length field has a variable length, padding bits will complete the value up to the fixed length of the field. A field has an identifier that indicates the nature of the value that is present in the field. The values present in the field are used by the relevant protocol to appropriately process the packet. For example, in the header of an IP packet, a field with Version as an identifier will contain the version number of the protocol that is used. The size of this field is four bits. Other fields relate, for example, to the source and destination IP addresses of the packet. A header is therefore naturally divided into several sections, namely, the fields of the header. The packet payload also can also be divided into several sections, for example, by defining sections with a constant length expressed as a number of bits.

[0009] A packet analysis tool such as Wireshark or tcpdump allows data packets to be captured and analyzed. The analysis allows a data packet exchanged over a network to be separated between its header and the payload, and allows the information included in the header and the data included in the payload to be read and allows the various sections of a packet to be identified, both in its header and in its payload. By way of a reminder, following the encapsulation of data packets, the typical header of a packet will be made up of several concatenated headers, one for each encapsulated protocol. For example, an Ethernet frame encapsulating an IP packet will start with the IP header, followed by the UDP header. The fields of the IP packet therefore will be followed in the frame by the fields of the UDP packet.

[0010] All these elements are well known in the prior art and will not be described in further detail.PRIOR ART

[0011] There is a clear requirement for compressing the data exchanged in digital telecommunications in order to save the hardware and energy resources consumed by telecommunications networks as much as possible. This requirement explains the creation of protocols dedicated to compressing exchanged data packets.

[0012] The exchanged data packets are formed, as has been seen, on the one hand, by a header containing the information required for transmitting the packet and, on the other hand, by a payload comprising the data transmitted by the packet as such. The compression therefore can relate to the payload, or even to the headers of data packets. Since the values of some fields of the data packet headers will take constant or slightly varying values, it is possible to carry out very efficient compression of the data packets by seeking only to compress the values of the fields of the data packet headers.

[0013] A first example of a protocol compressing the values of the header fields of data packets is the ROHC (Robust Header Compression) protocol, which is defined by the IETF (Internet Engineering Task Force) standardization organization in RFC (Request for Comments, Internet-based specification documents) document number 3095. The basic idea of this protocol is that certain values of the header fields of packets forming the same communication will not change from one communication to another. For example, the values of the source and destination address fields will remain the same during a communication. After sending a first packet containing the values of these fields, these values will be deleted from the headers of subsequent packets in order to compress the packet header, and thus the packet itself, and will be inserted on reception since they are known after the first packet is sent. The deletion is performed by a compression module and the insertion of the value is performed by a decompression module. Other types of compression can be applied.

[0014] Thus, highly efficient compression of the data packets is achieved even if the compression is limited to the headers. The ROHC protocol is used, for example, in mobile telecommunications networks. However, it requires the construction of a context for each communication indicating which values can be compressed, and how they can be compressed. The transmitters and receivers therefore must regularly update the contexts used for compressing headers. This updating operation is very expensive and other mechanisms will be preferred in certain usage contexts.

[0015] The context of communication networks dedicated to connected objects imposes additional constraints. This refers to Low-Power Wide Area Networks, also known as LPWANs. In such a network, there are connected objects that need to save their electricity consumption as much as possible, such as meters deployed in places with no electrical power supply and that have to use a battery for several years. These objects communicate wirelessly with a gateway that covers a wide area. Updating the context for each communication would imply high bandwidth consumption, such that the ROHC header compression protocol is not suitable within this context.

[0016] In addition, the data exchanged by these objects is often very small, and can be limited to indicating that the object is still active, or the object even may wish to feedback a single value, such as a temperature for a thermometer, or a water level for a water meter. The size of the data packet headers in proportion to the payload size therefore will be proportionally larger within the context of LPWANs than in other contexts. Therefore, a requirement exists for efficient compression of the data packets that, in the context of LPWANs, will focus on compressing the values of the fields of the headers.

[0017] The SCHC (Static Context Header Compression) protocol, defined by the IETF in RFC 8724, was designed to be used within the context of LPWANs. It is based on a static context. For a given context, for example, a type of connected object deployed in a given network, compression rules will be defined. These rules consolidate operations that can be applied to the values of packet header fields. These operations can include three types of operations, all based on the idea that values of certain fields, or some of the values, can be deleted before transmission and then reconstructed on reception:

[0018] A first type of compression operation is deletion: the value of the field is read and will be deleted by the compression module if the value is the expected value. For example, the compression module is located in the connected object. The deleted value will be inserted on reception by the decompression module, which is located in the gateway and which has the same rules as the compression module. This type of operation is suitable for fields that take a constant value, such as the Version field of IP packets. If the field takes a different value than expected, the operation does not apply, the compression rule is ignored, and another rule may be used, or the field value even may be transmitted unchanged.

[0019] A second type of compression operation uses a dictionary: a dictionary is constructed for certain values of the field and if the value of the field is in the dictionary, the compression module will replace the value of the field with its index in the dictionary. The decompression module uses the dictionary to replace the index with the deleted value. Again, a field value outside the dictionary may be transmitted unchanged if no rules apply.

[0020] A third type of operation involves deleting the prefix: the value of the field is a bit string, and a fairly long prefix can be defined in a compression operation. If the value has this prefix, the prefix will be deleted on compression and inserted on decompression, or the value even will be transmitted unchanged if the prefix is not recognized by the operation.

[0021] For the sake of completeness, a fourth type of operation is defined that involves ignoring the value of the field and transmitting it as is.

[0022] Other combinations are possible, as well as other compression / decompression actions, for example, for processing variable length fields.

[0023] A set of compression rules then will be defined for a given deployment context. For example, compression rules (and their symmetrical decompression rules) can be defined for a gateway managing an LPWAN network and for all the equipment connected to this network and to the Internet through the gateway. The set of rules will then be able to process all the data packets exchanged in the LPWAN network by compression and decompression, with the compression being limited to the values of the header fields. The SCHC protocol is used to determine which compression rule applies when a data packet travels through the network.

[0024] To this end, each compression rule present in the set is defined for a given packet header format and will be made up of a set of operations to be applied to the values of the header fields of a packet that complies with the format. Multiple rules can cover the same data packet header format. For example, compression rules will be defined for the format of IP packets encapsulating a UDP packet, and these rules will include operations for all the fields in an IP packet header followed by a UDP packet header.

[0025] A compression rule forms part of a set of rules and has a rule identifier. The set of rules will seek to cover all the possible formats of data packet headers that can be exchanged in a given context.

[0026] The SCHC compression / decompression protocol is applied by a compression module that will process a packet before addressing it to a decompression module. The compression and decompression modules have the same set of rules, defined for a given context. When a data packet has to be processed by the compression module, the protocol will involve browsing the set of rules available to the compression module in order to retain one or more rules. If a rule does not match the format of the header fields of the processed packet, the rule is not retained. If the format of the fields matches, then the values of the fields need to be examined in order to determine whether they match all the matching operators provided in the rule. If this is not the case, the rule again is not retained. If no rules in the set match, the packet is sent without processing. In all cases, the payload of the packet is not processed by the SCHC protocol. Within the context of LPWANs, packet compression limited to compressing header field values will still be effective, because the size of the headers is proportionally large.

[0027] This demonstrates the benefit of the operation, which involves ignoring the value of the field and transmitting it as is. This operation ensures that a rule can actually be applied to all the fields of a given header: for fields that are easy to compress, an effective compression operation will be defined, and for the other fields the operation that does not do anything will act as a completion operation.

[0028] Finally, several rules can be adopted whereby the format of the fields, on the one hand, and the values of the fields, on the other hand, match. A rule is then selected, and only one, for example, the first one encountered in the set of rules, or is even selected randomly, for the choice of the implementation of the SCHC protocol. The operations anticipated in the rule are applied by the compression module to the values of the fields in the packet header. Then the packet is transmitted with its header values compressed, as well as with the identifier of the rule that was applied thereto. The decompression module receives the packet whose header values have been compressed, uses the rule identifier to find the operations that have been applied, and applies the symmetrical decompression operations. For example, if, for a value in a field, the compression operation used a dictionary, the decompression module will use the value of the transmitted index in order to replace it with the value provided in the dictionary.

[0029] As the identifier of the rule used for compression must be transmitted, as well as some values (index of the dictionaries), there will be a limit beyond which adding new compression rules in a given context will no longer be worthwhile because the possible gain provided by the additional rule is outweighed by the transmission cost induced by the increase in the size of the rule identifier as new rules are added. For example, beyond eight rules, the transmitted rule identifier will be coded on three bits instead of two. If adding a ninth rule on average saves only one bit, then adding this ninth rule is not worthwhile. The same is the case, if an added rule involves the use of additional bits for coding the dictionary indexes.

[0030] It is easy to see that the compression and decompression operations in the SCHC protocol can be lossless, i.e., decompressing the header of the data packet according to the operations provided in the SCHC protocol reconstructs the header exactly as it was before compression. This is the general case even though operating frameworks may exist where this is not the case.

[0031] The sets of compression rules are therefore defined, in the SCHC protocol, for a given static context and correspond to the formats of the packets expected in the exchanges between transmitters and receivers. They are defined by an expert who knows that, in a given deployment context, a given protocol will be used, according to a given encapsulation, and who therefore knows which formats of the packet headers are expected. The expert also knows that a given field of the packets complying with a given format will take a constant value, or even a value from among a set with a limited size, or even a value that will often have the same prefix. For example, the expert knows that the IP-version field that will appear in the headers of packets complying with several formats (IP alone, or IP encapsulating UDP packets, or the like, etc.) will be constant. Equally, the expert knows that the IP address values in a given field belong to a limited range and therefore will have a common prefix. This knowledge allows the expert to select the most appropriate operation for a given field in a given format and to integrate it into the rule. The expert therefore constructs a set of rules that will be deployed, for example, attached to compression and decompression modules embedded in a set of connected objects and a corresponding gateway, in order to implement the SCHC protocol.

[0032] The SCHC protocol was originally designed within the context of LPWANs, but it could be used in other contexts, such as home networks, or for compressing Ethernet frame headers. The compression operations of the SCHC protocol also could be applied to sections of the payload of a data packet, and not just to the header.

[0033] In the current situation, the deployment of the SCHC protocol is slowed down by the need to create new rules for each usage context. This situation means that easily accessible compression potentials are not used. This negatively affects the energy and hardware consumption of LPWANs networks or those of other networks in which header compression according to the SCHC protocol could be used.

[0034] Another limitation of the current situation is that the compression rules defined for a given deployment context will no longer work as well as this context changes. For example, if a connected object restarts, its network address may change or else the port numbers it uses, and the compression rules that were effective, may become ineffective. This is a point that introduces inefficiency in the compressions that can be achieved.

[0035] In addition, it is worthwhile using the compression operations defined by the SCHC protocol, which provide highly efficient compression, in a maximum number of contexts. For example, these compression operations should be able to be applied to sections of the packet payload, and not just header fields. However, there is currently no technical solution for applying the header compression principles defined in the SCHC protocol to a dynamic context, even if the latter is hardly dynamic. For example, if, within a deployment context, SCHC compression is applied to an IP address value, and this value changes even if it is at a very low frequency, the rule established in a static context becomes inoperative the first time the IP address is changed. Equally, if a given section of a load varies, even only slightly, the rules of the SCHC protocol will not apply.

[0036] The invention aims to improve the situation.DISCLOSURE OF THE INVENTION

[0037] According to a first functional aspect, the invention relates to a method for obtaining a set of rules for compressing a data packet transmitted in a network, the packet comprising sections taking respective values expressed in the form of bit strings, the packet being able to be compressed by applying compression rules able to remove bits from a value taken by a section of the packet, the method comprising, for several given sections of packets, obtaining a compression potential for a given section, relative to the values taken by the given section in the packets belonging to a set, called learning set, of data packets, followed by obtaining the set of compression rules as a function of the obtained compression potentials.

[0038] By virtue of the invention, a set of compression rules is automatically created that is relevant in terms of compression. The compression rules include compression operations that apply to values taken by sections of data packets. The compression rules of the obtained set can be applied to the data packets transmitted in the network in order to achieve effective and efficient compression of the transmitted data packets. The advantage of the invention is that the compression rules can change automatically when the transmission context changes and can remain efficient. This facilitates the deployment of compression protocols and their use in numerous contexts, including dynamic contexts.

[0039] In the invention, quantities referred to as compression potential quantities are obtained from a set of packets, called learning set. This learning set represents the expected traffic, which will have to be compressed by the set of obtained compression rules. It will be seen hereafter that obtaining compression potentials allows the most promising sections to be compressed in this representative set to be identified and thus allows the creation of compression rules to be guided. The obtaining of compression potentials is based on the frequencies of occurrence of different values in the learning set, which is a quantity that is easy to obtain even for very large learning sets.

[0040] According to one embodiment, the method further comprises applying at least one compression operation to a section value of said data packet, with said operation being included in a compression rule belonging to the set of obtained compression rules, followed by transmitting said data packet to which said at least one compression operation has been applied and data representing the compression rule to which said operation belongs.

[0041] By virtue of this embodiment, the obtained compression rules are applied to data packets and allow effective compressions to be performed. The data packets are compressed by applying compression operations that delete portions of values, or even complete values, taken by sections of the data packet. In order to reconstruct the portions of values deleted on reception of the compressed packet, said packet must be transmitted with data representing the compression rule that has been applied thereto.

[0042] According to one embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the section of the data packet taking the value to which a compression operation is applied is a field of a header of the data packet.

[0043] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the section of the data packet taking the value to which a compression operation is applied is a previously defined delimitation of the payload of the data packet.

[0044] These two embodiments allow the invention to be applied to all the values taken by the sections of the data packet, whether they are header fields or even previously delimited and defined parts of the payload of the packet. In this latter case, the fact that the delimitation is defined beforehand facilitates the application of the method. A given operation, found by virtue of the transmitted representative data, will, for example, apply to the first 256 bits of the payload, and the packet can be restored to the original by using the knowledge of this previous definition of the delimitation. Another previously defined delimitation can involve, for example, application to the entire payload of the packet, or even to the first or second half, or to any other proportion defined beforehand.

[0045] The fields of a header are themselves sections defined beforehand since the structure of the header, and therefore its delimitation into several fields, is defined by the protocol, or the stack of protocols, to which the transmitted data packet belongs.

[0046] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the data packet to which said at least one compression operation has been applied is jointly transmitted with the data representing the compression rule to which said compression operation belongs.

[0047] By virtue of this embodiment, the data packet is jointly transmitted with the data representing the compression rule that has been applied thereto. This joint transmission will facilitate the subsequent decompression operation that will be applied to the data packet, ensuring that, when a data packet is transmitted, it is transmitted with the information for knowing the compression operation that has been applied thereto.

[0048] According to another embodiment, which can be implemented alternatively or cumulatively with the previous embodiments, the transmitted data packet is formed by concatenating a datum representing a compression rule, with said datum being an identifier of the compression rule made up of a bit string, with the data packet to which at least one compression operation has been applied belonging to said compression rule that belongs to a set of compression rules obtained by learning.

[0049] By virtue of this embodiment, a precise format of the compressed data packet is defined that will facilitate the transmission thereof. The transmitted data packet is a new data packet formed by concatenating an identifier of the compression rule, namely, a bit string, with the original data packet to which the compression rule was applied. The compressed data packet is therefore jointly transmitted with an identifier of the compression rule that will allow it to be found from among the set of compression rules obtained by learning.

[0050] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, obtaining the set of compression rules comprises implementing a reinforcement learning algorithm.

[0051] Reinforcement learning, unlike supervised learning, does not require any expert intervention. The technical effect that is achieved is therefore that the compression rules can be obtained automatically in order to compress data packets transmitted in the network. A first advantage is that the compression rules can be obtained at low cost and quickly since they are obtained without involving an expert. Another advantage is that the compression rules can change automatically when the transmission context changes and remain efficient.

[0052] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the reinforcement learning algorithm implemented in obtaining the set of compression rules uses the learning set formed by previously collected data packets, implements an environment that includes the learning set and the set of compression rules, and the change of state in the reinforcement learning algorithm includes adding a new rule to the set of compression rules.

[0053] Since the invention in this embodiment relies on the use of a learning algorithm, the invention requires the use of a learning set that must be defined beforehand. This learning set is a set of data packets for which the learning algorithm will seek to produce a set of compression rules that compress it as well as possible. This learning set is the learning set that is used to obtain the compression potentials of a given section of a packet according to the values taken by the given section in the packets of the learning set. It is clear that the learning will be even more relevant as the learning set represents the expected traffic whose data packets must be compressed. If the learning set is too small, in particular, the learning will not be able to obtain an effective set of compression rules in all cases, because examples of traffic that could have been compressed are not present in the learning set. Reinforcement learning involves changing the set of compression rules that is learned, in an environment that includes the learning set that the set of compression rules must compress. This change is implemented by adding a new rule to the set of compression rules. The learning set, for its part, does not change during the learning phase.

[0054] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the reinforcement learning algorithm includes a reward function that is computed according to the compression of the packets of the learning set by the compression rules belonging to the set of compression rules.

[0055] It is worthwhile defining several parameters of the reinforcement learning algorithm in order to be able to execute said algorithm. Reinforcement learning involves changing a participant, in this case the set of compression rules that is learned, in an environment, in this case the meeting of the set of rules and the learning set, and guiding any changes to the participant through a reward function. The reward function is the compression performed by the set of compression rules on packets in the learning set. The better the compression performed by the set of rules, the better this set of rules and therefore the reinforcement learning will tend to produce a set of rules that produces better compression. As has already been seen, the change of state involves adding a rule to the set of rules; the reward function will sanction whether or not this addition of a rule is relevant and actually allows the set of compression rules to change toward better compression.

[0056] The advantage of this embodiment therefore involves specifying how to execute a reinforcement learning algorithm to learn a set of compression rules and how to select relevant reinforcement learning parameters in order to achieve good compression of the packets of the learning set by the set of rules resulting from the learning.

[0057] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, a set of compression rules is learned from an initial set made up of a single rule not performing any compression.

[0058] In this embodiment, the starting point is a set of rules formed by a single rule that applies to all the packets in the collected learning set. This set ensures that from the outset the set of rules will indeed apply to the entire learning set, even if the initial rule does not compress the values of sections of the packets of the learning set. In most embodiments of the present invention, the set of compression rules changes to ensure that, for all the packets in the learning set, there is a rule in the set of compression rules that can be applied, which is indeed the case with this single rule that does not perform any compression.

[0059] The advantage of this embodiment is that it does not require the intervention of any expert to define the initial set of compression rules submitted to the learning algorithm.

[0060] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, a set of compression rules is learned from an initial set comprising a compression rule supplied by an expert.

[0061] The advantage of this embodiment is that it allows an expert to ensure that a rule that to them seems to be very useful is present in the set of compression rules. This result is achieved by introducing it from the beginning of learning. The rest of the learning algorithm can be implemented by reinforcement, and therefore without further intervention by the expert. Therefore, in this case, a mixed embodiment is achieved where the intervention of the expert is limited.

[0062] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the management method comprises the following steps executed when obtaining the set of compression rules:

[0063] a step of selecting a rule belonging to the set of compression rules using at least one compression potential from among those that are obtained;

[0064] a step of creating a new rule from the selected rule using at least one compression potential from among those that are obtained;

[0065] adding the new rule to the set of compression rules;and, in addition, said steps are iterated, until a stop criterion is met, by using, during the next iteration, the set of rules modified by adding the new rule.

[0066] By virtue of this embodiment, the obtaining of a set of compression rules is efficiently guided. Indeed, the obtaining can occur by randomly changing states that may or may not be retained according to a reward function. This could, on the one hand, take a long time and, on the other hand, could result in sets of compression rules with too many rules if the most effective rules are not created first. However, it has been seen that if too many compression rules are created, this becomes an obstacle to efficient compression because the index of the rule used during a compression must be transmitted with the compressed packet. Too many rules implies an index coded on a large number of bits that makes compression inefficient.

[0067] The obtaining of compression rules therefore needs to be guided. To this end, the obtained compression potentials will first indicate which rule is selected to create a new rule and then how to create a new rule from the selected rule.

[0068] The obtaining works by iterating until a stop criterion is met, and the iteration involves applying the same algorithm to an environment formed by the new set of compression rules (with a new rule added) and the learning set. To ensure that the obtaining takes into account the addition of the new rule, then during the next iteration it may be worthwhile computing compression potentials that take into account the addition of the new rule. This can be carried out by isolating, in the learning set, the subsets of packets for which the different rules apply. In this embodiment, the values compressed by the new rule will not be taken into account in the computations of compression potentials. Compression potentials will only be computed for values that are not compressed in the current state of the set of compression rules that is being obtained.

[0069] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, if the added rule applies to all the data packets of the learning set to which the selected rule applies, then the selected rule is removed from the set of compression rules.

[0070] Advantageously, the addition of the new rule ensures that the set of rules that is being obtained will indeed apply to all the packets of the learning set. For this reason, in this embodiment, if the added rule does not cover all the packets covered by the selected rule from which the added rule was created, then the selected rule is retained. Since the obtaining algorithm can start, in some embodiments, from a set comprising an initial rule applicable to all the packets, it is then certain that ultimately there will be a set of rules applicable to all the packets of the learning set. However, removing the selected rule if the added rule covers the same packets ensures that unnecessary rules are not retained and thus minimizes the size of the set of compression rules resulting from the learning algorithm.

[0071] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the stop criterion is met when the compression achieved on the learning set by the modified set of compression rules is less than or equal to the compression achieved by the preceding set of rules.

[0072] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the stop criterion is met when the set of rules reaches a predetermined size expressed in terms of the number of rules or in terms of the number of compression operations included in the rules.

[0073] These two embodiments offer the advantage of proposing a stop criterion that is easy to compute. In the first embodiment, the compression performed by the set of rules on the learning set is computed and the obtaining stops when the compression no longer progresses. This will happen, for example, when all the values of the sections of the packets of the learning set are compressed. In this case, it is no longer possible to add a compression operation. The compression performed by the new set can be lower than the compression performed by the previous set because the fact that the compression rules must be identified must be taken into account, as does the fact that the size of the index of the added rule can be greater than the compression performed by this rule. In the second embodiment, an absolute size criterion of the set of compression rules is used, either in terms of the number of rules or in terms of the number of operations. This embodiment ensures that the size of the set of obtained rules always remains below a certain size, which is advantageous in a context where the intention is to save resources and to ensure that the indexes of compression rules can be coded with a limited number of bits (from two to four, for example). This embodiment is particularly advantageous when the set of compression rules obtained by the method is used by equipment with limited memory capacities, which can only store a limited number of compression rules for transmitted or received data. The two embodiments can be combined, that is, the learning continues as long as the compression performed by the set of rules progresses unless a predefined maximum size is reached.

[0074] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, one of the obtained compression potentials is called field compression potential and is computed for a given section of fixed length according to the formula N(L−H), where N is the number of times the section appears in the learning set, L is the length of the section expressed in bits and H is a quantity, called field entropy estimator quantity, that is computed according to the formula H=−Σi∈[1,K]fi log2(fi), where K is the number of different values Vi∈[1,K] taken by the section in the learning set and fi is the frequency of occurrence of the value Vi.

[0075] In numerous embodiments, the sections for the values for which the obtaining algorithm seeks to produce compression operations belonging to rules are header fields. This explains the choice of the terms “field compression potential” and “field entropy estimator”. However, the embodiment equally can be applied to header fields as well as delimited sections in the payload of a data packet.

[0076] The computation formula in this embodiment applies to a section whose length L, expressed in bits, is constant for all the values taken by the section in the learning set. It will be seen hereafter that another embodiment can be applied to sections of variable size.

[0077] By virtue of this embodiment, the field compression potential is computed for a given section, in order to detect which section is most worthwhile compressing and thus guide the obtaining algorithm.

[0078] To this end, a quantity is used that estimates the entropy present in a delimited section of the payloads of the packets of the learning set or in a given field of the headers of the packets of the learning set, which is generally referred to as section. By way of a reminder, an entropy (in the sense of information theory) is computed based on probabilities. In this case, a learning set is available, and therefore observed values are available. For this reason an entropy estimator is computed, and not an entropy strictly speaking, from the frequencies of occurrence fi of the values Vi taken by the considered section. These frequencies are strictly positive and less than or equal to 1 by definition. The logarithms of the frequencies are taken to base 2 in order to apply to values expressed in bits. The logarithms are necessarily negative or zero since the frequencies are 1 at most. Any negations make the entropy estimator necessarily positive.

[0079] The entropy estimator therefore can be at least zero. This is the case when the given section has a single value in the learning set. The frequency of occurrence of this unique value therefore equals 1, and the logarithm equals 0.

[0080] Moreover, the entropy estimator will always be less than the length of the section expressed in bits. If a delimited section, or a field, takes a large number of different values, and therefore its entropy estimator increases, then the length of the section expressed in bits that is necessary for coding this large number of different values will also increase and will always remain greater than the entropy estimator.

[0081] The quantity, called field compression potential quantity, is therefore always positive and will be maximal for a given section when its entropy estimator is zero. This happens when the section takes a unique value in the learning set and it is easy to understand that a section that takes a unique value will be easy to compress. This value simply needs to be deleted! The field compression potential decreases as the entropy estimator increases.

[0082] If a section with a zero entropy estimator appears only a few times in the learning set, or even if the section is short, another section with a higher entropy estimator but that appears more often, or that is longer, may be more worthwhile compressing than the section with the zero entropy estimator. For this reason, the compression potential of the field takes into account the number of times the section appears, as well as its length.

[0083] The field compression potential therefore allows the obtaining algorithm to be effectively guided by indicating the sections of the learning set whose compression will yield the most according to the reward function that is provided by the completed compression, said sections can be packet header fields or delimited sections of the payload of the packets.

[0084] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the field compression potential is computed for a given section of variable length according to the formula∑ i=1K⁢Ni·(Li-Hi),where K is the number of different values Vi∈[1,K] taken by the section in the learning set, Ni is the number of times that the section takes the value Vi in the learning set, Li is the length of the value Vi expressed in bits and Hi is a quantity, called partial entropy estimator quantity, of a value, which is computed for the value Vi according to the formula Hi=−fi log2(fi), where fi is the frequency of occurrence of the value Vi in the learning set.By virtue of this embodiment, the field compression potential can be computed for a section of variable length. Several elements therefore will be taken into account in this computation. A value that appears frequently, but is short, may contribute less to the field compression potential than a value that appears less frequently but is longer. This embodiment therefore allows a precise computation to be performed of the field compression potential even for a section of variable length. It should be noted that the formula used in this embodiment yields the same results as the formula provided above in the case whereby the section has a constant length L for all the values taken by the section.

[0086] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the field compression potential is computed according to the formulaN⁢LH+a,where α is a strictly positive constant.This embodiment provides a variant for obtaining a field compression potential. In this formula, the potential is indeed maximal when the entropy estimator is zero. The positive constant ensures the definition of the field compression potential in this case. This variant is adapted to the case whereby the section is of fixed length.

[0088] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the field compression potential is computed according to the formula∑ i=1K⁢Ni⁢LiHi+a,where α is a strictly positive constant.This embodiment repeats the previous variant but adapts it to the case whereby the section is of variable length.

[0090] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the field compression potential is called corrected compression potential and is computed for a given section by multiplying the field compression potential by a correction factorα⁡(1-K-βN+γ),where N is the number of times that the section appears in the learning set, K is the number of different values taken by the section in the learning set, and α, β and γ are selected positive coefficients.From experience, the field compression potential allows the obtaining algorithm to be guided but has the following fault: when a section has different values that are distributed uniformly, the entropy estimator increases too slowly as new values are observed in the learning set. Provided it is very long, a section that has values that are different each time in the learning set may have better potential for field compression than a section with few values but that is smaller. However, during use, it is actually this section with few values that one or more compression rules are to be created for that will apply to the few observed values. While the very long section with observed values that are all different will be of little interest because it is likely that during use the values that will appear in this section will still be new values, and so will be values that will not be compressed by the compression rules learned on a learning set where they do not appear.

[0092] It is in order to correct this fault that a correction factor is introduced that allows a corrected compression potential to be obtained. The coefficients α, β and γ are preferably positive to ensure that the correction factor causes the compression potential to change in the desired direction. The idea is that a section exhibiting values that are all different should be disfavored compared to a section that has an observation that seems less random.

[0093] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the positive coefficients α, β and γ are selected so as to take constant values. According to a particular embodiment of this latter embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the positive coefficients α, β and γ take the values α=1, β=0 and γ=0.

[0094] By virtue of this latter embodiment, the correction factor takes the value1-KNand is therefore zero when all the values of the section are different and when K=N. Such an observation in the learning set of a section where all the values are different strongly indicates that the values outside the learning set also will be different, and that such a section cannot be compressed effectively. The correction factor will then cancel out the field compression potential for this section. When a section takes a single value, the correction factor equals1-1Nand the corrected correction potential is therefore decreased with respect to the initial value of the field correction potential, but ultimately is only slightly decreased.Of course, other constant values can be taken in order to refine the correction made by the correction factor.According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the positive coefficients α, β and γ take the values α=1, β=1 and γ=0.By virtue of this latter embodiment, the correction factor takes the value1-K-1Nand is therefore exactly 1 when the section takes a single value, i.e., for K=1. By contrast, the correction factor does not cancel out when K=N, which can be beneficial for retaining a non-zero field compression potential even on a section that still seems to be very random since all the values taken by the section in the learning set are different. Thus, since the field compression potential is non-zero, the obtaining algorithm in certain contexts can add one or more compression rules relating to the section.According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the positive coefficients α, β and γ are selected as a function of K and N.This embodiment allows other values of the correction factor to be retained in order to refine its selection according to the sizes of the samples observed in the learning set. For example, taking α=1, β=0.5K and γ=N, a correction factor is obtained that equals1-0.5⁢K2⁢Nand has a differentiated influence depending on the sample size of the observed values for the section for which the corrected compression potential is computed.According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, one of the obtained compression potentials is called compression potential of values and is computed for a value Vi of a given section according to the formula N(L−Hi), where N is the number of times the value Vi appears in the learning set, L is the length of the value Vi in bits, and Hi is a quantity, called partial entropy estimator quantity, of a value that is computed according to the formula Hi=−fi log2(fi), where fi is the frequency of occurrence of the value Vi.This embodiment constructs, according to the same model as that seen above for the field compression potential, and using the same quantities, a compression potential adapted to the values taken by a given section in the learning set, knowing that a section can be a field of a packet header or a delimited section of a packet payload.

[0102] It should be noted that this compression potential of values is expressed according to the length of the value and is therefore adapted to a section of variable length. A value with a short length but which appears frequently can have a compression potential that is greater than a longer value but that appears less frequently. This potential will also guide the creation of compression rules by indicating the values that are to be compressed as a priority. Therefore, it will not necessarily be the value that appears most frequently since, in the case of a section of variable length, the effective length of the value taken by the section is taken into account and can compensate for a lower frequency of occurrence.

[0103] As seen above, the frequency of occurrence of a value is strictly positive and equals 1 at most. The partial entropy estimator of a value therefore will also be positive and will equal 0 for a value that would be the unique value taken by a section in the learning set and which would then have a frequency of occurrence that would be equal to 1. The partial entropy estimator of a value will always be strictly less than 1. The compression potential of a value therefore will always be positive and will be maximal for a value that would be the unique value observed for a given section and will be minimal for the value that is observed least often in this section in the learning set.

[0104] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the compression potential of values is computed according to the formulaN⁢LHi+a,where α is a strictly positive constant.By virtue of this embodiment, an alternative formula is provided for computing a compression potential of values.

[0106] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, one of the obtained compression potentials is called field bit compression potential and is computed for a rank i of a given section, with the ranks i varying from 0 to L−1, with L being the minimum length of the values taken by the section in the learning set, said length L being expressed as a number of bits, and said quantity is computed according to the formula 1−H(bi), where H(bi) is a quantity, called entropy estimator quantity, of a field bit that is computed according to the formula H(bi)=−(fi·log2(fi)+(1−fi)·log2(1−fi)), with said formula by convention being equal to 0 when fi equals 0 or 1, in which formula the values taken by the section in the learning set are expressed in sequences of ordered bits and where fi is the frequency of occurrence of one of the values 0 or 1 for the bit of rank i from among the values taken by the section in the learning set.

[0107] This embodiment constructs, according to the models seen above, a compression potential in order to measure the compression potential of the bits of a section in a given rank. As with the potentials that have already been seen, this quantity is computed for a section that can be a header field or a delimited payload section, and the term “field bit compression potential” is retained because in many embodiments it is used to apply to a header field.

[0108] Again, the principle in this case is to record the frequencies of occurrence, in this case the frequencies of the values of bits 0 or 1 for a given rank of the section. If this frequency is 1, it means that, for a given rank, it is always the same bit value that appears, and the entropy estimator will then be minimal and equal to 0 by convention. The field bit compression potential for this rank will then equal 1, and this is the maximum value that this quantity can take. For a frequency of 0.5, the logarithm to base 2 is −1 and the entropy estimator equals 1, which yields a field bit compression potential for this rank that will equal 0, which is the minimum value that this quantity can take.

[0109] For frequencies of 0.25 and 0.75 for a given rank, the logarithms to base 2 respectively equal −2 and −0.415. The field bit entropy estimator is then equal to −(0.25·(−2)+0.75·(−0.415))=−(−0.5−0.31125)=0.81125 and the field bit compression potential is then equal to 0.18875, well between 0 and 1.

[0110] Again, it is possible to see how the compression potential, in this case for the ranks of the sections whose values are expressed in bit strings, will allow the learning algorithm to be guided by indicating the most worthwhile values to be compressed, in this case by taking into account the representation of the values in the form of a bit string.

[0111] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the step of selecting a rule belonging to the set of compression rules comprises partitioning the learning set into subsets assigned to a rule of the set of compression rules, computing a compression potential for the rules of the set of compression rules and selecting the rule according to its compression potential, with the compression potential of a rule being computed based on field compression potentials computed on the subset of the learning set assigned to the compression rule.

[0112] By virtue of this embodiment, the field compression potentials are used to select a rule from among the set of compression rules that is being obtained. The learning set is partitioned by assigning a given rule the subset for which the rule performs the best compression. The field compression potentials are computed for the fields not compressed by the relevant rule and then added for all the packets of the learning set. In this way, with all other things being equal, the obtaining will seek to improve a rule that applies to more headers than another and will also avoid recreating rules already created.

[0113] Since the starting point of the obtaining algorithm is a set formed by a single rule that applies to all the values (by ignoring them) and does not compress, this rule will be initially selected during the first iteration of the algorithm. A rule then will be created from this initial rule, which will, for example, delete a value that frequently occurs for a field. The created rule therefore will be the one that performs the best compression for the packets with this value, since it deletes it, while the initial rule does not do anything. The compression potential of the rule is then computed by taking into account the deletion performed for this value. The initial rule, which does not do anything, can be selected subsequently because it has a certain compression potential for packets that do not have the value deleted by the created rule.

[0114] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the computation of a compression potential for a rule is carried out by adding the field compression potentials for the remaining sections of the identified subset.

[0115] By virtue of this embodiment, all the compression potentials still to be exploited are taken into account since it is their sum that indicates which rule will be the most worthwhile selecting.

[0116] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the computation of a compression potential for a rule is carried out by retaining the maximum of the field compression potentials for the remaining sections of the identified subset.

[0117] In this embodiment, rather than adding the field compression potentials, the rule with a maximum is retained. This computation variant can be more efficient for a computation operation, and can be faster, while properly guiding the obtaining algorithm.

[0118] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the step of selecting a rule belonging to the set of compression rules is carried out by randomly drawing a rule from among the set of compression rules.

[0119] This embodiment provides an alternative to the embodiment that involves computing a compression potential for each rule. The advantage of this embodiment is that it proposes an alternative that is simpler to implement.

[0120] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the step of creating a new rule from the selected rule is carried out by creating one or more candidate rules and by retaining a rule from among the candidate rules created according to the efficiency of the compression performed by this rule on packets of the learning set.

[0121] By virtue of this last embodiment, the obtaining is properly guided by a reward function related to the compression performed by the set of compression rules that is being obtained. A rule is selected, from which one or more candidate rules will be created, and the rule that performs the most efficient compression is added to the set of compression rules. One possibility is to apply the already existing compression rules to the packets of the learning set before evaluating the completed compression. This helps to advance the obtaining of the set of compression rules by being guided by a reward to improve compression, and by avoiding falling back on creating the same rules by applying the compressions of the selected rule before evaluating the compression of the candidate rules.

[0122] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the step of creating a new rule from the selected rule is carried out by selecting a section according to its field compression potential and by creating candidate rules formed by adding a compression operation to the selected rule that applies to the values taken by the section.

[0123] By virtue of this embodiment, an obtaining algorithm is defined, which allows compression rules to be created from a selected rule while being guided by the compression potentials. Once the rule is selected, one or more candidate rules is / are created, firstly by selecting a section according to its field compression potential and then by adding a compression operation to the selected rule that applies to the values taken by the relevant section. A compression operation involves deleting an entire value or a portion of a section when the section takes a value specified in the operation. The deleted value can be replaced by a dictionary index. Knowing the compression rule that is applied may allow the one or more values (or portions of values) deleted by the one or more operations included in the applied compression rule to be reconstructed. The most efficient rule from among the candidate rules will be retained.

[0124] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, a compression operation added to the selected rule is an operation for deleting a value, with the value being selected according to the compression potentials of values for the values taken by the selected section.

[0125] By virtue of this embodiment, a first candidate rule is created, which adds a highly efficient compression operation, namely, the deletion of a value. The value is selected by virtue of the compression potentials of values, which as has been seen take into account the potentially variable length of the values taken by the section.

[0126] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, a compression operation added to the selected rule is an operation for replacing a value taken by the selected section with an index of a dictionary in which, if the selected rule already includes, for the selected section, an operation for replacing the value with an index of a dictionary, the value with the highest compression potential of values is added to the dictionary; otherwise, a dictionary is created that includes the two values with the highest compression potential of values.

[0127] By virtue of this embodiment, another kind of candidate rule is created, or improved, which involves replacing a value with a dictionary index. While the operation for deleting a value is efficient in a context where α section very frequently takes a given value, the operation involving replacing with a dictionary index can be more efficient for values whose frequency of occurrence is more distributed.

[0128] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, a compression operation added to the selected rule is an operation for deleting a prefix up to a rank i, with the rank i being determined by multiplying together the field bit compression potentials of the selected section starting from rank 0 to the maximum rank, until the product is below a given threshold, for example, as soon as the product becomes strictly less than 1.

[0129] By virtue of this embodiment, another kind of candidate rule is created that involves deleting the prefixes of the values taken by a given section. The field bit compression potentials allow the prefixes common to many values to be detected.

[0130] By virtue of all these embodiments, an obtaining algorithm is defined, which allows compression rules to be created from a selected rule while being guided by the compression potentials. The algorithm can create candidate rules during each step, with each rule being able to correspond to a compression operation from among the main operations defined by the SCHC protocol.

[0131] In order to create the candidate rules, the obtaining algorithm begins by selecting the section with the strongest field compression potential. The created candidate rules will apply to one or more values in this section.

[0132] A first candidate rule involves adding an operation for deleting a value to the selected rule. The deleted value is simply the one with the highest compression potential of values, which is not necessarily the most common value in the case of a section of variable length.

[0133] A second rule involves adding an operation for replacing a value with an index of a dictionary to the selected rule. If the selected rule already includes an operation for replacing a dictionary index for this section, the modification will involve adding a new reference to the dictionary for the value with the highest compression potential. Otherwise, the modification will create an operation of the type for replacing a dictionary index, and since this operation only makes sense for at least two values, the created dictionary will include the two values with the highest compression potentials of values.

[0134] Finally, a third rule involves adding an operation for deleting a bit prefix. In order to define the rule, it is important to decide up to which rank the bit prefix is to be deleted. To this end, the compression potentials of field bits are used. If a bit compression potential equals 1 for a given rank, this means that the values for this rank all have the same bit 0 or 1. Starting from the first rank, and multiplying the bit compression potentials with each other, it will decrease and the algorithm involves deciding to stop when a given threshold is exceeded by the product. If the values for the first two ranks, for example, all have the same bit, the product of the bit compression potentials will be equal to 1. If the next rank has a frequency of 0.5 for bits 0 and 1, the bit compression potential for this rank equals zero, and the product will cancel out. Therefore, the passage of the product below a threshold is obvious, and the created rule will definitely delete the prefix for the first two ranks and not for the third. By deciding that the product must remain at least equal to one, the algorithm will only create candidate prefix deletion rules for prefixes that actually take the same value expressed in bit strings up to the rank for which the product equals less than 1.

[0135] The advantage of this latter embodiment, compared to an embodiment where, for example, the candidate rules would be created at random, is to ensure that the compression potentials properly guide the creation of new rules. In this way, the set of compression rules will be of limited size because the most efficient compression rules will be created first in order to be added to the set of compression rules.

[0136] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, a predefined order is applied allowing the candidate rule to be selected that is to be added in the event of equality between the compressions performed by candidate rules.

[0137] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the predefined order for selecting the candidate rule involves favoring the candidate rule deleting a value, then the candidate rule replacing with a dictionary index, then the candidate rule deleting a prefix.

[0138] By virtue of these embodiments, a predefined order ensures that a choice definitely will be made between the candidate rules in case of equality in the compression performed by these rules.

[0139] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the candidate rules are created by adding or randomly modifying a compression operation to the selected rule.

[0140] By virtue of this embodiment, a variant of the algorithm is proposed that does not use guidance by the compression potentials. An obtaining algorithm can also work by using random state changes, and it is the reward function that will ensure that the obtaining properly progresses toward an acceptable result. The advantage of this embodiment is that it proposes a variant that is simpler to implement.

[0141] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the learning set is separated into several subsets of data packets, with the packets consolidated in a subset all having the same header format corresponding to a stack of protocols, and characterized in that the obtaining of a set of compression rules is applied separately to the subsets of the learning set before consolidating the sets of rules obtained for the subsets into a single set of rules.

[0142] By virtue of this embodiment, the obtaining algorithm can be used on a learning set formed by several distinct subsets, each corresponding to packets having a given header format, with this format itself corresponding to a given stack of protocols. The obtaining is then achieved for a given format of headers, then the various sets of compression rules are combined into one. This provides an efficient way of covering a context for deploying compression rules that apply to packets of multiple protocols.

[0143] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the compression rules of the set of obtained compression rules and the compression operations included in said compression rules are compression rules and operations as defined in the SCHC protocol.

[0144] By virtue of this embodiment, the objective of proposing a technique for automatically learning compression rules for the SCHC protocol is indeed met. The technical problem of having means for deploying the SCHC protocol without asking an expert to define the compression rules is indeed solved.

[0145] According to another functional aspect, the invention relates to a method for managing the transmission of a data packet in a network, with the packet comprising sections taking respective values, characterized in that it comprises the following steps:

[0146] previously obtaining a set of compression rules including compression operations that can be applied to the values taken by the sections of said data packet;

[0147] applying at least one compression operation to a section value of said data packet, with said operation being included in a compression rule belonging to said set of obtained compression rules;

[0148] transmitting said data packet and a datum representing the compression rule to which said operation belongs;

[0149] receiving said data packet and said representative datum;

[0150] applying, to said data packet, at least one symmetrical decompression operation of the at least one compression operation applied to a section value of said data packet.

[0151] By virtue of this aspect of the invention, a complete transmission of the data packet is achieved, by transmitting the compressed data packet. Obtaining compression rules allows the method to become automatic, without expert intervention. The transmission of the data representing the compression rule that has been applied to the transmitted packet allows this rule to be retrieved and therefore allows the compression operations included in the rule to be retrieved, and the original packet to be restored by applying the symmetrical decompression operations.

[0152] A compressed packet therefore has been transmitted instead of the original packet, which yields significant savings in terms of hardware and energy resources. Since the compression rules are obtained automatically, there is no need to involve an expert, which makes it very easy to deploy the efficient transmission according to the invention.

[0153] According to one embodiment, which can be implemented alternatively or cumulatively with the preceding embodiment, the method further comprises a prior step of collecting packets from the network that are transmitted so as to form a learning set used during the step of obtaining a set of compression rules and a step of synchronized deployment of the set of obtained compression rules in the nodes of the network.

[0154] By virtue of this embodiment, packets are transmitted in the network by taking into account the packets that are actually transmitted.

[0155] Previously obtaining the set of compression rules generally uses a learning set. This can be provided by an expert, or even can be generated automatically according to predefined constraints. However, the preferred embodiment is the embodiment whereby the learning set is collected from among the packets transmitted in the network. The obtaining then occurs with a learning set directly representing packet traffic in the network and the obtained compression rules therefore will be much more suitable. Once the set of compression rules is obtained, it must be deployed in the nodes of the network in a synchronized manner so that a node that receives a compressed packet, and the datum representing the compression rule that is used, can retrieve this rule and apply the symmetrical decompression operation.

[0156] Moreover, by virtue of this embodiment, the method can be implemented permanently. The collection of data packets used for forming the learning set is permanent and allows changes of context to be captured in the current transmission of packets. A first set of compression rules may already be deployed and, if the context changes, for example, if the IP addresses of the nodes of the network change, the compression rules become ineffective. However, the collected packets allow the obtaining of compression rules to be restarted with a new learning set, and the deployment of a new set of compression rules then means that it is possible to adapt to the new context, and for efficient compressions to be carried out once again. The deployment must be synchronized to ensure that the node receiving a compressed packet is familiar with the compression rule that was applied so that it can perform the symmetrical decompression operation in order to restore the data packet.

[0157] According to another embodiment, which can be implemented alternatively or cumulatively with the preceding embodiments, the compression rules of the set of obtained compression rules, the compression operations included in said compression rules, and the symmetrical decompression operations are compression and decompression rules and operations as defined in the SCHC protocol.

[0158] By virtue of this embodiment, the SCHC protocol can be deployed in dynamic contexts. The sets of compression rules will be updated as they are obtained using new learning sets representing the traffic between the various points of a network, and changes in the packet headers that are actually circulating. The SCHC protocol is therefore now able to be applied to dynamic contexts by using reinforcement learning to create the sets of compression rules.

[0159] According to a first hardware aspect, the invention relates to an entity for managing the obtaining of a set of compression rules able to compress a data packet transmitted in a network, with the packet comprising sections taking respective values expressed in the form of a bit string, the packet being able to be compressed by applying compression rules able to remove bits from a value taken by a section of the packet, characterized in that the management entity comprises the following modules:

[0160] a module for obtaining a compression potential for a given section, relative to the values taken by the given section in the packets belonging to a set, called learning set, of data packets;

[0161] a module for obtaining the set of compression rules as a function of the obtained compression potentials.

[0162] According to another hardware aspect, the invention relates to a data packet formed by concatenating a datum representing a compression rule, with said datum being an identifier of the compression rule made up of a bit string, with a data packet to which at least one compression operation has been applied belonging to said compression rule that belongs to a set of compression rules obtained by the method.

[0163] According to another hardware aspect, the invention relates to network equipment comprising an entity for managing the obtaining of a set of compression rules according to the invention.

[0164] According to another hardware aspect, the invention relates to a system for managing the transmission of a data packet in a network, with the packet comprising sections taking respective values, characterized in that the system comprises the following modules:

[0165] a module for previously obtaining a set of compression rules including compression operations that can be applied to the values taken by the sections of a data packet;

[0166] a module for applying at least one compression operation to a section value of a data packet, with said operation being included in a compression rule belonging to a set of obtained compression rules;

[0167] a module for transmitting a data packet to which a compression operation has been applied and a datum representing a compression rule to which said compression operation belongs;

[0168] a module for receiving a data packet and a datum representing a compression rule;

[0169] a module for applying, to a data packet, a symmetrical decompression operation of a compression operation applied to a section value of said data packet.

[0170] According to one embodiment, the transmission management system further comprises:

[0171] a module for collecting data packets from the network that are transmitted so as to form a learning set used by a module for obtaining a set of compression rules;

[0172] a module for the synchronized deployment of a set of obtained compression rules in the nodes of the network.

[0173] Finally, according to another hardware aspect, the invention relates to data media storing computer programs comprising sequences of instructions for implementing the methods defined above.

[0174] The data media can be any entity or device capable of storing the programs. For example, the media can comprise a storage means, such as a ROM, for example, a CD-ROM or a microelectronic circuit ROM, or even a magnetic storage means, such as a hard disk. Moreover, the media can be transmissible media such as an electrical or optical signal, which can be routed via an electrical or optical cable, by radio or by other means. The programs according to the invention particularly can be downloaded from the Internet.

[0175] Alternatively, the information medium can be an integrated circuit incorporating the program, with the circuit being designed to execute or to be used to execute the method in question.BRIEF DESCRIPTION OF THE FIGURES

[0176] The invention will be better understood upon reading the following description, which is provided by way of an example, and with reference to the appended drawings, in which:

[0177] FIG. 1 shows an entity for obtaining a set of compression rules, as well as an entity for managing the compression of a data packet transmitted in a network and an entity for managing the decompression of a data packet;

[0178] FIG. 2 shows an example of obtaining a set of compression rules by implementing a learning algorithm; FIG. 2 is subdivided into four sub-FIGS. 2.A, 2.B, 2.C and 2.D, corresponding to four learning steps;

[0179] FIG. 3 shows an example of computing field compression potentials explaining the benefit of using a corrected field compression potential;

[0180] FIG. 4 shows an example of computing compression potentials of values explaining the difference between a compression potential of a value and its frequency of occurrence;

[0181] FIG. 5 shows an example of a data packet transmission system according to the invention, showing the deployment of such a system in a network comprising a gateway and two terminals;

[0182] FIG. 6 shows another example of a data packet transmission system according to the invention, showing the deployment of such a system in a network comprising two routers.DETAILED DESCRIPTION

[0183] FIG. 1 shows an entity 300 for obtaining a set RS of compression rules, as well as an entity 100 for managing the compression of a data packet P transmitted in a network NET and an entity 200 for managing the decompression of a data packet P.

[0184] The entity 300 for obtaining a set RS of compression rules comprises a module 301 for obtaining a compression potential PC relative to the values taken by the sections of data packets belonging to a set E, called learning set, of data packets, as well as a module APP for obtaining the set RS of compression rules as a function of the obtained compression potentials PC.

[0185] In some embodiments, the module APP implements a learning algorithm in order to obtain the set RS of compression rules. The examples shown in FIG. 1 and the following figures correspond to these embodiments in which a learning algorithm is implemented. In these embodiments, the learning algorithm uses a learning set.

[0186] In addition to the obtaining entity 300, FIG. 1 describes two entities 100, 200 for managing the compression and the decompression, respectively, of a data packet P in order to illustrate the use of the set RS of compression rules obtained by implementing the method by the obtaining entity 300.

[0187] The two entities 100, 200 for managing compression and decompression, respectively, belong to the same network NET, which is a communication network using data packet P transmission protocols. In the embodiment described in FIG. 1, the obtaining entity 300 belongs to the same network NET, but in other embodiments the obtaining entity 300 can belong to different networks or even can be isolated from the network NET. The set RS of compression rules obtained by the obtaining entity 300 can be deployed in the entities 100, 200 for managing compression and decompression, respectively, by any means. The data packet P comprises sections taking respective values. The two entities 100, 200 for managing compression and decompression, respectively, have the same set RS of compression rules, with this set comprising compression rules that themselves include compression operations that apply to values taken by the sections of a data packet P. The set RS of compression rules has been obtained by the entity 300 implementing an obtaining algorithm.

[0188] The compression management entity 100 comprises a module 101 for applying at least one compression operation to a section value of a data packet P, with said operation being included in a compression rule belonging to a set RS of compression rules, with said set RS being obtained by learning.

[0189] The compression management entity 100 comprises a module 102 for transmitting a data packet P to which at least one compression operation has been applied and a datum representing the compression rule to which said operation belongs.

[0190] The decompression management entity 200 comprises a module 201 for receiving a data packet P to which at least one compression operation has been applied to a section value of said packet P, with said operation being included in a compression rule belonging to a set RS of compression rules, with said set RS being obtained by learning, and a datum representing the compression rule to which said operation belongs.

[0191] The decompression management entity 200 comprises a module 202 for applying, to a data packet P, at least one symmetrical decompression operation of a compression operation applied to a section value of said packet P.

[0192] The transmission of the data packet P by the module 102, and the reception of the same packet P by the module 201, is shown by an arrow connecting the module 102 to the module 201, labeled by the packet P. The transmission and the reception of the datum representing the compression rule applied to the packet P are not shown in FIG. 1. In some embodiments, the data packet P and the representative datum are jointly transmitted and received.

[0193] Since the compression management entity 100 and the decompression management entity 200 have the same set RS of obtained compression rules, the decompression management entity 200 can use the datum representing the compression rule applied to the packet P in order to retrieve it. It is then easy to determine the symmetrical decompression operation. The module 202 for applying a symmetrical decompression operation then allows the data packet P to be restored as it was before applying a compression operation.

[0194] The data packet P therefore has been transmitted in the network after applying one or more compression operations to the values taken by the sections of the packet P by the compression management entity 100. The transmission of the packet P once compressed allows significant savings to be made in terms of energy and hardware resources. The packet P is then restored by the decompression management entity 200 for subsequent use. Since the set RS of compression rules is obtained by learning, the method does not require the intervention of an expert, and it can adapt to changing contexts by repeating the learning algorithm in order to have sets RS of compression rules adapted to the context.

[0195] FIG. 2, for its part, shows an example of the execution of an embodiment for obtaining a set of compression rules according to one embodiment of the method of the invention. In this example, a learning algorithm is used. FIG. 2 is subdivided into four sub-figures (2.A, 2.B, 2.C and 2.D) that correspond to four steps S0, S1, S2 and S2′ of the learning according to this embodiment.

[0196] FIG. 2.A corresponds to the initial learning state S0 and to the first step.

[0197] The learning set E is made up of N=10 000 packets. These N=10 000 packets contain a header formed, in this example, by four fields C1, C2, C3, C4. In this example, each of the fields C1, C2, C3, C4 is 8 bits long, indicated by the reference L=8.

[0198] For the first field C1, the N=10 000 packets of the learning set E all have the same unspecified valueV11.The frequencyf11of occurrence of the valueV11is therefor 100%.For the second field C2, the N=10 000 packets of the learning set E have three valuesV21,V22⁢ and⁢ V23,which again are unspecified. Only the frequencies of occurrencef21,f22⁢ and⁢ f23of these three values are specified. They respectively equal 80%, 10% and 10%.For the third field C3, the N=10 000 packets of the learning set have four valuesV31,V32,V33⁢ and⁢ V34,which appear in the learning set with the same frequency of 25%. The values are specified as a string of 8 bits, and it can be seen that they are differentiated by the prefix.For the fourth field C4, the N=10 000 packets of the learning set have four valuesV41,V42,V43⁢ and⁢ V44that also appear in the learning set with the same frequency of 25%. The values are specified as a string of 8 bits, but in this case, unlike the values of the field C4, these four values have an identical prefix on the first 6 bits.Of course, this example is fictitious, and is selected to illustrate the operation of the algorithm for learning compression rules. The various frequencies of occurrence and the values taken by the sections will allow the various compression operations to be illustrated that can be added to the compression rules during learning according to one embodiment. In the example shown in this case, the compression will only seek to compress the values taken by the fields C1, C2, C3 and C4 of the headers of the data packets and not the delimited sections of the payloads of the packets, but the principles would remain the same when seeking to learn compression rules that apply to sections of the payloads of the packets.It is assumed that the frequencies of occurrence of the various values are independent of each other. For example, it is assumed that in the 8000 packets of the learning set E for which the field C2 takes the valueV21,the four values of the fields C3 and C4 appear equiprobably, as in the complete learning set E. These values therefore each respectively appear in 2000 packets of the 8000 packets where the field C2 takes the valueV21.It is assumed that this property is also true by combining the various field values. For example, in the 2000 packets for which both the field C2 takes the valueV21,and the field C3 takes the valueV31,then, the frequencies of occurrence of the values of the field C4 are also equiprobable, and so there are 500 packets for each of these four values. This hypothesis simplifies the presentation of an embodiment of the algorithm without losing generality.The frequencies of occurrence are shown as a percentage in FIG. 2.A and following, but for the following computations, the frequencies are strictly positive quantities, less than or equal to 1. A percentage of 100% corresponds to a quantity of 1; a percentage of 80% to 0.8; a percentage of 25% to 0.25 and a percentage of 10% to 0.1.Field compression potentials PCC can be computed for the four fields C1, C2, C3 and C4.According to one embodiment of the invention, the field compression potential PCC is computed, for a given section, according to the formula N(L−H), where N is the number of times the section appears in the learning set, L is the length of the section expressed in bits and H is a quantity, called field entropy estimator quantity, that is computed according to the formula H=−Σi∈[1,K]fi log2(fi), where K is the number of different values Vi∈[1,K] taken by the section in the learning set and fi is the frequency of occurrence of the value Vi.In this embodiment and in this example, the formula that is used is the formula in which the section, in this case one of the four fields C1, C2, C3 or C4, is of fixed length. This is indeed the case in this example, with a length L equal to 8 bits for the four fields C1, C2, C3, C4.For the field C1, the computation therefore yields the following result:P⁢C⁢C⁡(C⁢1)=1⁢0⁢0⁢0⁢0*(8-(-f11⁢log2(f11))=1⁢0⁢0⁢0⁢0*(8-(-1*0))=8⁢0⁢0⁢0⁢0For the field C2, the computation therefore yields the following result:P⁢C⁢C⁡(C⁢2)=1⁢0⁢0⁢0⁢0*(8-(-f21⁢log2(f21)-f22⁢log2(f22)-f23⁢log2(f23)))=10000*(8-(0.8*0.3⁢2⁢1⁢9+0.1*3.322+0.1*3.322))=1⁢0⁢0⁢0⁢0*(8-0.92192)=7⁢0⁢7⁢8⁢1For the fields C3 and C4, the computation yields the same result because the frequencies of occurrence of the values are the same in both fields. The result is provided below:P⁢C⁢C⁡(C⁢3)=1⁢0⁢0⁢0⁢0*(8-(-f31⁢log2(f31)-f32⁢log2(f32)-f33⁢log2(f33)-f34⁢log2(f34)))=10000*(8-(4*0.25*2))=60⁢ 000=P⁢C⁢C⁡(C⁢4)In step S0, in the embodiment described in this case, the set RS of compression rules is initialized with a single rule R0. This rule is a rule that corresponds to all the possible values of all the fields of the packets of the learning set E, but does not apply any compression to these values.These elements correspond to the initial state of the learning algorithm. The first step of the reinforcement learning algorithm for the set RS of compression rules will now be described for one of several embodiments. This first step is also shown in FIG. 2.A.The reinforcement learning algorithm for the set RS of compression rules begins with selecting a rule from the set RS. As the set RS only includes the rule R0 at this stage, it is this rule R0 that will be selected. The subsequent steps will demonstrate how the selection can be made when there are several rules in the set RS of compression rules.From the rule R0, several candidate rules will be created in the embodiment described in this case. The first step of creating the candidate rules in this example involves selecting a field from among the fields C1, C2, C3, C4. To this end, the embodiment of the learning algorithm uses the field compression potentials PCC(C1), PCCC(C2), PCC(C3) and PCC(C4). In general, the algorithm in this case will select a section using the field compression potentials for all the sections whose taken values are to be compressed.This computation of the field compression potentials PCC must take into account the compressions performed by the compression rules present in the set RS of compression rules. To this end, one possible embodiment is to partition the learning set E according to the compression rules of the set RS, and to compute the field compression potentials PCC for each rule of the set RS using the subsets of the learning set E assigned to each rule. At this initial stage, only the rule R0, which does not perform any compression, is present. The computation of the field compression potentials PCC is therefore that described above.Since the field compression potential PCC(C1) is the largest from among the four potentials PCC(C1), PCC(C2), PCC(C3) and PCC(C4), it is this field C1 that will be selected to create the candidate rules from the selected rule R0.In this embodiment, three candidate rules will be created, corresponding to the addition to the selected rule R0 of three possible compression operations on the values taken by the field C1 in the packets of the learning set E.The first candidate rule that is created involves adding a deletion operation. In order to select the value to be deleted, in this embodiment, compression potentials of values PCV are computed. In this case, since the field C1 takes only one valueV11in the learning set E, it is obviously this value that will be deleted.The second candidate rule that is created involves adding a replacement operation involving replacing an index of a dictionary. In this case, since only one value is taken by the field C1, the added operation involves replacing this unique valueV11with a dictionary index. Since the dictionary in question would be used for a single value, it would only include one bit.The third candidate rule that is created involves adding an operation to delete prefixes common to the values taken by the field. In this case, since only one value is taken by the field C1, the added operation involves deleting the value itself, since all the prefix bits are obviously common for this unique value.The next step of the learning algorithm will involve retaining a rule from among the created candidate rules in order to add it to the set RS of compression rules. To this end, the reward function used in this embodiment is the compression performed by the candidate rules on the packets of the learning set E.The first candidate rule would delete the valueV11taken by the field C1. Since this field is 8 bits long, and the valueV11appears in the 10 000 packets of the learning set E (its frequency of occurrencef11is 100%), the compression performed by this candidate rule is 8*10 000, or 80 000 bits.The second candidate rule would replace the valueV11taken by the field C1 with an index of a dictionary. Since this index is one bit long, the compression performed by this rule for a packet would not be 8 bits, but only 7 bits. Multiplying by the 10 000 packets of the learning set, the compression performed by this candidate rule is 70 000 bits.The third candidate rule would delete the prefix common to the values taken by the field C1. Since the field C1, in the learning set E, only takes the value V11, then the whole of this value would be deleted by the operation for deleting the common prefix. This third candidate rule therefore completes the same compression as the first candidate rule, namely, 80 000 bits.In this embodiment, the selected candidate rule is the one that completes the best compression. In case of equality, a selection criterion can be defined. In this embodiment, the deletion operation is favored before the operation for replacing with an index, which itself occurs before the operation for deleting a common prefix. It is therefore this compression rule R1, denotedR⁢1⁢: [ns⁡(V11)],that will be added to the set RS of compression rules. The notationns⁡(V11)uses the acronym ns, for not sent, to indicate a value that is not transmitted. A compression rule is noted in the figures as a sequence of operations placed in square brackets.At this stage of the learning algorithm, the set RS of compression rules therefore includes two rules, the initial rule R0 and the rule R1 which has just been added thereto.In the embodiment described in this case, when an added rule applies to all the data packets in the learning set to which the selected rule applies, then the selected rule is removed from the set of compression rules. This is the case here: the initial rule R0, which does not perform any compression, applies to all the packets of the learning set E and this is also the case with the rule R1 that deletes the valueV11,since this value is taken by 100% of the fields C1 of the packets of the learning set E.The initial rule R0 is therefore removed from the set RS, which is shown in FIG. 2.A by the crossed-out box placed thereon.The criteria for stopping reinforcement learning in this embodiment will be discussed hereafter, and it is assumed that the learning algorithm will successfully continue. Therefore, the execution of the next step S1 of reinforcement learning in this embodiment will now be shown, as shown in sub-FIG. 2.B.FIG. 2.B corresponds to the state S1 of learning, after the first step, and to the second step of reinforcement learning according to one embodiment.The learning set E is not modified, and still comprises 10 000 packets, which comprise 4 fields C1, C2, C3, C4 with a length L of 8 bits each.However, the set RS of compression rules being trained has been modified and now includes the rule R1 for deleting the valueV11,which rule is denotedR⁢1⁢: [ns⁡(V11)],This affects the computation of the field compression potentials PCC in this embodiment, and is shown in FIG. 2.B by the crossed-out box through the entire field C1 in the learning set E.The computation of field compression potentials PCC uses the formula N(L−H), where N is the number of times the field appears in the learning set. In order to take into account the modification of the set of compression rules, in one embodiment, applying the compression rules of the set RS to the learning set E is sufficient. In this case, applying the rule R1 will delete all the occurrences of the field C1, since this field C1 takes a unique valueV11deleted by the compression rule R1. Therefore, the computation of the field compression potential PCC(C1) taking into account adding the rule R1 to the set RS of compression rules will use a quantity N=0. Therefore, PCC(C1)=0 in step S1.It is easy to understand that, since the unique value taken by the field C1 is deleted by the rule R1 for all the packets of the learning set E, this field no longer has any compression potential. This intuition is actually captured by the computation of the field compression potential according to the embodiment described herein.It can be seen that the formula for computing a field compression potential PCC can be applied to several contexts and in particular in this case can take into account the evolution of the set RS of compression rules during successive learning steps.The other computations of field compression potentials PCC(C2), PCC(C3) and PCC(C4) are unchanged with respect to the computations performed in the first step S0, since the rule R1 does not perform any operations on the values taken by the fields C2, C3 and C4.The description of the following steps will demonstrate how computations of field compression potentials PCC taking into account the compression rules belonging to the set RS allow a rule to be selected from among the set RS of compression rules in order to create candidate rules. Since the set RS comprises only one rule R1 in this step S1, this rule R1 is selected in this example.As seen above, once the rule R1 has been selected, a field must be selected in order to create one or more candidate rules. In this embodiment, the field with the highest compression potential PCC is selected, and in this case it is therefore the field C2.As seen above, three candidate rules will be created, adding a compression operation on the selected field C2 to the rule R1. The first will be an operation for deleting a value, with this value being selected according to the compression potentials of values. Since the field C2 is of fixed length, the compression potentials of values yield the same rankings as the frequency of occurrence. The value will be the one that appears most frequently and therefore will be the valueV21that appears with a frequency of 80%. The second candidate rule will involve adding a dictionary operation. Since there is no dictionary operation for the field C2, it is therefore a creation that will replace two values taken by the field C2, namely, the valueV21,whose compression potential of values is the highest and one of the two valuesV22⁢ and⁢ V23,whose compression potentials of values are equal. Let the valueV22be selected randomly. The third candidate rule involves adding an operation for deleting a prefix, and it is assumed that the values taken by the field C2 are similar to those taken by the field C3, and therefore do not have a common prefix.The next step of the learning algorithm will involve retaining a rule from among the created candidate rules in order to add it to the set RS of compression rules. To this end, the reward function used in this embodiment is the compression performed by the candidate rules on the packets of the learning set E.The first candidate rule deletes the valueV21,which is 8 bits long, and which appears in 8000 packets of the learning set E. The compression performed by this candidate rule is therefore 64 000 bits.The second candidate rule replaces the valuesV21⁢ and⁢ V22with an index of a dictionary, which therefore must use at least one bit. The second candidate rule therefore replaces a value with a length of 8 bits with an index of one bit. It therefore performs a compression of 7 bits for each packet where it is applied. In this case, this second rule is applied for 9000 packets, those where the value of the field C2 is taken byV21⁢ or⁢ V22.The compression performed is therefore 7*9000=63 000 bits.The first candidate rule therefore performs better compression than the second.It is assumed that the third candidate rule is not effective because the values taken by the field C2 do not have a common prefix.It is therefore the first candidate rule that will be retained and added to the set RS of compression rules, yielding the rule R2. This is noted in FIG. 2.B as follows:R⁢2⁢: [ns⁡(V11)+ns⁡(V21)],In order to show that the operation for deleting the valueV21,denotedns⁡(V21),is added to the operation for deleting the valueV11that was already present in R1. By way of a reminder, the rule R2 was created by selecting the rule R1 and by adding a compression operation, in this case deleting the valueV21.In this step S1, unlike step S0, the rule R2 that has just been added to the set RS of compression rules does not apply to all the packets of the learning set E to which the rule R1 applies. Indeed, the rule R1 applies to all the packets of the learning set E, whereas the rule R2 only applies to the 8000 packets of the learning set E in which the field C2 takes the valueV21.For this reason, in the embodiment described in this case, the rule R1 is not deleted from the set RS of compression rules, which will now include the two rules R1 and R2.In the embodiment described in this example, the reinforcement learning algorithm will use a partition of the learning set E by assigning subsets of the learning set E to the compression rules of the set RS. As long as there was only one rule R0 and then R1 in the set RS, this was not important. In this case, the 8000 packets of the learning set E will be assigned where the rule R2 applies thereto, and a dedicated subset will be created, and the remaining 2000 packets will be assigned to the rule R1.This assignment of the packets of the learning set E to rules of the set RS in this embodiment is carried out when adding a new rule to the set RS of compression rules, when deciding whether or not to delete the selected rule from the set RS. Since the created rule is created from the selected rule by adding a compression operation thereto, the created rule will necessarily apply to a subset of the packets to which the selected rule applies and is assigned. If the created rule applies to all the packets to which the selected rule would apply, the learning algorithm will assign all the packets in the selected rule to the created rule, and the selected rule does not need to be kept in the set RS of compression rules. If the created rule does not apply to all the packets in the selected rule, the created rule is assigned the packets to which it applies and the created rule is retained in the set RS of compression rules and is assigned the remainder of packets to which the created rule does not apply.This partition will allow the computation of the field compression potentials to be refined, as will be seen in the next steps.Here again, it is assumed that a stop criterion is not met and the next step of the reinforcement learning algorithm will be described.FIG. 2.C corresponds to the state S2 of learning, as obtained after the second step, and to the third step of reinforcement learning according to one embodiment.At this stage S2, the set RS of compression rules includes two rules R1 and R2. In order to make a selection from these two rules in order to create candidate rules, a possible embodiment uses the computation of field compression potentials PCC by partitioning the learning set E into subsets assigned to the rules R1 and R2. The completion of this partitioning was seen above when describing the end of the second step.In this embodiment, 8000 packets of the learning set E have been assigned to the rule R2, those for which the rule R2 applies, and the remaining 2000 packets are assigned to the rule R1. The field compression potentials PCC(C1), PCC(C2), PCC(C3) and PCC(C4) are then computed for the two subsets partitioning the learning set E, by applying the compression rule assigned to them to these packets.For the field C1, whether in the 2000 packets assigned to the rule R1 or in the 8000 packets assigned to the rule R2, the respective application of rules R1 and R2 will delete the valueV11taken by the field C1. The field C1 therefore does not appear in any packet of the two subsets, and the quantity N used in the formula for computing the field compression potential PCC(C1) is therefore zero in both cases. In other words, whether for the packets assigned to the rule R1 or for those assigned to the rule R2, the field compression potential PCC of the field C1 is zero. This is understandable, since these two rules R1 and R2 delete the unique valueV11taken by the field C1.For the field C2, a differentiated computation of field compression potential PCC(C2) needs to be undertaken for the two subsets respectively assigned to the rule R1 and to the rule R2.For the rule R1, the packets of the learning set E assigned thereto are those to which the rule R2 does not apply. These are therefore the 2000 packets in which the field C2 does not take the valueV21,but equiprobably takes one of the two valuesV22⁢ or⁢ V23.In these 2000 packets, the field C2 clearly appears, and the quantity N therefore in this case equals 2000. The formula for computing the field compression potential PCC(C2) is therefore:PCC⁡(C⁢2)=N*(L-(-f22⁢log2(f22)-f23⁢log2(f23)))=
2000*(8-(-0.5⁢(-1)-0.5(-1)))=2000*7=14000For the rule R2, however, the 8000 packets of the learning set E assigned thereto are those to which the rule R2 applies, which rule includes the compression operation involving deleting the valueV21.Therefore, the field C2 is completely deleted from the subset of packets assigned to the rule R2. In other words, the field C2 does not appear in this subset and in this case there is a zero quantity N and therefore a zero field compression potential PCC(C2).The two values for the field compression potential PCC(C2) are indeed present in FIG. 2.C, namely, 14 000 for the subset assigned to the rule R1 and 0 for the subset assigned to the rule R2.In order to compute the field compression potentials PCC(C3) and PCC(C4), it has already been seen that it was assumed that the frequencies of occurrence of the various values taken by the fields C3 and C4 are the same in the two subsets assigned to the rule R1 and to the rule R2. For four equiprobable values, the quantity H(C)=−Σi∈[1,K] fi log2(fi) equals −(4*(0.25*(−2)), that is, 2. In other words, for the rule R1, which has been assigned to 2000 packets, the field compression potentials PCC(C3) and PCC(C4) are equal to 2000*(8−2), that is, 12 000; whereas for the rule R2, which has been assigned to 8000 packets, the field compression potentials PCC(C3) and PCC(C4) are equal to 8000*(8−2), that is, 48 000. These two values are clearly shown in FIG. 2.C.All these field compression potentials are used to determine the selected rule.One possible embodiment involves adding the field compression potentials PCC for a given rule. In this case, the rule R1 would be assigned a field compression potential PCC of 0+14 000+12 000+12 000=38 000, while the rule R2 would be assigned a field compression potential PCC of 0+0+48 000+48 000=96 000. In this case, rule R2 would be selected.Another possible embodiment is to compute the field compression potential PCC of a rule by taking the maximum of the field compression potentials PCC for this rule rather than adding. This embodiment also results in the selection of the rule R2.Candidate rules therefore will be created from the rule R2.For the rule R2, the two fields C3 and C4 have the same field compression potential PCC(C3)=PCC(C4)=48 000, while the fields C1 and C2 have a zero field compression potential PCC. In these cases of equality, the selection between the fields C3 and C4 in order to decide which candidate rules will be created can be undertaken randomly or by following another criterion, for example, the order of occurrence. Let's assume that the field C3 is selected.Three candidate rules are then created starting from the rule R2 and adding a compression operation thereto working on the values taken by the field C3. By way of a reminder, the four values taken by the field C3 are equiprobable and do not have common prefixes, as can be seen in FIG. 2C. The candidate rule that involves deleting a common prefix therefore will not have any efficiency in terms of compression.For the candidate rule that involves adding an operation to delete a value taken by the field C3 to the rule R2, as the values are equiprobable and the four values have the same length, because the field C3 has a fixed length, they will therefore have the same compression potentials of values. Therefore, any value can be selected for deletion. Again, an embodiment in the event of equality can involve undertaking a random draw or even taking the first or last value that occurred, or any other method of choice.Similarly, for the candidate rule that involves adding an operation for replacing a value with an index of a dictionary to the rule R2, the compression potentials of values will not guide the choice of values to be replaced with a dictionary index. Two values will be selected randomly or according to an order criterion.The compression performed by the deletion operation is computed for the 8000 packets to which the rule R2 applies. Irrespective of the deleted value, it appears in a quarter of the 8000 packets, therefore, 2000 packets. The compression performed by the deletion operation therefore would be 2000*8=16 000 bits.The compression performed by the dictionary index replacement operation is also computed for the 8000 packets to which the rule R2 applies. Two values are replaced; that is, for half the packets in question. The compression performed by the dictionary index replacement operation is therefore 4000*7=28 000 bits. Since the index is 1 bit, the compression for each packet is 7 bits, and not 8 bits as is the case for deletion.The best compression is the one performed by the index replacement operation. In FIG. 2.C, such a deletion operation is denotedmap(V31,V32),with the term “map” originating from mapping. It is assumed that randomly drawing the two values to be replaced with a dictionary index yielded the two valuesV31⁢ and⁢ V32.The complete rule R3 therefore includes three operations, namely, the two deletion operations already present in R2, to which the new operation is added, and is denoted as follows:R⁢3⁢: [ns⁡(V11)+ns⁡(V21)+map(V31,V32)].The rule R3 is therefore added to the set RS of compression rules. It applies to 4000 packets of the learning set E (half of those to which the rule R2 applied) that will be assigned thereto for computing the field compression potentials PCC in the next step. The rule R2 retains 4000 packets, those to which the compression rule R3 does not apply, and is not removed from the set RS of compression rules. Finally, the 2000 packets assigned to the rule R1 remain assigned thereto.FIG. 2.D corresponds to the state S2′ of the learning. This state corresponds to the state obtained after the second step. It has been seen that, in this state, the rule R2 is selected in order to create candidate rules, and that, for this rule, the fields C3 and C4 have the same field compression potential, namely, PCC(C3)=PCC(C4)=48 000.The previous step described in FIG. 2.C showed how the learning algorithm proceeds if the candidate rules constructed from the rule R2 seek to compress the field C3. The progress of the learning algorithm will now be seen according to an embodiment whereby the field C4 is selected instead, knowing that these two fields have the same field compression potential PCC.In this case, by way of a reminder, the four values taken by the field C4 are equiprobable, and the compression performed by the candidate rules is estimated on the 8000 packets assigned to the selected rule R2.The first candidate rule will be the rule R2 to which an operation for deleting a value is added. Knowing that the four values taken by the field C4 are equiprobable, the compression potentials of values will be equal. By selecting any of the four equiprobable values, adding a deletion operation would result in the deletion of an 8-bit long value appearing in 2000 packets (a quarter of the 8000 packets assigned to R2), that is, a compression of 16 000 bits.The second candidate rule will be the rule R2, to which an operation for replacing a value with a dictionary index is added. As seen in FIG. 2.C, the compression performed by the dictionary index replacement operation is computed for the 8000 packets to which the rule R2 applies. Two values are replaced; that is, for half the packets in question. The compression performed by the dictionary index replacement operation is therefore 4000*7=28 000 bits. Since the index is 1 bit, the compression for each packet is 7 bits, and not 8 bits as is the case for deletion.The third candidate rule will be the rule R2, to which an operation for deleting a common prefix is added. This candidate rule is an opportunity for illustrating the operation of the field bit compression potentials.These potentials are computed for the 8 ranks numbered from 0 to 7, for the values taken by the field C4 in the relevant packets of the learning set. These four valuesV41,V42,V43⁢ and⁢ V44are equiprobable and have the same value for the first 6 bits, all of which equal 1. The frequency of occurrence of bit 1 at rank 0 therefore equals 1, and, conversely, the frequency of occurrence of bit 0 at rank 0 is 0. Since a logarithm of zero frequency is not defined, the entropy estimator of a field bit computed according to the formula H(bi)=−(fi·log2(fi)+(1−fi)·log2(1−fi)) by convention equals 0 in this case, and the field bit compression potential for rank 0 then equals 1.The field bit compression potentials are equal to 1 for the first 6 ranks, since the bits of the first six ranks of the values taken by the field C4 are identical in all the considered packets. In this case, the bits all equal 1, but the result is the same if, for a given rank, all the bits equal 0.For the ranks 7 and 8, the bits 0 and 1 are equiprobable since the four valuesV41,V42,V43⁢ and⁢ V44are also equiprobable. The field bit compression potentials for these ranks 7 and 8 then equal:1−(−(0.5*log2 0.5+(1−0.5)*log2(1−0.5)))=1−(−(0.5*(−1)+0.5*(−1)))=1−1=0The field bit compression potential is indeed canceled out for a rank where bits 0 and 1 are equiprobable.By using the method where the compression potentials of field bits are multiplied together, starting from the bit of rank 0, and by using a threshold, it can be seen how it is possible to detect that packets have common prefixes for certain fields. In this case, in the example described in this case, the product of the field bit compression potentials transitions from 1 to 0 between rank 6 and rank 7. It is therefore easy to see that the candidate rule created by adding a prefix deletion operation to the rule R2 will involve deleting the first six bits of the values taken by the field C4. This rule R3 is denoted as follows:R⁢3:[ns⁡(V11)+ns⁡(V21)+msb⁡(C⁢4,6)],the acronym “msb” means most significant bits, i.e., to indicate the prefix bits, with C4 indicating that the rule applies to the values taken by the field C4 and 6 indicating that the first 6 bits are involved.The compression performed by this candidate rule involves deleting six bits from the values taken by the field C4 in the 8000 packets assigned to the rule R2, since the common prefix on 6 bits is present for the four values taken by the field C4. The compression performed by this third candidate rule is therefore 8000*6=48 000 bits and it is indeed this rule R3 that is added to the set RS of compression rules in this step S2′, which differs from the step S2 in that a candidate rule is created by targeting the field C4 instead of the field C3.After the step S2′, as is the case after the step S2, other steps of the algorithm for learning the set RS of compression rules can occur that will add compression operations taking into account the remaining compression potentials in order to finally achieve efficient compression of the learning set E.With respect to stopping the learning algorithm, several possibilities exist.The first possibility involves computing the compression performed by a new rule added to the set RS of compression rules and adding and iterating the learning algorithm again only if adding this new rule improves the compression performed on the packets of the learning set. It is possible to consider that adding a compression rule to the set RS of compression rules will necessarily improve the compression performed on the learning set E; however, it is important to take into account that an identifier of the compression rule used to compress a data packet header must be transmitted at the same time as the compressed packet in order to be able to complete the decompression. For a set RS including two compression rules, a single bit is sufficient for identifying the compression rule that is used. For four rules, two bits are required, and so on. This effect was not taken into account when compression computations were indicated for selecting from the candidate rules, but this effect must be taken into account in order to determine a stop criterion for the learning algorithm. In addition, this effect is retroactive, i.e., compression computations that are performed when the set RS of compression rules includes four rules, which can be designated by two bits, must be restarted for all the compression rules when the set RS changes to five rules; this therefore requires all the rules being designated by at least three bits.Another possibility involves giving the set RS of compression rules a maximum size. For example, a decision may be made to limit the size of the set RS to 8 compression rules, to ensure that it is possible to identify the compression rules used to compress data packet headers with only 3 bits.These two possibilities can be combined, namely, a maximum number of compression rules can be defined, but the learning algorithm can stop before this maximum number is reached because the compression performed by the last added rule is zero or is below a given threshold.FIG. 3, for its part, shows another example of a step of computing the reinforcement learning algorithm that is implemented in this example of obtaining a set RS of compression rules. This example illustrates the benefit of computing a field compression potential corrected by a factor.In the example in FIG. 3, step S0 of the reinforcement learning algorithm is shown. The learning set E comprises N=100 packets. The headers of these 100 packets are formed by two fields C1 and C2 of different lengths, unlike the example in FIG. 2 where the four fields had the same length. The length of the field C1 is L=2, the length of the field C2 is L=10, with the two lengths being expressed as a number of bits. As in the previous example, the sections of packets that are intended to be compressed are the two fields C1 and C2.As for the values taken by the fields in the learning set E, the field C1 takes a single value, therefore, the frequency of occurrence of this valueV11equalsf11=1⁢0⁢0⁢%.However, for the field C2, it has a different value in the 100 packets of the learning set E. For the field C2, there are therefore 100 learning frequencies, all of which equal 1%, which is noted in FIG. 3:f21=f22=… =f21⁢0⁢0=1⁢%.By way of a reminder, in this embodiment, the formula for computing a field compression potential PCC is: PCC=N(L−H), where N is the size of the set, L is the length of the section, and H is an estimator of the entropy. The formula for computing the entropy estimator is: H=−Σi∈[1,K]fi log2(fi), where K is the number of different values Vi∈[1,K] taken by the section in the learning set and fi is the frequency of occurrence of the value Vi.The entropy estimator seeks, as its name suggests, to estimate the entropy that seems to manifest the values taken by the section in view of the learning set E. The lower the entropy, the more ordered the values taken by the section will be and therefore the easier it will be to compress them, for example, with a rule for deleting the value, and therefore the more benefit the section has in being compressed, and therefore the more benefit there is for the learning algorithm to seek to create candidate rules for this section, with the best rule being added to the set RS of compression rules.For example, when a section takes a single value in the learning set E, the frequency of occurrence of this unique value therefore equals 100%, or 1, the logarithm of this frequency therefore equals 0, as does the entropy estimator. The entropy estimator is therefore at its minimum. The field compression potential then equals PCC=N*L, as is the case for the field C1 in the example of FIG. 3. In this case: PCC(C1)=100*2=200, which is the maximum potential for a 2 length field that appears in 100 packets. Indeed, the field C1 will be compressed by a rule for deleting the unique value taken by C1 in the learning set E, that is, a maximum compression of 200 bits.A fault in the entropy estimator, which appears in the example in FIG. 3, is that this quantity grows at an excessively low rate even when maximum entropy is present. This can be seen in the field C2. The entropy taken by the values of the field C2 in the learning set E is maximal, since in this case there are 100 different values for the 100 packets, the 100 values therefore have the same frequency of occurrence, namely, 1%, i.e., 0.01. The logarithm of this frequency equals −6.644. The computation of the field compression potential is shown in detail in the figure and it can be seen that the entropy estimator finally equals 6.644, which is the maximum value it can take in a learning set E of 100 packets. However, since the length of the field C2 is 10, the field compression potential of C2 equals PCC(C2)=100*(10−6.644)=335.6, which is therefore greater than the compression potential of the field C1, PCC(C1), which equals 200. The entropy estimator does not grow large enough to compensate for the effect of the greater length of the field C2 compared to that of the field C1.It should be noted that if the length of the field C2 was L=8 bits instead of 10, then the field compression potential of C2 would equal PCC(C2)=100*(8−6.644)=135.6, that is, less than the field compression potential PCC(C1)=200. In other words, the low score of the entropy estimator in this case would not be offset by the length of the field, whereas the field C2 would still be 8 bits long, compared to the 2 bit length of C1.In the case whereby the length of the field C2 is 10 bits, using the field compression potential PCC as with its initial formula would therefore result in the development of the field C2, which would be inefficient, because the compression carried out by a first rule would be, for example, a rule involving replacement with the index of a dictionary, which would therefore replace two values of 10 bits with an index of one bit, that is, a compression of 18 bits in the learning set E for the two values related to the dictionary taken by the field C2, from among the 100 taken values, compared to the 200 compression bits obtained by the rule involving deleting the unique valueV11taken by the field C1.In order to correct this effect, it is preferable to introduce a correction factor CORR to the field compression potential taking into account the number K of different values taken by the field C. The simplest formula for the correction factor CORR is CORR=1−K / N, where K is the number of different values taken by the field and N is the size of the relevant set. Rather than using the field compression potential PCC as provided by the formula to select the field to be compressed, it will be multiplied by the correction factor CORR.For the field C1, since this field takes a unique value in the learning set E, the correction factor CORR equals 1− 1 / 100, that is, 0.99, and the corrected compression potential PCC(C1)*CORR equals 198.For the field C2, since this field takes 100 different values in the 100 packets of the learning set E, the correction factor CORR equals 1−100 / 100, that is, 0 and the corrected compression potential PCC(C2)*CORR is also canceled out.Finally, FIG. 3 shows the impact of choosing whether or not to apply the correction factor CORR to the learning algorithm. This is the initial step S0 where the set of compression rules includes only the rule R0 that does not apply any compression operation to the packets in the set E.

[0302] If choosing not to use a correction factor CORR, which is indicated in FIG. 3 by the No-corr line, it will be seen that after selecting the rule R0, then the field C2 will be selected to create the candidate rules. Then, if it is assumed that no significant common prefix appears from among the 100 values taken by the field C2 in the learning set E, the best rule R1 from among the candidates will be that of creating a dictionary and replacing two values with their indexes.

[0303] By contrast, if choosing to use the correction factor CORR, which is indicated in FIG. 3 by the line Corr, it is indeed the field C1 that will be selected, and the added rule R1′ will be that involving deleting the unique value V11 taken by the field C1. In this case, as for the example of computation in FIG. 2, the rule R0 can be removed from the learning set because all packets processed by the rule R0 are also processed by R1′. This is indicated by the crossed-out box placed on the rule R0 in the definition of the set RS of compression rules.

[0304] An example of a formula for computing the correction factor CORR has been seen, however, many other examples are possible. For example, the correction factor CORR generally can be said to beα⁡(1-K-βN+γ),where N is the number of times the section appears in the learning set, K is the number of different values taken by the section in the learning set, and α, β and γ are selected positive coefficients. The example seen above where CORR equals 1−K / N is then obtained for the values α=1, β=0 and γ=0.Other choices of values are possible for the positive coefficients α, β and γ, which can take, for example, the values α=1, β=1 and γ=0.

[0306] In this case, the correction factor takes the value1-K-1Nand therefore equals exactly 1 when the section takes a single value, i.e., for K=1. By contrast, the correction factor does not cancel out when K=N, which can be beneficial for retaining a certain compression potential even on a section that still seems to be very random since all the values taken by the section in the learning set are different.More complex, non-affine formulas can be used to define the correction factor CORR by taking into account the values K and N, ensuring that the correction factor CORR must always be positive, preferably ranging between 0 and 1, and must be smaller when the number K of different values taken by the section from among the N packets is significant.

[0308] FIG. 4, for its part, represents another example of a step of computing the learning algorithm that is implemented in this example of obtaining a set RS of compression rules. This example illustrates the impact of the size of the values on the compression potential of each value.

[0309] In the example described in this case, the learning set E comprises N=100 packets. The section of interest is a field C, which happens to be of variable length. The field C takes three values V1, V2 and V3 in the learning set E.

[0310] The length of the value V1 is L1=2 bits. It has a frequency of occurrence of 80%, so it appears in N1=80 packets of the learning set E.

[0311] The length of the value V2 is L2=100 bits. It has a frequency of occurrence of 15%, so it appears in N2=15 packets of the learning set E.

[0312] The length of the value V3 is L3=1000 bits. It has a frequency of occurrence of 5%, so it appears in N3=5 packets of the learning set E.

[0313] The general formula for computing a compression potential of values PCV according to the invention is PCV=N*(L−H), where H is a partial entropy estimator that is the product of the frequency of occurrence of the value and its logarithm to base 2. Since the field C is of variable length, the length of each value V1, V2 and V3 taken by the field C must be used.

[0314] FIG. 4 shows the computation of the three compression potentials of values PCV(V1), PCV(V2) and PCV(V3) for the three values V1, V2 and V3. It can be seen that the highest potential is that of V3. The greatest length L3=1000 bits means that it is more worthwhile compressing this value, for example, by deleting it, than the other values, even if V3 is the value with the lowest frequency of occurrence.

[0315] This simple example of computation shows that it is indeed the length of the value that can be deleted by a compression operation that is the main determinant of the compression potential of values, and so that it is indeed an effective compression potential that is used in the learning algorithm according to the invention and not simple frequencies of occurrence.

[0316] The example of computation also shows the importance of the learning set E actually reflecting the actual traffic that must be compressed. With a very low frequency, a very long value will still be selected as having good compression potential. If the number of deployed compression rules is limited, and this very long value is ultimately almost never present, the compression rule related thereto may end up replacing another compression rule that applies to a shorter but more frequent value, as a result, effective compressions will not be achieved as a result of the poor estimation of frequencies in the learning set E.

[0317] FIG. 5, for its part, represents a complete system SYS for transmitting data packets in a network NET that uses a set RS of compression rules obtained by a method according to the invention.

[0318] The system SYS has an architecture that includes various network equipment, namely, a gateway GW and two terminals DVC1 and DVC2. The transmission system SYS according to the invention is formed by this equipment GW, DV1 and DVC2.

[0319] Those network equipments are connected by the network NET. It may be a local network, for example, where the gateway GW allows terminals DVC1, DVC2 to access other larger networks, such as the Internet. The communication protocols between the network equipment GW, DVC1, DVC2 can be any type of protocols, provided that they are based on the transmission of data packets P, P′. The network NET therefore can be a home local area network using a Wi-Fi communication link, or a network for deploying connected objects of the LPWAN type using a LoRa communication link or any other link adapted to connected objects or even a mobile network where the gateway GW is a base station and the terminals DVC1, DVC2 are mobile terminals.

[0320] The gateway GW comprises a compression management entity 100, a decompression management entity 200, as well as an obtaining entity 300 (not shown in the figure), which comprises a module 301 for obtaining a compression potential (not shown in the figure), a module APP for obtaining a set RS of compression rules, a collection module COL, and a deployment module DEP.

[0321] The terminal DVC1, for its part, comprises a compression management entity 100 and a decompression management entity 200.

[0322] The terminal DVC2, for its part, comprises only one compression management entity 100 and no decompression management entity 200. A decision may have been made, when constructing the system SYS, for the terminal DVC2 to almost exclusively transmit P packets and to receive hardly any packets. In order to save on the memory size required to construct the terminal DVC2, a decision therefore may have been taken to not integrate a decompression management entity 200 into the terminal DVC2. Therefore, a packet P compressed according to the invention will not be able to be transmitted to the terminal DVC2, since it could not decompress it and therefore restore it.

[0323] It can be seen that the transmission system SYS clearly includes the following modules:

[0324] at least one module APP for obtaining a set RS of compression rules, present in the gateway GW;

[0325] at least one module 101 for applying a compression operation to a section value of a data packet P, with the module 101 not being shown in FIG. 5 but being included in a compression management entity 100 present in the gateway GW or the terminals DVC1, DVC2;

[0326] at least one module 102 for transmitting a data packet P, with the module 102 likewise being included in a management entity 100;

[0327] at least one module 201 for receiving a data packet P, with the module 201 not being shown in FIG. 5 but being included in a decompression management entity 200 present in the gateway GW or the terminal DVC1;

[0328] at least one module 202 for applying a decompression operation, with the module 202 likewise being included in a management entity 200;

[0329] at least one collection module COL in the network NET of packets P, P′ in order to form a learning set E, present in the gateway GW;

[0330] at least one module DEP for the synchronized deployment, in the network nodes, of a set RS of compression rules, present in the GW gateway.

[0331] The gateway GW uses its compression management entity 100 to compress and then transmit a data packet P to the terminal DVC1. The packet P has been compressed using a compression rule whose identifier is I. In the embodiment illustrated in this case, the compression management entity jointly transmits the compression rule identifier I and the compressed packet P, this is illustrated by the arrow labeled I+P between the compression management entity 100 belonging to the gateway GW and the decompression management entity 200 belonging to the terminal DVC1.

[0332] The terminal DVC2, for its part, addresses a compressed packet P′, which has been compressed by means of a rule whose identifier is I′. The compression management entity 100 of the terminal DVC2 therefore addresses a concatenation l′+P′ to the decompression management entity 200 of the gateway GW.

[0333] Since all the compression 100 and decompression 200 management entities in the system SYS have the same set RS of compression rules, it is easy for the receiving network equipment to restore a compressed packet P, P′ by applying the symmetrical decompression operations of the compression operations thereto that have been applied to the values taken by the sections of the data packet P, P′. The identifiers I, I′ jointly transmitted with the packets P, P′ allow the rule to be retrieved and therefore the compression operations that have been applied.

[0334] In the architecture of the system SYS shown in FIG. 5, the gateway GW has a collection module COL that allows the gateway GW to gather the data packets P, P′ that pass through the gateway GW. In a local network architecture, such as the one described in this case, the gateway GW is ideally placed to see all the packets P, P′ passing through the network NET.

[0335] The packets P, P′ collected by the module COL will allow a learning set E to be created that will be used by the learning module APP that is also present in the gateway GW. The learning module APP learns the set RS of compression rules using the packets P, P′ actually collected in the network NET by the collection module COL, which is a point that significantly improves the relevance of the learning and the set RS of compression rules. The deployment module DEP will then synchronously deploy the set RS of compression rules in the gateway GW and the terminals DVC1, DVC2 of the system SYS.

[0336] According to one embodiment, the compression management entities 100 and decompression management entities 200 may have several sets of compression rules. This facilitates the synchronized deployment of new sets RS of compression rules by allowing several sets RS of compression rules to be used concurrently until all the equipment present in the network NET has indeed received the new sets RS of compression rules.

[0337] Of course, the collection module COL will transmit fully restored packets P, P′ to the learning module APP, and not compressed packets, since only restored packets allow the information to be learned concerning the most worthwhile section values to be compressed.

[0338] The learning set E will not necessarily be constructed with all the packets P, P′ collected by the module COL.

[0339] Sampling strategies can be used to construct learning sets that best represent the traffic in the network NET, depending on the transmission times or even depending on the actions of the terminals DVC1, DVC2 and of the gateway GW.

[0340] The transmission system SYS therefore fulfills the expected technical objective, namely, the application of very efficient compression rules to the packets P, P′ by using a learning module APP to automatically learn the set RS of compression rules. The collection module COL for supplying the learning module APP with a learning set E representing the traffic present in the network NET and the module DEP for synchronously deploying the set RS of compression rules obtained by learning ensure that this highly efficient compression of the packets P, P′ is obtained, on the one hand, without human intervention and, on the other hand, will adapt in the event of a change of context in the network NET, for example, in the event of a change of IP addresses of the network equipment GW, DVC1, DVC2 or when adding new equipment to the network.

[0341] Placing collection COL, learning APP and deployment DEP modules in the gateway GW provides an efficient architecture where learning-related functions are centralized in the gateway GW. This architecture is efficient because the gateway GW sees all the packets of the network NET that pass through and also has a direct link with the terminals DVC1, DVC2 present in the network NET. However, other architectures are possible.

[0342] FIG. 6, for its part, represents a complete system SYS for transmitting data packets in a network NET according to the invention, but having an architecture that is different from that seen in FIG. 5. The system SYS in this case comprises three network equipments, namely, two routers RTR1 and RTR2 and a separate server SRV. The network NET in this case can be, for example, an IP core network and the two routers RTR1, RTR2 can form a branch of a long-range network connecting two points. The communication link then can be on a very high-rate optical fiber, and the underlying protocol can be, for example, the Gigabit Ethernet protocol that is often used in the core network, or any other suitable protocol.

[0343] The two routers RTR1, RTR2 each include a compression management entity 100 and a decompression management entity 200 that enable packets P, P′ to be exchanged that are jointly transmitted with identifiers I, l′ of compression rules belonging to the set RS.

[0344] The description of FIG. 5 shows how the transmission of packets P, P′ worked. It simply should be noted in this case that the transmission system SYS includes a server SRV dedicated to learning the set RS of compression rules. The router RTR1 includes a collection module COL that will address packets P1, P2, P3 to the server SRV. A collection module COL can be placed in a single router RTR1, since said router sees all the packets passing through the network NET, for transmission or reception. However, there also can be several collection modules COL, one in each router RTR1, RTR2, depending on the practicality of this deployment. If the server SRV is collocated with the router RTR1 in the same data center or the same network room, it will be much more efficient to deploy a collection module COL only in the router RTR1 and not in the router RTR2, which can be very far away in the case of a long-range transmission.

[0345] The server SRV is dedicated to learning the set RS of compression rules. It comprises an obtaining entity 300 (not shown in the figure) that includes a module APP that will carry out the actual learning, according to the invention, of the set RS of compression rules. The deployment module DEP ensures the synchronized deployment of the set RS of compression rules in both the routers RTR1 and RTR2.

[0346] It can be seen that the invention is suitable for a wide range of uses, in all kinds of network architectures. Other architectures of the transmission system SYS are possible for adapting to other architectures of the network NET, for example, a star-shaped architecture or even a ring-shaped architecture. Similarly, many protocols can be optimized by means of the compression described herein, equally in a core network or for local networks or for mobile networks.

[0347] Finally, it should be noted in this case that, in the present text, the term “module” can equally correspond to a software component or to a hardware component or to a set of software and hardware components, with a software component itself corresponding to one or more computer programs or sub-programs or, more generally, to any element of a program that is able to implement a function or a set of functions as described for the relevant modules. In the same way, a hardware component corresponds to any element of a hardware assembly that is able to implement a function or a set of functions for the relevant module (integrated circuit, chip card, memory card, etc.).

Claims

1. A method implemented by a management entity device and comprising:obtaining a set of compression rules able to compress a data packet transmitted in a network, the packet comprising sections taking respective values expressed in the form of bit strings, the packet being able to be compressed by applying compression rules able to remove bits from a value taken by a section of the packet, the obtaining comprising:for several given sections of packets, obtaining a compression potential for a given section, relative to the values taken by the given section in the packets belonging to a set, called a learning set, of data packets; andobtaining the set of compression rules as a function of the obtained compression potentials.

2. The method as claimed in claim 1 wherein the method comprises the following steps executed when obtaining the set of compression rules:a step of selecting a rule belonging to the set of compression rules using at least one compression potential from among those that are obtained;a step of creating a new rule from the selected rule using at least one compression potential from among those that are obtained; andadding the new rule to the set of compression rules;and wherein said steps are iterated, until a stop criterion is met, by using, during the next iteration, the set of rules modified by adding the new rule.

3. The method as claimed in claim 1, wherein one of the obtained compression potentials is called a field compression potential and is computed for a given section of fixed length according to the formula N(L−H), where N is a number of times the section appears in the learning set, L is a length of the section expressed in bits and H is a quantity, called a field entropy estimator quantity, that is computed according to the formula H=−Σi∈[1,K]fi log2(fi), where K is the number of different values Vi∈[1,K] taken by the section in the learning set and fi is the frequency of occurrence of the value Vi.

4. The method as claimed in claim 1, wherein one of the obtained compression potentials is called a field compression potential and is computed for a given section of variable length according to the formula∑i=1KNi·(Li-Hi),where K is the number of different values Vi∈[1,K] taken by the section in the learning set (E), Ni is a number of times that the section takes the value Vi in the learning set, Li is a length of the value Vi expressed in bits and Hi is a quantity, called a partial entropy estimator quantity, of a value, which is computed for the value Vi according to the formula Hi=−fi log2(fi), where fi is the frequency of occurrence of the value Vi in the learning set.

5. The method as claimed in claim 4, wherein one of the obtained compression potentials is called a corrected compression potential and is computed for a given section by multiplying the field compression potential by a correction factorα⁡(1-K-βN+γ),where N is a number of times that the section appears in the learning set, K is a number of different values taken by the section in the learning set, and α, β and γ are selected positive coefficients.

6. The method as claimed in claim 1, wherein one of the obtained compression potentials is called a compression potential of values and is computed for a value Vi of a given section according to the formula N(L−Hi), where N is a number of times the value Vi appears in the learning set, L is a length of the value Vi in bits, and Hi is a quantity, called a partial entropy estimator quantity, of a value that is computed according to the formula Hi=−fi log2(fi), where fi is a frequency of occurrence of the value Vi.

7. The method as claimed in claim 1, wherein one of the computed quantities is called a field bit compression potential and is computed for a rank i of a given section, with the ranks i varying from 0 to L−1, with L being a minimum length of the values taken by the section in the learning set, said length L being expressed as a number of bits, and said quantity is computed according to the formula 1−H(bi), where H(bi) is a quantity, called an entropy estimator quantity, of a field bit that is computed according to the formula H(bi)=−(fi·log2(fi)+(1−fi)·log2(1−fi)), with said formula being equal to 0 when fi equals 0 or 1, in which formula the values taken by the section in the learning set are expressed in sequences of ordered bits and where fi is a frequency of occurrence of one of the values 0 or 1 for the bit of rank i from among the values taken by the section in the learning set.

8. The method as claimed in claim 2, wherein the step of selecting a rule belonging to the set of compression rules comprises partitioning the learning set into subsets assigned to a rule of the set of compression rules, computing a compression potential for the rules of the set of compression rules and selecting the rule according to its compression potential, with the compression potential of a rule being computed based on field compression potentials computed on the subset of the learning set assigned to the compression rule.

9. The method as claimed in claim 2, wherein the step of creating a new rule from the selected rule is performed by creating one or more candidate rules and by retaining a rule from among the candidate rules created according to an efficiency of the compression performed by this rule on packets of the learning set.

10. The method as claimed in claim 2, wherein the step of creating a new rule from the selected rule is performed by selecting a section according to its field compression potential and by creating candidate rules formed by adding a compression operation to the selected rule applied to the values taken by the section.

11. A management entity device comprising:at least one processor; andat least one non-transitory computer readable medium comprising instructions stored thereon which when executed by the at least one processor configure the management entity device to manage obtaining of a set of compression rules able to compress a data packet transmitted in a network, the packet comprising sections taking respective values expressed in the form of a bit string, the packet being able to be compressed by applying compression rules able to remove bits from a value taken by a section of the packet, wherein the managing comprises:obtaining a compression potential for a given section, relative to the values taken by the given section in the packets belonging to a set, called a learning set, of data packets; andobtaining the set of compression rules as a function of the obtained compression potentials.

12. The management entity device as claimed in claim 11, wherein the instructions further configure the management entity device to:collect data packets from the network that are transmitted so as to form the learning set used to obtain the set of compression rules; anddeploy in a synchronized way the set of compression rules in nodes of the network.

13. A network equipment comprising the management entity device as claimed in claim 11.

14. (canceled)15. A non-transitory computer readable data medium storing a computer program comprising a sequence of code instructions for implementing a management method when the instructions are loaded into and executed by a processor, wherein the management method comprises:obtaining a set of compression rules able to compress a data packet transmitted in a network, the packet comprising sections taking respective values expressed in the form of bit strings, the packet being able to be compressed by applying compression rules able to remove bits from a value taken by a section of the packet, the obtaining comprising:for several given sections of packets, obtaining a compression potential for a given section, relative to the values taken by the given section in the packets belonging to a set, called a learning set, of data packets; andobtaining the set of compression rules as a function of the obtained compression potentials.

16. The method as claimed in claim 3, wherein one of the obtained compression potentials is called a corrected compression potential and is computed for a given section by multiplying the field compression potential by a correction factorα⁡(1-K-βN+γ),where N is a number of times that the section appears in the learning set, K is a number of different values taken by the section in the learning set, and α, β and γ are selected positive coefficients.