Claims (15)
1. Способ групповой маршрутизации в самоорганизующихся беспроводных сетях, включающий следующие шаги:1. The method of group routing in self-organizing wireless networks, including the following steps:
- получают служебную информацию, включающую, по крайней мере, двухшаговую окрестность, состав групп и признак локальности каждой группы на каждом узле сети;- receive service information, including at least a two-step neighborhood, the composition of the groups and the sign of locality of each group at each network node;
- каждый узел сети на основании информации о своей двухшаговой окрестности определяет, является ли он ретранслятором для каждой из групп, при этом:- each network node on the basis of information about its two-step neighborhood determines whether it is a repeater for each of the groups, while:
- если группа является локальной, то ретрансляторы определяются таким образом, чтобы пакет, адресованный группе, был доставлен в пределах расположения участников данной группы,- if the group is local, then the repeaters are determined so that the packet addressed to the group is delivered within the location of the members of this group,
- иначе, ретрансляторы выбираются таким образом, чтобы пакет, адресованный группе, был доставлен на всю сеть;- otherwise, the repeaters are selected so that the packet addressed to the group is delivered to the entire network;
- узел-источник отправляет пакет, адресованный группе, своим соседям;- the source node sends a packet addressed to the group to its neighbors;
- получают пакет на узле сети, отличном от узла-источника;- receive a packet on a network node other than the source node;
- если узел сети, получивший пакет, является ретранслятором для данной группы, то ретранслируют пакет соседним узлам.- if the host that received the packet is a relay for this group, then the packet is relayed to neighboring nodes.
2. Способ по п. 1, характеризующийся тем, что узел-источник отправляет пакет, адресованный группе, только если в сети есть другие участники данной группы.2. The method according to claim 1, characterized in that the source node sends a packet addressed to the group only if there are other members of this group in the network.
3. Способ по п. 1, характеризующийся тем, что при ретрансляции пакета соседним узлам сети, отсеиваются дубликаты ранее полученных пакетов.3. The method according to claim 1, characterized in that when relaying the packet to neighboring network nodes, duplicates of previously received packets are eliminated.
4. Способ по п. 1, характеризующийся тем, что определение для каждого узла сети, является ли он ретранслятором для каждой из групп, происходит периодически с заранее заданным интервалом.4. The method according to p. 1, characterized in that the determination for each network node, whether it is a relay for each of the groups, occurs periodically with a predetermined interval.
5. Способ по п. 1, характеризующийся тем, что определение для каждого узла сети, является ли он ретранслятором для каждой из групп, происходит после обнаружения изменения информации о двухшаговой окрестности или состава группы.5. The method according to p. 1, characterized in that the determination for each network node, whether it is a relay for each of the groups, occurs after detecting changes in information about a two-step neighborhood or group composition.
6. Способ по п. 1, в котором для определения двухшаговой окрестности используют протокол управления соседством NHDP.6. The method of claim 1, wherein the NHDP Neighborhood Management Protocol is used to determine a two-step neighborhood.
7. Способ по п. 1, в котором для выбора ретрансляторов для доставки пакета на всю сеть, используются распределенные алгоритмы построения связного доминирующего множества, использующие информацию о двухшаговой окрестности, например: Ε-CDS, S-MPR, MPR-CDS, NS-MPR или UCDS.7. The method according to p. 1, in which to select repeaters for delivering the packet to the entire network, distributed algorithms are used to construct a connected dominant set using information about a two-step neighborhood, for example: Ε-CDS, S-MPR, MPR-CDS, NS- MPR or UCDS.
8. Способ по п. 1, в котором локальная группа - такая группа, что в двухшаговой окрестности хотя бы одного ее участника находятся все остальные участники группы.8. The method according to p. 1, in which the local group is such a group that in a two-step neighborhood of at least one of its members are all the other members of the group.
9. Способ по п. 1, характеризующийся тем, что тип групп может быть задан до начала работы сети согласно сценарию работы сети.9. The method according to p. 1, characterized in that the type of groups can be set before the network starts according to the scenario of the network.
10. Способ по п. 1, характеризующийся тем, что существуют два типа ретрансляторов для локальных групп, где первый тип ретрансляторов соединяет участников группы, а второй тип соединяет ретрансляторов первого типа с ретрансляторами первого типа и с участниками группы.10. The method according to p. 1, characterized in that there are two types of repeaters for local groups, where the first type of repeaters connects the members of the group, and the second type connects the repeaters of the first type with repeaters of the first type and with members of the group.
11. Способ по п. 10, в котором для определения, является ли узел ретранслятором первого типа, выполняются следующие шаги:11. The method according to p. 10, in which to determine whether the node is a relay of the first type, the following steps are performed:
- для каждой пары соседних узлов (x1, х2) данного узла сети (х), являющихся участниками группы, устанавливают счетчик n, равный 0;- for each pair of neighboring nodes (x1, x2) of this network node (x) that are members of the group, set the counter n equal to 0;
- если пара узлов x1 и х2 являются соседями, то увеличивают счетчик n;- if a pair of nodes x1 and x2 are neighbors, then increase the counter n;
- для пересечения списка соседей узлов x1, х2 и x определяют количество узлов, приоритет которых больше приоритета узла x- to intersect the list of neighbors of nodes x1, x2 and x, determine the number of nodes whose priority is greater than the priority of node x
или являющихся ретрансляторами первого типа для данной группы, и увеличивают на данное количество счетчик n;or being repeaters of the first type for a given group, and increase the counter n by a given amount;
- если счетчик n меньше порогового значения избыточности ретрансляторов, то узел назначает себя ретранслятором первого типа;- if the counter n is less than the threshold value of the redundancy of the relay, then the node designates itself as a relay of the first type;
12. Способ по п. 10, в котором для определения, является ли узел ретранслятором второго типа, выполняются следующие шаги:12. The method according to p. 10, in which to determine whether the node is a relay of the second type, the following steps are performed:
- определяют пары соседей (x1, х2) данного узла (х), один из которых является ретранслятором первого типа для данной группы, а второй является либо ретранслятором первого типа для данной группы, либо участником данной группы;- determine the pairs of neighbors (x1, x2) of the given node (x), one of which is a relay of the first type for this group, and the second is either a relay of the first type for this group, or a member of this group;
- если среди определенных пар соседей есть, по крайней мере, одна пара, не являющаяся соседями, и среди списка пересечения узлов данной пары x1, х2 и данного узла x нет узлов с большим приоритетом чем у узла x или узлов, являющихся ретрансляторами первого или второго типа для данной группы, то узел назначает себя ретранслятором второго типа.- if among certain pairs of neighbors there is at least one pair that is not neighbors, and among the intersection list of nodes of a given pair x1, x2 and this node x there are no nodes with higher priority than node x or nodes that are repeaters of the first or second type for this group, the node designates itself as a relay of the second type.
13. Способ по п. 1, в котором признак локальности группы определяется динамически.13. The method according to p. 1, in which the sign of the locality of the group is determined dynamically.
14. Способ по п. 1, в котором состав групп и признак задаются в виде массива или списка.14. The method according to claim 1, in which the composition of the groups and the attribute are set in the form of an array or list.
15. Способ по п. 13, в котором динамическое определение типа группы состоит из следующих шагов:15. The method according to p. 13, in which the dynamic determination of the type of group consists of the following steps:
- каждый узел периодически рассылает на всю сеть сообщение, в котором для каждой группы, участником которой данный узел является, указывается флаг, идентифицирующий факт того, что все остальные участники данной группы находятся в двухшаговой окрестности данного узла.- each node periodically sends a message to the entire network, in which for each group of which this node is a member, a flag identifying the fact that all other members of this group are in a two-step neighborhood of this node is indicated.
- если есть хотя бы один участник группы, от которого получено сообщение о том, что все остальные участники находятся в его двухшаговой окрестности, то считается, что группа имеет признак локальности, иначе, считается, что группа не имеет признака локальности.
- if there is at least one member of the group from whom a message has been received stating that all other members are in his two-step neighborhood, then the group is considered to have a locality sign, otherwise, it is considered that the group does not have a locality sign.