WO2014032613A1 - Method for domain access control, method for domain search, and communication device - Google Patents

Method for domain access control, method for domain search, and communication device Download PDF

Info

Publication number
WO2014032613A1
WO2014032613A1 PCT/CN2013/082679 CN2013082679W WO2014032613A1 WO 2014032613 A1 WO2014032613 A1 WO 2014032613A1 CN 2013082679 W CN2013082679 W CN 2013082679W WO 2014032613 A1 WO2014032613 A1 WO 2014032613A1
Authority
WO
WIPO (PCT)
Prior art keywords
domain
node
registration
response message
request
Prior art date
Application number
PCT/CN2013/082679
Other languages
French (fr)
Chinese (zh)
Inventor
姜彤
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2014032613A1 publication Critical patent/WO2014032613A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Definitions

  • the present invention relates to the field of communications, and in particular, to a domain access control method, a domain search method, and a communication device. Background technique
  • the power line communication network is a communication network that uses the above power line communication technology to transmit information through the power line as an information transmission medium.
  • Each device or component in a power line communication network is referred to as a power line communication device, which is a node in the communication network, respectively.
  • Power line communication technology is a special communication method that uses high-voltage power lines (35kV and above), medium-voltage power lines (10-30kV voltage level) or low-voltage distribution lines (380/210kV subscriber lines) as information transmission medium for information transmission. .
  • the power line communication technology loads the high frequency signal carrying information onto the power line for data transmission through the power line, and separates the high frequency signal from the power line through a dedicated power line modulator/demodulator at the receiving end, and then carries the information.
  • the high frequency signal is transmitted to the terminal device.
  • the power line communication network can be logically divided into multiple domains, each domain in the network has a unique domain name identifier (DNI), and the DNI is used to uniquely identify the domain in the power line communication network. area.
  • DNI domain name identifier
  • each domain node is connected by a power line.
  • a domain node is designated as a primary domain controller (DM) for unified coordination and control of network communication within the domain.
  • DM primary domain controller
  • beacon mode (divided into synchronous beacon mode, asynchronous beacon mode) and non-beacon mode.
  • the DM In beacon mode, the DM periodically sends beacon frames to all domain nodes in the domain.
  • the beacon frame contains the following information: bandwidth, domain name, DNI, security level, band division requirement, domain synchronization information, working mode. wait for news.
  • the non-beacon mode the DM manages and controls the domain through the in-band management message of layer 3.
  • the DM can refer to one or Multiple Beacon Proxies (BPR), BPR regenerates and broadcasts based on received beacon frames
  • the device can find the existing network by passively scanning the beacon or actively sending the probe message or the beacon request message, and select an appropriate network to perform the corresponding network access procedure to join the network.
  • the node does not know the distribution and working mode of the existing surrounding domain. If the existing domain works in the non-beacon mode, the node cannot pass the scanning beacon. Discovering the existence of an existing domain; on the other hand, the destination domain that the node is expected to join already exists and works in the beacon mode, but the current registered node is located at the edge of the destination domain, and the registered node is located beyond the DM in the domain or The coverage of the BPR, so the registration node cannot receive the message from the DM or BPR.
  • a first object of the embodiments of the present invention is to provide a method for the first domain access control.
  • the application of the technical solution is beneficial to increase the probability that a registration node is added to an existing domain, and the new domain is avoided because the existing destination domain cannot be found. Therefore, the situation of domain name conflict is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a second object of the embodiments of the present invention is to provide a method for the second domain access control.
  • the application of the technical solution is beneficial to increase the probability that the registration node is added to the existing domain, and the new domain is avoided because the existing destination domain cannot be found. Therefore, the situation of domain name conflict is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a third object of the embodiments of the present invention is to provide a third domain access control method.
  • the application of the technical solution is beneficial to increase the probability that a registration node is added to an existing domain, and is beneficial to avoid creating a new domain because the existing destination domain cannot be found. Therefore, the situation of domain name conflict is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a fourth object of the embodiments of the present invention is to provide a domain search method.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain by creating a new domain because the existing destination domain cannot be found. The situation of the conflict.
  • a fifth object of the embodiments of the present invention is to provide a first type of communication device.
  • the application of the technical solution is advantageous for increasing the probability that a registration node is added to an existing domain, and is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a sixth object of the embodiments of the present invention is to provide a second type of communication device.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a seventh object of the embodiments of the present invention is to provide a third type of communication device.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • An eighth object of the embodiments of the present invention is to provide a fourth type of communication device.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain, thereby causing a domain name conflict. Case.
  • a fifth object of the embodiments of the present invention is to provide a fifth type of communication device.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, and is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a sixth object of the embodiments of the present invention is to provide a sixth communication device.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • a seventh object of the embodiments of the present invention is to provide a seventh type of communication device.
  • the application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
  • the domain node receives the domain search request message, where the domain search request message includes information: an identifier of the registration node, and a domain name identifier of each target domain corresponding to the registration node;
  • domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message
  • the domain search response message includes the identifier of the registration node, and the IJ:
  • the domain node feeds back the domain search response message
  • the domain node performs domain access control for the registration node according to the domain registration request.
  • the domain node specifically feeds back the domain search response message by means of broadcast transmission.
  • the domain node performs domain access control for the registration node according to the domain registration request, specifically:
  • the domain node determines whether to allow the registered node to join the domain node according to the actual situation of the domain node and the domain where the domain node is located and the domain registration request. Where a domain, and feeding back the judgment result to the registration node;
  • the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, for the primary domain controller to perform the domain registration request, and determine whether the registration node is allowed to join the The domain where the domain node is located, and the judgment result is fed back to the registration node.
  • the method further includes:
  • the domain search response message includes the identifier of the registration node, and the IJ:
  • the domain node ignores the domain search request message.
  • the feedback moment is specifically:
  • the random time interval is: after receiving the domain search request message, the domain node calculates a random value of the obtained time interval.
  • the domain node is: the primary domain controller,
  • the feedback moment of the broadcast domain search response message is specifically:
  • the method for the second domain access control includes: receiving, by the domain node, a domain search request message, where the domain node is: a primary domain controller or a beacon proxy, and the domain search request message includes information: An identifier of the node, and a domain name identifier of each target domain corresponding to the registration node;
  • domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message
  • the beacon frame is not received before the next transmission time of the beacon frame arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes The identity of the registered node, Bay IJ:
  • the domain node performs domain access control for the registration node according to the domain registration request.
  • the identifier of the registration node is included in the beacon frame, specifically: A registration node additional domain is included in the beacon frame, and the registration node additional domain includes: an identifier of the registration node.
  • the domain node specifically sends the beacon frame in a broadcast manner.
  • the domain node performs domain access control for the registration node according to the domain registration request, specifically:
  • the domain node determines whether to allow the registered node to join the domain node according to the actual situation of the domain node and the domain where the domain node is located and the domain registration request. The domain, and feedback the judgment result to the registration node;
  • the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, for the primary domain controller to perform the domain registration request, and determine whether the registration node is allowed to join the The domain where the domain node is located, and the judgment result is fed back to the registration node.
  • the method further includes:
  • the domain search response message includes an identifier of the registration node, or a received beacon frame: the beacon frame includes The identity of the registered node, Bay IJ:
  • the domain node ignores the domain search request message.
  • the method for the third domain access control provided by the embodiment of the present invention includes: receiving, by the domain node, a domain search request message, where the domain node is: any domain node other than the primary domain controller and the beacon proxy,
  • the domain search request message includes information: an identifier of the registration node, and a domain name identifier of each target domain corresponding to the registration node;
  • domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message
  • the beacon frame is not received before the feedback moment of the domain search request message feedback domain search response message arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received:
  • the domain search response message includes an identifier of the registered node, and the IJ:
  • the domain node feeds back the domain search response message
  • the domain node performs domain access control for the registration node according to the domain registration request.
  • the domain node specifically feeds back the domain search response message by means of broadcast transmission.
  • the domain node performs domain access control for the registration node according to the domain registration request, specifically:
  • the method further includes:
  • the beacon frame before the arrival of the feedback time of the domain search response message according to the domain search request message, the beacon frame is received: the beacon frame includes the identifier of the registration node, or the domain search response message is received: The domain search response message includes an identifier of the registered node, and the IJ:
  • the domain node ignores the domain search request message.
  • the feedback moment is specifically:
  • the random time interval is: after receiving the domain search request message, the domain node calculates a random value of the obtained time interval.
  • the random time interval is greater than: a beacon frame transmission time interval of the primary domain controller of the domain where the domain node is located.
  • the random time interval is further greater than: a beacon frame transmission time interval of any beacon agent in the domain where the domain node is located.
  • the registration node monitors whether a beacon frame is received
  • the beacon frame contains the domain name identifier of any target domain of the registered node
  • the registration node broadcasts a domain search request message, where the domain search request message includes an identifier of the registration node;
  • the registration node monitors whether a domain search response message is received
  • the domain search response message includes: a domain name identifier of any target domain of the registration node, Determining, by the registration node, the final destination domain according to the domain search response message,
  • the registration node sends a domain registration request according to the domain search response message that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message,
  • the domain registration request contains a request to join the final destination domain.
  • the registration node determines, according to the domain search response message, the final destination domain, where the registration node determines the domain name identifier included in the domain search response message received for the first time as the final The domain name identifier of the destination domain.
  • the registration node determines the final destination domain according to the domain search response message, where: the registration node receives at least two of the domain search response messages in a predetermined domain search response monitoring period.
  • the registration node determines the domain name identifier included in any of the domain search response messages as the domain name identifier of the final destination domain.
  • the registration node determines the final destination domain according to the domain search response message, if the beacon frame is received: the beacon frame includes the domain name identifier of any target domain of the registration node, Determining the final destination domain according to the beacon frame;
  • the registration node Transmitting, by the registration node, a domain registration request according to the beacon frame that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is: a sender address of the beacon frame, in the domain
  • the registration request contains a request to join the final destination domain.
  • the registration node stops monitoring whether a beacon frame and a beacon frame are received.
  • the first communication device includes: a receiving unit, configured to receive a message
  • a sending unit configured to send a message
  • the central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
  • the receiving unit After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and Before the arrival of the feedback time of the domain search request message feedback domain search response message, the domain search response message is not received: the domain search response message includes the identifier of the registration node, and the sending unit is controlled to feed back the domain search response message. , And, after the receiving unit receives the registration request, perform domain access control for the registration node that issues the registration request.
  • the central processing unit performs domain access control for the registration node that sends the registration request, specifically:
  • the central processing unit determines, according to the actual situation of the device and the domain where the device is located, and the domain registration request, whether to allow the registration node to be added to the The domain where the device is located, and feedback the judgment result to the registration node.
  • the central processing unit performs domain access control for the registration node that sends the registration request, specifically:
  • the central processing unit controls the sending unit to forward the domain registration request to a primary domain controller of a domain where the device is located,
  • the domain registration request determines whether the registration node is allowed to join the domain where the device is located, and feeds back the determination result to the registration node.
  • the second communication device provided by the embodiment of the present invention includes: a receiving unit, configured to receive a message;
  • a sending unit configured to send a message
  • the central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
  • the receiving unit After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and is in the beacon
  • the beacon frame is not received before the next transmission time of the frame arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes the registration node Identifying, transmitting, by the sending unit, a beacon frame, where the identifier of the registered node is included in the beacon frame;
  • the central processing unit after the receiving unit receives the registration request, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
  • the central processing unit determines, according to the actual situation of the domain node and the domain where the domain node is located, and the domain registration request, whether the registration node is allowed to join the domain where the domain node is located, and controls the sending unit The judgment result is fed back to the registration node.
  • the central processing unit after the receiving unit receives the registration request, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
  • the central processing unit controls the sending unit to forward the domain registration request to a primary domain controller of a domain where the device is located,
  • the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node.
  • the third communication device includes: a receiving unit, configured to receive a message
  • a sending unit configured to send a message
  • the central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
  • the receiving unit After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and The beacon frame is not received before the feedback time of the domain search request message feedback domain search response message arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain The search response message includes an identifier of the registration node, and then controls the sending unit to feed back the domain search response message.
  • the central processing unit is configured to, after the receiving unit receives the registration request, perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
  • the central processing unit is configured to control the sending unit to forward the domain registration request to a primary domain controller of a domain where the device is located,
  • the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node.
  • the fourth communication device provided by the embodiment of the present invention includes:
  • a receiving unit configured to receive a message
  • a sending unit configured to send a message
  • the central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
  • the receiving unit does not receive the beacon frame in the monitoring period of the beacon frame: when the beacon frame includes the domain name identifier of any target domain of the registration node, controlling the sending unit to broadcast the transmission domain Search request message, at The domain search request message includes an identifier of the registration node;
  • a domain search response message where the domain search response message includes: when the domain name identifier of any target domain of the registration node is used, determining a final destination domain according to the domain search response message, and And sending, by the sending unit, the domain registration request according to the domain search response message that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message,
  • the domain registration request includes a request to join the final destination domain.
  • the fifth communication device includes: a receiver, configured to receive a message
  • a central processing unit respectively connected to the receiver and the transmitter, for:
  • the receiver After the receiver receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and is in the beacon
  • the beacon frame is not received before the next transmission time of the frame arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes the registration node Identifying, transmitting, by the sender, a beacon frame, where the identifier of the registered node is included in the beacon frame;
  • the central processor after receiving the registration request by the receiver, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
  • the central processor determines, according to the actual situation of the domain node and the domain where the domain node is located, and the domain registration request, whether the registration node is allowed to join the domain of the domain node, and controls the sender to The registration node feeds back the judgment result.
  • the central processor after the receiving the registration request, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
  • the central processor controls the sender to forward the domain registration request to a primary domain controller of a domain where the device is located,
  • the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node.
  • the sixth communication device provided by the embodiment of the present invention includes:
  • a receiver configured to receive a message; a sender for sending a message;
  • a central processing unit respectively connected to the receiver and the transmitter, for:
  • the receiver After the receiver receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and The beacon frame is not received before the feedback time of the domain search request message feedback domain search response message arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain The search response message includes an identifier of the registration node, and then controls the sender to feed back the domain search response message.
  • the central processor is configured to perform domain access control for the registration node that sends the registration request according to the registration request, after the receiver receives the registration request, specifically:
  • the central processor is configured to control the sender to forward the domain registration request to a primary domain controller of a domain where the device is located,
  • the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node.
  • the seventh communication device provided by the embodiment of the present invention includes:
  • a receiver configured to receive a message
  • a central processing unit respectively connected to the receiver and the transmitter, for:
  • the beacon frame includes a domain name identifier of any target domain of the registration node, and controlling the sender to broadcast a transmission domain Searching for a request message, wherein the domain search request message includes an identifier of the registered node;
  • a domain search response message where the domain search response message includes: when the domain name identifier of any target domain of the registration node is used, determining a final destination domain according to the domain search response message, and And sending, by the sender, the domain registration request according to the domain search response message that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message,
  • the domain registration request includes a request to join the final destination domain.
  • the domain of the domain node after receiving the domain search request message of the registered node, the domain of the domain node is the target domain of the registered node. After that, and after receiving the domain search request message, the domain search is not received before the feedback time of the domain search response message arrives.
  • the domain search response of the identifier of the registered node in the request message the domain node broadcasts the feedback domain search response message, so that the registration node can learn the destination domain that can be joined near the registered node and the domain to which the registration node can join according to the search response message. Registration request.
  • the technical solution of the embodiment has the following advantages:
  • the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain.
  • the registered node cannot receive the message from the DM or BPR.
  • the registration node can still join the existing domain by applying the technical solution of the embodiment.
  • each registration node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR.
  • the DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR in the existing domain is hidden from the current device (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message of the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain.
  • the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node, resulting in a There are two or more domains of the same DNI in the communication network, which affect the normal operation of each domain on the communication network.
  • the method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
  • the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message
  • the domain search response message of the domain search request feedback domain search response message can prevent each domain node in the network from responding to a domain search request message separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
  • FIG. 1 is a schematic flowchart of a method for domain access control according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a method for domain access control according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic flowchart of a method for domain access control according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic flowchart of a method for domain access control according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic flowchart of a method for domain access control according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic flowchart of a method for domain access control according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic flowchart diagram of a method for domain search provided by an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart diagram of a method for domain search according to Embodiment 8 of the present invention.
  • Embodiment 9 is a schematic structural diagram of a communication device according to Embodiment 9 of the present invention.
  • FIG. 10 is a schematic structural diagram of a communication device according to Embodiment 10 of the present invention.
  • FIG. 11 is a schematic structural diagram of a communication device according to Embodiment 11 of the present invention.
  • FIG. 12 is a schematic structural diagram of a communication device according to Embodiment 12 of the present invention.
  • FIG. 13 is a schematic structural diagram of a communication device according to Embodiment 13 of the present invention.
  • FIG. 14 is a schematic structural diagram of a communication device according to Embodiment 14 of the present invention.
  • Embodiment 15 is a schematic structural diagram of a communication device according to Embodiment 15 of the present invention.
  • FIG. 16 is a schematic structural diagram of a communication device according to Embodiment 16 of the present invention. detailed description
  • the embodiment provides a method for domain access control, and the method is applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any domain in the communication network, so that the registration node joins the communication network. Any of the domains, thereby enabling the communication device to implement network communication functions.
  • the communication network can be, but is not limited to, a beacon network.
  • a communication device that is not currently joined to any domain within any communication network is referred to as a registration node
  • a communication device that has joined a domain within the communication network is referred to as a domain node.
  • the method for establishing domain access control for any of the registered nodes that are not joined to the domain is provided by any domain node that has been added to the domain, and the method includes the following process steps:
  • Step 101 The domain node receives the domain search request message.
  • any of the domain search request messages includes: an identifier of the registration node that issues the domain search request message, and a domain name identifier of each target domain corresponding to the registration node.
  • Step 102 If the DNI of the domain in which the domain node is located is the same as the DNI of any target domain included in the domain search request message, and before the feedback time of the domain search response message arrives, the domain search response message is not received: Domain search If the response message includes the identifier of the registered node, step 103 is performed; otherwise, step 106 may be performed, but not limited to.
  • the DNI of the domain in which the domain node is located is the same as the DNI of any target domain included in the domain search request message, and the domain search response message is not received before the following feedback time, or the received domain search request message is not included.
  • the identifier of the registered node (that is, the identifier of the registered node that issued the domain search request message) is executed in step 103; otherwise, it can be executed according to step 106 (other processes can also be executed according to the prior art or other predetermined policies). ).
  • the above feedback moments are specifically as follows: The local node returns the feedback moment of the domain search response message according to the domain search request message.
  • Step 103 The domain node feeds back the domain search response message.
  • the domain node feeds back the domain search response message in a broadcast manner according to the domain search request message received in step 101, so that the registration node of the peer end can determine the domain node information and the domain of the domain node according to the domain search response message.
  • Information, and a domain access request is issued to the local node according to the domain search response message.
  • the search response message in the domain may include, but is not limited to, information including: a domain node address, a DNI of a domain in which the domain node is located, a domain synchronization information of a domain in which the domain node is located, and a domain search request message corresponding to the domain search response message.
  • the ID of the included registration node may include, but is not limited to, information including: a domain node address, a DNI of a domain in which the domain node is located, a domain synchronization information of a domain in which the domain node is located.
  • Step 104 The domain node receives the domain registration request issued by the registration node.
  • the registration node may issue a domain registration request to the domain node according to the domain search response message, and include a request to join the domain of the domain node in the domain registration request.
  • Step 105 The domain node performs domain access control for the registered node according to the domain registration request.
  • domain access control may be performed for the registered node according to the domain registration request according to the actual situation of the domain node in the domain.
  • the domain node is a DM
  • the domain node is based on the actual situation and domain of the domain node and the domain where the domain node is located.
  • the registration request determines whether the registered node is allowed to join the domain where the domain node is located, and feeds back the judgment result to the registration node.
  • the domain node is not a DM, and the domain node registers the domain with the DM forwarding domain of the domain where the domain node is located, so that the DM performs the following:
  • the domain registration request it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
  • Step 106 The domain node ignores the domain search request message.
  • the domain node ignores the domain search request message and does not perform any further processing on the domain search request message.
  • step 102 if the determination in step 102 is no, it may be performed according to this step, and other processes may be performed according to the prior art or other predetermined policies.
  • the domain of the domain node after receiving the domain search request message of the registered node, the domain of the domain node is the target domain of the registered node. After that, after receiving the domain search request message, before the arrival of the feedback time of the domain search response message, the domain search response including the identifier of the registered node in the domain search request message is not received, and the domain node broadcasts the feedback.
  • the domain searches for a response message, so that the registration node can learn, according to the search response message, the destination domain that can be joined in the vicinity of the registered node and to whom the domain registration request is sent.
  • the technical solution of the embodiment has the following advantages:
  • the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain.
  • the registered node cannot receive the message from the DM or BPR.
  • the registration node can still join the existing domain by applying the technical solution of the embodiment.
  • each registration node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR.
  • the DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR in the existing domain is hidden from the current device (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message of the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain.
  • the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node, resulting in a
  • the method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
  • the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message
  • the domain search response message of the domain search request feedback domain search response message can prevent each domain node in the network from responding to a domain search request message separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
  • the method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
  • the method for establishing domain access control for any of the registered nodes that are not joined to the domain is provided by any domain node that has been added to the domain, and the method includes the following process steps:
  • Step 201 The domain node receives the domain search request message.
  • the registration node When the registration node currently needs to join the domain, the registration node first determines the destination domain that can be currently joined, and sends to whom the domain registration request for joining the destination domain (ie, the path for sending the domain registration request).
  • the registration node may actively send the domain search request message when the device is powered on; or after the power-on and power-on, the registration node performs monitoring of the beacon frame according to the beacon frame.
  • the search request message is sent after the domain cannot be successfully joined or after the beacon frame is not heard.
  • the registration node in order to determine the destination domain that can be currently joined, and to whom the domain registration request of the join destination domain is sent, the registration node sends a domain search request message in a broadcast manner.
  • the domain search request message includes: an identifier of the registered node, and a DNI of each target domain of the registration node.
  • the identifier of the registration node may be, but is not limited to, a device name that is preset by the manufacturer in the registration node (device) and used to define the identity of the device.
  • the identifier of the registration node may be, but is not limited to, The address is EUI-64 (64-bit Extended Unique Identifier, unique identifier for 64-bit extension).
  • Each target domain corresponding to the registration node is: Predefined on the registration node, each of the registration nodes can join Domains.
  • the target domain of any registered node may be one or more.
  • Each target domain is uniquely identified by the DNI of each target domain.
  • the DNI of each target domain corresponding to the registration node may be, but is not limited to, a user interface (User lnterfcae, referred to as UI) corresponding to the registration node in the device, and a preset target domain corresponding to the registration node.
  • UI user interface
  • the sending of the domain search request message by the registration node is specifically performed by using a broadcast manner. After any of the registration nodes issues a domain search request message, any domain node within the communication domain that the registration node can communicate with any domain that has joined the communication network may receive the domain search request message.
  • the domain node may be: DM or BPR in the domain where the domain node is located, or a common domain node. (that is, any domain node other than DM and BPR in the domain where the domain node is located).
  • Step 202 The domain node determines whether the DNI of any target domain included in the domain search request message is the same as the DNI of the domain where the domain node is located.
  • the domain node After receiving the domain search request message, the domain node compares whether the DNI of the domain in which the domain node is located is the same as the DNI of any target domain included in the currently received domain search request message.
  • Step 203 If they are the same, go to step 204; otherwise, go to step 111.
  • step 204 is performed; if the DNI of the domain where the domain node is located and the currently received domain search request message are included If the DNIs of all the target domains are different, it is determined that the domain of the domain node is not the destination domain of the registered node, and the process proceeds to step 111.
  • Step 204 The domain node further determines, after receiving the domain search request message of step 201, whether the local domain node receives the domain search response message according to the domain search request message before the feedback time of the domain search response message arrives, and The identifier of the registered node in the domain search response message is the same as the identifier of the registered node included in the domain search request message received in step 201.
  • the domain node After determining that the domain where the domain node is located is one of the destination domains of the registration node, before the domain node performs step 206, the domain node further determines, at the local node, the feedback moment of the domain search response message according to the domain search request message. Upon arrival, the domain node receives a domain search response message with the following characteristics:
  • the identifier of the registered node included in the domain search response message and the domain search request received in step 201 The registered nodes included in the message have the same identifier.
  • the process proceeds to step 111, and the domain search request message is ignored.
  • the ignore includes: not receiving the domain search response message according to the domain search request message;
  • the other domain node (which may be a DM or BPR or a normal node) does not feed back the domain search response message for the domain search request message in step 201.
  • Step 205 If the domain search response message having the foregoing is not received, step 206 is further performed; if the domain search response message having the foregoing is received, the process proceeds to step 111.
  • Step 206 The domain node broadcasts a feedback domain search response message.
  • the domain node sends a domain search response message in a broadcast manner according to the currently received domain search request message, so that the domain node search response message can be received by the registration node and any domain node of the local domain or other domains.
  • the domain search response message includes information: the local node address, the DNI of the domain where the domain node is located, the domain synchronization information of the domain where the domain node is located, and the registration node included in the domain search request message corresponding to the domain search response message.
  • the domain node that sends the domain search response message is the domain node a, and the current domain of the domain node a is domain A, and the registration node corresponding to the domain search response message is the registration node b.
  • the registration node b After receiving the domain search response message, the registration node b determines the DNI of the domain A in the domain search response message as the DNI of the destination domain to which the registration node b can actually join, and registers the node b according to the domain.
  • the synchronization information "synchronizes with the domain A, and the registration node b issues a domain registration request to the domain node a according to the domain node a address, and the domain registration request includes a request to join the domain A.
  • the node may determine that there are other domain node pairs according to the identifier of the registration node b included in the domain search response message.
  • the domain search request message of the registration node b responds, and the domain node can ignore the domain search request message sent by the registration node b, and does not need to feed back any response to the domain search request message sent by the registration node b.
  • Step 207 The domain node receives the domain registration request issued by the registration node.
  • the registration node After the domain node sends a domain search response message, on the registration node side, the registration node determines, according to the domain search response message, the destination domain that the registered node can join, and the path information corresponding to the destination domain that can be joined.
  • the registration node may synchronize with the domain according to the domain synchronization information in the domain lookup response message, and use the sender address of the domain lookup response message (ie, the domain node address of the sender) as the destination address of the issued domain registration request, to the domain node.
  • a domain registration request is sent, and the domain registration request includes request information for requesting to join the domain where the domain node is located.
  • the registration node may be, but is not limited to, directly based on the earliest received domain search response message, and the earliest The received domain search response message is recorded as ND_Probe.rspo, the ND_Probe.rspo message is sent by the domain node a, the domain node a is in the domain A, and the registered node is based on ND_Pr 0 b e .r S p (in the T).
  • the domain synchronization information is synchronized to the domain A, and a domain registration request is sent to the domain node a, and the request information for requesting to join the domain A is included in the domain registration request.
  • the registration node may also be, but is not limited to, adopting the following technical solutions:
  • the registration node After receiving the domain search request, the registration node monitors the received domain search response message within the predetermined monitoring interval T', and is set in the monitoring time interval T', and the registration node receives N domain search response messages, respectively
  • ND_Probe.rs Pl the domain search response message is sent by the domain node a, the domain node a is in the domain A
  • ND_Probe.rsp 2 the domain search response message is sent by the domain node b, and the domain node b is in the domain A
  • ND_Probe.rsp 3 the domain search response message is sent by the domain node c, the domain node c is in the domain C
  • ND_Probe.rs Pi the domain search response message is sent by the domain node i, and the domain node i is in the domain I;
  • the domain search response message is sent by the domain node n, and the domain node n is in the domain N.
  • the registration node determines the domain A according to all the domain search response messages received.
  • C, I ?? N are the destination domains to which the registration node can join, and the connection domain nodes of the destination domain that can be joined (domain nodes a, b, c, i ... n) a predetermined policy, selecting one of a plurality of joinable destination domains, C, I, ...
  • the domain synchronization information in the domain search response message corresponding to the final destination domain is synchronized to the final destination domain, and the domain registration request is sent to the domain node corresponding to the final destination domain, where the domain registration request includes the request to join the domain node. Request information for the domain.
  • Step 208 If the domain node is: DM, then process according to step 209, otherwise process according to step 110. If the domain node is a DM, continue processing according to step 209. If the domain node is a non-DM node, proceed according to step 110.
  • Step 209 The domain node sends a registration confirmation message to the registration node according to the received domain registration request, and indicates whether the registration node is allowed to join the domain of the domain node.
  • the domain node determines whether to allow the registered node to join the domain according to the domain registration request according to the actual situation of the domain node and the domain in which the domain is located. If allowed, the domain node forwards the registration confirmation message to the domain node. Registering a node, and may also include information such as a node address assigned to the registration node in the registration confirmation message; if not, the domain node feeds back the registration feedback message rejecting the registration to the registration node, so that the registration node according to the predetermined registration policy, Re-submit the registration request at the next registration time, or perform registration request processing of other target domains after multiple registration requests, or create a new domain.
  • Step 110 The domain node forwards the domain registration request to the DM in the domain where the domain node is located, so that the DM determines, according to the domain registration request, whether the registration node is allowed to join the domain.
  • the domain node After receiving the domain registration request, the domain node forwards the domain registration request to the DM in the domain (when the domain node is directly connected to the DM), or through the domain.
  • the other relay nodes in the network are forwarded to the DM in the local domain (when the domain node is connected to the DM through other relay nodes), so that the DM determines whether to allow the DM according to the actual situation of the domain and the domain, according to the domain registration request.
  • the registration node joins the domain A. If allowed, the DM forwards the registration confirmation message to the registration node through the above-mentioned domain node as the information forwarding relay, and may also include the node address assigned to the registration node in the registration confirmation message.
  • the DM forwards the registration feedback message rejecting the registration to the registration node through the above-mentioned domain node, so that the registration node resubmits the registration request at the next registration time according to the predetermined registration policy, or Perform registration request processing for other target domains after submitting the registration request multiple times, or create a new domain. .
  • the normal node After forwarding the registration request, the normal node also forwards the registration confirmation message sent by the DM to the registration node.
  • Step 211 The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. After the domain node receives the domain search request message, either of the following two situations occurs. The domain node ignores the current domain search search request message and does not feedback the domain search response message:
  • Case 2 The DNI of one of the target domains included in the domain search request message is the same as the DNI of the domain in which the domain node is located, but the domain node after receiving the domain search request message according to the domain node according to the Domain Search Request Message
  • the broadcast time of the broadcast domain search response message arrives before the arrival of the domain search response message containing the identity of the registered node in the domain search request message.
  • the domain of the domain node after receiving the domain search request message of the registered node, the domain of the domain node is the target domain of the registered node. After receiving the domain search request message, the domain node does not receive the domain search response message or the received domain search response message before the feedback time of the domain search response message is broadcasted according to the domain search request message.
  • the identifier of the registered node is different from the identifier of the registered node in the domain search request message, and the domain node broadcasts the feedback domain search response message, so that the registration node can learn the destination domain and the destination that can be joined near the registered node according to the search response message. Who sends the domain registration request.
  • the technical solution of the embodiment has the following advantages: First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. The registered node cannot receive the message from the DM or BPR.
  • the registration node can still join the existing domain by applying the technical solution of the embodiment.
  • each registration node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR.
  • the DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR in the existing domain is hidden from the current device (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message of the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain.
  • the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node, resulting in a There are two or more domains of the same DNI in the communication network, which affect the normal operation of each domain on the communication network.
  • the domain node determines that the domain of the domain node is not the target domain of the registered node, and the domain node No response to the domain search request message.
  • the domain node determines, according to the domain search request message, that the domain is one of the target domains of the registration node, before the domain node feedbacks the domain search response message of the local node, the domain node monitors the following: The domain search response message to the other domain node for the domain search request, once received, the domain node ignores the domain search request message and does not feedback the domain search response message. Therefore, adopting the technical solution is beneficial to reducing the response of each node in the communication network to the domain registration request message of the same registered node, avoiding network message redundancy and reducing network signaling overhead.
  • the domain nodes of the feedback domain search response message are all devices having the relay forwarding function.
  • the domain node that receives the domain search request message of the registered node does not have the relay forwarding function, the domain node does not have the relay forwarding function, even if it feeds back the domain search response message to the registration node, but it does not have the domain registration.
  • the function of requesting forwarding to the DM or BPR cannot forward the registration request message to the registration node, so the node that does not have the relay forwarding domain directly ignores the domain search request message after receiving the domain search request message.
  • Example 3 The method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
  • a registration node any communication device that does not join any one of the communication networks, so that the registration node joins any of the communication networks.
  • Domain so that the communication device can perform network communication functions through the domain.
  • the method for establishing domain access control for any registered node that has not joined the domain by any domain node in the domain that is added to the domain includes the following:
  • Step 301 The domain node receives the domain search request message.
  • Step 302 The domain node determines whether the DNI of any target domain included in the domain search request message is the same as the DNI of the domain where the domain node is located.
  • Step 303 If they are the same, go to step 304; otherwise, go to step 311.
  • Step 304 Calculate to determine a random time interval.
  • the domain node After the domain node determines that the DNI of a target domain of the registered node included in the currently received domain search request message is the same as the DNI of the domain of the domain node, the step is performed: the domain node runs a pre-stored random value operation algorithm program. A random value of a time interval, which is recorded as a random time interval. The random time interval is made greater than any time interval of a predetermined time interval.
  • each domain node waits for a random time interval corresponding to the domain node after receiving the domain search request message, if After the random time interval expires, the domain search response message containing the identifier of the registered node that sends the current domain search request message is still not received, and the domain node broadcasts the domain search response message, so the predetermined feedback moment of the domain search response message of each domain node It is also relatively different.
  • TO is the predetermined rated time interval
  • Random (Boffl, Boff2) is a function expression of any random between Boffl and duration Boff2.
  • the predetermined time interval T0 corresponding to each domain node in any domain is set to be the same; the predetermined time interval T0 of each domain in the communication network may be set to be the same or may be set to be different.
  • the registration node in order to further enable the registration node to directly send a registration to the DM according to the response of the DM in the domain,
  • the DM in the domain directly receives the domain search response message after receiving the domain search request message and determining that the target DNI in the message is the same as the DNI of the domain.
  • the other domain nodes except the DM wait for a predetermined time interval TO and then wait for a period of time, which is randomly selected between Boffl and Boff2.
  • Step 3051 The random time interval timer starts.
  • Step 3052 The monitoring domain node receives a domain search response message containing the identifier of the registered node that sends the current domain search request message.
  • the domain node monitors whether the domain node receives the domain search response message with the following characteristics:
  • the identity of the registered node in the domain search response message is the same as the identity of the registered node in the domain search request message received in step 301.
  • Step 3053 If the domain search response message of the above feature is received, the process proceeds to step 311; otherwise, step 3054 is performed.
  • step 311 the domain search request message is ignored, including the non-return domain search response message. If not, the process proceeds to step 3054 to determine whether the time is up. A predetermined random time interval T.
  • Step 3054 Determine whether the time duration of the random time interval timer reaches a random time interval. If it arrives, the process proceeds to step 306; otherwise, returns to step 3052.
  • step 3052 Determine whether the time duration of the random time interval timer on the local node reaches a random time interval. If not, return to step 3052, and continue to monitor whether the local node receives the search response message sent by the other domain node, and the identifier of the registered node included in the domain search response message and the currently received domain search request message.
  • the local domain node does not detect the domain search response message having the above characteristics within a random time interval after receiving the domain search request message, and then performs step 306.
  • Step 306 The domain node broadcasts a feedback domain search response message.
  • This step is the same as step 206 in the step of embodiment 2.
  • Step 307 The domain node receives the domain registration request issued by the registration node.
  • This step is the same as step 107 in the step of the second embodiment.
  • Step 308 If the domain node is: DM, then process according to step 309, otherwise process according to step 310. This step is the same as step 208 in the step of embodiment 2.
  • Step 309 The domain node sends a registration confirmation message to the registration node according to the received domain registration request, and indicates whether the registration node is allowed to join the domain of the domain node.
  • This step is the same as step 209 in the step of embodiment 2.
  • Step 310 The domain node forwards the domain registration request to the DM in the domain where the domain node is located, so that the DM determines, according to the domain registration request, whether the registration node is allowed to join the domain.
  • This step is the same as step 210 in the step of the second embodiment.
  • Step 311 The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. This step is the same as step 211 in the step of Embodiment 2.
  • the present embodiment has the following advantageous effects:
  • the domain node After receiving the domain search request message, the domain node is configured to monitor whether the domain node receives the domain search response message (in the identifier of the registered node and the domain search request message) before receiving the domain search request message.
  • the time interval of the same registration node is: The domain node obtains a random value of time interval after receiving the domain search request message after receiving the domain search request message. It can be ensured that the feedback moments of the domain search response messages sent by any domain node in the communication network are different. For any domain node, it receives the domain search feedback from other domain nodes before the time when the domain search response message is sent. The probability of responding to the message is greatly improved. Therefore, the solution of the embodiment is used to further prevent the multiple domain nodes from jointly reporting the domain search response message to the registration node, avoiding the response message redundancy in the network, and reducing the network signaling overhead.
  • This embodiment provides a method for domain access control, and is particularly suitable for DM or BPR of a communication network operating in a beacon mode.
  • Step 401 Domain node Receive domain search request message.
  • step 101 in the first embodiment is the same.
  • the domain search request message includes an identifier of a registration node that issues a search request message, and a domain name identifier of each target domain corresponding to the registration node.
  • Step 402 If the DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message, and the beacon frame is not received before the next transmission time of the local node beacon frame arrives, : Beacon Frame Pack The identifier of the registered node is included, and the domain search response message is not received: the domain search response message includes the identifier of the registered node, and then step 403 is performed; otherwise, step 406 is performed.
  • Case 1 The DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message.
  • Step 403 The domain node sends a beacon frame, where the identifier of the registered node is included in the beacon frame.
  • the domain node adds the identifier of the registration node in the beacon frame at the time when the predetermined beacon frame transmission time arrives (the identifier of the registration node included in the domain search request message received in step 401), for the registration node of the peer end and Determining the domain node information and the domain information of the domain node according to the domain search response message, and issuing a domain access request to the local domain node according to the domain search response message, and the other domain node may be known according to the beacon frame.
  • the beacon frame is a response according to the domain search request message of the registered node.
  • Step 404 The domain node receives the domain registration request issued by the registration node.
  • the registration node After receiving the beacon frame of the identifier of the registered node, the registration node issues a domain registration request to the domain node according to the beacon frame, and includes a request to join the domain of the domain node in the domain registration request.
  • Step 405 The domain node performs domain access control for the registration node according to the domain registration request.
  • domain access control may be performed for the registered node according to the domain registration request according to the actual situation of the domain node in the domain. For example, if the domain node is a DM, the DM determines whether the registration node is allowed to join the domain of the DM according to the actual situation of the domain and the domain registration request of the DM, and feeds back the judgment result to the registration node.
  • the domain node is a BPR
  • the BPR sends a domain registration request to the DM of the domain for the DM to perform the following: according to the domain registration request and determining whether the registration node is allowed to join the domain of the domain node, and the BPR is used as the relay node.
  • the registration node feeds back the judgment result.
  • Step 406 The domain node ignores the domain search request message, and according to the prior art, the beacon frame of the prior art structure at the next transmission time.
  • the domain node ignores the domain search request message and does not perform any further processing on the domain search request message.
  • the beacon frame is transmitted in accordance with the prior art.
  • step 102 if the determination in step 102 is no, it may be performed according to this step, and other processes may be performed according to the prior art or other predetermined policies.
  • Embodiments 1, 2 and 3 differs from Embodiments 1, 2 and 3 in that:
  • the technical solution of this embodiment is particularly applicable to a beacon network (whether the network is a synchronous beacon network or an asynchronous beacon network), and fully utilizes the beacon frame in the beacon network to ensure that after the DM or BPR receives the domain search request, Before the next feedback moment of the beacon frame of the DM or BPR arrives, the DM or BPR transmits the beacon frame in a broadcast manner, and the beacon frame includes the identifier of the registered node included in the domain search request, thereby After receiving the beacon frame, any other domain node may determine, according to the beacon frame, that the DM or the BPR is currently reporting the beacon frame to the domain search request message, so the domain nodes may not respond to the domain search request message. It is beneficial to reduce the redundancy of network messages and reduce the network signaling overhead.
  • This embodiment provides a method for domain access control, and is particularly suitable for a communication network operating in a beacon mode.
  • a domain node non-DM non-BPR
  • the domain search request message includes an identifier of a registration node that issues a search request message, and a domain name identifier of each target domain corresponding to the registration node.
  • Step 502 If the DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message, and the beacon frame is not received before the feedback time of the local node domain search response message arrives, the beacon frame is not received: The beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes the identifier of the registration node, and step 503 is performed; otherwise, step 506 is performed.
  • step 506 is performed, and the specific cases are:
  • Case 1 The DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message.
  • Step 503 The domain node feeds back the domain search response message.
  • the feedback domain search response message includes: an identifier of the registered node included in the corresponding domain search request message.
  • the domain node may specifically, but not limited to, transmit the domain search response message by means of broadcast transmission.
  • Step 504 The domain node receives the domain registration request issued by the registration node.
  • the registration node After receiving the beacon frame of the identifier of the registered node, the registration node issues a domain registration request to the domain node according to the beacon frame, and includes a request to join the domain of the domain node in the domain registration request.
  • Step 505 The domain node performs domain access control for the registration node according to the domain registration request.
  • domain access control may be performed for the registered node according to the domain registration request according to the actual situation of the domain node in the domain.
  • the domain node forwards the domain registration request to the DM of the domain, or forwards the domain registration request to the DM through the BPR between the domain node and the DM, so that the DM performs the following:
  • the registration node is allowed to join the domain of the domain node, and the BPR is used as the relay node to feed back the judgment result to the registration node.
  • Step 506 The domain node ignores the domain search request message.
  • the domain node ignores the domain search request message and does not perform any further processing on the domain search request message.
  • step 502 if the determination in step 502 is negative, it may be performed according to this step, and other processes may be performed according to the prior art or other predetermined policies.
  • the embodiment is the same as the embodiment 1-3, and adopts the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the registration node is located.
  • the location exceeds the coverage of the DM or BPR in the domain, and the registration node cannot receive the beacon frame sent by the DM or BPR.
  • the technical solution of the embodiment can be used, and the registration node can still join the existing domain according to the domain search response message fed back by the domain nodes.
  • the technical solution of the embodiment helps to increase the probability that the registration node is added to the existing domain, and avoids the situation that the domain name conflicts due to the failure to discover the existing destination domain.
  • the domain node For any domain node of any domain, after receiving the domain search request message sent by the registration node, the domain node only determines that the domain of the domain node is the target domain of the registered node, and Before the local node returns the feedback time of the domain search response message, only the domain search for the domain search request is not received by other domain nodes.
  • the message frame is not subjected to the DM or BPR beacon frame feedback of the domain search response request message, and the domain node returns the domain search response message according to the domain search request message, which is beneficial to avoid network message redundancy and reduce network signaling overhead. .
  • This embodiment provides a method for domain access control, and is particularly suitable for a communication network operating in a beacon mode. As shown in FIG. 6, the method for establishing domain access control for any of the registered nodes that are not joined to the domain is provided by any domain node that has been added to the domain, and the method includes the following process steps:
  • Step 601 The domain node receives the domain search request message.
  • step 101 in embodiment 1 and step 201 in embodiment 2.
  • Step 602 The domain node determines whether the DNI of any target domain included in the domain search request message is the same as the DNI of the domain where the domain node is located.
  • step 102 in embodiment 1 and step 202 in embodiment 2.
  • Step 603 If they are the same, go to step 604; otherwise, go to step 611.
  • Step 6041 Determine whether the domain node is DM or BPR. If it is DM or BPR, go to step 6042; otherwise, go to step 6052.
  • the domain of the domain node is considered to be the target domain of the registration node that sends the domain search request message.
  • the domain node is DM or BPR, perform different processes.
  • Step 6042 Before the domain node arrives at the next feedback moment of the beacon frame, monitor the following: whether the domain search response message including the identifier of the registration node that sends the current domain search request message has been received; or whether the registration node is attached The domain, and the registered node in the registration node additional domain has the same beacon frame as the identity of the registered node included in the currently received domain search request message.
  • the domain node is DM or BPR
  • the monitoring time of the monitoring content is: a time period from the time when the domain node receives the domain search search request message to the next feedback time of the beacon frame.
  • Step 6043 If the above domain search response message is received or the above beacon frame is received before the next feedback time of the beacon frame arrives, the process proceeds to step 6047; otherwise, step 6044 is performed.
  • step 601 If the domain search response message is not received before the next feedback time of the beacon frame arrives, or the identifier of the registered node in the received domain search response message and the registered node included in the domain search request message received in step 601 The identifier is not the same; and, the beacon frame is not received, or the registered node additional domain is not included in the received beacon frame, or the identifier of the registered node in the registered node additional domain in the received beacon frame and step 601 The identifier of the registered node included in the received domain search request message is different, and step 6044 is performed; otherwise, the process proceeds to step 6047.
  • Step 6044 The domain node sends a beacon frame of the following structure at the next feedback moment: a newly added registration node additional domain is added, and the information is included in the registration node additional domain:
  • Step 601 The registered node included in the received domain search request message Logo.
  • the domain node adds a registration node additional field to the beacon frame to be sent at the next feedback moment, and the registration node additional field includes: an identifier of the registration node included in the domain search request message received in step 601.
  • the domain node adds a field to the beacon frame to be sent at the next feedback moment, and defines the newly added domain as: the registration node additional domain. And including information in the registration node additional field: the identity of the registration node included in the search request message received in step 601.
  • the beacon frame containing the registration node additional domain is broadcasted, so that the registered node and other adjacent domain nodes can receive the beacon of the specific structure. frame.
  • the registration node determines the DNI of the domain in the beacon frame as the DNI of the destination domain that the registration node can actually join, and the registration node according to the beacon
  • the registration node sends a domain registration request to the DM or BPR according to the sending address of the beacon frame, and the domain registration request includes request information for requesting to join the domain where the domain node is located.
  • the domain registration request includes request information for requesting to join the domain where the domain node is located.
  • the domain node except the registration node further includes the registration node additional domain in the determined beacon frame, and further compares the identifier of the registration node encapsulated in the registration node additional domain. Whether the identifiers of the registered nodes included in the domain search request message received by the local node are consistent; if they are consistent, the domain node may determine that the current DM or BPR responds to the domain search request message of the registered node, and the domain node ignores The domain search request message does not need to respond to the domain search request message, and does not need to issue a domain search response message.
  • Step 6045 The domain node receives the domain registration request issued by the registration node.
  • step 207 in the second embodiment is the same.
  • Step 6046 The domain node sends a registration confirmation message to the registration node according to the received domain registration request, and indicates whether to allow the registration node to join the domain of the domain node.
  • step 209 in the second embodiment is the same.
  • Step 6047 The domain node ignores the domain search request message, and the beacon frame of the prior art structure at the next feedback moment according to the prior art.
  • step 6043 the domain search response message is received before the next feedback time of the beacon frame arrives and the identity of the registration node in the domain search response message and the registration included in the domain search request message received in step 601
  • the identifier of the node is the same; or, the beacon frame is received, and the received beacon frame includes the registration node additional field
  • the identifier of the registration node in the registration node additional domain is the same as the identifier of the registration node included in the domain search request message received in step 601
  • the step is performed: when the next feedback time arrives, the beacon frame of the prior art structure is sent. There is no registered node additional field in the beacon frame.
  • Step 6052 The domain node further monitors the following in the first time interval after receiving the domain search request message of step 601: whether the domain search response message including the identifier of the registered node that sends the current domain search request message has been received; or Whether or not the registration node additional domain is received, and the identity of the registration node in the registration node attachment domain is the same as the identity of the registration node included in the currently received domain search request message.
  • the first time interval is: the time when the domain node receives the domain search request message and the feedback time of the domain node feedback domain search response message duration.
  • the DNI of the target domain of the registered node included in the currently received domain search request message may be the same as the DNI of the domain of the domain node in the domain node.
  • the domain node runs a pre-stored random value algorithm program, a random value of a time interval, and records it as a random time interval.
  • the random time interval is made greater than any of the predetermined time intervals.
  • the random time interval is greater than a predetermined time interval.
  • the random time interval may be greater than a transmission time interval of the beacon frame of the DM and the BPR in the local domain.
  • the common domain node receives the domain search response message fed back by other domain nodes before the feedback domain search response message, especially the DM or BPR The probability of registering a beacon frame for a node attached domain is greatly increased.
  • the use of the foregoing technical solution is beneficial to further avoiding the situation that multiple domain nodes feedback the domain search response message or the beacon frame to the registration node, avoiding the response message redundancy in the network, and reducing the network signaling overhead. Also, ensure that the registration node preferentially sends a domain registration request based on the DM or BPR beacon frame.
  • Step 6053 If the domain search response message or the above-mentioned beacon frame is received within a random time interval, the process proceeds to step 611; otherwise, step 6054 is performed.
  • Step 6054 The domain node broadcasts a feedback domain search response message.
  • step 206 in the second embodiment is the same.
  • Step 6055 The domain node receives the domain registration request issued by the registration node. The same is the same as step 107 in the embodiment 1.
  • Step 6056 The domain node forwards the domain registration request to the DM in the domain where the domain node is located, so that the DM determines, according to the domain registration request, whether the registration node is allowed to join the domain.
  • Step 611 The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. The same is the same as step 211 in the first embodiment.
  • the difference between the embodiment and the embodiment 1 is that: the technical solution of the embodiment is particularly applicable to a beacon network (whether the network is a synchronous beacon network or an asynchronous beacon network), and the beacon is fully utilized.
  • the beacon frame in the network ensures that after the DM or BPR receives the domain search request, the DM or BPR broadcasts the beacon frame in a broadcast manner before the next feedback time of the DM or BPR beacon frame arrives, and the beacon A newly added registration node additional field is added to the frame, and the registration node additional field includes: an identifier of the registered node included in the currently received domain search request message, thereby ensuring that there are as few other domain nodes as possible to search for the domain. The message responded.
  • any other domain node may determine, according to the beacon frame, whether the DM or the BPR is currently responding to the domain search request message; if the DM or the BPR has responded to the domain search request message, The domain node can ignore the domain search request message.
  • the registration node cannot receive the message sent by the DM or BPR.
  • the registration node can still join the existing domain by applying the technical solution of the embodiment.
  • each registered node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR.
  • the DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR of the current device is hidden from the existing domain (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message to the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain.
  • the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node.
  • a communication network has two or more domains of the same DNI, which affects the normal operation of each domain on the communication network.
  • the technical solution of the embodiment is adopted, which is beneficial to adding the registration node to the existing one.
  • the probability of the domain to avoid creating a new domain due to the inability to discover the existing destination domain, resulting in a domain name conflict.
  • the domain node determines, according to the domain search request message, that the domain is one of the target domains of the registration node, before the domain node feedbacks the domain search response message of the local node, the domain node monitors the following: The response to the domain search request (domain search response message or beacon frame) to other domain nodes. Once received, the domain node ignores the domain search request message and responds, and does not feedback the domain search response message. Therefore, adopting the technical solution is beneficial to reducing the response of each node in the communication network to the domain registration request message of the same registered node, avoiding network message redundancy and reducing network signaling overhead. .
  • beacon frame may be each type of beacon frame, for example, a beacon frame sent by the DM or an R-beacon frame sent by the BPR.
  • a registration node searches for a network according to the method of searching for the domain, and joins the domain of the network, which mainly includes the following process steps:
  • Step 701 The registration node monitors whether a beacon frame is received.
  • the registration node After the registration node is powered on, the registration node monitors whether the registration node receives the beacon frame within a predetermined first time limit.
  • the beacon frame can be each type of beacon frame, such as a beacon frame sent by the DM or an R-beacon frame sent by the BPR.
  • Step 702 If yes, go to step 703; otherwise, go to step 705.
  • Step 703 The registration node determines whether the DNI in the beacon frame is the same as the DNI of any target domain of the registered node. If yes, step 704 is performed; otherwise, step 705 is performed.
  • the domain that sends the beacon frame is considered to be one of the target domains corresponding to the registered node.
  • Step 704 is executed to start the domain registration process and join the domain.
  • Step 704 The registration node sends a domain registration request to the DM or BPR that sends the beacon frame according to the beacon frame.
  • the registration node determines the target domain that can be joined once, this is the final target domain. Send a domain registration request to it.
  • the domain registration request includes a request to join the domain of the DM or the BPR in which the beacon frame is sent. If the registration node receives the beacon frame sent by the DM, the domain registration request is directly sent to the DM, if the registration node receives The R-beacon frame sent by the BPR sends a domain registration request directly to the BPR. The BPR forwards the registration request to the DM. According to the actual situation of the domain node and the domain, the domain registration request determines whether the registration node is allowed to join.
  • the domain node forwards the registration confirmation message to the registration node, and may also include information such as the node address assigned to the registration node in the registration confirmation message; if not, the domain node will reject the registration registration
  • the feedback message is fed back to the registration node, so that the registration node resubmits the registration request at the next registration time according to the predetermined registration policy, or performs registration request processing of other target domains after multiple registration requests, or creates a new domain.
  • Step 705 If the first time limit expires, step 706 is performed; otherwise, return to step 701. If the registration node cannot obtain the same beacon frame of the DNI in the beacon frame and the DNI of any of the target nodes of the registered node within the predetermined first time limit, the following situations may exist:
  • the third is that there is a domain near the current registered node, and the existing domain is a domain with a beacon mode, but the registered node is a hidden node with respect to the DM or BPR in the existing domain, and the registered node is not in the DM or BPR. Within the coverage, the registered node cannot communicate directly with the DM or BPR.
  • step 706 the registration node broadcasts the domain search request message.
  • the registration node is destined to send a domain search request message, and the domain search request message includes: an identifier of the registration node, and a DNI of each target domain corresponding to the registration node.
  • the registration node sends the above domain search request message in a broadcast manner, and any domain node in any domain in the vicinity of the registration node can receive the domain search request message, so as to receive any domain of the domain search request message.
  • Any domain node searches for a response message to the domain request message according to a predetermined protocol, so that the registration node can obtain information such as the domain of the node and the domain node address according to the response message.
  • the flow of any domain node in any domain that receives the domain search request message in the present embodiment may respond to the domain request message feedback response message according to the flow in Embodiment 1-6. But it is not limited to this.
  • Step 707 The registration node monitors whether a domain search response message is received.
  • the registration node After issuing the domain search request message, the registration node monitors whether a domain search response message is received within a predetermined second limit time.
  • the domain search response message includes: a domain node address that sends the domain search response message, a DNI of a domain where the domain node that sends the domain search response message is located, and a domain of the domain node that sends the domain search response message
  • the domain synchronization information, and the identifier of the registered node included in the domain search request message corresponding to the current domain search response message are included in the domain search request message corresponding to the current domain search response message.
  • Step 708 If a domain search response message is received, step 709 is performed; otherwise, step 710 is performed.
  • Step 709 The registration node determines whether the DNI of the domain search response message is the same as the DNI of any target domain of the registered node. If yes, step 710 is performed; otherwise, step 712 is performed.
  • step 710 is started to start the domain registration process. Join the domain, otherwise go to step 712.
  • Step 710 The registration node sends the domain of the domain node that sends the search response message to determine the final destination domain of the registered node.
  • the registration node determines the target domain that can be joined at one time, this is the final target domain, and a domain registration request is sent to it.
  • Step 711 The registration node sends a domain registration request to the domain node that sends the search response message of the DNI containing the final destination domain.
  • the registration node determines the target domain that can be joined at one time, this is the final target domain, and a domain registration request is sent to it.
  • the domain registration request includes request information for joining the domain in which the node that sent the domain search response message is sent. .
  • the domain node that receives the domain registration request forwards the domain registration request to the DM of the local domain, so that the DM determines whether the registration node is allowed to join the domain A according to the domain registration request according to the actual situation of the DM and the domain.
  • the DM forwards the registration confirmation message to the registration node through the above-mentioned domain node, and may also include information such as the node address assigned to the registration node in the registration confirmation message; if not, the DM passes the above
  • the domain node acts as a message forwarding relay, and feeds back the registration feedback message that refuses registration to the registration node, so that the registration node resubmits the registration request at the next registration time according to the predetermined registration policy, or performs other targets after multiple registration requests are submitted.
  • the domain's registration request is processed, or a new domain is created.
  • the normal node is forwarding After this registration request, the registration confirmation message sent by the DM processing is further forwarded to the registration node.
  • Step 712 If the second time limit expires, step 713 is performed; otherwise, step 707 is returned.
  • the registration node cannot obtain the domain search response message within the predetermined time limit, or the DNI in all the domain search response messages received is different from the DNI of any target domain of the registered node, the following situations may exist. :
  • the existing domain is a domain without a beacon mode, but any node of the existing domain cannot communicate with the registered node;
  • the existing domain is a domain with a beacon mode.
  • the registered node is not in the coverage of these DM or BPR, and the registered node cannot communicate with any node of the existing domain.
  • step 713 If the registration node is unable to join the domain according to the beacon frame or join the domain according to the domain search response message, the flow proceeds to step 713.
  • Step 713 The registered node cannot join the existing domain at present, and the new domain is created according to the predetermined policy.
  • the registration node after applying the technical solution of the embodiment, after the registration node fails to join the domain through the beacon frame, the registration node further actively sends a domain search request to wait for the domain search response message to join the domain, so that as long as the target domain exists near the registered node, Whether the domain is in a beacon mode or a non-beacon mode, regardless of whether the registration node is within the coverage of the DM or BPR in the beacon mode domain, as long as any domain node of the target domain can be associated with the registration node Direct communication, the registration node can join the existing target domain, and the new domain is not created.
  • the technical solution of the embodiment is beneficial to improve the probability of the registered node searching for the existing target domain, and avoiding the In the case where there is a registered node target domain, the registered node still creates a new domain, resulting in the existence of the same two domains of the DNI in the network, which affects the normal operation of each domain on the communication network.
  • this embodiment provides another method for domain search applicable to a beaconed network, so that a registration node searches for a network according to the domain search method to join the domain of the network, which mainly includes The following process steps:
  • Step 801 The registration node monitors whether a beacon frame is received.
  • the registration node After the registration node is powered on, the registration node monitors whether a beacon frame is received within the predetermined first time limit.
  • the beacon frame may be each type of beacon frame, such as a beacon frame sent by the DM or an R-beacon frame sent by the BPR. Step 802: If yes, go to step 803; otherwise, go to step 805.
  • Step 803 The registration node determines whether the DNI in the beacon frame is the same as the DNI of any target domain of the registered node. If yes, step 804 is performed; otherwise, step 805 is performed.
  • the domain that sends the beacon frame is considered to be one of the target domains corresponding to the registration node.
  • Step 804 The registration node sends a domain registration request to the DM or BPR that sends the beacon frame according to the beacon frame.
  • Step 805 If the first time limit expires, step 806 is performed; otherwise, return to step 801.
  • Step 806 The registration node sends a domain search request message.
  • Steps 801-806 are the same as steps 701-706 in Embodiment 7.
  • Step 807 The registration node monitors whether a domain search response message and a beacon frame are received.
  • the registration node After issuing the domain search request message, the registration node monitors whether a domain search response message is received and monitors whether a beacon frame is received within a predetermined second time limit.
  • the domain search response message includes: a domain node address that sends the domain search response message, a DNI of a domain where the domain node that sends the domain search response message is located, and a domain of the domain node that sends the domain search response message
  • the domain synchronization information, and the identifier of the registered node included in the domain search request message corresponding to the current domain search response message are included in the domain search request message corresponding to the current domain search response message.
  • Step 808 If the above domain search response message or beacon frame is received, step 809 is performed; otherwise, step 810 is performed.
  • Step 809 The registration node determines whether the DNI of the domain search response message or the beacon frame is the same as the DNI of any target domain of the registered node. If yes, step 810 is performed; otherwise, step 811 is performed.
  • step 810 is executed to start the domain registration process, and In this field, otherwise step 812 is performed.
  • step 810 If the DNI of the received beacon frame is the same as the DNI of the target domain of the registered node, the domain of the beacon frame is determined to be one of the target domains corresponding to the registration node, and step 810 is performed; otherwise, step 812 is performed.
  • the domain of the domain search response message is determined to be one of the target domains corresponding to the registration node, and step 810 is performed; otherwise, step 812 is performed. .
  • Step 810 The registration node sends the domain of the domain node of the search response message or the beacon frame, and determines one of the target domains that the registration node can join.
  • the registration node stores the currently determined target domain that can be joined, and the sender address (DM or BPR, or other domain node address) of the message (beacon frame or domain search response message) corresponding to the currently available target domain, so that After the predetermined time limit expires, a final target domain is determined in the plurality of target domains that can be joined.
  • Step 811 If the second limited time expires, step 812 is performed; otherwise, return to step 807.
  • This step is the same as step 712 in the seventh embodiment.
  • Step 812 The registration node determines the final destination domain in all the target domains that can be joined.
  • a final target domain is determined in a plurality of target domains that can be joined.
  • Step 813 The registration node sends a domain registration request to the domain node that sends the search response message containing the DNI of the final destination domain.
  • This step is the same as step 710 in the seventh embodiment.
  • Step 814 The registered node cannot join the existing domain at present, and the new domain is created according to the predetermined policy.
  • This step is the same as step 713 in the seventh embodiment.
  • the first determined target domain that can be joined is not used as the final target domain as described in Embodiment 7, but after the monitoring time limit expires, A plurality of target domains that can be joined are selected according to a predetermined policy as a final target domain.
  • this embodiment further has the following advantages:
  • This embodiment provides a communication device, which mainly includes: a receiving unit 901, a sending unit 902, and a central processing unit 903.
  • the receiving unit 901 is configured to receive a message.
  • the transmitting unit 902 is configured to send a message.
  • the central processing unit 903 is connected to the receiving unit 901 and the sending unit 902, and is configured to control the operations of the receiving unit 901 and the sending unit 902.
  • the specific working principle is as follows:
  • the receiving unit 901 After the receiving unit 901 receives the domain search request message, if the domain name identifier of the domain in which the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message field received by the receiving unit 901, and in the present communication
  • the sending unit 902 of the device feeds back the feedback of the domain search response message (based on the domain search request message feedback)
  • the central processing unit 903 controls the sending unit 902 to feed back the domain search response message, and includes the identifier of the registered node in the feedback domain search response message.
  • the registration node of the terminal may determine the information of the communication device and the domain of the domain where the domain node is located according to the domain search response message, and issue a domain access request to the communication device according to the domain search response message.
  • the central processing unit 903 After receiving the domain search request message by the receiving unit 901, the central processing unit 903 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example, if the communication device is a DM, the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
  • the domain node is not a DM, and the communication device forwards the domain registration request to the DM of the domain where the domain node is located, so that the DM performs the following:
  • the domain registration request it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
  • the communication device if the communication device is used as any domain node in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is registered After one of the target domains of the node, and after receiving the domain search request message, before receiving the feedback time of the domain search response message, the domain search response including the identifier of the registered node in the domain search request message is not received, and the communication is received.
  • the device broadcasts the feedback domain search response message, so that the registration node can learn the destination domain that can be joined near the registered node and send the domain registration request to the communication device according to the search response message.
  • the technical solution of the embodiment has the following advantages:
  • the technical solution of the embodiment even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain.
  • the registered node cannot receive the message from the DM or BPR.
  • the technical solution of the embodiment can be used, and the registration node can still join the existing domain. It can be seen that the technical solution of the embodiment is used to improve the probability that the registration node is added to the existing domain, and the domain name conflict may be avoided due to the failure to discover the existing destination domain.
  • the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message
  • Domain search request domain search response message, feedback domain search response message can avoid domain nodes in the network for one
  • the domain domain search request message responds separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
  • the present embodiment provides a communication device, which can be used as a DM or BPR application in a domain, and mainly includes: a receiving unit 1001, a sending unit 1002, and a central processing unit 1003.
  • the receiving unit 1001 is configured to receive a message.
  • the transmitting unit 1002 is configured to send a message.
  • the central processing unit 1003 is connected to the receiving unit 1001 and the transmitting unit 1002, respectively, for controlling the operations of the receiving unit 1001 and the transmitting unit 1002.
  • the specific working principle is as follows:
  • the receiving unit 1001 After the receiving unit 1001 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message, and arrives at the next transmission time of the beacon frame. Previously, the beacon frame is not received: the beacon frame includes the identifier of the registered node, and the domain search response message is not received: the domain search response message includes the identifier of the registration node, and the control sending unit 1002 transmits the beacon frame.
  • the identifier of the registration node is included in the beacon frame, and the registration node of the peer end and the information of the communication device and the domain of the domain node can be determined according to the beacon frame, and the domain is sent to the communication device according to the domain search response message. Access request.
  • the central processing unit 1003 After receiving the registration request by the receiving unit 1001, the central processing unit 1003 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example:
  • the communication device is a DM, and the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
  • the domain node is a BPR, and the communication device registers the domain with the DM forwarding domain of the domain where the domain node is located, so that the DM performs the following:
  • the domain registration request it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
  • the communication device if the communication device is used as any DM or BPR in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is After registering one of the target domains of the node, and after receiving the domain search request message, the domain search response including the identifier of the registered node in the domain search request message is not received before the next transmission time of the beacon frame arrives.
  • the communication device sends the beacon frame, and the beacon frame includes the identifier of the registration node included in the domain search request, so that any other domain node can receive the beacon frame according to the beacon.
  • the frame determines that the DM or BPR is currently feeding back the beacon frame for the domain search request message, so these domain nodes may not respond to the above domain search request cancellation. Interest, it is beneficial to reduce the redundancy of network messages, and reduce the network signaling overhead.
  • the present embodiment provides a communication device that is particularly suitable for a non-DM non-BPR general domain node in a beacon frame mode network.
  • the communication device mainly includes: a receiving unit 1101, a transmitting unit 1102, and a central processing unit 1103.
  • the receiving unit 1101 is configured to receive a message.
  • the sending unit 1102 is configured to send a message.
  • the central processing unit 1103 is connected to the receiving unit 1101 and the transmitting unit 1102, and is configured to control the operations of the receiving unit 1101 and the sending unit 1102.
  • the specific working principle is as follows:
  • the receiving unit 1101 After the receiving unit 1101 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message received by the receiving unit 1101, and The domain search request message feedback domain search response message arrives before the feedback time arrives, the beacon frame is not received (and the beacon frame contains the identity of the registered node), and the domain search response message is not received (and the domain search response message includes The central processing unit 1103 controls the sending unit 1102 to feed back the domain search response message, and the domain search response message includes the identifier of the registration node for the registration node of the opposite end and can determine according to the domain search response message. The communication device information and the information of the domain where the domain node is located, and the domain access request message is sent to the communication device according to the domain search response message.
  • the central processing unit 1103 performs domain access control for the registered node that issued the registration request according to the registration request. For example:
  • the communication device forwards the domain registration request to the DM of the domain where the domain node is located, or forwards the domain registration request to the DM through the BPR connected to the DM by the communication device, so that the DM performs the following:
  • the domain registration request it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
  • the embodiment is the same as the embodiment 9, and adopts the technical solution of the embodiment, even in the following situation: the destination domain of the registered node already exists, but the current registered node is located at the edge of the destination domain, and the registered node is located beyond The coverage of the DM or BPR in the domain, the registration node cannot receive the beacon frame sent by the DM or the BPR. In this case, as long as the domain node shown by the communication device exists in the vicinity of the registration node, the domain node may still be added to the existing domain according to the domain search response message fed back by the communication device.
  • the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain.
  • the communication device After receiving the domain search request message sent by the registration node, the communication device only determines that the domain of the communication device is the target domain of the registered node, and Before the feedback moment of the communication device feedback domain search response message, only the domain search response message that the other domain node does not receive the domain search request message is not received by the DM or BPR, and the beacon frame that is fed back to the domain search response request message, the communication The device feeds back the domain search response message according to the domain search request message, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
  • the present embodiment provides a communication device that is particularly suitable for use in a beacon frame mode network, which has a stronger domain search capability when used as a registration node.
  • the communication device mainly includes: a receiving unit 1201, a transmitting unit 1202, and a central processing unit 1203.
  • the central processing unit 1203 is connected to the receiving unit 1201 and the sending unit 1202, respectively, for controlling the operations of the receiving unit 1201 and the transmitting unit 1202.
  • the specific working principle is as follows:
  • the central processing unit 1203 controls the transmitting unit 1202 to broadcast and transmit.
  • a domain search request message where the domain search request message includes an identifier of the communication device
  • the central processing unit 1203 determines the final destination domain according to the domain search response message, and the central processing unit.
  • the 1203 control sending unit 1202 sends a domain registration request according to the domain search response message (the domain search response message including the domain name identifier of the final destination domain), and includes a request for joining the final destination domain in the domain registration request, so that the domain node of the opposite end is configured according to
  • the registration request is a domain access procedure for the registration node to perform a response. If the domain node is a DM, the domain access control is directly performed, otherwise, the DM is forwarded to the local domain, so that the DM performs domain access control.
  • the communication device when acting as a registration node, further actively sends a domain search request after joining the domain through the beacon frame, waiting for the domain search response message to join the domain, so that A target domain exists in the vicinity of the communication device, whether the domain is in a beacon mode or a non-beacon mode, regardless of whether the communication device is within the coverage of the DM or BPR in the domain with the beacon mode, as long as the target domain is any A domain node can directly communicate with the communication device, and the communication device can join the existing target domain without creating a new domain.
  • the technical solution of the embodiment is beneficial to improve the communication device to search for an existing target. The probability of the domain, avoiding that the communication device is still creating a new domain in the presence of the communication device target domain, resulting in the presence of DNI phase in the network. The same two domains affect the normal operation of each domain on the communication network.
  • the embodiment provides a communication device mainly comprising: a receiver 1301, a transmitter 1302 and a central processing unit 1303.
  • Receiver 1301 is for receiving messages.
  • Transmitter 1302 is used to send a message.
  • the central processing unit 1303 is connected to the receiver 1301 and the transmitter 1302, respectively, for controlling the operations of the receiver 1301 and the transmitter 1302.
  • the specific working principle is as follows:
  • the receiver 1301 After the receiver 1301 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message field received by the receiver 1301, and in the communication
  • the transmitter 1302 of the device feeds back the domain search response message (based on the domain search request message feedback) before the arrival of the feedback time, and does not receive the domain search response message including the identifier of the registered node, the central processor 1303 controls the transmitter 1302 to feedback the domain search.
  • the domain search response message in the feedback includes the identifier of the registration node, and the registration node of the peer end can determine the information of the communication device and the domain of the domain node according to the domain search response message, and respond according to the domain search.
  • the message issues a domain access request to the communication device.
  • the central processor 1303 After receiving the domain search request message by the receiver 1301, the central processor 1303 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example, if the communication device is a DM, the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
  • the domain node is not a DM, and the communication device forwards the domain registration request to the DM of the domain where the domain node is located, so that the DM performs the following:
  • the domain registration request it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
  • the communication device if the communication device is used as any domain node in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is registered After one of the target domains of the node, and after receiving the domain search request message, before receiving the feedback time of the domain search response message, the domain search response including the identifier of the registered node in the domain search request message is not received, and the communication is received.
  • the device broadcasts the feedback domain search response message, so that the registration node can learn the destination domain that can be joined near the registered node and send the domain registration request to the communication device according to the search response message.
  • each registered node directly sends a domain registration request to the DM or the BPR according to the beacon frame.
  • the technical solution of the embodiment has the following advantages:
  • the technical solution of the embodiment even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain.
  • the registered node cannot receive the message from the DM or BPR.
  • the technical solution of the embodiment can be used, and the registration node can still join the existing domain. It can be seen that the technical solution of the embodiment is used to improve the probability that the registration node is added to the existing domain, and the domain name conflict may be avoided due to the failure to discover the existing destination domain.
  • the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message
  • the domain search response message of the domain search request feedback domain search response message can prevent each domain node in the network from responding to a domain search request message separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
  • This embodiment provides a communication device, which can be used as a DM or BPR application in a domain, and mainly includes: a receiver 1401, a transmitter 1402, and a central processing unit 1403.
  • Receiver 1401 is for receiving messages.
  • Transmitter 1402 is used to send a message.
  • the central processing unit 1403 is connected to the receiver 1401 and the transmitter 1402, respectively, for controlling the operations of the receiver 1401 and the transmitter 1402.
  • the specific working principle is as follows:
  • the receiver 1401 After the receiver 1401 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message, and arrives at the next transmission time of the beacon frame. Previously, the beacon frame was not received: the beacon frame contains the identity of the registered node, and the domain search response message is not received: the domain search response message includes the identity of the registration node, and the control transmitter 1402 transmits the beacon frame. The identifier of the registration node is included in the beacon frame, and the registration node of the peer end and the information of the communication device and the domain of the domain node can be determined according to the beacon frame, and the domain is sent to the communication device according to the domain search response message. Access request.
  • the central processing unit 1403 After receiving the registration request by the receiver 1401, the central processing unit 1403 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example:
  • the communication device is a DM, and the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
  • the domain node is a BPR, and the communication device registers the domain with the DM forwarding domain of the domain where the domain node is located, so that the DM performs the following:
  • the point serves as a relay node and feeds back the judgment result to the registration node.
  • the communication device if the communication device is used as any DM or BPR in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is After registering one of the target domains of the node, and after receiving the domain search request message, the domain search response including the identifier of the registered node in the domain search request message is not received before the next transmission time of the beacon frame arrives.
  • the communication device sends the beacon frame, and the beacon frame includes the identifier of the registration node included in the domain search request, so that any other domain node can receive the beacon frame according to the beacon.
  • the frame determines that the DM or the BPR is currently reporting the beacon frame for the domain search request message. Therefore, the domain nodes may not respond to the domain search request message, which is beneficial to reducing network message redundancy and reducing network signaling overhead.
  • the present embodiment provides a communication device that is particularly suitable for a non-DM non-BPR general domain node in a beacon frame mode network.
  • the communication device mainly includes: a receiver 1501, a transmitter 1502, and a central processing unit 1503.
  • the receiver 1501 is for receiving a message.
  • Transmitter 1502 is used to send a message.
  • the central processing unit 1503 is respectively connected to the receiver 1501 and the transmitter 1502 for controlling the operations of the receiver 1501 and the transmitter 1502.
  • the specific working principle is as follows:
  • the receiver 1501 After the receiver 1501 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message received by the receiver 1501, and The domain search request message feedback domain search response message arrives before the feedback time arrives, the beacon frame is not received (and the beacon frame contains the identity of the registered node), and the domain search response message is not received (and the domain search response message includes The central processor 1503 controls the transmitter 1502 to feedback the domain search response message, and the domain search response message includes the identifier of the registration node for the registration node of the opposite end and can determine the response message according to the domain. The communication device information and the information of the domain where the domain node is located, and the domain access request message is sent to the communication device according to the domain search response message.
  • the central processor 1503 performs domain access control for the registration node that issues the registration request according to the registration request. For example:
  • the communication device forwards the domain registration request to the DM of the domain where the domain node is located, or forwards the domain registration request to the DM through the BPR connected to the DM by the communication device, so that the DM performs the following:
  • the point serves as a relay node and feeds back the judgment result to the registration node.
  • the embodiment is the same as the embodiment 9, and adopts the technical solution of the embodiment, even in the following situation: the destination domain of the registered node already exists, but the current registered node is located at the edge of the destination domain, and the registered node is located beyond The coverage of the DM or BPR in the domain, the registration node cannot receive the beacon frame sent by the DM or the BPR.
  • the domain node may still be added to the existing domain according to the domain search response message fed back by the communication device.
  • the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain.
  • the communication device For any domain node of any domain, after receiving the domain search request message sent by the registration node, the communication device only determines that the domain of the communication device is the target domain of the registered node, and Before the feedback moment of the communication device feedback domain search response message, only the domain search response message that the other domain node does not receive the domain search request message is not received by the DM or BPR, and the beacon frame that is fed back to the domain search response request message, the communication The device feeds back the domain search response message according to the domain search request message, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
  • the embodiment provides a communication device, which is particularly suitable for a beacon frame mode network, and the communication device has a stronger domain search capability when it is used as a registration node.
  • the communication device mainly includes: a receiver 1601, a transmitter 1602, and a central processing unit 1603.
  • the central processing unit 1603 is connected to the receiver 1601 and the transmitter 1602 respectively for controlling the operations of the receiver 1601 and the transmitter 1602.
  • the specific working principle is as follows:
  • the central processor 1603 controls the transmitter 1602 to broadcast and transmit.
  • a domain search request message where the domain search request message includes an identifier of the communication device
  • the central processor 1603 determines the final destination domain and the central processor according to the domain search response message.
  • the 1603 control transmitter 1602 sends a domain registration request according to the domain search response message (the domain search response message including the domain name identifier of the final destination domain), and includes a request for joining the final destination domain in the domain registration request, so that the domain node of the opposite end is based on
  • the registration request is a domain access procedure for the registration node to perform a response. If the domain node is a DM, the domain access control is directly performed, otherwise the DM is forwarded to the local domain, so that the DM performs domain access. Control.
  • the communication device when acting as a registration node, further actively sends a domain search request after joining the domain through the beacon frame, waiting for the domain search response message to join the domain, so that A target domain exists in the vicinity of the communication device, whether the domain is in a beacon mode or a non-beacon mode, regardless of whether the communication device is within the coverage of the DM or BPR in the domain with the beacon mode, as long as the target domain is any A domain node can directly communicate with the communication device, and the communication device can join the existing target domain without creating a new domain.
  • the technical solution of the embodiment is beneficial to improve the communication device to search for an existing target. The probability of the domain, to avoid the communication device still creating a new domain in the case where the communication device target domain already exists, resulting in the existence of the same two domains of the DNI in the network, affecting the normal operation of each domain on the communication network.
  • the communication device described in the foregoing embodiments is mainly that the device can be used as a communication node in a communication network (referred to as a domain node in a specific domain), but in fact, the communication device is used in addition to It can be used to implement other functions outside of communication, such as power line communication equipment.
  • beacon frames in the above embodiments may be various types of beacon frames, such as:
  • the communication device If the communication device is a DM in the domain of the network, it sends a beacon frame.
  • the communication device If the communication device is BPR in the domain of the network, it sends an R-beacon frame.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located One place, or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without the creative labor.

Abstract

The present invention relates to the field of communications. Disclosed are a method for domain access control, a method for domain search, and a communication device. The method for domain access control comprises: a domain node receives a domain search request message, where the domain search request message comprises the information of: an identity of a register node and domain identities of target domains corresponding to the register node; if the domain identity of a domain where the domain node is at is identical to the domain identity of any one of the target domains that the domain search request message comprises, and, if a domain search response message is not received before the expiration of a feedback time for the feedback of the domain search response message on the basis of the domain search request message, where the domain search request message comprises the identity of the register node, then: the domain node feeds back the domain search response message; the domain node receives a domain register request transmitted by the register node, and the domain node executes domain access control for the register node on the basis of the domain register request. Application of the solution facilitates increased probability for the register node to be added to an existing domain, thus facilitating prevention of message redundancy in the domain.

Description

域接入控制的方法及域搜寻的方法及通信设备 本申请要求于 2012年 8月 30日提交中国专利局、 申请号为 201210314227.4、 发明 名称为 "域接入控制的方法及域搜寻的方法及通信设备"的中国专利申请的优先权, 其 全部内容通过引用结合在本申请中。  Method for domain access control and method for searching for domain and communication device The present application claims to be submitted to the Chinese Patent Office on August 30, 2012, the application number is 201210314227.4, and the method of the invention is "domain access control method and domain search method and The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference.
技术领域 Technical field
本发明涉及通信领域, 特别涉及一种域接入控制的方法及域搜寻的方法及通信设 备。 背景技术  The present invention relates to the field of communications, and in particular, to a domain access control method, a domain search method, and a communication device. Background technique
随着智能通信技术的发展, 通信网络、 智能网络几乎已经无所不在。 电力线通信 网络为采用上述电力线通信技术,通过电力线作为信息传输媒介进行信息传输的一种通 信网络。 在电力线通信网络中的各个设备或者部件记为电力线通信设备, 其分别为通信 网络中的节点。  With the development of intelligent communication technologies, communication networks and intelligent networks are almost ubiquitous. The power line communication network is a communication network that uses the above power line communication technology to transmit information through the power line as an information transmission medium. Each device or component in a power line communication network is referred to as a power line communication device, which is a node in the communication network, respectively.
电力线通信技术是利用高压电力线(35kV及以上电压等级)、中压电力线(10-30kV 电压等级) 或低压配电线 (380/210kV用户线) 作为信息传输媒介进行信息传输的一种 特殊通信方式。  Power line communication technology is a special communication method that uses high-voltage power lines (35kV and above), medium-voltage power lines (10-30kV voltage level) or low-voltage distribution lines (380/210kV subscriber lines) as information transmission medium for information transmission. .
电力线通信技术将载有信息的高频信号加载到电力线上, 以通过电力线进行数据 传输,在接收端通过专用的电力线调制 /解调器将高频信号从电力线上分离出来,然后将 载有信息的高频信号传送到终端设备。  The power line communication technology loads the high frequency signal carrying information onto the power line for data transmission through the power line, and separates the high frequency signal from the power line through a dedicated power line modulator/demodulator at the receiving end, and then carries the information. The high frequency signal is transmitted to the terminal device.
电力线通信网络在逻辑上可以划分为多个域, 在网络中的每个域都分别具有一个 唯一的域名标识 (Domain name Identifier, 简称 DNI), 该 DNI在该电力线通信网络中 用于唯一标识本域。 在每个域中, 各个域节点通过电力线分别连接, 在每个域中, 分别 指定有一个域节点作为用于统一协调控制本域内网络通信的主域控制器 (Domain Master, 简称 DM)。  The power line communication network can be logically divided into multiple domains, each domain in the network has a unique domain name identifier (DNI), and the DNI is used to uniquely identify the domain in the power line communication network. area. In each domain, each domain node is connected by a power line. In each domain, a domain node is designated as a primary domain controller (DM) for unified coordination and control of network communication within the domain.
现有技术中电力线通信技术的各个域的常用工作模式包括信标模式 (分为同步信 标模式、 异步信标模式) 和无信标模式。 在信标模式中, DM会定时发送信标帧到本域 内的所有的域节点, 在信标帧中包含以下信息: 带宽、 域名、 DNI、 安全等级、 频带划 分需求、 域同步信息、 工作模式等消息。 在无信标模式中, DM通过层 3的带内管理消 息对域进行管理和控制。  Common modes of operation for various domains of prior art power line communication techniques include beacon mode (divided into synchronous beacon mode, asynchronous beacon mode) and non-beacon mode. In beacon mode, the DM periodically sends beacon frames to all domain nodes in the domain. The beacon frame contains the following information: bandwidth, domain name, DNI, security level, band division requirement, domain synchronization information, working mode. wait for news. In the non-beacon mode, the DM manages and controls the domain through the in-band management message of layer 3.
在范围较大的域中, 域中的部分域节点无法与 DM通信时, DM可以指一个或者 多个信标代理 (Beacon Proxies, 简称 BPR), BPR根据收到的信标帧重新生成并广播In a large domain, when some domain nodes in the domain cannot communicate with the DM, the DM can refer to one or Multiple Beacon Proxies (BPR), BPR regenerates and broadcasts based on received beacon frames
R-信标帧, 从而达到扩大域覆盖范围的效果。 R-beacon frames, thus achieving the effect of expanding the domain coverage.
与该域同步在进行本发明研究过程中, 本发明人发现现有技术中至少存在以下的 缺陷和问题:  Synchronization with the Domain In the course of conducting the research of the present invention, the inventors have found that at least the following drawbacks and problems exist in the prior art:
根据现有技术方案, 设备可以通过被动扫描信标或者主动发送探测消息或者信标 请求消息来找到已有网络, 并选择合适的网络执行相应的入网流程来加入网络。  According to the prior art solution, the device can find the existing network by passively scanning the beacon or actively sending the probe message or the beacon request message, and select an appropriate network to perform the corresponding network access procedure to join the network.
但是在本发明方案所基于的网络架构下, 节点在上电后, 并不知道当前周围已有 域的分布情况和工作模式, 如果存在的域工作于无信标模式, 节点无法通过扫描信标发 现已有域的存在; 另一方面,可能节点期望加入的目的域已经存在,且工作于信标模式, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 故注册节点无法收到 DM或者 BPR发出的消息。 发明内容  However, in the network architecture on which the solution of the present invention is based, after the node is powered on, the node does not know the distribution and working mode of the existing surrounding domain. If the existing domain works in the non-beacon mode, the node cannot pass the scanning beacon. Discovering the existence of an existing domain; on the other hand, the destination domain that the node is expected to join already exists and works in the beacon mode, but the current registered node is located at the edge of the destination domain, and the registered node is located beyond the DM in the domain or The coverage of the BPR, so the registration node cannot receive the message from the DM or BPR. Summary of the invention
本发明实施例第一目的在于提供第一种域接入控制的方法, 应用该技术方案有利 于提高注册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域 从而造成域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A first object of the embodiments of the present invention is to provide a method for the first domain access control. The application of the technical solution is beneficial to increase the probability that a registration node is added to an existing domain, and the new domain is avoided because the existing destination domain cannot be found. Therefore, the situation of domain name conflict is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第二目的在于提供第二种域接入控制的方法, 应用该技术方案有利 于提高注册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域 从而造成域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A second object of the embodiments of the present invention is to provide a method for the second domain access control. The application of the technical solution is beneficial to increase the probability that the registration node is added to the existing domain, and the new domain is avoided because the existing destination domain cannot be found. Therefore, the situation of domain name conflict is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第三目的在于提供第三种域接入控制的方法, 应用该技术方案有利 于提高注册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域 从而造成域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A third object of the embodiments of the present invention is to provide a third domain access control method. The application of the technical solution is beneficial to increase the probability that a registration node is added to an existing domain, and is beneficial to avoid creating a new domain because the existing destination domain cannot be found. Therefore, the situation of domain name conflict is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第四目的在于提供一种域搜寻的方法, 应用该技术方案有利于提高 注册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造 成域名冲突的情况。  A fourth object of the embodiments of the present invention is to provide a domain search method. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain by creating a new domain because the existing destination domain cannot be found. The situation of the conflict.
本发明实施例第五目的在于提供第一种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A fifth object of the embodiments of the present invention is to provide a first type of communication device. The application of the technical solution is advantageous for increasing the probability that a registration node is added to an existing domain, and is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第六目的在于提供第二种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。 本发明实施例第七目的在于提供第三种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。 A sixth object of the embodiments of the present invention is to provide a second type of communication device. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain. A seventh object of the embodiments of the present invention is to provide a third type of communication device. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第八目的在于提供第四种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况。  An eighth object of the embodiments of the present invention is to provide a fourth type of communication device. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain, thereby causing a domain name conflict. Case.
本发明实施例第五目的在于提供第五种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A fifth object of the embodiments of the present invention is to provide a fifth type of communication device. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, and is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第六目的在于提供第六种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A sixth object of the embodiments of the present invention is to provide a sixth communication device. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例第七目的在于提供第七种通信设备, 应用该技术方案有利于提高注 册节点加到已有域的几率,有利于避免由于无法发现已存在的目的域而新建域从而造成 域名冲突的情况, 有利于避免域中消息冗余, 降低域中的信令开销。  A seventh object of the embodiments of the present invention is to provide a seventh type of communication device. The application of the technical solution is beneficial to increasing the probability that a registration node is added to an existing domain, which is beneficial to avoid creating a domain name due to failure to discover an existing destination domain. In this case, it is beneficial to avoid message redundancy in the domain and reduce signaling overhead in the domain.
本发明实施例提供的第一域接入控制的方法, 包括:  The method for the first domain access control provided by the embodiment of the present invention includes:
域节点接收域搜寻请求消息, 所述域搜寻请求消息包含信息: 注册节点的标识、 以及所述注册节点对应的各目标域的域名标识;  The domain node receives the domain search request message, where the domain search request message includes information: an identifier of the registration node, and a domain name identifier of each target domain corresponding to the registration node;
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的任一所述目标 域的域名标识的相同,  If the domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message,
并且, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未 收到域搜寻响应消息, 所述域搜寻请求消息包含所述注册节点的标识, 贝 IJ :  And, before the arrival of the feedback time of the domain search response message according to the domain search request message, the domain search response message is not received, and the domain search request message includes the identifier of the registration node, and the IJ:
所述域节点反馈所述域搜寻响应消息;  The domain node feeds back the domain search response message;
所述域节点接收所述注册节点发出的所述域注册请求,  Receiving, by the domain node, the domain registration request sent by the registration node,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制。  The domain node performs domain access control for the registration node according to the domain registration request.
可选地, 所述域节点具体是以广播发送的方式, 反馈所述域搜寻响应消息。 可选地, 所述域节点根据所述域注册请求为所述注册节点执行域接入控制, 具体 是:  Optionally, the domain node specifically feeds back the domain search response message by means of broadcast transmission. Optionally, the domain node performs domain access control for the registration node according to the domain registration request, specifically:
如果所述域节点为: 主域控制器, 则所述域节点根据所述域节点以及所述域节点 所在域的实际情况以及所述域注册请求,判断是否允许注册节点加入到所述域节点所在 域, 并向所述注册节点反馈判断结果; If the domain node is: a primary domain controller, the domain node determines whether to allow the registered node to join the domain node according to the actual situation of the domain node and the domain where the domain node is located and the domain registration request. Where a domain, and feeding back the judgment result to the registration node;
否则, 所述域节点向所述域节点所在域的主域控制器转发所述域注册请求, 以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。  Otherwise, the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, for the primary domain controller to perform the domain registration request, and determine whether the registration node is allowed to join the The domain where the domain node is located, and the judgment result is fed back to the registration node.
可选地, 在步骤: 域节点接收域搜寻请求消息之后, 还包括:  Optionally, after the step: the domain node receives the domain search request message, the method further includes:
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的所有所述目标 域的域名标识的均不相同,  If the domain name identifier of the domain where the domain node is located is different from the domain name identifier of all the target domains included in the domain search request message,
或者, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 有 收到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点的标识, 贝 IJ :  Or, before the arrival of the feedback time of the domain search response message according to the domain search request message, the domain search response message is received: the domain search response message includes the identifier of the registration node, and the IJ:
所述域节点忽略所述域搜寻请求消息。  The domain node ignores the domain search request message.
可选地, 所述反馈时刻, 具体为:  Optionally, the feedback moment is specifically:
在收到所述域搜寻请求消后, 等待一随机时间间隔时间后的时刻,  After receiving the domain search request, waiting for a time after a random time interval,
所述随机时间间隔为: 所述域节点收到所述域搜寻请求消息后, 计算获取的一时 间间隔随机值。  The random time interval is: after receiving the domain search request message, the domain node calculates a random value of the obtained time interval.
可选地, 所述域节点为: 所述主域控制器,  Optionally, the domain node is: the primary domain controller,
所述广播域搜寻响应消息的反馈时刻, 具体为:  The feedback moment of the broadcast domain search response message is specifically:
在收到所述域搜寻请求消后, 等待零时间间隔后的时刻。  After receiving the domain search request, wait for the time after the zero time interval.
本发明实施例提供的第二域接入控制的方法, 包括: 域节点接收域搜寻请求消息, 所述域节点为: 主域控制器或者信标代理, 所述域搜寻请求消息包含信息: 注册节点的标识、 以及所述注册节点对应的各目 标域的域名标识;  The method for the second domain access control provided by the embodiment of the present invention includes: receiving, by the domain node, a domain search request message, where the domain node is: a primary domain controller or a beacon proxy, and the domain search request message includes information: An identifier of the node, and a domain name identifier of each target domain corresponding to the registration node;
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的任一所述目标 域的域名标识的相同,  If the domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message,
并且, 在信标帧的下一发送时刻到达之前, 未收到信标帧: 所述信标帧包含所述 注册节点的标识, 并且未收到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点 的标识, 贝 IJ :  And, the beacon frame is not received before the next transmission time of the beacon frame arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes The identity of the registered node, Bay IJ:
所述域节点发送信标帧, 在所述信标帧中包含所述注册节点的标识;  Transmitting, by the domain node, a beacon frame, where the identifier of the registered node is included in the beacon frame;
所述域节点接收所述注册节点发出的所述域注册请求,  Receiving, by the domain node, the domain registration request sent by the registration node,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制。  The domain node performs domain access control for the registration node according to the domain registration request.
可选地, 在所述信标帧中包含所述注册节点的标识, 具体是: 在所述信标帧中包含注册节点附加域, 在所述注册节点附加域中包含: 所述注册 节点的标识。 Optionally, the identifier of the registration node is included in the beacon frame, specifically: A registration node additional domain is included in the beacon frame, and the registration node additional domain includes: an identifier of the registration node.
可选地, 所述域节点具体是以广播的方式, 发送所述信标帧。  Optionally, the domain node specifically sends the beacon frame in a broadcast manner.
可选地, 所述域节点根据所述域注册请求为所述注册节点执行域接入控制, 具体 是:  Optionally, the domain node performs domain access control for the registration node according to the domain registration request, specifically:
如果所述域节点为: 主域控制器, 则所述域节点根据所述域节点以及所述域节点 所在域的实际情况以及所述域注册请求,判断是否允许注册节点加入到所述域节点所在 域, 并向所述注册节点反馈判断结果;  If the domain node is: a primary domain controller, the domain node determines whether to allow the registered node to join the domain node according to the actual situation of the domain node and the domain where the domain node is located and the domain registration request. The domain, and feedback the judgment result to the registration node;
否则, 所述域节点向所述域节点所在域的主域控制器转发所述域注册请求, 以供 所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所述域节点所 在域, 且向所述注册节点反馈判断结果。  Otherwise, the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, for the primary domain controller to perform the domain registration request, and determine whether the registration node is allowed to join the The domain where the domain node is located, and the judgment result is fed back to the registration node.
可选地, 在步骤: 域节点接收域搜寻请求消息之后, 还包括:  Optionally, after the step: the domain node receives the domain search request message, the method further includes:
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的所有所述目标 域的域名标识的均不相同,  If the domain name identifier of the domain where the domain node is located is different from the domain name identifier of all the target domains included in the domain search request message,
或者, 在信标帧的下一发送时刻到达之前, 有收到域搜寻响应消息: 所述域搜寻 响应消息包含所述注册节点的标识, 或者有收到信标帧: 所述信标帧包含所述注册节点 的标识, 贝 IJ :  Or, before the arrival of the next transmission time of the beacon frame, the domain search response message is received: the domain search response message includes an identifier of the registration node, or a received beacon frame: the beacon frame includes The identity of the registered node, Bay IJ:
所述域节点忽略所述域搜寻请求消息。  The domain node ignores the domain search request message.
本发明实施例提供的第三域接入控制的方法, 包括: 域节点接收域搜寻请求消息, 所述域节点为: 除主域控制器以及信标代理外的其 他任一域节点,  The method for the third domain access control provided by the embodiment of the present invention includes: receiving, by the domain node, a domain search request message, where the domain node is: any domain node other than the primary domain controller and the beacon proxy,
所述域搜寻请求消息包含信息: 注册节点的标识、 以及所述注册节点对应的各目 标域的域名标识;  The domain search request message includes information: an identifier of the registration node, and a domain name identifier of each target domain corresponding to the registration node;
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的任一所述目标 域的域名标识的相同,  If the domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message,
并且, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未 收到信标帧: 所述信标帧包含所述注册节点的标识, 并且未收到域搜寻响应消息: 所述 域搜寻响应消息包含所述注册节点的标识, 贝 IJ :  And, the beacon frame is not received before the feedback moment of the domain search request message feedback domain search response message arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: The domain search response message includes an identifier of the registered node, and the IJ:
所述域节点反馈所述域搜寻响应消息;  The domain node feeds back the domain search response message;
所述域节点接收所述注册节点发出的所述域注册请求, 所述域节点根据所述域注册请求为所述注册节点执行域接入控制。 Receiving, by the domain node, the domain registration request sent by the registration node, The domain node performs domain access control for the registration node according to the domain registration request.
可选地, 所述域节点具体是以广播发送的方式, 反馈所述域搜寻响应消息。  Optionally, the domain node specifically feeds back the domain search response message by means of broadcast transmission.
可选地, 所述域节点根据所述域注册请求为所述注册节点执行域接入控制, 具体 是:  Optionally, the domain node performs domain access control for the registration node according to the domain registration request, specifically:
所述域节点向所述域节点所在域的主域控制器转发所述域注册请求, 以供所述主 域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所述域节点所在域, 且向所述注册节点反馈判断结果。  Transmitting, by the domain node, the domain registration request to a primary domain controller of a domain where the domain node is located, for the primary domain controller to perform a domain registration request, and determining whether a registration node is allowed to join the domain node The domain is located, and the judgment result is fed back to the registration node.
可选地, 在步骤: 域节点接收域搜寻请求消息之后, 还包括:  Optionally, after the step: the domain node receives the domain search request message, the method further includes:
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的所有所述目标 域的域名标识的均不相同,  If the domain name identifier of the domain where the domain node is located is different from the domain name identifier of all the target domains included in the domain search request message,
或者, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 有 收到信标帧: 所述信标帧包含所述注册节点的标识, 或者有收到域搜寻响应消息: 所述 域搜寻响应消息包含所述注册节点的标识, 贝 IJ :  Or, before the arrival of the feedback time of the domain search response message according to the domain search request message, the beacon frame is received: the beacon frame includes the identifier of the registration node, or the domain search response message is received: The domain search response message includes an identifier of the registered node, and the IJ:
所述域节点忽略所述域搜寻请求消息。  The domain node ignores the domain search request message.
可选地, 所述反馈时刻, 具体为:  Optionally, the feedback moment is specifically:
在收到所述域搜寻请求消后, 等待一随机时间间隔时间后的时刻,  After receiving the domain search request, waiting for a time after a random time interval,
所述随机时间间隔为: 所述域节点收到所述域搜寻请求消息后, 计算获取的一时 间间隔随机值。  The random time interval is: after receiving the domain search request message, the domain node calculates a random value of the obtained time interval.
可选地, 所述随机时间间隔大于: 所述域节点所在域的主域控制器的信标帧发送 时间间隔。  Optionally, the random time interval is greater than: a beacon frame transmission time interval of the primary domain controller of the domain where the domain node is located.
可选地, 所述随机时间间隔还大于: 所述域节点所在域的任一信标代理的信标帧 发送时间间隔。  Optionally, the random time interval is further greater than: a beacon frame transmission time interval of any beacon agent in the domain where the domain node is located.
本发明实施例提供的一种域搜寻的方法, 包括:  A method for domain search provided by the embodiment of the present invention includes:
注册节点监测是否收到信标帧;  The registration node monitors whether a beacon frame is received;
如果在所述信标帧的监测周期内未收到信标帧: 所述信标帧包含所述注册节点的 任一目标域的域名标识, 贝 IJ :  If the beacon frame is not received within the monitoring period of the beacon frame: the beacon frame contains the domain name identifier of any target domain of the registered node,
所述注册节点广播发送域搜寻请求消息, 在所述域搜寻请求消息包含所述注册节 点的标识;  The registration node broadcasts a domain search request message, where the domain search request message includes an identifier of the registration node;
所述注册节点监测是否收到域搜寻响应消息,  The registration node monitors whether a domain search response message is received,
如果所述域搜寻响应消息包括: 所述注册节点的任一目标域的域名标识, 贝 IJ : 所述注册节点根据所述域搜寻响应消息, 确定最终目的域, If the domain search response message includes: a domain name identifier of any target domain of the registration node, Determining, by the registration node, the final destination domain according to the domain search response message,
所述注册节点根据包含所述最终目的域的域名标识的所述域搜寻响应消息, 发送 域注册请求, 所述域注册请求的目的地址为所述域搜寻响应消息的发送端地址, 在所述 域注册请求中包含加入所述最终目的域的请求。  The registration node sends a domain registration request according to the domain search response message that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message, The domain registration request contains a request to join the final destination domain.
可选地, 所述注册节点根据所述域搜寻响应消息, 确定最终目的域, 具体是: 所述注册节点将首次收到的所述域搜寻响应消息中包含的域名标识, 确定为所述 最终目的域的域名标识。  Optionally, the registration node determines, according to the domain search response message, the final destination domain, where the registration node determines the domain name identifier included in the domain search response message received for the first time as the final The domain name identifier of the destination domain.
可选地, 所述注册节点根据所述域搜寻响应消息, 确定最终目的域, 具体是: 所述注册节点在预定的域搜寻响应监测周期内, 接收至少两个所述域搜寻响应消 息,  Optionally, the registration node determines the final destination domain according to the domain search response message, where: the registration node receives at least two of the domain search response messages in a predetermined domain search response monitoring period.
所述注册节点将其中任一所述域搜寻响应消息包含的域名标识, 确定为所述最终 目的域的域名标识。  The registration node determines the domain name identifier included in any of the domain search response messages as the domain name identifier of the final destination domain.
可选地, 在步骤: 所述注册节点监测是否收到域搜寻响应消息时, 还包括: 所述注册节点监测是否收到信标帧;  Optionally, in step: when the registration node monitors whether the domain search response message is received, the method further includes: the registration node monitoring whether a beacon frame is received;
在步骤: 所述注册节点根据所述域搜寻响应消息, 确定最终目的域之前, 如果收到信标帧: 所述信标帧包含所述注册节点的任一目标域的域名标识, 贝 IJ : 根据所述信标帧, 确定所述最终目的域;  In the step: the registration node determines the final destination domain according to the domain search response message, if the beacon frame is received: the beacon frame includes the domain name identifier of any target domain of the registration node, Determining the final destination domain according to the beacon frame;
所述注册节点根据包含所述最终目的域的域名标识的所述信标帧, 发送域注册请 求, 所述域注册请求的目的地址为: 所述信标帧的发送端地址, 在所述域注册请求中包 含加入所述最终目的域的请求。  Transmitting, by the registration node, a domain registration request according to the beacon frame that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is: a sender address of the beacon frame, in the domain The registration request contains a request to join the final destination domain.
所述注册节点停止监测是否收到信标帧以及信标帧。  The registration node stops monitoring whether a beacon frame and a beacon frame are received.
本发明实施例提供的第一通信设备, 包括: 接收单元, 用于接收消息;  The first communication device provided by the embodiment of the present invention includes: a receiving unit, configured to receive a message;
发送单元, 用于发送消息;  a sending unit, configured to send a message;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于:  The central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
在所述接收单元收到域搜寻请求消息之后, 如果所述通信设备所在域的域名标识 与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在根据所述 域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到域搜寻响应消息: 所 述域搜寻响应消息包含所述注册节点的标识,控制所述发送单元反馈所述域搜寻响应消 息, 以及, 在所述接收单元收到所述注册请求后, 为发出所述注册请求的注册节点执 行域接入控制。 After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and Before the arrival of the feedback time of the domain search request message feedback domain search response message, the domain search response message is not received: the domain search response message includes the identifier of the registration node, and the sending unit is controlled to feed back the domain search response message. , And, after the receiving unit receives the registration request, perform domain access control for the registration node that issues the registration request.
可选地, 中央处理单元在所述接收单元收到所述注册请求后, 为发出所述注册请 求的注册节点执行域接入控制, 具体为:  Optionally, after receiving the registration request, the central processing unit performs domain access control for the registration node that sends the registration request, specifically:
所述中央处理单元在所述接收单元收到所述注册请求后, 根据所述设备以及所述 设备所在域的实际情况以及所述域注册请求,判断是否允许发出所述注册节点加入到所 述设备所在域, 并向所述注册节点反馈判断结果。  After receiving the registration request, the central processing unit determines, according to the actual situation of the device and the domain where the device is located, and the domain registration request, whether to allow the registration node to be added to the The domain where the device is located, and feedback the judgment result to the registration node.
可选地, 中央处理单元在所述接收单元收到所述注册请求后, 为发出所述注册请 求的注册节点执行域接入控制, 具体为:  Optionally, after receiving the registration request, the central processing unit performs domain access control for the registration node that sends the registration request, specifically:
所述中央处理单元在所述接收单元收到所述注册请求后, 控制所述发送单元向所 述设备所在域的主域控制器转发所述域注册请求,  After receiving the registration request, the central processing unit controls the sending unit to forward the domain registration request to a primary domain controller of a domain where the device is located,
以供所述主域控制器根据所述域注册请求判断是否允许注册节点加入到所述设备 所在域, 且向所述注册节点反馈判断结果根据所述设备以及所述设备所在域的实际情况 以及所述域注册请求, 判断是否允许发出所述注册节点加入到所述设备所在域, 并向所 述注册节点反馈判断结果。  And determining, by the primary domain controller, whether the registration node is allowed to join the domain where the device is located according to the domain registration request, and feeding back the determination result to the registration node according to the actual situation of the device and the domain where the device is located, and The domain registration request determines whether the registration node is allowed to join the domain where the device is located, and feeds back the determination result to the registration node.
本发明实施例提供的第二通信设备, 包括: 接收单元, 用于接收消息;  The second communication device provided by the embodiment of the present invention includes: a receiving unit, configured to receive a message;
发送单元, 用于发送消息;  a sending unit, configured to send a message;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于:  The central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
在所述接收单元收到域搜寻请求消息之后, 如果所述通信设备所在域的域名标识 与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在信标帧的 下一发送时刻到达之前, 未收到信标帧: 所述信标帧包含所述注册节点的标识, 并且未 收到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点的标识, 控制所述发送单 元发送信标帧, 在所述信标帧中包含所述注册节点的标识;  After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and is in the beacon The beacon frame is not received before the next transmission time of the frame arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes the registration node Identifying, transmitting, by the sending unit, a beacon frame, where the identifier of the registered node is included in the beacon frame;
以及, 在所述接收单元收到注册请求后, 根据所述注册请求, 为发出所述注册请 求的注册节点执行域接入控制。  And, after the receiving unit receives the registration request, perform domain access control for the registration node that issues the registration request according to the registration request.
可选地, 所述中央处理单元, 在所述接收单元收到注册请求后, 用于根据所述注 册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为:  Optionally, the central processing unit, after the receiving unit receives the registration request, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
所述中央处理单元, 根据所述域节点以及所述域节点所在域的实际情况以及所述 域注册请求, 判断是否允许注册节点加入到所述域节点所在域, 并向控制所述发送单元 向所述注册节点反馈判断结果。 The central processing unit determines, according to the actual situation of the domain node and the domain where the domain node is located, and the domain registration request, whether the registration node is allowed to join the domain where the domain node is located, and controls the sending unit The judgment result is fed back to the registration node.
可选地, 所述中央处理单元, 在所述接收单元收到注册请求后, 用于根据所述注 册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为:  Optionally, the central processing unit, after the receiving unit receives the registration request, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
所述中央处理单元控制所述发送单元向所述设备所在域的主域控制器转发所述域 注册请求,  The central processing unit controls the sending unit to forward the domain registration request to a primary domain controller of a domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。  And the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node.
本发明实施例提供的第三通信设备, 包括: 接收单元, 用于接收消息;  The third communication device provided by the embodiment of the present invention includes: a receiving unit, configured to receive a message;
发送单元, 用于发送消息;  a sending unit, configured to send a message;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于:  The central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
在所述接收单元收到所述域搜寻请求消息之后, 如果所述通信设备所在域的域名 标识与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在根据 所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到信标帧: 所述信 标帧包含所述注册节点的标识, 并且未收到域搜寻响应消息: 所述域搜寻响应消息包含 所述注册节点的标识, 则控制所述发送单元反馈所述域搜寻响应消息,  After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and The beacon frame is not received before the feedback time of the domain search request message feedback domain search response message arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain The search response message includes an identifier of the registration node, and then controls the sending unit to feed back the domain search response message.
以及, 在所述接收单元收到注册请求后, 根据所述注册请求, 为发出所述注册请 求的注册节点执行域接入控制。  And, after the receiving unit receives the registration request, perform domain access control for the registration node that issues the registration request according to the registration request.
可选地, 所述中央处理单元用于在所述接收单元收到注册请求后, 用于根据所述 注册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为:  Optionally, the central processing unit is configured to, after the receiving unit receives the registration request, perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
在所述接收单元收到注册请求后, 所述中央处理单元用于控制所述发送单元向所 述设备所在域的主域控制器转发所述域注册请求,  After the receiving unit receives the registration request, the central processing unit is configured to control the sending unit to forward the domain registration request to a primary domain controller of a domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 本发明实施例提供的第四通信设备, 包括:  And the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node. The fourth communication device provided by the embodiment of the present invention includes:
接收单元, 用于接收消息;  a receiving unit, configured to receive a message;
发送单元, 用于发送消息;  a sending unit, configured to send a message;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于:  The central processing unit is respectively connected to the receiving unit and the sending unit, and is configured to:
在所述接收单元在所述信标帧的监测周期内未收到信标帧: 所述信标帧包含所述 注册节点的任一目标域的域名标识时, 控制所述发送单元广播发送域搜寻请求消息, 在 所述域搜寻请求消息包含所述注册节点的标识; The receiving unit does not receive the beacon frame in the monitoring period of the beacon frame: when the beacon frame includes the domain name identifier of any target domain of the registration node, controlling the sending unit to broadcast the transmission domain Search request message, at The domain search request message includes an identifier of the registration node;
以及, 在所述接收单元收到域搜寻响应消息, 所述域搜寻响应消息包括: 所述注 册节点的任一目标域的域名标识时, 根据所述域搜寻响应消息, 确定最终目的域, 以及 用于控制所述发送单元根据包含所述最终目的域的域名标识的所述域搜寻响应消息发 送域注册请求, 所述域注册请求的目的地址为所述域搜寻响应消息的发送端地址, 在所 述域注册请求中包含加入所述最终目的域的请求。  And receiving, in the receiving unit, a domain search response message, where the domain search response message includes: when the domain name identifier of any target domain of the registration node is used, determining a final destination domain according to the domain search response message, and And sending, by the sending unit, the domain registration request according to the domain search response message that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message, The domain registration request includes a request to join the final destination domain.
本发明实施例提供的第五通信设备, 包括: 接收器, 用于接收消息;  The fifth communication device provided by the embodiment of the present invention includes: a receiver, configured to receive a message;
发送器, 用于发送消息;  a sender for sending a message;
中央处理器, 分别与所述接收器、 发送器连接, 用于:  a central processing unit, respectively connected to the receiver and the transmitter, for:
在所述接收器收到域搜寻请求消息之后, 如果所述通信设备所在域的域名标识与 所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在信标帧的下 一发送时刻到达之前, 未收到信标帧: 所述信标帧包含所述注册节点的标识, 并且未收 到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点的标识, 控制所述发送器发 送信标帧, 在所述信标帧中包含所述注册节点的标识;  After the receiver receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and is in the beacon The beacon frame is not received before the next transmission time of the frame arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes the registration node Identifying, transmitting, by the sender, a beacon frame, where the identifier of the registered node is included in the beacon frame;
以及, 在所述接收器收到注册请求后, 根据所述注册请求, 为发出所述注册请求 的注册节点执行域接入控制。  And, after the receiver receives the registration request, perform domain access control for the registration node that issues the registration request according to the registration request.
可选地, 所述中央处理器, 在所述接收器收到注册请求后, 用于根据所述注册请 求, 为发出所述注册请求的注册节点执行域接入控制, 具体为:  Optionally, the central processor, after receiving the registration request by the receiver, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
所述中央处理器, 根据所述域节点以及所述域节点所在域的实际情况以及所述域 注册请求, 判断是否允许注册节点加入到所述域节点所在域, 并向控制所述发送器向所 述注册节点反馈判断结果。  The central processor determines, according to the actual situation of the domain node and the domain where the domain node is located, and the domain registration request, whether the registration node is allowed to join the domain of the domain node, and controls the sender to The registration node feeds back the judgment result.
或者, 所述中央处理器, 在所述接收器收到注册请求后, 用于根据所述注册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为:  Or the central processor, after the receiving the registration request, is configured to perform domain access control for the registration node that sends the registration request according to the registration request, specifically:
所述中央处理器控制所述发送器向所述设备所在域的主域控制器转发所述域注册 请求,  The central processor controls the sender to forward the domain registration request to a primary domain controller of a domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 本发明实施例提供的第六通信设备, 包括:  And the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node. The sixth communication device provided by the embodiment of the present invention includes:
接收器, 用于接收消息; 发送器, 用于发送消息; a receiver, configured to receive a message; a sender for sending a message;
中央处理器, 分别与所述接收器、 发送器连接, 用于:  a central processing unit, respectively connected to the receiver and the transmitter, for:
在所述接收器收到所述域搜寻请求消息之后, 如果所述通信设备所在域的域名标 识与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在根据所 述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到信标帧: 所述信标 帧包含所述注册节点的标识, 并且未收到域搜寻响应消息: 所述域搜寻响应消息包含所 述注册节点的标识, 则控制所述发送器反馈所述域搜寻响应消息,  After the receiver receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and The beacon frame is not received before the feedback time of the domain search request message feedback domain search response message arrives: the beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain The search response message includes an identifier of the registration node, and then controls the sender to feed back the domain search response message.
以及, 在所述接收器收到注册请求后, 根据所述注册请求, 为发出所述注册请求 的注册节点执行域接入控制。  And, after the receiver receives the registration request, perform domain access control for the registration node that issues the registration request according to the registration request.
可选地, 所述中央处理器用于在所述接收器收到注册请求后, 用于根据所述注册 请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为:  Optionally, the central processor is configured to perform domain access control for the registration node that sends the registration request according to the registration request, after the receiver receives the registration request, specifically:
在所述接收器收到注册请求后, 所述中央处理器用于控制所述发送器向所述设备 所在域的主域控制器转发所述域注册请求,  After the receiver receives the registration request, the central processor is configured to control the sender to forward the domain registration request to a primary domain controller of a domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 本发明实施例提供的第七通信设备, 包括:  And the primary domain controller is configured to register the request according to the domain, and determine whether the registration node is allowed to join the domain where the domain node is located, and feed back the determination result to the registration node. The seventh communication device provided by the embodiment of the present invention includes:
接收器, 用于接收消息;  a receiver, configured to receive a message;
发送器, 用于发送消息;  a sender for sending a message;
中央处理器, 分别与所述接收器、 发送器连接, 用于:  a central processing unit, respectively connected to the receiver and the transmitter, for:
在所述接收器在所述信标帧的监测周期内未收到信标帧: 所述信标帧包含所述注 册节点的任一目标域的域名标识时, 控制所述发送器广播发送域搜寻请求消息, 在所述 域搜寻请求消息包含所述注册节点的标识;  Not receiving a beacon frame in the monitoring period of the beacon frame: the beacon frame includes a domain name identifier of any target domain of the registration node, and controlling the sender to broadcast a transmission domain Searching for a request message, wherein the domain search request message includes an identifier of the registered node;
以及, 在所述接收器收到域搜寻响应消息, 所述域搜寻响应消息包括: 所述注册 节点的任一目标域的域名标识时, 根据所述域搜寻响应消息, 确定最终目的域, 以及用 于控制所述发送器根据包含所述最终目的域的域名标识的所述域搜寻响应消息发送域 注册请求, 所述域注册请求的目的地址为所述域搜寻响应消息的发送端地址, 在所述域 注册请求中包含加入所述最终目的域的请求。  And receiving, by the receiver, a domain search response message, where the domain search response message includes: when the domain name identifier of any target domain of the registration node is used, determining a final destination domain according to the domain search response message, and And sending, by the sender, the domain registration request according to the domain search response message that includes the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message, The domain registration request includes a request to join the final destination domain.
由上可见, 应用本实施例技术方案, 对任一域中的任一域节点而言, 其在收到注 册节点的域搜寻请求消息后, 如果本域节点所在域为注册节点的目标域之一后, 并且在 收到该域搜寻请求消息之后, 在域搜寻响应消息的反馈时刻到达之前, 未收到包含域搜 寻请求消息中的注册节点的标识的域搜寻响应, 域节点才会广播反馈域搜寻响应消息, 以使注册节点可以根据该搜寻响应消息获知本注册节点附近可以加入的目的域以及向 谁发送域注册请求。 It can be seen from the above that, in the technical solution of the embodiment, after receiving the domain search request message of the registered node, the domain of the domain node is the target domain of the registered node. After that, and after receiving the domain search request message, the domain search is not received before the feedback time of the domain search response message arrives. The domain search response of the identifier of the registered node in the request message, the domain node broadcasts the feedback domain search response message, so that the registration node can learn the destination domain that can be joined near the registered node and the domain to which the registration node can join according to the search response message. Registration request.
相对于现有技术中各注册节点根据信标帧直接向 DM或者 BPR发送域注册请求的 技术方案而言, 本实施例技术方案具有以下优点:  Compared with the technical solution that the registration node sends a domain registration request to the DM or the BPR according to the beacon frame in the prior art, the technical solution of the embodiment has the following advantages:
第一: 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 注册节点无法收到 DM或者 BPR发出的消息。 在该情形下, 只要注册节 点的附近存在其他的域节点, 应用本实施例技术方案, 该注册节点仍然可以加入到该已 有的域中。  First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. The registered node cannot receive the message from the DM or BPR. In this case, as long as there are other domain nodes in the vicinity of the registration node, the registration node can still join the existing domain by applying the technical solution of the embodiment.
而在现有技术中, 各注册节点仅仅主动或者被动根据 DM或者 BPR发出的信标帧 而加域, 一旦注册节点超出 DM或者 BPR的覆盖范围, 即使该注册节点所在位置存在 有信标的域, 该已有域的 DNI与设备内的其中一个目标域的 DNI相同, 但是已有域中 的 DM或者 BPR相对当前设备隐藏 (即 DM或者 BPR发出的信息无法到达该设备), 注册节点无法收到 DM或者 BPR的任何消息(含信标帧), 故注册节点无法加入到已有 域, 此时注册节点以本注册节点目标域的任一 DNI为该新建域的 DNI新建一域, 导致 在一个通信网络内存在两个或者两个以上 DNI相同的域,影响通信网络上各个域的正常 工作。  In the prior art, each registration node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR. Once the registered node exceeds the coverage of the DM or the BPR, even if there is a beaconed domain at the location of the registered node, The DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR in the existing domain is hidden from the current device (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message of the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain. At this time, the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node, resulting in a There are two or more domains of the same DNI in the communication network, which affect the normal operation of each domain on the communication network.
通过上述的比对, 可见采用本实施例技术方案, 有利于提高注册节点加到已有的 域中的几率, 避免由于无法发现已存在的目的域而新建域, 造成域名冲突的情况。  Through the foregoing comparison, it can be seen that the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain.
本实施例提供的域接入控制的方法仍然适用于为任一未加入通信网络内的任何一 个域的通信设备(下称注册节点)建立域连接, 以便该注册节点加入到通信网络的任一 域, 以便该通信设备可以通过该域进行网络通信功能。  The method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
第二: 域节点在收到注册节点发出的域搜寻请求消息后, 在判定本域节点所在域 为该注册节点的目标域后, 并且在反馈域搜寻响应消息之前未收到其他域节点对该域搜 寻请求的域搜寻响应消息, 才反馈域搜寻响应消息, 可以避免网络中各域节点针对一个 域域搜寻请求消息分别作出响应, 有利于避免网络消息冗余, 降低网络信令开销。 附图说明  Second: after receiving the domain search request message sent by the registration node, the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message The domain search response message of the domain search request feedback domain search response message can prevent each domain node in the network from responding to a domain search request message separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实施例或现 有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only Yes Some embodiments of the present invention may also be used to obtain other drawings based on these drawings without departing from the prior art.
图 1为本发明实施例 1提供的一种域接入控制的方法的流程示意图;  1 is a schematic flowchart of a method for domain access control according to Embodiment 1 of the present invention;
图 2为本发明实施例 2提供的一种域接入控制的方法的流程示意图;  2 is a schematic flowchart of a method for domain access control according to Embodiment 2 of the present invention;
图 3为本发明实施例 3提供的一种域接入控制的方法的流程示意图;  3 is a schematic flowchart of a method for domain access control according to Embodiment 3 of the present invention;
图 4为本发明实施例 4提供的一种域接入控制的方法的流程示意图;  4 is a schematic flowchart of a method for domain access control according to Embodiment 4 of the present invention;
图 5为本发明实施例 5提供的一种域接入控制的方法的流程示意图;  FIG. 5 is a schematic flowchart of a method for domain access control according to Embodiment 5 of the present invention;
图 6为本发明实施例 6提供的一种域接入控制的方法的流程示意图;  6 is a schematic flowchart of a method for domain access control according to Embodiment 6 of the present invention;
图 7为本发明实施例 Ί提供的一种域搜寻的方法的流程示意图;  FIG. 7 is a schematic flowchart diagram of a method for domain search provided by an embodiment of the present invention;
图 8为本发明实施例 8提供的一种域搜寻的方法的流程示意图;  FIG. 8 is a schematic flowchart diagram of a method for domain search according to Embodiment 8 of the present invention;
图 9为本发明实施例 9提供的一种通信设备的结构示意图;  9 is a schematic structural diagram of a communication device according to Embodiment 9 of the present invention;
图 10为本发明实施例 10提供的一种通信设备的结构示意图;  FIG. 10 is a schematic structural diagram of a communication device according to Embodiment 10 of the present invention; FIG.
图 11为本发明实施例 11提供的一种通信设备的结构示意图;  FIG. 11 is a schematic structural diagram of a communication device according to Embodiment 11 of the present invention;
图 12为本发明实施例 12提供的一种通信设备的结构示意图;  FIG. 12 is a schematic structural diagram of a communication device according to Embodiment 12 of the present invention;
图 13为本发明实施例 13提供的一种通信设备的结构示意图;  13 is a schematic structural diagram of a communication device according to Embodiment 13 of the present invention;
图 14为本发明实施例 14提供的一种通信设备的结构示意图;  14 is a schematic structural diagram of a communication device according to Embodiment 14 of the present invention;
图 15为本发明实施例 15提供的一种通信设备的结构示意图;  15 is a schematic structural diagram of a communication device according to Embodiment 15 of the present invention;
图 16为本发明实施例 16提供的一种通信设备的结构示意图。 具体实施方式  FIG. 16 is a schematic structural diagram of a communication device according to Embodiment 16 of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完 整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所 有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例 1:  Example 1:
本实施例提供了一种域接入控制的方法, 该方法适用于为任一未加入通信网络内 任何一个域的通信设备(下称注册节点)建立域连接, 以便该注册节点加入到通信网络 的任一域, 从而使得该通信设备可以实现网络通信功能。 其中该通信网络可以但不限于 为信标网络。  The embodiment provides a method for domain access control, and the method is applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any domain in the communication network, so that the registration node joins the communication network. Any of the domains, thereby enabling the communication device to implement network communication functions. Wherein the communication network can be, but is not limited to, a beacon network.
为了说明方便起见, 在本实施例中, 将当前未加入任何通信网络内的任何域的通 信设备记为: 注册节点, 将已加入通信网络内的域的通信设备记为: 域节点。 参见图 1 所示, 本实施例提供的一种已加入域内的任一域节点为未加入域的任一 注册节点建立域接入控制的方法, 其主要包括以下流程步骤: For convenience of description, in the present embodiment, a communication device that is not currently joined to any domain within any communication network is referred to as a registration node, and a communication device that has joined a domain within the communication network is referred to as a domain node. As shown in FIG. 1 , the method for establishing domain access control for any of the registered nodes that are not joined to the domain is provided by any domain node that has been added to the domain, and the method includes the following process steps:
步骤 101 : 域节点接收域搜寻请求消息。 在本实施例中, 任一域搜寻请求消息包含: 发出该域搜寻请求消息的注册节点的 标识、 以及该注册节点对应的各目标域的域名标识。  Step 101: The domain node receives the domain search request message. In this embodiment, any of the domain search request messages includes: an identifier of the registration node that issues the domain search request message, and a domain name identifier of each target domain corresponding to the registration node.
更详细内容可以但不限于参见实施例 2、 3所示。  More details can be, but are not limited to, shown in Examples 2, 3.
步骤 102:如果域节点所在域的 DNI与域搜寻请求消息中包含的任一目标域的 DNI 的相同, 并且, 在域搜寻响应消息的反馈时刻到达之前, 未收到域搜寻响应消息: 域搜 寻响应消息包含注册节点的标识, 则执行步骤 103; 否则可以但不限于执行步骤 106。  Step 102: If the DNI of the domain in which the domain node is located is the same as the DNI of any target domain included in the domain search request message, and before the feedback time of the domain search response message arrives, the domain search response message is not received: Domain search If the response message includes the identifier of the registered node, step 103 is performed; otherwise, step 106 may be performed, but not limited to.
如果:域节点所在域的 DNI与域搜寻请求消息中包含的任一目标域的 DNI的相同, 并且, 在以下反馈时刻之前未收到域搜寻响应消息, 或者收到的域搜寻请求消息未包含 注册节点的标识(即发出该域搜寻请求消息的注册节点的标识), 则均执行步骤 103; 否 贝 |J, 可以按照步骤 106执行(也可以按照现有技术或者其他预定的策略执行其他流程)。  If the DNI of the domain in which the domain node is located is the same as the DNI of any target domain included in the domain search request message, and the domain search response message is not received before the following feedback time, or the received domain search request message is not included. The identifier of the registered node (that is, the identifier of the registered node that issued the domain search request message) is executed in step 103; otherwise, it can be executed according to step 106 (other processes can also be executed according to the prior art or other predetermined policies). ).
上述的反馈时刻具体为: 本域节点根据域搜寻请求消息反馈域搜寻响应消息的反 馈时刻。  The above feedback moments are specifically as follows: The local node returns the feedback moment of the domain search response message according to the domain search request message.
步骤 103: 域节点反馈域搜寻响应消息。  Step 103: The domain node feeds back the domain search response message.
本域节点根据步骤 101 收到的域搜寻请求消息, 以广播的方式反馈域搜寻响应消 息, 以供对端的注册节点以及可以根据该域搜寻响应消息确定本域节点信息以及本域节 点所在域的信息, 而根据域搜寻响应消息向本域节点发出域接入请求。  The domain node feeds back the domain search response message in a broadcast manner according to the domain search request message received in step 101, so that the registration node of the peer end can determine the domain node information and the domain of the domain node according to the domain search response message. Information, and a domain access request is issued to the local node according to the domain search response message.
在该域搜寻响应消息中可以但不限于包含信息: 本域节点地址、 本域节点所在域 的 DNI、本域节点所在域的域同步信息、 以及该域搜寻响应消息对应的域搜寻请求消息 中包含的注册节点的标识。  The search response message in the domain may include, but is not limited to, information including: a domain node address, a DNI of a domain in which the domain node is located, a domain synchronization information of a domain in which the domain node is located, and a domain search request message corresponding to the domain search response message. The ID of the included registration node.
步骤 104: 域节点接收注册节点发出的域注册请求。  Step 104: The domain node receives the domain registration request issued by the registration node.
在域节点发出域搜寻响应消息后, 注册节点可根据域搜寻响应消息向域节点发出 域注册请求, 在域注册请求中包括加入到该域节点所在域的请求。  After the domain node sends a domain search response message, the registration node may issue a domain registration request to the domain node according to the domain search response message, and include a request to join the domain of the domain node in the domain registration request.
具体的流程可以但不限于按照现有技术执行。  The specific process can be, but is not limited to, performed in accordance with the prior art.
步骤 105: 域节点根据域注册请求为注册节点执行域接入控制。  Step 105: The domain node performs domain access control for the registered node according to the domain registration request.
在本实施例中, 可以根据本域节点在所在域中的实际情况, 根据域注册请求为注 册节点执行域接入控制。 比如: 该域节点为 DM, 则域节点根据域节点以及域节点所在域的实际情况以及域 注册请求, 判断是否允许注册节点加入到域节点所在域, 并向注册节点反馈判断结果。 该域节点不为 DM, 域节点向域节点所在域的 DM转发域注册请求, 以供 DM执 行以下: In this embodiment, domain access control may be performed for the registered node according to the domain registration request according to the actual situation of the domain node in the domain. For example: The domain node is a DM, and the domain node is based on the actual situation and domain of the domain node and the domain where the domain node is located. The registration request determines whether the registered node is allowed to join the domain where the domain node is located, and feeds back the judgment result to the registration node. The domain node is not a DM, and the domain node registers the domain with the DM forwarding domain of the domain where the domain node is located, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。  According to the domain registration request, it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
步骤 106: 域节点忽略该域搜寻请求消息。  Step 106: The domain node ignores the domain search request message.
域节点忽略该域搜寻请求消息, 不对域搜寻请求消息做任何进一步处理。  The domain node ignores the domain search request message and does not perform any further processing on the domain search request message.
在本实施例中, 如果在步骤 102 中的判定为否时, 可以按照本步骤执行, 也可以 按照现有技术或者其他预定的策略执行其他流程。  In this embodiment, if the determination in step 102 is no, it may be performed according to this step, and other processes may be performed according to the prior art or other predetermined policies.
但按照本步骤流程处理可以进一步避免网络消息冗余, 降低网络信令开销。  However, according to the process of this step, network message redundancy can be further avoided, and network signaling overhead is reduced.
由上可见, 采用本实施例技术方案, 对任一域中的任一域节点而言, 其在收到注 册节点的域搜寻请求消息后, 如果本域节点所在域为注册节点的目标域之一后, 并且在 收到该域搜寻请求消息之后, 在域搜寻响应消息的反馈时刻到达之前, 未收到包含域搜 寻请求消息中的注册节点的标识的域搜寻响应, 域节点才会广播反馈域搜寻响应消息, 以使注册节点可以根据该搜寻响应消息获知本注册节点附近可以加入的目的域以及向 谁发送域注册请求。  It can be seen from the above that, in the technical solution of the embodiment, after receiving the domain search request message of the registered node, the domain of the domain node is the target domain of the registered node. After that, after receiving the domain search request message, before the arrival of the feedback time of the domain search response message, the domain search response including the identifier of the registered node in the domain search request message is not received, and the domain node broadcasts the feedback. The domain searches for a response message, so that the registration node can learn, according to the search response message, the destination domain that can be joined in the vicinity of the registered node and to whom the domain registration request is sent.
相对于现有技术中各注册节点根据信标帧直接向 DM或者 BPR发送域注册请求的 技术方案而言, 本实施例技术方案具有以下优点:  Compared with the technical solution that the registration node sends a domain registration request to the DM or the BPR according to the beacon frame in the prior art, the technical solution of the embodiment has the following advantages:
第一: 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 注册节点无法收到 DM或者 BPR发出的消息。 在该情形下, 只要注册节 点的附近存在其他的域节点, 应用本实施例技术方案, 该注册节点仍然可以加入到该已 有的域中。  First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. The registered node cannot receive the message from the DM or BPR. In this case, as long as there are other domain nodes in the vicinity of the registration node, the registration node can still join the existing domain by applying the technical solution of the embodiment.
而在现有技术中, 各注册节点仅仅主动或者被动根据 DM或者 BPR发出的信标帧 而加域, 一旦注册节点超出 DM或者 BPR的覆盖范围, 即使该注册节点所在位置存在 有信标的域, 该已有域的 DNI与设备内的其中一个目标域的 DNI相同, 但是已有域中 的 DM或者 BPR相对当前设备隐藏 (即 DM或者 BPR发出的信息无法到达该设备), 注册节点无法收到 DM或者 BPR的任何消息(含信标帧), 故注册节点无法加入到已有 域, 此时注册节点以本注册节点目标域的任一 DNI为该新建域的 DNI新建一域, 导致 在一个通信网络内存在两个或者两个以上 DNI相同的域,影响通信网络上各个域的正常 工作。 In the prior art, each registration node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR. Once the registered node exceeds the coverage of the DM or the BPR, even if there is a beaconed domain at the location of the registered node, The DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR in the existing domain is hidden from the current device (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message of the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain. At this time, the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node, resulting in a There are two or more DNI domains in the communication network, which affect the normality of each domain on the communication network. jobs.
通过上述的比对, 可见采用本实施例技术方案, 有利于提高注册节点加到已有的 域中的几率, 避免由于无法发现已存在的目的域而新建域, 造成域名冲突的情况。  Through the foregoing comparison, it can be seen that the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain.
本实施例提供的域接入控制的方法仍然适用于为任一未加入通信网络内的任何一 个域的通信设备(下称注册节点)建立域连接, 以便该注册节点加入到通信网络的任一 域, 以便该通信设备可以通过该域进行网络通信功能。  The method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
第二: 域节点在收到注册节点发出的域搜寻请求消息后, 在判定本域节点所在域 为该注册节点的目标域后, 并且在反馈域搜寻响应消息之前未收到其他域节点对该域搜 寻请求的域搜寻响应消息, 才反馈域搜寻响应消息, 可以避免网络中各域节点针对一个 域域搜寻请求消息分别作出响应, 有利于避免网络消息冗余, 降低网络信令开销。  Second: after receiving the domain search request message sent by the registration node, the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message The domain search response message of the domain search request feedback domain search response message can prevent each domain node in the network from responding to a domain search request message separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
实施例 2:  Example 2:
本实施例提供的域接入控制的方法仍然适用于为任一未加入通信网络内的任何一 个域的通信设备(下称注册节点)建立域连接, 以便该注册节点加入到通信网络的任一 域, 以便该通信设备可以通过该域进行网络通信功能。  The method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
本实施例对实施例 1的具体实施做进一步详细的说明。  This embodiment further describes the specific implementation of Embodiment 1.
参见图 2所示, 本实施例提供的一种已加入域内的任一域节点为未加入域的任一 注册节点建立域接入控制的方法, 其主要包括以下流程步骤:  As shown in FIG. 2, the method for establishing domain access control for any of the registered nodes that are not joined to the domain is provided by any domain node that has been added to the domain, and the method includes the following process steps:
步骤 201 : 域节点接收域搜寻请求消息。  Step 201: The domain node receives the domain search request message.
注册节点在当前需要加入域时, 该注册节点首先确定当前可以加入的目的域, 并 且向谁发送该加入目的域的域注册请求 (即发送域注册请求的路径)。  When the registration node currently needs to join the domain, the registration node first determines the destination domain that can be currently joined, and sends to whom the domain registration request for joining the destination domain (ie, the path for sending the domain registration request).
作为实施例的具体实施之一, 该注册节点可以在开机上电时, 主动发送该域搜寻 请求消息; 也可以在在开机上电后, 注册节点在进行信标帧的监测, 根据信标帧无法成 功加入域, 或者未侦听到信标帧之后, 发送该与搜寻请求消息。  As one of the specific implementations of the embodiment, the registration node may actively send the domain search request message when the device is powered on; or after the power-on and power-on, the registration node performs monitoring of the beacon frame according to the beacon frame. The search request message is sent after the domain cannot be successfully joined or after the beacon frame is not heard.
在本实施例中, 注册节点为了确定当前可以加入的目的域, 并且向谁发送该加入 目的域的域注册请求, 注册节点对外以广播的方式发送域搜寻请求消息。 在该域搜寻请 求消息中包含有: 该注册节点的标识、 以及注册节点各目标域的 DNI。  In this embodiment, in order to determine the destination domain that can be currently joined, and to whom the domain registration request of the join destination domain is sent, the registration node sends a domain search request message in a broadcast manner. The domain search request message includes: an identifier of the registered node, and a DNI of each target domain of the registration node.
其中, 该注册节点的标识可以但不限于为: 该注册节点出厂时, 由厂家在注册节 点 (设备) 内预设的、 用于定义设备身份的设备名称, 该注册节点的标识可以但不限于 为 EUI-64 ( 64-bit Extended Unique Identifier, 64比特扩展的唯一标识) 地址。  The identifier of the registration node may be, but is not limited to, a device name that is preset by the manufacturer in the registration node (device) and used to define the identity of the device. The identifier of the registration node may be, but is not limited to, The address is EUI-64 (64-bit Extended Unique Identifier, unique identifier for 64-bit extension).
注册节点对应的各目标域为: 预定义在该注册节点上, 本注册节点可以加入的各 个域。 任一注册节点被预定义的目标域可以为一个也可以为多个。 各目标域分别通过各 目标域的 DNI唯一标识。 Each target domain corresponding to the registration node is: Predefined on the registration node, each of the registration nodes can join Domains. The target domain of any registered node may be one or more. Each target domain is uniquely identified by the DNI of each target domain.
注册节点对应的各目标域的 DNI可以但不限于为: 由用户通过该注册节点对应的 用户界面 (User lnterfcae, 简称 UI)在该设备内, 预设的本注册节点对应的各目标域的 其中, 上述注册节点对外发出域搜寻请求消息的发送具体为采用广播的方式发送。 在任何一个注册节点发出域搜寻请求消息后, 该注册节点可通信范围内、 当前已 经加入通信网络任一域的任一域节点均可能收到该域搜寻请求消息。  The DNI of each target domain corresponding to the registration node may be, but is not limited to, a user interface (User lnterfcae, referred to as UI) corresponding to the registration node in the device, and a preset target domain corresponding to the registration node. The sending of the domain search request message by the registration node is specifically performed by using a broadcast manner. After any of the registration nodes issues a domain search request message, any domain node within the communication domain that the registration node can communicate with any domain that has joined the communication network may receive the domain search request message.
对于收到域搜寻请求消息的任一域节点而言, 根据该域节点在本域节点所在域的 功能而言, 该域节点可以为: 域节点所在域中的 DM或者 BPR、 或者普通域节点(即域 节点所在域中除 DM以及 BPR外的其他任一域节点)。  For any domain node that receives the domain search request message, according to the function of the domain node in the domain where the domain node is located, the domain node may be: DM or BPR in the domain where the domain node is located, or a common domain node. (that is, any domain node other than DM and BPR in the domain where the domain node is located).
以下以收到域搜寻请求消息的任一域节点的工作流程为例, 对本实施例进行详细 的说明。  The following is a detailed description of the workflow of any domain node that receives the domain search request message.
步骤 202: 域节点判定: 域搜寻请求消息中包含的任一目标域的 DNI的是否与该 域节点所在域的 DNI是否相同。  Step 202: The domain node determines whether the DNI of any target domain included in the domain search request message is the same as the DNI of the domain where the domain node is located.
域节点在收到域搜寻请求消息后, 比较本域节点所在域的 DNI与当前收到的域搜 寻请求消息包含的任一目标域的 DNI的是否相同。  After receiving the domain search request message, the domain node compares whether the DNI of the domain in which the domain node is located is the same as the DNI of any target domain included in the currently received domain search request message.
步骤 203: 如果相同, 则执行步骤 204; 否则执行步骤 111。  Step 203: If they are the same, go to step 204; otherwise, go to step 111.
如果本域节点所在域的 DNI 与当前收到的域搜寻请求消息包含的一个目标域的 DNI相同, 则执行步骤 204; 如果本域节点所在域的 DNI与当前收到的域搜寻请求消息 包含的所有目标域的 DNI均不相同,则判定:本域节点所在域不为该注册节点的目的域, 跳转执行步骤 111。  If the DNI of the domain in which the domain node is located is the same as the DNI of the target domain included in the currently received domain search request message, step 204 is performed; if the DNI of the domain where the domain node is located and the currently received domain search request message are included If the DNIs of all the target domains are different, it is determined that the domain of the domain node is not the destination domain of the registered node, and the process proceeds to step 111.
步骤 204: 域节点进一步确定, 在收到步骤 201的域搜寻请求消息之后, 本域节点 根据域搜寻请求消息广播域搜寻响应消息的反馈时刻到达之前, 是否已收到域搜寻响应 消息, 并且该域搜寻响应消息中的注册节点的标识与步骤 201中收到的域搜寻请求消息 中包含的注册节点的标识相同。  Step 204: The domain node further determines, after receiving the domain search request message of step 201, whether the local domain node receives the domain search response message according to the domain search request message before the feedback time of the domain search response message arrives, and The identifier of the registered node in the domain search response message is the same as the identifier of the registered node included in the domain search request message received in step 201.
在确定域节点所在域为该注册节点的目的域之一的基础上, 在该域节点执行步骤 206之前, 域节点进一步确定, 在本域节点根据域搜寻请求消息广播域搜寻响应消息的 反馈时刻到达, 本域节点是否有收到具有以下特征的域搜寻响应消息:  After determining that the domain where the domain node is located is one of the destination domains of the registration node, before the domain node performs step 206, the domain node further determines, at the local node, the feedback moment of the domain search response message according to the domain search request message. Upon arrival, the domain node receives a domain search response message with the following characteristics:
在该域搜寻响应消息中包含的注册节点的标识与步骤 201 中收到的域搜寻请求消 息中包含的注册节点的标识相同。 The identifier of the registered node included in the domain search response message and the domain search request received in step 201 The registered nodes included in the message have the same identifier.
如果收到具有上述特征的域搜寻响应消息, 则跳转至步骤 111, 忽略域搜寻请求消 息, 该忽略包括: 不根据该域搜寻请求消息反馈域搜寻响应消息;  If the domain search response message with the above characteristics is received, the process proceeds to step 111, and the domain search request message is ignored. The ignore includes: not receiving the domain search response message according to the domain search request message;
如果未收到具有上述特征的域搜寻响应消息, 则确定其他域节点 (可以为 DM或 BPR或者普通节点) 未针对步骤 201中的域搜寻请求消息反馈域搜寻响应消息。  If the domain search response message having the above characteristics is not received, it is determined that the other domain node (which may be a DM or BPR or a normal node) does not feed back the domain search response message for the domain search request message in step 201.
步骤 205: 如果未收到具有上述的域搜寻响应消息, 则进一步执行步骤 206; 如果 已收到具有上述的域搜寻响应消息, 跳转执行步骤 111。  Step 205: If the domain search response message having the foregoing is not received, step 206 is further performed; if the domain search response message having the foregoing is received, the process proceeds to step 111.
步骤 206: 域节点广播反馈域搜寻响应消息。  Step 206: The domain node broadcasts a feedback domain search response message.
本域节点根据当前收到的域搜寻请求消息, 以广播的方式发出域搜寻响应消息, 以供注册节点以及本域或者其他域的任何一域节点均可收到该域搜寻响应消息。  The domain node sends a domain search response message in a broadcast manner according to the currently received domain search request message, so that the domain node search response message can be received by the registration node and any domain node of the local domain or other domains.
在该域搜寻响应消息中包含信息: 本域节点地址、 本域节点所在域的 DNI、 本域 节点所在域的域同步信息、 以及该域搜寻响应消息对应的域搜寻请求消息中包含的注册 节点的标识。  The domain search response message includes information: the local node address, the DNI of the domain where the domain node is located, the domain synchronization information of the domain where the domain node is located, and the registration node included in the domain search request message corresponding to the domain search response message. Logo.
设当前发出域搜寻响应消息的域节点为域节点 a, 该域节点 a当前所在域为域 A, 该域搜寻响应消息对应的注册节点为注册节点 b。 贝 IJ :  The domain node that sends the domain search response message is the domain node a, and the current domain of the domain node a is domain A, and the registration node corresponding to the domain search response message is the registration node b. IJ:
注册节点 b在收到该域搜寻响应消息后, 注册节点 b将域搜寻响应消息中的域 A 的 DNI确定为注册节点 b当前实际可加入的目的域的 DNI, 并且注册节点 b根据"域的 同步信息"与该域 A同步, 注册节点 b根据域节点 a地址向域节点 a发出域注册请求, 在该域注册请求中包含请求加入域 A的请求。  After receiving the domain search response message, the registration node b determines the DNI of the domain A in the domain search response message as the DNI of the destination domain to which the registration node b can actually join, and registers the node b according to the domain. The synchronization information "synchronizes with the domain A, and the registration node b issues a domain registration request to the domain node a according to the domain node a address, and the domain registration request includes a request to join the domain A.
除域节点 a以及注册节点 b外的其他任何收到该域搜寻响应消息的一节点,则该节 点可根据该域搜寻响应消息中包含的注册节点 b的标识,确定当前已经有其他域节点对 注册节点 b的域搜寻请求消息做出了响应,本域节点可以忽略注册节点 b发出的域搜寻 请求消息, 无需针对注册节点 b发出的域搜寻请求消息反馈任何响应。  In addition to the domain node a and the registration node b, any node that receives the domain search response message, the node may determine that there are other domain node pairs according to the identifier of the registration node b included in the domain search response message. The domain search request message of the registration node b responds, and the domain node can ignore the domain search request message sent by the registration node b, and does not need to feed back any response to the domain search request message sent by the registration node b.
步骤 207: 域节点接收注册节点发出的域注册请求。  Step 207: The domain node receives the domain registration request issued by the registration node.
在域节点发出域搜寻响应消息后, 在注册节点侧, 注册节点根据域搜寻响应消息 确定本注册节点当前可加入的目的域, 以及可加入的目的域对应的路径信息。  After the domain node sends a domain search response message, on the registration node side, the registration node determines, according to the domain search response message, the destination domain that the registered node can join, and the path information corresponding to the destination domain that can be joined.
注册节点可以根据域寻响应消息中的域同步信息与该域同步, 并且以该域寻响应 消息的发送端地址(即发送端的域节点地址)作为发出的域注册请求的目的地址, 向域 节点发送域注册请求, 在该域注册请求中包含请求加入该域节点所在域的请求信息。  The registration node may synchronize with the domain according to the domain synchronization information in the domain lookup response message, and use the sender address of the domain lookup response message (ie, the domain node address of the sender) as the destination address of the issued domain registration request, to the domain node. A domain registration request is sent, and the domain registration request includes request information for requesting to join the domain where the domain node is located.
具体地, 注册节点可以但不限于直接根据最早收到的域搜寻响应消息, 将该最早 收到的域搜寻响应消息, 记为 ND_Probe.rspo, 设 ND_Probe.rspo消息由域节点 a发出, 域节点 a所在域为域 A, 注册节点根据 ND_Pr0be.rSp(T 息中的域同步信息同步到域 A 中, 并向域节点 a发送域注册请求, 在该域注册请求中包含请求加入域 A的请求信息。 Specifically, the registration node may be, but is not limited to, directly based on the earliest received domain search response message, and the earliest The received domain search response message is recorded as ND_Probe.rspo, the ND_Probe.rspo message is sent by the domain node a, the domain node a is in the domain A, and the registered node is based on ND_Pr 0 b e .r S p (in the T The domain synchronization information is synchronized to the domain A, and a domain registration request is sent to the domain node a, and the request information for requesting to join the domain A is included in the domain registration request.
另外, 在该注册节点还可以但不限于采用以下的技术方案:  In addition, the registration node may also be, but is not limited to, adopting the following technical solutions:
注册节点在收到发出域搜寻请求后, 在预定的监测时间间隔 T'内监测收到的域搜 寻响应消息, 设在监测时间间隔 T'内, 注册节点接到 N个域搜寻响应消息, 分别为: ND_Probe.rsPl, 该域搜寻响应消息由域节点 a发出, 域节点 a所在域为域 A; ND_Probe.rsp2, 该域搜寻响应消息由域节点 b发出, 域节点 b所在域为域 A; ND_Probe.rsp3, 该域搜寻响应消息由域节点 c发出, 域节点 c所在域为域 C; ND_Probe.rsPi, 该域搜寻响应消息由域节点 i发出, 域节点 i所在域为域 I; After receiving the domain search request, the registration node monitors the received domain search response message within the predetermined monitoring interval T', and is set in the monitoring time interval T', and the registration node receives N domain search response messages, respectively For: ND_Probe.rs Pl , the domain search response message is sent by the domain node a, the domain node a is in the domain A; ND_Probe.rsp 2 , the domain search response message is sent by the domain node b, and the domain node b is in the domain A; ND_Probe.rsp 3 , the domain search response message is sent by the domain node c, the domain node c is in the domain C; ND_Probe.rs Pi , the domain search response message is sent by the domain node i, and the domain node i is in the domain I;
ND_Probe.rspN, 该域搜寻响应消息由域节点 n发出, 域节点 n所在域为域 N, 注 册节点在监测时间间隔 T'届满后,根据收到的所有域搜寻响应消息,确定域 A、C、I ...... N 均为本注册节点可加入的目的域、可加入的目的域的连接域节点(域节点 a、b、c、i ...... n 注册节点根据预定的策略, 从多个可加入的目的域 、 C、 I ...... N中选取其中之一作为 本注册节点最终要加入的目的域 (记为最终目的域), 注册节点根据该最终目的域对应 的域搜寻响应消息中的域同步信息同步到该最终目的域中, 并向最终目的域对应的域节 点发送该域注册请求, 在该域注册请求中包含请求加入该域节点所在域的请求信息。 ND_Probe.rsp N , the domain search response message is sent by the domain node n, and the domain node n is in the domain N. After the monitoring time interval T′ expires, the registration node determines the domain A according to all the domain search response messages received. C, I ...... N are the destination domains to which the registration node can join, and the connection domain nodes of the destination domain that can be joined (domain nodes a, b, c, i ... n) a predetermined policy, selecting one of a plurality of joinable destination domains, C, I, ... N as the destination domain to be joined by the registration node (denoted as the final destination domain), according to the registration node The domain synchronization information in the domain search response message corresponding to the final destination domain is synchronized to the final destination domain, and the domain registration request is sent to the domain node corresponding to the final destination domain, where the domain registration request includes the request to join the domain node. Request information for the domain.
步骤 208: 如果域节点为: DM, 则按照步骤 209处理, 否则按照步骤 110处理。 如果该域节点为 DM, 则按照步骤 209进行继续处理, 如果该域节点为非 DM的 节点, 则按照步骤 110处理。  Step 208: If the domain node is: DM, then process according to step 209, otherwise process according to step 110. If the domain node is a DM, continue processing according to step 209. If the domain node is a non-DM node, proceed according to step 110.
步骤 209: 域节点根据收到的域注册请求向注册节点发送注册确认消息, 并指示是 否允许将注册节点加入到域节点所在域。  Step 209: The domain node sends a registration confirmation message to the registration node according to the received domain registration request, and indicates whether the registration node is allowed to join the domain of the domain node.
如果该域节点为 DM, 则域节点根据本域节点以及所在域的实际情况,根据所述域 注册请求, 判断是否允许注册节点加入到本域中, 如果允许, 域节点将注册确认消息转 发至注册节点, 并且还可以在可以注册确认消息中包含为注册节点分配的节点地址等信 息; 如果不允许, 域节点将拒绝注册的注册反馈消息反馈至注册节点, 以便注册节点根 据预定的注册策略, 在下一注册时刻重新提交注册请求, 或者在多次提交注册请求后进 行其他目标域的注册请求处理, 或者新建域。  If the domain node is a DM, the domain node determines whether to allow the registered node to join the domain according to the domain registration request according to the actual situation of the domain node and the domain in which the domain is located. If allowed, the domain node forwards the registration confirmation message to the domain node. Registering a node, and may also include information such as a node address assigned to the registration node in the registration confirmation message; if not, the domain node feeds back the registration feedback message rejecting the registration to the registration node, so that the registration node according to the predetermined registration policy, Re-submit the registration request at the next registration time, or perform registration request processing of other target domains after multiple registration requests, or create a new domain.
本步骤可以但不限于按照现有技术处理。 步骤 110:域节点向域节点所在域中的 DM转发域注册请求, 以便 DM根据所述域 注册请求, 判断是否允许注册节点加入到本域中。 This step can be, but is not limited to, being processed in accordance with the prior art. Step 110: The domain node forwards the domain registration request to the DM in the domain where the domain node is located, so that the DM determines, according to the domain registration request, whether the registration node is allowed to join the domain.
如果该域节点为非 DM 的域节点, 则域节点在收到该域注册请求后, 将该域注册 请求转发给本域中的 DM (当域节点与 DM直接连接时), 或者通过本域中的其他中继 节点转发给本域中的 DM (当域节点通过其他中继节点与 DM连接时), 以便 DM根据 本 DM以及所在域的实际情况, 根据所述域注册请求, 判断是否允许注册节点加入到本 域 A中, 如果允许, DM通过上述的域节点作为信息转发中继, 将注册确认消息转发至 注册节点, 并且还可以在可以注册确认消息中包含为注册节点分配的节点地址等信息; 如果不允许, DM通过上述的域节点作为信息转发中继, 将拒绝注册的注册反馈消息反 馈至注册节点,以便注册节点根据预定的注册策略,在下一注册时刻重新提交注册请求, 或者在多次提交注册请求后进行其他目标域的注册请求处理, 或者新建域。。 普通节点 在转发了这个注册请求后, 还要将 DM处理发来后的注册确认消息再转发至注册节点。  If the domain node is a non-DM domain node, after receiving the domain registration request, the domain node forwards the domain registration request to the DM in the domain (when the domain node is directly connected to the DM), or through the domain. The other relay nodes in the network are forwarded to the DM in the local domain (when the domain node is connected to the DM through other relay nodes), so that the DM determines whether to allow the DM according to the actual situation of the domain and the domain, according to the domain registration request. The registration node joins the domain A. If allowed, the DM forwards the registration confirmation message to the registration node through the above-mentioned domain node as the information forwarding relay, and may also include the node address assigned to the registration node in the registration confirmation message. If the information is not allowed, the DM forwards the registration feedback message rejecting the registration to the registration node through the above-mentioned domain node, so that the registration node resubmits the registration request at the next registration time according to the predetermined registration policy, or Perform registration request processing for other target domains after submitting the registration request multiple times, or create a new domain. . After forwarding the registration request, the normal node also forwards the registration confirmation message sent by the DM to the registration node.
步骤 211 :域节点忽略该域搜寻请求消息,不对域搜寻请求消息做任何进一步处理。 在域节点接收域搜寻请求消息后, 出现以下两种情形的任一, 该域节点均忽略当 前域搜寻搜寻请求消息, 不会对外反馈域搜寻响应消息:  Step 211: The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. After the domain node receives the domain search request message, either of the following two situations occurs. The domain node ignores the current domain search search request message and does not feedback the domain search response message:
情形 1、 如果收到域搜寻请求消息中包含的该注册节点的所有目标域的 DNI与本 域节点所在域的 DNI均不相同;  Scenario 1. If the DNI of all the target domains of the registered node included in the received domain search request message is different from the DNI of the domain where the domain node is located;
情形 2、 域搜寻请求消息中包含的该注册节点的其中一个目标域的 DNI与本域节 点所在域的 DNI相同,但是,本域节点在收到该域搜寻请求消息后的本域节点根据该域 搜寻请求消息广播域搜寻响应消息的反馈时刻到达之前有收到包含与该域搜寻请求消 息中的注册节点的标识的域搜寻响应消息的。  Case 2: The DNI of one of the target domains included in the domain search request message is the same as the DNI of the domain in which the domain node is located, but the domain node after receiving the domain search request message according to the domain node according to the Domain Search Request Message The broadcast time of the broadcast domain search response message arrives before the arrival of the domain search response message containing the identity of the registered node in the domain search request message.
由上可见, 采用本实施例技术方案, 对任一域中的任一域节点而言, 其在收到注 册节点的域搜寻请求消息后, 如果本域节点所在域为注册节点的目标域之一后, 并且在 收到该域搜寻请求消息之后,本域节点根据域搜寻请求消息广播域搜寻响应消息的反馈 时刻到达之前, 未收到域搜寻响应消息或者收到的域搜寻响应消息内的注册节点的标识 与域搜寻请求消息中的注册节点的标识不同, 域节点才会广播反馈域搜寻响应消息, 以 使注册节点可以根据该搜寻响应消息获知本注册节点附近可以加入的目的域以及向谁 发送域注册请求。  It can be seen from the above that, in the technical solution of the embodiment, after receiving the domain search request message of the registered node, the domain of the domain node is the target domain of the registered node. After receiving the domain search request message, the domain node does not receive the domain search response message or the received domain search response message before the feedback time of the domain search response message is broadcasted according to the domain search request message. The identifier of the registered node is different from the identifier of the registered node in the domain search request message, and the domain node broadcasts the feedback domain search response message, so that the registration node can learn the destination domain and the destination that can be joined near the registered node according to the search response message. Who sends the domain registration request.
相对于现有技术中各注册节点根据信标帧直接向 DM或者 BPR发送域注册请求的 技术方案而言, 本实施例技术方案具有以下优点: 第一: 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 注册节点无法收到 DM或者 BPR发出的消息。 Compared with the technical solution that each registration node sends a domain registration request to the DM or the BPR according to the beacon frame, the technical solution of the embodiment has the following advantages: First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. The registered node cannot receive the message from the DM or BPR.
在该情形下, 只要注册节点的附近存在其他的域节点, 应用本实施例技术方案, 该注册节点仍然可以加入到该已有的域中。  In this case, as long as there are other domain nodes in the vicinity of the registration node, the registration node can still join the existing domain by applying the technical solution of the embodiment.
而在现有技术中, 各注册节点仅仅主动或者被动根据 DM或者 BPR发出的信标帧 而加域, 一旦注册节点超出 DM或者 BPR的覆盖范围, 即使该注册节点所在位置存在 有信标的域, 该已有域的 DNI与设备内的其中一个目标域的 DNI相同, 但是已有域中 的 DM或者 BPR相对当前设备隐藏 (即 DM或者 BPR发出的信息无法到达该设备), 注册节点无法收到 DM或者 BPR的任何消息(含信标帧), 故注册节点无法加入到已有 域, 此时注册节点以本注册节点目标域的任一 DNI为该新建域的 DNI新建一域, 导致 在一个通信网络内存在两个或者两个以上 DNI相同的域,影响通信网络上各个域的正常 工作。  In the prior art, each registration node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR. Once the registered node exceeds the coverage of the DM or the BPR, even if there is a beaconed domain at the location of the registered node, The DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR in the existing domain is hidden from the current device (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message of the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain. At this time, the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node, resulting in a There are two or more domains of the same DNI in the communication network, which affect the normal operation of each domain on the communication network.
通过上述的比对, 可见采用本实施例技术方案, 有利于提高注册节点加到已有的 域中的几率, 避免由于无法发现已存在的目的域而新建域, 造成域名冲突的情况。  Through the foregoing comparison, it can be seen that the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain.
第二: 对于任何一域的任一域节点而言, 该域节点在收到注册节点发出的域搜寻 请求消息后, 在判定本域节点所在域不为该注册节点的目标域后, 域节点不对该域搜寻 请求消息的响应。  Second: For any domain node of any domain, after receiving the domain search request message sent by the registration node, the domain node determines that the domain of the domain node is not the target domain of the registered node, and the domain node No response to the domain search request message.
并且该域节点根据域搜寻请求消息后确定所在域为该注册节点的目标域之一的情 况下, 域节点在本域节点反馈域搜寻响应消息的反馈时刻之前, 域节点监测以下: 是否 已收到其他域节点对该域搜寻请求的域搜寻响应消息, 一旦已收到, 则域节点忽略域搜 寻请求消息, 不会反馈域搜寻响应消息。 故采用该技术方案有利于减少通信网络中各节 点对同一个注册节点的域注册请求消息的响应,避免网络消息冗余,降低网络信令开销。  And the domain node determines, according to the domain search request message, that the domain is one of the target domains of the registration node, before the domain node feedbacks the domain search response message of the local node, the domain node monitors the following: The domain search response message to the other domain node for the domain search request, once received, the domain node ignores the domain search request message and does not feedback the domain search response message. Therefore, adopting the technical solution is beneficial to reducing the response of each node in the communication network to the domain registration request message of the same registered node, avoiding network message redundancy and reducing network signaling overhead.
需要说明的是, 在实施例 1-12中, 反馈域搜寻响应消息的域节点均为具备中继转 发功能的设备。  It should be noted that, in the embodiment 1-12, the domain nodes of the feedback domain search response message are all devices having the relay forwarding function.
如果收到注册节点的域搜寻请求消息的域节点不具备中继转发功能, 则该域节点 由于不具备中继转发功能, 即使其向注册节点反馈域搜寻响应消息, 但是其不具备将域 注册请求转发给 DM或 BPR的功能, 无法为注册节点转发注册请求消息, 故不具备中 继转发功能域节点在收到域搜寻请求消息后, 直接忽略该域搜寻请求消息。  If the domain node that receives the domain search request message of the registered node does not have the relay forwarding function, the domain node does not have the relay forwarding function, even if it feeds back the domain search response message to the registration node, but it does not have the domain registration. The function of requesting forwarding to the DM or BPR cannot forward the registration request message to the registration node, so the node that does not have the relay forwarding domain directly ignores the domain search request message after receiving the domain search request message.
实施例 3: 本实施例提供的域接入控制的方法仍然适用于为任一未加入通信网络内的任何一 个域的通信设备(下称注册节点)建立域连接, 以便该注册节点加入到通信网络的任一 域, 以便该通信设备可以通过该域进行网络通信功能。 Example 3: The method for domain access control provided in this embodiment is still applicable to establishing a domain connection for any communication device (hereinafter referred to as a registration node) that does not join any one of the communication networks, so that the registration node joins any of the communication networks. Domain, so that the communication device can perform network communication functions through the domain.
参见图 3 所示, 本实施例提供的一种已加入域内的任一域节点为未加入域的任一 注册节点建立域接入控制的方法主要包括以下:  As shown in FIG. 3, the method for establishing domain access control for any registered node that has not joined the domain by any domain node in the domain that is added to the domain includes the following:
步骤 301 : 域节点接收域搜寻请求消息。  Step 301: The domain node receives the domain search request message.
同理于实施例 1、 2中的相应步骤。  The same steps as in the examples 1 and 2 are the same.
步骤 302: 域节点判定: 域搜寻请求消息中包含的任一目标域的 DNI的是否与该 域节点所在域的 DNI是否相同。  Step 302: The domain node determines whether the DNI of any target domain included in the domain search request message is the same as the DNI of the domain where the domain node is located.
同理于实施例 1、 2中的相应步骤。  The same steps as in the examples 1 and 2 are the same.
步骤 303: 如果相同, 则执行步骤 304; 否则执行步骤 311。  Step 303: If they are the same, go to step 304; otherwise, go to step 311.
步骤 304: 计算确定一随机时间间隔。  Step 304: Calculate to determine a random time interval.
域节点确定当前收到的域搜寻请求消息中包含的注册节点的一目标域的 DNI与本 域节点所在域的 DNI相同后,则执行本步骤:该域节点运行预存的随机值运算算法程序, 一时间间隔的随机值, 将其记为随机时间间隔。 使得该随机时间间隔大于一预定时间间 隔的任一时间间隔。  After the domain node determines that the DNI of a target domain of the registered node included in the currently received domain search request message is the same as the DNI of the domain of the domain node, the step is performed: the domain node runs a pre-stored random value operation algorithm program. A random value of a time interval, which is recorded as a random time interval. The random time interval is made greater than any time interval of a predetermined time interval.
此时, 对于同一时刻的各个域节点而言, 各个域节点分别得到的随机时间间隔不 一样, 而各域节点在收到域搜寻请求消息后均分别等待本域节点对应的随机时间间隔, 如果在随机时间间隔届满后仍然未收到包含发送当前域搜寻请求消息的注册节点的标 识的域搜寻响应消息, 域节点才广播域搜寻响应消息, 故各域节点的域搜寻响应消息的 预定反馈时刻也相对不一样,任一域节点在本域节点的域搜寻响应消息的反馈时刻到达 时, 收到其他域节点广播的域搜寻响应消息几率大大提高; 对于同一域节点在不同时刻 而言, 各时刻得到的随机时间间隔不一样。  At this time, for each domain node at the same time, the random time interval obtained by each domain node is different, and each domain node waits for a random time interval corresponding to the domain node after receiving the domain search request message, if After the random time interval expires, the domain search response message containing the identifier of the registered node that sends the current domain search request message is still not received, and the domain node broadcasts the domain search response message, so the predetermined feedback moment of the domain search response message of each domain node It is also relatively different. When any domain node arrives at the feedback time of the domain search response message of the local node, the probability of receiving the domain search response message broadcasted by other domain nodes is greatly improved; for the same domain node at different times, each The random time interval obtained at any time is different.
设本实施例计算确定的随机时间间隔为 T, 该 Τ可以采用以下的函数式表示: T=T0+Random (Boffl , Boff2),  It is assumed that the random time interval determined by the embodiment is T, and the Τ can be expressed by the following functional formula: T=T0+Random (Boffl, Boff2),
其中 TO为预定的额定时间间隔,  Where TO is the predetermined rated time interval,
Random (Boffl , Boff2)为时长 Boffl到时长 Boff2之间的随机任一的函数表达式。 在本实施例, 将任一域中的各域节点对应的预定时间间隔 T0设置为相同; 可以将 通信网络中各域的预定时间间隔 T0设置为相同, 也可以设置为不同。  Random (Boffl, Boff2) is a function expression of any random between Boffl and duration Boff2. In this embodiment, the predetermined time interval T0 corresponding to each domain node in any domain is set to be the same; the predetermined time interval T0 of each domain in the communication network may be set to be the same or may be set to be different.
另外, 为了进一步使得注册节点根据域中的 DM的响应而直接向 DM发送注册请 求消息, 在本实施例中, 可以对于各域而言, 域中的 DM在收到所述域搜寻请求消息并 判断消息中目标 DNI与本域的 DNI相同后, 直接反馈域搜寻响应消息, 而除 DM外的 其他域节点的在执行步骤 303后, 需等待额定时间间隔 TO后再继续等待一段时间, 这 段时间从 Boffl与 Boff2之间随机选择。 或者, 还可以预定 DM反馈域搜寻响应消息的 时间固定为 T0, 而其他非 DM域节点反馈域搜寻响应消息的时间固定为 T=T0+RandOm (Boffl , Boff2), 具体并不限于此。 In addition, in order to further enable the registration node to directly send a registration to the DM according to the response of the DM in the domain, In the present embodiment, for each domain, the DM in the domain directly receives the domain search response message after receiving the domain search request message and determining that the target DNI in the message is the same as the DNI of the domain. After performing step 303, the other domain nodes except the DM wait for a predetermined time interval TO and then wait for a period of time, which is randomly selected between Boffl and Boff2. Alternatively, the time of the DM feedback domain search response message may be fixed to T0, and the time of the other non-DM domain node feedback domain search response message is fixed to T=T0+Rand O m (Boffl, Boff2), which is not limited thereto. .
步骤 3051 : 随机时间间隔计时器计时开始。  Step 3051: The random time interval timer starts.
步骤 3052: 监测域节点是否收到包含发送当前域搜寻请求消息的注册节点的标识 的域搜寻响应消息。  Step 3052: The monitoring domain node receives a domain search response message containing the identifier of the registered node that sends the current domain search request message.
该域节点监测本域节点是否收到具有以下特征的域搜寻响应消息: 在该域搜寻响 应消息中的注册节点的标识与步骤 301 收到的域搜寻请求消息中的注册节点的标识相 同。  The domain node monitors whether the domain node receives the domain search response message with the following characteristics: The identity of the registered node in the domain search response message is the same as the identity of the registered node in the domain search request message received in step 301.
步骤 3053: 如果收到上述特征的域搜寻响应消息, 则跳转执行步骤 311 ; 否则, 执行步骤 3054。  Step 3053: If the domain search response message of the above feature is received, the process proceeds to step 311; otherwise, step 3054 is performed.
一旦当前收到具有上述特征的域搜寻响应消息, 则跳转至步骤 311, 忽略该域搜寻 请求消息, 包括不反馈域搜寻响应消息; 如果未收到, 则继续执行步骤 3054, 判定是否 计时到达预定的随机时间间隔 T。  Once the domain search response message with the above characteristics is received, the process proceeds to step 311, and the domain search request message is ignored, including the non-return domain search response message. If not, the process proceeds to step 3054 to determine whether the time is up. A predetermined random time interval T.
步骤 3054: 确定随机时间间隔定时器的计时时长是否到达随机时间间隔, 如果到 达, 则跳转执行步骤 306; 否则, 返回步骤 3052。  Step 3054: Determine whether the time duration of the random time interval timer reaches a random time interval. If it arrives, the process proceeds to step 306; otherwise, returns to step 3052.
判定本域节点上的随机时间间隔定时器的计时时长是否达到随机时间间隔 Τ。 如果未到达, 则返回步骤 3052, 继续监测本域节点是否收到其他域节点发出的与 搜寻响应消息, 且在该域搜寻响应消息中包含的注册节点的标识与当前收到的域搜寻请 求消息中包含的注册节点的标识相同;  Determine whether the time duration of the random time interval timer on the local node reaches a random time interval. If not, return to step 3052, and continue to monitor whether the local node receives the search response message sent by the other domain node, and the identifier of the registered node included in the domain search response message and the currently received domain search request message. The registered nodes included in the same identifier;
如果已到达, 则确定为: 本域节点在收到域搜寻请求消息后的随机时间间隔内, 均未监测到具有上述特征的域搜寻响应消息, 则执行步骤 306。  If it has arrived, it is determined that: the local domain node does not detect the domain search response message having the above characteristics within a random time interval after receiving the domain search request message, and then performs step 306.
步骤 306: 域节点广播反馈域搜寻响应消息。  Step 306: The domain node broadcasts a feedback domain search response message.
本步骤同理于实施例 2步骤中的步骤 206。  This step is the same as step 206 in the step of embodiment 2.
步骤 307: 域节点接收注册节点发出的域注册请求。  Step 307: The domain node receives the domain registration request issued by the registration node.
本步骤同理于实施例 2步骤中的步骤 107。  This step is the same as step 107 in the step of the second embodiment.
步骤 308: 如果域节点为: DM, 则按照步骤 309处理, 否则按照步骤 310处理。 本步骤同理于实施例 2步骤中的步骤 208。 Step 308: If the domain node is: DM, then process according to step 309, otherwise process according to step 310. This step is the same as step 208 in the step of embodiment 2.
步骤 309: 域节点根据收到的域注册请求向注册节点发送注册确认消息, 并指示是 否允许将注册节点加入到域节点所在域。  Step 309: The domain node sends a registration confirmation message to the registration node according to the received domain registration request, and indicates whether the registration node is allowed to join the domain of the domain node.
本步骤同理于实施例 2步骤中的步骤 209。  This step is the same as step 209 in the step of embodiment 2.
步骤 310: 域节点向域节点所在域中的 DM转发域注册请求, 以便 DM根据所述 域注册请求, 判断是否允许注册节点加入到本域中。  Step 310: The domain node forwards the domain registration request to the DM in the domain where the domain node is located, so that the DM determines, according to the domain registration request, whether the registration node is allowed to join the domain.
本步骤同理于实施例 2步骤中的步骤 210。  This step is the same as step 210 in the step of the second embodiment.
步骤 311 :域节点忽略该域搜寻请求消息,不对域搜寻请求消息做任何进一步处理。 本步骤同理于实施例 2步骤中的步骤 211。  Step 311: The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. This step is the same as step 211 in the step of Embodiment 2.
由上可见, 本实施例除了具备实施例 1、 2中所述的有益效果之外, 还具备以下的 有益效果:  As can be seen from the above, in addition to the advantageous effects described in Embodiments 1 and 2, the present embodiment has the following advantageous effects:
由于本实施例各域节点在收到域搜寻请求消息后, 在反馈域搜寻响应消息之前, 用于监测本域节点是否收到域搜寻响应消息(其中的注册节点的标识与域搜寻请求消息 中的注册节点的标识相同) 的时间间隔为: 域节点在收到域搜寻请求消息后在收到域搜 寻请求消息后, 获得一时间间隔随机值。 可以确保通信网络中任一域节点发出域搜寻响 应消息的反馈时刻均不相同, 则对于任一域节点而言, 其在发出域搜寻响应消息的时刻 到达之前收到其他域节点反馈的域搜寻响应消息的几率大大提高, 故利用本实施例方案 有利于进一步避免多个域节点共同向注册节点反馈域搜寻响应消息的情况,避免网络中 的响应消息冗余, 降低了网络信令开销。  After receiving the domain search request message, the domain node is configured to monitor whether the domain node receives the domain search response message (in the identifier of the registered node and the domain search request message) before receiving the domain search request message. The time interval of the same registration node is: The domain node obtains a random value of time interval after receiving the domain search request message after receiving the domain search request message. It can be ensured that the feedback moments of the domain search response messages sent by any domain node in the communication network are different. For any domain node, it receives the domain search feedback from other domain nodes before the time when the domain search response message is sent. The probability of responding to the message is greatly improved. Therefore, the solution of the embodiment is used to further prevent the multiple domain nodes from jointly reporting the domain search response message to the registration node, avoiding the response message redundancy in the network, and reducing the network signaling overhead.
实施例 4:  Example 4:
本实施例提供了一种域接入控制的方法, 特别适用于工作于信标模式的通信网络 的 DM或者 BPR。  This embodiment provides a method for domain access control, and is particularly suitable for DM or BPR of a communication network operating in a beacon mode.
参见图 4所示, 本实施例提供的一种已加入域内的任一域节点为未加入域的任一 注册节点建立域接入控制的方法, 其主要包括以下流程步骤: 步骤 401 : 域节点接收域搜寻请求消息。  As shown in FIG. 4, the method for establishing domain access control for any of the domain nodes in the domain that is not joined to the domain is provided in this embodiment. The method includes the following process steps: Step 401: Domain node Receive domain search request message.
同理于实施例 1中步骤 101。  The same is true for step 101 in the first embodiment.
域搜寻请求消息包含发出搜寻请求消息的注册节点的标识、 以及注册节点对应的 各目标域的域名标识。 步骤 402:如果域节点所在域的 DNI与域搜寻请求消息中包含的任一目标域的 DNI 的相同, 并且, 在本域节点信标帧的下一发送时刻到达之前, 未收到信标帧: 信标帧包 含注册节点的标识,并且未收到域搜寻响应消息:域搜寻响应消息包含注册节点的标识, 则执行步骤 403; 否则执行步骤 406。 The domain search request message includes an identifier of a registration node that issues a search request message, and a domain name identifier of each target domain corresponding to the registration node. Step 402: If the DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message, and the beacon frame is not received before the next transmission time of the local node beacon frame arrives, : Beacon Frame Pack The identifier of the registered node is included, and the domain search response message is not received: the domain search response message includes the identifier of the registered node, and then step 403 is performed; otherwise, step 406 is performed.
在满足以下所有分情况的所有执行步骤 403; 否则执行步骤 406, 具体各情况分别 为:  All execution steps 403 are satisfied in all of the following sub-cases; otherwise, step 406 is performed, and the specific cases are:
情况 1 : 域节点所在域的 DNI与域搜寻请求消息中包含的任一目标域的 DNI的相 同,  Case 1: The DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message.
情况 2: 在本域节点信标帧的下一发送时刻到达之前, 未收到信标帧: 信标帧包含 所述注册节点的标识,  Case 2: The beacon frame is not received before the next transmission time of the local node beacon frame arrives: the beacon frame contains the identifier of the registered node,
情况 3: 在本域节点信标帧的下一发送时刻到达之前, 未收到域搜寻响应消息: 域 搜寻请求消息包含注册节点的标识。  Case 3: The domain search response message is not received before the next transmission time of the local node beacon frame arrives: The domain search request message contains the identity of the registration node.
步骤 403: 域节点发送信标帧, 在信标帧中包含注册节点的标识。  Step 403: The domain node sends a beacon frame, where the identifier of the registered node is included in the beacon frame.
域节点在预定的信标帧发送时刻到来时刻, 在信标帧中增加注册节点的标识 (步 骤 401 收到的域搜寻请求消息中包含的注册节点的标识), 以供对端的注册节点以及可 以根据该域搜寻响应消息确定本域节点信息以及本域节点所在域的信息, 而根据域搜寻 响应消息向本域节点发出域接入请求, 并且供其他任一域节点可以根据该信标帧知晓: 该信标帧为根据该注册节点的域搜寻请求消息作出的响应。 步骤 404: 域节点接收注册节点发出的域注册请求。  The domain node adds the identifier of the registration node in the beacon frame at the time when the predetermined beacon frame transmission time arrives (the identifier of the registration node included in the domain search request message received in step 401), for the registration node of the peer end and Determining the domain node information and the domain information of the domain node according to the domain search response message, and issuing a domain access request to the local domain node according to the domain search response message, and the other domain node may be known according to the beacon frame. : The beacon frame is a response according to the domain search request message of the registered node. Step 404: The domain node receives the domain registration request issued by the registration node.
注册节点收到包含的注册节点的标识的信标帧后, 根据信标帧向域节点发出域注 册请求, 在域注册请求中包括加入到该域节点所在域的请求。 步骤 405: 域节点根据域注册请求为注册节点执行域接入控制。  After receiving the beacon frame of the identifier of the registered node, the registration node issues a domain registration request to the domain node according to the beacon frame, and includes a request to join the domain of the domain node in the domain registration request. Step 405: The domain node performs domain access control for the registration node according to the domain registration request.
在本实施例中, 可以根据本域节点在所在域中的实际情况, 根据域注册请求为注 册节点执行域接入控制。 比如: 该域节点为 DM, 则 DM根据本 DM以及本 DM所在域的实际情况以及域 注册请求, 判断是否允许注册节点加入到本 DM所在域, 并向注册节点反馈判断结果。  In this embodiment, domain access control may be performed for the registered node according to the domain registration request according to the actual situation of the domain node in the domain. For example, if the domain node is a DM, the DM determines whether the registration node is allowed to join the domain of the DM according to the actual situation of the domain and the domain registration request of the DM, and feeds back the judgment result to the registration node.
该域节点为 BPR, 该 BPR向所在域的 DM转发域注册请求, 以供 DM执行以下: 根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该 BPR 作为中继节点向注册节点反馈判断结果。  The domain node is a BPR, and the BPR sends a domain registration request to the DM of the domain for the DM to perform the following: according to the domain registration request and determining whether the registration node is allowed to join the domain of the domain node, and the BPR is used as the relay node. The registration node feeds back the judgment result.
步骤 406: 域节点忽略该域搜寻请求消息, 按照现有技术在下一发送时刻现有技术 结构的信标帧。  Step 406: The domain node ignores the domain search request message, and according to the prior art, the beacon frame of the prior art structure at the next transmission time.
域节点忽略该域搜寻请求消息, 不对域搜寻请求消息做任何进一步处理, 即可以 按照现有技术发送信标帧。 The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. The beacon frame is transmitted in accordance with the prior art.
在本实施例中, 如果在步骤 102 中的判定为否时, 可以按照本步骤执行, 也可以 按照现有技术或者其他预定的策略执行其他流程。  In this embodiment, if the determination in step 102 is no, it may be performed according to this step, and other processes may be performed according to the prior art or other predetermined policies.
但按照本步骤流程处理可以进一步避免网络消息冗余, 降低网络信令开销。  However, according to the process of this step, network message redundancy can be further avoided, and network signaling overhead is reduced.
由上可见, 本实施例与实施例 1、 2以及 3所不同之处在于:  As can be seen from the above, this embodiment differs from Embodiments 1, 2 and 3 in that:
本实施例技术方案特别适用于有信标网络 (无论该网络为同步信标网络还是异步 信标网络), 充分利用有信标网络中信标帧, 确保在 DM或者 BPR收到域搜寻请求后, 在 DM或者 BPR的信标帧的下一反馈时刻到达之前,该 DM或 BPR以广播的方式发送 信标帧, 并且该信标帧中包含该域搜寻请求中包含的注册节点的标识, 从而使得、 其他 任何一域节点收到该信标帧后, 可以根据该信标帧确定 DM或者 BPR当前是已经对该 域搜寻请求消息反馈信标帧, 故这些域节点可以不响应上述域搜寻请求消息, 有利于降 低网络消息的冗余, 而降低网络信令开销。  The technical solution of this embodiment is particularly applicable to a beacon network (whether the network is a synchronous beacon network or an asynchronous beacon network), and fully utilizes the beacon frame in the beacon network to ensure that after the DM or BPR receives the domain search request, Before the next feedback moment of the beacon frame of the DM or BPR arrives, the DM or BPR transmits the beacon frame in a broadcast manner, and the beacon frame includes the identifier of the registered node included in the domain search request, thereby After receiving the beacon frame, any other domain node may determine, according to the beacon frame, that the DM or the BPR is currently reporting the beacon frame to the domain search request message, so the domain nodes may not respond to the domain search request message. It is beneficial to reduce the redundancy of network messages and reduce the network signaling overhead.
实施例 5:  Example 5
本实施例提供了一种域接入控制的方法, 特别适用于工作于信标模式的通信网络。 参见图 5所示, 本实施例提供的一种已加入域内的任一的域节点(非 DM非 BPR) 为未加入域的任一注册节点建立域接入控制的方法, 其主要包括以下流程步骤: 步骤: 501 : 域节点接收域搜寻请求消息.  This embodiment provides a method for domain access control, and is particularly suitable for a communication network operating in a beacon mode. As shown in FIG. 5, a domain node (non-DM non-BPR) in any domain that has been added to the domain provides a method for establishing domain access control for any registered node that does not join the domain, and the method includes the following processes. Steps: Steps: 501: The domain node receives the domain search request message.
域搜寻请求消息包含发出搜寻请求消息的注册节点的标识、 以及注册节点对应的 各目标域的域名标识。 步骤 502:如果域节点所在域的 DNI与域搜寻请求消息中包含的任一目标域的 DNI 的相同, 并且, 在本域节点域搜寻响应消息的反馈时刻到达之前, 未收到信标帧: 信标 帧包含注册节点的标识, 并且未收到域搜寻响应消息: 域搜寻响应消息包含注册节点的 标识, 则执行步骤 503; 否则执行步骤 506。  The domain search request message includes an identifier of a registration node that issues a search request message, and a domain name identifier of each target domain corresponding to the registration node. Step 502: If the DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message, and the beacon frame is not received before the feedback time of the local node domain search response message arrives, the beacon frame is not received: The beacon frame includes the identifier of the registration node, and the domain search response message is not received: the domain search response message includes the identifier of the registration node, and step 503 is performed; otherwise, step 506 is performed.
在满足以下所有分情况的所有执行步骤 503; 否则执行步骤 506, 具体各情况分别 为:  All execution steps 503 are met in all of the following sub-cases; otherwise, step 506 is performed, and the specific cases are:
情况 1 : 域节点所在域的 DNI与域搜寻请求消息中包含的任一目标域的 DNI的相 同,  Case 1: The DNI of the domain where the domain node is located is the same as the DNI of any target domain included in the domain search request message.
情况 2: 在本域节点域搜寻响应消息的反馈时刻到达之前, 未收到信标帧: 信标帧 包含所述注册节点的标识,  Case 2: The beacon frame is not received before the feedback time of the domain node domain search response message arrives: the beacon frame contains the identifier of the registered node,
情况 3:在本域节点域搜寻响应消息的反馈时刻到达之前,未收到域搜寻响应消息: 域搜寻请求消息包含注册节点的标识。 Case 3: The domain search response message is not received before the feedback time of the domain node domain search response message arrives: The domain search request message contains the identity of the registered node.
步骤 503: 域节点反馈域搜寻响应消息。  Step 503: The domain node feeds back the domain search response message.
在反馈的域搜寻响应消息中包含: 所对应的域搜寻请求消息中包含的注册节点的 标识。  The feedback domain search response message includes: an identifier of the registered node included in the corresponding domain search request message.
域节点具体可以但不限于以广播发送的方式, 反馈该域搜寻响应消息。  The domain node may specifically, but not limited to, transmit the domain search response message by means of broadcast transmission.
步骤 504: 域节点接收注册节点发出的域注册请求。  Step 504: The domain node receives the domain registration request issued by the registration node.
注册节点收到包含的注册节点的标识的信标帧后, 根据信标帧向域节点发出域注 册请求, 在域注册请求中包括加入到该域节点所在域的请求。 步骤 505: 域节点根据域注册请求为注册节点执行域接入控制。  After receiving the beacon frame of the identifier of the registered node, the registration node issues a domain registration request to the domain node according to the beacon frame, and includes a request to join the domain of the domain node in the domain registration request. Step 505: The domain node performs domain access control for the registration node according to the domain registration request.
在本实施例中, 可以根据本域节点在所在域中的实际情况, 根据域注册请求为注 册节点执行域接入控制。 在本实施例中, 具体是该域节点向所在域的 DM转发域注册请求, 或者通过本域 节点与 DM之间的 BPR而向 DM转发域注册请求, 以供 DM执行以下:  In this embodiment, domain access control may be performed for the registered node according to the domain registration request according to the actual situation of the domain node in the domain. In this embodiment, specifically, the domain node forwards the domain registration request to the DM of the domain, or forwards the domain registration request to the DM through the BPR between the domain node and the DM, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该 BPR 作为中继节点向注册节点反馈判断结果。  According to the domain registration request, it is determined whether the registration node is allowed to join the domain of the domain node, and the BPR is used as the relay node to feed back the judgment result to the registration node.
步骤 506: 域节点忽略该域搜寻请求消息。  Step 506: The domain node ignores the domain search request message.
域节点忽略该域搜寻请求消息, 不对域搜寻请求消息做任何进一步处理。  The domain node ignores the domain search request message and does not perform any further processing on the domain search request message.
在本实施例中, 如果在步骤 502 中的判定为否时, 可以按照本步骤执行, 也可以 按照现有技术或者其他预定的策略执行其他流程。  In this embodiment, if the determination in step 502 is negative, it may be performed according to this step, and other processes may be performed according to the prior art or other predetermined policies.
但按照本步骤流程处理可以进一步避免网络消息冗余, 降低网络信令开销。  However, according to the process of this step, network message redundancy can be further avoided, and network signaling overhead is reduced.
由上可见,本实施例与实施例 1-3同理,采用本实施例技术方案,即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置 超出了该域中 DM或者 BPR的覆盖范围,注册节点无法收到 DM或者 BPR发出的信标 帧。 在该情形下, 只要注册节点的附近存在其他的域节点, 应用本实施例技术方案, 该 注册节点仍然可以根据这些域节点反馈的域搜寻响应消息加入到该已有的域中, 可见采 用本实施例技术方案, 有利于提高注册节点加到已有的域中的几率, 避免由于无法发现 已存在的目的域而新建域, 造成域名冲突的情况。  It can be seen from the above that the embodiment is the same as the embodiment 1-3, and adopts the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the registration node is located. The location exceeds the coverage of the DM or BPR in the domain, and the registration node cannot receive the beacon frame sent by the DM or BPR. In this case, as long as there are other domain nodes in the vicinity of the registration node, the technical solution of the embodiment can be used, and the registration node can still join the existing domain according to the domain search response message fed back by the domain nodes. The technical solution of the embodiment helps to increase the probability that the registration node is added to the existing domain, and avoids the situation that the domain name conflicts due to the failure to discover the existing destination domain.
第二: 对于任何一域的任一域节点而言, 该域节点在收到注册节点发出的域搜寻 请求消息后, 只有在判定本域节点所在域为该注册节点的目标域后, 并且在本域节点反 馈域搜寻响应消息的反馈时刻之前, 只有未收到其他域节点对该域搜寻请求的域搜寻响 应消息也未受到 DM或 BPR对该域搜寻响应请求消息反馈的信标帧, 该域节点才根据 该域搜寻请求消息反馈域搜寻响应消息,有利于避免网络消息冗余,降低网络信令开销。 Second: For any domain node of any domain, after receiving the domain search request message sent by the registration node, the domain node only determines that the domain of the domain node is the target domain of the registered node, and Before the local node returns the feedback time of the domain search response message, only the domain search for the domain search request is not received by other domain nodes. The message frame is not subjected to the DM or BPR beacon frame feedback of the domain search response request message, and the domain node returns the domain search response message according to the domain search request message, which is beneficial to avoid network message redundancy and reduce network signaling overhead. .
实施例 6:  Example 6:
本实施例提供了一种域接入控制的方法, 特别适用于工作于信标模式的通信网络。 参见图 6所示, 本实施例提供的一种已加入域内的任一域节点为未加入域的任一 注册节点建立域接入控制的方法, 其主要包括以下流程步骤:  This embodiment provides a method for domain access control, and is particularly suitable for a communication network operating in a beacon mode. As shown in FIG. 6, the method for establishing domain access control for any of the registered nodes that are not joined to the domain is provided by any domain node that has been added to the domain, and the method includes the following process steps:
步骤 601 : 域节点接收域搜寻请求消息。  Step 601: The domain node receives the domain search request message.
同理于实施例 1中步骤 101以及实施例 2中步骤 201。  The same is true for step 101 in embodiment 1 and step 201 in embodiment 2.
步骤 602: 域节点判定: 域搜寻请求消息中包含的任一目标域的 DNI的是否与该 域节点所在域的 DNI是否相同。  Step 602: The domain node determines whether the DNI of any target domain included in the domain search request message is the same as the DNI of the domain where the domain node is located.
同理于实施例 1中步骤 102以及实施例 2中步骤 202。  The same is true for step 102 in embodiment 1 and step 202 in embodiment 2.
步骤 603: 如果相同, 则执行步骤 604; 否则执行步骤 611。  Step 603: If they are the same, go to step 604; otherwise, go to step 611.
步骤 6041 : 判定本域节点是否为 DM或者 BPR, 如果为 DM或者 BPR, 则执行步 骤 6042; 否则, 跳转步骤 6052。  Step 6041: Determine whether the domain node is DM or BPR. If it is DM or BPR, go to step 6042; otherwise, go to step 6052.
如果当前收到的域搜寻请求消息中包含的各目标域的 DNI的任一与本域节点所在 域的 DNI相同,则认为本域节点所在域为发出该域搜寻请求消息的注册节点的目标域之 一, 则根据该域节点是否为 DM或者 BPR, 执行不同的流程。  If the DNI of each target domain included in the currently received domain search request message is the same as the DNI of the domain of the domain node, the domain of the domain node is considered to be the target domain of the registration node that sends the domain search request message. One, according to whether the domain node is DM or BPR, perform different processes.
步骤 6042: 域节点在信标帧的下一个反馈时刻到达之前, 监测以下: 是否已收到 包含发送当前域搜寻请求消息的注册节点的标识的域搜寻响应消息; 或者是否收到包含 注册节点附加域, 并且在注册节点附加域内的注册节点的标识与当前收到的域搜寻请求 消息中包含的注册节点的标识相同的信标帧。  Step 6042: Before the domain node arrives at the next feedback moment of the beacon frame, monitor the following: whether the domain search response message including the identifier of the registration node that sends the current domain search request message has been received; or whether the registration node is attached The domain, and the registered node in the registration node additional domain has the same beacon frame as the identity of the registered node included in the currently received domain search request message.
该域节点为 DM或者 BPR, 对上述监测内容的监测时间: 本域节点收到该域搜寻 搜寻请求消息时刻起至信标帧的下一个反馈时刻止的一时长。  The domain node is DM or BPR, and the monitoring time of the monitoring content is: a time period from the time when the domain node receives the domain search search request message to the next feedback time of the beacon frame.
步骤 6043: 如果在信标帧的下一个反馈时刻到达之前, 有收到上述的域搜寻响应 消息或者有收到上述的信标帧, 则跳转执行步骤 6047; 否则执行步骤 6044。  Step 6043: If the above domain search response message is received or the above beacon frame is received before the next feedback time of the beacon frame arrives, the process proceeds to step 6047; otherwise, step 6044 is performed.
如果在信标帧的下一反馈时刻到达之前未收到域搜寻响应消息, 或者收到的域搜 寻响应消息中的注册节点的标识与步骤 601收到的域搜寻请求消息中包含的注册节点的 标识不相同; 并且, 未收到信标帧, 或者收到的信标帧中未包括注册节点附加域, 或者 收到的信标帧中的注册节点附加域中的注册节点的标识与步骤 601收到的域搜寻请求消 息中包含的注册节点的标识不相同, 执行步骤 6044; 否则, 跳转执行步骤 6047。 步骤 6044: 域节点在下一反馈时刻发送以下结构的信标帧: 新增加有注册节点附 加域, 并且在注册节点附加域中包含信息: 步骤 601收到的域搜寻请求消息中包含的注 册节点的标识。 If the domain search response message is not received before the next feedback time of the beacon frame arrives, or the identifier of the registered node in the received domain search response message and the registered node included in the domain search request message received in step 601 The identifier is not the same; and, the beacon frame is not received, or the registered node additional domain is not included in the received beacon frame, or the identifier of the registered node in the registered node additional domain in the received beacon frame and step 601 The identifier of the registered node included in the received domain search request message is different, and step 6044 is performed; otherwise, the process proceeds to step 6047. Step 6044: The domain node sends a beacon frame of the following structure at the next feedback moment: a newly added registration node additional domain is added, and the information is included in the registration node additional domain: Step 601: The registered node included in the received domain search request message Logo.
域节点在待下一反馈时刻发送的信标帧中增加注册节点附加域, 在注册节点附加 域中包含: 包含在步骤 601收到的域搜寻请求消息中的注册节点的标识。  The domain node adds a registration node additional field to the beacon frame to be sent at the next feedback moment, and the registration node additional field includes: an identifier of the registration node included in the domain search request message received in step 601.
域节点在待下一反馈时刻发送的信标帧中增加一域, 将该新增加的域定义为: 注 册节点附加域。 并且在该注册节点附加域中包含信息: 包含在步骤 601收到的搜寻请求 消息中的注册节点的标识。  The domain node adds a field to the beacon frame to be sent at the next feedback moment, and defines the newly added domain as: the registration node additional domain. And including information in the registration node additional field: the identity of the registration node included in the search request message received in step 601.
域节点在信标帧的下一个反馈时刻到达时, 将该含有注册节点附加域的信标帧广 播发送出去, 以供注册节点以及其他相邻的域节点均可以收到该特定结构的信标帧。  When the domain node arrives at the next feedback moment of the beacon frame, the beacon frame containing the registration node additional domain is broadcasted, so that the registered node and other adjacent domain nodes can receive the beacon of the specific structure. frame.
具体地, 注册节点在收到带注册节点附加域的信标帧后, 注册节点将信标帧中的 域的 DNI确定为注册节点当前实际可加入的目的域的 DNI, 并且注册节点根据信标帧 中的"域同步信息"与该域同步中, 注册节点根据信标帧的发送地址, 向该 DM或 BPR 发送域注册请求, 在该域注册请求中包含请求加入域节点所在域的请求信息, 以供 DM 根据该域注册请求判断注册节点是否能够加入当前域中。  Specifically, after the registration node receives the beacon frame with the registration node additional domain, the registration node determines the DNI of the domain in the beacon frame as the DNI of the destination domain that the registration node can actually join, and the registration node according to the beacon In the synchronization of the domain synchronization information in the frame, the registration node sends a domain registration request to the DM or BPR according to the sending address of the beacon frame, and the domain registration request includes request information for requesting to join the domain where the domain node is located. , for the DM to determine whether the registered node can join the current domain according to the domain registration request.
除注册节点外的其他域节点在收到该特定结构的信标帧后, 该域节点在确定信标 帧中包含注册节点附加域后,进一步比较封装在注册节点附加域中的注册节点的标识是 否本域节点收到的域搜寻请求消息中包含的注册节点的标识是否一致; 如果一致, 则域 节点可以确定当前 DM或者 BPR对注册节点的域搜寻请求消息做出了响应, 本域节点 忽略该域搜寻请求消息, 无需对域搜寻请求消息作出响应, 无需发出域搜寻响应消息。  After receiving the beacon frame of the specific structure, the domain node except the registration node further includes the registration node additional domain in the determined beacon frame, and further compares the identifier of the registration node encapsulated in the registration node additional domain. Whether the identifiers of the registered nodes included in the domain search request message received by the local node are consistent; if they are consistent, the domain node may determine that the current DM or BPR responds to the domain search request message of the registered node, and the domain node ignores The domain search request message does not need to respond to the domain search request message, and does not need to issue a domain search response message.
步骤 6045 : 域节点接收注册节点发出的域注册请求。  Step 6045: The domain node receives the domain registration request issued by the registration node.
同理于实施例 2中步骤 207。  The same is the same as step 207 in the second embodiment.
步骤 6046: 域节点根据收到的域注册请求向注册节点发送注册确认消息, 并指示 是否允许将注册节点加入到域节点所在域。  Step 6046: The domain node sends a registration confirmation message to the registration node according to the received domain registration request, and indicates whether to allow the registration node to join the domain of the domain node.
同理于实施例 2中步骤 209。  The same is true for step 209 in the second embodiment.
步骤 6047 : 域节点忽略该域搜寻请求消息, 按照现有技术在下一反馈时刻现有技 术结构的信标帧。  Step 6047: The domain node ignores the domain search request message, and the beacon frame of the prior art structure at the next feedback moment according to the prior art.
如果在步骤 6043中判定: 在信标帧的下一反馈时刻到达之前有收到域搜寻响应消 息并且域搜寻响应消息中的注册节点的标识与步骤 601收到的域搜寻请求消息中包含的 注册节点的标识相同;或者,有收到信标帧,并且收到的信标帧中包括注册节点附加域, 并且注册节点附加域中的注册节点的标识与步骤 601收到的域搜寻请求消息中包含的注 册节点的标识相同,执行本步骤:在下一反馈时刻到达时,发送现有技术结构的信标帧, 在该信标帧中无注册节点附加域。 If it is determined in step 6043: the domain search response message is received before the next feedback time of the beacon frame arrives and the identity of the registration node in the domain search response message and the registration included in the domain search request message received in step 601 The identifier of the node is the same; or, the beacon frame is received, and the received beacon frame includes the registration node additional field, And the identifier of the registration node in the registration node additional domain is the same as the identifier of the registration node included in the domain search request message received in step 601, and the step is performed: when the next feedback time arrives, the beacon frame of the prior art structure is sent. There is no registered node additional field in the beacon frame.
步骤 6052: 域节点在收到步骤 601的域搜寻请求消息后的第一时间间隔内, 进一 步监测以下: 是否已收到包含发送当前域搜寻请求消息的注册节点的标识的域搜寻响应 消息; 或者是否收到包含注册节点附加域, 并且在注册节点附加域内的注册节点的标识 与当前收到的域搜寻请求消息中包含的注册节点的标识相同的信标帧。  Step 6052: The domain node further monitors the following in the first time interval after receiving the domain search request message of step 601: whether the domain search response message including the identifier of the registered node that sends the current domain search request message has been received; or Whether or not the registration node additional domain is received, and the identity of the registration node in the registration node attachment domain is the same as the identity of the registration node included in the currently received domain search request message.
如果该域节点为非 DM非 BPR的其他任一域节点, 第一时间间隔为: 本域节点收 到上述的域搜寻请求消息的时刻起至该域节点反馈域搜寻响应消息的反馈时刻止的时 长。  If the domain node is any other domain node other than the DM non-BPR, the first time interval is: the time when the domain node receives the domain search request message and the feedback time of the domain node feedback domain search response message duration.
与实施例? 中步骤 304-3053同理, 在本实施例中, 可以但不限于在域节点确定当 前收到的域搜寻请求消息中包含的注册节点的一目标域的 DNI 与本域节点所在域的 DNI相同后, 则执行本步骤:  With the example? In the embodiment, in the embodiment, the DNI of the target domain of the registered node included in the currently received domain search request message may be the same as the DNI of the domain of the domain node in the domain node. After that, perform this step:
该域节点运行预存的随机值运算算法程序, 一时间间隔的随机值, 将其记为随机 时间间隔。 使得该随机时间间隔大于一预定时间间隔的任一时间间隔。  The domain node runs a pre-stored random value algorithm program, a random value of a time interval, and records it as a random time interval. The random time interval is made greater than any of the predetermined time intervals.
特别地, 在本实施例中该随机时间间隔大于一预定时间间隔。 具体可以使该随机 时间间隔大于本域中 DM以及 BPR的信标帧的发送时间间隔。  In particular, in the present embodiment the random time interval is greater than a predetermined time interval. Specifically, the random time interval may be greater than a transmission time interval of the beacon frame of the DM and the BPR in the local domain.
这样, 对于同一时刻的各个普通域节点而言, 各个普通域节点分别得到的随机时 间间隔不一样, 即各普通域节点预定的反馈域搜寻响应消息的时刻不一致, 且各普通域 节点预定的反馈域搜寻响应消息的时刻均滞后域本域中的 DM或 BPR,则各普通域节点 在反馈域搜寻响应消息前收到其他域节点反馈的域搜寻响应消息,特别是 DM或者 BPR 发出的带有注册节点附加域的信标帧的几率大大提高。故利用上述技术方案有利于进一 步避免多个域节点均向注册节点反馈域搜寻响应消息或者信标帧的情况,避免网络中的 响应消息冗余, 降低了网络信令开销。 并且, 确保注册节点优先根据 DM或者 BPR的 信标帧发送域注册请求。  In this way, for each common domain node at the same time, the random time intervals respectively obtained by the common domain nodes are different, that is, the times of the predetermined feedback domain search response messages of the common domain nodes are inconsistent, and the predetermined feedback of each common domain node is obtained. When the domain search response message lags the DM or BPR in the local domain, the common domain node receives the domain search response message fed back by other domain nodes before the feedback domain search response message, especially the DM or BPR The probability of registering a beacon frame for a node attached domain is greatly increased. Therefore, the use of the foregoing technical solution is beneficial to further avoiding the situation that multiple domain nodes feedback the domain search response message or the beacon frame to the registration node, avoiding the response message redundancy in the network, and reducing the network signaling overhead. Also, ensure that the registration node preferentially sends a domain registration request based on the DM or BPR beacon frame.
步骤 6053: 如果在随机时间间隔内, 有收到该域搜寻响应消息或者上述的信标帧, 则跳转执行步骤 611 ; 否则执行步骤 6054。  Step 6053: If the domain search response message or the above-mentioned beacon frame is received within a random time interval, the process proceeds to step 611; otherwise, step 6054 is performed.
步骤 6054: 域节点广播反馈域搜寻响应消息。  Step 6054: The domain node broadcasts a feedback domain search response message.
同理于实施例 2中步骤 206。  The same is the same as step 206 in the second embodiment.
步骤 6055: 域节点接收注册节点发出的域注册请求。 同理于实施例 1中步骤 107。 Step 6055: The domain node receives the domain registration request issued by the registration node. The same is the same as step 107 in the embodiment 1.
步骤 6056: 域节点向域节点所在域中的 DM转发域注册请求, 以便 DM根据所述 域注册请求, 判断是否允许注册节点加入到本域中。  Step 6056: The domain node forwards the domain registration request to the DM in the domain where the domain node is located, so that the DM determines, according to the domain registration request, whether the registration node is allowed to join the domain.
同理于实施例 1中步骤 210。  The same is true in step 210 of the embodiment 1.
步骤 611 :域节点忽略该域搜寻请求消息,不对域搜寻请求消息做任何进一步处理。 同理于实施例 1中步骤 211。  Step 611: The domain node ignores the domain search request message and does not perform any further processing on the domain search request message. The same is the same as step 211 in the first embodiment.
由上可见, 本实施例与实施例 1 所不同之处在于: 本实施例技术方案特别适用于 有信标网络 (无论该网络为同步信标网络还是异步信标网络), 充分利用有信标网络中 信标帧, 确保在 DM或者 BPR收到域搜寻请求后, 在 DM或者 BPR的信标帧的下一反 馈时刻到达之前, 该 DM或 BPR以广播的方式发送信标帧, 并且该信标帧中新增加有 注册节点附加域, 在注册节点附加域中包含: 包含在当前收到的域搜寻请求消息中的注 册节点的标识, 从而确保有尽可能少的其他域节点对该域搜寻请求消息做出响应。  It can be seen that the difference between the embodiment and the embodiment 1 is that: the technical solution of the embodiment is particularly applicable to a beacon network (whether the network is a synchronous beacon network or an asynchronous beacon network), and the beacon is fully utilized. The beacon frame in the network ensures that after the DM or BPR receives the domain search request, the DM or BPR broadcasts the beacon frame in a broadcast manner before the next feedback time of the DM or BPR beacon frame arrives, and the beacon A newly added registration node additional field is added to the frame, and the registration node additional field includes: an identifier of the registered node included in the currently received domain search request message, thereby ensuring that there are as few other domain nodes as possible to search for the domain. The message responded.
当其他任何一域节点收到该信标帧后, 可以根据该信标帧确定 DM或者 BPR当前 是否有响应上述域搜寻请求消息; 如果 DM或者 BPR已对该域搜寻请求消息做出响应, 则本域节点可忽略该域搜寻请求消息即可。  After receiving the beacon frame, any other domain node may determine, according to the beacon frame, whether the DM or the BPR is currently responding to the domain search request message; if the DM or the BPR has responded to the domain search request message, The domain node can ignore the domain search request message.
与实施例 1、 2同理, 本实施例技术方案具有以下优点:  Similar to the first embodiment and the second embodiment, the technical solution of the embodiment has the following advantages:
第一: 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 故注册节点无法收到 DM或者 BPR发出的消息。  First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. Therefore, the registration node cannot receive the message sent by the DM or BPR.
在该情形下, 只要注册节点的附近存在其他的域节点, 应用本实施例技术方案, 该注册节点仍然可以加入到该已有的域中。  In this case, as long as there are other domain nodes in the vicinity of the registration node, the registration node can still join the existing domain by applying the technical solution of the embodiment.
而采用现有技术, 各注册节点仅仅主动或者被动根据 DM或者 BPR发出的信标帧 而加域, 一旦注册节点超出 DM或者 BPR的覆盖范围, 即使该注册节点所在位置存在 有信标的域, 该已有域的 DNI与设备内的其中一个目标域的 DNI相同, 但是当前设备 相对已有域中的 DM或者 BPR为隐藏节点(即 DM或者 BPR发出的信息无法到达该设 备), 注册节点无法收到 DM或者 BPR的任何消息 (含信标帧), 故注册节点无法加入 到已有域,此时注册节点以本注册节点目标域的任一 DNI为该新建域的 DNI新建一域, 导致在一个通信网络内存在两个或者两个以上 DNI相同的域,影响通信网络上各个域的 正常工作。  With the prior art, each registered node only actively or passively adds a domain according to a beacon frame sent by the DM or the BPR. Once the registered node exceeds the coverage of the DM or the BPR, even if there is a beaconed domain at the location of the registered node, The DNI of the existing domain is the same as the DNI of one of the target domains in the device, but the DM or BPR of the current device is hidden from the existing domain (that is, the information sent by the DM or BPR cannot reach the device), and the registered node cannot receive the information. Any message to the DM or BPR (including the beacon frame), so the registration node cannot join the existing domain. At this time, the registration node creates a new domain for the DNI of the newly created domain by using any DNI of the target domain of the registered node. A communication network has two or more domains of the same DNI, which affects the normal operation of each domain on the communication network.
通过上述的比对, 可见采用本实施例技术方案, 有利于提高注册节点加到已有的 域中的几率, 避免由于无法发现已存在的目的域而新建域, 造成域名冲突的情况。 第二: 采用本实施例技术方案, 对于任何一域的任一域节点而言, 该域节点在收 到注册节点发出的域搜寻请求消息后,在判定本域节点所在域不为该注册节点的目标域 后, 域节点不对该域搜寻请求消息的响应。 Through the above comparison, it can be seen that the technical solution of the embodiment is adopted, which is beneficial to adding the registration node to the existing one. The probability of the domain, to avoid creating a new domain due to the inability to discover the existing destination domain, resulting in a domain name conflict. Second: With the technical solution of the embodiment, for any domain node of any domain, after receiving the domain search request message sent by the registration node, the domain node determines that the domain where the domain node is located is not the registered node. After the target domain, the domain node does not respond to the domain search request message.
并且该域节点根据域搜寻请求消息后确定所在域为该注册节点的目标域之一的情 况下, 域节点在本域节点反馈域搜寻响应消息的反馈时刻之前, 域节点监测以下: 是否 已收到其他域节点对该域搜寻请求的响应 (域搜寻响应消息或信标帧), 一旦已收到, 则域节点忽略域搜寻请求消息进行响应, 不会反馈域搜寻响应消息。 故采用该技术方案 有利于减少通信网络中各节点对同一个注册节点的域注册请求消息的响应,避免网络消 息冗余, 降低网络信令开销。。  And the domain node determines, according to the domain search request message, that the domain is one of the target domains of the registration node, before the domain node feedbacks the domain search response message of the local node, the domain node monitors the following: The response to the domain search request (domain search response message or beacon frame) to other domain nodes. Once received, the domain node ignores the domain search request message and responds, and does not feedback the domain search response message. Therefore, adopting the technical solution is beneficial to reducing the response of each node in the communication network to the domain registration request message of the same registered node, avoiding network message redundancy and reducing network signaling overhead. .
需要说明的是, 上述的信标帧可以为各个类型的信标帧, 譬如可以为由 DM发出 的信标帧, 也可以为 BPR发出的 R-信标帧。  It should be noted that the above-mentioned beacon frame may be each type of beacon frame, for example, a beacon frame sent by the DM or an R-beacon frame sent by the BPR.
实施例 7:  Example 7
参见图 7 所示, 本实施例提供的一种域搜寻的方法, 注册节点根据该域搜寻的方 法搜寻到网络, 加入该网络的域中, 其主要包括以下流程步骤:  Referring to FIG. 7, a method for searching for a domain is provided in this embodiment. A registration node searches for a network according to the method of searching for the domain, and joins the domain of the network, which mainly includes the following process steps:
步骤 701 : 注册节点监测是否收到信标帧。  Step 701: The registration node monitors whether a beacon frame is received.
在注册节点上电开机后, 注册节点在一预定的第一时间限制内, 监测本注册节点 是否收到信标帧。  After the registration node is powered on, the registration node monitors whether the registration node receives the beacon frame within a predetermined first time limit.
信标帧可以为各个类型的信标帧,譬如可以为由 DM发出的信标帧,也可以为 BPR 发出的 R-信标帧。  The beacon frame can be each type of beacon frame, such as a beacon frame sent by the DM or an R-beacon frame sent by the BPR.
步骤 702: 如果收到, 则执行步骤 703; 否则执行步骤 705。  Step 702: If yes, go to step 703; otherwise, go to step 705.
步骤 703: 注册节点判定信标帧中的 DNI是否与本注册节点的任一目标域的 DNI 相同, 如果相同, 执行步骤 704; 否则, 执行步骤 705。  Step 703: The registration node determines whether the DNI in the beacon frame is the same as the DNI of any target domain of the registered node. If yes, step 704 is performed; otherwise, step 705 is performed.
如果信标帧中的 DNI与本注册节点的任一目标域的 DNI相同, 则认为发出信标帧 的域为本注册节点对应的目标域之一。  If the DNI in the beacon frame is the same as the DNI of any of the target nodes of the present registered node, the domain that sends the beacon frame is considered to be one of the target domains corresponding to the registered node.
本实施例中, 注册节点一旦确定收到的信标帧中的 DNI与本注册节点的任一目标 域的 DNI相同,则认为发出信标帧的域为本注册节点对应的目标域之一,执行步骤 704, 启动域注册流程, 加入到该域中。  In this embodiment, once the registration node determines that the DNI in the received beacon frame is the same as the DNI of any target domain of the registered node, the domain that sends the beacon frame is considered to be one of the target domains corresponding to the registration node. Step 704 is executed to start the domain registration process and join the domain.
步骤 704:注册节点根据信标帧向发出该信标帧的 DM或者 BPR发送域注册请求。 在本实施例中注册节点在一次确定可加入的目标域时, 即将此作为最终目标域, 向其发送域注册请求。 Step 704: The registration node sends a domain registration request to the DM or BPR that sends the beacon frame according to the beacon frame. In this embodiment, when the registration node determines the target domain that can be joined once, this is the final target domain. Send a domain registration request to it.
在所述域注册请求中包含加入发出该信标帧的 DM或者 BPR所在域的请求, 如果 注册节点收到的是 DM发送的信标帧, 则直接向 DM发送域注册请求, 如果注册节点收 到的 BPR发送的 R-信标帧, 则直接向 BPR发送域注册请求, BPR将此注册请求转发至 DM, 根据本域节点以及所在域的实际情况, 根据域注册请求判断是否允许注册节点加 入到本域中, 如果允许, 域节点将注册确认消息转发至注册节点, 并且还可以在可以注 册确认消息中包含为注册节点分配的节点地址等信息; 如果不允许, 域节点将拒绝注册 的注册反馈消息反馈至注册节点, 以便注册节点根据预定的注册策略, 在下一注册时刻 重新提交注册请求, 或者在多次提交注册请求后进行其他目标域的注册请求处理, 或者 新建域。  The domain registration request includes a request to join the domain of the DM or the BPR in which the beacon frame is sent. If the registration node receives the beacon frame sent by the DM, the domain registration request is directly sent to the DM, if the registration node receives The R-beacon frame sent by the BPR sends a domain registration request directly to the BPR. The BPR forwards the registration request to the DM. According to the actual situation of the domain node and the domain, the domain registration request determines whether the registration node is allowed to join. In this domain, if allowed, the domain node forwards the registration confirmation message to the registration node, and may also include information such as the node address assigned to the registration node in the registration confirmation message; if not, the domain node will reject the registration registration The feedback message is fed back to the registration node, so that the registration node resubmits the registration request at the next registration time according to the predetermined registration policy, or performs registration request processing of other target domains after multiple registration requests, or creates a new domain.
步骤 705: 如果第一时间限制是否届满, 则执行步骤 706; 否则返回步骤 701。 如果注册节点在预定的第一时间限制内无法得到信标帧中的 DNI与本注册节点的 任一目标域的 DNI相同的信标帧, 则可能存在以下几种情形:  Step 705: If the first time limit expires, step 706 is performed; otherwise, return to step 701. If the registration node cannot obtain the same beacon frame of the DNI in the beacon frame and the DNI of any of the target nodes of the registered node within the predetermined first time limit, the following situations may exist:
一是, 当前注册节点附近确实没有域存在;  First, there is really no domain near the current registered node;
二是, 当前注册节点附近有域存在, 但是已有域为无信标模式的域, 故注册节点 不会收到信标帧;  Second, there is a domain near the current registered node, but the existing domain is a domain without a beacon mode, so the registered node does not receive the beacon frame;
三是, 当前注册节点附近有域存在, 并且已有域为有信标模式的域, 但是此注册 节点相对于这些已有域中的 DM或者 BPR均为隐藏节点, 注册节点不在这些 DM或者 BPR的覆盖范围内, 注册节点无法与 DM或者 BPR直接通信。  The third is that there is a domain near the current registered node, and the existing domain is a domain with a beacon mode, but the registered node is a hidden node with respect to the DM or BPR in the existing domain, and the registered node is not in the DM or BPR. Within the coverage, the registered node cannot communicate directly with the DM or BPR.
如果注册节点无法根据信标帧加入域, 则进入步骤 706的流程, 以通过主动发送 步骤 706: 注册节点广播发送域搜寻请求消息。  If the registration node cannot join the domain according to the beacon frame, the flow proceeds to step 706 to actively send a step 706: the registration node broadcasts the domain search request message.
注册节点注定发送一域搜寻请求消息, 在该域搜寻请求消息中包含有: 该注册节 点的标识、 以及本注册节点对应的各目标域的 DNI。  The registration node is destined to send a domain search request message, and the domain search request message includes: an identifier of the registration node, and a DNI of each target domain corresponding to the registration node.
其他进一步的说明详细见实施例 2步骤 201中的响应描述。  For further details, see the response description in step 201 of embodiment 2.
注册节点以广播的方式发送上述的域搜寻请求消息, 任何位于注册节点附近的任 一域中的任一域节点均可以收到该域搜寻请求消息, 以便收到域搜寻请求消息的任一域 的任一域节点按照预定的协议对该域寻请求消息反馈响应消息, 以便注册节点可以根据 响应消息获取这些节点所在域的信息以及域节点地址等信息。  The registration node sends the above domain search request message in a broadcast manner, and any domain node in any domain in the vicinity of the registration node can receive the domain search request message, so as to receive any domain of the domain search request message. Any domain node searches for a response message to the domain request message according to a predetermined protocol, so that the registration node can obtain information such as the domain of the node and the domain node address according to the response message.
本实施了中收到域搜寻请求消息的任一域的任一域节点对该域寻请求消息反馈响 应消息的流程可以按照实施例 1-6中的流程所示。 但是并不限于此。 步骤 707: 注册节点监测是否收到域搜寻响应消息。 The flow of any domain node in any domain that receives the domain search request message in the present embodiment may respond to the domain request message feedback response message according to the flow in Embodiment 1-6. But it is not limited to this. Step 707: The registration node monitors whether a domain search response message is received.
注册节点在发出域搜寻请求消息后, 在预定的第二限制时间内, 监测是否收到域 搜寻响应消息。  After issuing the domain search request message, the registration node monitors whether a domain search response message is received within a predetermined second limit time.
在本实施例中, 域搜寻响应消息中包含信息: 发送该域搜寻响应消息的域节点地 址、发送该域搜寻响应消息的域节点所在域的 DNI、发送该域搜寻响应消息的域节点所 在域的域同步信息、 以及当前域搜寻响应消息对应的域搜寻请求消息中包含的注册节点 的标识。  In this embodiment, the domain search response message includes: a domain node address that sends the domain search response message, a DNI of a domain where the domain node that sends the domain search response message is located, and a domain of the domain node that sends the domain search response message The domain synchronization information, and the identifier of the registered node included in the domain search request message corresponding to the current domain search response message.
步骤 708: 如果收到域搜寻响应消息, 则执行步骤 709; 否则执行步骤 710。  Step 708: If a domain search response message is received, step 709 is performed; otherwise, step 710 is performed.
步骤 709: 注册节点判定域搜寻响应消息的 DNI是否与本注册节点的任一目标域 的 DNI相同, 如果相同, 执行步骤 710; 否则, 执行步骤 712。  Step 709: The registration node determines whether the DNI of the domain search response message is the same as the DNI of any target domain of the registered node. If yes, step 710 is performed; otherwise, step 712 is performed.
如果收到的域搜寻响应消息中的 DNI与本注册节点的一目标域的 DNI相同, 则确 定域搜寻响应消息的域为本注册节点对应的目标域之一,执行步骤 710启动域注册流程, 加入到该域中, 否则执行步骤 712。  If the DNI of the received domain search response message is the same as the DNI of the target domain of the registered node, the domain of the domain search response message is determined to be one of the target domains corresponding to the registration node, and step 710 is started to start the domain registration process. Join the domain, otherwise go to step 712.
步骤 710: 注册节点将发出该搜寻响应消息的域节点所在域, 确定为本注册节点的 最终目的域。  Step 710: The registration node sends the domain of the domain node that sends the search response message to determine the final destination domain of the registered node.
在本实施例中注册节点在一次确定可加入的目标域时, 即将此作为最终目标域, 向其发送域注册请求。  In this embodiment, when the registration node determines the target domain that can be joined at one time, this is the final target domain, and a domain registration request is sent to it.
步骤 711 : 注册节点向发出包含最终目的域的 DNI的搜寻响应消息的域节点发送 域注册请求。  Step 711: The registration node sends a domain registration request to the domain node that sends the search response message of the DNI containing the final destination domain.
在本实施例中注册节点在一次确定可加入的目标域时, 即将此作为最终目标域, 向其发送域注册请求。  In this embodiment, when the registration node determines the target domain that can be joined at one time, this is the final target domain, and a domain registration request is sent to it.
在域注册请求中包含加入发出该加入发送该域搜寻响应消息的节点所在域的请求 信息。。  The domain registration request includes request information for joining the domain in which the node that sent the domain search response message is sent. .
收到该域注册请求的域节点, 将域注册请求转发至本域的 DM, 以便 DM根据本 DM以及所在域的实际情况, 根据域注册请求判断是否允许注册节点加入到本域 A中, 如果允许, DM通过上述的域节点作为信息转发中继,将注册确认消息转发至注册节点, 并且还可以在可以注册确认消息中包含为注册节点分配的节点地址等信息; 如果不允 许, DM通过上述的域节点作为信息转发中继, 将拒绝注册的注册反馈消息反馈至注册 节点, 以便注册节点根据预定的注册策略, 在下一注册时刻重新提交注册请求, 或者在 多次提交注册请求后进行其他目标域的注册请求处理, 或者新建域。 普通节点在转发了 这个注册请求后, 还要将 DM处理后发来的注册确认消息再转发至注册节点。 The domain node that receives the domain registration request forwards the domain registration request to the DM of the local domain, so that the DM determines whether the registration node is allowed to join the domain A according to the domain registration request according to the actual situation of the DM and the domain. Allowing, the DM forwards the registration confirmation message to the registration node through the above-mentioned domain node, and may also include information such as the node address assigned to the registration node in the registration confirmation message; if not, the DM passes the above The domain node acts as a message forwarding relay, and feeds back the registration feedback message that refuses registration to the registration node, so that the registration node resubmits the registration request at the next registration time according to the predetermined registration policy, or performs other targets after multiple registration requests are submitted. The domain's registration request is processed, or a new domain is created. The normal node is forwarding After this registration request, the registration confirmation message sent by the DM processing is further forwarded to the registration node.
步骤 712: 如果第二时间限制届满, 则执行步骤 713 ; 否则返回步骤 707。  Step 712: If the second time limit expires, step 713 is performed; otherwise, step 707 is returned.
如果注册节点在预定的时间限制内无法得到域搜寻响应消息, 或者收到的所有域 搜寻响应消息中的 DNI与本注册节点的任一目标域的 DNI均不相同, 则可能存在以下 几种情形:  If the registration node cannot obtain the domain search response message within the predetermined time limit, or the DNI in all the domain search response messages received is different from the DNI of any target domain of the registered node, the following situations may exist. :
一是, 当前注册节点附近确实没有目标域存在;  First, there is really no target domain in the vicinity of the current registration node;
二是, 当前注册节点附近存在目标域, 已有域为无信标模式的域, 但是该已有域 的任一节点与注册节点无法通信连接;  Second, there is a target domain near the current registered node, and the existing domain is a domain without a beacon mode, but any node of the existing domain cannot communicate with the registered node;
三是, 当前注册节点附近存在目标域, 已有域为有信标模式的域, 注册节点不在 这些 DM或者 BPR的覆盖范围内, 并且注册节点与已有域的任一节点均无法通信连接。  Third, there is a target domain near the current registered node, and the existing domain is a domain with a beacon mode. The registered node is not in the coverage of these DM or BPR, and the registered node cannot communicate with any node of the existing domain.
如果注册节点既无法根据信标帧加入域也无法根据域搜寻响应消息加入域, 则进 入步骤 713的流程。  If the registration node is unable to join the domain according to the beacon frame or join the domain according to the domain search response message, the flow proceeds to step 713.
步骤 713 : 注册节点当前无法加入已有域, 根据预定策略, 新建域。  Step 713: The registered node cannot join the existing domain at present, and the new domain is created according to the predetermined policy.
由上可见, 应用本实施例技术方案, 注册节点在通过信标帧加入域失败后, 还进 一步主动发出域搜寻请求, 以等待域搜寻响应消息加入域, 这样, 只要注册节点附近存 在目标域, 无论该域是有信标模式还是无信标模式, 无论该注册节点是否在该有信标模 式的域中的 DM或者 BPR的覆盖范围内, 只要该目标域的任一域节点可以与注册节点 直接通信, 则注册节点即可加入该已有的目标域, 而不会新建域, 相对于现有技术采用 本实施例技术方案有利于提高注册节点搜寻到已有目标域的几率,避免在已存在注册节 点目标域的情况下注册节点仍然新建域而导致网络中存在 DNI相同的两域,影响通信网 络上各个域的正常工作。  It can be seen that, after applying the technical solution of the embodiment, after the registration node fails to join the domain through the beacon frame, the registration node further actively sends a domain search request to wait for the domain search response message to join the domain, so that as long as the target domain exists near the registered node, Whether the domain is in a beacon mode or a non-beacon mode, regardless of whether the registration node is within the coverage of the DM or BPR in the beacon mode domain, as long as any domain node of the target domain can be associated with the registration node Direct communication, the registration node can join the existing target domain, and the new domain is not created. Compared with the prior art, the technical solution of the embodiment is beneficial to improve the probability of the registered node searching for the existing target domain, and avoiding the In the case where there is a registered node target domain, the registered node still creates a new domain, resulting in the existence of the same two domains of the DNI in the network, which affects the normal operation of each domain on the communication network.
实施例 8:  Example 8
参见图 7 所示, 本实施例提供了适用于有信标的网络的另一种域搜寻的方法, 以 供注册节点根据该域搜寻的方法搜寻到网络以加入该网络的域中,其主要包括以下流程 步骤:  As shown in FIG. 7, this embodiment provides another method for domain search applicable to a beaconed network, so that a registration node searches for a network according to the domain search method to join the domain of the network, which mainly includes The following process steps:
步骤 801 : 注册节点监测是否收到信标帧。  Step 801: The registration node monitors whether a beacon frame is received.
在注册节点上电开机后, 注册节点在已预定的第一时间限制内监测是否收到信标 帧。  After the registration node is powered on, the registration node monitors whether a beacon frame is received within the predetermined first time limit.
信标帧可以为各个类型的信标帧,譬如可以为由 DM发出的信标帧,也可以为 BPR 发出的 R-信标帧。 步骤 802: 如果收到, 则执行步骤 803; 否则执行步骤 805。 The beacon frame may be each type of beacon frame, such as a beacon frame sent by the DM or an R-beacon frame sent by the BPR. Step 802: If yes, go to step 803; otherwise, go to step 805.
步骤 803: 注册节点判定信标帧中的 DNI是否与本注册节点的任一目标域的 DNI 相同, 如果相同, 执行步骤 804; 否则, 执行步骤 805。  Step 803: The registration node determines whether the DNI in the beacon frame is the same as the DNI of any target domain of the registered node. If yes, step 804 is performed; otherwise, step 805 is performed.
注册节点一旦收到信标帧并且信标帧中的 DNI是否域本注册节点的任一目标域的 DNI相同, 则认为发出信标帧的域为本注册节点对应的目标域之一。  Once the registration node receives the beacon frame and the DNI in the beacon frame is the same as the DNI of any of the target domains of the registered node, the domain that sends the beacon frame is considered to be one of the target domains corresponding to the registration node.
步骤 804:注册节点根据信标帧向发出该信标帧的 DM或者 BPR发送域注册请求。 步骤 805: 如果第一时间限制是否届满, 则执行步骤 806; 否则返回步骤 801。 步骤 806: 注册节点发送域搜寻请求消息。  Step 804: The registration node sends a domain registration request to the DM or BPR that sends the beacon frame according to the beacon frame. Step 805: If the first time limit expires, step 806 is performed; otherwise, return to step 801. Step 806: The registration node sends a domain search request message.
步骤 801-806与实施例 7中步骤 701-706同理。  Steps 801-806 are the same as steps 701-706 in Embodiment 7.
步骤 807: 注册节点监测是否收到域搜寻响应消息以及信标帧。  Step 807: The registration node monitors whether a domain search response message and a beacon frame are received.
注册节点在发出域搜寻请求消息后, 在预定的第二时间限制内, 监测是否收到域 搜寻响应消息并且监测是否收到信标帧。  After issuing the domain search request message, the registration node monitors whether a domain search response message is received and monitors whether a beacon frame is received within a predetermined second time limit.
在本实施例中, 域搜寻响应消息中包含信息: 发送该域搜寻响应消息的域节点地 址、发送该域搜寻响应消息的域节点所在域的 DNI、发送该域搜寻响应消息的域节点所 在域的域同步信息、 以及当前域搜寻响应消息对应的域搜寻请求消息中包含的注册节点 的标识。  In this embodiment, the domain search response message includes: a domain node address that sends the domain search response message, a DNI of a domain where the domain node that sends the domain search response message is located, and a domain of the domain node that sends the domain search response message The domain synchronization information, and the identifier of the registered node included in the domain search request message corresponding to the current domain search response message.
步骤 808: 如果收到上述域搜寻响应消息或者信标帧, 则执行步骤 809; 否则执行 步骤 810。  Step 808: If the above domain search response message or beacon frame is received, step 809 is performed; otherwise, step 810 is performed.
步骤 809: 注册节点判定域搜寻响应消息或者信标帧的 DNI是否与本注册节点的 任一目标域的 DNI相同, 如果相同, 执行步骤 810; 否则, 执行步骤 811。  Step 809: The registration node determines whether the DNI of the domain search response message or the beacon frame is the same as the DNI of any target domain of the registered node. If yes, step 810 is performed; otherwise, step 811 is performed.
如果收到的信标帧中的 DNI与本注册节点的一目标域的 DNI相同, 则确定信标帧 的域为本注册节点对应的目标域之一, 执行步骤 810启动域注册流程, 加入到该域中, 否则执行步骤 812。  If the DNI of the received beacon frame is the same as the DNI of the target domain of the registered node, the domain of the beacon frame is determined to be one of the target domains corresponding to the registration node, and step 810 is executed to start the domain registration process, and In this field, otherwise step 812 is performed.
如果收到的信标帧中的 DNI与本注册节点的一目标域的 DNI相同, 则确定信标帧 的域为本注册节点对应的目标域之一, 执行步骤 810, 否则执行步骤 812。  If the DNI of the received beacon frame is the same as the DNI of the target domain of the registered node, the domain of the beacon frame is determined to be one of the target domains corresponding to the registration node, and step 810 is performed; otherwise, step 812 is performed.
如果收到的域搜寻响应消息中的 DNI与本注册节点的一目标域的 DNI相同, 则确 定域搜寻响应消息的域为本注册节点对应的目标域之一, 执行步骤 810, 否则执行步骤 812。  If the DNI of the received domain search response message is the same as the DNI of the target domain of the registered node, the domain of the domain search response message is determined to be one of the target domains corresponding to the registration node, and step 810 is performed; otherwise, step 812 is performed. .
步骤 810: 注册节点将发出该搜寻响应消息或者信标帧的域节点所在域, 确定为本 注册节点可加入的目标域之一。 注册节点存储当前确定的各可加入的目标域, 以及当前可加入的目标域对应的消 息 (信标帧或者域搜寻响应消息) 的发送端地址 (DM或 BPR、 或者其他域节点地址), 以便在预定的时间限制届满后, 在多个可加入的目标域中确定一个最终目标域。 Step 810: The registration node sends the domain of the domain node of the search response message or the beacon frame, and determines one of the target domains that the registration node can join. The registration node stores the currently determined target domain that can be joined, and the sender address (DM or BPR, or other domain node address) of the message (beacon frame or domain search response message) corresponding to the currently available target domain, so that After the predetermined time limit expires, a final target domain is determined in the plurality of target domains that can be joined.
步骤 811 : 如果第二限定时间届满, 则执行步骤 812; 否则返回步骤 807。  Step 811: If the second limited time expires, step 812 is performed; otherwise, return to step 807.
本步骤与实施例 7中步骤 712同理。  This step is the same as step 712 in the seventh embodiment.
步骤 812: 注册节点在确定的所有可加入的目标域中, 确定最终目的域。  Step 812: The registration node determines the final destination domain in all the target domains that can be joined.
在多个可加入的目标域中确定一个最终目标域。  A final target domain is determined in a plurality of target domains that can be joined.
步骤 813: 注册节点向发出包含最终目的域的 DNI的搜寻响应消息的域节点发送 域注册请求。  Step 813: The registration node sends a domain registration request to the domain node that sends the search response message containing the DNI of the final destination domain.
本步骤与实施例 7中步骤 710同理。  This step is the same as step 710 in the seventh embodiment.
步骤 814: 注册节点当前无法加入已有域, 根据预定策略, 新建域。  Step 814: The registered node cannot join the existing domain at present, and the new domain is created according to the predetermined policy.
本步骤与实施例 7中步骤 713同理。  This step is the same as step 713 in the seventh embodiment.
由上可见, 本实施例与实施例 7所不同之处主要在于:  It can be seen from the above that the difference between this embodiment and the embodiment 7 is mainly as follows:
1、 在监测是否域搜寻响应消息过程中继续监测是否收到信标帧;  1. Continue to monitor whether a beacon frame is received during the process of monitoring whether the domain search response message is received;
2、 本实施例在监测域搜寻响应消息以及信标帧之后, 并非如实施例 7所述的将第 一个确定的可加入的目标域作为最终目标域, 而是监测时间限制届满后, 在多个可加入 的目标域中按照预定的策略选取一个作为最终目标域。  2. After the monitoring domain search response message and the beacon frame are in the monitoring domain, the first determined target domain that can be joined is not used as the final target domain as described in Embodiment 7, but after the monitoring time limit expires, A plurality of target domains that can be joined are selected according to a predetermined policy as a final target domain.
可见, 本实施例除了具备实施例 7所示的有益效果外, 还进一步具有以下的优点: It can be seen that, in addition to the beneficial effects shown in Embodiment 7, this embodiment further has the following advantages:
1、 由于上述的区别 1, 而进一步提高注册节点搜到已有目标域的几率; 1. The probability of the registered node searching for the existing target domain is further improved due to the difference 1 described above;
2、 在确定的多个可加入的目标域中按照预定的策略选取一个作为最终目标域。 有 利于选取其中最合适的域作为最终目标域, 有利于域网的最优化配置。  2. Select one as the final target domain according to a predetermined policy in the determined plurality of target domains that can be joined. It is beneficial to select the most suitable domain as the final target domain, which is beneficial to the optimal configuration of the domain network.
实施例 9:  Example 9
参见图 9所示。 本实施例提供了一种通信设备其主要包括: 接收单元 901, 发送单 元 902以及中央处理单元 903。  See Figure 9. This embodiment provides a communication device, which mainly includes: a receiving unit 901, a sending unit 902, and a central processing unit 903.
接收单元 901用于接收消息。 发送单元 902用于发送消息。  The receiving unit 901 is configured to receive a message. The transmitting unit 902 is configured to send a message.
中央处理单元 903, 分别与接收单元 901、 发送单元 902连接, 用于控制接收单元 901以及发送单元 902的工作, 具体工作原理如下:  The central processing unit 903 is connected to the receiving unit 901 and the sending unit 902, and is configured to control the operations of the receiving unit 901 and the sending unit 902. The specific working principle is as follows:
在接收单元 901 收到域搜寻请求消息之后, 如果通信设备所在域的域名标识与接 收单元 901收到的域搜寻请求消息域中包含的任一目标域的域名标识的相同, 并且, 在 本通信设备的发送单元 902反馈域搜寻响应消息(根据域搜寻请求消息反馈) 的反馈时 刻到达之前, 未收到包含注册节点的标识的域搜寻响应消息, 则中央处理单元 903控制 发送单元 902反馈域搜寻响应消息, 在反馈的域搜寻响应消息中包含注册节点的标识, 以供对端的注册节点以及可以根据该域搜寻响应消息确定本通信设备信息以及本域节 点所在域的信息, 而根据域搜寻响应消息向本通信设备发出域接入请求。 After the receiving unit 901 receives the domain search request message, if the domain name identifier of the domain in which the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message field received by the receiving unit 901, and in the present communication When the sending unit 902 of the device feeds back the feedback of the domain search response message (based on the domain search request message feedback) Before receiving the domain search response message, the central processing unit 903 controls the sending unit 902 to feed back the domain search response message, and includes the identifier of the registered node in the feedback domain search response message. The registration node of the terminal may determine the information of the communication device and the domain of the domain where the domain node is located according to the domain search response message, and issue a domain access request to the communication device according to the domain search response message.
在接收单元 901收到域搜寻请求消息之后, 中央处理单元 903根据本通信设备在 所在域中的实际情况, 根据域注册请求为注册节点执行域接入控制。 比如: 该通信设备 为 DM, 则通信设备根据域节点以及通信设备所在域的实际情况以及域注册请求, 判断 是否允许注册节点加入到域节点所在域, 并向注册节点反馈判断结果。  After receiving the domain search request message by the receiving unit 901, the central processing unit 903 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example, if the communication device is a DM, the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
该域节点不为 DM, 通信设备向域节点所在域的 DM转发域注册请求, 以供 DM 执行以下:  The domain node is not a DM, and the communication device forwards the domain registration request to the DM of the domain where the domain node is located, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。  According to the domain registration request, it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
更进一步的流程参见实施例 1、 2、 3的详细描述。  For further processing, see the detailed description of Examples 1, 2, and 3.
由上可见, 采用本实施例技术方案, 在任一域中应用本通信设备作为任一域节点 而言, 其在通信设备收到注册节点的域搜寻请求消息后, 如果本通信设备所在域为注册 节点的目标域之一后, 并且在收到该域搜寻请求消息之后, 在域搜寻响应消息的反馈时 刻到达之前, 未收到包含域搜寻请求消息中的注册节点的标识的域搜寻响应, 通信设备 才会广播反馈域搜寻响应消息, 以使注册节点可以根据该搜寻响应消息获知本注册节点 附近可以加入的目的域以及向通信设备发送域注册请求。  It can be seen from the above that, in the technical solution of the embodiment, if the communication device is used as any domain node in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is registered After one of the target domains of the node, and after receiving the domain search request message, before receiving the feedback time of the domain search response message, the domain search response including the identifier of the registered node in the domain search request message is not received, and the communication is received. The device broadcasts the feedback domain search response message, so that the registration node can learn the destination domain that can be joined near the registered node and send the domain registration request to the communication device according to the search response message.
相对于现有技术中各注册节点根据信标帧直接向 DM或者 BPR发送域注册请求的 技术方案而言, 本实施例技术方案具有以下优点:  Compared with the technical solution that the registration node sends a domain registration request to the DM or the BPR according to the beacon frame in the prior art, the technical solution of the embodiment has the following advantages:
第一: 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 注册节点无法收到 DM或者 BPR发出的消息。 应用本方案, 只要注册节 点的附近存在其他的域节点, 应用本实施例技术方案, 该注册节点仍然可以加入到该已 有的域中。 可见采用本实施例技术方案, 有利于提高注册节点加到已有的域中的几率, 避免由于无法发现已存在的目的域而新建域, 造成域名冲突的情况。  First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. The registered node cannot receive the message from the DM or BPR. With this solution, as long as there are other domain nodes in the vicinity of the registration node, the technical solution of the embodiment can be used, and the registration node can still join the existing domain. It can be seen that the technical solution of the embodiment is used to improve the probability that the registration node is added to the existing domain, and the domain name conflict may be avoided due to the failure to discover the existing destination domain.
第二: 域节点在收到注册节点发出的域搜寻请求消息后, 在判定本域节点所在域 为该注册节点的目标域后, 并且在反馈域搜寻响应消息之前未收到其他域节点对该域搜 寻请求的域搜寻响应消息, 才反馈域搜寻响应消息, 可以避免网络中各域节点针对一个 域域搜寻请求消息分别作出响应, 有利于避免网络消息冗余, 降低网络信令开销。 实施例 10: Second: after receiving the domain search request message sent by the registration node, the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message Domain search request domain search response message, feedback domain search response message, can avoid domain nodes in the network for one The domain domain search request message responds separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead. Example 10:
参见图 10所示。本实施例提供了一种通信设备, 其可以作为域中的 DM或者 BPR 应用, 其主要包括: 接收单元 1001, 发送单元 1002以及中央处理单元 1003。  See Figure 10. The present embodiment provides a communication device, which can be used as a DM or BPR application in a domain, and mainly includes: a receiving unit 1001, a sending unit 1002, and a central processing unit 1003.
接收单元 1001用于接收消息。 发送单元 1002用于发送消息。  The receiving unit 1001 is configured to receive a message. The transmitting unit 1002 is configured to send a message.
中央处理单元 1003, 分别与接收单元 1001、 发送单元 1002连接, 用于控制接收 单元 1001以及发送单元 1002的工作, 具体工作原理如下:  The central processing unit 1003 is connected to the receiving unit 1001 and the transmitting unit 1002, respectively, for controlling the operations of the receiving unit 1001 and the transmitting unit 1002. The specific working principle is as follows:
在接收单元 1001收到域搜寻请求消息之后, 如果通信设备所在域的域名标识与域 搜寻请求消息中包含的任一目标域的域名标识的相同, 并且, 在信标帧的下一发送时刻 到达之前, 未收到信标帧: 信标帧包含所述注册节点的标识, 并且未收到域搜寻响应消 息: 域搜寻响应消息包含所述注册节点的标识, 控制发送单元 1002发送信标帧, 在信 标帧中包含注册节点的标识, 以供对端的注册节点以及可以根据该信标帧确定本通信设 备信息以及本域节点所在域的信息, 而根据域搜寻响应消息向本通信设备发出域接入请 求。  After the receiving unit 1001 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message, and arrives at the next transmission time of the beacon frame. Previously, the beacon frame is not received: the beacon frame includes the identifier of the registered node, and the domain search response message is not received: the domain search response message includes the identifier of the registration node, and the control sending unit 1002 transmits the beacon frame. The identifier of the registration node is included in the beacon frame, and the registration node of the peer end and the information of the communication device and the domain of the domain node can be determined according to the beacon frame, and the domain is sent to the communication device according to the domain search response message. Access request.
在接收单元 1001收到注册请求后, 中央处理单元 1003根据本通信设备在所在域 中的实际情况, 根据域注册请求为注册节点执行域接入控制。 比如:  After receiving the registration request by the receiving unit 1001, the central processing unit 1003 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example:
该通信设备为 DM,则通信设备根据域节点以及通信设备所在域的实际情况以及域 注册请求, 判断是否允许注册节点加入到域节点所在域, 并向注册节点反馈判断结果。  The communication device is a DM, and the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
该域节点为 BPR, 通信设备向域节点所在域的 DM转发域注册请求, 以供 DM执 行以下:  The domain node is a BPR, and the communication device registers the domain with the DM forwarding domain of the domain where the domain node is located, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。  According to the domain registration request, it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
更进一步的流程参见实施例 4、 6的详细描述。  For further processing, see the detailed description of Examples 4 and 6.
由上可见, 采用本实施例技术方案, 在任一域中应用本通信设备作为任一 DM或 者 BPR而言, 其在通信设备收到注册节点的域搜寻请求消息后, 如果本通信设备所在 域为注册节点的目标域之一后, 并且在收到该域搜寻请求消息之后, 在信标帧的下一发 送时刻到达之前, 未收到包含域搜寻请求消息中的注册节点的标识的域搜寻响应, 通信 设备才会发送信标帧, 并且该信标帧中包含该域搜寻请求中包含的注册节点的标识, 从 而使得、 其他任何一域节点收到该信标帧后, 可以根据该信标帧确定 DM或者 BPR当 前是已经对该域搜寻请求消息反馈信标帧, 故这些域节点可以不响应上述域搜寻请求消 息, 有利于降低网络消息的冗余, 而降低网络信令开销。 It can be seen that, in the technical solution of the embodiment, if the communication device is used as any DM or BPR in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is After registering one of the target domains of the node, and after receiving the domain search request message, the domain search response including the identifier of the registered node in the domain search request message is not received before the next transmission time of the beacon frame arrives. The communication device sends the beacon frame, and the beacon frame includes the identifier of the registration node included in the domain search request, so that any other domain node can receive the beacon frame according to the beacon. The frame determines that the DM or BPR is currently feeding back the beacon frame for the domain search request message, so these domain nodes may not respond to the above domain search request cancellation. Interest, it is beneficial to reduce the redundancy of network messages, and reduce the network signaling overhead.
实施例 11:  Example 11
参见图 11所示。 本实施例提供了一种通信设备, 该通信设备特别适用于有信标帧 模式网络中的的非 DM非 BPR的普通域节点。  See Figure 11. The present embodiment provides a communication device that is particularly suitable for a non-DM non-BPR general domain node in a beacon frame mode network.
该通信设备主要包括: 接收单元 1101, 发送单元 1102以及中央处理单元 1103。 接收单元 1101用于接收消息。 发送单元 1102用于发送消息。  The communication device mainly includes: a receiving unit 1101, a transmitting unit 1102, and a central processing unit 1103. The receiving unit 1101 is configured to receive a message. The sending unit 1102 is configured to send a message.
中央处理单元 1103, 分别与接收单元 1101、发送单元 1102连接, 用于控制接收单 元 1101以及发送单元 1102的工作, 具体工作原理如下:  The central processing unit 1103 is connected to the receiving unit 1101 and the transmitting unit 1102, and is configured to control the operations of the receiving unit 1101 and the sending unit 1102. The specific working principle is as follows:
在接收单元 1101收到所述域搜寻请求消息之后, 如果通信设备所在域的域名标识 与接收单元 1101收到的域搜寻请求消息中包含的任一目标域的域名标识的相同, 并且, 在根据域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到信标帧(且信 标帧包含所述注册节点的标识), 并且未收到域搜寻响应消息 (且域搜寻响应消息包含 所述注册节点的标识), 则中央处理单元 1103控制发送单元 1102反馈域搜寻响应消息, 在域搜寻响应消息中包含注册节点的标识, 以供对端的注册节点以及可以根据该域搜寻 响应消息确定本通信设备信息以及本域节点所在域的信息, 而根据域搜寻响应消息向本 通信设备发出域接入请求。  After the receiving unit 1101 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message received by the receiving unit 1101, and The domain search request message feedback domain search response message arrives before the feedback time arrives, the beacon frame is not received (and the beacon frame contains the identity of the registered node), and the domain search response message is not received (and the domain search response message includes The central processing unit 1103 controls the sending unit 1102 to feed back the domain search response message, and the domain search response message includes the identifier of the registration node for the registration node of the opposite end and can determine according to the domain search response message. The communication device information and the information of the domain where the domain node is located, and the domain access request message is sent to the communication device according to the domain search response message.
以及, 在接收单元 1101收到注册请求后, 中央处理单元 1103根据注册请求, 为发 出所述注册请求的注册节点执行域接入控制。 比如:  And, after the receiving unit 1101 receives the registration request, the central processing unit 1103 performs domain access control for the registered node that issued the registration request according to the registration request. For example:
通信设备向域节点所在域的 DM转发域注册请求, 或者通过本通信设备与 DM连 接的 BPR作为中继向 DM转发该域注册请求, 以供 DM执行以下:  The communication device forwards the domain registration request to the DM of the domain where the domain node is located, or forwards the domain registration request to the DM through the BPR connected to the DM by the communication device, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。  According to the domain registration request, it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
更进一步的流程参见实施例 5、 6的详细描述。  For further processing, see the detailed description of Examples 5 and 6.
由上可见, 本实施例与实施例 9同理, 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置 超出了该域中 DM或者 BPR的覆盖范围,注册节点无法收到 DM或者 BPR发出的信标 帧。 在该情形下, 只要注册节点的附近存在本通信设备所示的域节点, 应用本实施例技 术方案, 该注册节点仍然可以根据本通信设备反馈的域搜寻响应消息加入到该已有的域 中, 可见采用本实施例技术方案, 有利于提高注册节点加到已有的域中的几率, 避免由 于无法发现已存在的目的域而新建域, 造成域名冲突的情况。 第二: 对于任何一域的任一域节点而言, 通信设备在收到注册节点发出的域搜寻 请求消息后, 只有在判定本通信设备所在域为该注册节点的目标域后, 并且在本通信设 备反馈域搜寻响应消息的反馈时刻之前, 只有未收到其他域节点对该域搜寻请求的域搜 寻响应消息也未受到 DM或 BPR对该域搜寻响应请求消息反馈的信标帧, 本通信设备 才根据该域搜寻请求消息反馈域搜寻响应消息, 有利于避免网络消息冗余, 降低网络信 令开销。 It can be seen from the above that the embodiment is the same as the embodiment 9, and adopts the technical solution of the embodiment, even in the following situation: the destination domain of the registered node already exists, but the current registered node is located at the edge of the destination domain, and the registered node is located beyond The coverage of the DM or BPR in the domain, the registration node cannot receive the beacon frame sent by the DM or the BPR. In this case, as long as the domain node shown by the communication device exists in the vicinity of the registration node, the domain node may still be added to the existing domain according to the domain search response message fed back by the communication device. It can be seen that the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain. Second: for any domain node of any domain, after receiving the domain search request message sent by the registration node, the communication device only determines that the domain of the communication device is the target domain of the registered node, and Before the feedback moment of the communication device feedback domain search response message, only the domain search response message that the other domain node does not receive the domain search request message is not received by the DM or BPR, and the beacon frame that is fed back to the domain search response request message, the communication The device feeds back the domain search response message according to the domain search request message, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
实施例 12:  Example 12:
参见图 12所示, 本实施例提供了一种通信设备, 该通信设备特别适用于有信标帧 模式网络, 该通信设备在作为注册节点时的域搜寻能力更强。  Referring to Figure 12, the present embodiment provides a communication device that is particularly suitable for use in a beacon frame mode network, which has a stronger domain search capability when used as a registration node.
该通信设备主要包括: 接收单元 1201, 发送单元 1202以及中央处理单元 1203。 中央处理单元 1203, 分别与接收单元 1201、 发送单元 1202连接, 用于控制接收 单元 1201以及发送单元 1202的工作, 具体工作原理如下:  The communication device mainly includes: a receiving unit 1201, a transmitting unit 1202, and a central processing unit 1203. The central processing unit 1203 is connected to the receiving unit 1201 and the sending unit 1202, respectively, for controlling the operations of the receiving unit 1201 and the transmitting unit 1202. The specific working principle is as follows:
如果接收单元 1201在信标帧的监测周期内未收到信标帧, 或者收到的信标帧未包 含注册节点的任一目标域的域名标识时, 中央处理单元 1203控制发送单元 1202广播发 送域搜寻请求消息, 在域搜寻请求消息包含本通信设备的标识;  If the receiving unit 1201 does not receive the beacon frame within the monitoring period of the beacon frame, or the received beacon frame does not include the domain name identifier of any target domain of the registered node, the central processing unit 1203 controls the transmitting unit 1202 to broadcast and transmit. a domain search request message, where the domain search request message includes an identifier of the communication device;
在接收单元 1201收到域搜寻响应消息之后, 如果域搜寻响应消息包括: 注册节点 的任一目标域的域名标识时, 中央处理单元 1203根据域搜寻响应消息, 确定最终目的 域, 以及中央处理单元 1203控制发送单元 1202根据域搜寻响应消息(包含所述最终目 的域的域名标识的域搜寻响应消息)发送域注册请求, 在域注册请求中包含加入最终目 的域的请求, 以便对端的域节点根据该注册请求为该注册节点执行响应的域接入流程, 如果该域节点为 DM, 则直接执行域接入控制, 否则转发给本域的 DM, 以便该 DM执 行域接入控制。  After the receiving unit 1201 receives the domain search response message, if the domain search response message includes: registering the domain name identifier of any target domain of the node, the central processing unit 1203 determines the final destination domain according to the domain search response message, and the central processing unit. The 1203 control sending unit 1202 sends a domain registration request according to the domain search response message (the domain search response message including the domain name identifier of the final destination domain), and includes a request for joining the final destination domain in the domain registration request, so that the domain node of the opposite end is configured according to The registration request is a domain access procedure for the registration node to perform a response. If the domain node is a DM, the domain access control is directly performed, otherwise, the DM is forwarded to the local domain, so that the DM performs domain access control.
更进一步的流程详细参见实施例 1-11中的相应内容所示, 在此不作赘述。  For further details, refer to the corresponding content in the embodiment 1-11, and no further details are provided herein.
由上可见, 应用本实施例技术方案, 本通信设备在作为注册节点时, 在通过信标 帧加入域失败后,还进一步主动发出域搜寻请求, 以等待域搜寻响应消息加入域,这样, 只要通信设备附近存在目标域, 无论该域是有信标模式还是无信标模式, 无论该通信设 备是否在该有信标模式的域中的 DM或者 BPR的覆盖范围内, 只要该目标域的任一域 节点可以与通信设备直接通信, 则通信设备即可加入该已有的目标域, 而不会新建域, 相对于现有技术采用本实施例技术方案有利于提高通信设备搜寻到已有目标域的几率, 避免在已存在通信设备目标域的情况下通信设备仍然新建域而导致网络中存在 DNI相 同的两域, 影响通信网络上各个域的正常工作。 It can be seen that, when applying the technical solution of the embodiment, the communication device, when acting as a registration node, further actively sends a domain search request after joining the domain through the beacon frame, waiting for the domain search response message to join the domain, so that A target domain exists in the vicinity of the communication device, whether the domain is in a beacon mode or a non-beacon mode, regardless of whether the communication device is within the coverage of the DM or BPR in the domain with the beacon mode, as long as the target domain is any A domain node can directly communicate with the communication device, and the communication device can join the existing target domain without creating a new domain. Compared with the prior art, the technical solution of the embodiment is beneficial to improve the communication device to search for an existing target. The probability of the domain, avoiding that the communication device is still creating a new domain in the presence of the communication device target domain, resulting in the presence of DNI phase in the network. The same two domains affect the normal operation of each domain on the communication network.
实施例 13:  Example 13
参见图 13所示。 本实施例提供了一种通信设备其主要包括: 接收器 1301, 发送器 1302以及中央处理器 1303。  See Figure 13. The embodiment provides a communication device mainly comprising: a receiver 1301, a transmitter 1302 and a central processing unit 1303.
接收器 1301用于接收消息。 发送器 1302用于发送消息。  Receiver 1301 is for receiving messages. Transmitter 1302 is used to send a message.
中央处理器 1303, 分别与接收器 1301、 发送器 1302连接, 用于控制接收器 1301 以及发送器 1302的工作, 具体工作原理如下:  The central processing unit 1303 is connected to the receiver 1301 and the transmitter 1302, respectively, for controlling the operations of the receiver 1301 and the transmitter 1302. The specific working principle is as follows:
在接收器 1301收到域搜寻请求消息之后, 如果通信设备所在域的域名标识与接收 器 1301 收到的域搜寻请求消息域中包含的任一目标域的域名标识的相同, 并且, 在本 通信设备的发送器 1302反馈域搜寻响应消息 (根据域搜寻请求消息反馈) 的反馈时刻 到达之前, 未收到包含注册节点的标识的域搜寻响应消息, 则中央处理器 1303控制发 送器 1302反馈域搜寻响应消息, 在反馈的域搜寻响应消息中包含注册节点的标识, 以 供对端的注册节点以及可以根据该域搜寻响应消息确定本通信设备信息以及本域节点 所在域的信息, 而根据域搜寻响应消息向本通信设备发出域接入请求。  After the receiver 1301 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message field received by the receiver 1301, and in the communication The transmitter 1302 of the device feeds back the domain search response message (based on the domain search request message feedback) before the arrival of the feedback time, and does not receive the domain search response message including the identifier of the registered node, the central processor 1303 controls the transmitter 1302 to feedback the domain search. In response to the message, the domain search response message in the feedback includes the identifier of the registration node, and the registration node of the peer end can determine the information of the communication device and the domain of the domain node according to the domain search response message, and respond according to the domain search. The message issues a domain access request to the communication device.
在接收器 1301收到域搜寻请求消息之后, 中央处理器 1303根据本通信设备在所 在域中的实际情况, 根据域注册请求为注册节点执行域接入控制。 比如: 该通信设备为 DM, 则通信设备根据域节点以及通信设备所在域的实际情况以及域注册请求, 判断是 否允许注册节点加入到域节点所在域, 并向注册节点反馈判断结果。  After receiving the domain search request message by the receiver 1301, the central processor 1303 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example, if the communication device is a DM, the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
该域节点不为 DM, 通信设备向域节点所在域的 DM转发域注册请求, 以供 DM 执行以下:  The domain node is not a DM, and the communication device forwards the domain registration request to the DM of the domain where the domain node is located, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。  According to the domain registration request, it is determined whether the registration node is allowed to join the domain of the domain node, and the domain node is used as a relay node to feed back the judgment result to the registration node.
更进一步的流程参见实施例 1、 2、 3的详细描述。  For further processing, see the detailed description of Examples 1, 2, and 3.
由上可见, 采用本实施例技术方案, 在任一域中应用本通信设备作为任一域节点 而言, 其在通信设备收到注册节点的域搜寻请求消息后, 如果本通信设备所在域为注册 节点的目标域之一后, 并且在收到该域搜寻请求消息之后, 在域搜寻响应消息的反馈时 刻到达之前, 未收到包含域搜寻请求消息中的注册节点的标识的域搜寻响应, 通信设备 才会广播反馈域搜寻响应消息, 以使注册节点可以根据该搜寻响应消息获知本注册节点 附近可以加入的目的域以及向通信设备发送域注册请求。  It can be seen from the above that, in the technical solution of the embodiment, if the communication device is used as any domain node in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is registered After one of the target domains of the node, and after receiving the domain search request message, before receiving the feedback time of the domain search response message, the domain search response including the identifier of the registered node in the domain search request message is not received, and the communication is received. The device broadcasts the feedback domain search response message, so that the registration node can learn the destination domain that can be joined near the registered node and send the domain registration request to the communication device according to the search response message.
相对于现有技术中各注册节点根据信标帧直接向 DM或者 BPR发送域注册请求的 技术方案而言, 本实施例技术方案具有以下优点: Relative to the prior art, each registered node directly sends a domain registration request to the DM or the BPR according to the beacon frame. In terms of technical solutions, the technical solution of the embodiment has the following advantages:
第一: 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置超出了该域中 DM或者 BPR 的覆盖范围, 注册节点无法收到 DM或者 BPR发出的消息。 应用本方案, 只要注册节 点的附近存在其他的域节点, 应用本实施例技术方案, 该注册节点仍然可以加入到该已 有的域中。 可见采用本实施例技术方案, 有利于提高注册节点加到已有的域中的几率, 避免由于无法发现已存在的目的域而新建域, 造成域名冲突的情况。  First: With the technical solution of the embodiment, even in the following situation: the destination domain of the registration node already exists, but the current registration node is located at the edge of the destination domain, and the location of the registration node exceeds the coverage of the DM or BPR in the domain. The registered node cannot receive the message from the DM or BPR. With this solution, as long as there are other domain nodes in the vicinity of the registration node, the technical solution of the embodiment can be used, and the registration node can still join the existing domain. It can be seen that the technical solution of the embodiment is used to improve the probability that the registration node is added to the existing domain, and the domain name conflict may be avoided due to the failure to discover the existing destination domain.
第二: 域节点在收到注册节点发出的域搜寻请求消息后, 在判定本域节点所在域 为该注册节点的目标域后, 并且在反馈域搜寻响应消息之前未收到其他域节点对该域搜 寻请求的域搜寻响应消息, 才反馈域搜寻响应消息, 可以避免网络中各域节点针对一个 域域搜寻请求消息分别作出响应, 有利于避免网络消息冗余, 降低网络信令开销。  Second: after receiving the domain search request message sent by the registration node, the domain node determines that the domain of the domain node is the target domain of the registration node, and does not receive other domain nodes before the feedback domain search response message The domain search response message of the domain search request feedback domain search response message can prevent each domain node in the network from responding to a domain search request message separately, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
实施例 14:  Example 14
参见图 14所示。本实施例提供了一种通信设备, 其可以作为域中的 DM或者 BPR 应用, 其主要包括: 接收器 1401, 发送器 1402以及中央处理器 1403。  See Figure 14. This embodiment provides a communication device, which can be used as a DM or BPR application in a domain, and mainly includes: a receiver 1401, a transmitter 1402, and a central processing unit 1403.
接收器 1401用于接收消息。 发送器 1402用于发送消息。  Receiver 1401 is for receiving messages. Transmitter 1402 is used to send a message.
中央处理器 1403, 分别与接收器 1401、 发送器 1402连接, 用于控制接收器 1401 以及发送器 1402的工作, 具体工作原理如下:  The central processing unit 1403 is connected to the receiver 1401 and the transmitter 1402, respectively, for controlling the operations of the receiver 1401 and the transmitter 1402. The specific working principle is as follows:
在接收器 1401收到域搜寻请求消息之后, 如果通信设备所在域的域名标识与域搜 寻请求消息中包含的任一目标域的域名标识的相同, 并且, 在信标帧的下一发送时刻到 达之前,未收到信标帧:信标帧包含所述注册节点的标识,并且未收到域搜寻响应消息: 域搜寻响应消息包含所述注册节点的标识, 控制发送器 1402发送信标帧, 在信标帧中 包含注册节点的标识, 以供对端的注册节点以及可以根据该信标帧确定本通信设备信息 以及本域节点所在域的信息, 而根据域搜寻响应消息向本通信设备发出域接入请求。  After the receiver 1401 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message, and arrives at the next transmission time of the beacon frame. Previously, the beacon frame was not received: the beacon frame contains the identity of the registered node, and the domain search response message is not received: the domain search response message includes the identity of the registration node, and the control transmitter 1402 transmits the beacon frame. The identifier of the registration node is included in the beacon frame, and the registration node of the peer end and the information of the communication device and the domain of the domain node can be determined according to the beacon frame, and the domain is sent to the communication device according to the domain search response message. Access request.
在接收器 1401收到注册请求后, 中央处理器 1403根据本通信设备在所在域中的 实际情况, 根据域注册请求为注册节点执行域接入控制。 比如:  After receiving the registration request by the receiver 1401, the central processing unit 1403 performs domain access control for the registered node according to the domain registration request according to the actual situation of the communication device in the domain. For example:
该通信设备为 DM,则通信设备根据域节点以及通信设备所在域的实际情况以及域 注册请求, 判断是否允许注册节点加入到域节点所在域, 并向注册节点反馈判断结果。  The communication device is a DM, and the communication device determines whether the registration node is allowed to join the domain of the domain node according to the actual situation of the domain node and the domain where the communication device is located and the domain registration request, and feeds back the judgment result to the registration node.
该域节点为 BPR, 通信设备向域节点所在域的 DM转发域注册请求, 以供 DM执 行以下:  The domain node is a BPR, and the communication device registers the domain with the DM forwarding domain of the domain where the domain node is located, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。 According to the domain registration request and determining whether the registration node is allowed to join the domain of the domain node, and through the domain section The point serves as a relay node and feeds back the judgment result to the registration node.
更进一步的流程参见实施例 4、 6的详细描述。  For further processing, see the detailed description of Examples 4 and 6.
由上可见, 采用本实施例技术方案, 在任一域中应用本通信设备作为任一 DM或 者 BPR而言, 其在通信设备收到注册节点的域搜寻请求消息后, 如果本通信设备所在 域为注册节点的目标域之一后, 并且在收到该域搜寻请求消息之后, 在信标帧的下一发 送时刻到达之前, 未收到包含域搜寻请求消息中的注册节点的标识的域搜寻响应, 通信 设备才会发送信标帧, 并且该信标帧中包含该域搜寻请求中包含的注册节点的标识, 从 而使得、 其他任何一域节点收到该信标帧后, 可以根据该信标帧确定 DM或者 BPR当 前是已经对该域搜寻请求消息反馈信标帧, 故这些域节点可以不响应上述域搜寻请求消 息, 有利于降低网络消息的冗余, 而降低网络信令开销。  It can be seen that, in the technical solution of the embodiment, if the communication device is used as any DM or BPR in any domain, after the communication device receives the domain search request message of the registration node, if the domain of the communication device is After registering one of the target domains of the node, and after receiving the domain search request message, the domain search response including the identifier of the registered node in the domain search request message is not received before the next transmission time of the beacon frame arrives. The communication device sends the beacon frame, and the beacon frame includes the identifier of the registration node included in the domain search request, so that any other domain node can receive the beacon frame according to the beacon. The frame determines that the DM or the BPR is currently reporting the beacon frame for the domain search request message. Therefore, the domain nodes may not respond to the domain search request message, which is beneficial to reducing network message redundancy and reducing network signaling overhead.
实施例 15:  Example 15
参见图 15所示。 本实施例提供了一种通信设备, 该通信设备特别适用于有信标帧 模式网络中的的非 DM非 BPR的普通域节点。  See Figure 15. The present embodiment provides a communication device that is particularly suitable for a non-DM non-BPR general domain node in a beacon frame mode network.
该通信设备主要包括: 接收器 1501, 发送器 1502以及中央处理器 1503。  The communication device mainly includes: a receiver 1501, a transmitter 1502, and a central processing unit 1503.
接收器 1501用于接收消息。 发送器 1502用于发送消息。  The receiver 1501 is for receiving a message. Transmitter 1502 is used to send a message.
中央处理器 1503, 分别与接收器 1501、 发送器 1502连接, 用于控制接收器 1501 以及发送器 1502的工作, 具体工作原理如下:  The central processing unit 1503 is respectively connected to the receiver 1501 and the transmitter 1502 for controlling the operations of the receiver 1501 and the transmitter 1502. The specific working principle is as follows:
在接收器 1501收到所述域搜寻请求消息之后, 如果通信设备所在域的域名标识与 接收器 1501 收到的域搜寻请求消息中包含的任一目标域的域名标识的相同, 并且, 在 根据域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到信标帧(且信标 帧包含所述注册节点的标识), 并且未收到域搜寻响应消息 (且域搜寻响应消息包含所 述注册节点的标识), 则中央处理器 1503控制发送器 1502反馈域搜寻响应消息, 在域 搜寻响应消息中包含注册节点的标识, 以供对端的注册节点以及可以根据该域搜寻响应 消息确定本通信设备信息以及本域节点所在域的信息, 而根据域搜寻响应消息向本通信 设备发出域接入请求。  After the receiver 1501 receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any target domain included in the domain search request message received by the receiver 1501, and The domain search request message feedback domain search response message arrives before the feedback time arrives, the beacon frame is not received (and the beacon frame contains the identity of the registered node), and the domain search response message is not received (and the domain search response message includes The central processor 1503 controls the transmitter 1502 to feedback the domain search response message, and the domain search response message includes the identifier of the registration node for the registration node of the opposite end and can determine the response message according to the domain. The communication device information and the information of the domain where the domain node is located, and the domain access request message is sent to the communication device according to the domain search response message.
以及, 在接收器 1501收到注册请求后, 中央处理器 1503根据注册请求, 为发出 所述注册请求的注册节点执行域接入控制。 比如:  And, after the receiver 1501 receives the registration request, the central processor 1503 performs domain access control for the registration node that issues the registration request according to the registration request. For example:
通信设备向域节点所在域的 DM转发域注册请求, 或者通过本通信设备与 DM连 接的 BPR作为中继向 DM转发该域注册请求, 以供 DM执行以下:  The communication device forwards the domain registration request to the DM of the domain where the domain node is located, or forwards the domain registration request to the DM through the BPR connected to the DM by the communication device, so that the DM performs the following:
根据域注册请求以及判断是否允许注册节点加入到域节点所在域, 且通过该域节 点作为中继节点向注册节点反馈判断结果。 According to the domain registration request and determining whether the registration node is allowed to join the domain of the domain node, and through the domain section The point serves as a relay node and feeds back the judgment result to the registration node.
更进一步的流程参见实施例 5、 6的详细描述。  For further processing, see the detailed description of Examples 5 and 6.
由上可见, 本实施例与实施例 9同理, 采用本实施例技术方案, 即使在以下情形: 注册节点的目的域已经存在, 但是当前注册节点位于目的域的边缘, 注册节点所处位置 超出了该域中 DM或者 BPR的覆盖范围,注册节点无法收到 DM或者 BPR发出的信标 帧。 在该情形下, 只要注册节点的附近存在本通信设备所示的域节点, 应用本实施例技 术方案, 该注册节点仍然可以根据本通信设备反馈的域搜寻响应消息加入到该已有的域 中, 可见采用本实施例技术方案, 有利于提高注册节点加到已有的域中的几率, 避免由 于无法发现已存在的目的域而新建域, 造成域名冲突的情况。  It can be seen from the above that the embodiment is the same as the embodiment 9, and adopts the technical solution of the embodiment, even in the following situation: the destination domain of the registered node already exists, but the current registered node is located at the edge of the destination domain, and the registered node is located beyond The coverage of the DM or BPR in the domain, the registration node cannot receive the beacon frame sent by the DM or the BPR. In this case, as long as the domain node shown by the communication device exists in the vicinity of the registration node, the domain node may still be added to the existing domain according to the domain search response message fed back by the communication device. It can be seen that the technical solution of the embodiment is adopted, which is advantageous for increasing the probability that the registration node is added to the existing domain, and avoiding the situation that the domain name conflicts due to the failure to discover the existing destination domain.
第二: 对于任何一域的任一域节点而言, 通信设备在收到注册节点发出的域搜寻 请求消息后, 只有在判定本通信设备所在域为该注册节点的目标域后, 并且在本通信设 备反馈域搜寻响应消息的反馈时刻之前, 只有未收到其他域节点对该域搜寻请求的域搜 寻响应消息也未受到 DM或 BPR对该域搜寻响应请求消息反馈的信标帧, 本通信设备 才根据该域搜寻请求消息反馈域搜寻响应消息, 有利于避免网络消息冗余, 降低网络信 令开销。  Second: for any domain node of any domain, after receiving the domain search request message sent by the registration node, the communication device only determines that the domain of the communication device is the target domain of the registered node, and Before the feedback moment of the communication device feedback domain search response message, only the domain search response message that the other domain node does not receive the domain search request message is not received by the DM or BPR, and the beacon frame that is fed back to the domain search response request message, the communication The device feeds back the domain search response message according to the domain search request message, which is beneficial to avoid network message redundancy and reduce network signaling overhead.
实施例 12:  Example 12:
参见图 16所示, 本实施例提供了一种通信设备, 该通信设备特别适用于有信标帧 模式网络, 该通信设备在作为注册节点时的域搜寻能力更强。  Referring to FIG. 16, the embodiment provides a communication device, which is particularly suitable for a beacon frame mode network, and the communication device has a stronger domain search capability when it is used as a registration node.
该通信设备主要包括: 接收器 1601, 发送器 1602以及中央处理器 1603。  The communication device mainly includes: a receiver 1601, a transmitter 1602, and a central processing unit 1603.
中央处理器 1603, 分别与接收器 1601、 发送器 1602连接, 用于控制接收器 1601 以及发送器 1602的工作, 具体工作原理如下:  The central processing unit 1603 is connected to the receiver 1601 and the transmitter 1602 respectively for controlling the operations of the receiver 1601 and the transmitter 1602. The specific working principle is as follows:
如果接收器 1601在信标帧的监测周期内未收到信标帧, 或者收到的信标帧未包含 注册节点的任一目标域的域名标识时, 中央处理器 1603控制发送器 1602广播发送域搜 寻请求消息, 在域搜寻请求消息包含本通信设备的标识;  If the receiver 1601 does not receive the beacon frame within the monitoring period of the beacon frame, or the received beacon frame does not include the domain name identifier of any of the target domains of the registered node, the central processor 1603 controls the transmitter 1602 to broadcast and transmit. a domain search request message, where the domain search request message includes an identifier of the communication device;
在接收器 1601收到域搜寻响应消息之后, 如果域搜寻响应消息包括: 注册节点的 任一目标域的域名标识时, 中央处理器 1603根据域搜寻响应消息, 确定最终目的域, 以及中央处理器 1603控制发送器 1602根据域搜寻响应消息(包含所述最终目的域的域 名标识的域搜寻响应消息)发送域注册请求, 在域注册请求中包含加入最终目的域的请 求, 以便对端的域节点根据该注册请求为该注册节点执行响应的域接入流程, 如果该域 节点为 DM, 则直接执行域接入控制, 否则转发给本域的 DM, 以便该 DM执行域接入 控制。 After the receiver 1601 receives the domain search response message, if the domain search response message includes: registering the domain name identifier of any target domain of the node, the central processor 1603 determines the final destination domain and the central processor according to the domain search response message. The 1603 control transmitter 1602 sends a domain registration request according to the domain search response message (the domain search response message including the domain name identifier of the final destination domain), and includes a request for joining the final destination domain in the domain registration request, so that the domain node of the opposite end is based on The registration request is a domain access procedure for the registration node to perform a response. If the domain node is a DM, the domain access control is directly performed, otherwise the DM is forwarded to the local domain, so that the DM performs domain access. Control.
更进一步的流程详细参见实施例 1-11中的相应内容所示, 在此不作赘述。  For further details, refer to the corresponding content in the embodiment 1-11, and no further details are provided herein.
由上可见, 应用本实施例技术方案, 本通信设备在作为注册节点时, 在通过信标 帧加入域失败后,还进一步主动发出域搜寻请求, 以等待域搜寻响应消息加入域,这样, 只要通信设备附近存在目标域, 无论该域是有信标模式还是无信标模式, 无论该通信设 备是否在该有信标模式的域中的 DM或者 BPR的覆盖范围内, 只要该目标域的任一域 节点可以与通信设备直接通信, 则通信设备即可加入该已有的目标域, 而不会新建域, 相对于现有技术采用本实施例技术方案有利于提高通信设备搜寻到已有目标域的几率, 避免在已存在通信设备目标域的情况下通信设备仍然新建域而导致网络中存在 DNI相 同的两域, 影响通信网络上各个域的正常工作。  It can be seen that, when applying the technical solution of the embodiment, the communication device, when acting as a registration node, further actively sends a domain search request after joining the domain through the beacon frame, waiting for the domain search response message to join the domain, so that A target domain exists in the vicinity of the communication device, whether the domain is in a beacon mode or a non-beacon mode, regardless of whether the communication device is within the coverage of the DM or BPR in the domain with the beacon mode, as long as the target domain is any A domain node can directly communicate with the communication device, and the communication device can join the existing target domain without creating a new domain. Compared with the prior art, the technical solution of the embodiment is beneficial to improve the communication device to search for an existing target. The probability of the domain, to avoid the communication device still creating a new domain in the case where the communication device target domain already exists, resulting in the existence of the same two domains of the DNI in the network, affecting the normal operation of each domain on the communication network.
需要说明的是, 上述各实施例所述的通信设备主要是该设备可以用于作为通信网 络中的通信节点 (具体某一域中称为域节点)而命名, 但实际上该通信设备除了用于通 信外可以用于实现其他的功能, 譬如具体可以为电力线通信设备。  It should be noted that the communication device described in the foregoing embodiments is mainly that the device can be used as a communication node in a communication network (referred to as a domain node in a specific domain), but in fact, the communication device is used in addition to It can be used to implement other functions outside of communication, such as power line communication equipment.
上述各实施例中的的信标帧可以为各个类型的信标帧, 譬如:  The beacon frames in the above embodiments may be various types of beacon frames, such as:
如果本通信设备在网络的域中为 DM时, 其发出的为信标帧。  If the communication device is a DM in the domain of the network, it sends a beacon frame.
如果本通信设备在网络的域中为 BPR时, 其发出的为 R-信标帧。  If the communication device is BPR in the domain of the network, it sends an R-beacon frame.
以上所描述的装置实施例仅仅是示意性的, 其中所述作为分离部件说明的单元可 以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单 元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选 择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出 创造性的劳动的情况下, 即可以理解并实施。  The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, ie may be located One place, or it can be distributed to multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without the creative labor.
通过以上的实施方式的描述, 本领域的技术人员可以清楚地了解到各实施方式可 借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解, 上述技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出 来, 该计算机软件产品可以存储在计算机可读存储介质中, 如 ROM/RAM、 磁碟、 光盘 等, 包括若干指令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者电力线 通信设备等) 执行各个实施例或者实施例的某些部分所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the various embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the above-described technical solutions may be embodied in the form of software products in essence or in the form of software products, which may be stored in a computer readable storage medium such as ROM/RAM, magnetic Discs, optical discs, etc., include instructions for causing a computer device (which may be a personal computer, server, or power line communication device, etc.) to perform the methods described in various embodiments or portions of the embodiments.
以上所述的实施方式, 并不构成对该技术方案保护范围的限定。 任何在上述实施 方式的精神和原则之内所作的修改、 等同替换和改进等, 均应包含在该技术方案的保护 范围之内。  The above-described embodiments do not constitute a limitation on the scope of protection of the technical solutions. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the above-described embodiments are intended to be included within the scope of the technical solutions.

Claims

权利要求 Rights request
1、 一种域接入控制的方法, 其特征在于, 包括: 1. A domain access control method, characterized by including:
域节点接收域搜寻请求消息, 所述域搜寻请求消息包含信息: 注册节点的标识、 以及所述注册节点对应的各目标域的域名标识; The domain node receives a domain search request message, and the domain search request message includes information: the identification of the registration node, and the domain name identification of each target domain corresponding to the registration node;
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的任一所述目标 域的域名标识的相同, If the domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message,
并且, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未 收到域搜寻响应消息, 所述域搜寻请求消息包含所述注册节点的标识, 贝 IJ : Moreover, before the feedback time of the domain search response message according to the domain search request message arrives, the domain search response message is not received, and the domain search request message includes the identification of the registration node, and then:
所述域节点反馈所述域搜寻响应消息; The domain node feeds back the domain search response message;
所述域节点接收所述注册节点发出的所述域注册请求, The domain node receives the domain registration request sent by the registration node,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制。 The domain node performs domain access control for the registration node according to the domain registration request.
2、 根据权利要求 1所述的域接入控制的方法, 其特征在于, 2. The method of domain access control according to claim 1, characterized in that,
所述域节点具体是以广播发送的方式, 反馈所述域搜寻响应消息。 Specifically, the domain node feeds back the domain search response message in a broadcast transmission manner.
3、 根据权利要求 1或 2所述的域接入控制的方法, 其特征在于, 3. The domain access control method according to claim 1 or 2, characterized in that,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制, 具体是: 如果所述域节点为: 主域控制器, 则所述域节点根据所述域节点以及所述域节点 所在域的实际情况以及所述域注册请求,判断是否允许注册节点加入到所述域节点所在 域, 并向所述注册节点反馈判断结果; The domain node performs domain access control for the registration node according to the domain registration request, specifically: if the domain node is: a primary domain controller, then the domain node performs domain access control according to the domain node and the domain Based on the actual situation of the domain where the node is located and the domain registration request, determine whether the registered node is allowed to join the domain where the domain node is located, and feed back the judgment result to the registered node;
否则, 所述域节点向所述域节点所在域的主域控制器转发所述域注册请求, 以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 Otherwise, the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, so that the primary domain controller can determine whether to allow the registration node to join the domain according to the domain registration request. The domain where the domain node is located, and the judgment result is fed back to the registration node.
4、 根据权利要求 1或 2所述的域接入控制的方法, 其特征在于, 4. The domain access control method according to claim 1 or 2, characterized in that,
在步骤: 域节点接收域搜寻请求消息之后, 还包括: In step: After the domain node receives the domain search request message, it also includes:
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的所有所述目标 域的域名标识的均不相同, If the domain name identifier of the domain where the domain node is located is different from the domain name identifiers of all the target domains included in the domain search request message,
或者, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 有 收到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点的标识, 贝 IJ : Or, before the feedback time of the domain search response message according to the domain search request message arrives, a domain search response message is received: The domain search response message includes the identification of the registration node, and then:
所述域节点忽略所述域搜寻请求消息。 The domain node ignores the domain search request message.
5、 根据权利要求 1或 2所述的域接入控制的方法, 其特征在于, 所述反馈时刻, 具体为: 5. The method of domain access control according to claim 1 or 2, characterized in that, The feedback moment is specifically:
在收到所述域搜寻请求消后, 等待一随机时间间隔时间后的时刻, After receiving the domain search request, wait for a random time interval,
所述随机时间间隔为: 所述域节点收到所述域搜寻请求消息后, 计算获取的一时 间间隔随机值。 The random time interval is: after the domain node receives the domain search request message, it calculates a random value of a time interval obtained.
6、 根据权利要求 1或 2所述的域接入控制的方法, 其特征在于, 6. The domain access control method according to claim 1 or 2, characterized in that,
所述域节点为: 所述主域控制器, The domain node is: the primary domain controller,
所述广播域搜寻响应消息的反馈时刻, 具体为: The feedback time of the broadcast domain search response message is specifically:
在收到所述域搜寻请求消后, 等待零时间间隔后的时刻。 After receiving the domain search request, wait for the time after the zero time interval.
7、 一种域接入控制的方法, 其特征在于, 包括: 7. A domain access control method, characterized by including:
域节点接收域搜寻请求消息, 所述域节点为: 主域控制器或者信标代理, 所述域搜寻请求消息包含信息: 注册节点的标识、 以及所述注册节点对应的各目 标域的域名标识; The domain node receives the domain search request message. The domain node is: a primary domain controller or a beacon agent. The domain search request message includes information: the identification of the registration node, and the domain name identification of each target domain corresponding to the registration node. ;
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的任一所述目标 域的域名标识的相同, If the domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message,
并且, 在信标帧的下一发送时刻到达之前, 未收到信标帧: 所述信标帧包含所述 注册节点的标识, 并且未收到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点 的标识, 贝 IJ : Moreover, before the next sending time of the beacon frame arrives, the beacon frame is not received: the beacon frame contains the identity of the registration node, and the domain search response message is not received: the domain search response message contains The identification of the registration node, Bei IJ:
所述域节点发送信标帧, 在所述信标帧中包含所述注册节点的标识; The domain node sends a beacon frame, and the beacon frame contains the identification of the registration node;
所述域节点接收所述注册节点发出的所述域注册请求, The domain node receives the domain registration request sent by the registration node,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制。 The domain node performs domain access control for the registration node according to the domain registration request.
8、 根据权利要求 7所述的域接入控制的方法, 其特征在于, 8. The domain access control method according to claim 7, characterized in that,
在所述信标帧中包含所述注册节点的标识, 具体是: The beacon frame contains the identification of the registration node, specifically:
在所述信标帧中包含注册节点附加域, 在所述注册节点附加域中包含: 所述注册 节点的标识。 The beacon frame contains a registration node additional field, and the registration node additional field contains: the identification of the registration node.
9、 根据权利要求 7或 8所述的域接入控制的方法, 其特征在于, 9. The domain access control method according to claim 7 or 8, characterized in that,
所述域节点具体是以广播的方式, 发送所述信标帧。 Specifically, the domain node sends the beacon frame in a broadcast manner.
10、 根据权利要求 7或 8所述的域接入控制的方法, 其特征在于, 10. The domain access control method according to claim 7 or 8, characterized in that,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制, 具体是: 如果所述域节点为: 主域控制器, 则所述域节点根据所述域节点以及所述域节点 所在域的实际情况以及所述域注册请求,判断是否允许注册节点加入到所述域节点所在 域, 并向所述注册节点反馈判断结果; The domain node performs domain access control for the registration node according to the domain registration request, specifically: if the domain node is: a primary domain controller, then the domain node performs domain access control according to the domain node and the domain The actual situation of the domain where the node is located and the domain registration request are used to determine whether the registered node is allowed to join the domain where the node is located. domain, and feedback the judgment result to the registration node;
否则, 所述域节点向所述域节点所在域的主域控制器转发所述域注册请求, 以供 所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所述域节点所 在域, 且向所述注册节点反馈判断结果。 Otherwise, the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, so that the primary domain controller can determine whether to allow the registration node to join the domain according to the domain registration request. The domain where the domain node is located, and the judgment result is fed back to the registration node.
11、 根据权利要求 7或 8所述的域接入控制的方法, 其特征在于, 11. The domain access control method according to claim 7 or 8, characterized in that,
在步骤: 域节点接收域搜寻请求消息之后, 还包括: In step: After the domain node receives the domain search request message, it also includes:
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的所有所述目标 域的域名标识的均不相同, If the domain name identifier of the domain where the domain node is located is different from the domain name identifiers of all the target domains included in the domain search request message,
或者, 在信标帧的下一发送时刻到达之前, 有收到域搜寻响应消息: 所述域搜寻 响应消息包含所述注册节点的标识, 或者有收到信标帧: 所述信标帧包含所述注册节点 的标识, 贝 IJ : Or, before the next sending time of the beacon frame arrives, a domain search response message is received: The domain search response message contains the identification of the registration node, or a beacon frame is received: The beacon frame contains The identification of the registration node, Bei IJ:
所述域节点忽略所述域搜寻请求消息。 The domain node ignores the domain search request message.
12、 一种域接入控制的方法, 其特征在于, 包括: 12. A domain access control method, characterized by including:
域节点接收域搜寻请求消息, 所述域节点为: 除主域控制器以及信标代理外的其 他任一域节点, The domain node receives the domain search request message, and the domain node is: any other domain node except the primary domain controller and the beacon agent,
所述域搜寻请求消息包含信息: 注册节点的标识、 以及所述注册节点对应的各目 标域的域名标识; The domain search request message includes information: the identification of the registration node, and the domain name identification of each target domain corresponding to the registration node;
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的任一所述目标 域的域名标识的相同, If the domain name identifier of the domain where the domain node is located is the same as the domain name identifier of any of the target domains included in the domain search request message,
并且, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未 收到信标帧: 所述信标帧包含所述注册节点的标识, 并且未收到域搜寻响应消息: 所述 域搜寻响应消息包含所述注册节点的标识, 贝 IJ : Moreover, before the feedback time of the domain search response message according to the domain search request message arrives, the beacon frame is not received: The beacon frame contains the identification of the registration node, and the domain search response message is not received: The domain search response message includes the identification of the registration node, iJ:
所述域节点反馈所述域搜寻响应消息; The domain node feeds back the domain search response message;
所述域节点接收所述注册节点发出的所述域注册请求, The domain node receives the domain registration request sent by the registration node,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制。 The domain node performs domain access control for the registration node according to the domain registration request.
13、 根据权利要求 12所述的接入控制的方法, 其特征在于, 13. The access control method according to claim 12, characterized in that,
所述域节点具体是以广播发送的方式, 反馈所述域搜寻响应消息。 Specifically, the domain node feeds back the domain search response message in a broadcast transmission manner.
14、 根据权利要求 12或 13所述的接入控制的方法, 其特征在于, 14. The access control method according to claim 12 or 13, characterized in that,
所述域节点根据所述域注册请求为所述注册节点执行域接入控制, 具体是: 所述域节点向所述域节点所在域的主域控制器转发所述域注册请求, 以供所述主 域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所述域节点所在域, 且向所述注册节点反馈判断结果。 The domain node performs domain access control for the registration node according to the domain registration request, specifically: the domain node forwards the domain registration request to the primary domain controller of the domain where the domain node is located, for all Narrate the main The domain controller determines whether to allow the registration node to join the domain where the domain node is located based on the domain registration request, and feeds back the determination result to the registration node.
15、 根据权利要求 12或 13所述的接入控制的方法, 其特征在于, 15. The access control method according to claim 12 or 13, characterized in that,
在步骤: 域节点接收域搜寻请求消息之后, 还包括: In step: After the domain node receives the domain search request message, it also includes:
如果所述域节点所在域的域名标识与所述域搜寻请求消息中包含的所有所述目标 域的域名标识的均不相同, If the domain name identifier of the domain where the domain node is located is different from the domain name identifiers of all the target domains included in the domain search request message,
或者, 在根据所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 有 收到信标帧: 所述信标帧包含所述注册节点的标识, 或者有收到域搜寻响应消息: 所述 域搜寻响应消息包含所述注册节点的标识, 贝 IJ : Or, before the feedback time of the domain search response message according to the domain search request message arrives, a beacon frame is received: The beacon frame contains the identification of the registration node, or a domain search response message is received: The domain search response message includes the identification of the registration node, iJ:
所述域节点忽略所述域搜寻请求消息。 The domain node ignores the domain search request message.
16、 根据权利要求 12或 13所述的域接入控制的方法, 其特征在于, 16. The domain access control method according to claim 12 or 13, characterized in that,
所述反馈时刻, 具体为: The feedback moment is specifically:
在收到所述域搜寻请求消后, 等待一随机时间间隔时间后的时刻, After receiving the domain search request, wait for a random time interval,
所述随机时间间隔为: 所述域节点收到所述域搜寻请求消息后, 计算获取的一时 间间隔随机值。 The random time interval is: after the domain node receives the domain search request message, it calculates a random value of a time interval obtained.
17、 根据权利要求 16所述的域接入控制的方法, 其特征在于, 17. The method of domain access control according to claim 16, characterized in that,
所述随机时间间隔大于: 所述域节点所在域的主域控制器的信标帧发送时间间隔。 The random time interval is greater than: the beacon frame sending time interval of the primary domain controller of the domain where the domain node is located.
18、 根据权利要求 17所述的域接入控制的方法, 其特征在于, 18. The method of domain access control according to claim 17, characterized in that,
所述随机时间间隔还大于: 所述域节点所在域的任一信标代理的信标帧发送时间 间隔。 The random time interval is also greater than: the beacon frame sending time interval of any beacon agent in the domain where the domain node is located.
19、 一种域搜寻的方法, 其特征在于, 包括: 19. A domain search method, characterized by including:
注册节点监测是否收到信标帧; The registration node monitors whether beacon frames are received;
如果在所述信标帧的监测周期内未收到信标帧: 所述信标帧包含所述注册节点的 任一目标域的域名标识, 贝 IJ : If no beacon frame is received within the monitoring period of the beacon frame: The beacon frame contains the domain name identifier of any target domain of the registration node, and:
所述注册节点广播发送域搜寻请求消息, 在所述域搜寻请求消息包含所述注册节 点的标识; The registration node broadcasts and sends a domain search request message, and the domain search request message contains the identification of the registration node;
所述注册节点监测是否收到域搜寻响应消息, The registration node monitors whether a domain search response message is received,
如果所述域搜寻响应消息包括: 所述注册节点的任一目标域的域名标识, 贝 IJ : 所述注册节点根据所述域搜寻响应消息, 确定最终目的域, If the domain search response message includes: the domain name identifier of any target domain of the registration node, then: the registration node determines the final destination domain according to the domain search response message,
所述注册节点根据包含所述最终目的域的域名标识的所述域搜寻响应消息, 发送 域注册请求, 所述域注册请求的目的地址为所述域搜寻响应消息的发送端地址, 在所述 域注册请求中包含加入所述最终目的域的请求。 The registration node sends according to the domain search response message containing the domain name identifier of the final destination domain. Domain registration request, the destination address of the domain registration request is the sender address of the domain search response message, and the domain registration request includes a request to join the final destination domain.
20、 根据权利要求 19所述的域搜寻的方法, 其特征在于, 20. The domain search method according to claim 19, characterized in that,
所述注册节点根据所述域搜寻响应消息, 确定最终目的域, 具体是: The registration node determines the final destination domain according to the domain search response message, specifically:
所述注册节点将首次收到的所述域搜寻响应消息中包含的域名标识, 确定为所述 最终目的域的域名标识。 The registration node determines the domain name identifier contained in the domain search response message received for the first time as the domain name identifier of the final destination domain.
21、 根据权利要求 19所述的域搜寻的方法, 其特征在于, 21. The domain search method according to claim 19, characterized in that,
所述注册节点根据所述域搜寻响应消息, 确定最终目的域, 具体是: The registration node determines the final destination domain according to the domain search response message, specifically:
所述注册节点在预定的域搜寻响应监测周期内, 接收至少两个所述域搜寻响应消 息, The registration node receives at least two domain search response messages within a predetermined domain search response monitoring period,
所述注册节点将其中任一所述域搜寻响应消息包含的域名标识, 确定为所述最终 目的域的域名标识。 The registration node determines the domain name identifier contained in any of the domain search response messages as the domain name identifier of the final destination domain.
22、 根据权利控要求 19或 20或 21所述的域搜寻的方法, 其特征在于, 在步骤: 所述注册节点监测是否收到域搜寻响应消息时, 还包括: 22. The domain search method according to claim 19 or 20 or 21, characterized in that, in step: when the registration node monitors whether a domain search response message is received, it also includes:
所述注册节点监测是否收到信标帧; The registration node monitors whether a beacon frame is received;
在步骤: 所述注册节点根据所述域搜寻响应消息, 确定最终目的域之前, 如果收到信标帧: 所述信标帧包含所述注册节点的任一目标域的域名标识, 贝 IJ : 根据所述信标帧, 确定所述最终目的域; In the step: before the registration node determines the final destination domain according to the domain search response message, if a beacon frame is received: the beacon frame contains the domain name identifier of any target domain of the registration node, then: Determine the final destination domain according to the beacon frame;
所述注册节点根据包含所述最终目的域的域名标识的所述信标帧, 发送域注册请 求, 所述域注册请求的目的地址为: 所述信标帧的发送端地址, 在所述域注册请求中包 含加入所述最终目的域的请求。 The registration node sends a domain registration request according to the beacon frame containing the domain name identifier of the final destination domain, and the destination address of the domain registration request is: The sender address of the beacon frame, in the domain The registration request includes a request to join the final destination domain.
所述注册节点停止监测是否收到信标帧以及信标帧。 The registration node stops monitoring whether the beacon frame is received and the beacon frame.
23、 一种通信设备, 其特征在于, 包括: 23. A communication device, characterized by including:
接收单元, 用于接收消息; Receiving unit, used to receive messages;
发送单元, 用于发送消息; Sending unit, used to send messages;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于: The central processing unit is connected to the receiving unit and the sending unit respectively, and is used for:
在所述接收单元收到域搜寻请求消息之后, 如果所述通信设备所在域的域名标识 与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在根据所述 域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到域搜寻响应消息: 所 述域搜寻响应消息包含所述注册节点的标识,控制所述发送单元反馈所述域搜寻响应消 息, After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and, according to the Before the feedback time of the domain search request message feedback domain search response message arrives, no domain search response message is received: The domain search response message contains the identification of the registration node, and the sending unit is controlled to feed back the domain search response message. interest,
以及, 在所述接收单元收到所述注册请求后, 为发出所述注册请求的注册节点执 行域接入控制。 And, after the receiving unit receives the registration request, perform domain access control for the registration node that issued the registration request.
24、 根据权利要求 23所述的通信设备, 其特征在于, 24. The communication device according to claim 23, characterized in that,
中央处理单元在所述接收单元收到所述注册请求后, 为发出所述注册请求的注册 节点执行域接入控制, 具体为: After the receiving unit receives the registration request, the central processing unit performs domain access control for the registration node that issued the registration request, specifically:
所述中央处理单元在所述接收单元收到所述注册请求后, 根据所述设备以及所述 设备所在域的实际情况以及所述域注册请求,判断是否允许发出所述注册节点加入到所 述设备所在域, 并向所述注册节点反馈判断结果; 或者 After the receiving unit receives the registration request, the central processing unit determines whether to allow the registration node to join the domain registration request based on the actual situation of the device and the domain where the device is located and the domain registration request. The domain where the device is located, and feedback the judgment result to the registration node; or
中央处理单元在所述接收单元收到所述注册请求后, 为发出所述注册请求的注册 节点执行域接入控制, 具体为: After the receiving unit receives the registration request, the central processing unit performs domain access control for the registration node that issued the registration request, specifically:
所述中央处理单元在所述接收单元收到所述注册请求后, 控制所述发送单元向所 述设备所在域的主域控制器转发所述域注册请求, After the receiving unit receives the registration request, the central processing unit controls the sending unit to forward the domain registration request to the primary domain controller of the domain where the device is located,
以供所述主域控制器根据所述域注册请求判断是否允许注册节点加入到所述设备 所在域, 且向所述注册节点反馈判断结果根据所述设备以及所述设备所在域的实际情况 以及所述域注册请求, 判断是否允许发出所述注册节点加入到所述设备所在域, 并向所 述注册节点反馈判断结果。 The main domain controller determines whether to allow the registration node to join the domain where the device is located based on the domain registration request, and feeds back the judgment result to the registration node based on the actual situation of the device and the domain where the device is located and The domain registration request determines whether the issuing registration node is allowed to join the domain where the device is located, and feeds back the determination result to the registration node.
25、 一种通信设备, 其特征在于, 包括: 25. A communication device, characterized by including:
接收单元, 用于接收消息; Receiving unit, used to receive messages;
发送单元, 用于发送消息; Sending unit, used to send messages;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于: The central processing unit is connected to the receiving unit and the sending unit respectively, and is used for:
在所述接收单元收到域搜寻请求消息之后, 如果所述通信设备所在域的域名标识 与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在信标帧的 下一发送时刻到达之前, 未收到信标帧: 所述信标帧包含所述注册节点的标识, 并且未 收到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点的标识, 控制所述发送单 元发送信标帧, 在所述信标帧中包含所述注册节点的标识; After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains contained in the domain search request message, and, in the beacon Before the next sending time of the frame arrives, no beacon frame is received: The beacon frame contains the identity of the registration node, and no domain search response message is received: The domain search response message contains the identity of the registration node Identity, controlling the sending unit to send a beacon frame, where the beacon frame contains the identification of the registration node;
以及, 在所述接收单元收到注册请求后, 根据所述注册请求, 为发出所述注册请 求的注册节点执行域接入控制。 And, after the receiving unit receives the registration request, perform domain access control for the registration node that issued the registration request according to the registration request.
26、 根据权利要求 24所述的通信设备, 其特征在于, 26. The communication device according to claim 24, characterized in that,
所述中央处理单元, 在所述接收单元收到注册请求后, 用于根据所述注册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为: The central processing unit, after the receiving unit receives the registration request, is configured to, according to the registration request, Perform domain access control for the registration node that issued the registration request, specifically:
所述中央处理单元, 根据所述域节点以及所述域节点所在域的实际情况以及所述 域注册请求, 判断是否允许注册节点加入到所述域节点所在域, 并向控制所述发送单元 向所述注册节点反馈判断结果。 The central processing unit, based on the actual situation of the domain node and the domain where the domain node is located and the domain registration request, determines whether to allow the registration node to join the domain where the domain node is located, and sends a request to the control sending unit. The registration node feeds back the judgment result.
27、 根据权利要求 24所述的通信设备, 其特征在于, 27. The communication device according to claim 24, characterized in that,
所述中央处理单元, 在所述接收单元收到注册请求后, 用于根据所述注册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为: The central processing unit, after the receiving unit receives the registration request, is configured to perform domain access control for the registration node that issued the registration request according to the registration request, specifically:
所述中央处理单元控制所述发送单元向所述设备所在域的主域控制器转发所述域 注册请求, The central processing unit controls the sending unit to forward the domain registration request to the primary domain controller of the domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 The primary domain controller determines whether to allow the registration node to join the domain where the domain node is located based on the domain registration request, and feeds back the determination result to the registration node.
28、 一种通信设备, 其特征在于, 包括: 28. A communication device, characterized by including:
接收单元, 用于接收消息; Receiving unit, used to receive messages;
发送单元, 用于发送消息; Sending unit, used to send messages;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于: The central processing unit is connected to the receiving unit and the sending unit respectively, and is used for:
在所述接收单元收到所述域搜寻请求消息之后, 如果所述通信设备所在域的域名 标识与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在根据 所述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到信标帧: 所述信 标帧包含所述注册节点的标识, 并且未收到域搜寻响应消息: 所述域搜寻响应消息包含 所述注册节点的标识, 则控制所述发送单元反馈所述域搜寻响应消息, After the receiving unit receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains included in the domain search request message, and, Before the feedback time of the domain search response message according to the domain search request message arrives, no beacon frame is received: The beacon frame contains the identity of the registration node, and the domain search response message is not received: The domain The search response message contains the identification of the registered node, then the sending unit is controlled to feed back the domain search response message,
以及, 在所述接收单元收到注册请求后, 根据所述注册请求, 为发出所述注册请 求的注册节点执行域接入控制。 And, after the receiving unit receives the registration request, perform domain access control for the registration node that issued the registration request according to the registration request.
29、 根据权利要求 25所述的通信设备, 其特征在于, 29. The communication device according to claim 25, characterized in that,
所述中央处理单元用于在所述接收单元收到注册请求后, 用于根据所述注册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为: The central processing unit is configured to perform domain access control for the registration node that issued the registration request according to the registration request after the receiving unit receives the registration request, specifically:
在所述接收单元收到注册请求后, 所述中央处理单元用于控制所述发送单元向所 述设备所在域的主域控制器转发所述域注册请求, After the receiving unit receives the registration request, the central processing unit is used to control the sending unit to forward the domain registration request to the primary domain controller of the domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 The primary domain controller determines whether to allow the registration node to join the domain where the domain node is located based on the domain registration request, and feeds back the determination result to the registration node.
30、 一种通信设备, 其特征在于, 包括: 接收单元, 用于接收消息; 30. A communication device, characterized by including: Receiving unit, used to receive messages;
发送单元, 用于发送消息; Sending unit, used to send messages;
中央处理单元, 分别与所述接收单元、 发送单元连接, 用于: The central processing unit is connected to the receiving unit and the sending unit respectively, and is used for:
在所述接收单元在所述信标帧的监测周期内未收到信标帧: 所述信标帧包含所述 注册节点的任一目标域的域名标识时, 控制所述发送单元广播发送域搜寻请求消息, 在 所述域搜寻请求消息包含所述注册节点的标识; When the receiving unit does not receive a beacon frame within the monitoring period of the beacon frame: when the beacon frame contains the domain name identifier of any target domain of the registered node, control the sending unit to broadcast the sending domain A search request message, where the domain search request message includes the identification of the registered node;
以及, 在所述接收单元收到域搜寻响应消息, 所述域搜寻响应消息包括: 所述注 册节点的任一目标域的域名标识时, 根据所述域搜寻响应消息, 确定最终目的域, 以及 用于控制所述发送单元根据包含所述最终目的域的域名标识的所述域搜寻响应消息发 送域注册请求, 所述域注册请求的目的地址为所述域搜寻响应消息的发送端地址, 在所 述域注册请求中包含加入所述最终目的域的请求。 And, when the receiving unit receives a domain search response message, and the domain search response message includes: the domain name identifier of any target domain of the registration node, determine the final destination domain according to the domain search response message, and For controlling the sending unit to send a domain registration request according to the domain search response message containing the domain name identifier of the final destination domain, where the destination address of the domain registration request is the sender address of the domain search response message, in The domain registration request includes a request to join the final destination domain.
31、 一种通信设备, 其特征在于, 包括: 31. A communication device, characterized by: including:
接收器, 用于接收消息; Receiver, used to receive messages;
发送器, 用于发送消息; Sender, used to send messages;
中央处理器, 分别与所述接收器、 发送器连接, 用于: The central processing unit is connected to the receiver and transmitter respectively, and is used for:
在所述接收器收到域搜寻请求消息之后, 如果所述通信设备所在域的域名标识与 所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在信标帧的下 一发送时刻到达之前, 未收到信标帧: 所述信标帧包含所述注册节点的标识, 并且未收 到域搜寻响应消息: 所述域搜寻响应消息包含所述注册节点的标识, 控制所述发送器发 送信标帧, 在所述信标帧中包含所述注册节点的标识; After the receiver receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains contained in the domain search request message, and, in the beacon Before the next sending time of the frame arrives, no beacon frame is received: The beacon frame contains the identity of the registration node, and no domain search response message is received: The domain search response message contains the identity of the registration node Identity, controlling the transmitter to send a beacon frame, where the beacon frame contains the identification of the registration node;
以及, 在所述接收器收到注册请求后, 根据所述注册请求, 为发出所述注册请求 的注册节点执行域接入控制。 And, after the receiver receives the registration request, perform domain access control for the registration node that issued the registration request according to the registration request.
32、 根据权利要求 31所述的通信设备, 其特征在于, 32. The communication device according to claim 31, characterized in that,
所述中央处理器, 在所述接收器收到注册请求后, 用于根据所述注册请求, 为发 出所述注册请求的注册节点执行域接入控制, 具体为: The central processor, after the receiver receives the registration request, is configured to perform domain access control for the registration node that issued the registration request according to the registration request, specifically:
所述中央处理器, 根据所述域节点以及所述域节点所在域的实际情况以及所述域 注册请求, 判断是否允许注册节点加入到所述域节点所在域, 并向控制所述发送器向所 述注册节点反馈判断结果。 The central processor, based on the actual situation of the domain node and the domain where the domain node is located and the domain registration request, determines whether to allow the registration node to join the domain where the domain node is located, and sends a request to the control sender. The registration node feeds back the judgment result.
或者, 所述中央处理器, 在所述接收器收到注册请求后, 用于根据所述注册请求, 为发出所述注册请求的注册节点执行域接入控制, 具体为: 所述中央处理器控制所述发送器向所述设备所在域的主域控制器转发所述域注册 请求, Or, the central processor, after the receiver receives the registration request, is configured to perform domain access control for the registration node that issued the registration request according to the registration request, specifically: The central processor controls the sender to forward the domain registration request to the primary domain controller of the domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 The primary domain controller determines whether to allow the registration node to join the domain where the domain node is located based on the domain registration request, and feeds back the determination result to the registration node.
33、 一种通信设备, 其特征在于, 包括: 33. A communication device, characterized by including:
接收器, 用于接收消息; Receiver, used to receive messages;
发送器, 用于发送消息; Sender, used to send messages;
中央处理器, 分别与所述接收器、 发送器连接, 用于: The central processing unit is connected to the receiver and transmitter respectively, and is used for:
在所述接收器收到所述域搜寻请求消息之后, 如果所述通信设备所在域的域名标 识与所述域搜寻请求消息中包含的任一所述目标域的域名标识的相同, 并且, 在根据所 述域搜寻请求消息反馈域搜寻响应消息的反馈时刻到达之前, 未收到信标帧: 所述信标 帧包含所述注册节点的标识, 并且未收到域搜寻响应消息: 所述域搜寻响应消息包含所 述注册节点的标识, 则控制所述发送器反馈所述域搜寻响应消息, After the receiver receives the domain search request message, if the domain name identifier of the domain where the communication device is located is the same as the domain name identifier of any of the target domains contained in the domain search request message, and, Before the feedback time of the domain search response message according to the domain search request message arrives, no beacon frame is received: The beacon frame contains the identity of the registration node, and the domain search response message is not received: The domain The search response message contains the identification of the registered node, then the sender is controlled to feed back the domain search response message,
以及, 在所述接收器收到注册请求后, 根据所述注册请求, 为发出所述注册请求 的注册节点执行域接入控制。 And, after the receiver receives the registration request, perform domain access control for the registration node that issued the registration request according to the registration request.
34、 根据权利要 33所述的通信设备, 其特征在于, 34. The communication device according to claim 33, characterized in that,
所述中央处理器用于在所述接收器收到注册请求后, 用于根据所述注册请求, 为 发出所述注册请求的注册节点执行域接入控制, 具体为: The central processor is configured to perform domain access control for the registration node that issued the registration request according to the registration request after the receiver receives the registration request, specifically:
在所述接收器收到注册请求后, 所述中央处理器用于控制所述发送器向所述设备 所在域的主域控制器转发所述域注册请求, After the receiver receives the registration request, the central processor is used to control the sender to forward the domain registration request to the primary domain controller of the domain where the device is located,
以供所述主域控制器根据所述域注册请求, 以及判断是否允许注册节点加入到所 述域节点所在域, 且向所述注册节点反馈判断结果。 The primary domain controller determines whether to allow the registration node to join the domain where the domain node is located based on the domain registration request, and feeds back the determination result to the registration node.
35、 一种通信设备, 其特征在于, 包括: 35. A communication device, characterized by: including:
接收器, 用于接收消息; Receiver, used to receive messages;
发送器, 用于发送消息; Sender, used to send messages;
中央处理器, 分别与所述接收器、 发送器连接, 用于: The central processing unit is connected to the receiver and transmitter respectively, and is used for:
在所述接收器在所述信标帧的监测周期内未收到信标帧: 所述信标帧包含所述注 册节点的任一目标域的域名标识时, 控制所述发送器广播发送域搜寻请求消息, 在所述 域搜寻请求消息包含所述注册节点的标识; When the receiver does not receive a beacon frame within the monitoring period of the beacon frame: when the beacon frame contains the domain name identifier of any target domain of the registered node, control the sender to broadcast the sending domain A search request message, where the domain search request message includes the identification of the registered node;
以及, 在所述接收器收到域搜寻响应消息, 所述域搜寻响应消息包括: 所述注册 节点的任一目标域的域名标识时, 根据所述域搜寻响应消息, 确定最终目的域, 以及用 于控制所述发送器根据包含所述最终目的域的域名标识的所述域搜寻响应消息发送域 注册请求, 所述域注册请求的目的地址为所述域搜寻响应消息的发送端地址, 在所述域 注册请求中包含加入所述最终目的域的请求。 And, when the receiver receives a domain search response message, the domain search response message includes: the registration When the domain name identifier of any target domain of the node is determined, the final destination domain is determined according to the domain search response message, and used to control the sender to send according to the domain search response message containing the domain name identifier of the final destination domain. Domain registration request, the destination address of the domain registration request is the sender address of the domain search response message, and the domain registration request includes a request to join the final destination domain.
PCT/CN2013/082679 2012-08-30 2013-08-30 Method for domain access control, method for domain search, and communication device WO2014032613A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210314227.4 2012-08-30
CN201210314227.4A CN102882555B (en) 2012-08-30 2012-08-30 Domain access control method, domain searching method and communication apparatus

Publications (1)

Publication Number Publication Date
WO2014032613A1 true WO2014032613A1 (en) 2014-03-06

Family

ID=47483735

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/082679 WO2014032613A1 (en) 2012-08-30 2013-08-30 Method for domain access control, method for domain search, and communication device

Country Status (2)

Country Link
CN (1) CN102882555B (en)
WO (1) WO2014032613A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882555B (en) * 2012-08-30 2015-04-08 华为技术有限公司 Domain access control method, domain searching method and communication apparatus
CN106254568B (en) * 2016-07-26 2020-12-29 国家电网公司 Power domain name management method based on scheduling data network
CN112910663B (en) * 2021-01-14 2022-06-14 网易(杭州)网络有限公司 Method, device, equipment and storage medium for message broadcasting and terminal registration
CN114142893B (en) * 2021-12-02 2023-10-27 广东电网有限责任公司 Hierarchical identification control method of power communication network and power communication network

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101065935A (en) * 2004-10-13 2007-10-31 波克股份有限公司 Systems and methods for redundant networks
CN101189834A (en) * 2005-07-15 2008-05-28 思科技术公司 Off-channel beacons in a wireless network
CN101471777A (en) * 2007-12-29 2009-07-01 中国科学院计算技术研究所 Access control system and method between domains based on domain name
CN102882555A (en) * 2012-08-30 2013-01-16 华为技术有限公司 Domain access control method, domain searching method and communication apparatus

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2007111009A1 (en) * 2006-03-28 2007-10-04 Nec Corporation Base station control apparatus and domain access restricting method
CN100479386C (en) * 2006-07-12 2009-04-15 华为技术有限公司 Domain management system, method for building local domain and method for acquisition of local domain licence
CN102355506A (en) * 2007-05-16 2012-02-15 韩国电子通信研究院 Domain management and administration method and apparatus thereof
CN101345684B (en) * 2007-07-12 2012-04-04 中兴通讯股份有限公司 P2P node administration method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101065935A (en) * 2004-10-13 2007-10-31 波克股份有限公司 Systems and methods for redundant networks
CN101189834A (en) * 2005-07-15 2008-05-28 思科技术公司 Off-channel beacons in a wireless network
CN101471777A (en) * 2007-12-29 2009-07-01 中国科学院计算技术研究所 Access control system and method between domains based on domain name
CN102882555A (en) * 2012-08-30 2013-01-16 华为技术有限公司 Domain access control method, domain searching method and communication apparatus

Also Published As

Publication number Publication date
CN102882555B (en) 2015-04-08
CN102882555A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
EP3367619B1 (en) Synchronizing multicast state between multi-homed routers in an ethernet virtual private network
EP2279585B1 (en) Method and apparatus for multicast group management
EP2720415B1 (en) Routing control method, apparatus and system of layer 3 virtual private network
JP6271733B2 (en) Coverage hole detection and minimization in communication networks
CN113364610B (en) Network equipment management method, device and system
US9143396B2 (en) VPLS fast rerouting method and device
US20210392469A1 (en) Multicast method, apparatus, device, and system for multicast group of virtual network group
US20130185416A1 (en) Controlling an Apparatus
US20100223380A1 (en) Session Monitoring Method, Apparatus, and System Based on Multicast Technologies
WO2017114153A1 (en) Service function chaining (sfc) communication method and device
WO2018214809A1 (en) Message transmission method and device, and storage medium
US9866522B2 (en) Method to control dynamic host configuration protocol pool exhaustion in dynamic network environments
US20150180673A1 (en) Relay System and Switching Device
WO2011147312A1 (en) Method, device and system for port backup of service access router
US20220329512A1 (en) Method and Apparatus for Updating Route Information, Computer Device, and Storage Medium
US20210258226A1 (en) Methods and systems for neighbor-acknowledged graceful insertion/removal protocol
WO2014032613A1 (en) Method for domain access control, method for domain search, and communication device
WO2014082414A1 (en) Service forwarding method and device
US20150207640A1 (en) Method for Implementing Point-To-Multipoint Multicast, Network Node, and System
CN106341249A (en) Redundant port switching method and device
CN102045250A (en) Forwarding method for multicast message in VPLS, and service provider edge equipment
WO2010069188A1 (en) Service processing method, device and system
WO2013159492A1 (en) Method and system for reporting and downloading information
CN103685610A (en) Method for achieving Address Resolution Protocol (ARP) proxy
WO2020001602A1 (en) Method for implementing data multicast, apparatus, and system

Legal Events

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

Ref document number: 13832563

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 13832563

Country of ref document: EP

Kind code of ref document: A1