WO2015089710A1 - 一种序列号排序的方法以及终端设备 - Google Patents

一种序列号排序的方法以及终端设备 Download PDF

Info

Publication number
WO2015089710A1
WO2015089710A1 PCT/CN2013/089565 CN2013089565W WO2015089710A1 WO 2015089710 A1 WO2015089710 A1 WO 2015089710A1 CN 2013089565 W CN2013089565 W CN 2013089565W WO 2015089710 A1 WO2015089710 A1 WO 2015089710A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
serial number
group
terminal serial
local
Prior art date
Application number
PCT/CN2013/089565
Other languages
English (en)
French (fr)
Inventor
张祺智
夏亮
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN201380003301.3A priority Critical patent/CN104956623B/zh
Priority to PCT/CN2013/089565 priority patent/WO2015089710A1/zh
Publication of WO2015089710A1 publication Critical patent/WO2015089710A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1881Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with schedule organisation, e.g. priority, sequence management

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a method for sequencing serial numbers and a terminal device. Background technique
  • Multicast transmission refers to the implementation of a point-to-multipoint network connection between the sender and each receiver. If a sender transmits the same data to multiple recipients at the same time, only one copy of the same data packet is required. Through multicast transmission, data transmission efficiency can be improved.
  • the embodiment of the invention provides a method for sequencing serial numbers and a terminal device, which can quickly sort the terminal serial numbers to facilitate better multicast communication.
  • a first aspect of the present invention provides a method for sequencing a serial number, including:
  • Sorting the terminal serial number of the local end according to the sorting rule and the terminal serial number of the largest value found, to obtain the sorting position of the terminal serial number of the local end in the multicast group, and the terminal serial number of the maximum value is based on Found by the rules of the competition;
  • Multicast communication is performed according to the sorted position.
  • the competition rule is specifically:
  • the first bit value in the terminal serial number of the terminal device is used as a signal detection bit, and the next bit value in the terminal serial number is used as a signal detection bit according to the number transmission condition, and the step is repeated. And the last bit value in the terminal serial number is used as a signal detection bit, wherein if the terminal device satisfies the signal transmission condition, the local end detection signal is broadcast, otherwise, the detection signal is intercepted; The terminal device that does not detect the detection signal is determined as the terminal device having the terminal serial number of the largest value.
  • the terminal serial number of the local end is sorted according to the sorting rule and the terminal serial number of the found maximum value, And obtaining the sorting position of the terminal serial number of the local end in the multicast group, including: a terminal serial number of the value, if the determination is no, the terminal device corresponding to the terminal serial number that has been determined to be the maximum value is not included.
  • the multicast group determining, according to the contention rule, whether the terminal serial number of the local end is the terminal serial number of the maximum value, and repeating this step until determining that the terminal serial number of the local end is the maximum terminal serial number. ;
  • the current sorting position of the terminal serial number of the local end is recorded, so as to obtain the sorting position of the local terminal serial number in the multicast group.
  • the terminal serial number of the local end is sorted according to the sorting rule and the terminal serial number of the found maximum value
  • the obtaining the location of the terminal sequence number of the local end in the multicast group includes: using at least one bit of the first terminal sequence number of the local end as a packet detection bit, and when the packet detection bit is equal to the packet characteristic number And dividing the terminal serial number of the local end into a secondary terminal group associated with the packet characteristic number, where the secondary terminal group is a group generated according to the packet characteristic number, and the number of packet characteristics Include a plurality of values associated with the packet detection bits;
  • the decrementing collation rule is a rule set according to a terminal serial number of a maximum value.
  • the determining, by the terminal location number of the local terminal, the local terminal in the secondary terminal group The sorting position of the terminal serial number in the multicast group, including:
  • the determining, by the terminal location number of the local terminal, the local terminal in the secondary terminal group The sorting position of the terminal serial number in the multicast group including:
  • the frequency domain and the information sent by the terminal device in the time domain calculate the number of terminal devices in each secondary terminal group;
  • the terminal serial number in the secondary terminal group where the local end is located is decrementally sorted, and the sorting position of the terminal serial number of the local end in the secondary terminal group is obtained, including: the maximum value in the end group If the terminal serial number is not, the terminal serial number of the local terminal is determined according to the competition rule in the secondary terminal group that does not include the terminal device corresponding to the terminal serial number that has been determined to be the maximum value. Whether it is the terminal serial number of the maximum value, repeat this step until it is determined that the terminal serial number of the local terminal is the terminal serial number of the maximum value;
  • a second aspect of the present invention provides a terminal device, including:
  • a sorting module configured to sort the terminal serial number of the local end according to the sorting rule and the terminal serial number of the largest value found, to obtain the sorting position of the terminal serial number of the local end in the multicast group, and the terminal with the largest value
  • the serial number is found according to the competition rules
  • a communication module configured to perform multicast communication according to the sorted location.
  • the competition rule in the sorting module is specifically: using a first digit value in a terminal serial number of the terminal device as a signal detection bit, and sending a condition according to the number, and The next bit value in the terminal serial number is used as a signal detection bit, and the step is repeated until the last bit value in the terminal serial number is used as a signal detection bit, wherein if the terminal device satisfies the signal transmission condition Then, the local end detection signal is broadcast, otherwise, the detection signal is intercepted; after the repetition is finished, the terminal device that does not detect the detection signal is determined as the terminal device having the terminal serial number of the largest value.
  • the ordering module includes:
  • a determining unit configured to determine, according to the contention rule, whether the terminal serial number of the local end is a terminal serial number of a maximum value in the multicast group, and if the determination is no, the terminal that has been determined to be the maximum value is not included In the multicast group of the terminal device corresponding to the serial number, determining, according to the contention rule, whether the terminal serial number of the local end is the terminal serial number of the maximum value, repeating this step until determining the terminal sequence of the local end The terminal serial number whose number is the maximum value;
  • a recording unit configured to: when determining a terminal serial number of the terminal serial number of the local end, the current sorting position of the terminal serial number of the local end, to obtain the terminal serial number of the local end in the multicast group Sort position.
  • the ordering module includes:
  • a secondary grouping unit configured to detect at least one of the first digits of the terminal serial number of the local end as a packet a bit, and when the packet detection bit is equal to the packet characteristic number, the terminal sequence number of the local end is divided into a secondary terminal group associated with the packet characteristic number, and the secondary terminal group is according to the packet a group generated by the number of characteristics, the number of packet characteristics including a plurality of values associated with the packet detection bits;
  • a descending sorting unit configured to perform a descending ordering of the terminal serial numbers in the secondary terminal group where the local end is located according to the descending ordering rule, and obtain a sorting position of the terminal serial number of the local end in the secondary terminal group;
  • a calculating unit configured to calculate, according to the sorting position of the terminal serial number of the local end in the secondary terminal group, a sorting position of the terminal serial number of the local end in the multicast group;
  • the decrement sorting rule in the descending sorting unit is a rule set according to a terminal serial number of a maximum value.
  • the computing unit includes:
  • a quantity sensing subunit configured to listen to quantity information sent by a terminal device corresponding to a terminal serial number having the smallest value among the secondary terminal groups in the multicast group;
  • a first calculating subunit configured to calculate, according to the quantity information, a sorting position of the terminal serial number of the local end in the multicast group
  • the quantity information detected by the quantity listening subunit is the number of terminal devices in the secondary terminal group.
  • the computing unit includes:
  • a sending and listening subunit configured to send information in a frequency division multiple access manner with a terminal device in a corresponding sorting position in each secondary terminal group in the multicast group, and listen to the corresponding sorting position in each secondary terminal group.
  • Information sent by the terminal device calculating the number of terminal devices in each secondary terminal group;
  • the descending sorting unit includes:
  • a value judging subunit configured to determine, according to the contention rule, whether the terminal serial number of the local end is the terminal serial number of the largest value in the secondary terminal group where the local end is located, and if the determination is no, the judging is not included In the secondary terminal group of the terminal device corresponding to the terminal serial number of the largest value, determining whether the terminal serial number of the local end is the terminal serial number of the maximum value according to the competition rule, repeating this step until determining The terminal serial number of the local terminal whose terminal serial number is the maximum value;
  • a sorting record sub-unit configured to record a current sorting position of the terminal serial number of the local end when determining the terminal serial number of the local terminal whose serial number is the maximum value, and obtain the terminal serial number of the local end in the second The sort position in the secondary terminal group.
  • a third aspect of the invention provides a computer storage medium
  • the computer storage medium can store a program that, when executed, includes some or all of the steps of a method for sequencing a serial number provided by the first aspect.
  • a fourth aspect of the present invention provides a terminal device, including: a processor, a communication interface, and a memory, where
  • the communication interface is configured to communicate with a terminal device in a multicast group
  • the memory is used to store a program
  • the processor is configured to execute the program to implement
  • Sorting the terminal serial number of the local end according to the sorting rule and the terminal serial number of the largest value found, to obtain the sorting position of the terminal serial number of the local end in the multicast group, and the terminal serial number of the maximum value is based on Found by the rules of the competition;
  • Multicast communication is performed according to the sorted position.
  • the competition rule is specifically:
  • the first bit value in the terminal serial number of the terminal device is used as a signal detection bit, and according to the number transmission condition, and the next digit value in the terminal serial number is used as a signal detection bit, the step is repeated until Using the last digit of the terminal serial number as a signal detection bit, where When the terminal device satisfies the signal transmission condition, the local end detection signal is broadcasted, otherwise, the detection signal is intercepted; after the repetition is completed, the terminal device that does not detect the detection signal is determined as the terminal device having the terminal serial number of the largest value.
  • the processor is specifically configured to: a terminal serial number of the value, if the determination is no, not including In the multicast group of the terminal device corresponding to the terminal serial number that has been determined to have the largest value, determine whether the terminal serial number of the local end is the terminal serial number of the maximum value according to the contention rule, and repeat this step until Determining a terminal serial number of the terminal serial number of the local end as a maximum value;
  • the current sorting position of the terminal serial number of the local end is recorded, so as to obtain the sorting position of the local terminal serial number in the multicast group.
  • the processor is specifically configured to:
  • the first bit of the terminal sequence number of the local end is used as a packet detection bit, and when the packet detection bit is equal to the packet characteristic number, the terminal serial number of the local end is divided into two associated with the packet characteristic number.
  • the secondary terminal group is a group generated according to the packet characteristic number, and the packet characteristic number includes a plurality of values associated with the packet detection bit;
  • the decrementing collation rule is a rule set according to a terminal serial number of a maximum value.
  • the processor is specifically configured to:
  • the processor is specifically configured to:
  • the frequency domain and the information sent by the terminal device in the time domain calculate the number of terminal devices in each secondary terminal group;
  • the processor is specifically configured to: the terminal serial number of the maximum value in the end group, if the determination is no, in the secondary terminal group that does not include the terminal device corresponding to the terminal serial number that has been determined to be the maximum value, according to The competition rule determines whether the terminal serial number of the local end is the terminal serial number of the maximum value, and repeats this step until it is determined that the terminal serial number of the local end is the terminal serial number of the maximum value;
  • the current sorting position of the terminal serial number of the local end is recorded, and the sorting position of the terminal serial number of the local end in the secondary terminal group is obtained.
  • the embodiment of the present invention sorts the terminal serial number of the local end by using the sorting rule and the terminal serial number of the largest value found, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group, thereby being fast.
  • the ordering of the terminal serial numbers is implemented, so that when the central control node in the multicast network disappears or fails, each terminal device can continue normal order multicast communication according to its own order in the multicast network.
  • FIG. 1 is a schematic flowchart of a method for sequencing a serial number according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of another method for sequencing a serial number according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of a method for calculating a sort position according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of another method for calculating a sort position according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for descending sorting according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a terminal device according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a sorting module according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic structural diagram of another sorting module according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a computing unit according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another computing unit according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of a decrementing sorting unit according to an embodiment of the present invention
  • FIG. 13 is a schematic structural diagram of another terminal device according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic flowchart diagram of a method for ordering sequence numbers according to an embodiment of the present invention, where the method includes:
  • the sorting rule is a rule that is set according to the value of the serial number of the terminal, and the terminal device can sort the terminal serial number of the local end according to the sorting rule and the terminal serial number of the maximum value that is found, to obtain the terminal of the local end.
  • the sort position of the serial number in the multicast group is a rule that is set according to the value of the serial number of the terminal, and the terminal device can sort the terminal serial number of the local end according to the sorting rule and the terminal serial number of the maximum value that is found, to obtain the terminal of the local end.
  • the terminal serial number of the maximum value is found according to a competition rule.
  • the multicast group may be one of the terminal groups in the multicast communication, and the terminal group includes a plurality of terminal devices that can communicate with each other.
  • the competition rule is specifically: using a first digit value of the terminal serial number of the terminal device as a signal detection bit, and determining, according to the value of the signal detection bit and the listening state of the terminal device, Whether the terminal device satisfies the signal transmission condition, and the next digit in the terminal serial number is used as the signal detection bit, and the step is repeated until the last digit of the terminal serial number is used as the signal detection bit, where If the terminal device satisfies the signal transmission condition, the local end detection signal is broadcasted, otherwise, the detection signal is detected; after the repetition is ended, the terminal device that does not detect the detection signal is determined as the terminal with the terminal number of the largest value. device. Wherein, the simultaneously transmitted detection signals are not separated in the frequency domain position.
  • the specific process of the terminal device searching for the terminal serial number of the largest value in the multicast group may be: the terminal device uses the first digit of the terminal serial number of the local terminal as the signal detection bit, and determines whether the value of the signal detection bit satisfies the signal transmission.
  • the terminal device broadcasts the detection signal of the local end, otherwise, the detection signal is detected; after the repetition is over, if the detection signal is not detected, it is determined that the terminal serial number of the local end is The terminal serial number of the maximum value; if the detection signal is detected, the terminal device corresponding to the terminal serial number of the largest value in the multicast group is detected and found.
  • the signal transmission condition may be that the signal detection bit is 1, and the detection signal sent from other terminal devices is not detected before.
  • the detection signal may be an easy-to-detect signal, such as a ZC sequence. Assume that each signal detection bit uses one subframe, and each subframe needs to use 1 RB, when the terminal serial number has a 32-bit signal detection bit, the time required to find the terminal serial number of the largest value is 32 ms.
  • the process of sorting the terminal serial number may be: determining the original according to the competition rule. Whether the terminal serial number of the terminal is the terminal serial number of the largest value in the multicast group. If the determination is no, the terminal sequence number of the local terminal is determined to be the maximum value according to the competition rule, and is repeated. In this step, until the terminal sequence number of the terminal serial number of the local end is determined to be the maximum value; when it is determined that the terminal serial number of the local end is the terminal serial number of the maximum value, the current sorting position of the terminal serial number of the local end is recorded. And obtaining the sorting position of the terminal serial number of the local end in the multicast group.
  • the terminal device can know that it sends information to the group in a certain time domain and frequency domain location, and listens to other terminal devices in the group in a certain time domain and frequency domain location listening group.
  • the information for example, if the sorting position of the terminal device in the multicast group is the second digit, the terminal device may be in the second time after the first time domain location listens to the information. The domain location sends the message. Therefore, when the central control node in the multicast communication fails or disappears, each terminal device in the multicast group can perform multicast communication according to a certain rule according to its own sorting position or the sorting position of other terminal devices to avoid the terminal. The device does not know when it should send information and when it will listen for information.
  • each terminal device in the multicast group obtains its own sorting position in the multicast group by using the same sorting rule, and listens to the sorting position of the other terminal device in the sorting process, so that each terminal in the multicast group
  • the device can obtain the terminal serial number order of all the terminal devices in the multicast group, so that the multicast communication can be better completed between the terminal devices.
  • the embodiment of the present invention sorts the terminal serial number of the local end by using the sorting rule and the terminal serial number of the largest value found, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group, thereby being fast. Realize the ordering of the terminal serial number, so that the central control in the multicast network When the system node disappears or fails, each terminal device can continue normal multicast communication according to its own order in the multicast network.
  • FIG. 2 is a schematic flowchart of another method for ordering sequence numbers according to an embodiment of the present invention.
  • the method includes: a terminal number of a maximum value, and if the determination is no, the In the multicast group of the terminal device corresponding to the terminal serial number of the value, determining whether the terminal serial number of the local end is the terminal serial number of the maximum value according to the competition rule, repeating this step until determining the original The terminal serial number whose terminal serial number is the maximum value;
  • the terminal device may find the terminal serial number of the largest value in the multicast group according to the contention rule, and the terminal device may determine whether the terminal serial number of the local end is the terminal sequence of the maximum value found. If the determination is no, the terminal number of the local terminal is determined according to the competition rule in the multicast group that does not include the terminal device corresponding to the terminal number that has been determined to be the maximum value.
  • the maximum number of terminal serial numbers repeat this step, until it is determined that the terminal serial number of the local end is the terminal serial number of the current maximum value; when it is determined that the terminal serial number of the local end is the terminal serial number of the current maximum value, the recording office
  • the current sorting position of the terminal serial number of the local end; when it is determined that the terminal serial number of the local end is not the terminal serial number of the current maximum value, the terminal device corresponding to the terminal serial number that listens and records the current maximum value is in the multicast The sort position in the group.
  • the sorting rule used by S201 and S202 may be referred to as a descending ordering rule, and the descending ordering rule is specifically: a terminal sequence in which each terminal device in the multicast group selects the largest value from each terminal serial number according to the contention rule. No. In this case, each terminal device in the multicast group can know that the terminal device with the largest terminal number in the multicast group has the first position in the multicast group, except that it has the largest out of the multicast group. The serial number of the terminal with the largest value and the terminal serial number with the largest value The terminal device is only responsible for listening to the terminal serial number information of the second largest value and does not participate in the competition.
  • each terminal device in the multicast group can know that the terminal device having the terminal serial number of the second largest value is The sorting position in the multicast group is the second digit; in addition to the terminal sequence number of the terminal serial number having the largest value, the terminal serial number of the third largest value in the multicast group is selected, and the terminal having the largest value is simultaneously selected.
  • the terminal device of the serial number and the terminal device having the terminal serial number of the second largest value are only responsible for listening to the terminal serial number information of the third largest value and do not participate in the competition.
  • each terminal device in the multicast group is It can be known that the terminal device having the terminal serial number of the third largest value is ranked third in the multicast group, and the step is repeatedly performed until each terminal device in the multicast group can learn that the other party is in the The sort position in the multicast group.
  • the terminal serial number is a 32-bit binary number, and there are 100 terminal devices in the multicast group, according to the decrementing sorting rule, each time a sorting position of a terminal device is obtained, 32 subframes are required, and one subframe is required for each subframe.
  • the competition rule is specifically: using a first digit value of the terminal serial number of the terminal device as a signal detection bit, and determining, according to the value of the signal detection bit and the listening state of the terminal device, Whether the terminal device satisfies the signal transmission condition, and the next digit in the terminal serial number is used as the signal detection bit, and the step is repeated until the last digit of the terminal serial number is used as the signal detection bit, where If the terminal device satisfies the signal transmission condition, the local end detection signal is broadcasted, otherwise, the detection signal is detected; after the repetition is ended, the terminal device that does not detect the detection signal is determined as the terminal with the terminal number of the largest value. device.
  • the terminal device can know that it sends information to the group in a certain time domain and frequency domain location, and listens to other terminal devices in the group in a certain time domain and frequency domain location listening group.
  • the information for example, if the sorting position of the terminal device in the multicast group is the second digit, the terminal device may be in the second time after the first time domain location listens to the information. The domain location sends the message. Therefore, when the central control node in the multicast communication fails or disappears, each terminal device in the multicast group can perform multicast communication according to a certain rule according to its own sorting position or the sorting position of other terminal devices to avoid the terminal. The device does not know when it should send information and when it will listen for information.
  • the embodiment of the present invention sorts the terminal serial number of the local end by using the sorting rule and the terminal serial number of the largest value found, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group, thereby being fast.
  • the ordering of the terminal serial numbers is implemented, so that when the central control node in the multicast network disappears or fails, each terminal device can continue normal order multicast communication according to its own order in the multicast network.
  • FIG. 3 it is a schematic flowchart of another method for ordering sequence numbers according to an embodiment of the present invention.
  • the method includes:
  • the first at least one bit of the terminal sequence number of the local end is used as a packet detection bit, and when the packet detection bit is equal to the packet characteristic number, the terminal serial number of the local end is classified to be associated with the packet characteristic number.
  • the secondary terminal group is a group generated according to the packet characteristic number, and the packet characteristic number includes a plurality of values associated with the packet detection bit;
  • the number of packet characteristics includes 0, 1, 2, ..., ml.
  • the first 3 bits of the terminal sequence number are used as packet detection bits, and the packet detection bits may include 000, 001, 010, 011, 100, 101, 110, 111, when the packet detection bit is 000.
  • the corresponding terminal device is divided into the secondary terminal group whose packet characteristic number is 0; when the packet detection bit is 001, the corresponding terminal device is divided into the secondary terminal group whose packet characteristic number is 1; Similarly, when the packet detection bit is 111, the corresponding terminal device is divided into a secondary terminal group having a packet characteristic number of 7.
  • the terminal sequence numbers in the secondary terminal group where the local end is located are decremented and sorted according to the descending ordering rule, and the sorting position of the terminal serial number of the local end in the secondary terminal group is obtained.
  • the terminal device can sequence the terminal in the secondary terminal group where the local end is located according to the descending ordering rule. The number is sorted in descending order, and the sorting position of the terminal serial number of the local end in the secondary terminal group is obtained. The terminal device that sorts the last bit in each secondary terminal group will know the number of terminal devices in the secondary terminal group in which it is located.
  • the decrementing ordering rule is specifically: each terminal device in a secondary terminal group selects a terminal serial number with a maximum value from each terminal serial number according to the competition rule, and the secondary terminal group at this time
  • Each of the terminal devices can know that the terminal device having the terminal number of the largest value has the first position in the secondary terminal group; the terminal other than the terminal device having the terminal serial number of the largest value
  • the device continues to select the terminal serial number of the second largest value in the secondary terminal group according to the competition rule, and the terminal device having the terminal serial number of the largest value is only responsible for listening to the terminal of the second largest value.
  • the sequence number information does not participate in the competition.
  • each terminal device in the secondary terminal group can know that the terminal device having the second largest value terminal serial number is ranked in the second terminal group.
  • the terminal device having the terminal serial number of the largest value and the terminal device having the terminal serial number of the second largest value are only responsible for listening to the terminal serial number information of the third largest value and not participating in the competition.
  • Each terminal device in the secondary terminal group can learn that the terminal device having the terminal serial number of the third largest value has the third position in the secondary terminal group, and repeats this step until the secondary S303 And calculating a sorting position of the terminal serial number of the local end in the multicast group according to the sorting position of the terminal serial number of the local end in the secondary terminal group;
  • each secondary terminal group is generated according to the number of packet characteristics, each secondary terminal group can be sorted in descending order, and therefore, the terminal device can be based on other secondary terminals that are heard.
  • the number of terminal devices in the group is calculated by calculating the total number of terminal devices before the secondary terminal group where the local terminal is located, and then calculating the current position according to the sorting position of the terminal serial number of the local terminal in the secondary terminal group. The sorting position of the terminal serial number in the multicast group.
  • the terminal device can know that it sends information to the group in a certain time domain and frequency domain location, and listens to other terminal devices in the group in a certain time domain and frequency domain location listening group.
  • the information for example, if the sorting position of the terminal device in the multicast group is the second digit, the terminal device may be in the second time after the first time domain location listens to the information. The domain location sends the message. Therefore, when the central control node in the multicast communication fails or disappears, each terminal device in the multicast group can perform multicast communication according to a certain rule according to its own sorting position or the sorting position of other terminal devices to avoid the terminal. The device does not know when it should send information and when it will listen for information.
  • the embodiment of the present invention sorts the terminal serial number of the local end by using the sorting rule and the terminal serial number of the largest value found, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group, thereby being fast.
  • the ordering of the terminal serial numbers is implemented, so that when the central control node in the multicast network disappears or fails, each terminal device can continue normal order multicast communication according to its own order in the multicast network.
  • FIG. 4 is a schematic flowchart of a method for calculating a sorting position according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may correspond to S303 in the foregoing embodiment of FIG.
  • the method of the embodiment of the present invention specifically includes:
  • the terminal device can listen to the quantity information sent by the terminal device corresponding to the terminal serial number with the most value d in each secondary terminal group in the multicast group, where the quantity information is in the secondary terminal group.
  • the number of terminal devices can listen to the quantity information sent by the terminal device corresponding to the terminal serial number with the most value d in each secondary terminal group in the multicast group, where the quantity information is in the secondary terminal group. The number of terminal devices.
  • the first log 2 m bits of the terminal sequence number are packet detection bits, and the terminal sequence number is a p4 a p _ 2 ... the terminal sequence with the smallest value in each secondary terminal group
  • the terminal device that does not send the quantity information in the multicast group can detect the corresponding quantity information;
  • the corresponding terminal device no longer sends the quantity information, and at this time, all the terminal devices in the multicast group have already heard the quantity information sent by the terminal device corresponding to the terminal serial number with the smallest value among the respective secondary terminal groups.
  • the terminal device can calculate the sorting position of the terminal serial number of the local end in the multicast group according to the quantity information sent by the terminal device corresponding to the terminal serial number with the smallest value in each secondary terminal group.
  • the packet detection bit is 3 bits, and the packet characteristic number is 0, 1, 2, 3, 4, 5, 6, 7, respectively.
  • the packet detection bit of the terminal sequence number in the secondary terminal group corresponding to the packet characteristic number is respectively It is 000, 001, 010, 011, 100, 101, 110, 111, that is, there are 8 secondary terminal groups in the multicast group.
  • the terminal device that ranks the third bit in the secondary terminal group whose packet detection bit is 110 can hear the quantity information sent by the last terminal device in the secondary terminal group whose packet detection bit is 111, and the quantity information is the packet detection bit.
  • the terminal device that ranks the third bit in the secondary terminal group with the packet detection bit of 110 can calculate the order of the terminal serial number of the local end in the multicast group.
  • the steps performed by S301, S302, S401, and S402 are as follows: From obtaining the secondary terminal group to calculating the sorting position of the local end in the multicast group.
  • the steps of S301 and S302 need to perform n(p-log 2 m ) +1 subframes, and the steps of S401 and S402 need to log 2 m subframes, so the entire sorting process needs np-( n-1 ) log 2 m. +l subframes, where n is the number of terminals in the multicast group, p is the binary digit of the terminal sequence number, m is a power of 2, and log 2 m is the number of bits of the packet detection bit.
  • the embodiment of the present invention can calculate the sorting position of the terminal serial number in the multicast group by using the quantity information associated with each secondary terminal group, so that the terminal serial numbers can be quickly sorted.
  • 5 is a schematic flowchart of another method for calculating a sorting position according to an embodiment of the present invention.
  • the method in the embodiment of the present invention may correspond to S303 in the corresponding embodiment of FIG. 3 above.
  • the method of the embodiment of the present invention specifically includes:
  • the terminal device corresponding to the corresponding sorting position in each secondary terminal group in the multicast group sends information in a frequency division multiple access manner, and listens to the information sent by the terminal device in the corresponding sorting position in each secondary terminal group. And the terminal device and the terminal device in the corresponding sorting position in each secondary terminal group in the multicast group send information in a frequency division multiple access manner, and listen to the terminal device sent by the corresponding sorting position in each secondary terminal group. information. All terminal devices in the multicast group perform two-way mutual listening. For details, see Table 1 and Table 2 below:
  • 3 ⁇ 4 in Table 1 indicates that the secondary terminal group whose number of packet characteristics is i is sorted from large to small.
  • the terminal device sends the message.
  • b y in Table 2 indicates that the terminal device of the (j+i) mod (n) is sorted from the largest to the smallest in the secondary terminal group with the number of packet characteristics i, and n is the total number of terminal devices in the multicast group, ( j+i ) mod ( n ) is expressed as (j+i ) divided by the remainder of n.
  • m in Tables 1 and 2 is a power of 2
  • log 2 m is the number of bits of the packet detection bit.
  • the terminal device that sorts the first bit in each secondary terminal group transmits information in a frequency division multiple access manner, and other terminal devices listen for information, that is, the first in the table 1 a y
  • the terminal devices of one column send information in the same time domain and different frequency domains; then, the terminal devices that sort the second bit in each secondary terminal group send information in a frequency division multiple access manner, and repeat this step until each two
  • the terminal device that sorts the last bit in the secondary terminal group transmits information in a frequency division multiple access manner.
  • the second overall listening is performed.
  • the terminal devices in the first column of b y send information in the same time domain and different frequency domains.
  • the other terminal device interception information that is, the terminal device that sorts the first in the secondary terminal group whose number of packet characteristics is 0, and the terminal device that sorts the second in the secondary terminal group whose packet characteristic number is 1, and the number of packet characteristics is
  • the terminal device that sorts the third terminal device in the secondary terminal group of 2 and the terminal device that sorts the (m) mod (n) in the secondary terminal group whose number of packet characteristics is m-1 transmits the information in a frequency division multiple access manner;
  • the terminal devices in the second column of b y send information in the same time domain and different frequency domains until the terminal devices in the last column of b y send information in the same time domain and different frequency domains.
  • All the terminal devices can transmit information in a frequency division multiple access manner to the terminal devices in the corresponding sorting positions in the secondary terminal groups in the multicast group, and listen to the terminal devices in the corresponding sorting positions in the secondary terminal groups.
  • Information The information sent by the terminal device may include its own terminal serial number, so that after the two global mutual listening ends, each terminal device can know the terminal serial number of each terminal device in the multicast group.
  • any two terminal devices that do not transmit information in the same time domain can know which secondary terminal group the other party is sorting.
  • the terminal device so that after the two overall mutual listening ends, each terminal device can calculate the terminal in each secondary terminal group according to the information sent by the terminal device in the corresponding frequency domain and time domain. The number of devices.
  • the terminal device ranked second in the secondary terminal group having the packet characteristic number of 1 can hear the information transmitted by the terminal devices of the secondary terminal group having the number of packet characteristics of 2 in the sequence of 1 to 9, so that the number of packet characteristics is
  • the terminal device that sorts the second in the secondary terminal group of 1 can calculate the number of terminal devices in the secondary terminal group having the packet characteristic number of 2, and so on, and the secondary terminal group having the packet characteristic number of 1.
  • the terminal device of the second sorting unit can calculate the number of terminal devices in each secondary terminal group according to all the information that is heard.
  • Each terminal device can calculate a sorting position of each terminal sequence number in the multicast group according to the number of terminal devices in each secondary terminal group. For example, in the multicast group, there are a secondary terminal group having a packet characteristic number of 0, a secondary terminal group having a packet characteristic number of 1, a secondary terminal group having a packet characteristic number of 2, and a secondary terminal having a packet characteristic number of 3.
  • a group that is, there are four secondary terminal groups, and the number of terminal devices in the secondary terminal group in which the number of the terminal devices of the fourth terminal group in which the number of packet characteristics is 1 is 2 is 8
  • the number of terminal devices in the secondary terminal group with the number of packet characteristics is three, and the terminal device that ranks the fourth in the secondary terminal group with the packet characteristic number of 1 can calculate the terminal sequence number of the terminal in the multicast group.
  • the steps performed by S301, S302, S501, S502, and S503 are as follows: From obtaining the secondary terminal group to the overall mutual listening to calculating the sorting position of the local end in the multicast group.
  • the steps of S301 and S302 need to be n ( p-log 2 m ) +1 subframes, and the steps of S501, S502, and S503 need 2n subframes, so the whole sorting process needs n ( p-log 2 m+2 ) +1 subframe, where n is the number of terminals in the multicast group, p is the binary digit of the terminal sequence number, m is a power of 2, and log 2 m is the number of bits of the packet detection bit.
  • the order position of the terminal sequence number in the multicast group can be calculated through two overall mutual listening, so that the terminal serial numbers can be quickly sorted.
  • FIG. 6 is a schematic flowchart of a method for descending ordering according to an embodiment of the present invention; the method in the embodiment of the present invention may correspond to the foregoing embodiment in FIG. S302.
  • the method of the embodiment of the present invention specifically includes: a terminal sequence number of a maximum value in the secondary terminal group, and if the determination is no, the second terminal device corresponding to the terminal serial number that has been determined to be the maximum value is not included.
  • the sorting rule used by S601 and S602 is called a descending sorting rule, and the descending sorting rule is specifically: each terminal device in a certain secondary terminal group selects the largest value from each terminal serial number according to the competition rule. a serial number of the terminal, in which the terminal devices in the secondary terminal group can learn that the sorting position of the terminal device having the largest terminal number in the secondary terminal group is continuously selected according to the competition rule.
  • the terminal serial number of the second largest value in the secondary terminal group, and the terminal device having the terminal serial number of the largest value is only responsible for listening to the terminal serial number information of the second largest value and does not participate in the competition.
  • the terminal devices in the secondary terminal group can know that the terminal device having the second largest value of the terminal serial number has the second position in the secondary terminal group; except for the terminal sequence having the largest value
  • the terminal device other than the terminal device of the second largest value and the terminal device of the second largest value terminal serial number continue to select the secondary terminal group according to the competition rule
  • the terminal serial number of the third largest value, the terminal device having the terminal serial number of the largest value and the terminal device having the terminal serial number of the second largest value are only responsible for listening to the terminal serial number information of the third largest value and If the terminal device in the secondary terminal group can know that the terminal device having the third largest value of the terminal serial number has the third position in the secondary terminal group, the repeating position is repeated. This step is performed until each terminal device in the secondary terminal group can know the sorting position of the other party in the secondary terminal group. The device is sorted.
  • FIG. 7 is a schematic structural diagram of a terminal device 1 according to an embodiment of the present invention.
  • the terminal device 1 may include: a sorting module 10, a communication module 20;
  • the sorting module 10 is configured to sort the terminal serial number of the local end according to the sorting rule and the terminal serial number of the maximum value that is found, to obtain the sorting position of the terminal serial number of the local end in the multicast group, where the maximum The terminal serial number of the value is found according to the competition rule;
  • the sorting rule is a rule that is set according to the value of the terminal serial number
  • the sorting module 10 may sort the terminal serial number of the local end according to the sorting rule and the terminal serial number of the maximum value that is found, to obtain the The sorting position of the local terminal serial number in the multicast group.
  • the terminal serial number of the maximum value is found according to a competition rule.
  • the multicast group may be one of the terminal groups in the multicast communication, and the terminal group includes a plurality of terminal devices 1 that can communicate with each other.
  • the contention rule in the sorting module 10 is specifically: using a first bit value in the terminal serial number of the terminal device 1 as a signal detection bit, and determining whether the value of the signal detection bit satisfies a signal transmission condition, And repeating the next digit of the terminal serial number as a signal detection bit, until the last digit of the terminal serial number is used as a signal detection bit, wherein if the value of the signal detection bit satisfies the signal When the transmission condition is transmitted, the local end detection signal is broadcast, otherwise, the detection signal is detected; after the repetition is completed, the terminal device 1 that does not detect the detection signal is determined as the terminal device 1 having the terminal serial number of the largest value.
  • the detection signals transmitted at the same time are not separated in the frequency domain position.
  • the specific process of searching for the terminal serial number of the largest value in the multicast group in the sorting module 10 may be: the sorting module 10 uses the first digit value of the terminal serial number of the local end as a signal detection bit, and determines the signal detection. Whether the value of the bit satisfies the signal transmission condition, and the next digit in the terminal serial number of the local terminal is used as the signal detection bit, and the step is repeated until the last digit of the terminal serial number of the local terminal is used as a signal.
  • the terminal serial number of the local terminal is the terminal number of the maximum value; if the detection signal is detected, the terminal that listens and finds the largest value in the multicast group is detected.
  • the terminal device 1 corresponding to the serial number.
  • the signal transmission condition may be that the signal detection bit is 1, and the detection signal sent from the other terminal device 1 is not detected before.
  • the detection signal may be an easy-to-detect signal, such as a ZC sequence. It is assumed that each signal detection bit uses one subframe, and one RB is required for each subframe. When the terminal sequence number has a 32-bit signal detection bit, the time required to find the terminal serial number of the largest value is 32 ms.
  • the process of sorting the terminal serial number by the sorting module 10 may specifically be: Determining, according to the competition rule, whether the terminal serial number of the local end is the terminal serial number of the largest value in the multicast group, and if the determination is no, the terminal sequence number corresponding to the terminal number that has been determined to be the maximum value is not included.
  • the terminal group of the terminal device determines, according to the contention rule, whether the terminal serial number of the local end is the terminal serial number of the maximum value, and repeats this step until it is determined that the terminal serial number of the local end is the maximum value.
  • the communication module 20 is configured to perform multicast communication according to the sorted location
  • the terminal device 1 can know that it sends information to the group in a certain time domain and frequency domain location according to its own sorting position, and sends the information to other terminal devices in the certain time domain and frequency domain location listening group. For example, if the sorting position of the terminal device 1 in the multicast group is the second bit, after the terminal device listens to the information in the first time domain location, the terminal device 1 may be in the first Two time domain locations send information. Therefore, when the central control node in the multicast communication fails or disappears, each terminal device in the multicast group can perform multicast communication according to a certain rule according to its own sorting position or the sorting position of other terminal devices to avoid the terminal. Device 1 does not know when it is time to send information and when to listen for information.
  • FIG. 8 is a schematic structural diagram of the sorting module 10 in FIG. 7 , the sorting module 10 includes: a determining unit 101 and a recording unit 102;
  • the determining unit 101 is configured to determine, according to the contention rule, whether the terminal serial number of the local end is the terminal serial number of the largest value in the multicast group, and if the determination is no, the determination is not included In the multicast group of the terminal device corresponding to the terminal serial number of the largest value, determining whether the terminal serial number of the local end is the terminal serial number of the maximum value according to the contention rule, repeating this step until determining the The terminal serial number of the local terminal whose serial number is the maximum value;
  • the recording unit 102 is configured to: when determining the terminal serial number of the local terminal whose serial number is the maximum value, record the current sorting position of the terminal serial number of the local end, to obtain the terminal serial number of the local end in the group Sort position in the broadcast group;
  • the determining unit 101 may find the terminal serial number of the largest value in the multicast group according to the contention rule, and the determining unit 101 may determine whether the terminal serial number of the local end is the maximum value that is found. If the judgment is no, the terminal group number of the local terminal is determined to be the current maximum value according to the competition rule in the multicast group that does not include the terminal sequence number that has been determined to be the maximum value.
  • the terminal sequence number is repeated until the terminal serial number of the local end is the terminal serial number of the current maximum value; when the determining unit 101 determines that the terminal serial number of the local end is the terminal serial number of the current maximum value,
  • the recording unit 102 may record the current sorting position of the terminal serial number of the local end; when the determining unit 101 determines that the terminal serial number of the local end is not the terminal serial number of the current maximum value, the recording unit 102 further The sorting position of the terminal device 1 corresponding to the terminal serial number of the current maximum value in the multicast group can be monitored and recorded.
  • the sequence rule, the decrementing ordering rule is specifically: each terminal device 1 in the multicast group selects the terminal serial number of the largest value from each terminal serial number according to the competition rule, and each terminal in the multicast group at this time
  • the device 1 can know that the terminal device 1 having the terminal serial number having the largest value has the first position in the multicast group; the terminal device 1 other than the terminal device 1 having the terminal serial number having the largest value continues to be based on
  • the competition rule selects the terminal serial number of the second largest value in the multicast group, and the terminal device 1 having the terminal serial number of the largest value is only responsible for listening to the terminal serial number information of the second largest value. And not participating in the competition.
  • each terminal device 1 in the multicast group can know that the terminal device 1 having the second largest value of the terminal serial number is ranked second in the multicast group;
  • the terminal device 1 of the terminal serial number and the other terminal device 1 other than the terminal device 1 of the second largest value terminal serial number continue to select the multicast group according to the competition rule.
  • the terminal serial number of the third largest value, the terminal device 1 having the terminal serial number of the largest value, and the terminal device 1 having the terminal serial number of the second largest value are only responsible for listening to the terminal serial number of the third largest value.
  • the information does not participate in the competition.
  • each terminal device 1 in the multicast group can know that the terminal device 1 having the third largest value of the terminal serial number is ranked third in the multicast group, and the execution is repeated.
  • FIG. 9 is a schematic structural diagram of another sorting module 10 in FIG. 7 , the sorting module 10 may include: a secondary grouping unit 103, a descending sorting unit 104, and a calculating unit 105;
  • the secondary grouping unit 103 is configured to use the first at least one bit of the terminal serial number of the local end as a packet detection bit, and when the packet detection bit is equal to the packet characteristic number, divide the terminal serial number of the local end In the secondary terminal group associated with the packet characteristic number, the secondary terminal group is a group generated according to the packet characteristic number, and the packet characteristic number includes a plurality of values associated with the packet detection bit ;
  • the secondary packet unit 103 divides the local end into a secondary terminal group whose packet characteristic number is 0; when the packet detection bit is 001, the secondary packet unit 103 The local end is divided into a secondary terminal group whose packet characteristic number is 1, and so on, when the score is When the group detection bit is 111, the secondary grouping unit 103 divides the local end into a secondary terminal group having a packet characteristic number of 7.
  • the decrement sorting unit 104 is configured to perform a descending ordering of the terminal serial numbers in the secondary terminal group where the local end is located according to the descending ordering rule, and obtain a sorting position of the terminal serial number of the local end in the secondary terminal group;
  • the decrement sorting unit 104 may perform a descending ordering of the terminal serial numbers in the secondary terminal group where the local end is located according to the descending sorting rule, and obtain a sorting position of the terminal serial number of the local end in the secondary terminal group.
  • the terminal device 1 that sorts the last bit in each secondary terminal group will know the number of terminal devices 1 in the secondary terminal group in which it is located.
  • the decrementing ordering rule is specifically: each terminal device 1 in a certain secondary terminal group selects a terminal serial number with a maximum value from each terminal serial number according to the competition rule, and the secondary terminal at this time Each terminal device 1 in the group can know that the sorting position of the terminal device 1 having the terminal serial number having the largest value in the secondary terminal group is the first bit; except for the second in the terminal secondary terminal group having the largest value.
  • the terminal serial number of the terminal with the largest value, and the terminal device 1 having the terminal serial number of the largest value is only responsible for listening to the terminal serial number information of the second largest value and does not participate in the competition, at this time in the secondary terminal group
  • Each terminal device 1 can know that the terminal device 1 having the second largest value of the terminal serial number has the second position in the secondary terminal group; the terminal device 1 and the terminal except the terminal serial number having the largest value.
  • the other terminal device 1 other than the terminal device 1 of the two-digit terminal serial number continues to select the third largest of the secondary terminal groups according to the competition rule
  • the terminal serial number of the value, the terminal device 1 having the terminal serial number of the largest value and the terminal device 1 having the terminal serial number of the second largest value are only responsible for listening to the terminal serial number information of the third largest value and not participating
  • each terminal device 1 in the secondary terminal group can know that the terminal device 1 having the terminal serial number of the third largest value has the third position in the secondary terminal group, and repeats This step is performed until each terminal device 1 in the secondary terminal group can know the sorting position of the other party in the secondary terminal group.
  • the calculating unit 105 is configured to be in the secondary terminal group according to the terminal serial number of the local end
  • the sorting position of the local terminal calculates the sorting position of the terminal serial number of the local end in the multicast group; specifically, since each secondary terminal group is generated according to the number of grouping characteristics, each of the ordering units can be in descending order
  • the secondary terminal group performs the sorting. Therefore, the calculating unit 105 can calculate the terminal device 1 before the secondary terminal group where the local end is located according to the number of the terminal devices 1 in the other secondary terminal groups that are heard. The total number, so that the calculating unit 105 calculates the sorting position of the terminal serial number of the local end in the multicast group according to the sorting position of the terminal serial number of the local end in the secondary terminal group.
  • the computing unit 105 includes: a quantity listening subunit 1051, a first computing subunit 1052;
  • the subunit 1051 is configured to listen to the quantity information sent by the terminal device 1 corresponding to the terminal serial number with the smallest value among the secondary terminal groups in the multicast group;
  • the quantity listening subunit 1051 can listen to the quantity information sent by the terminal device 1 corresponding to the terminal serial number with the smallest value among the secondary terminal groups in the multicast group. For example, let m be a power of 2, the first log 2 m bits of the terminal sequence number are the packet detection bits, and the terminal sequence number is ap pj a.
  • the terminal device 1 corresponding to the terminal sequence number with the smallest value in each secondary terminal group can simultaneously transmit the quantity information in the ap-fl of the terminal sequence number of the terminal, and the terminal device 1 that does not send the quantity information in the multicast group at this time
  • the number of the listening subunits 1051 of the terminal device 1 that does not send the quantity information in the multicast group can detect the corresponding quantity information; until the terminal with the smallest value in each secondary terminal group in the multicast group
  • the terminal device 1 corresponding to the serial number is at a p4 .
  • g2 (m) L after sending the number of messages, each of the terminal group in the second minimum value of sequence number corresponding to the terminal apparatus 1 does not send the terminal number information, and the multicast group at this time all terminal devices of a number of listeners
  • the subunit 1051 has already heard the quantity information transmitted by the terminal device 1 corresponding to the terminal serial number having the smallest value among the respective secondary terminal groups.
  • the quantity information detected by the quantity listening subunit 1051 is the number of the terminal devices 1 in the secondary terminal group.
  • the first calculating subunit 1052 is configured to calculate, according to the quantity information, the end of the local end The sorting position of the serial number in the multicast group;
  • the first calculating sub-unit 1052 may calculate the sorting position of the terminal serial number of the local end in the multicast group according to the quantity information sent by the terminal device 1 corresponding to the terminal serial number with the smallest value in each secondary terminal group. .
  • the packet detection bit is 3 bits, and the packet characteristic number is 0, 1, 2, 3, 4, 5, 6, 7, respectively.
  • the packet detection bit of the terminal sequence number in the secondary terminal group corresponding to the packet characteristic number is respectively It is 000, 001, 010, 011, 100, 101, 110, 111, that is, there are 8 secondary terminal groups in the multicast group.
  • the number of terminal devices 1 sorting the third bit in the secondary terminal group whose packet detection bit is 110 is the number of the last terminal device 1 in the secondary terminal group whose packet detection bit is 111 can be heard.
  • the quantity information is 8 terminal devices 1 in the secondary terminal group with the packet detection bit 111, and the first calculation of the third terminal device 1 in the secondary terminal group with the packet detection bit being 110
  • the sorting position of the terminal serial number in the multicast group is 8 terminal devices 1 in the secondary terminal group with the packet detection bit 111, and the first calculation of the third terminal device 1 in the secondary terminal group with the packet detection bit being 110
  • the computing unit 105 may include: a sending listening subunit 1053, a quantity calculating subunit 1054, and a second computing sub. Unit 1055;
  • the sending and listening subunit 1053 is configured to send information in a frequency division multiple access manner to the terminal device 1 corresponding to the corresponding sorting position in each secondary terminal group in the multicast group, and listen to each secondary terminal group. Information sent by the terminal device 1 of the corresponding sorting position;
  • the sending and listening subunit 1053 and the terminal device 1 of the corresponding sorting position in each secondary terminal group in the multicast group send information in a frequency division multiple access manner, and listen to each secondary terminal group.
  • All terminal devices 1 in the multicast group will perform two-way mutual listening. For details, see Table 1 and Table 2 below:
  • 3 ⁇ 4 in Table 1 indicates that the terminal device 1 that sorts j from the largest to the smallest in the secondary terminal group whose number of packet characteristics is i transmits information.
  • b y in Table 2 indicates that the terminal device 1 that sorts (j+i) mod ( n ) from the largest to the smallest in the secondary terminal group whose number of packet characteristics is i, n is the total number of terminal devices 1 in the multicast group.
  • (j+i ) mod ( n ) is expressed as (j+i ) divided by the remainder of n.
  • m in Tables 1 and 2 is a power of 2
  • log 2 m is the number of bits of the packet detection bit.
  • the first terminal device is sorted in each secondary terminal group.
  • the transmission intercepting sub-unit 1053 transmits information in a frequency division multiple access manner, and the transmission listening sub-unit 1053 of the other terminal device 1 listens for information, that is, the terminal device 1 of the first column of a y in Table 1 is the same Sending information on the domain and in different frequency domains; then, the terminal device 1 that sorts the second bit in each secondary terminal group transmits the information in a frequency division multiple access manner, and repeats this step until the last one in each secondary terminal group is sorted.
  • the bit terminal device 1 transmits information in a frequency division multiple access manner.
  • the transmitting listening subunit 1053 of the terminal device 1 of the first column of b y is in the same time domain.
  • the information is transmitted in different frequency domains, and the sending and listening subunit 1053 of the other terminal device 1 listens to the information, that is, the terminal device 1 that sorts the first in the secondary terminal group with the number of packet characteristics is 0, and the number of packet characteristics is 1. Sorting the second terminal device 1 in the secondary terminal group and the second terminal group having the packet characteristic number 2 in the third terminal group Terminal device 1 and the secondary terminal group with the number of packet characteristics m-1 are sorted by (m) mod
  • the terminal device 1 of (n) transmits information in a frequency division multiple access manner; then, the terminal device 1 in the second column of b y transmits information in the same time domain and different frequency domains until the terminal device of the last column of b y 1 Sending information in the same time domain and in different frequency domains.
  • all the terminal devices 1 in the multicast group can be more frequently divided with the terminal devices 1 in the corresponding sorting positions in the secondary terminal groups in the multicast group.
  • the information is transmitted in the manner of the address, and the information transmitted by the terminal device 1 in the corresponding sorting position in each secondary terminal group is monitored.
  • the information sent by the terminal device 1 may include its own terminal serial number, so that after the two global mutual listening ends, each terminal device 1 can know the terminal serial number of each terminal device 1 in the multicast group.
  • the quantity calculation sub-unit 1054 is configured to calculate the number of the terminal devices 1 in each secondary terminal group according to the information sent by the terminal device 1 in the corresponding frequency domain and the time domain;
  • any two terminal devices 1 that do not transmit information in the same time domain can know which secondary terminal group the other party is in.
  • the terminal device 1 of the second terminal group in the secondary terminal group having the packet characteristic number of 1 can hear the information transmitted by the terminal device 1 of the sequence 1 to 9 in the secondary terminal group having the packet characteristic number of 2, and thus the packet characteristics
  • the number of terminal devices 1 sorting subunit 1054 in the secondary terminal group of number 1 can calculate that the number of terminal devices 1 in the secondary terminal group having the number of packet characteristics is 2, and so on, grouping
  • the number of terminal devices 1 sorting the second terminal unit 1 in the secondary terminal group having the number of characteristics of 1 can calculate the number of terminal devices 1 in each secondary terminal group based on all the information that is heard.
  • the second calculating sub-unit 1055 is configured to calculate, according to the number of the terminal devices 1 in each secondary terminal group, a sorting position of the terminal serial number of the local end in the multicast group;
  • the second calculating sub-unit 1055 of each terminal device 1 can calculate the sorting positions of the respective terminal serial numbers in the multicast group according to the number of the terminal devices 1 in the respective secondary terminal groups. For example, in the multicast group, there are a secondary terminal group having a packet characteristic number of 0, a secondary terminal group having a packet characteristic number of 1, a secondary terminal group having a packet characteristic number of 2, and a secondary terminal having a packet characteristic number of 3. Group, that is, there are 4 times In the terminal group, when the terminal device 1 that sorts the fourth in the secondary terminal group having the number of packet characteristics is 1, the number of terminal devices 1 in the secondary terminal group in which the number of packet characteristics is 2 is 8, and the number of packet characteristics is 3.
  • the number of terminal devices 1 in the secondary terminal group is nine, and the second computing sub-unit 1055 of the terminal device 1 sorting the fourth in the secondary terminal group having the packet characteristic number of 1 can calculate its own terminal serial number in the multicast.
  • the descending sorting unit 104 in FIG. 9 above, the descending sorting unit 104 includes: a numerical determining subunit 1041, a sorting recording subunit 1042;
  • the value judging subunit 1041 is configured to determine, according to the competition rule, whether the terminal serial number of the local end is the terminal serial number of the largest value in the secondary terminal group where the local end is located, and if the determination is no, the In the secondary terminal group of the terminal device corresponding to the terminal sequence number that has been determined to be the maximum value, determining whether the terminal serial number of the local end is the terminal number of the maximum value according to the contention rule, repeating this step
  • the sorting record subunit 1042 is configured to determine the terminal sequence of the terminal serial number of the local end, and is used to record the terminal of the local end when determining the terminal serial number of the terminal serial number of the local end as the maximum value. a current sorting position of the serial number, and obtaining a sorting position of the terminal serial number of the local end in the secondary terminal group;
  • the sorting rule used by the value judging subunit 1041 and the sorting subunit 1042 is called a decrement sorting rule, and the decrementing sorting rule is specifically: each terminal device 1 in a certain secondary terminal group according to the actual The contention sequence selects the terminal serial number of the largest value from each terminal serial number, and at this time, each terminal device 1 in the secondary terminal group can know the terminal device 1 having the terminal serial number having the largest value in the second
  • the sorting position in the terminal group is the first digit; except for the terminal serial number having the second largest value in the secondary terminal group having the largest value, the terminal device 1 having the terminal serial number having the largest value is only responsible for listening to the The second largest value of the terminal serial number information and does not participate in the competition.
  • each terminal device 1 in the secondary terminal group can know that the terminal device 1 having the second largest value of the terminal serial number is in the second
  • the sorting position in the terminal group is the second digit; the terminal device 1 having the terminal serial number of the terminal having the largest value and the terminal device 1 having the terminal serial number of the second largest value
  • the terminal device 1 other than the terminal device 1 continues to select the terminal serial number of the third largest value in the secondary terminal group according to the competition rule, and the terminal device 1 having the terminal serial number of the largest value and the second largest
  • the terminal device 1 of the terminal serial number of the value is only responsible for listening to the terminal serial number information of the third largest value and does not participate in the competition.
  • each terminal device 1 in the secondary terminal group can be known to have the third
  • the terminal device 1 of the terminal serial number of the large value is the third position in the secondary terminal group, and the present step is repeatedly performed until each terminal device 1 in the secondary terminal group can know that the other party is in the office.
  • the sorting position in the secondary terminal group is the third position in the secondary terminal group, and the present step is repeatedly performed until each terminal device 1 in the secondary terminal group can know that the other party is in the office.
  • the embodiment of the present invention sorts the terminal serial number of the local end by using the sorting rule and the terminal serial number of the largest value found, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group, thereby being fast.
  • the ordering of the terminal serial numbers is implemented, so that when the central control node in the multicast network disappears or fails, each terminal device 1 can continue normal order multicast communication according to its own order in the multicast network.
  • the embodiment of the present invention further provides a computer storage medium, wherein the computer storage medium may store a program, where the program includes a part of the method for sorting serial numbers described in the method embodiments of FIG. 1 to FIG. Or all steps.
  • FIG. 13 is a schematic structural diagram of another terminal device 1 according to an embodiment of the present invention.
  • the terminal device 1 may include a processor 1001, a communication interface 1002, and a memory 1003.
  • the number of processors 1001 in the terminal device 1 It can be one or more, as shown in Figure 13 by a processor 1001).
  • the processor 1001, the communication interface 1002, and the memory 1003 may be connected by a communication bus or other means, wherein FIG. 13 is exemplified by a communication bus connection.
  • the communication interface 1002 is configured to communicate with the terminal device 1 in the multicast group;
  • the memory 1003 is configured to store a program;
  • the processor 1001 is configured to execute the program to implement
  • Sorting the terminal serial number of the local end according to the sorting rule and the terminal serial number of the largest value found, to obtain the sorting position of the terminal serial number of the local end in the multicast group, and the terminal serial number of the maximum value is based on Found by the rules of the competition;
  • Multicast communication is performed according to the sorted position.
  • the competition rule is specifically: The first bit value in the terminal serial number of the terminal device 1 is used as a signal detection bit, and according to the foot signal transmission condition, and the next digit value in the terminal serial number is used as a signal detection bit, the step is repeated. Up to the last bit value in the terminal serial number is used as a signal detection bit, wherein if the terminal device 1 satisfies the signal transmission condition, the local end detection signal is broadcasted; otherwise, the interception detection signal is after the repetition is over, The terminal device 1 that does not hear the detection signal determines the terminal device 1 that has the terminal serial number of the largest value.
  • the processor 1001 performs the sorting of the terminal serial number of the local end according to the terminal sequence number of the maximum value according to the sorting rule and the found maximum value, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group.
  • the processor 1001 is specifically configured to: a terminal sequence number of a value, if the determination is no, in the multicast group that does not include the terminal device corresponding to the terminal sequence number that has been determined to be the maximum value, according to the multicast group
  • the competition rule determines whether the terminal serial number of the local end is the terminal serial number of the maximum value, and repeats this step until it is determined that the terminal serial number of the local end is the terminal serial number of the maximum value;
  • the current sorting position of the terminal serial number of the local end is recorded, so as to obtain the sorting position of the local terminal serial number in the multicast group.
  • the processor 1001 performs the sorting of the terminal serial number of the local end according to the terminal sequence number of the maximum value according to the sorting rule and the found maximum value, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group.
  • the processor 1001 is specifically configured to:
  • the first bit of the terminal sequence number of the local end is used as a packet detection bit, and when the packet detection bit is equal to the packet characteristic number, the terminal serial number of the local end is divided into two associated with the packet characteristic number.
  • the secondary terminal group is a group generated according to the packet characteristic number, and the packet characteristic number includes a plurality of values associated with the packet detection bit;
  • the terminal serial number in the secondary terminal group where the local end is located is reduced. And obtaining a sorting position of the terminal serial number of the local end in the secondary terminal group; calculating a terminal serial number of the local end according to the sorting position of the terminal serial number of the local end in the secondary terminal group The sort position in the multicast group;
  • the decrementing collation rule is a rule set according to a terminal serial number of a maximum value.
  • the processor 1001 is configured to calculate, according to the sorting position of the terminal serial number of the local end in the secondary terminal group, the sorting position of the terminal serial number of the local end in the multicast group.
  • the processor 1001 is specifically configured to:
  • the processor 1001 is configured to calculate, according to the sorting position of the terminal serial number of the local end in the secondary terminal group, the sorting position of the terminal serial number of the local end in the multicast group.
  • the processor 1001 is specifically configured to:
  • the terminal device 1 corresponding to the corresponding sorting position in each secondary terminal group in the multicast group transmits information in a frequency division multiple access manner, and listens to the signal transmitted by the terminal device 1 in the corresponding sorting position in each secondary terminal group. Calculating the number of terminal devices 1 in each secondary terminal group in the corresponding frequency domain and the information sent by the terminal device 1 in the time domain;
  • the sorting position of the terminal serial number of the local end in the multicast group is calculated according to the number of the terminal devices 1 in each secondary terminal group.
  • the processor 1001 performs the descending ordering of the terminal serial numbers in the secondary terminal group where the local end is located according to the descending ordering rule, and obtains the order of the terminal serial numbers of the local end in the secondary terminal group.
  • the processor 1001 is specifically configured to: the terminal serial number of the maximum value in the end group, and if the determination is no, the terminal device corresponding to the terminal serial number that has been determined to be the maximum value is not included.
  • the secondary terminal group judging according to the competition rule Whether the terminal serial number of the local end is the terminal serial number of the maximum value, and repeating this step until it is determined that the terminal serial number of the local terminal is the terminal serial number of the maximum value;
  • the current sorting position of the terminal serial number of the local end is recorded, and the sorting position of the terminal serial number of the local end in the secondary terminal group is obtained.
  • the specific process of the terminal device 1 searching for the terminal serial number of the largest value in the multicast group may be: the processor 1001 uses the first digit of the terminal serial number of the local terminal as the signal detection bit, and determines the signal detection bit. Whether the value satisfies the signal transmission condition, and the next digit in the terminal serial number of the local terminal is used as the signal detection bit, and the step is repeated until the last digit of the terminal serial number of the local terminal is used as the signal detection bit. If the value of the signal detection bit satisfies the signal transmission condition, the terminal device 1 broadcasts the detection signal of the local end, otherwise, the detection signal is detected; after the end of the repetition, if the detection signal is not detected, the determination is performed.
  • the terminal serial number of the local terminal is the terminal number of the maximum value; if the detection signal is detected, the terminal device 1 corresponding to the terminal serial number of the largest value in the multicast group is detected and found.
  • the signal transmission condition may be that the signal detection bit is 1, and the detection signal sent from the other terminal device 1 is not detected before.
  • the detection signal may be an easy-to-detect signal, such as a ZC sequence. Assume that each signal detection bit uses one subframe, and one RB is needed for each subframe. When the terminal sequence number has a 32-bit signal detection bit, the time required to find the terminal serial number of the largest value is 32 ms.
  • the decrementing and sorting rule is specifically: each terminal device 1 in a group selects a terminal serial number with a maximum value from each terminal serial number according to the competition rule, and at this time, each terminal device in the group 1 can know that the terminal device 1 having the terminal serial number having the largest value ranks first in the multicast group; the terminal device 1 other than the terminal device 1 having the terminal serial number having the largest value continues to be based on The competition rule selects the terminal serial number of the second largest value in the group, and the terminal device 1 having the terminal serial number of the largest value is only responsible for listening to the terminal serial number information of the second largest value and does not participate in the competition.
  • each terminal device 1 in the group can know that the terminal device 1 having the second largest value of the terminal serial number has the second position in the group; except for the terminal having the terminal number of the terminal with the largest value.
  • Terminal setting of device 1 and the second largest value terminal serial number The other terminal device 1 other than the standby 1 continues to select the terminal serial number of the third largest value in the group according to the competition rule, and the terminal device 1 having the terminal serial number of the largest value and the second largest value
  • the terminal device 1 of the terminal serial number is only responsible for listening to the terminal serial number information of the third largest value and does not participate in the competition. At this time, each terminal device 1 in the group can know the terminal serial number having the third largest value.
  • the sorting position of the terminal device 1 in the group is the third position, and this step is repeatedly performed until each terminal device 1 in the group can know the sorting position of the other party in the group.
  • the terminal serial number is a 32-bit binary number and there are 100 terminal devices 1 in a certain group, according to the decrementing sorting rule, each time a sorting position of the terminal device 1 is obtained, 32 subframes are required, each subframe. An RB is required. When all the terminal devices 1 get the corresponding sorting position, it will take 3200 ms. If one of the terminal serial numbers is the terminal sequence number of all zeros, it is necessary to add a zero subframe so that the terminal sequence has all zeros. The terminal device 1 of the number can transmit information on the zero subframe.
  • the embodiment of the present invention sorts the terminal serial number of the local end by using the sorting rule and the terminal serial number of the largest value found, so as to obtain the sorting position of the terminal serial number of the local end in the multicast group, thereby being fast.
  • the ordering of the terminal serial numbers is implemented, so that when the central control node in the multicast network disappears or fails, each terminal device 1 can continue normal order multicast communication according to its own order in the multicast network.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

 本发明实施例公开一种序列号排序的方法以及终端设备,其中,所述方法包括:根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排序位置,所述最大数值的终端序列号是根据竞争规则查找到的;根据所述排序位置进行组播通信。采用本发明,可以快速地对终端序列号进行排序,以便于更好地进行组播通信。

Description

一种序列号排序的方法以及终端设备 技术领域
本发明涉及通信技术领域, 尤其涉及一种序列号排序的方法以及终端设 备。 背景技术
组播传输是指在发送者和每一接收者之间实现点对多点网络连接。如果一 台发送者同时给多个接收者传输相同的数据, 也只需要复制一份相同的数据 包。 通过组播传输, 可以提高数据传送效率。
但是当组播网络中的中心控制节点消失或故障时,由于各个终端设备不知 道自己在组播网络中的排序情况,所以组播网络中的各个终端设备将无法得知 自己该何时发送数据、何时接收数据,导致各个终端设备将很难或者无法进行 组播传输通信。 发明内容
本发明实施例提供一种序列号排序的方法以及终端设备,可以快速地对终 端序列号进行排序, 以便于更好地进行组播通信。
本发明第一方面提供了一种序列号排序的方法, 包括:
根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号进 行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值 的终端序列号是根据竟争规则查找到的;
根据所述排序位置进行组播通信。
在第一种可能的实现方式中, 所述竟争规则具体为:
将所述终端设备的终端序列号中的第一位数值作为信号检测位,并根据该 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若所述 终端设备满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备确定为具有最大数值的 终端序列号的终端设备。
结合第一方面或第一方面的第一种可能的实现方式,在第二种可能的实现 方式中,所述根据排序规则和查找到的最大数值的终端序列号对本端的终端序 列号进行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 包括: 数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列号 所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终端序 列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序 列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,以得到所述本端的终端序列号在组播组中的排 序位置。
结合第一方面或第一方面的第一种可能的实现方式,在第三种可能的实现 方式中,所述根据排序规则和查找到的最大数值的终端序列号对本端的终端序 列号进行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 包括: 将所述本端的终端序列号的前至少一位作为分组检测位,并在所述分组检 测位等于分组特性数时,将所述本端的终端序列号分到与所述分组特性数关联 的二次终端组中,所述二次终端组是才艮据所述分组特性数所生成的组, 所述分 组特性数包括多个与所述分组检测位关联的数值;
根据递减排序规则对本端所在的二次终端组中的终端序列号进行递减排 序, 得到所述本端的终端序列号在所述二次终端组中的排序位置;
根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述 本端的终端序列号在组播组中的排序位置;
其中, 所述递减排序规则是根据最大数值的终端序列号所设置的规则。 结合第一方面的第三种可能的实现方式,在第四种可能的实现方式中, 所 述根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述本 端的终端序列号在组播组中的排序位置, 包括:
侦听所述组播组内各二次终端组中数值最小的终端序列号对应的终端设 备发送的数量信息;
根据所述数量信息计算出所述本端的终端序列号在组播组中的排序位置; 其中, 所述数量信息为二次终端组中的终端设备的数量。
结合第一方面的第三种可能的实现方式,在第五种可能的实现方式中, 所 述根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述本 端的终端序列号在组播组中的排序位置, 包括:
与所述组播组内各二次终端组中相应排序位置的终端设备以频分多址的 方式发送信息, 并侦听各二次终端组中相应排序位置的终端设备发送的信息; 根据对应的频域以及时域上的终端设备发送的信息计算出各二次终端组 中的终端设备的数量;
根据所述各二次终端组中的终端设备的数量计算出所述本端的终端序列 号在组播组中的排序位置。
结合第一方面的第三种可能的实现方式,或第一方面的第四种可能的实现 方式, 或第一方面的第五种可能的实现方式, 在第六种可能的实现方式中, 所 述根据递减排序规则对本端所在的二次终端组中的终端序列号进行递减排序, 得到所述本端的终端序列号在所述二次终端组中的排序位置, 包括: 端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的 终端序列号所对应的终端设备的所述二次终端组中,根据所述竟争规则判断所 述本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所 述本端的终端序列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,得到所述本端的终端序列号在所述二次终端组 中的排序位置。
本发明第二方面提供了一种终端设备, 包括:
排序模块,用于根据排序规则和查找到的最大数值的终端序列号对本端的 终端序列号进行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值的终端序列号是根据竟争规则查找到的;
通信模块, 用于根据所述排序位置进行组播通信。
在第一种可能的实现方式中, 所述排序模块中的竟争规则具体为: 将所述终端设备的终端序列号中的第一位数值作为信号检测位,并根据该 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若所述 终端设备满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备确定为具有最大数值的 终端序列号的终端设备。
结合第二方面或第二方面的第一种可能的实现方式,在第二种可能的实现 方式中, 所述排序模块包括:
判断单元,用于根据所述竟争规则判断所述本端的终端序列号是否为所述 组播组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值 的终端序列号所对应的终端设备的所述组播组中,根据所述竟争规则判断所述 本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述 本端的终端序列号为最大数值的终端序列号;
记录单元, 用于当判断所述本端的终端序列号为最大数值的终端序列号 时,记录所述本端的终端序列号的当前排序位置, 以得到所述本端的终端序列 号在组播组中的排序位置。
结合第二方面或第二方面的第一种可能的实现方式,在第三种可能的实现 方式中, 所述排序模块包括:
二次分组单元,用于将所述本端的终端序列号的前至少一位作为分组检测 位, 并在所述分组检测位等于分组特性数时,将所述本端的终端序列号分到与 所述分组特性数关联的二次终端组中,所述二次终端组是根据所述分组特性数 所生成的组, 所述分组特性数包括多个与所述分组检测位关联的数值;
递减排序单元,用于根据递减排序规则对本端所在的二次终端组中的终端 序列号进行递减排序,得到所述本端的终端序列号在所述二次终端组中的排序 位置;
计算单元,用于根据所述本端的终端序列号在所述二次终端组中的排序位 置计算出所述本端的终端序列号在组播组中的排序位置;
其中,所述递减排序单元中的所述递减排序规则是根据最大数值的终端序 列号所设置的规则。
结合第二方面的第三种可能的实现方式,在第四种可能的实现方式中, 所 述计算单元包括:
数量侦听子单元,用于侦听所述组播组内各二次终端组中数值最小的终端 序列号对应的终端设备发送的数量信息;
第一计算子单元,用于根据所述数量信息计算出所述本端的终端序列号在 组播组中的排序位置;
其中,所述数量侦听子单元侦听到的所述数量信息为二次终端组中的终端 设备的数量。
结合第二方面的第三种可能的实现方式,在第五种可能的实现方式中, 所 述计算单元包括:
发送侦听子单元,用于与所述组播组内各二次终端组中相应排序位置的终 端设备以频分多址的方式发送信息,并侦听各二次终端组中相应排序位置的终 端设备发送的信息; 计算出各二次终端组中的终端设备的数量;
第二计算子单元,用于根据所述各二次终端组中的终端设备的数量计算出 所述本端的终端序列号在组播组中的排序位置。 结合第二方面的第三种可能的实现方式,或第二方面的第四种可能的实现 方式, 或第二方面的第五种可能的实现方式, 在第六种可能的实现方式中, 所 述递减排序单元包括:
数值判断子单元,用于根据所述竟争规则判断所述本端的终端序列号是否 为本端所在的二次终端组中最大数值的终端序列号, 若判断为否, 则在不包括 已判断为最大数值的终端序列号所对应的终端设备的所述二次终端组中,根据 所述竟争规则判断所述本端的终端序列号是否为最大数值的终端序列号,重复 本步骤, 直至判断所述本端的终端序列号为最大数值的终端序列号;
排序记录子单元,用于当判断所述本端的终端序列号为最大数值的终端序 列号时,记录所述本端的终端序列号的当前排序位置,得到所述本端的终端序 列号在所述二次终端组中的排序位置。
本发明第三方面提供了一种计算机存储介质,
所述计算机存储介质可存储有程序,该程序执行时包括第一方面提供的一 种序列号排序的方法的部分或全部步骤。
本发明第四方面提供了一种终端设备, 包括:处理器、通信接口和存储器, 其中,
所述通信接口, 用于与组播组中的终端设备进行通信;
所述存储器用于存储程序;
所述处理器用于执行所述程序, 以实现
根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号进 行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值 的终端序列号是根据竟争规则查找到的;
根据所述排序位置进行组播通信。
在第一种可能的实现方式中, 所述竟争规则具体为:
将所述终端设备的终端序列号中的第一位数值作为信号检测位,并根据该 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若所述 终端设备满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备确定为具有最大数值的 终端序列号的终端设备。
结合第四方面或第四方面的第一种可能的实现方式,在第二种可能的实现 方式中, 所述处理器具体用于: 数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列号 所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终端序 列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序 列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,以得到所述本端的终端序列号在组播组中的排 序位置。
结合第四方面或第四方面的第一种可能的实现方式,在第三种可能的实现 方式中, 所述处理器具体用于:
将所述本端的终端序列号的前至少一位作为分组检测位,并在所述分组检 测位等于分组特性数时,将所述本端的终端序列号分到与所述分组特性数关联 的二次终端组中,所述二次终端组是才艮据所述分组特性数所生成的组, 所述分 组特性数包括多个与所述分组检测位关联的数值;
根据递减排序规则对本端所在的二次终端组中的终端序列号进行递减排 序, 得到所述本端的终端序列号在所述二次终端组中的排序位置;
根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述 本端的终端序列号在组播组中的排序位置;
其中, 所述递减排序规则是根据最大数值的终端序列号所设置的规则。 结合第四方面的第三种可能的实现方式,在第四种可能的实现方式中, 所 述处理器具体用于:
侦听所述组播组内各二次终端组中数值最小的终端序列号对应的终端设 备发送的数量信息;
根据所述数量信息计算出所述本端的终端序列号在组播组中的排序位置; 其中, 所述数量信息为二次终端组中的终端设备的数量。
结合第四方面的第三种可能的实现方式,在第五种可能的实现方式中, 所 述处理器具体用于:
与所述组播组内各二次终端组中相应排序位置的终端设备以频分多址的 方式发送信息, 并侦听各二次终端组中相应排序位置的终端设备发送的信息; 根据对应的频域以及时域上的终端设备发送的信息计算出各二次终端组 中的终端设备的数量;
根据所述各二次终端组中的终端设备的数量计算出所述本端的终端序列 号在组播组中的排序位置。
结合第四方面的第三种可能的实现方式,或第四方面的第四种可能的实现 方式, 或第四方面的第五种可能的实现方式, 在第六种可能的实现方式中, 所 述处理器具体用于: 端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的 终端序列号所对应的终端设备的所述二次终端组中,根据所述竟争规则判断所 述本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所 述本端的终端序列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,得到所述本端的终端序列号在所述二次终端组 中的排序位置。
由上可见,本发明实施例通过排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置,从而可以快速实现对终端序列号的排序,使得在组播网络中的中心控 制节点消失或故障时,各个终端设备可以根据自己在组播网络中的排序情况继 续进行正常有序的组播通信。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的一种序列号排序的方法的流程示意图; 图 2为本发明实施例提供的另一种序列号排序的方法的流程示意图; 图 3为本发明实施例提供的又一种序列号排序的方法的流程示意图; 图 4为本发明实施例提供的一种计算排序位置的方法的流程示意图; 图 5为本发明实施例提供的另一种计算排序位置的方法的流程示意图; 图 6为本发明实施例提供的一种递减排序的方法的流程示意图; 图 7为本发明实施例提供的一种终端设备的结构示意图;
图 8为本发明实施例提供的一种排序模块的结构示意图;
图 9为本发明实施例提供的另一种排序模块的结构示意图;
图 10为本发明实施例提供的一种计算单元的结构示意图;
图 11为本发明实施例提供的另一种计算单元的结构示意图;
图 12为本发明实施例提供的一种递减排序单元的结构示意图; 图 13为本发明实施例提供的另一种终端设备的结构示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
请参见图 1 , 为本发明实施例提供的一种序列号排序的方法的流程示意 图, 所述方法包括:
S 101 ,根据排序规则和查找到的最大数值的终端序列号对本端的终端序列 号进行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大 数值的终端序列号是根据竟争规则查找到的;
具体的, 所述排序规则是根据终端序列号的数值大小设置的规则, 终端设 备可以根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号 进行排序, 以得到所述本端的终端序列号在组播组中的排序位置。
其中, 所述最大数值的终端序列号是根据竟争规则查找到的。所述组播组 可以为组播通信中其中一个终端组,该终端组包括多个可以互相通信的终端设 备。
其中, 所述竟争规则具体为: 将所述终端设备的终端序列号中的第一位数 值作为信号检测位,并根据该信号检测位的值以及所述终端设备的侦听状态判 断所述终端设备是否满足信号发送条件,并将所述终端序列号中的下一位数值 作为信号检测位, 重复本步骤, 直至将所述终端序列号中的最后一位数值作为 信号检测位,其中,若所述终端设备满足信号发送条件,则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后, 将没有侦听到检测信号的终端设备确定 为具有最大数值的终端序列号的终端设备。其中, 同时发送的检测信号在频域 位置上不分开。
终端设备查找组播组中最大数值的终端序列号的具体过程可以为:终端设 备将本端的终端序列号中的第一位数值作为信号检测位,并判断该信号检测位 的值是否满足信号发送条件,并将所述本端的终端序列号中的下一位数值作为 信号检测位, 重复本步骤, 直至将所述本端的终端序列号中的最后一位数值作 为信号检测位, 其中, 若信号检测位的值满足信号发送条件, 则所述终端设备 广播本端的检测信号, 否则, 侦听检测信号; 在重复结束后, 若没有侦听到检 测信号, 则确定所述本端的终端序列号为最大数值的终端序列号; 若侦听到检 测信号, 则侦听并查找到所述组播组中最大数值的终端序列号对应的终端设 备。 其中, 所述信号发送条件可以为所述信号检测位为 1 , 且在此之前未侦听 到来自于其他终端设备发送的检测信号。其中, 所述检测信号可以为易检测信 号, 如 ZC序列。 假设每个信号检测位使用一个子帧, 每个子帧上需要使用 1 个 RB , 当终端序列号具有 32位信号检测位时,查找到最大数值的终端序列号 所需的时间为 32ms。
例如, 当所述排序规则是按照终端序列号的数值从大到 d、进行排序的规 贝 |J , 则对终端序列号进行排序的过程具体可以为: 根据所述竟争规则判断所述 本端的终端序列号是否为所述组播组中最大数值的终端序列号, 若判断为否, 中,根据所述竟争规则判断所述本端的终端序列号是否为最大数值的终端序列 号, 重复本步骤, 直至判断所述本端的终端序列号为最大数值的终端序列号; 当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端的终 端序列号的当前排序位置,以得到所述本端的终端序列号在组播组中的排序位 置。
S102, 根据所述排序位置进行组播通信;
具体的, 所述终端设备根据自己的排序位置, 可以知道自己在一定的时域 和频域位置向组内发送信息,并在一定的时域和频域位置侦听组内其他终端设 备发送的信息, 例如, 若所述终端设备在组播组中的排序位置为第二位, 那么 所述终端设备在第一个时域位置侦听完信息后,所述终端设备可以在第二个时 域位置发送信息。 因此, 当组播通信中的中心控制节点发生故障或消失时, 组 播组中的各个终端设备可以根据自己的排序位置或其他终端设备的排序位置, 按一定规律进行组播通信, 以避免终端设备不知道自己该何时发送信息、何时 侦听信息的情况发生。
当然,组播组中的各个终端设备通过相同的排序规则获得自己在所述组播 组中的排序位置, 并在排序过程中互相侦听对方终端设备的排序位置,使得组 播组中各个终端设备都可以得到所述组播组中所有终端设备的终端序列号排 序, 以便于让各个终端设备之间更好的完成组播通信。
由上可见,本发明实施例通过排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置,从而可以快速实现对终端序列号的排序,使得在组播网络中的中心控 制节点消失或故障时,各个终端设备可以根据自己在组播网络中的排序情况继 续进行正常有序的组播通信。
再请参见图 2, 为本发明实施例提供的另一种序列号排序的方法的流程示 意图, 所述方法包括: 最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序 列号所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终 端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终 端序列号为最大数值的终端序列号;
S202, 当判断所述本端的终端序列号为最大数值的终端序列号时,记录所 述本端的终端序列号的当前排序位置,以得到所述本端的终端序列号在组播组 中的排序位置;
具体的,终端设备根据所述竟争规则可以查找到所述组播组中最大数值的 终端序列号,所述终端设备可以判断本端的终端序列号是否为查找到的所述最 大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列 号所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终端 序列号是否为当前最大数值的终端序列号, 重复本步骤, 直至判断所述本端的 终端序列号为当前最大数值的终端序列号;当判断所述本端的终端序列号为当 前最大数值的终端序列号时,记录所述本端的终端序列号的当前排序位置; 当 判断所述本端的终端序列号不为当前最大数值的终端序列号时,侦听并记录当 前最大数值的终端序列号所对应的终端设备在组播组中的排序位置。
S201和 S202所使用的排序规则可以称为递减排序规则,所述递减排序规 则具体为:组播组中的各个终端设备根据所述竟争规则从各个终端序列号中选 出最大数值的终端序列号,此时组播组中的各个终端设备均可以获知具有最大 数值的终端序列号的终端设备在组播组中的排序位置为第一位;除了具有最大 出所述组播组中的第二大数值的终端序列号,同时具有最大数值的终端序列号 的终端设备只负责侦听所述第二大数值的终端序列号信息并且不参与竟争,此 时组播组中的各个终端设备均可以获知具有第二大数值的终端序列号的终端 设备在组播组中的排序位置为第二位;除了具有最大数值的终端序列号的终端 述竟争规则选出所述组播组中的第三大数值的终端序列号,同时具有最大数值 的终端序列号的终端设备和具有第二大数值的终端序列号的终端设备只负责 侦听所述第三大数值的终端序列号信息并且不参与竟争,此时组播组中的各个 终端设备均可以获知具有第三大数值的终端序列号的终端设备在组播组中的 排序位置为第三位, 重复执行本步骤, 直至所述组播组中的各个终端设备均可 以获知对方在所述组播组中的排序位置。假设终端序列号为 32位的二进制数, 且组播组中有 100个终端设备, 则根据所述递减排序规则,每得到一个终端设 备的排序位置将需要 32个子帧,每个子帧上需要一个 RB , 当所有终端设备都 得到对应的排序位置时, 将花费 3200ms; 若其中一个终端序列号为全零的终 端序列号, 则需要增加一个零子帧,使得具有全零的终端序列号的终端设备可 以在所述零子帧上发送信息。
其中, 所述竟争规则具体为: 将所述终端设备的终端序列号中的第一位数 值作为信号检测位,并根据该信号检测位的值以及所述终端设备的侦听状态判 断所述终端设备是否满足信号发送条件,并将所述终端序列号中的下一位数值 作为信号检测位, 重复本步骤, 直至将所述终端序列号中的最后一位数值作为 信号检测位,其中,若所述终端设备满足信号发送条件,则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后, 将没有侦听到检测信号的终端设备确定 为具有最大数值的终端序列号的终端设备。
S203 , 根据所述排序位置进行组播通信;
具体的, 所述终端设备根据自己的排序位置, 可以知道自己在一定的时域 和频域位置向组内发送信息,并在一定的时域和频域位置侦听组内其他终端设 备发送的信息, 例如, 若所述终端设备在组播组中的排序位置为第二位, 那么 所述终端设备在第一个时域位置侦听完信息后,所述终端设备可以在第二个时 域位置发送信息。 因此, 当组播通信中的中心控制节点发生故障或消失时, 组 播组中的各个终端设备可以根据自己的排序位置或其他终端设备的排序位置, 按一定规律进行组播通信, 以避免终端设备不知道自己该何时发送信息、何时 侦听信息的情况发生。
由上可见,本发明实施例通过排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置,从而可以快速实现对终端序列号的排序,使得在组播网络中的中心控 制节点消失或故障时,各个终端设备可以根据自己在组播网络中的排序情况继 续进行正常有序的组播通信。
再请参见图 3 , 为本发明实施例提供的又一种序列号排序的方法的流程示 意图, 所述方法包括:
S301 ,将所述本端的终端序列号的前至少一位作为分组检测位,并在所述 分组检测位等于分组特性数时,将所述本端的终端序列号分到与所述分组特性 数关联的二次终端组中, 所述二次终端组是根据所述分组特性数所生成的组, 所述分组特性数包括多个与所述分组检测位关联的数值;
具体的, 令 m是 2的幂, 将终端序列号的前 log2m位作为分组检测位, 并在所述分组检测位等于分组特性数时,将所述本端的终端序列号分到与所述 分组特性数关联的二次终端组中, 其中所述分组特性数包括 0, 1 , 2, ...... , m-l。 例如, m=8, 则终端序列号的前 3位作为分组检测位, 所述分组检测位 可以包括 000、 001、 010、 011、 100、 101、 110、 111 , 当该分组检测位为 000 时,将对应的终端设备分到分组特性数为 0的二次终端组中; 当该分组检测位 为 001时,将对应的终端设备分到分组特性数为 1的二次终端组中;以此类推, 当该分组检测位为 111时,将对应的终端设备分到分组特性数为 7的二次终端 组中。
S302,根据递减排序规则对本端所在的二次终端组中的终端序列号进行递 减排序, 得到所述本端的终端序列号在所述二次终端组中的排序位置;
终端设备可以根据递减排序规则对本端所在的二次终端组中的终端序列 号进行递减排序, 得到所述本端的终端序列号在所述二次终端组中的排序位 置。其中,每个二次终端组中排序最后一位的终端设备将知道自己所在的二次 终端组中的终端设备数量。
其中, 所述递减排序规则具体为: 某个二次终端组中的各个终端设备根据 所述竟争规则从各个终端序列号中选出最大数值的终端序列号,此时所述二次 终端组中的各个终端设备均可以获知具有最大数值的终端序列号的终端设备 在所述二次终端组中的排序位置为第一位;除了具有最大数值的终端序列号的 终端设备之外的其他终端设备继续根据所述竟争规则选出所述二次终端组中 的第二大数值的终端序列号,同时具有最大数值的终端序列号的终端设备只负 责侦听所述第二大数值的终端序列号信息并且不参与竟争,此时所述二次终端 组中的各个终端设备均可以获知具有第二大数值的终端序列号的终端设备在 所述二次终端组中的排序位置为第二位;除了具有最大数值的终端序列号的终 所述竟争规则选出所述二次终端组中的第三大数值的终端序列号,同时具有最 大数值的终端序列号的终端设备和具有第二大数值的终端序列号的终端设备 只负责侦听所述第三大数值的终端序列号信息并且不参与竟争,此时所述二次 终端组中的各个终端设备均可以获知具有第三大数值的终端序列号的终端设 备在所述二次终端组中的排序位置为第三位, 重复执行本步骤, 直至所述二次 S303 ,根据所述本端的终端序列号在所述二次终端组中的排序位置计算出 所述本端的终端序列号在组播组中的排序位置;
具体的, 由于各个二次终端组是根据分组特性数所生成的, 所以可以按从 大到小的顺序对各个二次终端组进行排序, 因此, 终端设备可以根据侦听到的 其他二次终端组中的终端设备的数量,计算出排在本端所在的二次终端组之前 的终端设备总数,从而再根据本端的终端序列号在所述二次终端组中的排序位 置计算出所述本端的终端序列号在组播组中的排序位置。
S304, 根据所述排序位置进行组播通信; 具体的, 所述终端设备根据自己的排序位置, 可以知道自己在一定的时域 和频域位置向组内发送信息,并在一定的时域和频域位置侦听组内其他终端设 备发送的信息, 例如, 若所述终端设备在组播组中的排序位置为第二位, 那么 所述终端设备在第一个时域位置侦听完信息后,所述终端设备可以在第二个时 域位置发送信息。 因此, 当组播通信中的中心控制节点发生故障或消失时, 组 播组中的各个终端设备可以根据自己的排序位置或其他终端设备的排序位置, 按一定规律进行组播通信, 以避免终端设备不知道自己该何时发送信息、何时 侦听信息的情况发生。
由上可见,本发明实施例通过排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置,从而可以快速实现对终端序列号的排序,使得在组播网络中的中心控 制节点消失或故障时,各个终端设备可以根据自己在组播网络中的排序情况继 续进行正常有序的组播通信。
进一步的, 再请参见图 4, 为本发明实施例提供的一种计算排序位置的方 法的流程示意图,本发明实施例的所述方法可以可对应于上述图 3对应实施例 中的 S303。 本发明实施例的所述方法具体包括:
S401 ,侦听所述组播组内各二次终端组中数值最小的终端序列号对应的终 端设备发送的数量信息;
具体的,终端设备可以侦听所述组播组内各二次终端组中数值最 d、的终端 序列号对应的终端设备发送的数量信息, 其中, 所述数量信息为二次终端组中 的终端设备的数量。
例如, 令 m是 2的幂, 终端序列号的前 log2m位是分组检测位, 终端序 列号为 ap4ap_2...... 各二次终端组中数值最小的终端序列号对应的终端设备 在自己的终端序列号的 ap4=l时同时发送数量信息,此时组播组内没有发送数 量信息的终端设备均可以侦听到对应的数量信息; 然后,各二次终端组中数值 最小的终端序列号对应的终端设备在自己的终端序列号的 ap_2=l 时同时发送 数量信息,此时组播组内没有发送数量信息的终端设备均可以侦听到对应的数 量信息;直到组播组内各个二次终端组中数值最小的终端序列号对应的终端设 备在 1 2 (π1)=ι 时发送数量信息后, 各二次终端组中数值最小的终端序列号 对应的终端设备不再发送数量信息,并且此时组播组内所有终端设备都已经侦 听到各个二次终端组中数值最小的终端序列号对应的终端设备所发送的数量 信息。
S402,根据所述数量信息计算出所述本端的终端序列号在组播组中的排序 位置;
终端设备可以根据各个二次终端组中数值最小的终端序列号对应的终端 设备所发送的数量信息, 计算出所述本端的终端序列号在组播组中的排序位 置。
例如, 分组检测位为 3位, 分组特性数分别为 0、 1、 2、 3、 4、 5、 6、 7, 与分组特性数对应的二次终端组中的终端序列号的分组检测位分别为 000、 001、 010、 011、 100、 101、 110、 111 , 即组播组中具有 8个二次终端组。 分 组检测位为 110 的二次终端组中排序第三位的终端设备可以侦听到分组检测 位为 111的二次终端组中排序最后的终端设备发送的数量信息,该数量信息为 分组检测位为 111 的二次终端组中具有 8个终端设备, 此时, 分组检测位为 110的二次终端组中排序第三位的终端设备可以计算出本端的终端序列号在组 播组中的排序位置为 8+3=11 , 以此类推, 组播组中所有终端设备都可以计算 出自己的终端序列号在组播组中的排序位置。
S301、 S302、 S401以及 S402所执行的步骤为: 从得到二次终端组到计算 出本端在组播组的排序位置。其中,执行 S301和 S302的步骤需要 n( p-log2m ) +1个子帧, 执行 S401 以及 S402的步骤需要 log2m个子帧, 所以整个排序过 程需要 np- ( n-1 ) log2m+l个子帧, 其中, n为组播组中的终端个数, p为终端 序列号的二进制位数, m为 2的幂、 且 log2m为分组检测位的位数。 每个子帧 上使用 m个 RB , 当 p=32, m=32, n=100时, 则整个排序过程需要 2706ms。
本发明实施例通过与各个二次终端组关联的数量信息可以计算出终端序 列号在组播组中的排序位置, 从而可以快速地对各个终端序列号进行排序。 进一步的, 再请参见图 5, 为本发明实施例提供的另一种计算排序位置的 方法的流程示意图,本发明实施例的所述方法可以可对应于上述图 3对应实施 例中的 S303。 本发明实施例的所述方法具体包括:
S501 ,与所述组播组内各二次终端组中相应排序位置的终端设备以频分多 址的方式发送信息,并侦听各二次终端组中相应排序位置的终端设备发送的信 具体的,终端设备与所述组播组内各二次终端组中相应排序位置的终端设 备以频分多址的方式发送信息,并侦听各二次终端组中相应排序位置的终端设 备发送的信息。 其中, 组播组内的所有终端设备将执行两次整体互听, 具体请 参见以下表 1和表 2:
Figure imgf000019_0001
表 1
Figure imgf000019_0002
表 2
其中, 表 1中的 ¾表示分组特性数为 i的二次终端组中从大到小排序第 j 的终端设备发送信息。表 2中的 by表示分组特性数为 i的二次终端组中从大到 小排序第(j+i ) mod ( n )的终端设备发送, n为组播组中终端设备的总数,(j+i ) mod ( n )表示为 (j+i ) 除以 n的余数。 表 1和表 2中的 m为 2的幂, log2m 为分组检测位的位数。
在第一次整体互听过程中, 首先,各二次终端组中排序第一位的终端设备 以频分多址的方式发送信息, 其他终端设备侦听信息, 即表 1 中 ay的第一列 的终端设备在相同时域、 不同频域上发送信息; 然后, 各二次终端组中排序第 二位的终端设备以频分多址的方式发送信息, 重复执行本步骤, 直至各二次终 端组中排序最后一位的终端设备以频分多址的方式发送信息。
在第一次整体互听结束后,再执行第二次整体互听,在第二次整体互听过 程中, by的第一列的终端设备在相同时域、 不同频域上发送信息, 其他终端设 备侦听信息, 即分组特性数为 0的二次终端组中排序第 1的终端设备、和分组 特性数为 1的二次终端组中排序第 2的终端设备、和分组特性数为 2的二次终 端组中排序第 3的终端设备 以及分组特性数为 m-1的二次终端组中排 序第 (m ) mod ( n )的终端设备以频分多址的方式发送信息; 然后, by的第二 列的终端设备在相同时域、 不同频域上发送信息, 直至 by的最后一列的终端 设备在相同时域、 不同频域上发送信息, 此时, 组播组中所有终端设备均可以 与所述组播组内各二次终端组中相应排序位置的终端设备以频分多址的方式 发送信息,并侦听各二次终端组中相应排序位置的终端设备发送的信息。其中, 终端设备所发送的信息可以包括自己的终端序列号,使得在两次整体互听结束 后, 每个终端设备都可以知道组播组内各个终端设备的终端序列号。
S502,根据对应的频域以及时域上的终端设备发送的信息计算出各二次终 端组中的终端设备的数量;
由于 ay和 by上的终端在发送信息时, 都有自己的频域位置, 所以任意两 个不在同一时域上发送信息的终端设备可以知道对方是哪一个二次终端组中 排序第几的终端设备,从而在两次整体互听结束后,每个终端设备根据对应的 频域以及时域上的终端设备发送的信息可以计算出各个二次终端组中的终端 设备的数量。例如, 分组特性数为 1的二次终端组中排序第 2的终端设备可以 侦听到分组特性数为 2的二次终端组中排序 1至 9的终端设备发送的信息,从 而分组特性数为 1的二次终端组中排序第 2的终端设备可以计算出分组特性数 为 2的二次终端组中的终端设备的数量为 9个, 以此类推, 分组特性数为 1 的二次终端组中排序第 2 的终端设备可以根据侦听到的所有信息计算出各个 二次终端组中的终端设备的个数。
S503 ,根据所述各二次终端组中的终端设备的数量计算出所述本端的终端 序列号在组播组中的排序位置;
每个终端设备可以根据所述各二次终端组中的终端设备的数量计算出各 自的终端序列号在组播组中的排序位置。例如,组播组中分别有分组特性数为 0的二次终端组、 分组特性数为 1的二次终端组、 分组特性数为 2的二次终端 组、 分组特性数为 3的二次终端组, 即有 4个二次终端组, 当分组特性数为 1 的二次终端组中排序第 4的终端设备侦听到分组特性数为 2的二次终端组中终 端设备数量为 8个、分组特性数为 3的二次终端组中终端设备数量为 9个, 则 分组特性数为 1的二次终端组中排序第 4的终端设备可以计算出自己的终端序 列号在组播组中的排序位置为 8+9+4=21。
S301、 S302、 S501、 S502以及 S503所执行的步骤为: 从得到二次终端组 到整体互听再到计算出本端在组播组的排序位置。 其中, 执行 S301 和 S302 的步骤需要 n ( p-log2m ) +1个子帧, 执行 S501、 S502以及 S503的步骤需要 2n个子帧, 所以整个排序过程需要 n ( p-log2m+2 ) +1个子帧, 其中, n为组 播组中的终端个数, p为终端序列号的二进制位数, m为 2的幂、 且 log2m为 分组检测位的位数。 每个子帧上使用 m个 RB, 当 p=32, m=32, n=100时, 则整个排序过程需要 2901ms。
本发明实施例通过两次整体互听可以计算出终端序列号在组播组中的排 序位置, 从而可以快速地对各个终端序列号进行排序。
进一步的, 再请参见图 6, 为本发明实施例提供的一种递减排序的方法的 流程示意图;本发明实施例的所述方法可以可对应于上述图 3对应实施例中的 S302。 本发明实施例的所述方法具体包括: 次终端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数 值的终端序列号所对应的终端设备的所述二次终端组中,根据所述竟争规则判 断所述本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判 断所述本端的终端序列号为最大数值的终端序列号;
S602, 当判断所述本端的终端序列号为最大数值的终端序列号时,记录所 述本端的终端序列号的当前排序位置,得到所述本端的终端序列号在所述二次 终端组中的排序位置;
S601和 S602所使用的排序规则称为递减排序规则,所述递减排序规则具 体为:某个二次终端组中的各个终端设备根据所述竟争规则从各个终端序列号 中选出最大数值的终端序列号,此时所述二次终端组中的各个终端设备均可以 获知具有最大数值的终端序列号的终端设备在所述二次终端组中的排序位置 续根据所述竟争规则选出所述二次终端组中的第二大数值的终端序列号,同时 具有最大数值的终端序列号的终端设备只负责侦听所述第二大数值的终端序 列号信息并且不参与竟争,此时所述二次终端组中的各个终端设备均可以获知 具有第二大数值的终端序列号的终端设备在所述二次终端组中的排序位置为 第二位;除了具有最大数值的终端序列号的终端设备和第二大数值的终端序列 号的终端设备之外的其他终端设备继续根据所述竟争规则选出所述二次终端 组中的第三大数值的终端序列号,同时具有最大数值的终端序列号的终端设备 和具有第二大数值的终端序列号的终端设备只负责侦听所述第三大数值的终 端序列号信息并且不参与竟争,此时所述二次终端组中的各个终端设备均可以 获知具有第三大数值的终端序列号的终端设备在所述二次终端组中的排序位 置为第三位, 重复执行本步骤, 直至所述二次终端组中的各个终端设备均可以 获知对方在所述二次终端组中的排序位置。 设备进行排序。
请参见图 7, 为本发明实施例提供的一种终端设备 1的结构示意图, 所述 终端设备 1可以包括: 排序模块 10、 通信模块 20;
所述排序模块 10, 用于根据排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置, 所述最大数值的终端序列号是根据竟争规则查找到的;
具体的, 所述排序规则是根据终端序列号的数值大小设置的规则, 所述排 序模块 10可以根据排序规则和查找到的最大数值的终端序列号对本端的终端 序列号进行排序, 以得到所述本端的终端序列号在组播组中的排序位置。
其中, 所述最大数值的终端序列号是根据竟争规则查找到的。所述组播组 可以为组播通信中其中一个终端组,该终端组包括多个可以互相通信的终端设 备 1。
其中, 所述排序模块 10中的竟争规则具体为: 将所述终端设备 1的终端 序列号中的第一位数值作为信号检测位,并判断该信号检测位的值是否满足信 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若信号 检测位的值满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备 1确定为具有最大数值的终 端序列号的终端设备 1。 其中, 同时发送的检测信号在频域位置上不分开。
所述排序模块 10中查找组播组中最大数值的终端序列号的具体过程可以 为: 所述排序模块 10将本端的终端序列号中的第一位数值作为信号检测位, 并判断该信号检测位的值是否满足信号发送条件,并将所述本端的终端序列号 中的下一位数值作为信号检测位, 重复本步骤, 直至将所述本端的终端序列号 中的最后一位数值作为信号检测位, 其中, 若信号检测位的值满足信号发送条 件, 则所述终端设备 1广播本端的检测信号, 否则, 侦听检测信号; 在重复结 束后, 若没有侦听到检测信号, 则确定所述本端的终端序列号为最大数值的终 端序列号; 若侦听到检测信号, 则侦听并查找到所述组播组中最大数值的终端 序列号对应的终端设备 1。 其中, 所述信号发送条件可以为所述信号检测位为 1 , 且在此之前未侦听到来自于其他终端设备 1发送的检测信号。 其中, 所述 检测信号可以为易检测信号,如 ZC序列。假设每个信号检测位使用一个子帧, 每个子帧上需要使用 1个 RB, 当终端序列号具有 32位信号检测位时,查找到 最大数值的终端序列号所需的时间为 32ms。
例如, 当所述排序规则是按照终端序列号的数值从大到 d、进行排序的规 贝 |J , 则所述排序模块 10对终端序列号进行排序的过程具体可以为: 所述排序 模块 10根据所述竟争规则判断所述本端的终端序列号是否为所述组播组中最 大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列 号所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终端 序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端 序列号为最大数值的终端序列号;当判断所述本端的终端序列号为最大数值的 终端序列号时,记录所述本端的终端序列号的当前排序位置, 以得到所述本端 的终端序列号在组播组中的排序位置。
所述通信模块 20, 用于根据所述排序位置进行组播通信;
具体的, 所述终端设备 1根据自己的排序位置, 可以知道自己在一定的时 域和频域位置向组内发送信息,并在一定的时域和频域位置侦听组内其他终端 设备发送的信息, 例如, 若所述终端设备 1在组播组中的排序位置为第二位, 那么所述终端设备在第一个时域位置侦听完信息后,所述终端设备 1可以在第 二个时域位置发送信息。 因此, 当组播通信中的中心控制节点发生故障或消失 时,组播组中的各个终端设备可以根据自己的排序位置或其他终端设备的排序 位置,按一定规律进行组播通信, 以避免终端设备 1不知道自己该何时发送信 息、 何时侦听信息的情况发生。
进一步的, 再请参见图 8, 为上述图 7中的排序模块 10的结构示意图, 所述排序模块 10包括: 判断单元 101、 记录单元 102;
所述判断单元 101 , 用于根据所述竟争规则判断所述本端的终端序列号是 否为所述组播组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为 最大数值的终端序列号所对应的终端设备的所述组播组中,根据所述竟争规则 判断所述本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至 判断所述本端的终端序列号为最大数值的终端序列号;
所述记录单元 102, 用于当判断所述本端的终端序列号为最大数值的终端 序列号时,记录所述本端的终端序列号的当前排序位置, 以得到所述本端的终 端序列号在组播组中的排序位置;
具体的,所述判断单元 101根据所述竟争规则可以查找到所述组播组中最 大数值的终端序列号,所述判断单元 101可以判断本端的终端序列号是否为查 找到的所述最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数 值的终端序列号的组播组中,根据所述竟争规则判断所述本端的终端序列号是 否为当前最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序列 号为当前最大数值的终端序列号;当所述判断单元 101判断所述本端的终端序 列号为当前最大数值的终端序列号时,所述记录单元 102可以记录所述本端的 终端序列号的当前排序位置;当所述判断单元 101判断所述本端的终端序列号 不为当前最大数值的终端序列号时,所述记录单元 102还可以侦听并记录当前 最大数值的终端序列号所对应的终端设备 1在组播组中的排序位置。 序规则, 所述递减排序规则具体为: 组播组中的各个终端设备 1根据所述竟争 规则从各个终端序列号中选出最大数值的终端序列号,此时组播组中的各个终 端设备 1均可以获知具有最大数值的终端序列号的终端设备 1在组播组中的排 序位置为第一位;除了具有最大数值的终端序列号的终端设备 1之外的其他终 端设备 1 继续根据所述竟争规则选出所述组播组中的第二大数值的终端序列 号,同时具有最大数值的终端序列号的终端设备 1只负责侦听所述第二大数值 的终端序列号信息并且不参与竟争,此时组播组中的各个终端设备 1均可以获 知具有第二大数值的终端序列号的终端设备 1 在组播组中的排序位置为第二 位;除了具有最大数值的终端序列号的终端设备 1和第二大数值的终端序列号 的终端设备 1之外的其他终端设备 1继续根据所述竟争规则选出所述组播组中 的第三大数值的终端序列号, 同时具有最大数值的终端序列号的终端设备 1 和具有第二大数值的终端序列号的终端设备 1 只负责侦听所述第三大数值的 终端序列号信息并且不参与竟争,此时组播组中的各个终端设备 1均可以获知 具有第三大数值的终端序列号的终端设备 1在组播组中的排序位置为第三位, 重复执行本步骤,直至所述组播组中的各个终端设备 1均可以获知对方在所述 组播组中的排序位置。假设终端序列号为 32位的二进制数,且组播组中有 100 个终端设备 1 , 则根据所述递减排序规则, 每得到一个终端设备 1的排序位置 将需要 32个子帧,每个子帧上需要一个 RB, 当所有终端设备 1都得到对应的 排序位置时, 将花费 3200ms; 若其中一个终端序列号为全零的终端序列号, 则需要增加一个零子帧,使得具有全零的终端序列号的终端设备 1可以在所述 零子帧上发送信息。
进一步的, 再请参见图 9, 为上述图 7中的另一种排序模块 10的结构示 意图, 所述排序模块 10可以包括: 二次分组单元 103、 递减排序单元 104、 计 算单元 105;
所述二次分组单元 103 , 用于将所述本端的终端序列号的前至少一位作为 分组检测位, 并在所述分组检测位等于分组特性数时,将所述本端的终端序列 号分到与所述分组特性数关联的二次终端组中,所述二次终端组是根据所述分 组特性数所生成的组, 所述分组特性数包括多个与所述分组检测位关联的数 值;
具体的, 令 m是 2的幂, 所述二次分组单元 103将终端序列号的前 log2m 位作为分组检测位, 并在所述分组检测位等于分组特性数时,将所述本端的终 端序列号分到与所述分组特性数关联的二次终端组中,其中所述分组特性数包 括 0, 1 , 2, , m-l。 例如, m=8, 则所述二次分组单元 103将终端序列 号的前 3位作为分组检测位, 所述分组检测位可以包括 000、 001、 010、 011、 100、 101、 110、 111 , 当该分组检测位为 000时, 所述二次分组单元 103将本 端分到分组特性数为 0的二次终端组中; 当该分组检测位为 001时, 所述二次 分组单元 103将本端分到分组特性数为 1的二次终端组中; 以此类推, 当该分 组检测位为 111时,所述二次分组单元 103将本端分到分组特性数为 7的二次 终端组中。
所述递减排序单元 104, 用于根据递减排序规则对本端所在的二次终端组 中的终端序列号进行递减排序,得到所述本端的终端序列号在所述二次终端组 中的排序位置;
所述递减排序单元 104可以根据递减排序规则对本端所在的二次终端组 中的终端序列号进行递减排序,得到所述本端的终端序列号在所述二次终端组 中的排序位置。其中,每个二次终端组中排序最后一位的终端设备 1将知道自 己所在的二次终端组中的终端设备 1数量。
其中, 所述递减排序规则具体为: 某个二次终端组中的各个终端设备 1 根据所述竟争规则从各个终端序列号中选出最大数值的终端序列号,此时所述 二次终端组中的各个终端设备 1 均可以获知具有最大数值的终端序列号的终 端设备 1在所述二次终端组中的排序位置为第一位;除了具有最大数值的终端 次终端组中的第二大数值的终端序列号,同时具有最大数值的终端序列号的终 端设备 1只负责侦听所述第二大数值的终端序列号信息并且不参与竟争,此时 所述二次终端组中的各个终端设备 1 均可以获知具有第二大数值的终端序列 号的终端设备 1在所述二次终端组中的排序位置为第二位;除了具有最大数值 的终端序列号的终端设备 1和第二大数值的终端序列号的终端设备 1之外的其 他终端设备 1 继续根据所述竟争规则选出所述二次终端组中的第三大数值的 终端序列号,同时具有最大数值的终端序列号的终端设备 1和具有第二大数值 的终端序列号的终端设备 1 只负责侦听所述第三大数值的终端序列号信息并 且不参与竟争,此时所述二次终端组中的各个终端设备 1均可以获知具有第三 大数值的终端序列号的终端设备 1在所述二次终端组中的排序位置为第三位, 重复执行本步骤,直至所述二次终端组中的各个终端设备 1均可以获知对方在 所述二次终端组中的排序位置。
所述计算单元 105, 用于根据所述本端的终端序列号在所述二次终端组中 的排序位置计算出所述本端的终端序列号在组播组中的排序位置; 具体的, 由于各个二次终端组是根据分组特性数所生成的, 所以可以按从 大到小的顺序对各个二次终端组进行排序, 因此, 所述计算单元 105可以根据 侦听到的其他二次终端组中的终端设备 1的数量,计算出排在本端所在的二次 终端组之前的终端设备 1总数,从而所述计算单元 105再根据本端的终端序列 号在所述二次终端组中的排序位置计算出所述本端的终端序列号在组播组中 的排序位置。
进一步的, 再请参见图 10, 为上述图 9中的一种计算单元 105的结构示 意图, 所述计算单元 105包括: 数量侦听子单元 1051、 第一计算子单元 1052; 所述数量侦听子单元 1051 , 用于侦听所述组播组内各二次终端组中数值 最小的终端序列号对应的终端设备 1发送的数量信息;
具体的, 所述数量侦听子单元 1051可以侦听所述组播组内各二次终端组 中数值最小的终端序列号对应的终端设备 1发送的数量信息。例如,令 m是 2 的幂, 终端序列号的前 log2m位是分组检测位, 终端序列号为 ap pj a。, 各二次终端组中数值最小的终端序列号对应的终端设备 1 可以在自己的终端 序列号的 ap—fl时同时发送数量信息,此时组播组内没有发送数量信息的终端 设备 1的数量侦听子单元 1051均可以侦听到对应的数量信息; 然后, 各二次 终端组中数值最小的终端序列号对应的终端设备 1 在自己的终端序列号的 ap_2=l时同时发送数量信息, 此时组播组内没有发送数量信息的终端设备 1的 数量侦听子单元 1051均可以侦听到对应的数量信息; 直到组播组内各个二次 终端组中数值最小的终端序列号对应的终端设备 1在 ap4g2 ( m) =l时发送数量 信息后,各二次终端组中数值最小的终端序列号对应的终端设备 1不再发送数 量信息, 并且此时组播组内所有终端设备 1的数量侦听子单元 1051都已经侦 听到各个二次终端组中数值最小的终端序列号对应的终端设备 1 所发送的数 量信息。 其中, 所述数量侦听子单元 1051侦听到的所述数量信息为二次终端 组中的终端设备 1的数量。
所述第一计算子单元 1052, 用于根据所述数量信息计算出所述本端的终 端序列号在组播组中的排序位置;
所述第一计算子单元 1052可以根据各个二次终端组中数值最小的终端序 列号对应的终端设备 1所发送的数量信息,计算出所述本端的终端序列号在组 播组中的排序位置。
例如, 分组检测位为 3位, 分组特性数分别为 0、 1、 2、 3、 4、 5、 6、 7, 与分组特性数对应的二次终端组中的终端序列号的分组检测位分别为 000、 001、 010、 011、 100、 101、 110、 111 , 即组播组中具有 8个二次终端组。 分 组检测位为 110的二次终端组中排序第三位的终端设备 1 的数量侦听子单元 1051 可以侦听到分组检测位为 111的二次终端组中排序最后的终端设备 1发 送的数量信息,该数量信息为分组检测位为 111的二次终端组中具有 8个终端 设备 1 , 此时, 分组检测位为 110的二次终端组中排序第三位的终端设备 1的 第一计算子单元 1052可以计算出本端的终端序列号在组播组中的排序位置为 8+3=11 , 以此类推, 组播组中所有终端设备 1的第一计算子单元 1052都可以 计算出自己的终端序列号在组播组中的排序位置。
进一步的, 再请参见图 11 , 为上述图 9中的另一种计算单元 105的结构 示意图, 所述计算单元 105可以包括: 发送侦听子单元 1053、 数量计算子单 元 1054、 第二计算子单元 1055;
所述发送侦听子单元 1053, 用于与所述组播组内各二次终端组中相应排 序位置的终端设备 1以频分多址的方式发送信息,并侦听各二次终端组中相应 排序位置的终端设备 1发送的信息;
具体的, 所述发送侦听子单元 1053与所述组播组内各二次终端组中相应 排序位置的终端设备 1以频分多址的方式发送信息,并侦听各二次终端组中相 应排序位置的终端设备 1发送的信息。其中,组播组内的所有终端设备 1将执 行两次整体互听, 具体请参见以下表 1和表 2:
第一次 a。i a。2 a。n
整体互 ^ll
听 ( ay ) ¾(πι-1,1) a(m—l,2) a(m-l,n)
表 1
Figure imgf000030_0001
表 2
其中, 表 1中的 ¾表示分组特性数为 i的二次终端组中从大到小排序第 j 的终端设备 1发送信息。表 2中的 by表示分组特性数为 i的二次终端组中从大 到小排序第 (j+i ) mod ( n ) 的终端设备 1发送, n为组播组中终端设备 1的 总数, (j+i ) mod ( n )表示为 (j+i ) 除以 n的余数。 表 1和表 2中的 m为 2 的幂, log2m为分组检测位的位数。
在第一次整体互听过程中, 首先,各二次终端组中排序第一位的终端设备
1的发送侦听子单元 1053以频分多址的方式发送信息, 其他终端设备 1的发 送侦听子单元 1053侦听信息,即表 1中 ay的第一列的终端设备 1在相同时域、 不同频域上发送信息; 然后,各二次终端组中排序第二位的终端设备 1以频分 多址的方式发送信息, 重复执行本步骤, 直至各二次终端组中排序最后一位的 终端设备 1以频分多址的方式发送信息。
在第一次整体互听结束后,再执行第二次整体互听,在第二次整体互听过 程中, by的第一列的终端设备 1的发送侦听子单元 1053在相同时域、 不同频 域上发送信息, 其他终端设备 1的发送侦听子单元 1053侦听信息, 即分组特 性数为 0的二次终端组中排序第 1的终端设备 1、 和分组特性数为 1的二次终 端组中排序第 2的终端设备 1、 和分组特性数为 2的二次终端组中排序第 3的 终端设备 1 以及分组特性数为 m-1的二次终端组中排序第 (m ) mod
( n ) 的终端设备 1以频分多址的方式发送信息; 然后, by的第二列的终端设 备 1在相同时域、 不同频域上发送信息, 直至 by的最后一列的终端设备 1在 相同时域、 不同频域上发送信息, 此时, 组播组中所有终端设备 1均可以与所 述组播组内各二次终端组中相应排序位置的终端设备 1 以频分多址的方式发 送信息,并侦听各二次终端组中相应排序位置的终端设备 1发送的信息。其中, 终端设备 1所发送的信息可以包括自己的终端序列号,使得在两次整体互听结 束后, 每个终端设备 1都可以知道组播组内各个终端设备 1的终端序列号。
所述数量计算子单元 1054,用于根据对应的频域以及时域上的终端设备 1 发送的信息计算出各二次终端组中的终端设备 1的数量;
由于 ay和 by上的终端在发送信息时, 都有自己的频域位置, 所以任意两 个不在同一时域上发送信息的终端设备 1 可以知道对方是哪一个二次终端组 中排序第几的终端设备 1 , 从而在两次整体互听结束后, 每个终端设备 1的数 计算出各个二次终端组中的终端设备 1的数量。例如, 分组特性数为 1的二次 终端组中排序第 2的终端设备 1可以侦听到分组特性数为 2的二次终端组中排 序 1至 9的终端设备 1发送的信息,从而分组特性数为 1的二次终端组中排序 第 的终端设备 1的数量计算子单元 1054可以计算出分组特性数为 2的二次 终端组中的终端设备 1的数量为 9个, 以此类推, 分组特性数为 1的二次终端 组中排序第 2的终端设备 1的数量计算子单元 1054可以根据侦听到的所有信 息计算出各个二次终端组中的终端设备 1的个数。
所述第二计算子单元 1055 , 用于根据所述各二次终端组中的终端设备 1 的数量计算出所述本端的终端序列号在组播组中的排序位置;
每个终端设备 1的第二计算子单元 1055可以根据所述各二次终端组中的 终端设备 1的数量计算出各自的终端序列号在组播组中的排序位置。例如,组 播组中分别有分组特性数为 0的二次终端组、 分组特性数为 1的二次终端组、 分组特性数为 2的二次终端组、分组特性数为 3的二次终端组, 即有 4个二次 终端组,当分组特性数为 1的二次终端组中排序第 4的终端设备 1侦听到分组 特性数为 2的二次终端组中终端设备 1数量为 8个、分组特性数为 3的二次终 端组中终端设备 1数量为 9个, 则分组特性数为 1 的二次终端组中排序第 4 的终端设备 1的第二计算子单元 1055可以计算出自己的终端序列号在组播组 中的排序位置为 8+9+4=21。
进一步的, 再请参见图 12, 为上述图 9中的递减排序单元 104, 所述递减 排序单元 104包括: 数值判断子单元 1041、 排序记录子单元 1042;
所述数值判断子单元 1041 , 用于根据所述竟争规则判断所述本端的终端 序列号是否为本端所在的二次终端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列号所对应的终端设备的所述二次终 端组中,根据所述竟争规则判断所述本端的终端序列号是否为最大数值的终端 序列号, 重复本步骤, 直至判断所述本端的终端序列号为最大数值的终端序列 所述排序记录子单元 1042, 用于当判断所述本端的终端序列号为最大数 值的终端序列号时,记录所述本端的终端序列号的当前排序位置,得到所述本 端的终端序列号在所述二次终端组中的排序位置;
所述数值判断子单元 1041和所述排序记录子单元 1042所使用的排序规则 称为递减排序规则, 所述递减排序规则具体为: 某个二次终端组中的各个终端 设备 1根据所述竟争规则从各个终端序列号中选出最大数值的终端序列号,此 时所述二次终端组中的各个终端设备 1 均可以获知具有最大数值的终端序列 号的终端设备 1在所述二次终端组中的排序位置为第一位;除了具有最大数值 所述二次终端组中的第二大数值的终端序列号,同时具有最大数值的终端序列 号的终端设备 1 只负责侦听所述第二大数值的终端序列号信息并且不参与竟 争,此时所述二次终端组中的各个终端设备 1均可以获知具有第二大数值的终 端序列号的终端设备 1在所述二次终端组中的排序位置为第二位;除了具有最 大数值的终端序列号的终端设备 1 和第二大数值的终端序列号的终端设备 1 之外的其他终端设备 1 继续根据所述竟争规则选出所述二次终端组中的第三 大数值的终端序列号,同时具有最大数值的终端序列号的终端设备 1和具有第 二大数值的终端序列号的终端设备 1 只负责侦听所述第三大数值的终端序列 号信息并且不参与竟争,此时所述二次终端组中的各个终端设备 1均可以获知 具有第三大数值的终端序列号的终端设备 1 在所述二次终端组中的排序位置 为第三位, 重复执行本步骤, 直至所述二次终端组中的各个终端设备 1均可以 获知对方在所述二次终端组中的排序位置。
由上可见,本发明实施例通过排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置,从而可以快速实现对终端序列号的排序,使得在组播网络中的中心控 制节点消失或故障时,各个终端设备 1可以根据自己在组播网络中的排序情况 继续进行正常有序的组播通信。
本发明实施例还提供了一种计算机存储介质, 其中, 所述计算机存储介质 可存储有程序,该程序执行时包括上述图 1至图 6的方法实施例中记载的序列 号排序的方法的部分或全部步骤。
请参见图 13, 为本发明实施例提供的另一种终端设备 1 的结构示意图, 所述终端设备 1可以包括处理器 1001、通信接口 1002和存储器 1003 (终端设 备 1中的处理器 1001的数量可以为一个或多个, 图 13中以一个处理器 1001 为例)。 本发明的一些实施例中, 处理器 1001、 通信接口 1002和存储器 1003 可通过通信总线或其他方式连接, 其中, 图 13以通过通信总线连接为例。
其中, 所述通信接口 1002 , 用于与组播组中的终端设备 1进行通信; 所述存储器 1003用于存储程序;
所述处理器 1001用于执行所述程序, 以实现
根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号进 行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值 的终端序列号是根据竟争规则查找到的;
根据所述排序位置进行组播通信。
其中, 所述竟争规则具体为: 将所述终端设备 1的终端序列号中的第一位数值作为信号检测位,并根据 足信号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复 本步骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若 所述终端设备 1满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信 在重复结束后,将没有侦听到检测信号的终端设备 1确定为具有最大数值 的终端序列号的终端设备 1。
其中, 所述处理器 1001在执行所述根据排序规则和查找到的最大数值的 终端序列号对本端的终端序列号进行排序 ,以得到所述本端的终端序列号在组 播组中的排序位置的过程中, 所述处理器 1001具体用于: 数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列号 所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终端序 列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序 列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,以得到所述本端的终端序列号在组播组中的排 序位置。
其中, 所述处理器 1001在执行所述根据排序规则和查找到的最大数值的 终端序列号对本端的终端序列号进行排序,以得到所述本端的终端序列号在组 播组中的排序位置的过程中, 所述处理器 1001具体用于:
将所述本端的终端序列号的前至少一位作为分组检测位,并在所述分组检 测位等于分组特性数时,将所述本端的终端序列号分到与所述分组特性数关联 的二次终端组中,所述二次终端组是根据所述分组特性数所生成的组, 所述分 组特性数包括多个与所述分组检测位关联的数值;
根据递减排序规则对本端所在的二次终端组中的终端序列号进行递减排 序, 得到所述本端的终端序列号在所述二次终端组中的排序位置; 根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述 本端的终端序列号在组播组中的排序位置;
其中, 所述递减排序规则是根据最大数值的终端序列号所设置的规则。 其中, 所述处理器 1001在执行所述根据所述本端的终端序列号在所述二 次终端组中的排序位置计算出所述本端的终端序列号在组播组中的排序位置 的过程中, 所述处理器 1001具体用于:
侦听所述组播组内各二次终端组中数值最小的终端序列号对应的终端设 备 1发送的数量信息;
根据所述数量信息计算出所述本端的终端序列号在组播组中的排序位置; 其中, 所述数量信息为二次终端组中的终端设备 1的数量。
其中, 所述处理器 1001在执行所述根据所述本端的终端序列号在所述二 次终端组中的排序位置计算出所述本端的终端序列号在组播组中的排序位置 的过程中, 所述处理器 1001具体用于:
与所述组播组内各二次终端组中相应排序位置的终端设备 1 以频分多址 的方式发送信息,并侦听各二次终端组中相应排序位置的终端设备 1发送的信 根据对应的频域以及时域上的终端设备 1 发送的信息计算出各二次终端 组中的终端设备 1的数量;
根据所述各二次终端组中的终端设备 1 的数量计算出所述本端的终端序 列号在组播组中的排序位置。
其中, 所述处理器 1001在执行所述根据递减排序规则对本端所在的二次 终端组中的终端序列号进行递减排序,得到所述本端的终端序列号在所述二次 终端组中的排序位置的过程中, 所述处理器 1001具体用于: 端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的 终端序列号所对应的终端设备的所述二次终端组中,根据所述竟争规则判断所 述本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所 述本端的终端序列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,得到所述本端的终端序列号在所述二次终端组 中的排序位置。
具体的,终端设备 1查找组播组中最大数值的终端序列号的具体过程可以 为: 处理器 1001将本端的终端序列号中的第一位数值作为信号检测位, 并判 断该信号检测位的值是否满足信号发送条件,并将所述本端的终端序列号中的 下一位数值作为信号检测位, 重复本步骤, 直至将所述本端的终端序列号中的 最后一位数值作为信号检测位, 其中, 若信号检测位的值满足信号发送条件, 则所述终端设备 1广播本端的检测信号,否则,侦听检测信号;在重复结束后, 若没有侦听到检测信号,则确定所述本端的终端序列号为最大数值的终端序列 号; 若侦听到检测信号, 则侦听并查找到所述组播组中最大数值的终端序列号 对应的终端设备 1。 其中, 所述信号发送条件可以为所述信号检测位为 1 , 且 在此之前未侦听到来自于其他终端设备 1发送的检测信号。其中, 所述检测信 号可以为易检测信号, 如 ZC序列。 假设每个信号检测位使用一个子帧, 每个 子帧上需要使用 1个 RB, 当终端序列号具有 32位信号检测位时,查找到最大 数值的终端序列号所需的时间为 32ms。
具体的, 所述递减排序规则具体为: 某个组中的各个终端设备 1根据所述 竟争规则从各个终端序列号中选出最大数值的终端序列号,此时该组中的各个 终端设备 1均可以获知具有最大数值的终端序列号的终端设备 1在组播组中的 排序位置为第一位;除了具有最大数值的终端序列号的终端设备 1之外的其他 终端设备 1继续根据所述竟争规则选出该组中的第二大数值的终端序列号,同 时具有最大数值的终端序列号的终端设备 1 只负责侦听所述第二大数值的终 端序列号信息并且不参与竟争,此时该组中的各个终端设备 1均可以获知具有 第二大数值的终端序列号的终端设备 1在该组中的排序位置为第二位;除了具 有最大数值的终端序列号的终端设备 1 和第二大数值的终端序列号的终端设 备 1之外的其他终端设备 1继续根据所述竟争规则选出该组中的第三大数值的 终端序列号,同时具有最大数值的终端序列号的终端设备 1和具有第二大数值 的终端序列号的终端设备 1 只负责侦听所述第三大数值的终端序列号信息并 且不参与竟争,此时该组中的各个终端设备 1均可以获知具有第三大数值的终 端序列号的终端设备 1在该组中的排序位置为第三位, 重复执行本步骤, 直至 该组中的各个终端设备 1均可以获知对方在该组中的排序位置。假设终端序列 号为 32位的二进制数, 且某个组中有 100个终端设备 1 , 则根据所述递减排 序规则, 每得到一个终端设备 1的排序位置将需要 32个子帧, 每个子帧上需 要一个 RB , 当所有终端设备 1都得到对应的排序位置时, 将花费 3200ms; 若 其中一个终端序列号为全零的终端序列号, 则需要增加一个零子帧,使得具有 全零的终端序列号的终端设备 1可以在所述零子帧上发送信息。
由上可见,本发明实施例通过排序规则和查找到的最大数值的终端序列号 对本端的终端序列号进行排序,以得到所述本端的终端序列号在组播组中的排 序位置,从而可以快速实现对终端序列号的排序,使得在组播网络中的中心控 制节点消失或故障时,各个终端设备 1可以根据自己在组播网络中的排序情况 继续进行正常有序的组播通信。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算 机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。 其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM )或随机存储记忆体(Random Access Memory, RAM )等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之 权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims

