WO2014179952A1 - 一种信息查询方法、设备及系统 - Google Patents
一种信息查询方法、设备及系统 Download PDFInfo
- Publication number
- WO2014179952A1 WO2014179952A1 PCT/CN2013/075338 CN2013075338W WO2014179952A1 WO 2014179952 A1 WO2014179952 A1 WO 2014179952A1 CN 2013075338 W CN2013075338 W CN 2013075338W WO 2014179952 A1 WO2014179952 A1 WO 2014179952A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- hash value
- information
- information query
- data information
- type
- Prior art date
- Legal status (The legal status 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 status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W8/00—Network data management
- H04W8/005—Discovery of network devices, e.g. terminals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W76/00—Connection management
- H04W76/10—Connection setup
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/51—Discovery or management thereof, e.g. service location protocol [SLP] or web services
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W84/00—Network topologies
- H04W84/02—Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
- H04W84/10—Small scale networks; Flat hierarchical networks
- H04W84/12—WLAN [Wireless Local Area Networks]
Definitions
- the present invention relates to the field of communications, and in particular, to an information query method, device, and system. Background technique
- WiFi networks are widely used.
- many communication devices support WiFi technology, such as mobile phones, computers, tablets, and other communication devices, that is, these communication devices can communicate over a WiFi network.
- WiFi networks are spread over public places or private places, such as hotels, schools, hospitals and residential buildings.
- the communication device communicates through the WiFi network, and the frames of the WiFi network are used for communication, that is, the information transmission between the communication devices is carried on the frame of the WiFi network, and then the information is completed through the frame of the WiFi network.
- the information query is a device (for example: device A) to know whether there is any information matching the needs of the surrounding area. If there is a device (such as device B) that has information matching the requirement, device B can inform Device A has this matching information.
- the query process between the two devices can also be performed through WiFi frames.
- the structure of the frame of the WiFi network is too cumbersome.
- the redundant information of the frame of the WiFi network is too much.
- the frame header of the structure of the probe request frame or the probe response frame includes a frame control field (Frame Control). Time/ID field, address field, sequence control field (Sequence), etc., the frame header occupies 28 bytes, and in the case of a small amount of query, the probe request frame and detection
- the response frame carries a small amount of information, which may be one or more names, or addresses.
- the frame body may only occupy a few bytes, and the frame body is the part carrying the information, that is, for such a probe request frame or Only a few bytes in the probe response frame are used to carry information, and the remaining bytes can be understood as redundant information.
- the redundant components in the transmitted frame are large, and the really meaningful information is not much, so that the query occupies more network resources, resulting in low utilization of network resources.
- an information query method provided by the first aspect of the present invention includes:
- the first device sends a no data information query request frame, where the no data information query request frame includes first control information and a first hash value, where the first hash value is a first hash function for the first information a hash value generated after the operation, the no data information query request frame does not include a target address; the first control information includes at least first indication information indicating a type of the no data information query request frame;
- the first device receives the no data information query response frame sent by the second device, where the no data information query response frame includes second control information, a second hash value, and an address of the second device, where the second hash value is
- the second device uses a second hash function to generate a hash value, and the no data information query response frame does not include a target address; the second control information includes at least No second information indicating the type of the request frame of the data information;
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device, where the third hash value is Is a hash value generated after the first information is processed by the second hash function, where the data information query request frame includes an address of the second device and an address of the first device, so that And the second device responds to the data information query request frame when receiving the data information query request frame.
- the second information is information that uses a hash value generated by the first hash function to be consistent with the first hash value.
- the no data information query response frame includes multiple second hash values
- the first device determines the third The hash value is consistent with the second hash value, including:
- the first device determines that the third hash value is consistent with at least one of the plurality of second hash values.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the data-free information query request frame further carries a feature for indicating a property of the first hash value.
- the no data information query response frame further carries fourth indication information for indicating a property of the second hash value
- the nature of the first hash value is a requesting property or a neutral property; the property of the second hashing value is a publishing property or a neutral property.
- the second hash value includes the first hash value
- the first hash function is the same as the second hash function.
- the no data information query request frame does not include a sending address
- the no data information query response frame does not include a sending address
- the no data information query request frame and the no data information query response frame are media access control (Media Access Control) Address, MAC) frame.
- an information query method provided by the first aspect of the present invention includes:
- the second device acquires a no-data information query request frame that is sent by the first device and includes the first control information and the first hash value.
- the first hash value is obtained by using the first hash function after the first information is used.
- the generated hash value, the no data information query request frame does not include a target address;
- the first control information includes at least first indication information for indicating a type of the no data information query request frame;
- the second device When the second device has the second information corresponding to the first hash value, the second device sends a no data information query response frame, where the no data information query response frame includes the second control information, the second And the address of the second device, so that the first device determines that the third hash value is consistent with the second hash value, and the data query is sent by the first device to the second device.
- the third hash value is a hash value generated by the first device after the first information is processed by the second hash function
- the data information query request frame includes The address of the second device and the address of the first device; wherein, the second hash value is a hash value generated by the second device after the second hash function is performed on the second information
- the data-free information query response frame does not include a target address
- the second control information includes at least second indication information for indicating a type of the no-data information query request frame.
- the second device responds to the data information query request frame when receiving the data information query request frame.
- the second information is information that uses a hash value generated after the first hash function is consistent with the first hash value.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the data no information query request frame further carries a third element for indicating a property of the first hash value. Indication information
- the no data information query response frame further carries fourth indication information for indicating a property of the second hash value
- the nature of the first hash value is a requesting property or a neutral property; the property of the second hashing value is a publishing property or a neutral property.
- the second hash value includes the first hash value
- the first hash function is the same as the second hash function.
- the no data information query request frame and the no data information query response frame are MAC frames.
- an embodiment of the present invention provides a communications device, including: a sending unit, a receiving unit, and a determining unit, where:
- the sending unit is configured to send the dataless information query request frame;
- the no data information query request frame includes first control information and a first hash value, where the first hash value is for the first information a hash value generated by the first hash function operation, the no data information query request frame does not include a target address;
- the first control information includes at least a type indicating a type of the no data information query request frame An indication message;
- the receiving unit is configured to receive a no-data information query response frame sent by the second device, where the no-data information query response frame includes second control information, a second hash value, and an address of the second device, where The hash value is a hash generated by the second device after the second hash function is used for the second information. a value, the no data information query response frame does not include a target address; the second control information includes at least second indication information for indicating a type of the no data information query request frame;
- the determining unit is configured to: when the third hash value is consistent with the second hash value, send a data information query request frame to the second device, where the third hash value is a message: a hash value generated by the second hash function operation, wherein the data information query request frame includes an address of the second device and an address of the first device, so that the second device Responding to the data information query request frame when receiving the data information query request frame.
- the second information is information that uses a hash value generated by the first hash function to be consistent with the first hash value.
- the dataless information query response frame includes a plurality of second hash values
- the determining unit is further configured to determine the third hash value and the plurality of second When at least one of the hash values is identical, the data information query request frame is transmitted to the second device.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the no data information query request frame further carries a third element for indicating a property of the first hash value. Indication information
- the no data information query response frame further carries fourth indication information for indicating a property of the second hash value
- the nature of the first hash value is a requesting property or a neutral property; the property of the second hashing value is a publishing property or a neutral property.
- an embodiment of the present invention provides a communications device, including: a receiving unit, a sending unit, and a response unit, where:
- the receiving unit is configured to acquire a no-data information query request frame that is sent by the first device and includes the first control information and the first hash value; the first hash value is used to use the first information for the first information.
- a hash value generated after the operation of the function, the data-free information query request frame does not include a target address; the first control information includes at least first indication information for indicating a type of the no-data information query request frame;
- the sending unit is configured to: when the second device has the second information corresponding to the first hash value, send a no data information query response frame, where the no data information query response frame includes the second control information, a second hash value and an address of the second device, so that when the first device determines that the third hash value is consistent with the second hash value, the first device sends data to the second device.
- An information query request frame where the third hash value is a hash value generated by the first device after the first information is processed by the second hash function, and the data information query request is generated.
- the frame includes an address of the second device and an address of the first device, where the second hash value is a hash generated by the second device using the second hash function after the second information is used by the second device a value, the no data information query response frame does not include a target address, and the second control information includes at least second indication information for indicating a type of the no data information query request frame;
- the response unit is configured to respond to the data information query request frame when receiving the data information query request frame.
- the second information is information that uses a hash value generated by the first hash function to be consistent with the first hash value.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the no data information query request frame further carries a third element for indicating a property of the first hash value. Indication information
- the no data information query response frame further carries fourth indication information for indicating a property of the second hash value
- the nature of the first hash value is a requesting property or a neutral property; the property of the second hashing value is a publishing property or a neutral property.
- an embodiment of the present invention provides a communication device, including: a transmitter and a receiver, and a processor coupled to the transmitter and the receiver, respectively, where
- the transmitter is configured to send a no-data information query request frame, where the no-data information query request frame includes first control information and a first hash value, where the first hash value is used for the first information a hash value generated after a hash function operation, the no data information query request frame does not include a target address;
- the first control information includes at least first indication information for indicating a type of the no data information query request frame;
- the receiver is configured to receive a no-data information query response frame sent by the second device, where the no-data information query response frame includes second control information, a second hash value, and an address of the second device, where The hash value is a hash value generated by the second device after the second information is used by the second device, and the no data information query response frame does not include the target address; the second control information includes at least And second indication information indicating a type of the no data information query request frame;
- the processor configured to parse the second hash value from the no data information query response frame received by the receiver, and determine whether the third hash value is consistent with the second hash value;
- the third hash value is a hash value generated after the first information is operated by the second hash function;
- the transmitter is further configured to: when the processor determines that the third hash value is consistent with the second hash value, send a data information query request frame to the second device, where the data information query request is The frame includes an address of the second device and an address of the communication device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the second information is information that the hash value generated by the first hash function is consistent with the first hash value.
- the data-free information query response frame includes multiple second hash values
- the processor is further configured to determine Whether the third hash value is consistent with at least one of the plurality of second hash values.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the no data information query request frame further carries a third element for indicating a property of the first hash value Indication information
- the no data information query response frame further carries a property for indicating the second hash value. Fourth indication information;
- the nature of the first hash value is a requesting property or a neutral property; the property of the second hashing value is a publishing property or a neutral property.
- a sixth aspect of the present invention provides a communication device, including: a transmitter and a receiver, and a processor coupled to the transmitter and the receiver, respectively, where:
- the receiver is configured to acquire a no-data information query request frame that is sent by the first device and includes the first control information and the first hash value; the first hash value is used to use the first information for the first information.
- a hash value generated after the operation of the function, the data-free information query request frame does not include a target address; the first control information includes at least first indication information for indicating a type of the no-data information query request frame;
- the processor configured to parse the first hash value from the no data information query request frame received by the receiver, and determine whether the communication device has a second corresponding to the first hash value Information
- the transmitter is configured to: when the processor determines that the communication device has second information corresponding to the first hash value, send a no data information query response frame, where the no data information query response frame includes a second control information, a second hash value, and an address of the communication device, such that when the first device determines that the third hash value is consistent with the second hash value, the first device communicates with the first device
- the device sends a data information query request frame, where the third hash value is a hash value generated by the first device after the first information is used by the first device, and the The data information query request frame includes an address of the communication device and an address of the first device, where the second hash value is a hash generated by the processor after the second hash function is used for the second information a value, the no data information query response frame does not include a target address, and the second control information includes at least second indication information for indicating a type of the no data information query request frame;
- the processor is further configured to respond to the data information query request frame when the data information query request frame is received.
- the second information is information that is consistent with the first hash value by using a hash value generated after the first hash function operation.
- the type of the dataless information query request frame includes a request type or a neutral type
- the type of the no data information query response frame includes a release type or a neutral type.
- the data-free information query request frame further carries a third element for indicating a property of the first hash value. Indication information;
- the no data information query response frame further carries fourth indication information for indicating a property of the second hash value
- the nature of the first hash value is a requesting property or a neutral property; the property of the second hashing value is a publishing property or a neutral property.
- the no data information query request frame includes only the first control information, the first hash value, and the no data information query response frame includes only the second control information, the second hash value, and the address of the second device.
- the first device obtains the no-data information query response frame
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device
- the data information query request frame includes an address of the second device and an address of the first device, so that the second device receives the data information query request frame for the data information.
- the query request frame responds.
- the no-data information query request frame and the no-data information query response frame in the embodiment of the present invention are shorter than the frames in the prior art, so that the query occupies less network resources, resulting in high utilization of network resources.
- FIG. 1 is a schematic flowchart of an information query method according to an embodiment of the present invention.
- FIG. 2 is a schematic structural diagram of an optional data-free frame according to an embodiment of the present invention
- FIG. 8 is a schematic flowchart of another information query method according to an embodiment of the present invention
- FIG. 10 is a schematic structural diagram of a communication device according to an embodiment of the present invention.
- FIG. 11 is a schematic structural diagram of another communication device according to an embodiment of the present invention.
- FIG. 12 is a schematic structural diagram of another communication device according to an embodiment of the present invention.
- FIG. 13 is a schematic structural diagram of another communication device according to an embodiment of the present invention. detailed description
- the address of the device may be the MAC address of the device.
- the device in the embodiment of the present invention can communicate with any device in the network, for example, any communication device in the WiFi network, such as a communication device such as a mobile phone, a computer, a tablet computer, or a printer.
- the first device can be any communication device in the communication network
- the second device can be any communication device other than the first device in the communication network.
- the no-data information query request frame is a frame without a frame body part, and only a data frame of a frame header and a check code.
- the content of the frame header of the no data information query request is also defined, that is, the target address is not included.
- the destination address includes a Receive Address (RA) and a destination address.
- RA indicates the next hop receiving address of the frame where the RA is located
- DA indicates the final destination address of the frame where the DA is located.
- the embodiment of the present invention does not include a target address, that is, neither RA nor DA.
- the header of the no data information query request frame contains a hash value, and there is no information element in other frame bodies defined in the existing IEEE802.il protocol.
- the no data information query request frame does not include a sending address, and the sending address can send an address.
- the no-data information query response frame is a frame without a frame body part proposed by the embodiment of the present invention, and only a data frame of a frame header and a check code.
- the embodiment of the present invention also defines the content of the frame header of the no-data information query response frame, that is, includes the sending address, but does not include the frame receiving address, and the no-data information query response frame does not include the sending address, and the sending address refers to The address of the device that forwards the response frame without data information.
- the header of the no data information query response frame contains a hash value, and there is no information element in other frame bodies defined in the existing IEEE802.il protocol.
- the existing frame includes three parts of the frame header, the frame body and the check code or sometimes some frames have no frame body.
- No data information check provided by the embodiment of the present invention The request frame and the no data information query response frame are simple in structure and can carry more information, for example, can carry more hash values.
- the dataless information query request frame and the no data information query response frame may be Media Access Control Address (MAC) frames.
- MAC Media Access Control Address
- the first information may be information that the first device needs to query, such as: information of a service, a user identifier, a service, a program, a game, and the like.
- the information supported by the first device refers to the function, service, and program described by the first device to support the information, such as the color printing v2.0, that is, the first device supports the color printing of the v2.0 version.
- the second information may be any information supported on the second device, such as: information of a service, a user identity, a service, a program, a game, and the like.
- the information supported on the second device refers to the function, service, and program described by the first device to support the information.
- 1 is a schematic flowchart of an information query method according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
- the first device sends a no-data information query request frame, where the no-data information query request frame includes first control information and a first hash value, where the first hash value is used for the first information.
- a hash value generated after the operation of the function, the data-free information query request frame does not include a target address, and the first control information includes at least first indication information for indicating a type of the no-data information query request frame.
- the no data query request frame can have more bytes for carrying content information, for example, : Use more bytes to carry a hash value, which can carry multiple first hash values.
- the no-data information query request frame does not include the target address, and the no-data information query request frame does not include the address of the device that obtains the no-data information query request frame, and the non-data information query request frame is obtained.
- the device may include the foregoing second device, and the device that obtains the dataless information query request frame may further include other devices in the network than the second device. In this way, when the first device sends the no data information query request frame, there is no explicit receiving device, that is, the first device only It is required to be responsible for sending the no-data information query request frame. As for which device is not requested by the data-free information query request frame, the first device does not need to be considered.
- the first device receives a no-data information query response frame sent by the second device, where the no-data information query response frame includes second control information, a second hash value, and an address of the second device, where the second hash is The value is a hash value generated by the second device after the second information is used by the second device, and the no data information query response frame does not include the target address; the second control information includes at least the indication The no data information queries the second indication information of the type of the request frame.
- the second device may be a real-time listening network whether to transmit a data information query request frame, or a periodic listening network whether to transmit a data information query request frame.
- the no data information query request frame is obtained, and the obtained no data information query response frame is parsed to obtain the first information included in the no data information query request frame.
- Hash value When the second device determines, according to the first hash value, that the second device has the second information corresponding to the first hash value, the second device sends the non-data information query response frame. .
- the no-data information query response frame does not include the target address, and the no-data information query response frame does not include the address of the device that obtains the no-data information query response frame, and the device that obtains the no-data information query response frame is obtained.
- the device may include the first device, and the device that obtains the dataless information query response frame may further include other devices in the network than the first device.
- the second hash value may be pre-generated by the second device, or may be, when the second device determines, according to the first hash value, that the second device has a corresponding value corresponding to the first hash value.
- the second device uses the hash value generated by the second hash function for the second information.
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device, where the third hash value is
- the first information is a hash value generated by the second hash function
- the data information query request frame includes an address of the second device and an address of the first device, so that the The second device responds to the data information query request frame when receiving the data information query request frame.
- the data information query request frame is a frame including a frame header, a frame body, and a check code, and the frame can refer to a MAC frame in the prior art.
- the second device is a device that the first device needs to query, for example, the service required by the first device provided by the second device, such as hit
- the second device is a device that the first device needs to find, for example, the second device is performing a certain service at the same time as the first device, for example, the second device and the first device are running a certain game at the same time; for example:
- the second device logs in to the same user ID and the like at the same time as the first device.
- the first device may send a data information query request frame to the second device, where the data information query request frame includes an address of the second device and an address of the first device, so that the second device Responding to the data information query request frame when receiving the data information query request frame.
- the foregoing first hash function may include: performing a hash operation on the first information, and taking N bits of the hash result of the operation as a hash value, where N is a natural number And the N bits are not limited in the position of the hash operation result. That is, the first device performs a hash operation on the first information, and takes the N bits of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the first hash value is The inverse of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the second hash function may include:
- the second information is hashed, and the W bit of the hash result of the operation is taken as a hash value, where W is a natural number, and the W bit is not limited in the position of the hash operation result. That is, the second device performs a hash operation on the second information, and takes the W bit of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the second hash value is 128 bits.
- the inverse of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the above hash operation can be any of the following:
- the hash algorithm used in the hash operation in the first hash function may be different from the hash algorithm used in the hash operation in the second hash function.
- the data-free information query response frame includes a plurality of second hash values, that is, the second device has multiple second information, and the first device determines the third hash value and The second hash value is consistent and may include:
- the above-mentioned no data information query response frame may include A plurality of second hash values, and the number of bits of the second hash values may be proportional to the amount of second information present by the second device. For example, when the second device has two second information, the two second hash values may be 48 bits, and when the second device has three second information, the three second hash values may be 64. Bit and so on.
- the first device can be prevented from selecting the wrong second information, for example: the second device has two second information, and the values of the hash results of the two information are There are different places, such as the first hash value is the first to the last 32nd of the two hash results, and the inverse of the two hash results from the 33rd to the 18th of the last is different,
- the two second hash values generated by the second device are different, so that when the first device obtains the two second hash values, the second information that is consistent with the first information is selected from the two second information. .
- the foregoing second hash value may further include the foregoing first hash value, that is, the first hash value is a part or all of the second hash value.
- the hash result of the hash operation of the first information is 128 bits
- the first hash value is the first to the last 32 bits of the 128-bit hash value
- the second information is consistent with the first information. That is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information
- the second hash value is the first of the hash result of the hash operation of the second information. Countdown to the 48th.
- the first hash function is the same as the second hash function.
- the third hash value is consistent with the second hash value, that is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information, the first hash value and the second hash value.
- the Greek value is the same.
- the second information is information that the hash value generated by the first hash function is consistent with the first hash value, and may be that the second device
- the second device existence information performs a second hash function operation.
- the information is the second information.
- the second device existence information is performed by the second hash function operation. If the operation is good, the second device can also receive the first hash value.
- the second information may also refer to information that the hash result includes the first hash value, that is, after hashing the information, the hash result of the operation includes the first hash value.
- the no-data information query request frame may not include the sending address, that is, the address of the first device is not included, so that the second device does not know when the second device acquires the non-data information query request frame. Which device sends the no-data information query request frame, and the second device sends the no-data information query response frame in the manner that the first device sends the no-data information query request frame. And
- the no-data information query request frame and the no-data information query response may not include the time/identification field and the sequence control field in the prior art frame, that is, the no-data information query request frame in this embodiment may include only the control information.
- no data information query response frame only contains the first control information, the second hash value, the address of the second device and the check code, so that in addition to the first in the no data information query request frame In addition to the hash value, other information occupies a small amount, so the utilization of radio resources and the efficiency of the query become higher.
- it is not limited to only one hash value in a dataless frame, and may also carry multiple different hash values.
- no data information query request frame can carry multiple first hash values
- no data information query response frame can have more bytes for carrying the second hash value, for example: no data information query response
- a plurality of second hash values can be carried in the frame.
- the number of the second hash value carried by the no-data information query response frame does not have to be the same as the number of the no-data information query request frame, and may be only a plurality of carrying the non-data information query request frame.
- the second device may reply to one or more no-data information query response frames, or may reply to the one or more no-data information corresponding to the second device by multiple different second devices. Response frame.
- the foregoing first control information may include at least first indication information for indicating a type of the no data information query request frame.
- the first indication information is obtained, so that the second device can respond to the no-data information query request frame in response to the no-data information query response frame response to the no-data information.
- the query request frame that is, the second device sends the above-mentioned no data information query response frame. That is, the second control information includes at least second indication information for indicating a type of the no data information inquiry response frame.
- the type of the no data information query request frame may include a request type and a neutral type, and the type of the no data information query response frame may include a release type and a neutral type; and the type of the no data information query request frame is a request type.
- the first hash value can represent the first information.
- the first information is a target information, and the first hash value is used to indicate that the target is searched, that is, when the type of the non-data information query request frame acquired by the second device is a request type, the second device A hash value is understood as the first device looking for the first information.
- the first hash value is represented as searching for the service, or when the first information is information of a certain user identifier, the first hash value is represented as searching for the User ID, or the first information is information about a certain service
- the type of the no-data information query request frame is the request type
- the type of the non-data information query response frame is the release type
- the second hash value is used. It can be expressed as a second information; for example: the second hash information can also be a target information, and the second hash value is used to indicate that the target is published, that is, the type of the first device obtains the no-data information query response frame.
- the first device When the type is requested, the first device understands the second hash value as the second device issues the second information.
- the second information is information of a certain service
- the second hash value is expressed as the service is published, or the second information is information of a certain user identifier
- the second hash value is expressed as publishing the
- the second hash value is expressed as publishing the service or the like.
- the first hash value may be matched with the first information, for example, when the first information is a target information, the first hash value may be represented. Matching the target, such as information of a game, that is, the first hash value indicates that the game matches, such as information of a service, that is, the first hash value indicates that it is used to match the service.
- the type of the no-data information query request frame is a neutral type
- the type of the non-data information query response frame is a neutral type, that is, the second hash value may indicate that the second information matches, for example: The second information is a target information, and the second hash value can indicate that the target is matched.
- the second information is information of the game, that is, the second hash value indicates that the game matches, or the second information is serviced.
- the information that is, the second hash value indicates that it matches the service. That is, the type of the no-data information query request frame is different, and the meaning of the first hash value is different. The type of the no-data information query response frame is different, and the second hash value indicates different meanings.
- a request type non-data information query request frame it can carry multiple first hash values at the same time, indicating that it wants to query multiple information at the same time, for example: carrying the first hash corresponding to the printer and the scanner service at the same time.
- the value indicates that the first device searches for the printer and the scanner at the same time; for a neutral type of no data information query request frame, it can carry the first hash value of multiple information to be matched at the same time, for example, carrying the game at the same time.
- the first hash value corresponding to the name and the friend's name may also carry the first hash value of the various combinations of the request information, the posting information, and the neutral matching information, such as the first hash corresponding to the printer service carrying the request.
- the hash value corresponds to the first hash value corresponding to the publishing scanner service; for a non-data information query response frame of a release type or a neutral type, the second hash value may be carried at the same time, and one no data information query response frame. Can be queried only for no data information One or several of the plurality of first hash values carried in the request frame are responded.
- the dataless information query request frame may further carry third indication information for indicating a property of the first hash value, where the third indication information may be placed with the first hash.
- the third indication information may be placed with the first hash.
- front of the value when there are multiple first hash values, there are multiple third indication information, and each third indication information is used to indicate the nature of a first hash value, and each third indication information is placed correspondingly. The front of the first hash value.
- the no-data information query response frame may further carry fourth indication information for indicating a property of the second hash value; wherein the fourth indication information may be placed before the second hash value, when there are multiple second When the hash value is present, there are a plurality of fourth indication information, each fourth indication information is used to indicate the property of a third hash value, and each fourth indication information is placed before the corresponding second hash value.
- fourth indication information for indicating a property of the second hash value
- each fourth indication information is used to indicate the property of a third hash value
- each fourth indication information is placed before the corresponding second hash value.
- an integer multiple of 8 bits that is, the length of one byte
- 32-bit or 48-bit can be used to represent the first hash value and the second hash value, but
- one possible method is to use 2 bits as the indication information, and the other digits as the number of bits of the hash value, for example, 2 bits of indication information, 30 bits.
- the first hash value a total of 32 bits, for example, with 2 bits of information, 46 bits for the second hash value, a total of 48 bits.
- the property of the first hash value may include a request property and a neutral property
- the property of the second hash value may include a release property or a neutral property.
- the first hash value may represent the first information, for example: the first information may be a target information, and the first hash value is used to indicate the target.
- the second device acquires the nature of the first hash value as a requesting property, the second device understands the first hash value as the first device searching for the first information.
- the property of the first hash value is a request property
- the property of the second hash value is a publishing property
- the second hash value may be expressed as a second information.
- the first hash value may represent a match with the first information.
- the property of the second hash value described above is of a neutral nature, that is, the second hash value may represent a match with the second information. That is, the nature of the first hash value is different, the meaning of the first hash value is different, the nature of the second hash value is different, and the meaning of the second hash value is also different.
- the first indication information may include the first type information and the second type information, where the first type information is used to indicate that the no data information query request frame is a no data frame, where the type of the no data frame is The request type, the publication type, and the neutral type may be included, and the nature of the hash value of the no data frame may include the nature of the request, the nature of the publication, and the nature of the neutrality.
- the second type of information is used for the no data
- the type of the information query request frame is the request type or the neutral type.
- a subtype field in the first control information is the first type information, for example, a Subtype field in the first control information is 0001, and the first control information is The Type field (the byte used to represent the Type of the frame) is 00, and the other two bytes in the first control information are used for the second type information, for example, when the second type information is 00,
- the type of the no-data information query request frame is the request type. If the second type information is 10, the type of the no-data information query request frame is the neutral type.
- the foregoing second indication information may include third type information and fourth type information, where the third type information is used to indicate that the no data information query response frame is a no data frame, and the fourth type information is used.
- the type of the response data frame for the no data information query is the release type or the neutral type.
- the Subtype field in the second control information is the third type information, for example, the Subtype field in the second control information is 0001, the Type field in the second control information is 00, and the other in the second control information.
- Two bytes are used for the fourth type of information, for example, when the fourth type information is 01, the type indicating that there is no data information query response frame is the response type, and when the fourth type information is 10, it indicates that there is no data information query.
- the type of response frame is the neutral type.
- a dataless frame can be provided.
- the format of the dataless frame is as shown in FIG. 2, the Type field is 00, the Subtype field is 0001, and is used to indicate that there is no data frame, and the other two bytes can be 00. , 01 or 10, indicating that the type of no data frame is the request type, the release type, and the neutral type.
- the format of the no data information query request frame is shown in FIG. 3, and FIG. 3-1 shows that the type of the no data information query request frame is a request type, wherein the reservation in FIG. 3-1 indicates that these bytes can be reserved for use. Carrying other information can also be used to carry more no data information to query the request frame.
- Figure 3-2 shows that the type of the no-data information query request frame is of a neutral type; wherein the reservation in Figure 3-2 indicates that these bytes can be reserved for carrying other information, and can also be used to carry more no-data information.
- Query the request frame.
- the format of the no data information query response frame is shown in Figure 4.
- Figure 4-1 shows that the type of the no data information query response frame is the release type, where the reservation in Figure 4-1 indicates that these bytes can be reserved for carrying other Information can also be used to carry more no data information query response frames.
- Figure 4-2 shows that the type of the no-data information query response frame is a neutral type. The reservation in Figure 4-2 indicates that these bytes can be reserved for carrying other information, and can also be used to carry more no-data information.
- Query response frame The format of the no data information query response frame is shown in Figure 4.
- Figure 4-1 shows that the type of the no data information query response frame is the release type, where the reservation in Figure 4-1 indicates that these bytes can be reserved for carrying other
- the first indication information may include fifth type information, where the fifth type information is used.
- the type of the request message frame for the no data information query is the request type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the first control information is 0001, indicating that the type of the no data information query request frame is the request type, the first control When the Subtype field in the message is 0011, it indicates that the type of the no data information query request frame is the neutral type.
- the second indication information may include sixth type information, where the type information of the sixth type information is used for the type of the query or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the second control information is 0010, indicating that the type of the no data information query response frame is the release type, and the second control When the Subtype field in the message is 0011, it indicates that the type of the no data information query response frame is the neutral type.
- a dataless frame can be provided.
- the format of the dataless frame is as shown in FIG. 5, the Type field is 00, and the Subtype field is 0001, 0010, or 0011, indicating that the type of no data frame is a request type, Release type and neutral type.
- the format of the no data information query request frame is as shown in FIG. 6.
- FIG. 6-1 shows that the type of the no data information query request frame is a request type
- FIG. 6-2 shows that the no data information query request frame is of a neutral type.
- the format of the no data information query response frame is shown in Fig. 7.
- Fig. 7-1 shows that the type of the no data information query request frame is the request type
- Fig. 7-2 shows that the type of the no data information query request frame is a neutral type.
- the length of the request frame may be queried by the no data information to indicate the type of the no data information query request frame, or the nature of the first hash value.
- the length of the response frame can be queried by no data information to indicate the type of the response message frame without data information, or the nature of the second hash value.
- the no data information query request frame further includes an address of the first device
- the check code of the no data information query response frame is a check code obtained by the second device calculating the address of the first device and the source check code; wherein the source check code is the second Check code of the device;
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device, where the data information query request frame includes the
- the address of the second device and the address of the first device in response to the data device query request frame being received by the second device, may include:
- the first device sends a data information query request frame to the second device, where the data information query request frame includes an address of the second device and an address of the first device, so that the second device
- the device responds to the data information query request frame when receiving the data information query request frame. That is, the first device sends a data information query request frame to the second device only when the obtained check code is correct, wherein the data information query request frame includes the address of the second device. And an address of the first device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the dataless information query request frame may further include an address of the first device
- the no data information query response frame may further include an address of the first device.
- the no data information query request frame includes only the first control information, the first hash value, the address of the first device, and the check code
- the no data information query response includes only the second control information
- a hash value, an address of the first device, an address of the second device, and a check code can also improve the utilization of network resources in the present embodiment.
- the content of the no data information query request frame may be unrestricted in the position of the no data information query request frame, and the content included in the no data information query response frame may not be limited in the position of the no data information query response frame.
- the no data information query request frame includes only the first control information, the first hash value, and the no data information query response frame includes only the second control information, the second hash value, and the address of the second device.
- the first device obtains the no-data information query response frame
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device
- the data information query request frame includes an address of the second device and an address of the first device, so that the second device receives the data information query request frame for the data information.
- the query request frame responds.
- FIG. 8 is a schematic flowchart of another information query method according to an embodiment of the present invention. As shown in FIG. 8, the method includes:
- the second device acquires a no-data information query request frame that is sent by the first device and includes the first control information and the first hash value.
- the first hash value is a first hash function for the first information.
- a hash value generated after the operation, the no data information query request frame does not include a target address, and the first control information includes at least first indication information for indicating a type of the no data information query request frame.
- the no data query request frame can have more bytes for carrying content information, for example, : Use more bytes to carry a hash value, which can carry multiple first hash values.
- the no-data information query request frame does not include the target address, and the no-data information query request frame does not include the address of the device that obtains the no-data information query request frame, and the non-data information query request frame is obtained.
- the device may include the foregoing second device, and the device that obtains the dataless information query request frame may further include other devices in the network than the second device. Therefore, when the first device sends the no-data information query request frame, there is no explicit receiving device, that is, the first device only needs to be responsible for sending the no-data information query request frame, and as to which device is not requested by the data-free information query request frame. The first device does not need to be considered.
- the second device When the second device has the second information corresponding to the first hash value, the second device sends a no data information query response frame, where the no data information query response frame includes second control information, a second hash value and an address of the second device, so that when the first device determines that the third hash value is consistent with the second hash value, the first device sends data to the second device.
- An information query request frame where the third hash value is a hash value generated by the first device after the first information is processed by the second hash function, and the data information query request is generated.
- the frame includes an address of the second device and an address of the first device, where the second hash value is a hash generated by the second device using the second hash function after the second information is used by the second device a value, the no data information query response frame does not include a target address, and the second control information includes at least second indication information for indicating a type of the no data information query request frame.
- the second device responding to the data information query request frame may refer to the response of the device to the MAC frame in the prior art.
- the second device is a device that the first device needs to query, for example, the service required by the first device provided by the second device, such as
- the second device is a device that the first device needs to find, for example, the second device is performing a certain service at the same time as the first device, for example, the second device and the first device are running a certain game at the same time; for example:
- the second device logs in to the same user ID and the like at the same time as the first device.
- the first device may send a data information query request frame to the second device, and the second device responds to the data information query request frame when receiving the data information query request frame.
- the second device may be a real-time listening network whether to transmit a data information query request frame, or a periodic listening network whether to transmit a data information query request frame.
- the no data information query request frame is obtained, and the obtained no data information query response frame is parsed to obtain the first information included in the no data information query request frame.
- Hash value When the second device determines, according to the first hash value, that the second device has the second information corresponding to the first hash value, the second device sends the non-data information query response frame. .
- the no-data information query response frame does not include the target address, and the no-data information query response frame does not include the address of the device that obtains the no-data information query response frame, and the device that obtains the no-data information query response frame is obtained.
- the device may include the first device, and the device that obtains the dataless information query response frame may further include other devices in the network than the first device.
- the second hash value may be pre-generated, or when the second device determines, according to the first hash value, that the second device has second information corresponding to the first hash value.
- the second device uses the hash value generated by the second hash function operation on the second information.
- the foregoing first hash function may include: performing a hash operation on the first information, and taking N bits of the hash result of the operation as a hash value, where N is a natural number And the N bits are not limited in the position of the hash operation result. That is, the first device performs a hash operation on the first information, and takes the N bits of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the first hash value is The inverse of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the second hash operation function may include:
- the second information is hashed, and the W bit of the hash result of the operation is taken as a hash value, where W is a natural number, and the W bit is not limited in the position of the hash operation result. That is, the second device performs a hash operation on the second information, and takes the W bit of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the second hash value is 128 bits.
- the inverse of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the non-data information query response frame may include a plurality of second hash values, and the number of bits of the second hash values may be associated with the second device.
- the number is proportional. For example, when the second device has two second information, the two second hash values may be 48 bits, and when the second device has three second information, the three second hash values may be 64. Bit and so on.
- the first device can be prevented from selecting the wrong second information, for example: the second device has two second information, and the values of the hash results of the two information are There are different places, such as the first hash value is the first to the last 32nd of the two hash results, and the inverse of the two hash results from the 33rd to the 18th of the last is different,
- the two second hash values generated by the second device are different, so that when the first device obtains the two second hash values, the second information that is consistent with the first information is selected from the two second information. .
- the foregoing second hash value may further include the foregoing first hash value, that is, the first hash value is a part or all of the second hash value.
- the hash result of the hash operation of the first information is 128 bits
- the first hash value is the first to the last 32 bits of the 128-bit hash value
- the second information is consistent with the first information. That is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information
- the second hash value is the first of the hash result of the hash operation of the second information. Countdown to the 48th.
- the first hash function is the same as the second hash function.
- the third hash value is consistent with the second hash value, that is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information, the first hash value and the second hash value.
- the Greek value is the same.
- the second information is information that the hash value generated by the first hash function is consistent with the first hash value, and may be that the second device The second device existence information performs a second hash function operation.
- the information is the second information.
- the second device existence information is performed by the second hash function operation.
- the second device can also receive the first hash value.
- the second information may also be information that the hash result includes the first hash value, that is, after the information is hashed, the hash result of the operation includes the first hash value.
- the foregoing first control information may include at least first indication information for indicating a type of the no data information query request frame.
- the first indication information is obtained, so that the second device can respond to the no-data information query request frame in response to the no-data information query response frame response to the no-data information.
- the query request frame that is, the second device sends the above-mentioned no data information query response frame. That is, the second control information includes at least second indication information for indicating a type of the no data information inquiry response frame.
- the type of the no data information query request frame may include a request type and a neutral type, and the type of the no data information query response frame may include a release type and a neutral type; and the type of the no data information query request frame is a request type.
- the first hash value can represent the first information.
- the first information is a target information, and the first hash value is used to indicate that the target is searched, that is, when the type of the non-data information query request frame acquired by the second device is a request type, the second device A hash value is understood as the first device looking for the first information.
- the first hash value is represented as searching for the service, or when the first information is information of a certain user identifier, the first hash value is represented as searching for the When the user identifier, or the first information is the information of a certain service, the first hash value is represented as searching for the service, etc.;
- the type of the no-data information query request frame is the request type, the no-data information query response
- the type of the frame is the release type
- the second hash value can be expressed as the second information; for example: the second hash information can also be a target information, and the second hash value is used to indicate that the target is published, ie
- the type of the no-data information query response frame is the request type, the first device understands that the second device is the second device.
- the second hash value is expressed as the service is published, or the second information is information of a certain user identifier, the second hash value is expressed as publishing the When the user identifier, or the second information is information of a certain service, the second hash value is expressed as publishing the service or the like.
- the first hash value may be matched with the first information, for example, when the first information is a target information, the first hash value may be represented. Matching the target, such as information of a game, that is, the first hash value indicates that the game matches, Information such as a service, that is, the first hash value indicates that it is used to match the service.
- the type of the no-data information query request frame is a neutral type
- the type of the non-data information query response frame is a neutral type, that is, the second hash value may indicate that the second information matches, for example: The second information is a target information, and the second hash value can indicate that the target is matched.
- the second information is information of the game, that is, the second hash value indicates that the game matches, or the second information is serviced.
- the information that is, the second hash value indicates that it matches the service. That is, the type of the no-data information query request frame is different, and the meaning of the first hash value is different. The type of the no-data information query response frame is different, and the meaning of the second hash value is also different.
- the dataless information query request frame may further carry third indication information for indicating a property of the first hash value, where the third indication information may be placed with the first hash.
- the third indication information may be placed with the first hash.
- front of the value when there are multiple first hash values, there are multiple third indication information, and each third indication information is used to indicate the nature of a first hash value, and each third indication information is placed correspondingly. The front of the first hash value.
- the no-data information query response frame may further carry fourth indication information for indicating a property of the second hash value; wherein the fourth indication information may be placed before the second hash value, when there are multiple second When the hash value is present, there are a plurality of fourth indication information, each fourth indication information is used to indicate the property of a third hash value, and each fourth indication information is placed before the corresponding second hash value.
- the property of the first hash value may include a request property and a neutral property
- the property of the second hash value may include a release property or a neutral property.
- the first hash value may represent the first information, for example: the first information may be a target information, and the first hash value is used to indicate the target.
- the second device acquires the nature of the first hash value as a requesting property, the second device understands the first hash value as the first device searching for the first information.
- the property of the first hash value is a request property
- the property of the second hash value is a publishing property
- the second hash value may be expressed as a second information.
- the first hash value may represent a match with the first information.
- the property of the first hash value is a neutral property
- the property of the second hash value described above is neutral, that is, the second hash value may represent a match with the second information. That is, the nature of the first hash value is different, the meaning of the first hash value is different, the nature of the second hash value is different, and the meaning of the second hash value is also different.
- the first indication information may include the first type information and the second type information, where the first type information is used to indicate that the no data information query request frame is a no data frame, where no data
- the type of the frame may include a request type, a release type, and a neutral type, and the nature of the hash value of the no data frame may include the nature of the request, the nature of the publication, and the nature of the neutrality.
- the type of the second type information used for the no data information query request frame is the request type or the neutral type.
- a subtype field in the first control information is the first type information, for example, a Subtype field in the first control information is 0001, and the first control information is The Type field (the byte used to represent the Type of the frame) is 00, and the other two bytes in the first control information are used for the second type information, for example, when the second type information is 00,
- the type of the no-data information query request frame is the request type. If the second type information is 10, the type of the no-data information query request frame is the neutral type.
- the foregoing second indication information may include third type information and fourth type information, where the third type information is used to indicate that the no data information query response frame is a no data frame, and the fourth type information is used.
- the type of the response data frame for the no data information query is the release type or the neutral type.
- the Subtype field in the second control information is the third type information, for example, the Subtype field in the second control information is 0001, the Type field in the second control information is 00, and the other in the second control information.
- Two bytes are used for the fourth type of information, for example, when the fourth type information is 01, the type indicating that there is no data information query response frame is the response type, and when the fourth type information is 10, it indicates that there is no data information query.
- the type of response frame is the neutral type.
- the first indication information may include fifth type information, where the type of the non-data information query request frame is the request type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the first control information is 0001, indicating that the type of the no data information query request frame is the request type, the first control When the Subtype field in the message is 0011, it indicates that the type of the no data information query request frame is the neutral type.
- the second indication information may include the sixth type information, where the type of the sixth type information used for the no data information query response frame is the release type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the second control information is 0010, indicating that the type of the no data information query response frame is the release type, and the second control When the Subtype field in the message is 0011, it indicates that the type of the no data information query response frame is the neutral type.
- the length of the request frame may be queried by the no data information to indicate the type of the request message frame without data information, or the nature of the first hash value.
- the length of the response frame can be queried by no data information to indicate the type of the response data frame without data information, or the nature of the second hash value.
- the no data information query request frame further includes an address of the first device
- the check code of the no data information query response frame is a check code obtained by the second device calculating the address of the first device and the source check code; wherein the source check code is the second Check code of the device;
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device, where the data information query request frame includes the
- the address of the second device and the address of the first device in response to the data device query request frame being received by the second device, may include:
- the first device sends a data information query request frame to the second device, where the data information query request frame includes an address of the second device and an address of the first device, so that the second device
- the device responds to the data information query request frame when receiving the data information query request frame. That is, the first device sends a data information query request frame to the second device only when the obtained check code is correct, wherein the data information query request frame includes the address of the second device. And an address of the first device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the dataless information query request frame may further include an address of the first device
- the no data information query response frame may further include an address of the first device.
- the no data information query request frame includes only the first control information, the first hash value, the address of the first device, and the check code
- the no data information query response includes only the second control information, A hash value, an address of the first device, an address of the second device, and a check code can also improve the utilization of network resources in the present embodiment.
- the no data information query request frame contains the content in the absence The location of the data information query request frame may not be limited, and the content included in the no data information query response frame may not be limited in the position of the no data information query response frame.
- the no data information query request frame includes only the first control information, the first hash value, and the no data information query response frame includes only the second control information, the second hash value, and the address of the second device.
- the first device obtains the no-data information query response frame
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device
- the data information query request frame includes an address of the second device and an address of the first device, so that the second device receives the data information query request frame for the data information.
- the query request frame responds.
- FIG. 9 is a schematic diagram of another information query method according to an embodiment of the present invention. As shown in FIG. 9, the method includes:
- the first device generates a no-data information query request frame, where the no-data information query request frame includes first control information and a first hash value, where the first hash value is used for the first information.
- a hash value generated after the operation of the function, the data-free information query request frame does not include a target address, and the first control information includes at least first indication information for indicating a type of the no-data information query request frame.
- the first device sends the dataless information query request frame.
- the second device obtains the dataless information query request frame.
- the second device determines whether the second device has the second information corresponding to the first hash value, and if yes, performs step 304; if not, ends the process.
- the information uses a hash value generated after the second hash function operation, the no data information query response frame does not include a target address, and the second control information includes at least a type for indicating the no data information query request frame.
- the first device acquires the no-data information query response frame.
- the first device determines whether the third hash value is consistent with the second hash value, and if yes, executing step 308; if not, ending the process; wherein the third hash value is the first device pair
- the first information uses a hash value generated after the second hash function is operated.
- the first device sends a data information query request frame to the second device, where the data information query request frame includes an address of the second device and an address of the first device.
- the second device responds to the data information query request frame when receiving the data information query request frame.
- the no data information query request frame includes only the first control information, the first hash value, and the no data information query response frame includes only the second control information, the second hash value, and the address of the second device.
- the first device obtains the no-data information query response frame
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the second device
- the data information query request frame includes an address of the second device and an address of the first device, so that the second device receives the data information query request frame for the data information.
- the query request frame responds.
- FIG. 10 is a schematic structural diagram of a communication device according to an embodiment of the present invention. As shown in FIG. 10, the method includes: a sending unit 41, a receiving unit 42 and a determining unit 43, where:
- the sending unit 41 is configured to send a no data information query request frame, where the no data information query request frame includes first control information, a first hash value, and the first hash value is used for the first information a hash value generated after a hash function operation, the no data information query request frame does not include a target address; the first control information includes at least a first indication for indicating a type of the no data information query request frame information.
- the receiving unit 42 receives a no data information query response frame sent by the second device, where the no data information query response frame includes second control information, a second hash value, and an address of the second device, and a second hash value. a hash value generated by the second device after the second information is used by the second device, where the no data information query response frame does not include a target address, and the second control information includes at least The second indication information of the type of the no data information inquiry request frame is described.
- the receiving unit 42 may be configured to detect whether there is a data information query request frame in the real-time listening network, or periodically listen to whether the data information query request frame is transmitted in the network. When it is detected that there is no data information query request frame transmitted in the network, the no data information query request frame is obtained, and the obtained no data information query response frame is parsed to obtain the first information included in the no data information query request frame. Hash value. When the second device determines, according to the first hash value, that the second device has the second information corresponding to the first hash value, the second device sends the non-data information query response frame. .
- the no-data information query response frame does not include the target address, and the no-data information query response frame does not include the address of the device that obtains the no-data information query response frame, and the device that obtains the no-data information query response frame is obtained.
- the device may be included, and the device that obtains the no-data information query response frame may further include other devices in the network than the communication device.
- the second hash value may be pre-generated by the second device, or may be, when the second device determines, according to the first hash value, that the second device has a corresponding value corresponding to the first hash value.
- the second device uses the second hash function to generate a hash value after the second information is used.
- a determining unit 43 configured to: when the third hash value is consistent with the second hash value, send a data information query request frame to the second device, where the third hash value is the first
- the information uses a hash value generated after the second hash function is operated, and the data information query request frame includes an address of the second device and an address of the communication device, so that the second device receives The data information query request frame responds to the data information query request frame.
- the communication device determines that the third hash value is consistent with the second hash value, it indicates that the second device is a device that the communication device needs to query, for example: a service required by the communication device provided by the second device, such as printing; for example
- the second device is a device that the communication device needs to find.
- the second device and the communication device are performing a certain service at the same time, for example, the second device and the communication device are running a certain game at the same time; for example: the second device and the communication device are simultaneously Log in to the same user ID, etc.
- the communication device may send a data information query request frame to the second device, where the second device receives the data information query request frame Respond according to the information query request frame.
- the foregoing first hash function may include:
- the first information is hashed, and the N bits of the hash result of the operation are taken as a hash value, where N is a natural number, and the N bits are not limited in the position of the hash operation result. That is, the generating unit 41 performs a hash operation on the first information, and takes N bits of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the first hash value is 128 bits.
- the inverse of the 128-bit hash value is from the first to the last 32-bit, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the second hash function may include:
- the second information is hashed, and the W bit of the hash result of the operation is taken as a hash value, where W is a natural number, and the W bit is not limited in the position of the hash operation result. That is, the second device performs a hash operation on the second information, and takes the W bit of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the second hash value is 128 bits.
- the inverse of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the data-free information query response frame includes multiple second hash values, that is, multiple second information exists in the second device
- the determining unit 44 may further be configured to determine the third And transmitting, by the second device, a data information query request frame, where the hash information value is consistent with the at least one second hash value of the plurality of second hash values, where the data information query request frame includes the An address of the second device and an address of the communication device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the non-data information query response frame may include a plurality of second hash values, and the number of bits of the second hash values may be associated with the second device.
- the number is proportional.
- the two second hash values may be 48 bits
- the three second hash values may be 64. Bit and so on. Since the number of bits of the second hash value is increased, the communication device can be prevented from selecting the wrong second information, for example: the second device has two second information, and the values of the hash results of the two information exist again.
- Different places such as the first hash value, are the first to the last 32nd of the two hash results, and the inverse of the two hash results from the 33rd to the 18th of the last is different, so The two second hash values generated by the second device are different, so that the communication device obtains the two second hash values from the two
- the second information that is consistent with the first information is selected in the second information.
- the foregoing second hash value may further include the foregoing first hash value, that is, the first hash value is a part or all of the second hash value.
- the hash result of the hash operation of the first information is 128 bits
- the first hash value is the first to the last 32 bits of the 128-bit hash value
- the second information is consistent with the first information. That is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information
- the second hash value is the first of the hash result of the hash operation of the second information. Countdown to the 48th.
- the first hash function is the same as the second hash function.
- the third hash value is consistent with the second hash value, that is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information, the first hash value and the second hash value.
- the Greek value is the same.
- the second information is information that the hash value generated by the first hash function is consistent with the first hash value, and may be that the second device
- the second device existence information performs a second hash function operation.
- the information is the second information.
- the second device existence information is performed by the second hash function operation. If the operation is good, the second device can also receive the first hash value.
- the second information may also refer to information that the hash result includes the first hash value, that is, after hashing the information, the hash result of the operation includes the first hash value.
- the no-data information query request frame may not include the sending address, that is, the address of the communication device is not included, so that when the second device acquires the non-data information query request frame, the second device does not know that Which device sends no data information query request frame, and the second device sends a no data information query response frame in a manner that the communication device sends no data information query request frame.
- the no-data information query request frame and the no-data information query response may not include the time/identification field and the sequence control field in the prior art frame, that is, the no-data information query request frame in this embodiment may include only the control.
- no data information query response frame only contains the first control information, the second hash value, the address of the second device and the check code, so that in the no data information query request frame, in addition to the first
- other information occupies a small amount, so that the utilization rate of wireless resources and the efficiency of the query become higher.
- it is not limited to only one hash value in a dataless frame, and may also carry multiple different hash values.
- no data information query request frame can carry multiple first hash values
- no data information query response frame may carry multiple second hash values.
- the number of the second hash value carried by the no-data information query response frame does not have to be the same as the number of the no-data information query request frame, and may be only a plurality of carrying the non-data information query request frame.
- the second device may reply to one or more no-data information query response frames, or may reply to the one or more no-data information corresponding to the second device by multiple different second devices. Response frame.
- the foregoing first control information may include at least first indication information for indicating a type of the no data information query request frame.
- the first indication information is obtained, so that the second device can respond to the no-data information query request frame in response to the no-data information query response frame response to the no-data information.
- the query request frame that is, the second device sends the above-mentioned no data information query response frame. That is, the second control information includes at least second indication information for indicating a type of the no data information inquiry response frame.
- the type of the no data information query request frame may include a request type and a neutral type, and the type of the no data information query response frame may include a release type and a neutral type; and the type of the no data information query request frame is a request type.
- the first hash value can represent the first information.
- the first information is a target information, and the first hash value is used to indicate that the target is searched, that is, when the type of the non-data information query request frame acquired by the second device is a request type, the second device A hash value is understood to mean that the communication device looks for the first information.
- the first hash value is represented as searching for the service, or when the first information is information of a certain user identifier, the first hash value is represented as searching for the When the user identifier, or the first information is the information of a certain service, the first hash value is represented as searching for the service, etc.; when the type of the no-data information query request frame is the request type, the no-data information query response The type of the frame is the release type, and the second hash value can be expressed as the second information; for example: the second hash information can also be a target information, and the second hash value is used to indicate that the target is published, ie When the communication device obtains the type of the no data information query response frame as the request type, the communication device understands the second hash value as the second device issues the second information.
- the second hash value is expressed as the service is published, or the second information is information of a certain user identifier, the second hash value is expressed as publishing the When the user identifier, or the second information is information of a certain service, the second hash value is expressed as a release. The business and so on.
- the first hash value may be matched with the first information, for example, when the first information is a target information, the first hash value may be represented. Matching the target, such as information of a game, that is, the first hash value indicates that the game matches, such as information of a service, that is, the first hash value indicates that it is used to match the service.
- the type of the no-data information query request frame is a neutral type
- the type of the non-data information query response frame is a neutral type, that is, the second hash value may indicate that the second information matches, for example: The second information is a target information, and the second hash value can indicate that the target is matched.
- the second information is information of the game, that is, the second hash value indicates that the game matches, or the second information is serviced.
- the information that is, the second hash value indicates that it matches the service. That is, the type of the no-data information query request frame is different, and the meaning of the first hash value is different. The type of the no-data information query response frame is different, and the second hash value indicates different meanings.
- the dataless information query request frame may further carry third indication information for indicating a property of the first hash value, where the third indication information may be placed with the first hash.
- the third indication information may be placed with the first hash.
- front of the value when there are multiple first hash values, there are multiple third indication information, and each third indication information is used to indicate the nature of a first hash value, and each third indication information is placed correspondingly. The front of the first hash value.
- the no-data information query response frame may further carry fourth indication information for indicating a property of the second hash value; wherein the fourth indication information may be placed before the second hash value, when there are multiple second When the hash value is present, there are a plurality of fourth indication information, each fourth indication information is used to indicate the property of a third hash value, and each fourth indication information is placed before the corresponding second hash value.
- the property of the first hash value may include a request property and a neutral property
- the property of the second hash value may include a release property or a neutral property.
- the first hash value may represent the first information, for example: the first information may be a target information, and the first hash value is used to indicate the target.
- the second device acquires the first hash value as a requesting property, the second device understands the first hash value as the communication device searches for the first information.
- the property of the first hash value is a request property
- the property of the second hash value is a publishing property
- the second hash value may be expressed as a second information.
- the first hash value may represent a match with the first information.
- the property of the first hash value is a neutral property
- the property of the second hash value is neutral, that is, the second hash value may represent the second information.
- Match That is, the nature of the first hash value is different, the meaning of the first hash value is different, the nature of the second hash value is different, and the meaning of the second hash value is also different.
- the first indication information may include the first type information and the second type information, where the first type information is used to indicate that the no data information query request frame is a no data frame, where the type of the no data frame is The request type, the publication type, and the neutral type may be included, and the nature of the hash value of the no data frame may include the nature of the request, the nature of the publication, and the nature of the neutrality.
- the type of the second type information used for the no data information query request frame is the request type or the neutral type.
- a subtype field in the first control information is the first type information, for example, a Subtype field in the first control information is 0001, and the first control information is The Type field (the byte used to represent the Type of the frame) is 00, and the other two bytes in the first control information are used for the second type information, for example, when the second type information is 00,
- the type of the no-data information query request frame is the request type. If the second type information is 10, the type of the no-data information query request frame is the neutral type.
- the foregoing second indication information may include third type information and fourth type information, where the third type information is used to indicate that the no data information query response frame is a no data frame, and the fourth type information is used.
- the type of the response data frame for the no data information query is the release type or the neutral type.
- the Subtype field in the second control information is the third type information, for example, the Subtype field in the second control information is 0001, the Type field in the second control information is 00, and the other in the second control information.
- Two bytes are used for the fourth type of information, for example, when the fourth type information is 01, the type indicating that there is no data information query response frame is the response type, and when the fourth type information is 10, it indicates that there is no data information query.
- the type of response frame is the neutral type.
- the first indication information may include fifth type information, where the type of the non-data information query request frame is the request type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the first control information is 0001, indicating that the type of the no data information query request frame is the request type, the first control When the Subtype field in the message is 0011, it indicates that the type of the no data information query request frame is the neutral type.
- the second indication information may include the sixth type information, where the type of the sixth type information used for the no data information query response frame is the release type or the neutral type.
- the Subtype field in the control information is the fifth type information, for example, when the Subtype field in the second control information is 0010, indicating that the type of the no data information query response frame is the release type, and the second control information is When the Subtype field is 0011, it indicates that the type of the no data information query response frame is the neutral type.
- the length of the request frame may be queried by the no data information to indicate the type of the no data information query request frame, or the nature of the first hash value.
- the length of the response frame can be queried by no data information to indicate the type of the response message frame without data information, or the nature of the second hash value.
- the no data information query request frame further includes an address of the communication device
- the check code of the no data information query response frame is a check code obtained by the second device calculating the address of the communication device and the source check code; wherein the source check code is the second device Check code
- the determining unit 43 is further configured to: when determining that the third hash value is consistent with the second hash value, performing an inverse operation on the second operation information and an address of the communication device, and obtaining the inverse operation
- the data device query request frame is sent to the second device, where the data information query request frame includes an address of the second device and an address of the communication device, so that the second The device responds to the data information query request frame when receiving the data information query request frame.
- the communication device sends the data information query request frame to the second device, where the data information query request frame includes the address of the second device and An address of the communication device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the foregoing dataless information query request frame may further include an address of the communication device
- the no data information query response frame may further include an address of the communication device.
- the no data information query request frame includes only the first control information, the first hash value, the address of the communication device, and the check code
- the no data information query response includes only the second control information, the first The hash value, the address of the communication device, the address of the second device, and the check code can also improve the utilization of network resources in the present embodiment.
- the no data information query request frame contains the content in the absence The location of the data information query request frame may not be limited, and the content included in the no data information query response frame may not be limited in the position of the no data information query response frame.
- the communication device may be the first device described in the foregoing method embodiment, and the second device may be the second device described in the foregoing method embodiment.
- the no data information query request frame includes only the first control information, the first hash value, and the no data information query response frame includes only the second control information, the second hash value, and the address of the second device.
- the communication device obtains the no-data information query response frame
- the communication device determines that the third hash value is consistent with the second hash value
- the communication device sends a data information query request frame to the second device, where
- the data information query request frame includes an address of the second device and an address of the communication device, so that the second device makes a request for the data information query request frame when receiving the data information query request frame. response.
- FIG. 11 is a schematic structural diagram of a communication device according to an embodiment of the present invention. As shown in FIG. 11, the method includes: a receiving unit 51, a sending unit 52, and a response unit 53, where:
- the receiving unit 51 is configured to obtain a no-data information query request frame that is sent by the first device and includes the first control information and the first hash value.
- the first hash value is a first hash for the first information.
- the hash value generated after the function operation, the no data information query request frame does not include the target address; the first control information at least includes first indication information for indicating the type of the no data information query request frame.
- the sending unit 52 is configured to send a no data information query response frame when the communication device has the second information corresponding to the first hash value, where the no data information query response frame includes the second control information, the second And the address of the second device, so that when the first device determines that the third hash value is consistent with the second hash value, the first device sends a data information query request to the communication device.
- the third hash value is a hash value generated by the first device after the first information is processed by the second hash function
- the data information query request frame includes a Addressing the address of the communication device and the address of the first device
- the second hash value is used by the communication device for the second information a hash value generated after the second hash function operation
- the no data information query response frame does not include a target address
- the second control information includes at least a second type indicating a type of the no data information query request frame Instructions.
- the response unit 53 is configured to respond to the data information query request frame when the data information query request frame is received.
- the communication device is a device that the first device needs to query, for example, a service required by the first device provided by the communication device, such as printing;
- the communication device is a device that the first device needs to find, for example, the communication device is performing a certain service at the same time as the first device, for example, the communication device and the first device are running a certain game at the same time; for example: the communication device and the first device Log in to the same user ID at the same time.
- the first device may send a data information query request frame to the communication device, and the communication device responds to the data information query request frame when receiving the data information query request frame.
- the obtaining unit 51 may be a real-time listening network whether to transmit a data information query request frame, or periodically listen to whether a data query request frame is transmitted in the network.
- the no data information query request frame is obtained, and the obtained no data information query response frame is parsed to obtain the first information included in the no data information query request frame.
- Hash value When the communication device determines, according to the first hash value, that the communication device has the second information corresponding to the first hash value, the communication device sends the non-data information query response frame.
- the no-data information query response frame does not include the target address, and the no-data information query response frame does not include the address of the device that obtains the no-data information query response frame, and the device that obtains the no-data information query response frame is obtained.
- the device may include the first device, and the device that obtains the dataless information query response frame may further include other devices in the network than the first device.
- the second hash value may be pre-generated, or may be when the communication device determines, according to the first hash value, that the communication device has second information corresponding to the first hash value.
- the hash value generated by the communication device after the second hash function is used for the second information.
- the foregoing first hash function may include: performing a hash operation on the first information, and taking N bits of the hash result of the operation as a hash value, where N is a natural number And the N bits are not limited in the position of the hash operation result. That is, the first device performs a hash operation on the first information, and takes the N bits of the hash result of the hash operation as the foregoing A hash value, for example:
- the hash result is 128 bits
- the first hash value is the inverse of the 128-bit hash value from the first to the 32nd bit, or the reciprocal of the 128-bit hash value is 33. To the last 64th and so on.
- the second hash function may include:
- the communication device performs a hash operation on the second information, and takes the W bit of the hash result of the operation as a hash value, where W is a natural number, and the W bit is not limited in the position of the hash operation result. That is, the communication device performs a hash operation on the second information, and takes the W bit of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the second hash value is the The reciprocal of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the non-data information query response frame may include a plurality of second hash values, and the number of bits of the second hash values may be equal to the number of second information in the communication device. Just proportional. For example, when the communication device has two second information, the two second hash values may be 48 bits, and when the communication device has three second information, the three second hash values may be 64 bits, etc. . Since the number of bits of the second hash value is increased, the first device can be prevented from selecting the wrong second information, for example: the communication device has two second information, and the values of the hash results of the two information exist again.
- Different places such as the first hash value, are the first to the last 32nd of the two hash results, and the inverse of the two hash results from the 33rd to the 18th of the last is different, so
- the two second hash values generated by the communication device are different, so that when the first device obtains the two second hash values, the second information that is consistent with the first information is selected from the two second information.
- the foregoing second hash value may further include the foregoing first hash value, that is, the first hash value is a part or all of the second hash value.
- the hash result of the hash operation of the first information is 128 bits
- the first hash value is the first to the last 32 bits of the 128-bit hash value
- the second information is consistent with the first information. That is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information
- the second hash value is the first of the hash result of the hash operation of the second information. Countdown to the 48th.
- the first hash function is the same as the second hash function.
- the third hash value is consistent with the second hash value, that is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information, the first hash value and the second hash value.
- the Greek value is the same.
- the second information refers to using the first hash function operation
- the information that the generated hash value is consistent with the first hash value may be that the communication device performs the second hash function operation on the communication device existence information, and when the operation result is consistent with the first hash value, the information is specified.
- the second hash function operation of the communication device presence information may be pre-computed, or the communication device may receive the first hash value.
- the second information may also be information that the hash result includes the first hash value, that is, after the information is hashed, the hash result of the operation includes the first hash value.
- the foregoing first control information may include at least first indication information for indicating a type of the no data information query request frame.
- the first indication information is obtained, so that the communication device can respond to the no-data information query response frame response to the no-data information query request in response to the no-data information query request frame.
- the frame that is, the communication device transmits the above-mentioned no-data information query response frame.
- the second control information includes at least second indication information for indicating a type of the no data information inquiry response frame.
- the type of the no data information query request frame may include a request type and a neutral type, and the type of the no data information query response frame may include a release type and a neutral type; and the type of the no data information query request frame is a request type.
- the first hash value can represent the first information.
- the first information is a target information, and the first hash value is used to indicate that the target is searched, that is, when the communication device obtains the type of the no data information query request frame as the request type, the communication device will use the first hash.
- the Greek value is understood as the first device looking for the first information.
- the first hash value is represented as searching for the service, or when the first information is information of a certain user identifier, the first hash value is represented as searching for the When the user identifier, or the first information is the information of a certain service, the first hash value is represented as searching for the service, etc.; when the type of the no-data information query request frame is the request type, the no-data information query response The type of the frame is the release type, and the second hash value can be expressed as the second information; for example: the second hash information can also be a target information, and the second hash value is used to indicate that the target is published, ie When the first device obtains the type of the no data information query response frame as the request type, the first device understands the second hash value as the communication device issues the second information.
- the second hash value is expressed as the service is published, or the second information is information of a certain user identifier, the second hash value is expressed as publishing the
- the second hash value is expressed as publishing the service or the like.
- the type of the non-data information query request frame is a neutral type
- the first hash value may be matched with the first information, for example, when the first information is a target information, the first hash value may be represented.
- the type of the no-data information query request frame is a neutral type
- the type of the non-data information query response frame is a neutral type
- the second hash value may indicate that the second information matches, for example:
- the second information is a target information
- the second hash value can indicate that the target is matched.
- the second information is information of the game, that is, the second hash value indicates that the game matches, or the second information is serviced.
- the information, that is, the second hash value indicates that it matches the service. That is, the type of the no-data information query request frame is different, and the meaning of the first hash value is different.
- the type of the no-data information query response frame is different, and the meaning of the second hash value is also different.
- the dataless information query request frame may further carry third indication information for indicating a property of the first hash value, where the third indication information may be placed with the first hash.
- the third indication information may be placed with the first hash.
- front of the value when there are multiple first hash values, there are multiple third indication information, and each third indication information is used to indicate the nature of a first hash value, and each third indication information is placed correspondingly. The front of the first hash value.
- the no-data information query response frame may further carry fourth indication information for indicating a property of the second hash value; wherein the fourth indication information may be placed before the second hash value, when there are multiple second When the hash value is present, there are a plurality of fourth indication information, each fourth indication information is used to indicate the property of a third hash value, and each fourth indication information is placed before the corresponding second hash value.
- the property of the first hash value may include a request property and a neutral property
- the property of the second hash value may include a release property or a neutral property.
- the first hash value may represent the first information, for example: the first information may be a target information, and the first hash value is used to indicate the target.
- the communication device acquires the first hash value as a requesting property, the communication device understands the first hash value as the first device searching for the first information.
- the property of the first hash value is a request property
- the property of the second hash value is a publishing property
- the second hash value may be expressed as a second information.
- the property of the first hash value is a neutral property
- the first hash value may represent a match with the first information.
- the property of the first hash value is a neutral property
- the property of the second hash value is neutral, that is, the second hash value may represent a match with the second information. That is, the nature of the first hash value is different, and the meaning of the first hash value is also different, and the second hash value is The nature of the second hash value is different.
- the first indication information may include the first type information and the second type information, where the first type information is used to indicate that the no data information query request frame is a no data frame, where the type of the no data frame is The request type, the publication type, and the neutral type may be included, and the nature of the hash value of the no data frame may include the nature of the request, the nature of the publication, and the nature of the neutrality.
- the type of the second type information used for the no data information query request frame is the request type or the neutral type.
- a subtype field in the first control information is the first type information, for example, a Subtype field in the first control information is 0001, and the first control information is The Type field (the byte used to represent the Type of the frame) is 00, and the other two bytes in the first control information are used for the second type information, for example, when the second type information is 00,
- the type of the no-data information query request frame is the request type. If the second type information is 10, the type of the no-data information query request frame is the neutral type.
- the foregoing second indication information may include third type information and fourth type information, where the third type information is used to indicate that the no data information query response frame is a no data frame, and the fourth type information is used.
- the type of the response data frame for the no data information query is the release type or the neutral type.
- the Subtype field in the second control information is the third type information, for example, the Subtype field in the second control information is 0001, the Type field in the second control information is 00, and the other in the second control information.
- Two bytes are used for the fourth type of information, for example, when the fourth type information is 01, the type indicating that there is no data information query response frame is the response type, and when the fourth type information is 10, it indicates that there is no data information query.
- the type of response frame is the neutral type.
- the first indication information may include fifth type information, where the type of the non-data information query request frame is the request type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the first control information is 0001, indicating that the type of the no data information query request frame is the request type, the first control When the Subtype field in the message is 0011, it indicates that the type of the no data information query request frame is the neutral type.
- the second indication information may include the sixth type information, where the type of the sixth type information used for the no data information query response frame is the release type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example: in the second control information
- the Subtype field in the second control information is 0011
- the type of the no data information query response frame is the neutral type.
- the length of the request frame may be queried by the no data information to indicate the type of the no data information query request frame, or the nature of the first hash value.
- the length of the response frame can be queried by no data information to indicate the type of the response message frame without data information, or the nature of the second hash value.
- the no data information query request frame further includes an address of the first device
- the check code of the no data information query response frame is a check code obtained by the communication device calculating the address of the first device and the source check code; wherein the source check code is the communication device Check code
- the first device determines that the third hash value is consistent with the second hash value
- the first device sends a data information query request frame to the communication device, where the data information query request frame includes the communication The address of the device and the address of the first device, so that the communication device responds to the data information query request frame when receiving the data information query request frame, and may include:
- the first device sends a data information query request frame to the communication device, where the data information query request frame includes an address of the communication device and an address of the first device, so that the communication device receives
- the data information query request frame responds to the data information query request frame. That is, only when the obtained check code obtained by the inverse operation is correct, the first device sends a data information query request frame to the communication device, where the data information query request frame includes the address and the location of the communication device. Determining an address of the first device, so that the communication device responds to the data information query request frame when receiving the data information query request frame.
- the dataless information query request frame may further include an address of the first device
- the no data information query response frame may further include an address of the first device.
- the no data information query request frame includes only the first control information, the first hash value, and the first setting.
- the address and check code of the backup, the no data information query response includes only the second control information, the first hash value, the address of the first device, the address of the communication device, and the check code, compared to the prior art in this embodiment. , can also improve the utilization of network resources.
- the content of the no data information query request frame may be undefined in the position of the no data information query request frame, and the content included in the no data information query response frame may not be limited in the position of the no data information query response frame.
- the first device may be the first device described in the foregoing method embodiment
- the communication device may be the communication device described in the foregoing method embodiment.
- the no data information query request frame includes only the first control information and the first hash value
- the no data information query response frame includes only the second control information, the second hash value, and the address of the communication device.
- FIG. 12 is a schematic structural diagram of another communication device according to an embodiment of the present invention. As shown in FIG. 12, the device includes: a transmitter 61 and a receiver 62, and is coupled to the transmitter 61 and the receiver 62, respectively.
- the processor 63 wherein:
- the sender 61 is configured to send a no-data information query request frame, where the no-data information query request frame includes first control information, a first hash value, where the first hash value is used for the first information a hash value generated after the hash function operation, the no data information query request frame does not include a target address; the first control information includes at least first indication information indicating a type of the no data information query request frame ;
- the receiver 62 is configured to receive a no data information query response frame sent by the second device, where the no data information query response frame includes second control information, a second hash value, and an address of the second device,
- the second hash value is a hash value generated by the second device after the second information is used by the second device, and the no data information query response frame does not include the target address;
- the second control information includes at least Second indication information for indicating a type of the no data information query request frame;
- the processor 63 is configured to parse the second hash value from the no data information query response frame received by the receiver 62, and determine whether the third hash value is consistent with the second hash value;
- the third hash value is a hash value generated after the first information is operated by the second hash function;
- the transmitter 61 is further configured to: when the processor 63 determines that the third hash value is consistent with the second hash value, send a data information query request frame to the second device, where the data information query request is The frame includes an address of the second device and an address of the communication device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the communication device determines that the third hash value is consistent with the second hash value, it indicates that the second device is a device that the communication device needs to query, for example: a service required by the communication device provided by the second device, such as printing; for example
- the second device is a device that the communication device needs to find.
- the second device and the communication device are performing a certain service at the same time, for example, the second device and the communication device are running a certain game at the same time; for example: the second device and the communication device are simultaneously Log in to the same user ID, etc.
- the communication device may send a data information query request frame to the second device, and the second device responds to the data information query request frame when receiving the data information query request frame.
- the foregoing first hash function may include: the processor 63 performs a hash operation on the first information, and takes N bits of the hash result of the operation as a hash value, where N is a natural number, and the N bits are not limited in the position of the hash operation result. That is, the communication device performs a hash operation on the first information, and takes N bits of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the first hash value is the first hash value.
- the reciprocal of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the second hash function may include:
- the second information is hashed, and the W bit of the hash result of the operation is taken as a hash value, where W is a natural number, and the W bit is not limited in the position of the hash operation result. That is, the second device performs a hash operation on the second information, and takes the W bit of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the second hash value is 128 bits.
- the 128-bit hash value is inverted The number is from 1st to the 32nd digit, or the inverse of the 128-bit hash value is 33rd to the 64th digit of the last.
- the data-free information query response frame includes a plurality of second hash values, that is, the second device has multiple second information
- the processor 63 is further configured to determine the first Whether the three hash values are consistent with at least one of the plurality of second hash values.
- the transmitter 61 is further configured to: when the processor 63 determines that the third hash value is consistent with at least one of the plurality of second hash values, send a data information query to the second device. Request frame.
- the non-data information query response frame may include a plurality of second hash values, and the number of bits of the second hash values may be associated with the second device.
- the number is proportional.
- the two second hash values may be 48 bits
- the three second hash values may be 64. Bit and so on. Since the number of bits of the second hash value is increased, the communication device can be prevented from selecting the wrong second information, for example: the second device has two second information, and the values of the hash results of the two information exist again.
- Different places such as the first hash value, are the first to the last 32nd of the two hash results, and the inverse of the two hash results from the 33rd to the 18th of the last is different, so
- the two second hash values generated by the second device are different, so that when the communication device obtains the two second hash values, the second information that is consistent with the first information is selected from the two second information.
- the foregoing second hash value may further include the foregoing first hash value, that is, the first hash value is a part or all of the second hash value.
- the hash result of the hash operation of the first information is 128 bits
- the first hash value is the first to the last 32 bits of the 128-bit hash value
- the second information is consistent with the first information. That is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information
- the second hash value is the first of the hash result of the hash operation of the second information. Countdown to the 48th.
- the first hash function is the same as the second hash function.
- the third hash value is consistent with the second hash value, that is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information, the first hash value and the second hash value.
- the Greek value is the same.
- the second information is information that the hash value generated by the first hash function is consistent with the first hash value, and may be that the second device The second device existence information performs a second hash function operation.
- the information is the second information.
- the second device existence information is performed by the second hash function operation.
- the second device can also receive the first hash value.
- the second information may also be information that the hash result includes the first hash value, that is, after the information is hashed, the hash result of the operation includes the first hash value.
- the no-data information query request frame may not include the sending address, that is, the address of the communication device is not included, so that when the second device acquires the non-data information query request frame, the second device does not know that Which device sends no data information query request frame, and the second device sends a no data information query response frame in a manner that the communication device sends no data information query request frame.
- the no-data information query request frame and the no-data information query response may not include the time/identification field and the sequence control field in the prior art frame, that is, the no-data information query request frame in this embodiment may include only the control.
- no data information query response frame only contains the first control information, the second hash value, the address of the second device and the check code, so that in the no data information query request frame, in addition to the first
- other information occupies a small amount, so that the utilization rate of wireless resources and the efficiency of the query become higher.
- it is not limited to one hash value in a dataless frame, and may also carry multiple different hash values.
- no data information query request frame can carry multiple first hash values
- no data information query response frame can have more bytes for carrying the second hash value
- a plurality of second hash values can be carried in the frame.
- the number of the second hash value carried by the no-data information query response frame does not have to be the same as the number of the no-data information query request frame, and may be only a plurality of carrying the non-data information query request frame.
- the second device may reply to one or more no-data information query response frames, or may reply to the one or more no-data information corresponding to the second device by multiple different second devices. Response frame.
- the foregoing first control information may include at least first indication information for indicating a type of the no data information query request frame.
- the first indication information is obtained, so that the second device can respond to the no-data information query request frame in response to the no-data information query response frame response to the no-data information.
- the query request frame that is, the second device sends the above-mentioned no data information query response frame. That is, the second control information includes at least second indication information for indicating a type of the no data information inquiry response frame.
- the type of the no data information query request frame may include a request type and a neutral type
- the type of the no-data information query response frame may include a release type and a neutral type; when the type of the no-data information query request frame is a request type, the first hash value may indicate that the first information is searched.
- the first information is a target information
- the first hash value is used to indicate that the target is searched, that is, when the type of the non-data information query request frame acquired by the second device is a request type, the second device A hash value is understood to mean that the communication device looks for the first information.
- the first hash value is represented as searching for the service, or when the first information is information of a certain user identifier, the first hash value is represented as searching for the When the user identifier, or the first information is the information of a certain service, the first hash value is represented as searching for the service, etc.; when the type of the no-data information query request frame is the request type, the no-data information query response The type of the frame is the release type, and the second hash value can be expressed as the second information; for example: the second hash information can also be a target information, and the second hash value is used to indicate that the target is published, ie When the communication device obtains the type of the no data information query response frame as the request type, the communication device understands the second hash value as the second device issues the second information.
- the second hash value is expressed as the service is published, or the second information is information of a certain user identifier, the second hash value is expressed as publishing the When the user identifier, or the second information is information of a certain service, the second hash value is expressed as publishing the service or the like.
- the first hash value may be matched with the first information, for example, when the first information is a target information, the first hash value may be represented. Matching the target, such as information of a game, that is, the first hash value indicates that the game matches, such as information of a service, that is, the first hash value indicates that it is used to match the service.
- the type of the no-data information query request frame is a neutral type
- the type of the non-data information query response frame is a neutral type, that is, the second hash value may indicate that the second information matches, for example: The second information is a target information, and the second hash value can indicate that the target is matched.
- the second information is information of the game, that is, the second hash value indicates that the game matches, or the second information is serviced.
- the information that is, the second hash value indicates that it matches the service. That is, the type of the no-data information query request frame is different, and the meaning of the first hash value is different. The type of the no-data information query response frame is different, and the second hash value indicates different meanings.
- the data-free information query request frame may further carry third indication information for indicating a property of the first hash value, where the third indication information may be placed In front of a hash value, when there are multiple first hash values, there are multiple third indication information, and each third indication information is used to indicate the nature of a first hash value, and each third indication information Place the front of the corresponding first hash value.
- the no-data information query response frame may further carry fourth indication information for indicating a property of the second hash value; wherein the fourth indication information may be placed before the second hash value, when there are multiple second When the hash value is present, there are a plurality of fourth indication information, each fourth indication information is used to indicate the property of a third hash value, and each fourth indication information is placed before the corresponding second hash value.
- the property of the first hash value may include a request property and a neutral property
- the property of the second hash value may include a release property or a neutral property.
- the first hash value may represent the first information, for example: the first information may be a target information, and the first hash value is used to indicate the target.
- the second device acquires the first hash value as a requesting property, the second device understands the first hash value as the communication device searches for the first information.
- the property of the first hash value is a request property
- the property of the second hash value is a publishing property
- the second hash value may be expressed as a second information.
- the first hash value may represent a match with the first information.
- the property of the first hash value is a neutral property
- the property of the second hash value is neutral, that is, the second hash value may represent a match with the second information. That is, the nature of the first hash value is different, the meaning of the first hash value is different, the nature of the second hash value is different, and the meaning of the second hash value is also different.
- the first indication information may include the first type information and the second type information, where the first type information is used to indicate that the no data information query request frame is a no data frame, where the type of the no data frame is The request type, the publication type, and the neutral type may be included, and the nature of the hash value of the no data frame may include the nature of the request, the nature of the publication, and the nature of the neutrality.
- the type of the second type information used for the no data information query request frame is the request type or the neutral type.
- a subtype field in the first control information is the first type information, for example, a Subtype field in the first control information is 0001, and the first control information is The Type field (the byte used to represent the Type of the frame) is 00, and the other two bytes in the first control information are used for the second type information, for example, when the second type information is 00,
- the type of the no-data information query request frame is the request type. If the second type information is 10, the type of the no-data information query request frame is the neutral type.
- the foregoing second indication information may include third type information and fourth type information, where
- the third type of information is used to indicate that the no data information query response frame is a no data frame
- the type of the fourth type information used for the no data information query response frame is the release type or the neutral type.
- the Subtype field in the second control information is the third type information, for example, the Subtype field in the second control information is 0001, the Type field in the second control information is 00, and the other in the second control information.
- Two bytes are used for the fourth type of information, for example, when the fourth type information is 01, the type indicating that there is no data information query response frame is the response type, and when the fourth type information is 10, it indicates that there is no data information query.
- the type of response frame is the neutral type.
- the first indication information may include fifth type information, where the type of the non-data information query request frame is the request type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the first control information is 0001, indicating that the type of the no data information query request frame is the request type, the first control When the Subtype field in the message is 0011, it indicates that the type of the no data information query request frame is the neutral type.
- the second indication information may include sixth type information, where the type information of the sixth type information is used for the type of the query or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the second control information is 0010, indicating that the type of the no data information query response frame is the release type, and the second control When the Subtype field in the message is 0011, it indicates that the type of the no data information query response frame is the neutral type.
- the length of the request frame may be queried by the no data information to indicate the type of the no data information query request frame, or the nature of the first hash value.
- the length of the response frame can be queried by no data information to indicate the type of the response message frame without data information, or the nature of the second hash value.
- the no data information query request frame further includes an address of the communication device
- the check code of the no data information query response frame is a check code obtained by the second device calculating the address of the communication device and the source check code; wherein the source check code is the second device Check code
- the communication device determines that the third hash value is consistent with the second hash value, the communication device is to the second The device sends a data information query request frame, where the data information query request frame includes an address of the second device and an address of the communication device, so that the second device receives the data information query request.
- the frame time response to the data information query request frame may include:
- the communication device sends a data information query request frame to the second device, where the data information query request frame includes an address of the second device and an address of the communication device, so that the second device receives The data information query request frame responds to the data information query request frame.
- the communication device sends a data information query request frame to the second device, where the data information query request frame includes the address of the second device and An address of the communication device, so that the second device responds to the data information query request frame when receiving the data information query request frame.
- the dataless information query request frame may further include an address of the communication device
- the no data information query response frame may further include an address of the communication device.
- the no data information query request frame includes only the first control information, the first hash value, the address of the communication device, and the check code
- the no data information query response includes only the second control information, the first The hash value, the address of the communication device, the address of the second device, and the check code can also improve the utilization of network resources in the present embodiment.
- the content of the no data information query request frame may be unrestricted in the position of the no data information query request frame, and the content included in the no data information query response frame may not be limited in the position of the no data information query response frame.
- the communication device may be the first device described in the foregoing method embodiment, and the second device may be the second device described in the foregoing method embodiment.
- the no data information query request frame includes only the first control information, the first hash value
- the no data information query response frame includes only the second control information, the second hash value, and the address of the second device.
- FIG. 13 is a schematic structural diagram of another communication device according to an embodiment of the present invention. As shown in FIG. 13, the method includes: a transmitter 71 and a receiver 72, and a processor 73 coupled to the transmitter 71 and the receiver 72, respectively, where:
- the receiver 71 is configured to acquire a no-data information query request frame that is sent by the first device and includes the first control information and the first hash value.
- the first hash value is a first hash for the first information. a hash value generated after the function operation, the no data information query request frame does not include a target address; the first control information includes at least first indication information indicating a type of the no data information query request frame;
- the device 73 is configured to parse out the first hash value from the no data information query request frame received by the receiver 71, and determine whether the communication device has second information corresponding to the first hash value;
- the device 72 is configured to: when the processor 73 determines that the communication device has the second information corresponding to the first hash value, send a no data information query response frame, where the no data information query response frame includes the second control Information, a second hash value, and an address of the communication device, such that when the first device determines that the third hash value is consistent with the second hash value, the first device
- the frame includes an address of the communication device and an address of the first device, where the second hash value is a hash value generated by the processor after the second hash function is performed on the second information,
- the data-free information query response frame does not include a target address, and the second control information includes at least second indication information for indicating a type of the no-data information query request frame;
- the processor 73 is further configured to respond to the data information query request frame when the data information query request frame is received.
- the receiver 72 may be a real-time listening network to detect whether there is a data information query request frame, or periodically listen to whether or not the data information query request frame is transmitted in the network.
- the data request query frame is obtained without data information, and the number of acquired requests is Parsing according to the information query response frame to obtain the first hash value included in the no data information query request frame.
- the communication device determines, according to the first hash value, that the communication device has the second information corresponding to the first hash value, the communication device sends the non-data information query response frame.
- the no-data information query response frame does not include the target address, and the no-data information query response frame does not include the address of the device that obtains the no-data information query response frame, and the device that obtains the no-data information query response frame is obtained.
- the device may include the first device, and the device that obtains the dataless information query response frame may further include other devices in the network than the first device.
- the second hash value may be pre-generated, or may be when the communication device determines, according to the first hash value, that the communication device has second information corresponding to the first hash value.
- the hash value generated by the communication device after the second hash function is used for the second information.
- the foregoing first hash function may include: performing a hash operation on the first information, and taking N bits of the hash result of the operation as a hash value, where N is a natural number And the N bits are not limited in the position of the hash operation result. That is, the first device performs a hash operation on the first information, and takes the N bits of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the first hash value is The inverse of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the second hash function may include:
- the processor 73 performs a hash operation on the second information, and takes the W bit of the hash result of the operation as a hash value, where W is a natural number, and the W bit is not limited in the position of the hash operation result. That is, the communication device performs a hash operation on the second information, and takes the W bit of the hash result of the hash operation as the first hash value, for example: the hash result is 128 bits, and the second hash value is the The reciprocal of the 128-bit hash value is from the first to the last 32nd, or the inverse of the 128-bit hash is from the 33rd to the 64th.
- the non-data information query response frame may include a plurality of second hash values, and the number of bits of the second hash values may be equal to the number of second information in the communication device. Just proportional. For example, when the communication device has two second information, the two second hash values may be 48 bits, and when the communication device has three second information, the three second hash values may be 64 bits, etc. . Since the number of bits of the second hash value is increased, the first device can be prevented from selecting the wrong second information, for example: the communication device has two second information, and the values of the hash results of the two information exist again.
- Different places such as the first hash value, are the first to the last 32nd of the two hash results, and the inverse of the two hash results from the 33rd to the 18th of the last is different, so
- the two second hash values generated by the communication device are different, so that when the first device obtains the two second hash values, the second information that is consistent with the first information is selected from the two second information.
- the foregoing second hash value may further include the foregoing first hash value, that is, the first hash value is a part or all of the second hash value.
- the hash result of the hash operation of the first information is 128 bits
- the first hash value is the first to the last 32 bits of the 128-bit hash value
- the second information is consistent with the first information. That is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information
- the second hash value is the first of the hash result of the hash operation of the second information. Countdown to the 48th.
- the first hash function is the same as the second hash function.
- the third hash value is consistent with the second hash value, that is, the hash result of the hash operation of the first information is the same as the hash result of the hash operation of the second information, the first hash value and the second hash value.
- the Greek value is the same.
- the second information is information that the hash value generated by the first hash function is consistent with the first hash value, and may be that the communication device communicates The device presence information performs a second hash function operation.
- the information is the second information.
- the communication device presence information and the second hash function operation may be pre-computed.
- the communication device can receive the first hash value.
- the second information may also refer to information that the hash result includes the first hash value, that is, after hashing the information, the hash result of the operation includes the first hash value.
- the foregoing first control information may include at least first indication information for indicating a type of the no data information query request frame.
- the first indication information is obtained, so that the communication device can respond to the no-data information query response frame response to the no-data information query request in response to the no-data information query request frame.
- the frame that is, the communication device transmits the above-mentioned no-data information query response frame.
- the second control information includes at least second indication information for indicating a type of the no data information inquiry response frame.
- the type of the no data information query request frame may include a request type and a neutral type, and the type of the no data information query response frame may include a release type and a neutral type; and the type of the no data information query request frame is a request type.
- the first hash value can represent the first information.
- the first information is a target information, and the first hash value is used to indicate that the target is searched, that is, when the communication device obtains the type of the no data information query request frame as the request type, the communication device uses the first hash value. , understood as the first device to find the first information.
- the first hash value is represented as searching for the service, or when the first information is information of a certain user identifier, the first hash value is represented as searching for the When the user identifier, or the first information is the information of a certain service, the first hash value is represented as searching for the service, etc.; when the type of the no-data information query request frame is the request type, the no-data information query response The type of the frame is the release type, and the second hash value can be expressed as the second information; for example: the second hash information can also be a target information, and the second hash value is used to indicate that the target is published, ie When the first device obtains the type of the no data information query response frame as the request type, the first device understands the second hash value as the communication device issues the second information.
- the second hash value is expressed as the service is published, or the second information is information of a certain user identifier, the second hash value is expressed as publishing the When the user identifier, or the second information is information of a certain service, the second hash value is expressed as publishing the service or the like.
- the first hash value may be matched with the first information, for example, when the first information is a target information, the first hash value may be represented. Matching the target, such as information of a game, that is, the first hash value indicates that the game matches, such as information of a service, that is, the first hash value indicates that it is used to match the service.
- the type of the no-data information query request frame is a neutral type
- the type of the non-data information query response frame is a neutral type, that is, the second hash value may indicate that the second information matches, for example: The second information is a target information, and the second hash value can indicate that the target is matched.
- the second information is information of the game, that is, the second hash value indicates that the game matches, or the second information is serviced.
- the information that is, the second hash value indicates that it matches the service. That is, the type of the no-data information query request frame is different, and the meaning of the first hash value is different. The type of the no-data information query response frame is different, and the second hash value indicates different meanings.
- the dataless information query request frame may further carry third indication information for indicating a property of the first hash value, where the third indication information may be placed with the first hash.
- the third indication information may be placed with the first hash.
- front of the value when there are multiple first hash values, there are multiple third indication information, and each third indication information is used to indicate the nature of a first hash value, and each third indication information is placed correspondingly.
- the no-data information query response frame may further carry fourth indication information for indicating a property of the second hash value; wherein the fourth indication information may be placed before the second hash value, when there are multiple second When the hash value is present, there are a plurality of fourth indication information, each fourth indication information is used to indicate the property of a third hash value, and each fourth indication information is placed before the corresponding second hash value.
- the property of the first hash value may include a request property and a neutral property
- the property of the second hash value may include a release property or a neutral property.
- the first hash value may represent the first information, for example: the first information may be a target information, and the first hash value is used to indicate the target.
- the communication device acquires the first hash value as a requesting property, the communication device understands the first hash value as the first device searching for the first information.
- the property of the first hash value is a request property
- the property of the second hash value is a publishing property
- the second hash value may be expressed as a second information.
- the property of the first hash value is a neutral property
- the first hash value may represent a match with the first information.
- the property of the first hash value is a neutral property
- the property of the second hash value is neutral, that is, the second hash value may represent a match with the second information. That is, the nature of the first hash value is different, the meaning of the first hash value is different, the nature of the second hash value is different, and the meaning of the second hash value is also different.
- the first indication information may include the first type information and the second type information, where the first type information is used to indicate that the no data information query request frame is a no data frame, where the type of the no data frame is The request type, the publication type, and the neutral type may be included, and the nature of the hash value of the no data frame may include the nature of the request, the nature of the publication, and the nature of the neutrality.
- the type of the second type information used for the no data information query request frame is the request type or the neutral type.
- a subtype field in the first control information is the first type information, for example, a Subtype field in the first control information is 0001, and the first control information is The Type field (the byte used to represent the Type of the frame) is 00, and the other two bytes in the first control information are used for the second type information, for example, when the second type information is 00,
- the type of the no-data information query request frame is the request type. If the second type information is 10, the type of the no-data information query request frame is the neutral type.
- the foregoing second indication information may include third type information and fourth type information, where the third type information is used to indicate that the no data information query response frame is a no data frame, and the fourth type information is used.
- the type of the no-data information query response frame is the release type or the neutral class Type.
- the Subtype field in the second control information is the third type information, for example, the Subtype field in the second control information is 0001, the Type field in the second control information is 00, and the other in the second control information.
- Two bytes are used for the fourth type of information, for example, when the fourth type information is 01, the type indicating that there is no data information query response frame is the response type, and when the fourth type information is 10, it indicates that there is no data information query.
- the type of response frame is the neutral type.
- the first indication information may include fifth type information, where the type of the non-data information query request frame is the request type or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the first control information is 0001, indicating that the type of the no data information query request frame is the request type, the first control When the Subtype field in the message is 0011, it indicates that the type of the no data information query request frame is the neutral type.
- the second indication information may include sixth type information, where the type information of the sixth type information is used for the type of the query or the neutral type.
- the Subtype field in the first control information is the fifth type information, for example, when the Subtype field in the second control information is 0010, indicating that the type of the no data information query response frame is the release type, and the second control When the Subtype field in the message is 0011, it indicates that the type of the no data information query response frame is the neutral type.
- the length of the request frame may be queried by the no data information to indicate the type of the no data information query request frame, or the nature of the first hash value.
- the length of the response frame can be queried by no data information to indicate the type of the response message frame without data information, or the nature of the second hash value.
- the no data information query request frame further includes an address of the first device
- the check code of the no data information query response frame is a check code obtained by the communication device calculating the address of the first device and the source check code; wherein the source check code is the communication device Check code
- the first device When the first device determines that the third hash value is consistent with the second hash value, the first device sends a data information query request frame to the communication device, where the data information query request frame includes the communication An address of the device and an address of the first device, so that the communication device receives the data
- the information query request frame is responsive to the data information query request frame, and may include: when determining that the third hash value is consistent with the second hash value, the second operation information and the first The address of the device is inversely calculated.
- the first device When it is determined that the obtained check code is correct, the first device sends a data information query request frame to the communication device, where the data information query request frame includes the An address of the communication device and an address of the first device, such that the communication device responds to the data information query request frame when receiving the data information query request frame. That is, only when the obtained check code obtained by the inverse operation is correct, the first device sends a data information query request frame to the communication device, where the data information query request frame includes the address and the location of the communication device. Determining an address of the first device, so that the communication device responds to the data information query request frame when receiving the data information query request frame.
- the dataless information query request frame may further include an address of the first device
- the no data information query response frame may further include an address of the first device.
- the no data information query request frame includes only the first control information, the first hash value, the address of the first device, and the check code
- the no data information query response includes only the second control information
- a hash value, an address of the first device, an address of the communication device, and a check code can also improve the utilization of network resources in the present embodiment.
- the content of the no data information query request frame may be unrestricted in the position of the no data information query request frame, and the content included in the no data information query response frame may not be limited in the position of the no data information query response frame.
- the first device may be the first device described in the foregoing method embodiment
- the communication device may be the second device described in the foregoing method embodiment.
- the no data information query request frame includes only the first control information and the first hash value
- the no data information query response frame includes only the second control information, the second hash value, and the address of the communication device.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Databases & Information Systems (AREA)
- Mobile Radio Communication Systems (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Description
Claims
Priority Applications (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| EP13883930.3A EP2988553B1 (en) | 2013-05-08 | 2013-05-08 | Methods and devices for querying for information |
| CN201380000836.5A CN105052207B (zh) | 2013-05-08 | 2013-05-08 | 一种信息查询方法、设备及系统 |
| PCT/CN2013/075338 WO2014179952A1 (zh) | 2013-05-08 | 2013-05-08 | 一种信息查询方法、设备及系统 |
| US14/889,783 US10104530B2 (en) | 2013-05-08 | 2013-05-08 | Information query method, device, and system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2013/075338 WO2014179952A1 (zh) | 2013-05-08 | 2013-05-08 | 一种信息查询方法、设备及系统 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2014179952A1 true WO2014179952A1 (zh) | 2014-11-13 |
Family
ID=51866618
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2013/075338 Ceased WO2014179952A1 (zh) | 2013-05-08 | 2013-05-08 | 一种信息查询方法、设备及系统 |
Country Status (4)
| Country | Link |
|---|---|
| US (1) | US10104530B2 (zh) |
| EP (1) | EP2988553B1 (zh) |
| CN (1) | CN105052207B (zh) |
| WO (1) | WO2014179952A1 (zh) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11429986B2 (en) * | 2016-11-04 | 2022-08-30 | Google Llc | Realtime busyness for places |
| US11290577B2 (en) * | 2020-03-11 | 2022-03-29 | Semiconductor Components Industries, Llc | Wireless data transmission |
| CN117040590B (zh) * | 2023-08-08 | 2024-06-25 | 北京和德宇航技术有限公司 | 一种数据帧确定方法、装置、设备及存储介质 |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20100235525A1 (en) * | 2009-03-16 | 2010-09-16 | Apple Inc. | Efficient service discovery for peer-to-peer networking devices |
| CN101489304B (zh) * | 2009-02-27 | 2010-12-29 | 南京邮电大学 | 基于无线多媒体传感器网络区分服务的媒体访问控制方法 |
| CN102883404A (zh) * | 2011-07-14 | 2013-01-16 | 华为终端有限公司 | 实现机器对机器业务的方法、m2m终端、ap和系统 |
Family Cites Families (9)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN100442713C (zh) | 2005-12-30 | 2008-12-10 | 华为技术有限公司 | 一种提高通讯链路层协议效率的方法 |
| US9391853B2 (en) | 2009-12-23 | 2016-07-12 | Apple Inc. | Efficient service advertisement and discovery in a peer-to-peer networking environment with dynamic advertisement and discovery periods based on operating conditions |
| CN103001816B (zh) | 2011-09-14 | 2016-08-10 | 华为技术有限公司 | 数据通信方法和设备 |
| US9730102B2 (en) * | 2012-02-17 | 2017-08-08 | Intel Corporation | Methods and arrangements for packet flows in wireless networks |
| US9485716B2 (en) * | 2012-05-15 | 2016-11-01 | Lg Electronics Inc. | Method and apparatus for low-power scanning in WLAN system |
| CN103874047B (zh) * | 2012-12-17 | 2017-08-04 | 华为终端有限公司 | 服务信息发现方法及设备 |
| US9173161B2 (en) * | 2013-03-06 | 2015-10-27 | Qualcomm Incorporated | Peer-to-peer pre-association discovery operations |
| US9154934B2 (en) * | 2013-03-28 | 2015-10-06 | Futurewei Technologies, Inc. | System and method for pre-association discovery |
| US9955333B2 (en) * | 2014-08-20 | 2018-04-24 | Qualcomm, Incorporated | Secure wireless wake-up companion |
-
2013
- 2013-05-08 WO PCT/CN2013/075338 patent/WO2014179952A1/zh not_active Ceased
- 2013-05-08 EP EP13883930.3A patent/EP2988553B1/en active Active
- 2013-05-08 US US14/889,783 patent/US10104530B2/en active Active
- 2013-05-08 CN CN201380000836.5A patent/CN105052207B/zh active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101489304B (zh) * | 2009-02-27 | 2010-12-29 | 南京邮电大学 | 基于无线多媒体传感器网络区分服务的媒体访问控制方法 |
| US20100235525A1 (en) * | 2009-03-16 | 2010-09-16 | Apple Inc. | Efficient service discovery for peer-to-peer networking devices |
| CN102597982A (zh) * | 2009-09-08 | 2012-07-18 | 苹果公司 | 用于对等联网设备的有效服务发现 |
| CN102883404A (zh) * | 2011-07-14 | 2013-01-16 | 华为终端有限公司 | 实现机器对机器业务的方法、m2m终端、ap和系统 |
Non-Patent Citations (1)
| Title |
|---|
| See also references of EP2988553A4 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105052207A (zh) | 2015-11-11 |
| CN105052207B (zh) | 2020-02-28 |
| EP2988553A4 (en) | 2016-04-20 |
| EP2988553B1 (en) | 2017-08-09 |
| US20160112859A1 (en) | 2016-04-21 |
| EP2988553A1 (en) | 2016-02-24 |
| US10104530B2 (en) | 2018-10-16 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109803242B (zh) | 通过nrf进行nf发现的方法、设备及可读存储介质 | |
| JP6009700B2 (ja) | ピアツーピアプレアソシエーション発見動作 | |
| US12471006B2 (en) | Wireless network service type | |
| CN104247513A (zh) | 用于高效服务发现的方法、装置和计算机程序产品 | |
| CN103973830A (zh) | 基于混合单播/多播dns的服务发现 | |
| US11363023B2 (en) | Method, device and system for obtaining local domain name | |
| JP6014761B2 (ja) | サービス情報を発見する方法およびデバイス | |
| CN105100129B (zh) | 一种数据传输的方法、装置和系统 | |
| CN102790813A (zh) | 基于IPv6网络的通信方法和系统以及终端设备 | |
| JP2015511463A (ja) | 無線デバイスを検出するための方法及び装置 | |
| WO2013091510A1 (zh) | 传输数据帧的方法和装置 | |
| US9876862B1 (en) | Service identification with reduced ambiguity | |
| CN105722040B (zh) | 一种业务消息的传输方法、装置及系统 | |
| CN103634214A (zh) | 一种路由信息生成方法及装置 | |
| WO2014179952A1 (zh) | 一种信息查询方法、设备及系统 | |
| CN104426816B (zh) | 一种虚拟机通信方法及装置 | |
| WO2016131195A1 (zh) | 数据传输方法和设备 | |
| CN104754642B (zh) | 一种服务查询方法、装置及系统和站点 | |
| CN113099511B (zh) | 网络配置方法、装置、设备和系统 | |
| WO2015085573A1 (zh) | 一种利用白频谱通信的方法及设备 | |
| WO2015070810A1 (zh) | 文件传输的方法和装置 | |
| HK40010331B (zh) | 无线网络中的预关联服务类型公告 | |
| HK40010331A (zh) | 无线网络中的预关联服务类型公告 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| WWE | Wipo information: entry into national phase |
Ref document number: 201380000836.5 Country of ref document: CN |
|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 13883930 Country of ref document: EP Kind code of ref document: A1 |
|
| REEP | Request for entry into the european phase |
Ref document number: 2013883930 Country of ref document: EP |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 2013883930 Country of ref document: EP |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 14889783 Country of ref document: US |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |