Method for distributing traffic over a set of links (L100, L200, L300) interconnecting a local autonomous system with a plurality of neighbouring autonomous systems (AS100, AS200, AS300) of the local autonomous system, the method comprising: /a/ receiving information at least relating to characteristics of the plurality of neighbouring autonomous systems (AS100, AS200, AS300); /b/ determining, on the basis of the information received, a result of a reward function, which is representative of a state of said set of links; /c/ triggering, depending on the information received and the result of the reward function, at least one action influencing a distribution of the traffic over the set of links (L100, L200, L300) so as to optimize the load state of the set of links (L100, L200, L300); /d/ repeating steps /a/ to /c/; the at least one action being identified by an artificial intelligence configured to learn to identify, based on successive results of the reward function, actions making it possible to distribute the traffic over the set of links (L100, L200, L300) so as to optimize the load state of the set of links (L100, L200, L300), wherein the information received according to step /a/ is representative of: - a load state of the set of links (L100, L200, L300); - a type of autonomous system for each of the neighbouring autonomous systems (AS100, AS200, AS300); and - prefixes relating to networks hosted by the local autonomous system and the neighbouring autonomous systems (AS100, AS200, AS300), the prefixes being advertised by an autonomous system to its neighbours. /a/ receiving information at least relating to characteristics of the plurality of neighbouring autonomous systems (AS100, AS200, AS300); /b/ determining, on the basis of the information received, a result of a reward function, which is representative of a state of said set of links; /c/ triggering, depending on the information received and the result of the reward function, at least one action influencing a distribution of the traffic over the set of links (L100, L200, L300) so as to optimize the load state of the set of links (L100, L200, L300); /d/ repeating steps /a/ to /c/; the at least one action being identified by an artificial intelligence configured to learn to identify, based on successive results of the reward function, actions making it possible to distribute the traffic over the set of links (L100, L200, L300) so as to optimize the load state of the set of links (L100, L200, L300), wherein the information received according to step /a/ is representative of: - a load state of the set of links (L100, L200, L300); - a type of autonomous system for each of the neighbouring autonomous systems (AS100, AS200, AS300); and - prefixes relating to networks hosted by the local autonomous system and the neighbouring autonomous systems (AS100, AS200, AS300), the prefixes being advertised by an autonomous system to its neighbours. - a load state of the set of links (L100, L200, L300); - a type of autonomous system for each of the neighbouring autonomous systems (AS100, AS200, AS300); and - prefixes relating to networks hosted by the local autonomous system and the neighbouring autonomous systems (AS100, AS200, AS300), the prefixes being advertised by an autonomous system to its neighbours.