权 利 要 求
1、 一种序列号排序的方法, 其特征在于, 包括:
根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号进 行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值 的终端序列号是根据竟争规则查找到的;
根据所述排序位置进行组播通信。
2、 如权利要求 1所述的方法, 其特征在于, 所述竟争规则具体为: 将所述终端设备的终端序列号中的第一位数值作为信号检测位,并根据该 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若所述 终端设备满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备确定为具有最大数值的 终端序列号的终端设备。
3、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据排序规则和查 的终端序列号在组播组中的排序位置, 包括: 数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列号 所对应的终端设备的所述组播组中,根据所述竟争规则判断所述本端的终端序 列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序 列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,以得到所述本端的终端序列号在组播组中的排 序位置。
4、 如权利要求 1或 2所述的方法, 其特征在于, 所述根据排序规则和查 的终端序列号在组播组中的排序位置, 包括:
将所述本端的终端序列号的前至少一位作为分组检测位,并在所述分组检 测位等于分组特性数时,将所述本端的终端序列号分到与所述分组特性数关联 的二次终端组中,所述二次终端组是才艮据所述分组特性数所生成的组, 所述分 组特性数包括多个与所述分组检测位关联的数值;
根据递减排序规则对本端所在的二次终端组中的终端序列号进行递减排 序, 得到所述本端的终端序列号在所述二次终端组中的排序位置;
根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述 本端的终端序列号在组播组中的排序位置;
其中, 所述递减排序规则是根据最大数值的终端序列号所设置的规则。
5、 如权利要求 4所述的方法, 其特征在于, 所述根据所述本端的终端序 列号在所述二次终端组中的排序位置计算出所述本端的终端序列号在组播组 中的排序位置, 包括:
侦听所述组播组内各二次终端组中数值最小的终端序列号对应的终端设 备发送的数量信息;
根据所述数量信息计算出所述本端的终端序列号在组播组中的排序位置; 其中, 所述数量信息为二次终端组中的终端设备的数量。
6、 如权利要求 4所述的方法, 其特征在于, 所述根据所述本端的终端序 列号在所述二次终端组中的排序位置计算出所述本端的终端序列号在组播组 中的排序位置, 包括:
与所述组播组内各二次终端组中相应排序位置的终端设备以频分多址的 方式发送信息, 并侦听各二次终端组中相应排序位置的终端设备发送的信息; 根据对应的频域以及时域上的终端设备发送的信息计算出各二次终端组 中的终端设备的数量;
根据所述各二次终端组中的终端设备的数量计算出所述本端的终端序列 号在组播组中的排序位置。
7、 如权利要求 4至 6任一项所述的方法, 其特征在于, 所述根据递减排 序规则对本端所在的二次终端组中的终端序列号进行递减排序,得到所述本端 的终端序列号在所述二次终端组中的排序位置, 包括: 端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的 终端序列号所对应的终端设备的所述二次终端组中,根据所述竟争规则判断所 述本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所 述本端的终端序列号为最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,得到所述本端的终端序列号在所述二次终端组 中的排序位置。
8、 一种终端设备, 其特征在于, 包括:
排序模块,用于根据排序规则和查找到的最大数值的终端序列号对本端的 终端序列号进行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值的终端序列号是根据竟争规则查找到的;
通信模块, 用于根据所述排序位置进行组播通信。
9、 如权利要求 8所述的终端设备, 其特征在于, 所述排序模块中的竟争 规则具体为:
将所述终端设备的终端序列号中的第一位数值作为信号检测位,并根据该 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若所述 终端设备满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备确定为具有最大数值的 终端序列号的终端设备。
10、如权利要求 8或 9所述的终端设备,其特征在于,所述排序模块包括: 判断单元,用于根据所述竟争规则判断所述本端的终端序列号是否为所述 组播组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值 的终端序列号的组播组中,根据所述竟争规则判断所述本端的终端序列号是否 为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序列号为最 大数值的终端序列号;
记录单元, 用于当判断所述本端的终端序列号为最大数值的终端序列号 时,记录所述本端的终端序列号的当前排序位置, 以得到所述本端的终端序列 号在组播组中的排序位置。
11、如权利要求 8或 9所述的终端设备,其特征在于,所述排序模块包括: 二次分组单元,用于将所述本端的终端序列号的前至少一位作为分组检测 位, 并在所述分组检测位等于分组特性数时,将所述本端的终端序列号分到与 所述分组特性数关联的二次终端组中,所述二次终端组是根据所述分组特性数 所生成的组, 所述分组特性数包括多个与所述分组检测位关联的数值;
递减排序单元,用于根据递减排序规则对本端所在的二次终端组中的终端 序列号进行递减排序,得到所述本端的终端序列号在所述二次终端组中的排序 位置;
计算单元,用于根据所述本端的终端序列号在所述二次终端组中的排序位 置计算出所述本端的终端序列号在组播组中的排序位置; 其中,所述递减排序单元中的所述递减排序规则是根据最大数值的终端序 列号所设置的规则。
12、 如权利要求 11所述的终端设备, 其特征在于, 所述计算单元包括: 数量侦听子单元,用于侦听所述组播组内各二次终端组中数值最小的终端 序列号对应的终端设备发送的数量信息;
第一计算子单元,用于根据所述数量信息计算出所述本端的终端序列号在 组播组中的排序位置;
其中,所述数量侦听子单元侦听到的所述数量信息为二次终端组中的终端 设备的数量。
13、 如权利要求 11所述的终端设备, 其特征在于, 所述计算单元包括: 发送侦听子单元,用于与所述组播组内各二次终端组中相应排序位置的终 端设备以频分多址的方式发送信息,并侦听各二次终端组中相应排序位置的终 端设备发送的信息; 计算出各二次终端组中的终端设备的数量;
第二计算子单元,用于根据所述各二次终端组中的终端设备的数量计算出 所述本端的终端序列号在组播组中的排序位置。
14、 如权利要求 11至 13任一项所述的终端设备, 其特征在于, 所述递减 排序单元包括:
数值判断子单元,用于根据所述竟争规则判断所述本端的终端序列号是否 为本端所在的二次终端组中最大数值的终端序列号, 若判断为否, 则在不包括 已判断为最大数值的终端序列号的二次终端组中,根据所述竟争规则判断所述 本端的终端序列号是否为最大数值的终端序列号, 重复本步骤, 直至判断所述 本端的终端序列号为最大数值的终端序列号; 排序记录子单元,用于当判断所述本端的终端序列号为最大数值的终端序 列号时,记录所述本端的终端序列号的当前排序位置,得到所述本端的终端序 列号在所述二次终端组中的排序位置。
15、 一种计算机存储介质, 其特征在于,
所述计算机存储介质可存储有程序, 该程序执行时包括如权利要求 1至 7 任一项所述的步骤。
16、 一种终端设备, 其特征在于, 包括: 处理器、 通信接口和存储器, 其 中,
所述通信接口, 用于与组播组中的终端设备进行通信;
所述存储器用于存储程序;
所述处理器用于执行所述程序, 以实现
根据排序规则和查找到的最大数值的终端序列号对本端的终端序列号进 行排序, 以得到所述本端的终端序列号在组播组中的排序位置, 所述最大数值 的终端序列号是根据竟争规则查找到的;
根据所述排序位置进行组播通信。
17、 如权利要求 16所述的终端设备, 其特征在于, 所述竟争规则具体为: 将所述终端设备的终端序列号中的第一位数值作为信号检测位,并根据该 号发送条件, 并将所述终端序列号中的下一位数值作为信号检测位, 重复本步 骤, 直至将所述终端序列号中的最后一位数值作为信号检测位, 其中, 若所述 终端设备满足信号发送条件, 则广播本端检测信号, 否则, 侦听检测信号; 在重复结束后,将没有侦听到检测信号的终端设备确定为具有最大数值的 终端序列号的终端设备。
18、 如权利要求 16或 17所述的终端设备, 其特征在于, 所述处理器具体 用于: 数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的终端序列号 的组播组中,根据所述竟争规则判断所述本端的终端序列号是否为最大数值的 终端序列号, 重复本步骤, 直至判断所述本端的终端序列号为最大数值的终端 序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,以得到所述本端的终端序列号在组播组中的排 序位置。
19、 如权利要求 16或 17所述的终端设备, 其特征在于, 所述处理器具体 用于:
将所述本端的终端序列号的前至少一位作为分组检测位,并在所述分组检 测位等于分组特性数时,将所述本端的终端序列号分到与所述分组特性数关联 的二次终端组中,所述二次终端组是根据所述分组特性数所生成的组, 所述分 组特性数包括多个与所述分组检测位关联的数值;
根据递减排序规则对本端所在的二次终端组中的终端序列号进行递减排 序, 得到所述本端的终端序列号在所述二次终端组中的排序位置;
根据所述本端的终端序列号在所述二次终端组中的排序位置计算出所述 本端的终端序列号在组播组中的排序位置;
其中, 所述递减排序规则是根据最大数值的终端序列号所设置的规则。
20、 如权利要求 19所述的终端设备, 其特征在于, 所述处理器具体用于: 侦听所述组播组内各二次终端组中数值最小的终端序列号对应的终端设 备发送的数量信息;
根据所述数量信息计算出所述本端的终端序列号在组播组中的排序位置; 其中, 所述数量信息为二次终端组中的终端设备的数量。
21、 如权利要求 19所述的终端设备, 其特征在于, 所述处理器具体用于: 与所述组播组内各二次终端组中相应排序位置的终端设备以频分多址的 方式发送信息, 并侦听各二次终端组中相应排序位置的终端设备发送的信息; 根据对应的频域以及时域上的终端设备发送的信息计算出各二次终端组 中的终端设备的数量;
根据所述各二次终端组中的终端设备的数量计算出所述本端的终端序列 号在组播组中的排序位置。
22、 如权利要求 19至 21任一项所述的终端设备, 其特征在于, 所述处理 器具体用于: 端组中最大数值的终端序列号, 若判断为否, 则在不包括已判断为最大数值的 终端序列号的二次终端组中,根据所述竟争规则判断所述本端的终端序列号是 否为最大数值的终端序列号, 重复本步骤, 直至判断所述本端的终端序列号为 最大数值的终端序列号;
当判断所述本端的终端序列号为最大数值的终端序列号时,记录所述本端 的终端序列号的当前排序位置,得到所述本端的终端序列号在所述二次终端组 中的排序位置。
PCT/CN2013/089565 2013-12-16 2013-12-16 一种序列号排序的方法以及终端设备 WO2015089710A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201380003301.3A CN104956623B (zh) 2013-12-16 2013-12-16 一种序列号排序的方法以及终端设备
PCT/CN2013/089565 WO2015089710A1 (zh) 2013-12-16 2013-12-16 一种序列号排序的方法以及终端设备

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/089565 WO2015089710A1 (zh) 2013-12-16 2013-12-16 一种序列号排序的方法以及终端设备

Publications (1)

Publication Number Publication Date
WO2015089710A1 true WO2015089710A1 (zh) 2015-06-25

Family

ID=53401903

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/089565 WO2015089710A1 (zh) 2013-12-16 2013-12-16 一种序列号排序的方法以及终端设备

Country Status (2)

Country Link
CN (1) CN104956623B (zh)
WO (1) WO2015089710A1 (zh)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4521368B2 (ja) * 2006-02-24 2010-08-11 株式会社東芝 通信装置、通信方法および通信プログラム
CN101939954A (zh) * 2008-02-08 2011-01-05 松下电器产业株式会社 终端装置和n-树构筑方法
CN102571452A (zh) * 2012-02-20 2012-07-11 华为技术有限公司 多节点管理的方法和系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996931B (zh) * 2005-12-31 2010-09-22 迈普通信技术股份有限公司 网络组播方法

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4521368B2 (ja) * 2006-02-24 2010-08-11 株式会社東芝 通信装置、通信方法および通信プログラム
CN101939954A (zh) * 2008-02-08 2011-01-05 松下电器产业株式会社 终端装置和n-树构筑方法
CN102571452A (zh) * 2012-02-20 2012-07-11 华为技术有限公司 多节点管理的方法和系统

Also Published As

Publication number Publication date
CN104956623B (zh) 2018-03-16
CN104956623A (zh) 2015-09-30

