Information query method and device
First Claim
1. An information query method comprising:
- receiving, by a responding device, a first query request message sent in a broadcast manner by a requesting device, wherein the first query request message carries a first query condition and information about a group identity;
when the responding device meets the first query condition, obtaining and recording, by the responding device, the group identity according to the first query request message, and sending a first query response message to the requesting device; and
receiving, by the responding device, a second query request message sent by the requesting device, and when a receiving address of the second query request message is the group identity, parsing content of the second query request message, so as to process the second query request message;
wherein the information about the group identity comprises the group identity, and the obtaining and recording, by the responding device, the group identity according to the first query request message comprises;
directly obtaining, by the responding device, the group identity from the first query request message and recording the group identity; and
wherein the information about the group identity comprises group identity indication information, the group identity indication information is used to indicate a predetermined rule used for obtaining the group identity, and the obtaining and recording, by the responding device, the group identity according to the first query request message comprises obtaining, by the responding device, the group identity according to the predetermined rule and recording the group identity.
3 Assignments
0 Petitions
Accused Products
Abstract
Embodiments of the present invention provide an information query method and device, which can reduce a waste of resources in an information query process, and decrease power consumption. The method includes: sending, by a requesting device in a broadcast manner, a first query request message, where the first query request message carries a first query condition and information about a group identity; and when the requesting device receives a first query response message sent by a responding device that meets the first query condition, sending, by the requesting device, a second query request message that uses the group identity as a receiving address, so that the responding device processes the second query request message.
-
Citations
12 Claims
-
1. An information query method comprising:
-
receiving, by a responding device, a first query request message sent in a broadcast manner by a requesting device, wherein the first query request message carries a first query condition and information about a group identity; when the responding device meets the first query condition, obtaining and recording, by the responding device, the group identity according to the first query request message, and sending a first query response message to the requesting device; and receiving, by the responding device, a second query request message sent by the requesting device, and when a receiving address of the second query request message is the group identity, parsing content of the second query request message, so as to process the second query request message; wherein the information about the group identity comprises the group identity, and the obtaining and recording, by the responding device, the group identity according to the first query request message comprises;
directly obtaining, by the responding device, the group identity from the first query request message and recording the group identity; andwherein the information about the group identity comprises group identity indication information, the group identity indication information is used to indicate a predetermined rule used for obtaining the group identity, and the obtaining and recording, by the responding device, the group identity according to the first query request message comprises obtaining, by the responding device, the group identity according to the predetermined rule and recording the group identity. - View Dependent Claims (2, 3, 4, 5)
-
-
6. An electronic device comprising:
-
a transmitter configured to send a first query request message in a broadcast manner, wherein the first query request message carries a first query condition and information about a group identity; a receiver configured to receive a first query response message sent by a responding device that meets the first query condition; a processor; and a memory storing a program to be executed in the processor, the program comprising instructions for controlling the transmitter to send a second query request message that uses the group identity as a receiving address when the receiver receives the first query response message; wherein the information about the group identity comprises the group identity, so that the responding device directly obtains the group identity from the first query request message sent by the transmitter and records the group identity; wherein the information about the group identity comprises group identity indication information, so that the responding device obtains the group identity according to a predetermined rule indicated by the group identity indication information and records the group identity; and wherein the first query request message further comprises an address of a requesting device, and the predetermined rule comprises; modifying a unicast-indicative characteristic bit value of the address of the requesting device to a multicast-indicative characteristic bit value, to obtain the group identity;
orperforming a hash operation according to the address of the requesting device, to obtain the group identity. - View Dependent Claims (7, 8)
-
-
9. A service device comprising:
-
a receiver configured to receive a first query request message sent in a broadcast manner by a requesting device, wherein the first query request message carries a first query condition and information about a group identity; a processor; and a memory storing a program to be executed in the processor, the program comprising instructions for obtaining and recording the group identity according to the first query request message when a responding device meets the first query condition, wherein the receiver is further configured to receive a second query request message that is sent by the requesting device and uses the group identity as a receiving address; and
wherein the program includes further instructions for parsing content of the second query request message when the receiving address of the second query request message is the group identity;wherein the information about the group identity comprises the group identity, and program includes further instructions for directly obtaining the group identity from the first query request message and record the group identity in the memory when the responding device meets the first query condition; wherein the information about the group identity comprises group identity indication information, and the program includes further instructions for obtaining the group identity according to a predetermined rule indicated by the group identity indication information and record the group identity into the memory; and wherein the first query request message further comprises an address of the requesting device, and the program includes further instructions for; modifying a unicast-indicative characteristic bit value of the address of the requesting device to a multicast-indicative characteristic bit value, to obtain the group identity;
orperforming a hash operation according to the address of the requesting device, to obtain the group identity. - View Dependent Claims (10, 11, 12)
-
Specification