Similar Documents

Publication Publication Date Title
TWI628969B (zh) 聯合用戶分組與功率分配方法以及使用所述方法的基地台
JP5703416B2 (ja) パーソナルエリアネットワーク(pan)のワイヤレス技術を使用したマルチキャストを実装するためのシステムおよび方法
WO2020216059A1 (zh) 网络资源共享方法及相关装置
CN107846718A (zh) 数据传输方法及中继节点
CN105122915A (zh) 监听报告生成方法、装置及用户设备
TWI653864B (zh) 高安全性之區塊鏈資料傳送方法
CN106471852A (zh) 一种数据传输方法、装置及系统
WO2023273241A1 (zh) 组网通信方法、系统、节点设备、存储介质和电子设备
CN110602001A (zh) 远端环回测试装置及方法
TWI639351B (zh) 透過探索探子來探索Wi-Fi直接服務
WO2015180017A1 (zh) 设备到设备临近服务中传输信号的方法、基站和用户设备
WO2015089710A1 (zh) 一种序列号排序的方法以及终端设备
EP3249959B1 (en) Data transmission method and device
TWI791072B (zh) 終端與基站的通訊方法和裝置及機器可讀媒體
CN114501609B (zh) 通信组网方法、装置、存储介质、计算机设备
WO2020147081A1 (zh) 一种数据传输方法、相关设备及计算机存储介质
CN106105097A (zh) 无线网络中基于公平性的消息传输
WO2014117339A1 (zh) 网络功能的通知处理方法、装置和系统
US20060143283A1 (en) Method and apparatus for providing decentralized load distribution
CN109617818B (zh) 一种报文转发方法及装置
CN102271065A (zh) 二层网络中组播转发路径的检测方法及交换设备
WO2020038393A1 (zh) 一种数据传输方法及终端
WO2015089714A1 (zh) 一种资源分配的方法以及终端设备
CN111447213B (zh) 用于发现服务的验证码确定方法、装置及设备发现系统
CN103780503A (zh) 一种负载均衡的实现方法和设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13899556

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13899556

Country of ref document: EP

Kind code of ref document: A1