WO2017011947A1 - Communication method, apparatus and system - Google Patents

Communication method, apparatus and system Download PDF

Info

Publication number
WO2017011947A1
WO2017011947A1 PCT/CN2015/084383 CN2015084383W WO2017011947A1 WO 2017011947 A1 WO2017011947 A1 WO 2017011947A1 CN 2015084383 W CN2015084383 W CN 2015084383W WO 2017011947 A1 WO2017011947 A1 WO 2017011947A1
Authority
WO
WIPO (PCT)
Prior art keywords
ipv4 address
network node
bits
node
address
Prior art date
Application number
PCT/CN2015/084383
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 华为技术有限公司
Priority to PCT/CN2015/084383 priority Critical patent/WO2017011947A1/en
Priority to CN201580062641.2A priority patent/CN107113295B/en
Publication of WO2017011947A1 publication Critical patent/WO2017011947A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of information technology and, more particularly, to a communication method, apparatus and system.
  • the self-organizing network supports self-management, which can reduce the intervention of administrators and improve the automation of the network.
  • the self-organizing network can alleviate the work of network management, facilitate the deployment of new services, reduce the probability of configuration errors, and reduce the operating costs of the network.
  • ACP Autonomic Control Plane
  • IPv6 Internet Protocol Version 6, which is referred to as "IPv6”
  • IPv6 Internet Protocol Version 6
  • the present invention provides a communication method, apparatus and system capable of establishing an IPv4-based ad hoc control plane ACP, thereby improving network compatibility and reducing network deployment obstacles.
  • a communication method in a self-organizing network comprising: receiving, by a registration node, a neighbor discovery AD message sent by a network node, the AD message carrying a device identifier of the network node and an IPv4 address of the network node
  • the IPv4 address is automatically generated by the network node; the registration node obtains indication information about the availability of the IPv4 address; the registration node determines, according to the device identifier, whether the network node is a legal node; the registration node determines that the network node is When the node is a legitimate node, the domain certificate and the indication information are sent to the network node.
  • the IPv4 address is automatically generated by the network node, including: each bit in the IPv4 address is determined by the network node according to the device identifier Performing a hash operation; or, each bit in the IPv4 address is performed by the network node according to the medium access control MAC address of the interface configured on the network node. Generated by the Greek operation; or, each bit in the IPv4 address is randomly generated by the network node.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are determined by the network node according to the The domain ID of the organization domain is generated by hash operation. The last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node. A positive integer; or, the first N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node. , N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are before the network node according to the dedicated IPv4 address The last 32-M bits of the IPv4 address generated by the M-bit are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, where M is a positive integer; or, the IPv4 address The first N bits are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are the front M of the network node according to the dedicated IPv4 address.
  • the bit generated, the first L bit in the last 32-M bits of the IPv4 address is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are
  • the 32-ML bit is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, where M and L are positive integers; or, the first N bits of the IPv4 address are the network node.
  • the first L bits in the last 32-N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the IPv4 of the network node is generated.
  • the last 32-NL bits of the last 32-N bits of the address are randomly generated by the network node, and N, L are positive integers.
  • the registration node acquires the IPv4 address
  • the indication information of availability includes: the registration node determines whether the IPv4 address is available; and the registration node determines the indication information according to a result of determining whether the IPv4 is available.
  • the registration node determines the indication information according to a result of determining whether the IPv4 is available.
  • the method includes: when the registration node determines that the IPv4 address is available, determining that the indication information indicates that an IPv4 address of the network node is available; or determining, when the registration node determines that the IPv4 address is unavailable, determining that the indication information includes an IPv4 address increment information or Available IPv4 address.
  • the registration node acquires the IPv4 address
  • the indication information of the availability includes: the registration node sends the IPv4 address to the conflict detection server; the registration node receives the indication information sent by the conflict detection server, the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address Incremental information or an available IPv4 address.
  • the registration node sends the IPv4 address to the conflict detection server, including: the registration node sends the conflict detection server The IPv4 address and the device identifier.
  • the device identifier of the network node is The unique device identifier UDI of the network node
  • the determining, by the registration node, whether the network node is a legal node according to the device identifier includes: determining, by the registration node, that the network node is a legal node when determining that the UDI of the network node is in the UDI list.
  • the device identifier of the network node is The unique unique device identifier SUDI of the network node;
  • the registration node determines whether the network node is a legal node according to the device identifier, and includes: the registration node verifies a device digital certificate corresponding to the SUDI sent by the network node; and when the registration node verifies that the device digital certificate is successful, The network node is determined to be a legal node according to the verification result of the verification server.
  • the IPv4 address is self-organized The IPv4 address of the control plane ACP.
  • a communication method in an ad hoc network comprising: the conflict detection server receiving an IPv4 address sent by the registration node; the conflict detection server determining whether the IPv4 address is available.
  • the IPv4 address is automatically generated by a network node.
  • the conflict detection server receives the IPv4 address sent by the registration node, and the conflict detection server sends the registration node to send The IPv4 address and the device identifier of the network node.
  • the IPv4 address is automatically generated by the network node, including: each of the IPv4 addresses One bit is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is hashed by the network node according to a medium access control MAC address of an interface configured on the network node. The operation is generated; or, each bit in the IPv4 address is randomly generated by the network node.
  • the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address
  • the M bit is generated by the network node hashing according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the device identifier or the interface configured on the network node.
  • the MAC address is generated by hash operation, and M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node performing hash operation according to the domain ID of the associated self-organizing domain, and the IPv4 address is followed by
  • the 32-N bits are randomly generated by the network node, and N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address
  • the M bit is generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node.
  • M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, where N is A positive integer.
  • the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address
  • the M bit is generated by the network node according to the first M bits of the private IPv4 address
  • the first L bits of the last 32-M bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain.
  • the last 32-ML bits in the last 32-M bits of the IPv4 address are the network section.
  • the point is generated according to the device identifier or the MAC address of the interface configured on the network node, and M, L is a positive integer; or, the first N bits of the IPv4 address are the first N of the network node according to the private IPv4 address.
  • the first L bit in the last 32-N bits of the IPv4 address is generated by the network node according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address of the network node are generated.
  • the last 32-NL bits in the middle are randomly generated by the network node, and N and L are positive integers.
  • the communication method further includes: The conflict detection server sends a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate the availability of the IPv4 address;
  • the first conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
  • the communication method further includes: the conflict detection server The network node sends a second conflict detection reply message, where the second conflict detection reply message is used to indicate the availability of the IPv4;
  • the second conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
  • a communication method in a self-organizing network includes: the network node automatically generates an IPv4 address; the network node sends a neighbor discovery AD message to the registration node, where the AD message carries the device identifier of the network node And the IPv4 address; the network node receives the domain certificate and the indication information of the availability of the IPv4 address, the domain certificate is sent by the registration node; the network node establishes a self-organizing control with the registration node according to the domain certificate and the indication information Plane ACP.
  • the network node automatically generates an IPv4 address, including: the network node performs a hash operation according to the device identifier to generate each bit in the IPv4 address; Or, the network node performs a hash operation according to the media access control MAC address of the configured interface to generate each bit in the IPv4 address; or the network node randomly generates each bit in the IPv4 address.
  • the network node automatically generates the IPv4 address, including: the network node performs hash operation according to the domain identifier ID of the associated self-organizing domain to generate the IPv4
  • the first M bits of the address are hashed according to the device ID or the MAC address of the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer; or, the network node is based on the domain of the self-organizing domain to which it belongs.
  • the ID performs a hash operation to generate the first N bits of the IPv4 address, and randomly generates the last 32-N bits of the IPv4 address, where N is a positive integer.
  • the network node automatically generates the IPv4 address, including: the network node generates a first M bit of the IPv4 address according to a first M bits of the dedicated IPv4 address, Performing a hash operation according to the MAC address of the device identifier or the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer; or, the network node generates the IPv4 address according to the first N bits of the dedicated IPv4 address. N bits, the last 32-N bits of the IPv4 address are randomly generated, and N is a positive integer.
  • the network node automatically generates the IPv4 address, including: the network node generating a first M bit of the IPv4 address according to a first M bits of the dedicated IPv4 address, The hash operation is performed according to the domain ID of the associated self-organizing domain to generate the first L-bit in the last 32-M bits of the IPv4 address, and the hash operation is performed according to the device identifier or the MAC address of the configured interface to generate the IPv4 address.
  • the last 32-ML bits of the 32-M bits, M, L are positive integers; or, the network node generates the first N bits of the IPv4 address according to the first N bits of the private IPv4 address, according to the domain ID of the associated self-organizing domain A hash operation is performed to generate the first L bits of the last 32-N bits of the IPv4 address, and the last 32-NL bits of the last 32-N bits of the IPv4 address are randomly generated, and N and L are positive integers.
  • the indication information indicates the IPv4 address Available; or, the indication information includes IPv4 address delta information or an available IPv4 address.
  • the IPv4 availability indication information is The registration node sends; or, the IPv4 availability indication information is sent by the conflict detection server.
  • the device identifier is the network node
  • the unique device identifies UDI, which is configured with a UDI list.
  • the device identifier is the network node
  • the secure unique device identifies SUDI, which is accessible to the authentication server in the Internet.
  • the IPv4 address is the IPv4 of the ACP. address.
  • a fourth aspect provides a communication device in a self-organizing network, the communication device comprising: a receiving module, configured to receive a neighbor discovery AD message sent by a network node, where the AD message carries a device identifier of the network node and the network node The IPv4 address, the IPv4 address is automatically generated by the network node; the obtaining module is configured to obtain the indication information of the availability of the IPv4 address, and the determining module is configured to determine, according to the device identifier, whether the network node is a legal node; And, when the determining module determines that the network node is a legal node, sending a domain certificate and the indication information to the network node.
  • the IPv4 address is automatically generated by the network node, including: each bit in the IPv4 address is determined by the network node according to the device identifier Performing a hash operation; or, each bit in the IPv4 address is generated by the network node performing a hash operation according to a medium access control MAC address of an interface configured on the network node; or, in the IPv4 address Each bit is randomly generated by the network node.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are organized by the network node according to the self-organization
  • the domain ID of the domain is generated by hash operation.
  • the last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, and M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node.
  • N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are before the network node according to the dedicated IPv4 address The last 32-M bits of the IPv4 address generated by the M-bit are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, where M is a positive integer; or, the IPv4 address The first N bits are the network node according to the private IPv4 The last 32 bits of the address are generated. The last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are before the network node according to the dedicated IPv4 address
  • the first L bits in the last 32-M bits of the IPv4 address are generated by the network node according to the domain ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are generated.
  • the last 32-ML bit is generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, and M, L are positive integers; or, the first N bits of the IPv4 address are the network.
  • the node is generated according to the first N bits of the private IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the network node
  • the last 32-NL bits of the last 32-N bits of the IPv4 address are randomly generated by the network node, and N, L are positive integers.
  • the acquiring module is specifically configured to: Determining whether the IPv4 address is available; determining the indication information according to a result of determining whether the IPv4 is available.
  • the acquiring module is configured to: when determining that the IPv4 address is available, determining that the indication information indicates the network node The IPv4 address is available; or, when it is determined that the IPv4 address is unavailable, it is determined that the indication information includes IPv4 address increment information or an available IPv4 address.
  • the sending module is further configured to: Sending the IPv4 address to the conflict detection server;
  • the obtaining module is specifically configured to: receive the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
  • the sending module is configured to: send the IPv4 address and the device identifier to the conflict detection server.
  • the device of the network node A unique device identifier UDI identified as the network node;
  • the determining module is specifically configured to: when determining that the UDI of the network node is in the UDI list, determine that the network node is a legal node.
  • the device identifier of the network node is The unique unique device identifier SUDI of the network node;
  • the determining module is specifically configured to: verify the device digital certificate corresponding to the SUDI sent by the network node; and when verifying that the device digital certificate is successful, determine that the network node is a legal node according to the verification result of the verification server.
  • the IPv4 address is self-organized The IPv4 address of the control plane ACP.
  • a fifth aspect provides a communication device in an ad hoc network, the communication device comprising: a receiving module, configured to receive an IPv4 address sent by the registration node; and a determining module, configured to determine whether the IPv4 address is available.
  • the IPv4 address is automatically generated by a network node.
  • the receiving module is specifically configured to: receive the IPv4 address sent by the registration node, and correspond to the network node Device identification.
  • the IPv4 address is automatically generated by the network node, including: in the IPv4 address Each bit is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is performed by the network node according to a medium access control MAC address of an interface configured on the network node. Generated by the Greek operation; or, each bit in the IPv4 address is randomly generated by the network node.
  • the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address
  • the M bit is generated by the network node hashing according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the device identifier or the interface configured on the network node.
  • the MAC address is generated by hash operation, and M is a positive integer; or, The first N bits of the IPv4 address are generated by the network node performing a hash operation according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer. .
  • the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address
  • the M bit is generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node.
  • M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, where N is A positive integer.
  • the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address
  • the M bit is generated by the network node according to the first M bits of the private IPv4 address
  • the first L bits of the last 32-M bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain.
  • the last 32-ML bit in the last 32-M bits of the IPv4 address is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, where M and L are positive integers; Or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address are the domain of the network node according to the self-organizing domain to which the network node belongs.
  • the ID is hashed, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N and L are positive integers.
  • the communications apparatus further includes: a sending module, configured to send a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate availability of the IPv4 address;
  • the first conflict detection reply message indicates that the IPv4 address is available; or, when the determining module determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address increment. Information or available IPv4 address.
  • the communications apparatus further includes: a second sending module, Sending a second conflict detection reply message to the network node, the second conflict detection reply The message indicates the availability of the IPv4;
  • the second conflict detection reply message indicates that the IPv4 address is available; or, when the determining module determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address increment. Information or available IPv4 address.
  • the sixth aspect provides a communication device in an ad hoc network, where the communication device includes: an address generation module, configured to automatically generate an IPv4 address, and a sending module, configured to send a neighbor discovery AD message to the registration node,
  • the AD message carries the device identifier of the communication device and the IPv4 address
  • the receiving module is configured to receive the domain certificate and the indication information of the availability of the IPv4 address, where the domain certificate is sent by the registration node
  • the connection establishment module is configured to: And establishing an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information received by the receiving module.
  • the address generating module is configured to: perform a hash operation according to the device identifier to generate each bit in the IPv4 address; or, according to the configuration
  • the medium access control MAC address of the interface performs a hash operation to generate each bit in the IPv4 address; or, randomly generates each bit in the IPv4 address.
  • the address generating module is specifically configured to: perform a hash operation according to a domain identifier ID of the associated self-organizing domain to generate a first M-bit of the IPv4 address, Performing a hash operation according to the MAC address of the device identifier or the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer; or, performing a hash operation according to the domain ID of the associated self-organizing domain to generate the IPv4 address.
  • the first N bits randomly generate the last 32-N bits of the IPv4 address, and N is a positive integer.
  • the address generating module is configured to: generate a first M bit of the IPv4 address according to the first M bits of the dedicated IPv4 address, according to the device identifier or configuration
  • the MAC address of the interface is hashed to generate the last 32-M bits of the IPv4 address, and M is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the IPv4 address is randomly generated. After 32-N bits, N is a positive integer.
  • the address generating module is configured to: generate a first M bit of the IPv4 address according to a first M bit of the dedicated IPv4 address, according to the associated self-organizing domain
  • the domain ID is hashed to generate the first L bits of the last 32-M bits of the IPv4 address, and is hashed according to the device identifier or the configured MAC address of the interface to generate the last 32-M bits of the IPv4 address.
  • the last 32-ML bits, M, L are positive integers; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, according to the domain ID of the associated self-organizing domain A hash operation is performed to generate the first L bits of the last 32-N bits of the IPv4 address, and the last 32-N-L bits of the last 32-N bits of the IPv4 address are randomly generated, and N and L are positive integers.
  • the receiving module receives the indication The information indicates that the IPv4 address is available; or the indication information received by the receiving module includes IPv4 address increment information or an available IPv4 address.
  • the receiving module receives the IPv4 The availability indication information is sent by the registration node; or the IPv4 availability indication information received by the receiving module is sent by the conflict detection server.
  • the device identifier is the communication device
  • the unique device identifies UDI, which is configured with a UDI list.
  • the device identifier is the communication device
  • the secure unique device identifies SUDI, which is accessible to the authentication server in the Internet.
  • the IPv4 address is the IPv4 of the ACP address.
  • the seventh aspect provides a self-organizing network system, comprising: the communication device and the sixth aspect in any possible implementation manner of the first to eleventh possible implementation manners of the fourth aspect or the fourth aspect Or a communication device in any of the possible implementations of the first to ninth possible implementations of the sixth aspect.
  • the eighth aspect provides a self-organizing network system, including: the communication device in any one of the first to eleventh possible implementation manners of the fourth aspect or the fourth aspect, and the fifth aspect Or the communication device in any of the possible implementations of the first to eighth possible implementations of the fifth aspect, and the sixth to the ninth possible implementation manner of the sixth aspect or the sixth aspect A communication device in a possible implementation.
  • the registration node receives the adjacency discovery AD message sent by the network node, and the AD message carries the network node a device identifier and an IPv4 address of the network node, the IPv4 address is automatically generated by the network node; the registration node obtains indication information about availability of the IPv4 address; and the registration node determines, according to the device identifier, whether the network node is a legal node; When the registration node determines that the network node is a legal node, the registration node sends a domain certificate and the indication information to the network node.
  • an IPv4-based self-organizing control plane ACP can be established, which improves network compatibility and reduces network deployment obstacles.
  • FIG. 1 is a schematic flowchart of a communication method in an ad hoc network according to an embodiment of the present invention
  • FIG. 2 is another schematic flowchart of a communication method in an ad hoc network according to an embodiment of the present invention
  • FIG. 3 is still another schematic flowchart of a communication method in an ad hoc network according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of a communication method in an ad hoc network according to another embodiment of the present invention.
  • FIG. 5 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 7 is another schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 9 is another schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 10 is still another schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 11 is a schematic flow diagram of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 12 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 13 is a schematic block diagram of a communication device in an ad hoc network according to an embodiment of the present invention.
  • FIG. 14 is a schematic block diagram of a communication device in an ad hoc network according to another embodiment of the present invention.
  • 15 is another schematic block diagram of a communication device in an ad hoc network according to another embodiment of the present invention.
  • 16 is still another schematic block diagram of a communication device in an ad hoc network according to another embodiment of the present invention.
  • FIG. 17 is a schematic block diagram of a communication device in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 18 is a schematic block diagram of a communication device in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 19 is a schematic block diagram of a communication device in an ad hoc network according to still another embodiment of the present invention.
  • FIG. 20 is a schematic block diagram of a communication device in an ad hoc network in accordance with still another embodiment of the present invention.
  • the device needs to support the self-organizing feature, and needs to support IPv6 first, that is, the establishment of the self-organizing control plane depends on the implementation of IPv6, and there is no scheme for establishing a self-organizing control plane based on IPv4, but now
  • IPv4 the network support IPv4 better. Therefore, the network has poor compatibility with devices on the live network, and network deployment is difficult, which brings trouble to management.
  • the network nodes involved in the embodiments of the present invention are self-organizing nodes, that is, the network nodes support the self-organizing feature, and the network node has its own unique device identifier (Uniform Device Identification (UDI), or device). IDevID Certificate. Its The network node supports the self-organizing feature, which means that the network node has the function of automatically establishing an ad hoc control plane (ACP) or automatically joining the ACP.
  • ACP ad hoc control plane
  • the network node may be, but not limited to, a router, a switch, a user equipment, and the like.
  • the user equipment may also be referred to as a terminal equipment (Terminal Equipment) or a mobile station (Mobile Station, referred to as " MS"), a mobile terminal, etc.
  • the user equipment can communicate with one or more core networks via a radio access network (Radio Access Network, hereinafter referred to as "RAN"), for example, the user equipment can be a mobile phone (or "cellular" phone), a computer with a mobile terminal, etc., for example, can be portable, pocket, handheld, computer built-in or in-vehicle mobile devices, and terminal devices in future 5G networks or future evolution Terminal equipment in the PLMN network, etc.
  • RAN Radio Access Network
  • FIG. 1 shows a schematic flow chart of a communication method in an ad hoc network according to an embodiment of the present invention.
  • the method may be performed by a network node supporting a domain certificate, for example, the network node may be a router.
  • the communication method 100 includes:
  • the registration node receives a neighbor discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node.
  • the registration node acquires indication information about the availability of the IPv4 address.
  • the registration node determines, according to the device identifier, whether the network node is a legal node.
  • the registration node sends a domain certificate and the indication information to the network node when determining that the network node is a legal node.
  • the registration node receives the adjacency discovery AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the neighbor node is a legal node according to the device identifier, and obtains the availability of the IPv4 address. Instructing information, sending the domain certificate and the indication information determined according to the device identifier to the network node, and after receiving the domain certificate and the indication information, the network node may perform the registration according to the domain certificate and the indication information.
  • the node establishes a self-organizing control plane ACP.
  • the registration node receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, and determines that the network node is a legal node according to the device identifier. And obtaining the indication information of the availability of the IPv4 address, and then sending the domain certificate and the indication information to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the registration node refers to a network node that supports the allocation of a domain certificate, and the registration node can pass a pre-configured domain digital certificate authority (Certificate Authority, referred to as "CA").
  • CA domain digital certificate authority
  • the domain certificate is sent for other network nodes within the domain, but the invention is not limited thereto.
  • the legal node refers to a network node that is allowed to join the self-organizing domain in the same domain as the registered node.
  • the Registrar node also sends an AD message to other network nodes, where the AD message carries the domain certificate of the Registrar node, and the domain certificate is assigned by the Registrar node itself, and the Registrar A node can configure its own IPv4 address. For example, it can be generated according to its unique device identifier (Uniform Device Identification (UDI)) through a specific hash HASH algorithm, and the Registrar node maintains an ACP in-plane network node. A list of IP addresses.
  • UMI Uniform Device Identification
  • the Registrar node creates a secure connection with its neighboring network nodes.
  • the ACP After the ACP is created, in order to support multi-hop communication, the ACP also needs each network node to have its own IP address and a virtual route for communication within the ACP. And Virtual Forwarding and Forwarding (VRF), so the network node that needs to join the ACP needs to interact with the Registrar node, use its configured IP address, and join the routing domain of the ACP through the running of the routing protocol.
  • VRF Virtual Forwarding and Forwarding
  • the Proxy node After receiving the AD message sent by the neighboring network node, the Proxy node connects the Registrar node through the IP plane in the ACP plane, and sends the AD message of the neighboring network node to the Registrar node.
  • the Registrar node connects through the IP plane in the ACP plane.
  • the Proxy node sends a message to the Proxy node that needs to be sent to the network node adjacent to the Proxy node, and the Proxy node forwards the message to the neighboring network node.
  • the IPv4 address of the ACP is separated from the global routing table, so the IPv4 address of the self-organizing control plane ACP can use the entire 32-bit IP address.
  • the IPv4 address of the network node is an IPv4 address of the ACP.
  • each bit of the IPv4 address of the network node is generated by the network node performing a hash operation according to the device identifier;
  • Each bit of the IPv4 address of the network node is generated by the network node performing a hash operation according to a medium access control MAC address of an interface configured on the network node;
  • Each bit in the IPv4 address of the network node is randomly generated by the network node.
  • the network node may generate each bit in the IPv4 address by using a specific hash operation according to UDI or SUDI, and the UDI may be composed of information such as a serial number of the node; the network node may also be based on a certain node
  • the MAC address of the interface is configured with an IPv4 loopback address.
  • the IPv4 loopback address is used as the IPv4 address of the ACP of the network node.
  • the interface can be selected according to the method in the prior art.
  • the network node can also randomly generate a 32-bit IPv4 address.
  • the first M bits of the IPv4 address of the network node are generated by the network node performing a hash operation according to the domain identifier ID of the associated self-organizing domain, and the last 32- of the IPv4 address of the network node.
  • the M bit is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, and M is a positive integer; or
  • the first N bits of the IPv4 address of the network node are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node.
  • N is a positive integer.
  • the first M bits of the IPv4 address of the network node correspond to the domain ID
  • the last 32-M bits correspond to the name of the device.
  • the newly added network node needs to parse the domain ID of the domain certificate of the neighboring network node received, obtain the domain ID according to this, and perform HASH operation to generate the first M bits of the IPv4 address, and then according to the UDI, SUDI or MAC address.
  • the HASH operation is performed to generate the last 32-M bits of the IPv4 address, or the last 32-M bits of the IPv4 address can be randomly generated.
  • the value of M is 8.
  • the first M bits of the IPv4 address of the network node are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address of the network node are the network node according to the network node.
  • the device identifier or the MAC address of the interface configured on the network node is hashed, and M is a positive integer; or
  • the first N bits of the IPv4 address of the network node are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N is a positive integer.
  • the network node may generate the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and the dedicated IPv4 address may be, for example, 10.* of the class A, and perform HASH calculation according to the UDI, SUDI, or MAC address.
  • the last 32-M bits of the IPv4 address, or the last 32-M bits of the 32-bit IPv4 address are randomly generated.
  • the value of M is 8.
  • the first M bits of the IPv4 address of the network node are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address of the network node.
  • the network node is generated according to the domain ID of the associated self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address of the network node are the network node according to the device identifier or the network.
  • the MAC address of the interface configured on the node is hashed, and M and L are positive integers; or,
  • the first N bits of the IPv4 address of the network node are generated by the network node according to the first N bits of the private IPv4 address
  • the first L bits of the last 32-N bits of the IPv4 address of the network node are the network nodes according to the The domain ID of the organization domain is generated by hash operation.
  • the last 32-NL bits of the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N and L are positive integers.
  • the first L bits of the last 32-M bits of the IPv4 address may correspond to the domain ID
  • the last 32-M-L bits correspond to the name of the device, and the like.
  • the network node may perform a HASH operation according to the acquired domain ID to generate a first L-bit of the last 32-M bits of the IPv4 address, perform a HASH operation according to the UDI, SUDI or MAC address to generate a rear 32-NL of the last 32-N bits. Bit, or the network node randomly generates the last 32-NL bits of the last 32-N bits.
  • the value of L is 8.
  • the network node can configure the IPv4 address by itself, and the self-configured IP address does not need the management process of the Dynamic Host Configuration Protocol ("DHCP"), the DHCP server is not required. Can simplify network management.
  • DHCP Dynamic Host Configuration Protocol
  • the IPv4 address may also be pre-configured.
  • S120 includes:
  • the registration node determines whether the IPv4 address is available.
  • the registration node determines the indication information according to a result of determining whether the IPv4 is available.
  • the registration node determines whether the IPv4 address conflicts with an existing IPv4 address, and determines the indication information according to the result of the conflict.
  • the IPv4 address increment information may indicate that the network node increases the value indicated by the Registrar node on the basis of the IPv4 address configured by the network node.
  • the value of the incremental value may be 1, 2, etc., which is not limited by the disclosure.
  • the domain node sends a domain certificate to the network node, and sends an acknowledgement ACK message to the network node. After receiving the ACK information, the network node knows that the IPv4 address configured by itself is available. Effective address. If the Registrar node detects a conflict, the Registrar node may add an increment information to the reply message. After receiving the reply message, the network node determines that the IPv4 address configured by itself is an unavailable address, and the network node may increase the address according to the increase. The amount information modifies the IPv4 address, or if the reply message carries an available IPv4 address, the network node can directly configure the available IPv4 address as its own IPv4 address.
  • S120 specifically includes:
  • the registration node sends the IPv4 address to the conflict detection server.
  • the registration node receives the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address.
  • the registration node and the conflict detection server agree to send the IPv4 address of the network node to the conflict detection server only when the registration node determines that the network node is a legal node.
  • the registration node may also send the IPv4 address of the network node and the device identifier of the network node to the conflict detection server while determining whether the network node is a legitimate node, and the conflict detection server performs IPv4 address conflict detection, and the conflict detection server is in conflict.
  • the node information query message needs to be sent to the registration node to confirm whether the network node is a legal node, and receives the node information query reply message sent by the registration node, and determines that the network node is legal according to the node information query reply message.
  • the device identifier and the IPv4 address are saved, and the indication information indicating the availability of the IPv4 address is sent to the registration node.
  • the device identifier of the network node is a unique device identifier UDI of the network node
  • S120 is specifically: the registration node determines that the network node is a legal node when determining that the UDI of the network node is in the UDI list.
  • the Registrar node is configured with a whitelist of UDIs of the self-organizing nodes. After receiving the AD message sent by the network node, the Registrar node compares the whitelist with the UDI carried in the AD message and the whitelist. If the UDI matches, it is determined that the network node is a legal node, and the ACP can be established. The Registrar node generates a domain certificate according to the UDI and sends it to the network node. After receiving the domain certificate, the network node uses the domain certificate in subsequent AD broadcasts. book.
  • the device identifier of the network node is a secure unique device identifier SUDI of the network node
  • S120 is specifically: the registration node verifies the device digital certificate corresponding to the SUDI sent by the network node; when the verification of the digital certificate of the device is successful, the registration node determines that the network node is legal according to the verification result of the verification server. node.
  • the network node sends its own device digital certificate (802.1AR certificate) to the Registrar node, and the Registrar node that receives the device digital certificate verifies the certificate by using a public key, and connects to the verification server to verify the network node.
  • the access domain can access the domain
  • the Registrar node confirms that the network node is a legal node, and the Registrar node generates a domain certificate according to the SUDI, and then sends the domain certificate to the domain A network node, and establishing an ACP with the network node according to the domain certificate.
  • FIG. 4 shows a schematic flow chart of a communication method in an ad hoc network according to another embodiment of the present invention.
  • the communication method 200 includes:
  • the Registrar node supports the allocation of a domain certificate (through a pre-configured Domain CA) and configures a whitelist of UDIs of the self-organizing nodes; the Registrar node configures its own IPv4 address, for example, can be generated by a specific HASH algorithm according to UDI. At the same time, the Registrar node maintains a list of IP addresses of nodes in the ACP plane.
  • the Registrar node that receives the AD message compares the whitelist. If the UDI matches, the domain certificate is generated according to the UDI in the AD message, and is sent to the neighboring node that sends the AD message. After receiving the domain certificate, the neighbor node receives the domain certificate. The domain certificate will be used in subsequent AD broadcasts;
  • the ad hoc node After the self-organizing feature is enabled, the ad hoc node continuously initiates an AD message every time (for example, 10s) to find its own neighbor.
  • the AD message includes the domain certificate or UDI of the node (including UDI if no domain certificate is assigned).
  • the neighbor node sends the self-configured IP to the Registrar node simultaneously while transmitting its own UDI.
  • the self-configured IP may be generated according to the UDI through a specific HASH algorithm.
  • the range of IPv4 addresses that can be selected for use can be all 32 bits.
  • the Registrar node After receiving the AD message sent by the neighboring node, the Registrar node can perform collision detection. If the Registrar node does not detect the conflict, the neighboring node receives the domain certificate and obtains an ACK of the Registrar node to identify the IP address. If the Registrar node detects For conflicts, you need to add an incremental message (such as +1) or an available IP to the reply message.
  • the Registrar node and the neighbor node create a secure connection and create an ACP.
  • S204 The node newly joining the ACP joins the Registrar node and uses its configured IP address to join the routing domain of the ACP through the operation of the routing protocol.
  • the addition of the neighbor of the Registrar neighbor requires the neighbor of the Registrar as the Proxy.
  • FIG. 5 shows a schematic flow chart of a communication method in an ad hoc network according to still another embodiment of the present invention. As shown in FIG. 5, the method 300 includes:
  • the Registrar node supports the allocation of a domain certificate (through a pre-configured Domain CA) and can connect to the Internet to access the authentication server; the Registrar node configures its own IPv4 address, for example, can be generated according to SUDI through a specific HASH algorithm. At the same time, the Registrar node maintains a list of IP addresses of nodes in the ACP plane.
  • the neighbor node of the Registrar node is found to send its own device digital (802.1AR) certificate to the Registrar node, and the Registrar node that receives the digital certificate of the device uses the public key to verify the certificate, and connects to the verification server to verify the neighbor node. Whether the domain can be accessed, if the verification is successful, the Registrar node generates a domain certificate according to the SUDI of the neighbor node, and sends the domain certificate to the neighbor node;
  • the ad-hoc node After the self-organizing feature is enabled, the ad-hoc node initiates an AD message every time (for example, 10s) to find its own neighbor.
  • the AD message includes the domain certificate or SUDI of the node (including SUDI if no domain certificate is assigned).
  • the neighbor node sends the self-configured IP to the Registrar at the same time as sending its own SUDI.
  • the self-configured IP can be generated according to SUDI through a specific HASH algorithm.
  • the range of IPv4 addresses that can be selected for use can be all 32 bits.
  • the Registrar After receiving the AD message sent by the neighboring node, the Registrar can perform collision detection. If the Registrar does not detect the conflict, the neighboring node obtains an ACK of the Registrar and identifies the IP address while receiving the domain certificate. If the Registrar detects the conflict, it needs to Add an incremental message (such as +1) to the reply message, or an available IP.
  • an incremental message such as +1
  • the Registrar node and the neighbor node create a secure connection and create an ACP.
  • S304 The node newly joining the ACP joins the Registrar node, uses its configured IP address, and joins the routing domain through the routing protocol.
  • FIG. 6 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention. As shown in FIG. 6, the method 400 includes:
  • the registration node receives an AD message sent by the network node.
  • the AD message carries the device identifier of the network node and the automatically generated IPv4 address.
  • the registration node sends the device identifier and the IPv4 address to the conflict detection server when determining that the network node is allowed to join the self-organizing domain.
  • the conflict detection server determines whether an IPv4 address conflict exists.
  • the conflict detection server sends a conflict detection reply message to the registration node.
  • the registration node sends the conflict detection reply message to the network node.
  • the conflict detection reply message carries an IPv4 address increment information or an available IPv4 address, and if the conflict detection server determines that there is no IPv4 address conflict, the conflict A check reply message indicates that the IPv4 address is available.
  • the method 400 further includes:
  • the conflict detection server sends a node query message to the registration node.
  • the conflict detection server receives a node query reply message sent by the registration node.
  • the conflict detection server determines that the network node is allowed to join the ad hoc domain according to the node query reply message
  • the conflict detection reply message is sent to the registration node.
  • the conflict detection service may first determine whether the conflict detection result corresponding to the device identifier and the IPv4 address is saved, and if the conflict detection result corresponding to the device identifier and the IPv4 address is saved, the saved conflict detection is directly saved. The result is sent to the registration node without executing S403. If the conflict detection server determines that the conflict detection result corresponding to the device identification and the IPv4 address is not saved, then S406, S407, and subsequent operations are performed.
  • the registration node receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, and determines that the network node is a legal node according to the device identifier. And obtaining the indication information of the availability of the IPv4 address, and then sending the domain certificate and the indication information to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • a communication method in an ad hoc network will be described in detail below with reference to FIG. 8, the communication method 500 includes:
  • the conflict detection server receives an IPv4 address sent by the registration node.
  • the conflict detection server determines whether the IPv4 address is available.
  • the conflict detection server receives the registration node to forward the IPv4 address, and performs collision detection to determine whether the IPv4 address is available.
  • the conflict detection server can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration section.
  • the IPv4 address is automatically generated by the network node.
  • each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is determined by the network node according to the network.
  • the media access control MAC address of the interface configured on the node is hashed; or each bit in the IPv4 address is randomly generated by the network node.
  • the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are generated by the network.
  • the node performs the device ID or the MAC address of the interface configured on the network node.
  • M is a positive integer
  • the first N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address It is randomly generated by the network node, and N is a positive integer.
  • the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are the network node according to the device identifier or the network.
  • the MAC address of the interface configured on the node is hashed, and M is a positive integer.
  • the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32 bits of the IPv4 address.
  • the -N bit is randomly generated by the network node, and N is a positive integer.
  • the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address
  • the first L bits of the last 32-M bits of the IPv4 address are the network node according to the The domain ID of the self-organizing domain is generated by hash operation
  • the last 32-ML bits in the last 32-M bits of the IPv4 address are performed by the network node according to the device identifier or the MAC address of the interface configured on the network node.
  • M, L is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the first L of the last 32-N bits of the IPv4 address The bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, N, L is a positive integer.
  • the registration node may forward the IPv4 address together with the device identifier of the network node to the conflict detection server, so that the conflict detection server can determine whether the network node is a legal node according to the device identifier.
  • the method 500 further includes:
  • the conflict detection server sends a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate the availability of the IPv4 address.
  • the first conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
  • the conflict detection server and the registration node agree in advance that the registration node sends the IPv4 address of the network node to the conflict detection server only when the registration node determines that the network node is a legal node, the conflict occurs.
  • the detecting server may directly send the first conflict detection reply message to the registration node after determining whether the IPv4 address is available. Otherwise, the conflict detection server may first send a node information query message to the registration node, and the node information is checked.
  • the query message is used to query whether the network node is a legal node, and then the conflict detection server receives the node information query reply message sent by the registration node, and determines that the network node corresponding to the device identifier is a legal node according to the node information query reply message. And saving the device identifier and the IPv4 address, and sending the first conflict detection reply message to the registration node.
  • the conflict detection server may first determine whether the conflict detection result corresponding to the device identifier and the IPv4 address is saved. If it is determined that the conflict detection result corresponding to the device identifier and the IPv4 address is saved, the first conflict detection reply message is directly sent to the registration node. Otherwise, the conflict detection server needs to send a node query message to the registration node to verify whether the network node corresponding to the device identifier is a legal node, and if it is a legal node, send a first conflict detection reply message to the registration node, if not legal The node does not send the first conflict detection reply message.
  • the communication method 500 further includes:
  • the conflict detection server sends a second conflict detection reply message to the network node corresponding to the device identifier, where the second conflict detection reply message is used to indicate the availability of the IPv4.
  • the second conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
  • the conflict detection server may directly send the second conflict detection reply message to the network node corresponding to the device identifier, or may first send the proxy to the network node corresponding to the device identifier. a node by which the second conflict detection reply message is forwarded to the network node.
  • the conflict detection server may further receive a device identifier and an IPv4 address sent by the proxy node, where the proxy node may be a network node that has established a connection with the registration node and is connected to the conflict detection server.
  • the conflict detection server performs collision detection to determine whether the IPv4 address is available, and then determines whether a conflict detection result corresponding to the device identifier and the IPv4 address is saved, if it is determined that the device identifier and the IPv4 are saved.
  • the conflict detection result corresponding to the address directly sends a conflict detection reply message to the proxy node.
  • the conflict detection server needs to send a node query message to the registration node to verify whether the network node corresponding to the device identifier is a legal node, and if it is a legal node, send a conflict detection reply message to the registration node, if not a legitimate node. Do not send conflict detection responses Message.
  • the communication method 600 includes:
  • the registration node receives an AD message sent by the network node, and verifies that the network node is allowed to be added to the self-organizing domain.
  • the conflict detection server receives the device identifier and the IPv4 address carried in the AD message of the network node sent by the proxy node.
  • the proxy node When the proxy node sends the device identifier and the IPv4 address to the conflict detection server, it first receives the AD message sent by the network node.
  • the conflict detection server determines whether an IPv4 address conflict exists.
  • the conflict detection server sends a node information query message to the registration node.
  • the conflict detection server receives the node information query reply message sent by the registration node.
  • conflict detection server determines, according to the node information query reply message, that the network node is allowed to join the ad hoc domain, send a conflict detection reply message to the proxy node.
  • the proxy node sends a conflict detection reply message to the network node.
  • the conflict detection server executes S603, it may be determined whether a conflict detection result corresponding to the device identifier and the IPv4 address is saved, if the conflict detection corresponding to the device identifier and the IPv4 address is saved. As a result, the saved conflict detection result is directly sent to the proxy node without executing S603. If the conflict detecting server determines that the conflict detection result corresponding to the device identification and the IPv4 address is not saved, the operations of S603 and thereafter are performed.
  • the conflict detection server can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration section.
  • FIG. 12 A schematic flowchart of a communication method in an ad-hoc network according to still another embodiment of the present invention, which may be performed by a network node (e.g., a router) as shown in FIG. 12, is illustrated in conjunction with FIG. include:
  • the network node automatically generates an IPv4 address.
  • the network node sends a neighbor discovery AD message to the registration node, where the AD message carries the device identifier of the network node and the IPv4 address;
  • the network node receives the domain certificate and the indication information of the availability of the IPv4 address, the domain The certificate is sent by the registration node;
  • the network node establishes an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information.
  • the network node in the network automatically generates an IPv4 address, and sends a neighbor discovery AD message carrying the device identifier and the IPv4 address to the registration node to support the domain certificate, and then receives the domain determined by the registration node according to the device identifier. And a certificate indicating the availability of the IPv4 address, and establishing an ACP with the registration node according to the domain certificate and the indication information.
  • the network node sends an AD message to the registration node capable of supporting the allocation of the domain certificate, and receives the device identifier determined by the registration node according to the device identifier in the AD message sent by the node.
  • the domain certificate and the indication information indicating the availability of the IPv4 address, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the network node when the network node is not a neighboring node of a Registrar, the network node needs to first send an AD message to its neighboring network node, and then the network node connected through the network node in turn Forward, and finally forward the AD message to the Registrar node.
  • the IPv4 address is an IPv4 address of the ACP.
  • the device identifier is a unique device identifier UDI of the network node, and the registration node is configured with a UDI list.
  • the device identifier is a secure unique device identifier SUDI of the network node, and the registration node is capable of accessing an authentication server in the Internet.
  • the indication information indicates that the IPv4 address is available; or the indication information includes an IPv4 address increment information or an available IPv4 address.
  • the S710 is specifically: the network node performs a hash operation according to the device identifier to generate each bit in the IPv4 address; or the network node performs a hash operation according to the media access control MAC address of the configured interface to generate the Each bit in the IPv4 address; or, the network node randomly generates each bit in the IPv4 address.
  • the S710 is specifically: the network node performs a hash operation according to the domain identifier ID of the associated self-organizing domain to generate a first M-bit of the IPv4 address, and performs a hash operation according to the device identifier or the configured MAC address of the interface.
  • the last 32-M bits of the IPv4 address, M is a positive integer; or, the network node performs a hash operation according to the domain ID of the associated self-organizing domain to generate the IPv4 address.
  • N bits, the last 32-N bits of the IPv4 address are randomly generated, and N is a positive integer.
  • the S710 is specifically: the network node generates the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performs hash operation according to the device identifier or the MAC address of the configured interface to generate the last 32 of the IPv4 address.
  • M is a positive integer; or, the network node generates the first N bits of the IPv4 address according to the first N bits of the private IPv4 address, and randomly generates the last 32-N bits of the IPv4 address, where N is a positive integer.
  • the S710 is specifically: the network node generates the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performs hash operation according to the domain ID of the associated self-organizing domain to generate the last 32-M of the IPv4 address.
  • the first L bits in the bit are hashed according to the device identifier or the MAC address of the configured interface to generate the last 32-ML bits in the last 32-M bits of the IPv4 address, where M and L are positive integers; or
  • the network node generates the first N bits of the IPv4 address according to the first N bits of the dedicated IPv4 address, performs hash operation according to the domain ID of the associated self-organizing domain, and generates the first L bits in the last 32-N bits of the IPv4 address, randomly.
  • the last 32-NL bits of the last 32-N bits of the IPv4 address are generated, N, L being positive integers.
  • the IPv4 availability indication information is sent by the registration node; or the IPv4 availability indication information is sent by the conflict detection server.
  • the network node sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the IPv4.
  • An indication of address availability and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the communication device 10 includes:
  • the receiving module 11 is configured to receive a neighbor discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node;
  • the obtaining module 12 is configured to obtain indication information about the availability of the IPv4 address
  • the determining module 13 is configured to determine, according to the device identifier, whether the network node is a legal node
  • the sending module 14 is configured to send the domain certificate and the indication information to the network node when the determining module 11 determines that the network node is a legal node.
  • the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is determined by the network node.
  • the hash operation is generated according to the medium access control MAC address of the interface configured on the network node; or each bit in the IPv4 address is randomly generated by the network node.
  • the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are Generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, M is a positive integer; or the first N bits of the IPv4 address are self-organized according to the network node
  • M is a positive integer
  • the first N bits of the IPv4 address are self-organized according to the network node
  • the domain ID of the domain is generated by hash operation.
  • the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the IPv4 address is automatically generated by the network node, and includes: the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the IPv4 address is generated.
  • the last 32-M bits are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, and M is a positive integer; or the first N bits of the IPv4 address are the network node.
  • the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the network.
  • the node generates a hash operation according to the domain ID of the own self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address are the network node according to the device identifier or the interface configured on the network node.
  • M and L are positive integers; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are The first L bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node. , N, L are positive integers.
  • the acquiring module 12 is specifically configured to: determine the IPv4 ground. Whether the address is available; the indication information is determined according to the result of determining whether the IPv4 is available.
  • the obtaining module 12 is specifically configured to: when determining that the IPv4 address is available, determining that the indication information indicates that an IPv4 address of the network node is available; or, when determining that the IPv4 address is unavailable, It is determined that the indication information includes IPv4 address increment information or an available IPv4 address.
  • the sending module 14 is further configured to: send the IPv4 address to the conflict detection server;
  • the obtaining module 12 is specifically configured to: receive the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
  • the sending module 14 is specifically configured to: send the IPv4 address and the device identifier to the conflict detection server.
  • the device identifier of the network node is a unique device identifier UDI of the network node
  • the determining module 13 is specifically configured to: when determining that the UDI of the network node is in the UDI list, determine that the network node is a legal node.
  • the device identifier of the network node is a secure unique device identifier SUDI of the network node
  • the determining module 13 is specifically configured to: verify the device digital certificate corresponding to the SUDI sent by the network node; and when verifying that the device digital certificate is successful, determine that the network node is a legal node according to the verification result of the verification server.
  • the IPv4 address is an IPv4 address of the self-organizing control plane ACP.
  • the communication device 10 in accordance with an embodiment of the present invention may correspond to performing the method 100 in an embodiment of the present invention, and that the above and other operations and/or functions of the various modules in the communication device 10 are respectively implemented in order to implement FIGS. 1 through 3
  • the corresponding processes of each method in the following are not repeated here for brevity.
  • the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node.
  • the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node.
  • an IPv4 based ACP can be established, Improve network compatibility and reduce network deployment barriers.
  • FIG. 14 shows a communication device in an ad hoc network according to another embodiment of the present invention.
  • the communication device 20 includes:
  • the receiving module 21 is configured to receive an IPv4 address sent by the registration node;
  • the determining module 22 is configured to determine whether the IPv4 address is available.
  • the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration node.
  • the IPv4 address is automatically generated by a network node.
  • the receiving module 21 is specifically configured to: receive the IPv4 address sent by the registration node and a device identifier corresponding to the network node.
  • each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is determined by the network node.
  • the hash operation is generated according to the medium access control MAC address of the interface configured on the network node; or each bit in the IPv4 address is randomly generated by the network node.
  • the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are Generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, M is a positive integer; or the first N bits of the IPv4 address are self-organized according to the network node
  • M is a positive integer
  • the first N bits of the IPv4 address are self-organized according to the network node
  • the domain ID of the domain is generated by hash operation.
  • the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are the network node according to the device identifier.
  • the MAC address of the interface configured on the network node is hashed, and M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address, and the IPv4 address is generated.
  • the last 32-N bits are randomly generated by the network node, and N is a positive integer.
  • the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the network.
  • the node generates a hash operation according to the domain ID of the own self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address are the network node according to the device identifier or the network node.
  • the MAC address of the configured interface is generated by hash operation, and M and L are positive integers.
  • the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32 bits of the IPv4 address.
  • the first L bit in the -N bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are the network Randomly generated by the node, N, L are positive integers.
  • the communication device further includes: a first sending module 23, configured to send a first conflict detection reply message to the registration node, where the first conflict detection reply message is used Indicating the availability of the IPv4 address;
  • the first conflict detection reply message indicates that the IPv4 address is available; or, when the determining module 22 determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address increase. Quantity information or available IPv4 address.
  • the communication device further includes: a second sending module 24, configured to send, to the network node, a second conflict detection reply message, the second conflict detection reply message Indicate the availability of the IPv4;
  • the second conflict detection reply message indicates that the IPv4 address is available; or, when the determining module 22 determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address increase. Quantity information or available IPv4 address.
  • communication device 20 in accordance with an embodiment of the present invention may correspond to performing method 700 in an embodiment of the present invention, and that the above and other operations and/or functions of various modules in communication device 20 are respectively implemented in order to implement FIGS. 8-10
  • the corresponding processes of each method in the following are not repeated here for brevity.
  • the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration node.
  • the communication device 30 includes:
  • the sending module 32 is configured to send a neighbor discovery AD message to the registration node, where the AD message carries the device identifier of the communication device and the IPv4 address;
  • the receiving module 33 is configured to receive the domain certificate and the indication information about the availability of the IPv4 address, where the domain certificate is sent by the registration node;
  • connection establishing module 34 is configured to establish an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information received by the receiving module.
  • the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the address generating module 31 is specifically configured to: perform a hash operation according to the device identifier to generate each bit in the IPv4 address; or control the MAC address according to the media access of the configured interface.
  • a hash operation is performed to generate each bit in the IPv4 address; or, each bit in the IPv4 address is randomly generated.
  • the address generating module 31 is specifically configured to: perform a hash operation according to the domain identifier ID of the associated self-organizing domain to generate the first M bits of the IPv4 address, according to the device identifier or configuration.
  • the MAC address of the interface is hashed to generate the last 32-M bits of the IPv4 address, and M is a positive integer.
  • the first N bits of the IPv4 address are generated by hashing according to the domain ID of the associated self-organizing domain, and randomly generated.
  • the last 32-N bits of the IPv4 address, N is a positive integer.
  • the address generating module 31 is specifically configured to: generate the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and perform the HA according to the device identifier or the configured MAC address of the interface.
  • the operation generates the last 32-M bits of the IPv4 address, and M is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated, N Is a positive integer.
  • the address generating module 31 is specifically configured to: generate a front M bit of the IPv4 address according to the first M bits of the dedicated IPv4 address, and perform a hash operation according to the domain ID of the associated self-organizing domain.
  • the indication information received by the receiving module 33 indicates that the IPv4 address is available; or the indication information received by the receiving module 33 includes an IPv4 address increment letter. Interest or available IPv4 address.
  • the IPv4 availability indication information received by the receiving module 33 is sent by the registration node; or the IPv4 availability indication information received by the receiving module 33 is sent by the conflict detection server. .
  • the device identifier is a unique device identifier UDI of the communication device, and the registration node is configured with a UDI list.
  • the device identifier is a secure unique device identifier SUDI of the communication device, and the registration node is capable of accessing an authentication server in the Internet.
  • the IPv4 address is an IPv4 address of the ACP.
  • communication device 30 in accordance with an embodiment of the present invention may correspond to performing method 700 in an embodiment of the present invention, and that the above and other operations and/or functions of various modules in communication device 30 are respectively implemented in order to implement each of FIG. The corresponding process of the method is not repeated here for the sake of brevity.
  • the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the embodiment of the present invention provides a self-organizing network system, including the communication device 10 shown in FIG. 13 and the communication device 30 shown in FIG.
  • the embodiment of the present invention further provides a self-organizing network system, including the communication device 10 shown in FIG. 13, the communication device 30 shown in FIG. 17, and the communication device 20 shown in any of FIGS. 14 to 16.
  • an embodiment of the present invention further provides a communication device 40 in an ad hoc network.
  • the communication device 40 includes a processor 41, a memory 42, a receiver 43, a transmitter 44, and a bus system 45.
  • the processor 41, the memory 42, the receiver 43, and the transmitter 44 are connected by a bus system 45 for storing instructions for executing instructions stored in the memory 42 to control the receiver 43 to receive.
  • the signal and transmitter 44 sends a signal.
  • the receiver 43 is configured to receive a neighbor discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node;
  • the processor 41 is configured to obtain the indication information of the availability of the IPv4 address, and the processor 41 is further configured to determine, according to the device identifier, whether the network node is a legal node; the transmitter 44. For transmitting, when the processor 41 determines that the network node is a legal node, sending a domain certificate and the indication information to the network node.
  • the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the processor 41 may be a central processing unit (“CPU"), and the processor 41 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 42 can include read only memory and random access memory and provides instructions and data to the processor 41.
  • a portion of the memory 42 may also include a non-volatile random access memory.
  • the memory 42 can also store information of the device type.
  • the bus system 45 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 45 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 41 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 42, and the processor 41 reads the information in the memory 42 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the IPv4 address is automatically generated by the network node, and includes: each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or Each bit in the IPv4 address is generated by the network node hashing according to the medium access control MAC address of the interface configured on the network node; or each bit in the IPv4 address is randomly generated by the network node of.
  • the IPv4 address is automatically generated by the network node.
  • the method includes: the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the device identifier or If the MAC address of the interface configured on the network node is hashed, M is a positive integer; or the first N bits of the IPv4 address are generated by the network node according to the domain ID of the self-organizing domain to which the network node belongs. The last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the IPv4 address is followed by the IPv4 address.
  • the 32-M bit is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, where M is a positive integer; or, the first N bits of the IPv4 address are the network node according to the dedicated Generated by the first N bits of the IPv4 address, the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  • the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the IPv4 address is followed by the IPv4 address.
  • the first L bit in the 32-M bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address are the network node according to the network node.
  • the device identifier or the MAC address of the interface configured on the network node is hashed, and M, L are positive integers; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address.
  • the first L bit in the last 32-N bits of the IPv4 address is generated by the network node performing a hash operation according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address of the network node
  • the last 32-NL bits are randomly generated by the network node, and N and L are positive integers.
  • the processor 41 is specifically configured to: determine whether the IPv4 address is available; and determine the indication information according to a result of determining whether the IPv4 is available.
  • the processor 41 is specifically configured to: when determining that the IPv4 address is available, determine that the indication information indicates that an IPv4 address of the network node is available; or, when determining that the IPv4 address is unavailable, determine the The indication information includes IPv4 address increment information or an available IPv4 address.
  • the transmitter 44 is further configured to: send the IPv4 address to the conflict detection server;
  • the receiver 43 is specifically configured to: receive the indication sent by the conflict detection server.
  • the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
  • the transmitter 44 is specifically configured to: send the IPv4 address and the device identifier to the conflict detection server.
  • the communication device 40 may correspond to the communication device 10 in the embodiment of the present invention, and may correspond to a corresponding body in the method according to the embodiment of the present invention, and each module in the communication device 40
  • the above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 1 to FIG. 3, and are not described herein again for brevity.
  • the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • an embodiment of the present invention further provides a communication device 50 in an ad hoc network, the communication device 50 including a processor 51, a memory 52, a receiver 53, a transmitter 54, and a bus system 55.
  • the processor 51, the memory 52, the receiver 53, and the transmitter 54 are connected by a bus system 55 for storing instructions for executing instructions stored in the memory 52 to control the receiver 53 to receive.
  • the signal and transmitter 54 sends a signal.
  • the receiver 53 is configured to receive an IPv4 address sent by the registration node, and the processor 51 is configured to determine whether the IPv4 address is available.
  • the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration node.
  • the processor 51 may be a central processing unit ("CPU"), and the processor 51 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 52 can include read only memory and random access memory and provides instructions and data to the processor 51. A portion of the memory 52 may also include a non-volatile random access memory. For example, the memory 52 can also store information of the device type.
  • the bus system 55 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 55 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 51 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • the software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like.
  • the storage medium is located in the memory 52, and the processor 51 reads the information in the memory 52 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
  • the IPv4 address is automatically generated by the network node.
  • the receiver 53 is specifically configured to: receive the IPv4 address sent by the registration node and a device identifier corresponding to the network node.
  • the transmitter 54 is configured to send, to the registration node, a first conflict detection reply message, where the first conflict detection reply message is used to indicate availability of the IPv4 address;
  • the processor 51 determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available;
  • the first conflict detection information includes IPv4 address increment information or an available IPv4 address.
  • the transmitter 54 is further configured to send, to the network node, a second conflict detection reply message, where the second conflict detection reply message indicates availability of the IPv4;
  • the second conflict detection reply message indicates that the IPv4 address is available
  • the second collision detection information includes IPv4 address increment information or an available IPv4 address.
  • the communication device 50 may correspond to the communication device 20 in the embodiment of the present invention, and may correspond to a corresponding body in the method according to the embodiment of the present invention, and each module in the communication device 50
  • the above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 8 to FIG. 10, and are not described herein again for brevity.
  • the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node, and determine whether the IPv4 address is available, thereby reducing the processing of the registration section. Miscellaneous.
  • an embodiment of the present invention further provides a communication device 60 in an ad hoc network, the communication device 60 including a processor 61, a memory 62, a transmitter 63, a receiver 64, and a bus system 65.
  • the processor 61, the memory 62, the transmitter 63 and the receiver 64 are connected by a bus system 65 for storing instructions for executing instructions stored in the memory 62 for controlling the transmitter 63 to transmit Signal and receiver 64 receive the signal.
  • the processor 61 is configured to automatically generate an IPv4 address, and the transmitter 63 is configured to send a neighbor discovery AD message to the registration node, where the AD message carries a device identifier of the communication device and the IPv4 address;
  • the device 64 is configured to receive the domain certificate and the indication information of the IPv4 address availability, where the domain certificate is sent by the registration node.
  • the processor 61 is further configured to receive the domain certificate and the indication according to the receiver 64. The information establishes an ad hoc control plane ACP with the registration node.
  • the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • the processor 61 may be a central processing unit ("CPU"), and the processor 61 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like.
  • the general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
  • the memory 62 can include read only memory and random access memory and provides instructions and data to the processor 61. A portion of the memory 62 may also include a non-volatile random access memory. For example, the memory 62 can also store information of the device type.
  • the bus system 65 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 65 in the figure.
  • each step of the above method may be completed by an integrated logic circuit of hardware in the processor 61 or an instruction in a form of software.
  • the steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor.
  • Software modules can be located in random access memory, flash memory, read-only memory, programmable only Read memory or electrically erasable programmable memory, registers, etc. are well-known storage media in the field.
  • the storage medium is located in the memory 62, and the processor 61 reads the information in the memory 62 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.
  • the processor 61 is specifically configured to: perform a hash operation according to the device identifier to generate each bit in the IPv4 address; or control a MAC address according to a media access of the configured interface. Performing a hash operation to generate each bit in the IPv4 address; or randomly generating each bit in the IPv4 address.
  • the processor 61 is specifically configured to: perform a hash operation according to a domain identifier ID of the associated self-organizing domain to generate a first M-bit of the IPv4 address, according to the device identifier or configuration.
  • the MAC address of the interface is hashed to generate the last 32-M bits of the IPv4 address, and M is a positive integer; or, the hash operation is performed according to the domain ID of the associated self-organizing domain to generate the first N bits of the IPv4 address, The last 32-N bits of the IPv4 address are randomly generated, and N is a positive integer.
  • the processor 61 is specifically configured to: generate a first M bit of the IPv4 address according to the first M bits of the dedicated IPv4 address, and perform, according to the device identifier or the configured MAC address of the interface.
  • the operation generates the last 32-M bits of the IPv4 address, and M is a positive integer; or, generates the first N bits of the IPv4 address according to the first N bits of the dedicated IPv4 address, and randomly generates the last 32-N of the IPv4 address.
  • Bit, N is a positive integer.
  • the processor 61 is specifically configured to: generate a first M bit of the IPv4 address according to a first M bits of the dedicated IPv4 address, and perform a hash operation according to the domain ID of the associated self-organizing domain.
  • the first L bits of the last 32-M bits of the IPv4 address are hashed according to the device identifier or the configured MAC address of the interface to generate the last 32-ML bits of the last 32-M bits of the IPv4 address.
  • M, L is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the hash operation is performed according to the domain ID of the associated self-organizing domain to generate the last 32- of the IPv4 address.
  • the first L bits of the N bits randomly generate the last 32-NL bits of the last 32-N bits of the IPv4 address, and N, L are positive integers.
  • the indication information received by the receiver 64 indicates that the IPv4 address is available; or the indication information received by the receiver 64 includes an IPv4 address increment information or an available IPv4 address. .
  • the IPv4 availability indication information received by the receiver 64 is sent by the registration node; or the IPv4 availability received by the receiver 64.
  • the indication information is sent by the conflict detection server.
  • the communication device 60 may correspond to the communication device 30 in the embodiment of the present invention, and may correspond to a corresponding body in the method according to the embodiment of the present invention, and each module in the communication device 60
  • the above and other operations and/or functions are respectively implemented in order to implement the corresponding processes of the respective methods in FIG. 12, and are not described herein again for brevity.
  • the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
  • system and “network” are used interchangeably herein. It should be understood that the term “and/or” herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
  • B corresponding to A means that B is associated with A, and B can be determined from A.
  • determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
  • the disclosed systems, devices, and methods may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • 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, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • An integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Abstract

Embodiments of the present invention provide a communication method, apparatus and system. The communication method comprises: a registration node receives an adjacency discovery (AD) message sent by a network node, the AD message carrying a device identifier of the network node and an IPv4 address of the network node, and the IPv4 address being automatically generated by the network node; the registration node acquires indication information of availability of the IPv4 address; the registration node determines whether the network node is a valid node according to the device identifier; and when the registration node determines that the network node is a valid node, the registration node sends a domain certificate and the indication information to the network node. Accordingly, an IPv4-based autonomic control plane (ACP) can be established, the compatibility of a network can be improved, and obstacles in network deployment can be reduced.

Description

一种通信方法、装置和系统Communication method, device and system 技术领域Technical field
本发明涉及信息技术领域,并且更具体地,涉及一种通信方法、装置和系统。The present invention relates to the field of information technology and, more particularly, to a communication method, apparatus and system.
背景技术Background technique
自组织网络支持自管理,可以减少管理员的干预,提升网络的自动化程度,采用自组织网络能够减轻网络管理的工作,方便新业务的部署,减少配置失误概率,降低网络的运营成本。The self-organizing network supports self-management, which can reduce the intervention of administrators and improve the automation of the network. The self-organizing network can alleviate the work of network management, facilitate the deployment of new services, reduce the probability of configuration errors, and reduce the operating costs of the network.
自组织网络的一个重要的方面是设备可以“即插即用”,支持自举,自配置,其中一个关键的技术是自组织控制平面(Autonomic Control Plane,简称为“ACP”),ACP的特点是:无需管理员参与,自动产生,自动生长,端到端的连接建立完全“零接触(zero-touch)”;而且ACP不受管理员的错误配置的影响;能够实现信息的安全交互。An important aspect of self-organizing networks is that devices can be “plug and play” and support bootstrapping and self-configuration. One of the key technologies is Autonomic Control Plane (ACP), the characteristics of ACP. Yes: no need for administrator participation, automatic generation, automatic growth, end-to-end connection to establish a complete "zero-touch"; and ACP is not affected by the administrator's misconfiguration; can achieve secure interaction of information.
现有技术的方案中ACP的建立需要设备具有自组织特性且支持互联网协议版本6(Internet Protocol Version 6,简称为“IPv6”),但是现网中的大部分设备不支持IPv6,由此导致网络的兼容性较差,存在较多部署障碍。The establishment of the ACP in the prior art solution requires the device to have self-organizing characteristics and supports Internet Protocol Version 6, which is referred to as "IPv6", but most devices in the current network do not support IPv6, thereby causing the network. The compatibility is poor and there are many deployment obstacles.
发明内容Summary of the invention
本发明提供一种通信方法、装置和系统,能够建立基于IPv4的自组织控制平面ACP,由此能够提高网络的兼容性,减少网络部署障碍。The present invention provides a communication method, apparatus and system capable of establishing an IPv4-based ad hoc control plane ACP, thereby improving network compatibility and reducing network deployment obstacles.
第一方面,提供了一种自组织网络中的通信方法,该通信方法包括:登记节点接收网络节点发送的邻接发现AD消息,该AD消息携带该网络节点的设备标识和该网络节点的IPv4地址,该IPv4地址是由该网络节点自动生成的;该登记节点获取该IPv4地址可用性的指示信息;该登记节点根据该设备标识确定该网络节点是否为合法节点;该登记节点在确定该网络节点为合法节点时,向该网络节点发送域证书和该指示信息。In a first aspect, a communication method in a self-organizing network is provided, the communication method comprising: receiving, by a registration node, a neighbor discovery AD message sent by a network node, the AD message carrying a device identifier of the network node and an IPv4 address of the network node The IPv4 address is automatically generated by the network node; the registration node obtains indication information about the availability of the IPv4 address; the registration node determines, according to the device identifier, whether the network node is a legal node; the registration node determines that the network node is When the node is a legitimate node, the domain certificate and the indication information are sent to the network node.
结合第一方面,在第一方面的第一种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈 希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。With reference to the first aspect, in a first possible implementation manner of the first aspect, the IPv4 address is automatically generated by the network node, including: each bit in the IPv4 address is determined by the network node according to the device identifier Performing a hash operation; or, each bit in the IPv4 address is performed by the network node according to the medium access control MAC address of the interface configured on the network node. Generated by the Greek operation; or, each bit in the IPv4 address is randomly generated by the network node.
结合第一方面,在第一方面的的第二种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。With reference to the first aspect, in a second possible implementation manner of the first aspect, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are determined by the network node according to the The domain ID of the organization domain is generated by hash operation. The last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node. A positive integer; or, the first N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node. , N is a positive integer.
结合第一方面,在第一方面的第三种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。With reference to the first aspect, in a third possible implementation manner of the first aspect, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are before the network node according to the dedicated IPv4 address The last 32-M bits of the IPv4 address generated by the M-bit are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, where M is a positive integer; or, the IPv4 address The first N bits are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
结合第一方面,在第一方面的第四种可能的实现方式,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。With reference to the first aspect, in a fourth possible implementation manner of the first aspect, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are the front M of the network node according to the dedicated IPv4 address. The bit generated, the first L bit in the last 32-M bits of the IPv4 address is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are The 32-ML bit is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, where M and L are positive integers; or, the first N bits of the IPv4 address are the network node. According to the first N bits of the dedicated IPv4 address, the first L bits in the last 32-N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the IPv4 of the network node is generated. The last 32-NL bits of the last 32-N bits of the address are randomly generated by the network node, and N, L are positive integers.
结合第一方面,或第一方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第一方面的第五种可能的实现方式中,该登记节点获取该IPv4地址可用性的指示信息,包括:该登记节点确定该IPv4地址是否可用;该登记节点根据确定该IPv4是否可用的结果确定该指示信息。With reference to the first aspect, or any possible implementation of the first to fourth possible implementation manners of the first aspect, in a fifth possible implementation manner of the first aspect, the registration node acquires the IPv4 address The indication information of availability includes: the registration node determines whether the IPv4 address is available; and the registration node determines the indication information according to a result of determining whether the IPv4 is available.
结合第一方面的第五种可能的实现方式,在第一方面的第六种可能的实现方式中,该登记节点根据确定该IPv4是否可用的结果确定该指示信息, 包括:在该登记节点确定该IPv4地址可用时,确定该指示信息指示该网络节点的IPv4地址可用;或,在该登记节点确定该IPv4地址不可用时,确定该指示信息包括IPv4地址增量信息或可用IPv4地址。With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the registration node determines the indication information according to a result of determining whether the IPv4 is available, The method includes: when the registration node determines that the IPv4 address is available, determining that the indication information indicates that an IPv4 address of the network node is available; or determining, when the registration node determines that the IPv4 address is unavailable, determining that the indication information includes an IPv4 address increment information or Available IPv4 address.
结合第一方面,或第一方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第一方面的第七种可能的实现方式中,该登记节点获取该IPv4地址可用性的指示信息,包括:该登记节点向冲突检测服务器发送该IPv4地址;该登记节点接收该冲突检测服务器发送的该指示信息,该指示信息指示该IPv4地址可用,或,该指示信息包括IPv4地址增量信息或可用IPv4地址。With reference to the first aspect, or any possible implementation of the first to fourth possible implementation manners of the first aspect, in a seventh possible implementation manner of the first aspect, the registration node acquires the IPv4 address The indication information of the availability includes: the registration node sends the IPv4 address to the conflict detection server; the registration node receives the indication information sent by the conflict detection server, the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address Incremental information or an available IPv4 address.
结合第一方面的第七种可能的实现方式,在第一方面的第八种可能的实现方式中,该登记节点向冲突检测服务器发送该IPv4地址,包括:该登记节点向该冲突检测服务器发送该IPv4地址和该设备标识。In conjunction with the seventh possible implementation of the first aspect, in an eighth possible implementation manner of the first aspect, the registration node sends the IPv4 address to the conflict detection server, including: the registration node sends the conflict detection server The IPv4 address and the device identifier.
结合第一方面,或第一方面的第一种至第八种可能的实现方式中任一可能的实现方式,在第一方面的第九种可能的实现方式中,该网络节点的设备标识为该网络节点的唯一设备标识UDI;With reference to the first aspect, or any one of the first to the eighth possible implementation manners of the first aspect, in a ninth possible implementation manner of the first aspect, the device identifier of the network node is The unique device identifier UDI of the network node;
其中,该登记节点根据该设备标识确定该网络节点是否为合法节点,包括:该登记节点在确定该网络节点的UDI在UDI列表中时,确定该网络节点为合法节点。The determining, by the registration node, whether the network node is a legal node according to the device identifier, includes: determining, by the registration node, that the network node is a legal node when determining that the UDI of the network node is in the UDI list.
结合第一方面,或第一方面的第一种至第八种可能的实现方式中任一可能的实现方式,在第一方面的第十种可能的实现方式中,该网络节点的设备标识为该网络节点的安全的唯一设备标识SUDI;With reference to the first aspect, or any one of the first to the eighth possible implementation manners of the first aspect, in a tenth possible implementation manner of the first aspect, the device identifier of the network node is The unique unique device identifier SUDI of the network node;
其中,该登记节点根据该设备标识确定网络节点是否为合法节点,包括:该登记节点验证该网络节点发送的与该SUDI相对应的设备数字证书;该登记节点在验证该设备数字证书成功时,根据验证服务器的验证结果确定该网络节点为合法节点。The registration node determines whether the network node is a legal node according to the device identifier, and includes: the registration node verifies a device digital certificate corresponding to the SUDI sent by the network node; and when the registration node verifies that the device digital certificate is successful, The network node is determined to be a legal node according to the verification result of the verification server.
结合第一方面,或第一方面的第一种至第十种可能的实现方式中任一可能的实现方式,在第一方面的第十一种可能的实现方式中,该IPv4地址为自组织控制平面ACP的IPv4地址。With reference to the first aspect, or any one of the first to the tenth possible implementation manners of the first aspect, in the eleventh possible implementation manner of the first aspect, the IPv4 address is self-organized The IPv4 address of the control plane ACP.
第二方面,提供了一种自组织网络中的通信方法,该通信方法包括:冲突检测服务器接收登记节点发送的IPv4地址;该冲突检测服务器确定该IPv4地址是否可用。 In a second aspect, a communication method in an ad hoc network is provided, the communication method comprising: the conflict detection server receiving an IPv4 address sent by the registration node; the conflict detection server determining whether the IPv4 address is available.
结合第二方面,在第二方面的第一种可能的实现方式中,该IPv4地址是由网络节点自动生成的。In conjunction with the second aspect, in a first possible implementation of the second aspect, the IPv4 address is automatically generated by a network node.
结合第二方面的第一种可能的实现方式,在第二方面的第二种可能的实现方式中,该冲突检测服务器接收登记节点发送的IPv4地址,包括:该冲突检测服务器接该登记节点发送的该IPv4地址和该网络节点的设备标识。With reference to the first possible implementation of the second aspect, in a second possible implementation manner of the second aspect, the conflict detection server receives the IPv4 address sent by the registration node, and the conflict detection server sends the registration node to send The IPv4 address and the device identifier of the network node.
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第三种可能的实现方式中,该IPv4地址是由网络节点自动生成的,包括:该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。In conjunction with the first or second possible implementation of the second aspect, in a third possible implementation of the second aspect, the IPv4 address is automatically generated by the network node, including: each of the IPv4 addresses One bit is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is hashed by the network node according to a medium access control MAC address of an interface configured on the network node. The operation is generated; or, each bit in the IPv4 address is randomly generated by the network node.
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第四种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。In conjunction with the first or second possible implementation of the second aspect, in a fourth possible implementation of the second aspect, the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address The M bit is generated by the network node hashing according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the device identifier or the interface configured on the network node. The MAC address is generated by hash operation, and M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node performing hash operation according to the domain ID of the associated self-organizing domain, and the IPv4 address is followed by The 32-N bits are randomly generated by the network node, and N is a positive integer.
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第五种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。In conjunction with the first or second possible implementation of the second aspect, in a fifth possible implementation of the second aspect, the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address The M bit is generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node. M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, where N is A positive integer.
结合第二方面的第一种或第二种可能的实现方式,在第二方面的第六种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节 点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。In conjunction with the first or second possible implementation of the second aspect, in a sixth possible implementation of the second aspect, the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address The M bit is generated by the network node according to the first M bits of the private IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain. The last 32-ML bits in the last 32-M bits of the IPv4 address are the network section. The point is generated according to the device identifier or the MAC address of the interface configured on the network node, and M, L is a positive integer; or, the first N bits of the IPv4 address are the first N of the network node according to the private IPv4 address. The first L bit in the last 32-N bits of the IPv4 address is generated by the network node according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address of the network node are generated. The last 32-NL bits in the middle are randomly generated by the network node, and N and L are positive integers.
结合第二方面,或第二方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第二方面的第七种可能的实现方式中,该通信方法还包括:该冲突检测服务器向该登记节点发送第一冲突检测答复消息,该第一冲突检测答复消息用于指示该IPv4地址的可用性;With reference to the second aspect, or any one of the first to the sixth possible implementation manners of the second aspect, in a seventh possible implementation manner of the second aspect, the communication method further includes: The conflict detection server sends a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate the availability of the IPv4 address;
其中,在该冲突检测服务器确定该IPv4地址可用时,该第一冲突检测答复消息指示该IPv4地址可用;或,在该冲突检测服务器确定该IPv4地址不可用时,该第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the conflict detection server determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
结合第二方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第二方面的第八种可能的实现方式中,该通信方法还包括:该冲突检测服务器向该网络节点发送第二冲突检测答复消息,该第二冲突检测答复消息用于指示该IPv4的可用性;With reference to any possible implementation of the first to sixth possible implementations of the second aspect, in an eighth possible implementation manner of the second aspect, the communication method further includes: the conflict detection server The network node sends a second conflict detection reply message, where the second conflict detection reply message is used to indicate the availability of the IPv4;
其中,在该冲突检测服务器确定该IPv4地址可用时,该第二冲突检测答复消息指示该IPv4地址可用;或,在该冲突检测服务器确定该IPv4地址不可用时,该第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。Wherein, when the conflict detection server determines that the IPv4 address is available, the second conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
第三方面,提供了一种自组织网络中的通信方法,该通信方法包括:网络节点自动生成IPv4地址;该网络节点向登记节点发送邻接发现AD消息,该AD消息携带该网络节点的设备标识和该IPv4地址;该网络节点接收域证书和该IPv4地址可用性的指示信息,该域证书是由该登记节点发送的;该网络节点根据该域证书和该指示信息与该登记节点建立自组织控制平面ACP。In a third aspect, a communication method in a self-organizing network is provided, the communication method includes: the network node automatically generates an IPv4 address; the network node sends a neighbor discovery AD message to the registration node, where the AD message carries the device identifier of the network node And the IPv4 address; the network node receives the domain certificate and the indication information of the availability of the IPv4 address, the domain certificate is sent by the registration node; the network node establishes a self-organizing control with the registration node according to the domain certificate and the indication information Plane ACP.
结合第三方面,在第三方面的第一种可能的实现方式中,该网络节点自动生成IPv4地址,包括:该网络节点根据该设备标识进行哈希运算生成该IPv4地址中的每一位;或,该网络节点根据配置的接口的介质访问控制MAC地址进行哈希运算生成该IPv4地址中的每一位;或,该网络节点随机生成该IPv4地址中的每一位。 With reference to the third aspect, in a first possible implementation manner of the third aspect, the network node automatically generates an IPv4 address, including: the network node performs a hash operation according to the device identifier to generate each bit in the IPv4 address; Or, the network node performs a hash operation according to the media access control MAC address of the configured interface to generate each bit in the IPv4 address; or the network node randomly generates each bit in the IPv4 address.
结合第三方面,在第三方面的第二种可能的实现方式中,该网络节点自动生成该IPv4地址,包括:该网络节点根据所属的自组织域的域标识ID进行哈希运算生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,该网络节点根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。With reference to the third aspect, in a second possible implementation manner of the third aspect, the network node automatically generates the IPv4 address, including: the network node performs hash operation according to the domain identifier ID of the associated self-organizing domain to generate the IPv4 The first M bits of the address are hashed according to the device ID or the MAC address of the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer; or, the network node is based on the domain of the self-organizing domain to which it belongs. The ID performs a hash operation to generate the first N bits of the IPv4 address, and randomly generates the last 32-N bits of the IPv4 address, where N is a positive integer.
结合第三方面,在第三方面的第三种可能的实现方式中,该网络节点自动生成该IPv4地址,包括:该网络节点根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,该网络节点根据专用IPv4地址的前N位生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。In conjunction with the third aspect, in a third possible implementation manner of the third aspect, the network node automatically generates the IPv4 address, including: the network node generates a first M bit of the IPv4 address according to a first M bits of the dedicated IPv4 address, Performing a hash operation according to the MAC address of the device identifier or the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer; or, the network node generates the IPv4 address according to the first N bits of the dedicated IPv4 address. N bits, the last 32-N bits of the IPv4 address are randomly generated, and N is a positive integer.
结合第三方面,在第三方面的第四种可能的实现方式中,该网络节点自动生成该IPv4地址,包括:该网络节点根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-M位中的前L位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或,该网络节点根据专用IPv4地址的前N位生成该IPv4地址的前N位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-N位中的前L位,随机生成该IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。With reference to the third aspect, in a fourth possible implementation manner of the third aspect, the network node automatically generates the IPv4 address, including: the network node generating a first M bit of the IPv4 address according to a first M bits of the dedicated IPv4 address, The hash operation is performed according to the domain ID of the associated self-organizing domain to generate the first L-bit in the last 32-M bits of the IPv4 address, and the hash operation is performed according to the device identifier or the MAC address of the configured interface to generate the IPv4 address. The last 32-ML bits of the 32-M bits, M, L are positive integers; or, the network node generates the first N bits of the IPv4 address according to the first N bits of the private IPv4 address, according to the domain ID of the associated self-organizing domain A hash operation is performed to generate the first L bits of the last 32-N bits of the IPv4 address, and the last 32-NL bits of the last 32-N bits of the IPv4 address are randomly generated, and N and L are positive integers.
结合第三方面,或第三方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第三方面的第五种可能的实现方式中,该指示信息指示该IPv4地址可用;或,该指示信息包括IPv4地址增量信息或可用IPv4地址。With reference to the third aspect, or any possible implementation manner of the first to fourth possible implementation manners of the third aspect, in a fifth possible implementation manner of the third aspect, the indication information indicates the IPv4 address Available; or, the indication information includes IPv4 address delta information or an available IPv4 address.
结合第三方面,或第三方面的第一种至第五种可能的实现方式中任一可能的实现方式,在第三方面的第六种可能的实现方式中,该IPv4可用性指示信息是由该登记节点发送的;或,该IPv4可用性指示信息是由冲突检测服务器发送的。With reference to the third aspect, or any possible implementation manner of the first to fifth possible implementation manners of the third aspect, in a sixth possible implementation manner of the third aspect, the IPv4 availability indication information is The registration node sends; or, the IPv4 availability indication information is sent by the conflict detection server.
结合第三方面,或第三方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第三方面的第七种可能的实现方式中,该设备标识为该网络节点的唯一设备标识UDI,该登记节点配置有UDI列表。 With reference to the third aspect, or any one of the first to the sixth possible implementation manners of the third aspect, in a seventh possible implementation manner of the third aspect, the device identifier is the network node The unique device identifies UDI, which is configured with a UDI list.
结合第三方面,或第三方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第三方面的第八种可能的实现方式中,该设备标识为该网络节点的安全的唯一设备标识SUDI,该登记节点能够接入到互联网中的验证服务器上。With reference to the third aspect, or any possible implementation manner of the first to the sixth possible implementation manners of the third aspect, in the eighth possible implementation manner of the third aspect, the device identifier is the network node The secure unique device identifies SUDI, which is accessible to the authentication server in the Internet.
结合第三方面,或第三方面的第一种至第八种可能的实现方式中任一可能的实现方式,在第三方面的第九种可能的实现方式中,该IPv4地址为ACP的IPv4地址。With reference to the third aspect, or any possible implementation manner of the first to the eighth possible implementation manners of the third aspect, in the ninth possible implementation manner of the third aspect, the IPv4 address is the IPv4 of the ACP. address.
第四方面,提供了一种自组织网络中的通信装置,该通信装置包括:接收模块,用于接收网络节点发送的邻接发现AD消息,该AD消息携带该网络节点的设备标识和该网络节点的IPv4地址,该IPv4地址是由该网络节点自动生成的;获取模块,用于获取该IPv4地址可用性的指示信息;确定模块,用于根据该设备标识确定该网络节点是否为合法节点;发送模块,用于在该确定模块确定该网络节点为合法节点时,向该网络节点发送域证书和该指示信息。A fourth aspect provides a communication device in a self-organizing network, the communication device comprising: a receiving module, configured to receive a neighbor discovery AD message sent by a network node, where the AD message carries a device identifier of the network node and the network node The IPv4 address, the IPv4 address is automatically generated by the network node; the obtaining module is configured to obtain the indication information of the availability of the IPv4 address, and the determining module is configured to determine, according to the device identifier, whether the network node is a legal node; And, when the determining module determines that the network node is a legal node, sending a domain certificate and the indication information to the network node.
结合第四方面,在第四方面的第一种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。With reference to the fourth aspect, in a first possible implementation manner of the fourth aspect, the IPv4 address is automatically generated by the network node, including: each bit in the IPv4 address is determined by the network node according to the device identifier Performing a hash operation; or, each bit in the IPv4 address is generated by the network node performing a hash operation according to a medium access control MAC address of an interface configured on the network node; or, in the IPv4 address Each bit is randomly generated by the network node.
结合第四方面,在第四方面的第二种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。With reference to the fourth aspect, in a second possible implementation manner of the fourth aspect, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are organized by the network node according to the self-organization The domain ID of the domain is generated by hash operation. The last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, and M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node. , N is a positive integer.
结合第四方面,在第四方面的第三种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地 址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。With reference to the fourth aspect, in a third possible implementation manner of the fourth aspect, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are before the network node according to the dedicated IPv4 address The last 32-M bits of the IPv4 address generated by the M-bit are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, where M is a positive integer; or, the IPv4 address The first N bits are the network node according to the private IPv4 The last 32 bits of the address are generated. The last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
结合第四方面,在第四方面的第四种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。With reference to the fourth aspect, in a fourth possible implementation manner of the fourth aspect, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are before the network node according to the dedicated IPv4 address The first L bits in the last 32-M bits of the IPv4 address are generated by the network node according to the domain ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are generated. The last 32-ML bit is generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, and M, L are positive integers; or, the first N bits of the IPv4 address are the network. The node is generated according to the first N bits of the private IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the network node The last 32-NL bits of the last 32-N bits of the IPv4 address are randomly generated by the network node, and N, L are positive integers.
结合第四方面,或第四方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第四方面的第五种可能的实现方式中,该获取模块具体用于:确定该IPv4地址是否可用;根据确定该IPv4是否可用的结果确定该指示信息。With reference to the fourth aspect, or any possible implementation manner of the first to fourth possible implementation manners of the fourth aspect, in the fifth possible implementation manner of the fourth aspect, the acquiring module is specifically configured to: Determining whether the IPv4 address is available; determining the indication information according to a result of determining whether the IPv4 is available.
结合第四方面的第五种可能的实现方式,在第四方面的第六种可能的实现方式中,该获取模块具体用于:在确定该IPv4地址可用时,确定该指示信息指示该网络节点的IPv4地址可用;或,在确定该IPv4地址不可用时,确定该指示信息包括IPv4地址增量信息或可用IPv4地址。With reference to the fifth possible implementation manner of the foregoing aspect, in a sixth possible implementation manner of the fourth aspect, the acquiring module is configured to: when determining that the IPv4 address is available, determining that the indication information indicates the network node The IPv4 address is available; or, when it is determined that the IPv4 address is unavailable, it is determined that the indication information includes IPv4 address increment information or an available IPv4 address.
结合第四方面,或第四方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第四方面的第七种可能的实现方式中,该发送模块还用于:向冲突检测服务器发送该IPv4地址;With reference to the fourth aspect, or any one of the first to the fourth possible implementation manners of the fourth aspect, in the seventh possible implementation manner of the fourth aspect, the sending module is further configured to: Sending the IPv4 address to the conflict detection server;
其中,该获取模块具体用于:接收该冲突检测服务器发送的该指示信息,该指示信息指示该IPv4地址可用,或,该指示信息包括IPv4地址增量信息或可用IPv4地址;The obtaining module is specifically configured to: receive the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
结合第四方面的第七种可能的实现方式,在第四方面的第八种可能的实现方式中,该发送模块具体用于:向该冲突检测服务器发送该IPv4地址和该设备标识。In conjunction with the seventh possible implementation of the fourth aspect, in an eighth possible implementation manner of the fourth aspect, the sending module is configured to: send the IPv4 address and the device identifier to the conflict detection server.
结合第四方面,或第四方面的第一种至第八种可能的实现方式中任一可能的实现方式,在第四方面的第九种可能的实现方式中,该网络节点的设备 标识为该网络节点的唯一设备标识UDI;With reference to the fourth aspect, or any possible implementation manner of the first to eighth possible implementation manners of the fourth aspect, in a ninth possible implementation manner of the fourth aspect, the device of the network node A unique device identifier UDI identified as the network node;
其中,该确定模块具体用于:在确定该网络节点的UDI在UDI列表中时,确定该网络节点为合法节点。The determining module is specifically configured to: when determining that the UDI of the network node is in the UDI list, determine that the network node is a legal node.
结合第四方面,或第四方面的第一种至第八种可能的实现方式中任一可能的实现方式,在第四方面的第十种可能的实现方式中,该网络节点的设备标识为该网络节点的安全的唯一设备标识SUDI;With reference to the fourth aspect, or any one of the first to the eighth possible implementation manners of the fourth aspect, in a tenth possible implementation manner of the fourth aspect, the device identifier of the network node is The unique unique device identifier SUDI of the network node;
其中,确定模块具体用于:验证该网络节点发送的与该SUDI相对应的设备数字证书;在验证该设备数字证书成功时,根据验证服务器的验证结果确定该网络节点为合法节点。The determining module is specifically configured to: verify the device digital certificate corresponding to the SUDI sent by the network node; and when verifying that the device digital certificate is successful, determine that the network node is a legal node according to the verification result of the verification server.
结合第四方面,或第四方面的第一种至第十种可能的实现方式中任一可能的实现方式,在第四方面的第十一种可能的实现方式中,该IPv4地址为自组织控制平面ACP的IPv4地址。With reference to the fourth aspect, or any one of the first to the tenth possible implementation manners of the fourth aspect, in the eleventh possible implementation manner of the fourth aspect, the IPv4 address is self-organized The IPv4 address of the control plane ACP.
第五方面,提供了一种自组织网络中的通信装置,该通信装置包括:接收模块,用于接收登记节点发送的IPv4地址;确定模块,用于确定该IPv4地址是否可用。A fifth aspect provides a communication device in an ad hoc network, the communication device comprising: a receiving module, configured to receive an IPv4 address sent by the registration node; and a determining module, configured to determine whether the IPv4 address is available.
结合第五方面,在第五方面的第一种可能的实现方式中,该IPv4地址是由网络节点自动生成的。In conjunction with the fifth aspect, in a first possible implementation of the fifth aspect, the IPv4 address is automatically generated by a network node.
结合第五方面的第一种可能的实现方式,在第五方面的第二种可能的实现方式中,该接收模块具体用于:接收该登记节点发送的该IPv4地址和与该网络节点相对应的设备标识。With reference to the first possible implementation manner of the fifth aspect, in a second possible implementation manner of the fifth aspect, the receiving module is specifically configured to: receive the IPv4 address sent by the registration node, and correspond to the network node Device identification.
结合第五方面的第一种或第二种可能的实现方式,在第五方面的第三种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。In conjunction with the first or second possible implementation of the fifth aspect, in a third possible implementation manner of the fifth aspect, the IPv4 address is automatically generated by the network node, including: in the IPv4 address Each bit is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is performed by the network node according to a medium access control MAC address of an interface configured on the network node. Generated by the Greek operation; or, each bit in the IPv4 address is randomly generated by the network node.
结合第五方面的第一种或第二种可能的实现方式,在第五方面的第四种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或, 该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。With reference to the first or second possible implementation manner of the fifth aspect, in a fourth possible implementation manner of the fifth aspect, the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address The M bit is generated by the network node hashing according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the device identifier or the interface configured on the network node. The MAC address is generated by hash operation, and M is a positive integer; or, The first N bits of the IPv4 address are generated by the network node performing a hash operation according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer. .
结合第五方面的第一种或第二种可能的实现方式,在第五方面的第五种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。With reference to the first or second possible implementation manner of the fifth aspect, in a fifth possible implementation manner of the fifth aspect, the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address The M bit is generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node. M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, where N is A positive integer.
结合第五方面的第一种或第二种可能的实现方式,在第五方面的第六种可能的实现方式中,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。With reference to the first or second possible implementation manner of the fifth aspect, in a sixth possible implementation manner of the fifth aspect, the IPv4 address is automatically generated by the network node, including: the front of the IPv4 address The M bit is generated by the network node according to the first M bits of the private IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain. The last 32-ML bit in the last 32-M bits of the IPv4 address is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, where M and L are positive integers; Or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address are the domain of the network node according to the self-organizing domain to which the network node belongs. The ID is hashed, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N and L are positive integers.
结合第五方面,或第五方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第五方面的第七种可能的实现方式中,该通信装置还包括:第一发送模块,用于向该登记节点发送第一冲突检测答复消息,该第一冲突检测答复消息用于指示该IPv4地址的可用性;With reference to the fifth aspect, or any one of the first to the sixth possible implementation manners of the fifth aspect, in a seventh possible implementation manner of the fifth aspect, the communications apparatus further includes: a sending module, configured to send a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate availability of the IPv4 address;
其中,在该确定模块确定该IPv4地址可用时,该第一冲突检测答复消息指示该IPv4地址可用;或,在该确定模块确定该IPv4地址不可用时,该第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the determining module determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available; or, when the determining module determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address increment. Information or available IPv4 address.
结合第五方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第五方面的第八种可能的实现方式中,该通信装置还包括:第二发送模块,用于向该网络节点发送第二冲突检测答复消息,该第二冲突检测答复 消息指示该IPv4的可用性;With reference to any of the possible implementations of the first to sixth possible implementations of the fifth aspect, in an eighth possible implementation manner of the fifth aspect, the communications apparatus further includes: a second sending module, Sending a second conflict detection reply message to the network node, the second conflict detection reply The message indicates the availability of the IPv4;
其中,在该确定模块确定该IPv4地址可用时,该第二冲突检测答复消息指示该IPv4地址可用;或,在该确定模块确定该IPv4地址不可用时,该第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the determining module determines that the IPv4 address is available, the second conflict detection reply message indicates that the IPv4 address is available; or, when the determining module determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address increment. Information or available IPv4 address.
第六方面,提供了一种自组织网络中的通信装置,其特征在于,该通信装置包括:地址生成模块,用于自动生成IPv4地址;发送模块,用于向登记节点发送邻接发现AD消息,该AD消息携带该通信装置的的设备标识和该IPv4地址;接收模块,用于接收域证书和该IPv4地址可用性的指示信息,该域证书是由该登记节点发送的;连接建立模块,用于根据该接收模块接收到的该域证书和该指示信息与该登记节点建立自组织控制平面ACP。The sixth aspect provides a communication device in an ad hoc network, where the communication device includes: an address generation module, configured to automatically generate an IPv4 address, and a sending module, configured to send a neighbor discovery AD message to the registration node, The AD message carries the device identifier of the communication device and the IPv4 address, and the receiving module is configured to receive the domain certificate and the indication information of the availability of the IPv4 address, where the domain certificate is sent by the registration node, and the connection establishment module is configured to: And establishing an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information received by the receiving module.
结合第六方面,在第六方面的第一种可能的实现方式中,该地址生成模块具体用于:根据该设备标识进行哈希运算生成该IPv4地址中的每一位;或,根据配置的接口的介质访问控制MAC地址进行哈希运算生成该IPv4地址中的每一位;或,随机生成该IPv4地址中的每一位。With reference to the sixth aspect, in a first possible implementation manner of the sixth aspect, the address generating module is configured to: perform a hash operation according to the device identifier to generate each bit in the IPv4 address; or, according to the configuration The medium access control MAC address of the interface performs a hash operation to generate each bit in the IPv4 address; or, randomly generates each bit in the IPv4 address.
结合第六方面,在第六方面的第二种可能的实现方式中,该地址生成模块具体用于:根据所属的自组织域的域标识ID进行哈希运算生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。With reference to the sixth aspect, in a second possible implementation manner of the sixth aspect, the address generating module is specifically configured to: perform a hash operation according to a domain identifier ID of the associated self-organizing domain to generate a first M-bit of the IPv4 address, Performing a hash operation according to the MAC address of the device identifier or the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer; or, performing a hash operation according to the domain ID of the associated self-organizing domain to generate the IPv4 address. The first N bits, randomly generate the last 32-N bits of the IPv4 address, and N is a positive integer.
结合第六方面,在第六方面的第三种可能的实现方式中,该地址生成模块具体用于:根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,根据专用IPv4地址的前N位生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。With reference to the sixth aspect, in a third possible implementation manner of the sixth aspect, the address generating module is configured to: generate a first M bit of the IPv4 address according to the first M bits of the dedicated IPv4 address, according to the device identifier or configuration The MAC address of the interface is hashed to generate the last 32-M bits of the IPv4 address, and M is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the IPv4 address is randomly generated. After 32-N bits, N is a positive integer.
结合第六方面,在第六方面的第四种可能的实现方式中,该地址生成模块具体用于:根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-M位中的前L位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或,根据专用IPv4地址的前N位生成该IPv4地址的前N位,根据所属的自组织域的域ID 进行哈希运算生成该IPv4地址的后32-N位中的前L位,随机生成该IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。With reference to the sixth aspect, in a fourth possible implementation manner of the sixth aspect, the address generating module is configured to: generate a first M bit of the IPv4 address according to a first M bit of the dedicated IPv4 address, according to the associated self-organizing domain The domain ID is hashed to generate the first L bits of the last 32-M bits of the IPv4 address, and is hashed according to the device identifier or the configured MAC address of the interface to generate the last 32-M bits of the IPv4 address. The last 32-ML bits, M, L are positive integers; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, according to the domain ID of the associated self-organizing domain A hash operation is performed to generate the first L bits of the last 32-N bits of the IPv4 address, and the last 32-N-L bits of the last 32-N bits of the IPv4 address are randomly generated, and N and L are positive integers.
结合第六方面,或第六方面的第一种至第四种可能的实现方式中任一可能的实现方式,在第六方面的第五种可能的实现方式中,该接收模块接收的该指示信息指示该IPv4地址可用;或,该接收模块接收的该指示信息包括IPv4地址增量信息或可用IPv4地址。With reference to the sixth aspect, or any one of the possible implementation manners of the first to fourth possible implementation manners of the sixth aspect, in the fifth possible implementation manner of the sixth aspect, the receiving module receives the indication The information indicates that the IPv4 address is available; or the indication information received by the receiving module includes IPv4 address increment information or an available IPv4 address.
结合第六方面,或第六方面的第一种至第五种可能的实现方式中任一可能的实现方式,在第六方面的第六种可能的实现方式中,该接收模块接收的该IPv4可用性指示信息是由该登记节点发送的;或,该接收模块接收的该IPv4可用性指示信息是由冲突检测服务器发送的。With reference to the sixth aspect, or any possible implementation manner of the first to fifth possible implementation manners of the sixth aspect, in the sixth possible implementation manner of the sixth aspect, the receiving module receives the IPv4 The availability indication information is sent by the registration node; or the IPv4 availability indication information received by the receiving module is sent by the conflict detection server.
结合第六方面,或第六方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第六方面的第七种可能的实现方式中,该设备标识为该通信装置的唯一设备标识UDI,该登记节点配置有UDI列表。With reference to the sixth aspect, or any one of the first to the sixth possible implementation manners of the sixth aspect, in a seventh possible implementation manner of the sixth aspect, the device identifier is the communication device The unique device identifies UDI, which is configured with a UDI list.
结合第六方面,或第六方面的第一种至第六种可能的实现方式中任一可能的实现方式,在第六方面的第八种可能的实现方式中,该设备标识为该通信装置的安全的唯一设备标识SUDI,该登记节点能够接入到互联网中的验证服务器上。With reference to the sixth aspect, or any one of the first to the sixth possible implementation manners of the sixth aspect, in the eighth possible implementation manner of the sixth aspect, the device identifier is the communication device The secure unique device identifies SUDI, which is accessible to the authentication server in the Internet.
结合第六方面,或第六方面的第一种至第八种可能的实现方式中任一可能的实现方式,在第六方面的第九种可能的实现方式中,该IPv4地址为ACP的IPv4地址。With reference to the sixth aspect, or any one of the first to the eighth possible implementation manners of the sixth aspect, in the ninth possible implementation manner of the sixth aspect, the IPv4 address is the IPv4 of the ACP address.
第七方面,提供了一种自组织网络系统,包括:第四方面或第四方面的第一种至第十一种可能的实现方式中任一可能的实现方式中的通信装置和第六方面或第六方面的第一种至第九种可能的实现方式中任一可能的实现方式中的通信装置。The seventh aspect provides a self-organizing network system, comprising: the communication device and the sixth aspect in any possible implementation manner of the first to eleventh possible implementation manners of the fourth aspect or the fourth aspect Or a communication device in any of the possible implementations of the first to ninth possible implementations of the sixth aspect.
第八方面,提供了一种自组织网络系统,包括:第四方面或第四方面的第一种至第十一种可能的实现方式中任一可能的实现方式中的通信装置、第五方面或第五方面的第一种至第八种可能的实现方式中任一可能的实现方式中的通信装置和第六方面或第六方面的第一种至第九种可能的实现方式中任一可能的实现方式中的通信装置。The eighth aspect provides a self-organizing network system, including: the communication device in any one of the first to eleventh possible implementation manners of the fourth aspect or the fourth aspect, and the fifth aspect Or the communication device in any of the possible implementations of the first to eighth possible implementations of the fifth aspect, and the sixth to the ninth possible implementation manner of the sixth aspect or the sixth aspect A communication device in a possible implementation.
基于上述技术特征,本发明实施例提供的通信方法、装置和系统,登记节点接收网络节点发送的邻接发现AD消息,该AD消息携带该网络节点的 设备标识和该网络节点的IPv4地址,该IPv4地址是由该网络节点自动生成的;该登记节点获取该IPv4地址可用性的指示信息;该登记节点根据该设备标识确定该网络节点是否为合法节点;该登记节点在确定该网络节点为合法节点时,向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的自组织控制平面ACP,提高网络的兼容性,减少网络部署障碍。Based on the foregoing technical features, the communication method, device and system provided by the embodiment of the present invention, the registration node receives the adjacency discovery AD message sent by the network node, and the AD message carries the network node a device identifier and an IPv4 address of the network node, the IPv4 address is automatically generated by the network node; the registration node obtains indication information about availability of the IPv4 address; and the registration node determines, according to the device identifier, whether the network node is a legal node; When the registration node determines that the network node is a legal node, the registration node sends a domain certificate and the indication information to the network node. Thereby, an IPv4-based self-organizing control plane ACP can be established, which improves network compatibility and reduces network deployment obstacles.
附图说明DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, other drawings may be obtained from those skilled in the art without any inventive labor.
图1是根据本发明实施例的自组织网络中的通信方法的示意性流程图;1 is a schematic flowchart of a communication method in an ad hoc network according to an embodiment of the present invention;
图2是根据本发明实施例的自组织网络中的通信方法的另一示意性流程图;2 is another schematic flowchart of a communication method in an ad hoc network according to an embodiment of the present invention;
图3是根据本发明实施例的自组织网络中的通信方法的再一示意性流程图;3 is still another schematic flowchart of a communication method in an ad hoc network according to an embodiment of the present invention;
图4是根据本发明另一实施例的自组织网络中的通信方法的示意性流程图;4 is a schematic flowchart of a communication method in an ad hoc network according to another embodiment of the present invention;
图5是根据本发明再一实施例的自组织网络中的通信方法的示意性流程图;FIG. 5 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention; FIG.
图6是根据本发明再一实施例的自组织网络中的通信方法的示意性流程图;6 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention;
图7是根据本发明再一实施例的自组织网络中的通信方法的另一示意性流程图;FIG. 7 is another schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention; FIG.
图8是根据本发明再一实施例的自组织网络中的通信方法的示意性流程图;FIG. 8 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention; FIG.
图9是根据本发明再一实施例的自组织网络中的通信方法的另一示意性流程图;9 is another schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention;
图10是根据本发明再一实施例的自组织网络中的通信方法的再一示意性流程图;FIG. 10 is still another schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention; FIG.
图11是根据本发明再一实施例的自组织网络中的通信方法的示意性流 程图;11 is a schematic flow diagram of a communication method in an ad hoc network according to still another embodiment of the present invention. Cheng Tu
图12是根据本发明再一实施例的自组织网络中的通信方法的示意性流程图;FIG. 12 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention; FIG.
图13是根据本发明实施例的自组织网络中的通信装置的示意性框图;13 is a schematic block diagram of a communication device in an ad hoc network according to an embodiment of the present invention;
图14是根据本发明另一实施例的自组织网络中的通信装置的示意性框图;14 is a schematic block diagram of a communication device in an ad hoc network according to another embodiment of the present invention;
图15是根据本发明另一实施例的自组织网络中的通信装置的另一示意性框图;15 is another schematic block diagram of a communication device in an ad hoc network according to another embodiment of the present invention;
图16是根据本发明另一实施例的自组织网络中的通信装置的再一示意性框图;16 is still another schematic block diagram of a communication device in an ad hoc network according to another embodiment of the present invention;
图17是根据本发明再一实施例的自组织网络中的通信装置的示意性框图;17 is a schematic block diagram of a communication device in an ad hoc network according to still another embodiment of the present invention;
图18是根据本发明再一实施例的自组织网络中的通信装置的示意性框图;18 is a schematic block diagram of a communication device in an ad hoc network according to still another embodiment of the present invention;
图19是根据本发明再一实施例的自组织网络中的通信装置的示意性框图;19 is a schematic block diagram of a communication device in an ad hoc network according to still another embodiment of the present invention;
图20是根据本发明再一实施例的自组织网络中的通信装置的示意性框图。20 is a schematic block diagram of a communication device in an ad hoc network in accordance with still another embodiment 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 a part of the embodiments of the present invention, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without departing from the inventive scope are the scope of the present invention.
应理解,现有技术的技术方案,设备要支持自组织特性,需要先支持IPv6,也就是说自组织控制平面的建立依赖于IPv6的实现,没有基于IPv4建立自组织控制平面的方案,但是现网中的设备对IPv4的支持更好,由此,网络对现网中的设备的兼容性较差,网络部署困难,给管理工作带来麻烦。It should be understood that, in the prior art technical solution, the device needs to support the self-organizing feature, and needs to support IPv6 first, that is, the establishment of the self-organizing control plane depends on the implementation of IPv6, and there is no scheme for establishing a self-organizing control plane based on IPv4, but now The devices in the network support IPv4 better. Therefore, the network has poor compatibility with devices on the live network, and network deployment is difficult, which brings trouble to management.
应理解,本发明实施例中涉及的网络节点均为自组织节点,即该网络节点支持自组织特性,该网络节点有自己的唯一设备标识(Unique Device Identification,简称为“UDI”),或者设备数字证书(IDevID Certificate)。其 中,网络节点支持自组织特性,指的是网络节点具有自动建立自组织控制平面(ACP)或者自动加入ACP的功能。It should be understood that the network nodes involved in the embodiments of the present invention are self-organizing nodes, that is, the network nodes support the self-organizing feature, and the network node has its own unique device identifier (Uniform Device Identification (UDI), or device). IDevID Certificate. Its The network node supports the self-organizing feature, which means that the network node has the function of automatically establishing an ad hoc control plane (ACP) or automatically joining the ACP.
还应理解,在本发明实施例中,网络节点可以但不限于为路由器、交换机和用户设备等,其中用户设备也可称之为终端设备(Terminal Equipment)、移动台(Mobile Station,简称为“MS”)、移动终端(Mobile Terminal)等,该用户设备可以经无线接入网(Radio Access Network,简称为“RAN”)与一个或多个核心网进行通信,例如,用户设备可以是移动电话(或称为“蜂窝”电话)、具有移动终端的计算机等,例如,可以是便携式、袖珍式、手持式、计算机内置的或者车载的移动装置,以及未来5G网络中的终端设备或者未来演进的PLMN网络中的终端设备等。It should also be understood that, in the embodiment of the present invention, the network node may be, but not limited to, a router, a switch, a user equipment, and the like. The user equipment may also be referred to as a terminal equipment (Terminal Equipment) or a mobile station (Mobile Station, referred to as " MS"), a mobile terminal, etc., the user equipment can communicate with one or more core networks via a radio access network (Radio Access Network, hereinafter referred to as "RAN"), for example, the user equipment can be a mobile phone (or "cellular" phone), a computer with a mobile terminal, etc., for example, can be portable, pocket, handheld, computer built-in or in-vehicle mobile devices, and terminal devices in future 5G networks or future evolution Terminal equipment in the PLMN network, etc.
图1示出了根据本发明实施例的自组织网络中的通信方法的示意性流程图。该方法可以由支持分配域证书的网络节点执行,例如该网络节点可以为路由器,如图1所示,该通信方法100包括:FIG. 1 shows a schematic flow chart of a communication method in an ad hoc network according to an embodiment of the present invention. The method may be performed by a network node supporting a domain certificate, for example, the network node may be a router. As shown in FIG. 1, the communication method 100 includes:
S110,登记节点接收网络节点发送的邻接发现AD消息,该AD消息携带该网络节点的设备标识和该网络节点的IPv4地址,该IPv4地址是由该网络节点自动生成的;S110. The registration node receives a neighbor discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node.
S120,该登记节点获取该IPv4地址可用性的指示信息;S120. The registration node acquires indication information about the availability of the IPv4 address.
S130,该登记节点根据该设备标识确定该网络节点是否为合法节点;S130. The registration node determines, according to the device identifier, whether the network node is a legal node.
S140,该登记节点在确定该网络节点为合法节点时,向该网络节点发送域证书和该指示信息。S140. The registration node sends a domain certificate and the indication information to the network node when determining that the network node is a legal node.
具体而言,登记节点接收网络节点发送的包括该网络节点的设备标识和该网络节点的IPv4地址的邻接发现AD消息,根据该设备标识确定该邻居节点为合法节点,并获取该IPv4地址可用性的指示信息,向该网络节点发送根据该设备标识确定的域证书和该指示信息,由此该网络节点在接收到该域证书和该指示信息后,可以根据该域证书和该指示信息与该登记节点建立自组织控制平面ACP。Specifically, the registration node receives the adjacency discovery AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the neighbor node is a legal node according to the device identifier, and obtains the availability of the IPv4 address. Instructing information, sending the domain certificate and the indication information determined according to the device identifier to the network node, and after receiving the domain certificate and the indication information, the network node may perform the registration according to the domain certificate and the indication information. The node establishes a self-organizing control plane ACP.
因此,本发明实施例的自组织网络中的通信方法,登记节点接收网络节点发送的包括网络节点的设备标识和该网络节点的IPv4地址的AD消息,根据该设备标识确定网络节点为合法节点,并获取该IPv4地址可用性的指示信息,之后向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。 Therefore, in the communication method in the ad hoc network of the embodiment of the present invention, the registration node receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, and determines that the network node is a legal node according to the device identifier. And obtaining the indication information of the availability of the IPv4 address, and then sending the domain certificate and the indication information to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
在本发明实施例中,该登记节点(Registrar)指的是支持分配域证书的网络节点,登记节点可以通过一个预配置的域(Domain)数字证书认证机构(Certificate Authority,简称为“CA”)为域内的其他网络节点发送域证书,但本发明并不限于此。In the embodiment of the present invention, the registration node (Registrar) refers to a network node that supports the allocation of a domain certificate, and the registration node can pass a pre-configured domain digital certificate authority (Certificate Authority, referred to as "CA"). The domain certificate is sent for other network nodes within the domain, but the invention is not limited thereto.
需要说明的是,合法节点指的是与登记节点在同一个域内,能够允许被加入到自组织域的网络节点。It should be noted that the legal node refers to a network node that is allowed to join the self-organizing domain in the same domain as the registered node.
应理解,在本发明实施例中,该Registrar节点也向其他网络节点发送AD消息,该AD消息中携带该Registrar节点的域证书,该域证书是该Registrar节点自己为自己分配的,并且该Registrar节点可以自己配置自己的IPv4地址,例如可以是根据自己的唯一设备标识(Unique Device Identification,简称为“UDI”)通过特定的哈希HASH算法生成,并且该Registrar节点维护一个ACP平面内网络节点的IP地址列表。It should be understood that, in the embodiment of the present invention, the Registrar node also sends an AD message to other network nodes, where the AD message carries the domain certificate of the Registrar node, and the domain certificate is assigned by the Registrar node itself, and the Registrar A node can configure its own IPv4 address. For example, it can be generated according to its unique device identifier (Uniform Device Identification (UDI)) through a specific hash HASH algorithm, and the Registrar node maintains an ACP in-plane network node. A list of IP addresses.
需要说明的是,在Registrar节点与其邻接的网络节点创建安全的连接,创建ACP后,为了能够支持多跳通信,ACP还需要每个网络节点有自己的IP地址以及用于ACP内通信的虚拟路由和转发(Virtual Routing and Forwarding,简称为“VRF”),因此需要新加入ACP的网络节点通过之前与Registrar节点的交互,使用自己配置的IP地址,通过路由协议的运行,加入到ACP的路由域中,不是Registrar的邻接的网络节点加入时需要Registrar的邻接的网络节点作为代理(Proxy)节点。It should be noted that the Registrar node creates a secure connection with its neighboring network nodes. After the ACP is created, in order to support multi-hop communication, the ACP also needs each network node to have its own IP address and a virtual route for communication within the ACP. And Virtual Forwarding and Forwarding (VRF), so the network node that needs to join the ACP needs to interact with the Registrar node, use its configured IP address, and join the routing domain of the ACP through the running of the routing protocol. In the middle, if the adjacent network node of the Registrar joins, the adjacent network node of the Registrar needs to be used as a proxy node.
Proxy节点收到与其邻接的网络节点发送的AD消息后,通过ACP平面内的IP平面连接Registrar节点,把与其邻接的网络节点的AD消息发送给Registrar节点,Registrar节点通过ACP平面内的IP平面连接该Proxy节点,把需要发送给与该Proxy节点邻接的网络节点的消息发送给该Proxy节点,该Proxy节点将该消息再转发给该与其相邻接的网络节点。After receiving the AD message sent by the neighboring network node, the Proxy node connects the Registrar node through the IP plane in the ACP plane, and sends the AD message of the neighboring network node to the Registrar node. The Registrar node connects through the IP plane in the ACP plane. The Proxy node sends a message to the Proxy node that needs to be sent to the network node adjacent to the Proxy node, and the Proxy node forwards the message to the neighboring network node.
在本发明实施例中,ACP的IPv4地址与全局(Global)路由表是分离的,因此自组织控制平面ACP的IPv4地址可以使用整个的32位IP地址。In the embodiment of the present invention, the IPv4 address of the ACP is separated from the global routing table, so the IPv4 address of the self-organizing control plane ACP can use the entire 32-bit IP address.
在本发明实施例中,该网络节点的IPv4地址为ACP的IPv4地址。In the embodiment of the present invention, the IPv4 address of the network node is an IPv4 address of the ACP.
可选地,在S110中,该网络节点的IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,Optionally, in S110, each bit of the IPv4 address of the network node is generated by the network node performing a hash operation according to the device identifier; or
该网络节点的IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或, Each bit of the IPv4 address of the network node is generated by the network node performing a hash operation according to a medium access control MAC address of an interface configured on the network node; or
该网络节点的IPv4地址中的每一位是由该网络节点随机生成的。Each bit in the IPv4 address of the network node is randomly generated by the network node.
具体而言,该网络节点可以根据UDI或者SUDI通过特定的哈希运算生成该IPv4地址中的每一位,该UDI可以由节点的串号等信息构成;该网络节点还可以根据节点上某个接口的MAC地址配置IPv4环回(Loopback)地址,该IPv4Loopback地址作为该网络节点的ACP的IPv4地址,可以按照现有技术中的方法选取接口,该网络节点还可以随机生成32位的IPv4地址。Specifically, the network node may generate each bit in the IPv4 address by using a specific hash operation according to UDI or SUDI, and the UDI may be composed of information such as a serial number of the node; the network node may also be based on a certain node The MAC address of the interface is configured with an IPv4 loopback address. The IPv4 loopback address is used as the IPv4 address of the ACP of the network node. The interface can be selected according to the method in the prior art. The network node can also randomly generate a 32-bit IPv4 address.
可选地,在S110中,该网络节点的IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该网络节点的IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,Optionally, in S110, the first M bits of the IPv4 address of the network node are generated by the network node performing a hash operation according to the domain identifier ID of the associated self-organizing domain, and the last 32- of the IPv4 address of the network node. The M bit is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, and M is a positive integer; or
该网络节点的IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。The first N bits of the IPv4 address of the network node are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node. , N is a positive integer.
换句话说,该网络节点的IPv4地址的前M位对应到域(Domain)ID,后32-M位对应到设备的名字等。此时,新加入的网络节点需要解析收到的邻接网络节点的域证书的域ID,依此来获取域ID,并进行HASH运算生成IPv4地址的前M位,然后根据UDI、SUDI或MAC地址进行HASH运算生成IPv4地址的后32-M位,或者,可以随机生成该IPv4地址的后32-M位。可选地,M的数值为8。In other words, the first M bits of the IPv4 address of the network node correspond to the domain ID, and the last 32-M bits correspond to the name of the device. At this time, the newly added network node needs to parse the domain ID of the domain certificate of the neighboring network node received, obtain the domain ID according to this, and perform HASH operation to generate the first M bits of the IPv4 address, and then according to the UDI, SUDI or MAC address. The HASH operation is performed to generate the last 32-M bits of the IPv4 address, or the last 32-M bits of the IPv4 address can be randomly generated. Optionally, the value of M is 8.
可选地,在S110中,该网络节点的IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该网络节点的IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,Optionally, in S110, the first M bits of the IPv4 address of the network node are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address of the network node are the network node according to the network node. The device identifier or the MAC address of the interface configured on the network node is hashed, and M is a positive integer; or
该网络节点的IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该网络节点的IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。The first N bits of the IPv4 address of the network node are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N is a positive integer.
具体而言,该网络节点可以根据专用IPv4地址的前M位生成IPv4地址的前M位,该专用的IPv4地址例如可以是A类的10.*,根据UDI、SUDI或者MAC地址进行HASH运算生成IPv4地址的后32-M位,或者随机生成32位的IPv4地址的后32-M位。可选地,该M的数值为8。 Specifically, the network node may generate the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and the dedicated IPv4 address may be, for example, 10.* of the class A, and perform HASH calculation according to the UDI, SUDI, or MAC address. The last 32-M bits of the IPv4 address, or the last 32-M bits of the 32-bit IPv4 address are randomly generated. Optionally, the value of M is 8.
可选地,在S110中,该网络节点的IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该网络节点的IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,Optionally, in S110, the first M bits of the IPv4 address of the network node are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address of the network node. The network node is generated according to the domain ID of the associated self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address of the network node are the network node according to the device identifier or the network. The MAC address of the interface configured on the node is hashed, and M and L are positive integers; or,
该网络节点的IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该网络节点的IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。The first N bits of the IPv4 address of the network node are generated by the network node according to the first N bits of the private IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address of the network node are the network nodes according to the The domain ID of the organization domain is generated by hash operation. The last 32-NL bits of the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N and L are positive integers.
换句话说,IPv4地址的后32-M位的前L位可以与域ID对应,后32-M-L位对应到设备的名字等。该网络节点可以根据获取的域ID进行HASH运算生成该IPv4地址的后32-M位的前L位,根据UDI、SUDI或MAC地址进行HASH运算生成该后32-N位中的后32-N-L位,或者该网络节点随机生成该后32-N位中的后32-N-L位。可选地,L的数值为8。In other words, the first L bits of the last 32-M bits of the IPv4 address may correspond to the domain ID, and the last 32-M-L bits correspond to the name of the device, and the like. The network node may perform a HASH operation according to the acquired domain ID to generate a first L-bit of the last 32-M bits of the IPv4 address, perform a HASH operation according to the UDI, SUDI or MAC address to generate a rear 32-NL of the last 32-N bits. Bit, or the network node randomly generates the last 32-NL bits of the last 32-N bits. Optionally, the value of L is 8.
在本发明实施例中,由于网络节点可以自己配置IPv4地址,并且该自配置的IP地址无需动态组织设置协议(Dynamic Host Configuration Protocol,简称为“DHCP”)的管理流程,不需要DHCP服务器,所以能够简化网络管理。In the embodiment of the present invention, since the network node can configure the IPv4 address by itself, and the self-configured IP address does not need the management process of the Dynamic Host Configuration Protocol ("DHCP"), the DHCP server is not required. Can simplify network management.
可选地,在S110中,该IPv4地址还可以是预先配置的。Optionally, in S110, the IPv4 address may also be pre-configured.
可选地,如图2所示,S120包括:Optionally, as shown in FIG. 2, S120 includes:
S121,该登记节点确定该IPv4地址是否可用;S121. The registration node determines whether the IPv4 address is available.
S122,该登记节点根据确定该IPv4是否可用的结果确定该指示信息。S122. The registration node determines the indication information according to a result of determining whether the IPv4 is available.
也就是说,该登记节点确定该IPv4地址是否与已有的IPv4地址冲突,并根据是否冲突的结果确定指示信息。That is, the registration node determines whether the IPv4 address conflicts with an existing IPv4 address, and determines the indication information according to the result of the conflict.
在S122中,在该登记节点确定该IPv4地址可用时,确定该指示信息指示该网络节点的IPv4地址可用;或,在该登记节点确定该IPv4地址不可用时,确定该指示信息包括IPv4地址增量信息或可用IPv4地址。In S122, when the registration node determines that the IPv4 address is available, determining that the indication information indicates that the IPv4 address of the network node is available; or, when the registration node determines that the IPv4 address is unavailable, determining that the indication information includes an IPv4 address increment. Information or available IPv4 address.
可选地,该IPv4地址增量信息可以指示该网络节点在自己配置的IPv4地址的基础上增加Registrar节点指示的值,例如,增量值可以为1,2等,本发明对此不作限定。 Optionally, the IPv4 address increment information may indicate that the network node increases the value indicated by the Registrar node on the basis of the IPv4 address configured by the network node. For example, the value of the incremental value may be 1, 2, etc., which is not limited by the disclosure.
具体来说,如果Registrar节点未检测到冲突,在向网络节点发送域证书的同时,向该网络节点发一个确认ACK信息,该网络节点接收到ACK信息后,知道自己配置的IPv4地址是可以用的有效地址。如果Registrar节点检测到冲突,则该Registrar节点可以在回复消息中加入一个增量信息,网络节点接收到回复消息后,确定自己配置的IPv4地址是不可用的地址,并且该网络节点可以根据该增量信息修改IPv4地址,或者如果该回复消息携带的是一个可用的IPv4地址,该网络节点可以直接将该可用的IPv4地址配置成自己的IPv4地址。Specifically, if the Registrar node does not detect the conflict, the domain node sends a domain certificate to the network node, and sends an acknowledgement ACK message to the network node. After receiving the ACK information, the network node knows that the IPv4 address configured by itself is available. Effective address. If the Registrar node detects a conflict, the Registrar node may add an increment information to the reply message. After receiving the reply message, the network node determines that the IPv4 address configured by itself is an unavailable address, and the network node may increase the address according to the increase. The amount information modifies the IPv4 address, or if the reply message carries an available IPv4 address, the network node can directly configure the available IPv4 address as its own IPv4 address.
可选地,如图3所示,S120具体包括:Optionally, as shown in FIG. 3, S120 specifically includes:
S123,该登记节点向冲突检测服务器发送该IPv4地址;S123. The registration node sends the IPv4 address to the conflict detection server.
S124,该登记节点接收该冲突检测服务器发送的该指示信息,该指示信息指示该IPv4地址可用,或,该指示信息包括IPv4地址增量信息或可用IPv4地址。S124. The registration node receives the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address.
在本发明实施例中,该登记节点与冲突检测服务器约定只有在该登记节点确定网络节点是合法节点时,才向该冲突检测服务器发送该网络节点的IPv4地址。该登记节点还可以在确定网络节点是否为合法节点的同时,向冲突检测服务器发送该网络节点的IPv4地址和该网络节点的设备标识,该冲突检测服务器进行IPv4地址冲突检测,冲突检测服务器在冲突检测完成后,需要向登记节点发送节点信息查询消息,以此确认网络节点是否为合法节点,并接收该登记节点发送的节点信息查询答复消息,在根据该节点信息查询答复消息确定网络节点为合法节点时,保存该设备标识和该IPv4地址,并向该登记节点发送指示IPv4地址可用性的指示信息。In the embodiment of the present invention, the registration node and the conflict detection server agree to send the IPv4 address of the network node to the conflict detection server only when the registration node determines that the network node is a legal node. The registration node may also send the IPv4 address of the network node and the device identifier of the network node to the conflict detection server while determining whether the network node is a legitimate node, and the conflict detection server performs IPv4 address conflict detection, and the conflict detection server is in conflict. After the detection is completed, the node information query message needs to be sent to the registration node to confirm whether the network node is a legal node, and receives the node information query reply message sent by the registration node, and determines that the network node is legal according to the node information query reply message. At the time of the node, the device identifier and the IPv4 address are saved, and the indication information indicating the availability of the IPv4 address is sent to the registration node.
可选地,在S110中,该网络节点的设备标识为该网络节点的唯一设备标识UDI;Optionally, in S110, the device identifier of the network node is a unique device identifier UDI of the network node;
相应地,S120具体为:该登记节点在确定该网络节点的UDI在UDI列表中时,确定该网络节点为合法节点。Correspondingly, S120 is specifically: the registration node determines that the network node is a legal node when determining that the UDI of the network node is in the UDI list.
也就是说,该Registrar节点上配置了自组织节点的UDI的白名单,在该Registrar节点接收到网络节点发送的AD消息后,对比白名单,如果将AD消息中携带的UDI与白名单中的UDI匹配,则确定该网络节点为合法节点,可以建立ACP。该Registrar节点会根据该UDI生成一个域证书,发送给该网络节点,该网络节点接收到该域证书后,在后续AD广播中使用域证 书。That is, the Registrar node is configured with a whitelist of UDIs of the self-organizing nodes. After receiving the AD message sent by the network node, the Registrar node compares the whitelist with the UDI carried in the AD message and the whitelist. If the UDI matches, it is determined that the network node is a legal node, and the ACP can be established. The Registrar node generates a domain certificate according to the UDI and sends it to the network node. After receiving the domain certificate, the network node uses the domain certificate in subsequent AD broadcasts. book.
可选地,在S110中,该网络节点的设备标识为该网络节点的安全的唯一设备标识SUDI;Optionally, in S110, the device identifier of the network node is a secure unique device identifier SUDI of the network node;
相应的,S120具体为:该登记节点验证该网络节点发送的与该SUDI相对应的设备数字证书;该登记节点在验证该设备数字证书成功时,根据验证服务器的验证结果确定该网络节点为合法节点。Correspondingly, S120 is specifically: the registration node verifies the device digital certificate corresponding to the SUDI sent by the network node; when the verification of the digital certificate of the device is successful, the registration node determines that the network node is legal according to the verification result of the verification server. node.
具体来说,该网络节点将自己的设备数字证书(802.1AR证书)发送给该Registrar节点,收到该设备数字证书的该Registrar节点使用公钥验证该证书,并且连接到验证服务器验证该网络节点是否可以接入域,如该验证服务器验证该网络节点可以接入域,该Registrar节点确认该网络节点为合法节点,该Registrar节点会根据该SUDI生成一个域证书,之后将该域证书发送给该网络节点,并根据该域证书与该网络节点建立ACP。Specifically, the network node sends its own device digital certificate (802.1AR certificate) to the Registrar node, and the Registrar node that receives the device digital certificate verifies the certificate by using a public key, and connects to the verification server to verify the network node. Whether the access domain can access the domain, if the verification server verifies that the network node can access the domain, the Registrar node confirms that the network node is a legal node, and the Registrar node generates a domain certificate according to the SUDI, and then sends the domain certificate to the domain A network node, and establishing an ACP with the network node according to the domain certificate.
下面将结合具体的例子详细描述本发明实施例,应注意,这些例子只是为了帮助本领域技术人员更好地理解本发明实施例,而非限制本发明实施例的范围。The embodiments of the present invention are described in detail below with reference to the specific examples.
图4示出了根据本发明另一实施例的自组织网络中的通信方法的示意性流程图。如图4所示,该通信方法200包括:FIG. 4 shows a schematic flow chart of a communication method in an ad hoc network according to another embodiment of the present invention. As shown in FIG. 4, the communication method 200 includes:
S201,使能所有节点的自组织特性,并且将一个节点配置为Registrar节点;S201, enabling self-organization characteristics of all nodes, and configuring one node as a Registrar node;
该Registrar节点支持分配域证书(通过预配置的一个Domain CA),并且配置了自组织节点的UDI的白名单;该Registrar节点自己配置自己的IPv4地址,例如可以根据UDI通过特定的HASH算法生成,并且同时Registrar节点维护一个ACP平面内节点的IP地址列表。The Registrar node supports the allocation of a domain certificate (through a pre-configured Domain CA) and configures a whitelist of UDIs of the self-organizing nodes; the Registrar node configures its own IPv4 address, for example, can be generated by a specific HASH algorithm according to UDI. At the same time, the Registrar node maintains a list of IP addresses of nodes in the ACP plane.
S202,接收到AD消息的Registrar节点比对白名单,如果UDI匹配,根据该AD消息中的UDI生成一个域证书,发送给发送该AD消息的邻居节点,该邻居节点接收到该域证书后,在后续的AD广播中将使用域证书;S202. The Registrar node that receives the AD message compares the whitelist. If the UDI matches, the domain certificate is generated according to the UDI in the AD message, and is sent to the neighboring node that sends the AD message. After receiving the domain certificate, the neighbor node receives the domain certificate. The domain certificate will be used in subsequent AD broadcasts;
自组织特性使能后,自组织节点持续每隔一段时间(例如10s)发起AD消息,寻找自己的邻居,该AD消息包括节点的域证书或者UDI(如果没有分配域证书,则包括UDI)。After the self-organizing feature is enabled, the ad hoc node continuously initiates an AD message every time (for example, 10s) to find its own neighbor. The AD message includes the domain certificate or UDI of the node (including UDI if no domain certificate is assigned).
该邻居节点在发送自身的UDI的同时将自配置的IP同时发给Registrar节点,该自配置的IP可以是根据UDI通过特定的HASH算法生成的。 The neighbor node sends the self-configured IP to the Registrar node simultaneously while transmitting its own UDI. The self-configured IP may be generated according to the UDI through a specific HASH algorithm.
由于ACP的VRF与Global路由表分离,因此可以选择使用的IPv4地址范围可以是全部的32位。Since the VRF of the ACP is separated from the Global routing table, the range of IPv4 addresses that can be selected for use can be all 32 bits.
Registrar节点接收到邻居节点发送的AD消息后,可以进行冲突检测,如果Registrar节点未检测到冲突,邻居节点在接收域证书的同时,获得Registrar节点一个ACK,标识IP地址可用;如果Registrar节点检测到冲突,需要在回复消息中加入一个增量信息(例如+1),或者一个可用的IP。After receiving the AD message sent by the neighboring node, the Registrar node can perform collision detection. If the Registrar node does not detect the conflict, the neighboring node receives the domain certificate and obtains an ACK of the Registrar node to identify the IP address. If the Registrar node detects For conflicts, you need to add an incremental message (such as +1) or an available IP to the reply message.
S203,基于该域证书,Registrar节点与邻居节点,创建安全的连接,创建ACP;S203. Based on the domain certificate, the Registrar node and the neighbor node create a secure connection and create an ACP.
S204,新加入ACP的节点通过之前与Registrar节点的交互,使用自己配置的IP地址,通过路由协议的运行,加入到ACP的路由域中。S204: The node newly joining the ACP joins the Registrar node and uses its configured IP address to join the routing domain of the ACP through the operation of the routing protocol.
Registrar的邻居的邻居的加入需要Registrar的邻居作为Proxy。The addition of the neighbor of the Registrar neighbor requires the neighbor of the Registrar as the Proxy.
图5示出了根据本发明再一实施例的自组织网络中的通信方法的示意性流程图。如图5所示,该方法300包括:FIG. 5 shows a schematic flow chart of a communication method in an ad hoc network according to still another embodiment of the present invention. As shown in FIG. 5, the method 300 includes:
S301,使能所有节点的自组织特性,并且将一个节点配置为Registrar节点;S301. Enable self-organization characteristics of all nodes, and configure one node as a Registrar node.
该Registrar节点支持分配域证书(通过预配置的一个Domain CA),并且能够连接到Internet,接入到验证服务器;该Registrar节点自己配置自己的IPv4地址,例如可以根据SUDI通过特定的HASH算法生成,并且同时Registrar节点维护一个ACP平面内节点的IP地址列表。The Registrar node supports the allocation of a domain certificate (through a pre-configured Domain CA) and can connect to the Internet to access the authentication server; the Registrar node configures its own IPv4 address, for example, can be generated according to SUDI through a specific HASH algorithm. At the same time, the Registrar node maintains a list of IP addresses of nodes in the ACP plane.
S302,发现了Registrar节点的邻居节点将自己的设备数字(802.1AR)证书发送给Registrar节点,收到该设备数字证书的Registrar节点使用公钥验证该证书,并且连接到到验证服务器验证该邻居节点是否可以接入域,如果验证成功,该Registrar节点根据该邻居节点的SUDI生成一个域证书,并向该邻居节点发送该域证书;S302: The neighbor node of the Registrar node is found to send its own device digital (802.1AR) certificate to the Registrar node, and the Registrar node that receives the digital certificate of the device uses the public key to verify the certificate, and connects to the verification server to verify the neighbor node. Whether the domain can be accessed, if the verification is successful, the Registrar node generates a domain certificate according to the SUDI of the neighbor node, and sends the domain certificate to the neighbor node;
自组织特性使能后,自组织节点持续每隔一段时间(例如10s)发起AD消息,寻找自己的邻居,该AD消息包括节点的域证书或者SUDI(如果没有分配域证书,则包括SUDI)。After the self-organizing feature is enabled, the ad-hoc node initiates an AD message every time (for example, 10s) to find its own neighbor. The AD message includes the domain certificate or SUDI of the node (including SUDI if no domain certificate is assigned).
该邻居节点在发送自身的SUDI的同时将自配置的IP同时发给Registrar,该自配置的IP可以是根据SUDI通过特定的HASH算法生成的。The neighbor node sends the self-configured IP to the Registrar at the same time as sending its own SUDI. The self-configured IP can be generated according to SUDI through a specific HASH algorithm.
由于ACP的VRF与Global路由表分离,因此可以选择使用的IPv4地址范围可以是全部的32位。 Since the VRF of the ACP is separated from the Global routing table, the range of IPv4 addresses that can be selected for use can be all 32 bits.
Registrar接收到邻居节点发送的AD消息后,可以进行冲突检测,如果Registrar未检测到冲突,邻居节点在接收域证书的同时,获得Registrar一个ACK,标识IP地址可用;如果Registrar检测到冲突,需要在回复消息中加入一个增量信息(例如+1),或者一个可用的IP。After receiving the AD message sent by the neighboring node, the Registrar can perform collision detection. If the Registrar does not detect the conflict, the neighboring node obtains an ACK of the Registrar and identifies the IP address while receiving the domain certificate. If the Registrar detects the conflict, it needs to Add an incremental message (such as +1) to the reply message, or an available IP.
S303,基于该域证书,Registrar节点与邻居节点,创建安全的连接,创建ACP;S303. Based on the domain certificate, the Registrar node and the neighbor node create a secure connection and create an ACP.
S304,新加入ACP的节点通过之前与Registrar节点的交互,使用自己配置的IP地址,通过路由协议的运行,加入到ACP的路由域中。S304: The node newly joining the ACP joins the Registrar node, uses its configured IP address, and joins the routing domain through the routing protocol.
图6示出了根据本发明再一实施例的自组织网络中的通信方法的示意性流程图,如图6所示,该方法400包括:6 is a schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention. As shown in FIG. 6, the method 400 includes:
S401,登记节点接收网络节点发送的AD消息;S401. The registration node receives an AD message sent by the network node.
该AD消息中携带了网络节点的设备标识和自动生成的IPv4地址。The AD message carries the device identifier of the network node and the automatically generated IPv4 address.
S402,登记节点在确定该网络节点允许被加入到自组织域中时,向冲突检服务器发送该设备标识和该IPv4地址;S402. The registration node sends the device identifier and the IPv4 address to the conflict detection server when determining that the network node is allowed to join the self-organizing domain.
S403,该冲突检测服务器确定是否存在IPv4地址冲突;S403. The conflict detection server determines whether an IPv4 address conflict exists.
S404,该冲突检测服务器向该登记节点发送冲突检测答复消息;S404. The conflict detection server sends a conflict detection reply message to the registration node.
S405,该登记节点向该网络节点发送该冲突检测答复消息。S405. The registration node sends the conflict detection reply message to the network node.
如果在S403中,该冲突检测服务器确定IPv4地址存在冲突,则在该冲突检测答复消息中携带一个IPv4地址增量信息或一个可用IPv4地址,如果该冲突检测服务器确定不存在IPv4地址冲突,该冲突检测答复消息指示该IPv4地址可用。If the conflict detection server determines that there is a conflict in the IPv4 address in S403, the conflict detection reply message carries an IPv4 address increment information or an available IPv4 address, and if the conflict detection server determines that there is no IPv4 address conflict, the conflict A check reply message indicates that the IPv4 address is available.
可选地,在S402中,如果登记节点在确定网络节点允许被加入到自组织域之前,向冲突检测服务器发送该设备标识和该IPv4地址,如图7所示,该方法400还包括:Optionally, in S402, if the registration node sends the device identifier and the IPv4 address to the conflict detection server before determining that the network node is allowed to join the self-organizing domain, as shown in FIG. 7, the method 400 further includes:
S406,冲突检测服务器向登记节点发送节点查询消息;S406. The conflict detection server sends a node query message to the registration node.
S407,冲突检测服务器接收该登记节点发送的节点查询答复消息;S407. The conflict detection server receives a node query reply message sent by the registration node.
相应地,在S404中,在冲突检测服务器根据该节点查询答复消息确定该网络节点允许被加入到自组织域中时,向该登记节点发送冲突检测答复消息。Correspondingly, in S404, when the conflict detection server determines that the network node is allowed to join the ad hoc domain according to the node query reply message, the conflict detection reply message is sent to the registration node.
可选地,在S402中,如果登记节点在确定网络节点允许被加入到自组织域之前,向冲突检测服务器发送该设备标识和该IPv4地址,冲突检测服 务器可以先确定是否已保存有与该设备标识和该IPv4地址相对应的冲突检测结果,如果已保存与该设备标识和该IPv4地址相对应的冲突检测结果,则直接将保存的该冲突检测结果发送给登记节点,而不执行S403。如果冲突检测服务器确定没有保存与该设备标识和该IPv4地址相对应的冲突检测结果,则执行S406、S407以及后续操作。Optionally, in S402, if the registration node sends the device identifier and the IPv4 address to the conflict detection server before determining that the network node is allowed to join the self-organizing domain, the conflict detection service The server may first determine whether the conflict detection result corresponding to the device identifier and the IPv4 address is saved, and if the conflict detection result corresponding to the device identifier and the IPv4 address is saved, the saved conflict detection is directly saved. The result is sent to the registration node without executing S403. If the conflict detection server determines that the conflict detection result corresponding to the device identification and the IPv4 address is not saved, then S406, S407, and subsequent operations are performed.
应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,例如,S406和S407在S404之前执行。It should be understood that the size of the sequence numbers of the above processes does not mean the order of execution order, and the order of execution of each process should be determined by its function and internal logic, for example, S406 and S407 are executed before S404.
因此,本发明实施例的自组织网络中的通信方法,登记节点接收网络节点发送的包括网络节点的设备标识和该网络节点的IPv4地址的AD消息,根据该设备标识确定网络节点为合法节点,并获取该IPv4地址可用性的指示信息,之后向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, in the communication method in the ad hoc network of the embodiment of the present invention, the registration node receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, and determines that the network node is a legal node according to the device identifier. And obtaining the indication information of the availability of the IPv4 address, and then sending the domain certificate and the indication information to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
下面将结合图8详细描述根据本发明再一实施例的自组织网络中的通信方法。该通信方法可以由冲突检测服务器执行,如图8所示,该通信方法500包括:A communication method in an ad hoc network according to still another embodiment of the present invention will be described in detail below with reference to FIG. The communication method can be performed by a conflict detection server, as shown in FIG. 8, the communication method 500 includes:
S510,冲突检测服务器接收登记节点发送的IPv4地址;S510. The conflict detection server receives an IPv4 address sent by the registration node.
S520,该冲突检测服务器确定该IPv4地址是否可用。S520. The conflict detection server determines whether the IPv4 address is available.
具体而言,冲突检测服务器接收登记节点转发IPv4地址,并进行冲突检测,确定该IPv4地址是否可用。Specifically, the conflict detection server receives the registration node to forward the IPv4 address, and performs collision detection to determine whether the IPv4 address is available.
因此,本发明实施例的自组织网络中的通信方法,冲突检测服务器可以接收登记节点发送的IPv4地址,并确定该IPv4地址是否可用,由此能够降低登记节的处理复杂度。Therefore, in the communication method in the ad hoc network of the embodiment of the present invention, the conflict detection server can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration section.
可选地,在S510中,该IPv4地址是由该网络节点自动生成的。Optionally, in S510, the IPv4 address is automatically generated by the network node.
可选地,在S510中,该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。Optionally, in S510, each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is determined by the network node according to the network. The media access control MAC address of the interface configured on the node is hashed; or each bit in the IPv4 address is randomly generated by the network node.
可选地,在S510中,该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行 哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。Optionally, in S510, the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are generated by the network. The node performs the device ID or the MAC address of the interface configured on the network node. Generated by the hash operation, M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address It is randomly generated by the network node, and N is a positive integer.
可选地,在S510中,该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。Optionally, in S510, the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are the network node according to the device identifier or the network. The MAC address of the interface configured on the node is hashed, and M is a positive integer. Alternatively, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32 bits of the IPv4 address. The -N bit is randomly generated by the network node, and N is a positive integer.
可选地,在S510中,该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。Optionally, in S510, the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the network node according to the The domain ID of the self-organizing domain is generated by hash operation, and the last 32-ML bits in the last 32-M bits of the IPv4 address are performed by the network node according to the device identifier or the MAC address of the interface configured on the network node. Generated by the hash operation, M, L is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the first L of the last 32-N bits of the IPv4 address The bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, N, L is a positive integer.
可选地,该登记节点可以将该IPv4地址和该网络节点的设备标识一起转发给冲突检测服务器,以便于冲突检测服务器能够根据该设备标识确定该网络节点是否是合法节点。Optionally, the registration node may forward the IPv4 address together with the device identifier of the network node to the conflict detection server, so that the conflict detection server can determine whether the network node is a legal node according to the device identifier.
可选地,如图9所示,该方法500还包括:Optionally, as shown in FIG. 9, the method 500 further includes:
S530,该冲突检测服务器向该登记节点发送第一冲突检测答复消息,该第一冲突检测答复消息用于指示该IPv4地址的可用性;S530. The conflict detection server sends a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate the availability of the IPv4 address.
其中,在该冲突检测服务器确定该IPv4地址可用时,该第一冲突检测答复消息指示该IPv4地址可用;或,在该冲突检测服务器确定该IPv4地址不可用时,该第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the conflict detection server determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
在本发明实施例中,可选地,如果冲突检测服务器与登记节点事先约定只有在登记节点确定网络节点为合法节点时,登记节点才向冲突检测服务器发送该网络节点的IPv4地址,则该冲突检测服务器可以在确定该IPv4地址是否可用之后,直接向该登记节点发送该第一冲突检测答复消息。否则的话该冲突检测服务器可以先向登记节点发送节点信息查询消息,该节点信息查 询消息用于查询该网络节点是否为合法节点,之后该冲突检测服务器接收该登记节点发送的节点信息查询答复消息,在根据该节点信息查询答复消息确定与该设备标识对应的网络节点为合法节点时,保存该设备标识和该IPv4地址,同时向该登记节点发送该第一冲突检测答复消息。In the embodiment of the present invention, optionally, if the conflict detection server and the registration node agree in advance that the registration node sends the IPv4 address of the network node to the conflict detection server only when the registration node determines that the network node is a legal node, the conflict occurs. The detecting server may directly send the first conflict detection reply message to the registration node after determining whether the IPv4 address is available. Otherwise, the conflict detection server may first send a node information query message to the registration node, and the node information is checked. The query message is used to query whether the network node is a legal node, and then the conflict detection server receives the node information query reply message sent by the registration node, and determines that the network node corresponding to the device identifier is a legal node according to the node information query reply message. And saving the device identifier and the IPv4 address, and sending the first conflict detection reply message to the registration node.
在本发明实施例中,可选地,该冲突检测服务器接收到登记节点转发的设备标识和IPv4地址之后,可以先确定是否已保存有与该设备标识和该IPv4地址相对应的冲突检测结果,如果确定保存有与该设备标识和该IPv4地址相对应的冲突检测结果,则直接向该登记节点发送该第一冲突检测答复消息。否则,冲突检测服务器需要向该登记节点发送节点查询消息,验证与该设备标识相对应的网络节点是否是合法节点,如果是合法节点则向该登记节点发送第一冲突检测答复消息,如果不是合法节点则不发送该第一冲突检测答复消息。In the embodiment of the present invention, after the conflict detection server receives the device identifier and the IPv4 address forwarded by the registration node, the conflict detection server may first determine whether the conflict detection result corresponding to the device identifier and the IPv4 address is saved. If it is determined that the conflict detection result corresponding to the device identifier and the IPv4 address is saved, the first conflict detection reply message is directly sent to the registration node. Otherwise, the conflict detection server needs to send a node query message to the registration node to verify whether the network node corresponding to the device identifier is a legal node, and if it is a legal node, send a first conflict detection reply message to the registration node, if not legal The node does not send the first conflict detection reply message.
可选地,如图10所示,该通信方法500还包括:Optionally, as shown in FIG. 10, the communication method 500 further includes:
S540,该冲突检测服务器向与该设备标识对应的网络节点发送第二冲突检测答复消息,该第二冲突检测答复消息用于指示该IPv4的可用性;S540: The conflict detection server sends a second conflict detection reply message to the network node corresponding to the device identifier, where the second conflict detection reply message is used to indicate the availability of the IPv4.
其中,在该冲突检测服务器确定该IPv4地址可用时,该第二冲突检测答复消息指示该IPv4地址可用;或,在该冲突检测服务器确定该IPv4地址不可用时,该第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。Wherein, when the conflict detection server determines that the IPv4 address is available, the second conflict detection reply message indicates that the IPv4 address is available; or, when the conflict detection server determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address. Incremental information or an available IPv4 address.
可选地,在S540中,该冲突检测服务器可以将该第二冲突检测答复消息直接发送给与该设备标识相对应的网络节点,也可以先发送给与该设备标识相对应的网络节点的代理节点,由该代理节点将该第二冲突检测答复消息转发给该网络节点。Optionally, in S540, the conflict detection server may directly send the second conflict detection reply message to the network node corresponding to the device identifier, or may first send the proxy to the network node corresponding to the device identifier. a node by which the second conflict detection reply message is forwarded to the network node.
在本发明实施例中,可选地,该冲突检测服务器还可以接收代理节点发送的设备标识和IPv4地址,该代理节点可以是已经与登记节点建立连接并且与该冲突检测服务器相连接的网络节点,该冲突检测服务器进行冲突检测,确定该IPv4地址是否可用,之后可以通过确定是否已保存有与该设备标识和该IPv4地址相对应的冲突检测结果,如果确定保存有与该设备标识和该IPv4地址相对应的冲突检测结果,则直接向该代理节点发送冲突检测答复消息。否则,冲突检测服务器需要向该登记节点发送节点查询消息,验证与该设备标识相对应的网络节点是否是合法节点,如果是合法节点则向该登记节点发送冲突检测答复消息,如果不是合法节点则不发送冲突检测答复 消息。In the embodiment of the present invention, optionally, the conflict detection server may further receive a device identifier and an IPv4 address sent by the proxy node, where the proxy node may be a network node that has established a connection with the registration node and is connected to the conflict detection server. The conflict detection server performs collision detection to determine whether the IPv4 address is available, and then determines whether a conflict detection result corresponding to the device identifier and the IPv4 address is saved, if it is determined that the device identifier and the IPv4 are saved. The conflict detection result corresponding to the address directly sends a conflict detection reply message to the proxy node. Otherwise, the conflict detection server needs to send a node query message to the registration node to verify whether the network node corresponding to the device identifier is a legal node, and if it is a legal node, send a conflict detection reply message to the registration node, if not a legitimate node. Do not send conflict detection responses Message.
下面将结合图11详细描述根据本发明再一实施例的自组织网络中的通信方法的示意性流程图。如图11所示,该通信方法600包括:A schematic flowchart of a communication method in an ad hoc network according to still another embodiment of the present invention will be described in detail below with reference to FIG. As shown in FIG. 11, the communication method 600 includes:
S601,登记节点接收网络节点发送的AD消息,并验证该网络节点允许被加入到自组织域中;S601. The registration node receives an AD message sent by the network node, and verifies that the network node is allowed to be added to the self-organizing domain.
S602,冲突检测服务器接收代理节点发送的该网络节点的AD消息中携带的设备标识和IPv4地址;S602. The conflict detection server receives the device identifier and the IPv4 address carried in the AD message of the network node sent by the proxy node.
该代理节点向冲突检测服务器发送设备标识和IPv4地址时,先接收该网络节点发送的AD消息。When the proxy node sends the device identifier and the IPv4 address to the conflict detection server, it first receives the AD message sent by the network node.
S603,冲突检测服务器确定是否存在IPv4地址冲突;S603. The conflict detection server determines whether an IPv4 address conflict exists.
S604,冲突检测服务器向登记节点发送节点信息查询消息;S604. The conflict detection server sends a node information query message to the registration node.
S605,冲突检测服务器接收登记节点发送的节点信息查询答复消息;S605. The conflict detection server receives the node information query reply message sent by the registration node.
S606,在冲突检测服务器根据该节点信息查询答复消息确定该网络节点允许被加入到自组织域中时,向代理节点发送冲突检测答复消息;S606. When the conflict detection server determines, according to the node information query reply message, that the network node is allowed to join the ad hoc domain, send a conflict detection reply message to the proxy node.
S607,代理节点向网络节点发送冲突检测答复消息。S607. The proxy node sends a conflict detection reply message to the network node.
可选地,在冲突检测服务器执行S603之前,可以先确定是否已保存有与该设备标识和该IPv4地址相对应的冲突检测结果,如果已保存与该设备标识和该IPv4地址相对应的冲突检测结果,则直接将保存的该冲突检测结果发送给代理节点,而不执行S603。如果冲突检测服务器确定没有保存与该设备标识和该IPv4地址相对应的冲突检测结果,则执行S603及其之后的操作。Optionally, before the conflict detection server executes S603, it may be determined whether a conflict detection result corresponding to the device identifier and the IPv4 address is saved, if the conflict detection corresponding to the device identifier and the IPv4 address is saved. As a result, the saved conflict detection result is directly sent to the proxy node without executing S603. If the conflict detecting server determines that the conflict detection result corresponding to the device identification and the IPv4 address is not saved, the operations of S603 and thereafter are performed.
因此,本发明实施例的自组织网络中的通信方法,冲突检测服务器可以接收登记节点发送的IPv4地址,并确定该IPv4地址是否可用,由此能够降低登记节的处理复杂度。Therefore, in the communication method in the ad hoc network of the embodiment of the present invention, the conflict detection server can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration section.
下面将结合图12详细描述根据本发明再一实施例的自组织网络中的通信方法的示意性流程图,该方法可以由网络节点(例如路由器)执行,如图12所示,该通信方法700包括:A schematic flowchart of a communication method in an ad-hoc network according to still another embodiment of the present invention, which may be performed by a network node (e.g., a router) as shown in FIG. 12, is illustrated in conjunction with FIG. include:
S710,网络节点自动生成IPv4地址;S710. The network node automatically generates an IPv4 address.
S720,该网络节点向登记节点发送邻接发现AD消息,该AD消息携带该网络节点的设备标识和该IPv4地址;S720, the network node sends a neighbor discovery AD message to the registration node, where the AD message carries the device identifier of the network node and the IPv4 address;
S730,该网络节点接收域证书和该IPv4地址可用性的指示信息,该域 证书是由该登记节点发送的;S730, the network node receives the domain certificate and the indication information of the availability of the IPv4 address, the domain The certificate is sent by the registration node;
S740,该网络节点根据该域证书和该指示信息与该登记节点建立自组织控制平面ACP。S740. The network node establishes an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information.
具体而言,网络中的网络节点自动生成IPv4地址,并向支持分配域证书向登记节点发送携带设备标识和IPv4地址的邻接发现AD消息,之后接收该登记节点发送的根据该设备标识确定的域证书和指示该IPv4地址可用性的指示信息,并根据该域证书和该指示信息与该登记节点建立ACP。Specifically, the network node in the network automatically generates an IPv4 address, and sends a neighbor discovery AD message carrying the device identifier and the IPv4 address to the registration node to support the domain certificate, and then receives the domain determined by the registration node according to the device identifier. And a certificate indicating the availability of the IPv4 address, and establishing an ACP with the registration node according to the domain certificate and the indication information.
因此,本发明实施例的自组织网络中的通信方法,网络节点向能够支持分配域证书的登记节点发送AD消息,并接收该登记节点发送的根据该节点发送的AD消息中的设备标识确定的域证书和指示该IPv4地址可用性的指示信息,之后根据该域证书和该指示信息与该登记节点建立ACP。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, in the communication method in the ad hoc network of the embodiment of the present invention, the network node sends an AD message to the registration node capable of supporting the allocation of the domain certificate, and receives the device identifier determined by the registration node according to the device identifier in the AD message sent by the node. The domain certificate and the indication information indicating the availability of the IPv4 address, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
在本发明实施例中,需要说明的是,在该网络节点不是登记节点(Registrar)的邻接节点时,该网络节点需要先向其邻接的网络节点发送AD消息,之后通过其连接的网络节点依次转发,最后将AD消息转发给该Registrar节点。In the embodiment of the present invention, when the network node is not a neighboring node of a Registrar, the network node needs to first send an AD message to its neighboring network node, and then the network node connected through the network node in turn Forward, and finally forward the AD message to the Registrar node.
可选地,在S710中,该IPv4地址为ACP的IPv4地址。Optionally, in S710, the IPv4 address is an IPv4 address of the ACP.
可选地,在S720中,该设备标识为该网络节点的唯一设备标识UDI,该登记节点配置有UDI列表。Optionally, in S720, the device identifier is a unique device identifier UDI of the network node, and the registration node is configured with a UDI list.
可选地,在S720中,该设备标识为该网络节点的安全的唯一设备标识SUDI,该登记节点能够接入到互联网中的验证服务器上。Optionally, in S720, the device identifier is a secure unique device identifier SUDI of the network node, and the registration node is capable of accessing an authentication server in the Internet.
可选地,在S720中,该指示信息指示该IPv4地址可用;或,该指示信息包括IPv4地址增量信息或可用IPv4地址。Optionally, in S720, the indication information indicates that the IPv4 address is available; or the indication information includes an IPv4 address increment information or an available IPv4 address.
可选地,S710具体为:该网络节点根据该设备标识进行哈希运算生成该IPv4地址中的每一位;或,该网络节点根据配置的接口的介质访问控制MAC地址进行哈希运算生成该IPv4地址中的每一位;或,该网络节点随机生成该IPv4地址中的每一位。Optionally, the S710 is specifically: the network node performs a hash operation according to the device identifier to generate each bit in the IPv4 address; or the network node performs a hash operation according to the media access control MAC address of the configured interface to generate the Each bit in the IPv4 address; or, the network node randomly generates each bit in the IPv4 address.
可选地,S710具体为:该网络节点根据所属的自组织域的域标识ID进行哈希运算生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,该网络节点根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的前 N位,随机生成该IPv4地址的后32-N位,N为正整数。Optionally, the S710 is specifically: the network node performs a hash operation according to the domain identifier ID of the associated self-organizing domain to generate a first M-bit of the IPv4 address, and performs a hash operation according to the device identifier or the configured MAC address of the interface. The last 32-M bits of the IPv4 address, M is a positive integer; or, the network node performs a hash operation according to the domain ID of the associated self-organizing domain to generate the IPv4 address. N bits, the last 32-N bits of the IPv4 address are randomly generated, and N is a positive integer.
可选地,S710具体为:该网络节点根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,该网络节点根据专用IPv4地址的前N位生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。Optionally, the S710 is specifically: the network node generates the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performs hash operation according to the device identifier or the MAC address of the configured interface to generate the last 32 of the IPv4 address. -M bits, M is a positive integer; or, the network node generates the first N bits of the IPv4 address according to the first N bits of the private IPv4 address, and randomly generates the last 32-N bits of the IPv4 address, where N is a positive integer.
可选地,S710具体为:该网络节点根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-M位中的前L位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或,Optionally, the S710 is specifically: the network node generates the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performs hash operation according to the domain ID of the associated self-organizing domain to generate the last 32-M of the IPv4 address. The first L bits in the bit are hashed according to the device identifier or the MAC address of the configured interface to generate the last 32-ML bits in the last 32-M bits of the IPv4 address, where M and L are positive integers; or
该网络节点根据专用IPv4地址的前N位生成该IPv4地址的前N位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-N位中的前L位,随机生成该IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。The network node generates the first N bits of the IPv4 address according to the first N bits of the dedicated IPv4 address, performs hash operation according to the domain ID of the associated self-organizing domain, and generates the first L bits in the last 32-N bits of the IPv4 address, randomly. The last 32-NL bits of the last 32-N bits of the IPv4 address are generated, N, L being positive integers.
可选地,在S730中,该IPv4可用性指示信息是由该登记节点发送的;或,该IPv4可用性指示信息是由冲突检测服务器发送的。Optionally, in S730, the IPv4 availability indication information is sent by the registration node; or the IPv4 availability indication information is sent by the conflict detection server.
因此,本发明实施例的自组织网络中的通信方法,网络节点向登记节点发送AD消息,并接收该登记节点发送的根据该节点发送的AD消息中的设备标识确定的域证书和指示该IPv4地址可用性的指示信息,之后根据该域证书和该指示信息与该登记节点建立ACP。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, in the communication method in the ad hoc network of the embodiment of the present invention, the network node sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the IPv4. An indication of address availability, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
下面将结合图13详细描述根据本发明实施例的自组织网络中的通信装置。如图13所示,通信装置10包括:A communication device in an ad hoc network according to an embodiment of the present invention will be described in detail below with reference to FIG. As shown in FIG. 13, the communication device 10 includes:
接收模块11,用于接收网络节点发送的邻接发现AD消息,该AD消息携带该网络节点的设备标识和该网络节点的IPv4地址,该IPv4地址是由该网络节点自动生成的;The receiving module 11 is configured to receive a neighbor discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node;
获取模块12,用于获取该IPv4地址可用性的指示信息;The obtaining module 12 is configured to obtain indication information about the availability of the IPv4 address;
确定模块13,用于根据该设备标识确定该网络节点是否为合法节点;The determining module 13 is configured to determine, according to the device identifier, whether the network node is a legal node;
发送模块14,用于在该确定模块11确定该网络节点为合法节点时,向该网络节点发送域证书和该指示信息。 The sending module 14 is configured to send the domain certificate and the indication information to the network node when the determining module 11 determines that the network node is a legal node.
因此,本发明实施例的自组织网络中的通信装置接收网络节点发送的包括网络节点的设备标识和该网络节点的IPv4地址的AD消息,根据该设备标识确定网络节点为合法节点,并获取该IPv4地址可用性的指示信息,之后向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
在本发明实施例中,可选地,该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。In the embodiment of the present invention, optionally, each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is determined by the network node. The hash operation is generated according to the medium access control MAC address of the interface configured on the network node; or each bit in the IPv4 address is randomly generated by the network node.
在本发明实施例中,可选地,该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。In the embodiment of the present invention, optionally, the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are Generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, M is a positive integer; or the first N bits of the IPv4 address are self-organized according to the network node The domain ID of the domain is generated by hash operation. The last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
在本发明实施例中,可选地,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。In the embodiment of the present invention, optionally, the IPv4 address is automatically generated by the network node, and includes: the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the IPv4 address is generated. The last 32-M bits are generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, and M is a positive integer; or the first N bits of the IPv4 address are the network node. According to the first N bits of the private IPv4 address, the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
在本发明实施例中,可选地,该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。In the embodiment of the present invention, optionally, the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the network. The node generates a hash operation according to the domain ID of the own self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address are the network node according to the device identifier or the interface configured on the network node. If the MAC address is hashed, M and L are positive integers; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are The first L bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node. , N, L are positive integers.
在本发明实施例中,可选地,该获取模块12具体用于:确定该IPv4地 址是否可用;根据确定该IPv4是否可用的结果确定该指示信息。In the embodiment of the present invention, the acquiring module 12 is specifically configured to: determine the IPv4 ground. Whether the address is available; the indication information is determined according to the result of determining whether the IPv4 is available.
在本发明实施例中,可选地,该获取模块12具体用于:在确定该IPv4地址可用时,确定该指示信息指示该网络节点的IPv4地址可用;或,在确定该IPv4地址不可用时,确定该指示信息包括IPv4地址增量信息或可用IPv4地址。In the embodiment of the present invention, the obtaining module 12 is specifically configured to: when determining that the IPv4 address is available, determining that the indication information indicates that an IPv4 address of the network node is available; or, when determining that the IPv4 address is unavailable, It is determined that the indication information includes IPv4 address increment information or an available IPv4 address.
在本发明实施例中,可选地,该发送模块14还用于:向冲突检测服务器发送该IPv4地址;In the embodiment of the present invention, the sending module 14 is further configured to: send the IPv4 address to the conflict detection server;
其中,该获取模块12具体用于:接收该冲突检测服务器发送的该指示信息,该指示信息指示该IPv4地址可用,或,该指示信息包括IPv4地址增量信息或可用IPv4地址;The obtaining module 12 is specifically configured to: receive the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
在本发明实施例中,可选地,该发送模块14具体用于:向该冲突检测服务器发送该IPv4地址和该设备标识。In the embodiment of the present invention, the sending module 14 is specifically configured to: send the IPv4 address and the device identifier to the conflict detection server.
在本发明实施例中,可选地,该网络节点的设备标识为该网络节点的唯一设备标识UDI;In the embodiment of the present invention, optionally, the device identifier of the network node is a unique device identifier UDI of the network node;
其中,该确定模块13具体用于:在确定该网络节点的UDI在UDI列表中时,确定该网络节点为合法节点。The determining module 13 is specifically configured to: when determining that the UDI of the network node is in the UDI list, determine that the network node is a legal node.
在本发明实施例中,可选地,该网络节点的设备标识为该网络节点的安全的唯一设备标识SUDI;In the embodiment of the present invention, optionally, the device identifier of the network node is a secure unique device identifier SUDI of the network node;
其中,确定模块13具体用于:验证该网络节点发送的与该SUDI相对应的设备数字证书;在验证该设备数字证书成功时,根据验证服务器的验证结果确定该网络节点为合法节点。The determining module 13 is specifically configured to: verify the device digital certificate corresponding to the SUDI sent by the network node; and when verifying that the device digital certificate is successful, determine that the network node is a legal node according to the verification result of the verification server.
在本发明实施例中,可选地,该IPv4地址为自组织控制平面ACP的IPv4地址。In the embodiment of the present invention, optionally, the IPv4 address is an IPv4 address of the self-organizing control plane ACP.
应理解,根据本发明实施例的通信装置10可对应于执行本发明实施例中的方法100,并且通信装置10中的各个模块的上述和其它操作和/或功能分别为了实现图1至图3中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the communication device 10 in accordance with an embodiment of the present invention may correspond to performing the method 100 in an embodiment of the present invention, and that the above and other operations and/or functions of the various modules in the communication device 10 are respectively implemented in order to implement FIGS. 1 through 3 The corresponding processes of each method in the following are not repeated here for brevity.
因此,本发明实施例的自组织网络中的通信装置接收网络节点发送的包括网络节点的设备标识和该网络节点的IPv4地址的AD消息,根据该设备标识确定网络节点为合法节点,并获取该IPv4地址可用性的指示信息,之后向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的ACP, 提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Thereby, an IPv4 based ACP can be established, Improve network compatibility and reduce network deployment barriers.
图14示出了根据本发明另一实施例的自组织网络中的通信装置,如图14所示,该通信装置20包括:FIG. 14 shows a communication device in an ad hoc network according to another embodiment of the present invention. As shown in FIG. 14, the communication device 20 includes:
接收模块21,用于接收登记节点发送的IPv4地址;The receiving module 21 is configured to receive an IPv4 address sent by the registration node;
确定模块22,用于确定该IPv4地址是否可用。The determining module 22 is configured to determine whether the IPv4 address is available.
因此,本发明实施例的自组织网络中的通信装置可以接收登记节点发送的IPv4地址,并确定该IPv4地址是否可用,由此能够降低登记节的处理复杂度。Therefore, the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration node.
在本发明实施例中,可选地,该IPv4地址是由网络节点自动生成的。In the embodiment of the present invention, optionally, the IPv4 address is automatically generated by a network node.
在本发明实施例中,可选地,该接收模块21具体用于:接收该登记节点发送的该IPv4地址和与该网络节点相对应的设备标识。In the embodiment of the present invention, the receiving module 21 is specifically configured to: receive the IPv4 address sent by the registration node and a device identifier corresponding to the network node.
在本发明实施例中,可选地,该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。In the embodiment of the present invention, optionally, each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or each bit in the IPv4 address is determined by the network node. The hash operation is generated according to the medium access control MAC address of the interface configured on the network node; or each bit in the IPv4 address is randomly generated by the network node.
在本发明实施例中,可选地,该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。In the embodiment of the present invention, optionally, the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are Generated by the network node according to the device identifier or the MAC address of the interface configured on the network node, M is a positive integer; or the first N bits of the IPv4 address are self-organized according to the network node The domain ID of the domain is generated by hash operation. The last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
在本发明实施例中,可选地,该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。In the embodiment of the present invention, optionally, the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are the network node according to the device identifier. Or the MAC address of the interface configured on the network node is hashed, and M is a positive integer; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address, and the IPv4 address is generated. The last 32-N bits are randomly generated by the network node, and N is a positive integer.
在本发明实施例中,可选地,该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上 配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。In the embodiment of the present invention, optionally, the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the network. The node generates a hash operation according to the domain ID of the own self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address are the network node according to the device identifier or the network node. The MAC address of the configured interface is generated by hash operation, and M and L are positive integers. Alternatively, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the private IPv4 address, and the last 32 bits of the IPv4 address. The first L bit in the -N bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are the network Randomly generated by the node, N, L are positive integers.
在本发明实施例中可选地,如图15所示,该通信装置还包括:第一发送模块23,用于向该登记节点发送第一冲突检测答复消息,该第一冲突检测答复消息用于指示该IPv4地址的可用性;In the embodiment of the present invention, optionally, as shown in FIG. 15, the communication device further includes: a first sending module 23, configured to send a first conflict detection reply message to the registration node, where the first conflict detection reply message is used Indicating the availability of the IPv4 address;
其中,在确定模块22确定该IPv4地址可用时,该第一冲突检测答复消息指示该IPv4地址可用;或,在该确定模块22确定该IPv4地址不可用时,该第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the determining module 22 determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available; or, when the determining module 22 determines that the IPv4 address is unavailable, the first conflict detection information includes an IPv4 address increase. Quantity information or available IPv4 address.
在本发明实施例中,可选地,如图16所示,该通信装置还包括:第二发送模块24,用于向该网络节点发送第二冲突检测答复消息,该第二冲突检测答复消息指示该IPv4的可用性;In the embodiment of the present invention, optionally, as shown in FIG. 16, the communication device further includes: a second sending module 24, configured to send, to the network node, a second conflict detection reply message, the second conflict detection reply message Indicate the availability of the IPv4;
其中,在确定模块22确定该IPv4地址可用时,该第二冲突检测答复消息指示该IPv4地址可用;或,在该确定模块22确定该IPv4地址不可用时,该第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the determining module 22 determines that the IPv4 address is available, the second conflict detection reply message indicates that the IPv4 address is available; or, when the determining module 22 determines that the IPv4 address is unavailable, the second conflict detection information includes an IPv4 address increase. Quantity information or available IPv4 address.
应理解,根据本发明实施例的通信装置20可对应于执行本发明实施例中的方法700,并且通信装置20中的各个模块的上述和其它操作和/或功能分别为了实现图8至图10中的各个方法的相应流程,为了简洁,在此不再赘述。It is to be understood that communication device 20 in accordance with an embodiment of the present invention may correspond to performing method 700 in an embodiment of the present invention, and that the above and other operations and/or functions of various modules in communication device 20 are respectively implemented in order to implement FIGS. 8-10 The corresponding processes of each method in the following are not repeated here for brevity.
因此,本发明实施例的自组织网络中的通信装置可以接收登记节点发送的IPv4地址,并确定该IPv4地址是否可用,由此能够降低登记节的处理复杂度。Therefore, the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration node.
下面结合图17详细描述本发明再一实施例的自组织网络中的通信方法的示意性流程图,如图17所示,该通信装置30包括:A schematic flowchart of a communication method in a self-organizing network according to still another embodiment of the present invention is described in detail below with reference to FIG. 17. As shown in FIG. 17, the communication device 30 includes:
地址生成模块31,用于自动生成IPv4地址;An address generation module 31, configured to automatically generate an IPv4 address;
发送模块32,用于向登记节点发送邻接发现AD消息,该AD消息携带该通信装置的的设备标识和该IPv4地址;The sending module 32 is configured to send a neighbor discovery AD message to the registration node, where the AD message carries the device identifier of the communication device and the IPv4 address;
接收模块33,用于接收域证书和该IPv4地址可用性的指示信息,该域证书是由该登记节点发送的; The receiving module 33 is configured to receive the domain certificate and the indication information about the availability of the IPv4 address, where the domain certificate is sent by the registration node;
连接建立模块34,用于根据该接收模块接收到的该域证书和该指示信息与该登记节点建立自组织控制平面ACP。The connection establishing module 34 is configured to establish an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information received by the receiving module.
因此,本发明实施例的自组织网络中的通信装置向登记节点发送AD消息,并接收该登记节点发送的根据该节点发送的AD消息中的设备标识确定的域证书和指示该IPv4地址可用性的指示信息,之后根据该域证书和该指示信息与该登记节点建立ACP。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
在本发明实施例中,可选地,该地址生成模块31具体用于:根据该设备标识进行哈希运算生成该IPv4地址中的每一位;或,根据配置的接口的介质访问控制MAC地址进行哈希运算生成该IPv4地址中的每一位;或,随机生成该IPv4地址中的每一位。In the embodiment of the present invention, the address generating module 31 is specifically configured to: perform a hash operation according to the device identifier to generate each bit in the IPv4 address; or control the MAC address according to the media access of the configured interface. A hash operation is performed to generate each bit in the IPv4 address; or, each bit in the IPv4 address is randomly generated.
在本发明实施例中,可选地,该地址生成模块31具体用于:根据所属的自组织域的域标识ID进行哈希运算生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。In the embodiment of the present invention, the address generating module 31 is specifically configured to: perform a hash operation according to the domain identifier ID of the associated self-organizing domain to generate the first M bits of the IPv4 address, according to the device identifier or configuration. The MAC address of the interface is hashed to generate the last 32-M bits of the IPv4 address, and M is a positive integer. Alternatively, the first N bits of the IPv4 address are generated by hashing according to the domain ID of the associated self-organizing domain, and randomly generated. The last 32-N bits of the IPv4 address, N is a positive integer.
在本发明实施例中,可选地,该地址生成模块31具体用于:根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位,M为正整数;或,根据专用IPv4地址的前N位生成该IPv4地址的前N位,随机生成该IPv4地址的后32-N位,N为正整数。In the embodiment of the present invention, the address generating module 31 is specifically configured to: generate the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and perform the HA according to the device identifier or the configured MAC address of the interface. The operation generates the last 32-M bits of the IPv4 address, and M is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated, N Is a positive integer.
在本发明实施例中,可选地,该地址生成模块31具体用于:根据专用IPv4地址的前M位生成该IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-M位中的前L位,根据该设备标识或配置的接口的MAC地址进行哈希运算生成该IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或,根据专用IPv4地址的前N位生成该IPv4地址的前N位,根据所属的自组织域的域ID进行哈希运算生成该IPv4地址的后32-N位中的前L位,随机生成该IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。In the embodiment of the present invention, the address generating module 31 is specifically configured to: generate a front M bit of the IPv4 address according to the first M bits of the dedicated IPv4 address, and perform a hash operation according to the domain ID of the associated self-organizing domain. Generating the first L-bit in the last 32-M bits of the IPv4 address, performing hash operation according to the device identifier or the MAC address of the configured interface, and generating the last 32-ML bits in the last 32-M bits of the IPv4 address, M L is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the hash operation is performed according to the domain ID of the associated self-organizing domain to generate the last 32-N bits of the IPv4 address. The first L bits randomly generate the last 32-NL bits of the last 32-N bits of the IPv4 address, and N, L are positive integers.
在本发明实施例中,可选地,该接收模块33接收的该指示信息指示该IPv4地址可用;或,该接收模块33接收的该指示信息包括IPv4地址增量信 息或可用IPv4地址。In the embodiment of the present invention, optionally, the indication information received by the receiving module 33 indicates that the IPv4 address is available; or the indication information received by the receiving module 33 includes an IPv4 address increment letter. Interest or available IPv4 address.
在本发明实施例中,可选地,该接收模块33接收的该IPv4可用性指示信息是由该登记节点发送的;或,该接收模块33接收的该IPv4可用性指示信息是由冲突检测服务器发送的。In the embodiment of the present invention, optionally, the IPv4 availability indication information received by the receiving module 33 is sent by the registration node; or the IPv4 availability indication information received by the receiving module 33 is sent by the conflict detection server. .
在本发明实施例中,可选地,该设备标识为该通信装置的唯一设备标识UDI,该登记节点配置有UDI列表。In the embodiment of the present invention, optionally, the device identifier is a unique device identifier UDI of the communication device, and the registration node is configured with a UDI list.
在本发明实施例中,可选地,该设备标识为该通信装置的安全的唯一设备标识SUDI,该登记节点能够接入到互联网中的验证服务器上。In the embodiment of the present invention, optionally, the device identifier is a secure unique device identifier SUDI of the communication device, and the registration node is capable of accessing an authentication server in the Internet.
在本发明实施例中,可选地,该IPv4地址为ACP的IPv4地址。In the embodiment of the present invention, optionally, the IPv4 address is an IPv4 address of the ACP.
应理解,根据本发明实施例的通信装置30可对应于执行本发明实施例中的方法700,并且通信装置30中的各个模块的上述和其它操作和/或功能分别为了实现图12中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that communication device 30 in accordance with an embodiment of the present invention may correspond to performing method 700 in an embodiment of the present invention, and that the above and other operations and/or functions of various modules in communication device 30 are respectively implemented in order to implement each of FIG. The corresponding process of the method is not repeated here for the sake of brevity.
因此,本发明实施例的自组织网络中的通信装置向登记节点发送AD消息,并接收该登记节点发送的根据该节点发送的AD消息中的设备标识确定的域证书和指示该IPv4地址可用性的指示信息,之后根据该域证书和该指示信息与该登记节点建立ACP。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
本发明实施例提供了一种自组织网络系统,包括图13所示的通信装置10和图17所示的通信装置30。The embodiment of the present invention provides a self-organizing network system, including the communication device 10 shown in FIG. 13 and the communication device 30 shown in FIG.
本发明实施例还提供了一种自组织网络系统,包括图13所示的通信装置10、图17所示的通信装置30以及图14至与16中任一图所示的通信装置20。The embodiment of the present invention further provides a self-organizing network system, including the communication device 10 shown in FIG. 13, the communication device 30 shown in FIG. 17, and the communication device 20 shown in any of FIGS. 14 to 16.
如图18所示,本发明实施例还提供了一种自组织网络中的通信装置40,该通信装置40包括处理器41、存储器42、接收器43、发送器44和总线系统45。其中,处理器41、存储器42、接收器43和发送器44通过总线系统45相连,该存储器42用于存储指令,该处理器41用于执行该存储器42存储的指令,以控制接收器43接收信号和发送器44发送信号。其中,该接收器43,用于接收网络节点发送的邻接发现AD消息,该AD消息携带该网络节点的设备标识和该网络节点的IPv4地址,该IPv4地址是由该网络节点自动生成的;该处理器41,用于获取该IPv4地址可用性的指示信息;该处理器41,还用于根据该设备标识确定该网络节点是否为合法节点;该发送器 44,用于在该处理器41确定该网络节点为合法节点时,向该网络节点发送域证书和该指示信息。As shown in FIG. 18, an embodiment of the present invention further provides a communication device 40 in an ad hoc network. The communication device 40 includes a processor 41, a memory 42, a receiver 43, a transmitter 44, and a bus system 45. The processor 41, the memory 42, the receiver 43, and the transmitter 44 are connected by a bus system 45 for storing instructions for executing instructions stored in the memory 42 to control the receiver 43 to receive. The signal and transmitter 44 sends a signal. The receiver 43 is configured to receive a neighbor discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node; The processor 41 is configured to obtain the indication information of the availability of the IPv4 address, and the processor 41 is further configured to determine, according to the device identifier, whether the network node is a legal node; the transmitter 44. For transmitting, when the processor 41 determines that the network node is a legal node, sending a domain certificate and the indication information to the network node.
因此,本发明实施例的自组织网络中的通信装置接收网络节点发送的包括网络节点的设备标识和该网络节点的IPv4地址的AD消息,根据该设备标识确定网络节点为合法节点,并获取该IPv4地址可用性的指示信息,之后向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
应理解,在本发明实施例中,该处理器41可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器41还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 41 may be a central processing unit ("CPU"), and the processor 41 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器42可以包括只读存储器和随机存取存储器,并向处理器41提供指令和数据。存储器42的一部分还可以包括非易失性随机存取存储器。例如,存储器42还可以存储设备类型的信息。The memory 42 can include read only memory and random access memory and provides instructions and data to the processor 41. A portion of the memory 42 may also include a non-volatile random access memory. For example, the memory 42 can also store information of the device type.
该总线系统45除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统45。The bus system 45 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 45 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器41中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器42,处理器41读取存储器42中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 41 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 42, and the processor 41 reads the information in the memory 42 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地,作为一个实施例,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址中的每一位是由该网络节点根据该设备标识进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点根据该网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,该IPv4地址中的每一位是由该网络节点随机生成的。Optionally, as an embodiment, the IPv4 address is automatically generated by the network node, and includes: each bit in the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or Each bit in the IPv4 address is generated by the network node hashing according to the medium access control MAC address of the interface configured on the network node; or each bit in the IPv4 address is randomly generated by the network node of.
可选地,作为一个实施例,该IPv4地址是由该网络节点自动生成的, 包括:该IPv4地址的前M位是由该网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,该IPv4地址的后32-M位是由该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是由该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-N位是由该网络节点随机生成的,N为正整数。Optionally, as an embodiment, the IPv4 address is automatically generated by the network node. The method includes: the first M bits of the IPv4 address are generated by the network node according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the device identifier or If the MAC address of the interface configured on the network node is hashed, M is a positive integer; or the first N bits of the IPv4 address are generated by the network node according to the domain ID of the self-organizing domain to which the network node belongs. The last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
可选地,作为一个实施例,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位是该网络节点随机生成的,N为正整数。Optionally, as an embodiment, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the IPv4 address is followed by the IPv4 address. The 32-M bit is generated by the network node performing a hash operation according to the device identifier or the MAC address of the interface configured on the network node, where M is a positive integer; or, the first N bits of the IPv4 address are the network node according to the dedicated Generated by the first N bits of the IPv4 address, the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
可选地,作为一个实施例,该IPv4地址是由该网络节点自动生成的,包括:该IPv4地址的前M位是该网络节点根据专用IPv4地址的前M位生成的,该IPv4地址的后32-M位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该IPv4地址的后32-M位中的后32-M-L位是该网络节点根据该设备标识或该网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,该IPv4地址的前N位是该网络节点根据专用IPv4地址的前N位生成的,该IPv4地址的后32-N位中的前L位是该网络节点根据所属的自组织域的域ID进行哈希运算生成的,该网络节点的IPv4地址的后32-N位中的后32-N-L位是该网络节点随机生成的,N,L为正整数。Optionally, as an embodiment, the IPv4 address is automatically generated by the network node, including: the first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the IPv4 address is followed by the IPv4 address. The first L bit in the 32-M bit is generated by the network node hashing according to the domain ID of the associated self-organizing domain, and the last 32-ML bits in the last 32-M bits of the IPv4 address are the network node according to the network node. The device identifier or the MAC address of the interface configured on the network node is hashed, and M, L are positive integers; or, the first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address. The first L bit in the last 32-N bits of the IPv4 address is generated by the network node performing a hash operation according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address of the network node The last 32-NL bits are randomly generated by the network node, and N and L are positive integers.
可选地,作为一个实施例,该处理器41具体用于:确定该IPv4地址是否可用;根据确定该IPv4是否可用的结果确定该指示信息。Optionally, as an embodiment, the processor 41 is specifically configured to: determine whether the IPv4 address is available; and determine the indication information according to a result of determining whether the IPv4 is available.
可选地,作为一个实施例,该处理器41具体用于:在确定该IPv4地址可用时,确定该指示信息指示该网络节点的IPv4地址可用;或,在确定该IPv4地址不可用时,确定该指示信息包括IPv4地址增量信息或可用IPv4地址。Optionally, as an embodiment, the processor 41 is specifically configured to: when determining that the IPv4 address is available, determine that the indication information indicates that an IPv4 address of the network node is available; or, when determining that the IPv4 address is unavailable, determine the The indication information includes IPv4 address increment information or an available IPv4 address.
可选地,作为一个实施例,该发送器44还用于:向冲突检测服务器发送该IPv4地址;Optionally, in an embodiment, the transmitter 44 is further configured to: send the IPv4 address to the conflict detection server;
其中,该接收器43具体用于:接收该冲突检测服务器发送的该指示信 息,该指示信息指示该IPv4地址可用,或,该指示信息包括IPv4地址增量信息或可用IPv4地址;The receiver 43 is specifically configured to: receive the indication sent by the conflict detection server. The indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
可选地,作为一个实施例,该发送器44具体用于:向该冲突检测服务器发送该IPv4地址和该设备标识。Optionally, as an embodiment, the transmitter 44 is specifically configured to: send the IPv4 address and the device identifier to the conflict detection server.
应理解,根据本发明实施例的通信装置40可对应于本发明实施例中的通信装置10,并可以对应于执行根据本发明实施例的方法中的相应主体,并且通信装置40中的各个模块的上述和其它操作和/或功能分别为了实现图1至图3中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the communication device 40 according to an embodiment of the present invention may correspond to the communication device 10 in the embodiment of the present invention, and may correspond to a corresponding body in the method according to the embodiment of the present invention, and each module in the communication device 40 The above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 1 to FIG. 3, and are not described herein again for brevity.
因此,本发明实施例的自组织网络中的通信装置接收网络节点发送的包括网络节点的设备标识和该网络节点的IPv4地址的AD消息,根据该设备标识确定网络节点为合法节点,并获取该IPv4地址可用性的指示信息,之后向该网络节点发送域证书和该指示信息。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention receives the AD message that is sent by the network node, including the device identifier of the network node and the IPv4 address of the network node, determines that the network node is a legal node according to the device identifier, and obtains the The indication information of the availability of the IPv4 address, and then the domain certificate and the indication information are sent to the network node. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
如图19所示,本发明实施例还提供了一种自组织网络中的通信装置50,该通信装置50包括处理器51、存储器52、接收器53、发送器54和总线系统55。其中,处理器51、存储器52、接收器53和发送器54通过总线系统55相连,该存储器52用于存储指令,该处理器51用于执行该存储器52存储的指令,以控制接收器53接收信号和发送器54发送信号。其中,该接收器53,用于接收登记节点发送的IPv4地址;该处理器51,用于确定该IPv4地址是否可用。As shown in FIG. 19, an embodiment of the present invention further provides a communication device 50 in an ad hoc network, the communication device 50 including a processor 51, a memory 52, a receiver 53, a transmitter 54, and a bus system 55. The processor 51, the memory 52, the receiver 53, and the transmitter 54 are connected by a bus system 55 for storing instructions for executing instructions stored in the memory 52 to control the receiver 53 to receive. The signal and transmitter 54 sends a signal. The receiver 53 is configured to receive an IPv4 address sent by the registration node, and the processor 51 is configured to determine whether the IPv4 address is available.
因此,本发明实施例的自组织网络中的通信装置可以接收登记节点发送的IPv4地址,并确定该IPv4地址是否可用,由此能够降低登记节的处理复杂度。Therefore, the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node and determine whether the IPv4 address is available, thereby reducing the processing complexity of the registration node.
应理解,在本发明实施例中,该处理器51可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器51还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 51 may be a central processing unit ("CPU"), and the processor 51 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器52可以包括只读存储器和随机存取存储器,并向处理器51提供指令和数据。存储器52的一部分还可以包括非易失性随机存取存储器。例如,存储器52还可以存储设备类型的信息。 The memory 52 can include read only memory and random access memory and provides instructions and data to the processor 51. A portion of the memory 52 may also include a non-volatile random access memory. For example, the memory 52 can also store information of the device type.
该总线系统55除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统55。The bus system 55 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 55 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器51中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器52,处理器51读取存储器52中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 51 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. The software module can be located in a conventional storage medium such as random access memory, flash memory, read only memory, programmable read only memory or electrically erasable programmable memory, registers, and the like. The storage medium is located in the memory 52, and the processor 51 reads the information in the memory 52 and performs the steps of the above method in combination with its hardware. To avoid repetition, it will not be described in detail here.
可选地,作为一个实施例,该IPv4地址是由于网络节点自动生成的。Optionally, as an embodiment, the IPv4 address is automatically generated by the network node.
可选地,作为一个实施例,该接收器53具体用于:接收该登记节点发送的该IPv4地址和与该网络节点相对应的设备标识。Optionally, as an embodiment, the receiver 53 is specifically configured to: receive the IPv4 address sent by the registration node and a device identifier corresponding to the network node.
可选地,作为一个实施例,该发送器54,用于向该登记节点发送第一冲突检测答复消息,该第一冲突检测答复消息用于指示该IPv4地址的可用性;Optionally, as an embodiment, the transmitter 54 is configured to send, to the registration node, a first conflict detection reply message, where the first conflict detection reply message is used to indicate availability of the IPv4 address;
其中,在该处理器51确定该IPv4地址可用时,该第一冲突检测答复消息指示该IPv4地址可用;或,Wherein, when the processor 51 determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available; or
在该处理器51确定该IPv4地址不可用时,该第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the processor 51 determines that the IPv4 address is unavailable, the first conflict detection information includes IPv4 address increment information or an available IPv4 address.
可选地,作为一个实施例,该发送器54,还用于向该网络节点发送第二冲突检测答复消息,该第二冲突检测答复消息指示该IPv4的可用性;Optionally, as an embodiment, the transmitter 54 is further configured to send, to the network node, a second conflict detection reply message, where the second conflict detection reply message indicates availability of the IPv4;
其中,在该处理器51确定该IPv4地址可用时,该第二冲突检测答复消息指示该IPv4地址可用;或,Wherein, when the processor 51 determines that the IPv4 address is available, the second conflict detection reply message indicates that the IPv4 address is available; or
在该处理器51确定该IPv4地址不可用时,该第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the processor 51 determines that the IPv4 address is unavailable, the second collision detection information includes IPv4 address increment information or an available IPv4 address.
应理解,根据本发明实施例的通信装置50可对应于本发明实施例中的通信装置20,并可以对应于执行根据本发明实施例的方法中的相应主体,并且通信装置50中的各个模块的上述和其它操作和/或功能分别为了实现图8至图10中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the communication device 50 according to an embodiment of the present invention may correspond to the communication device 20 in the embodiment of the present invention, and may correspond to a corresponding body in the method according to the embodiment of the present invention, and each module in the communication device 50 The above and other operations and/or functions are respectively implemented in order to implement the respective processes of the respective methods in FIG. 8 to FIG. 10, and are not described herein again for brevity.
因此,本发明实施例的自组织网络中的通信装置可以接收登记节点发送的IPv4地址,并确定该IPv4地址是否可用,由此能够降低登记节的处理复 杂度。Therefore, the communication device in the ad hoc network of the embodiment of the present invention can receive the IPv4 address sent by the registration node, and determine whether the IPv4 address is available, thereby reducing the processing of the registration section. Miscellaneous.
如图20所示,本发明实施例还提供了一种自组织网络中的通信装置60,该通信装置60包括处理器61、存储器62、发送器63、接收器64和总线系统65。其中,处理器61、存储器62、发送器63和接收器64通过总线系统65相连,该存储器62用于存储指令,该处理器61用于执行该存储器62存储的指令,以控制发送器63发送信号和接收器64接收信号。其中,该处理器61,用于用于自动生成IPv4地址;该发送器63,用于向登记节点发送邻接发现AD消息,该AD消息携带该通信装置的的设备标识和该IPv4地址;该接收器64,用于接收域证书和该IPv4地址可用性的指示信息,该域证书是由该登记节点发送的;该处理器61,还用于根据该接收器64接收到的该域证书和该指示信息与该登记节点建立自组织控制平面ACP。As shown in FIG. 20, an embodiment of the present invention further provides a communication device 60 in an ad hoc network, the communication device 60 including a processor 61, a memory 62, a transmitter 63, a receiver 64, and a bus system 65. The processor 61, the memory 62, the transmitter 63 and the receiver 64 are connected by a bus system 65 for storing instructions for executing instructions stored in the memory 62 for controlling the transmitter 63 to transmit Signal and receiver 64 receive the signal. The processor 61 is configured to automatically generate an IPv4 address, and the transmitter 63 is configured to send a neighbor discovery AD message to the registration node, where the AD message carries a device identifier of the communication device and the IPv4 address; The device 64 is configured to receive the domain certificate and the indication information of the IPv4 address availability, where the domain certificate is sent by the registration node. The processor 61 is further configured to receive the domain certificate and the indication according to the receiver 64. The information establishes an ad hoc control plane ACP with the registration node.
因此,本发明实施例的自组织网络中的通信装置向登记节点发送AD消息,并接收该登记节点发送的根据该节点发送的AD消息中的设备标识确定的域证书和指示该IPv4地址可用性的指示信息,之后根据该域证书和该指示信息与该登记节点建立ACP。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
应理解,在本发明实施例中,该处理器61可以是中央处理单元(Central Processing Unit,简称为“CPU”),该处理器61还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现成可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that, in the embodiment of the present invention, the processor 61 may be a central processing unit ("CPU"), and the processor 61 may also be other general-purpose processors, digital signal processors (DSPs). , an application specific integrated circuit (ASIC), an off-the-shelf programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component, and the like. The general purpose processor may be a microprocessor or the processor or any conventional processor or the like.
该存储器62可以包括只读存储器和随机存取存储器,并向处理器61提供指令和数据。存储器62的一部分还可以包括非易失性随机存取存储器。例如,存储器62还可以存储设备类型的信息。The memory 62 can include read only memory and random access memory and provides instructions and data to the processor 61. A portion of the memory 62 may also include a non-volatile random access memory. For example, the memory 62 can also store information of the device type.
该总线系统65除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都标为总线系统65。The bus system 65 may include a power bus, a control bus, a status signal bus, and the like in addition to the data bus. However, for clarity of description, various buses are labeled as bus system 65 in the figure.
在实现过程中,上述方法的各步骤可以通过处理器61中的硬件的集成逻辑电路或者软件形式的指令完成。结合本发明实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只 读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器62,处理器61读取存储器62中的信息,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 61 or an instruction in a form of software. The steps of the method disclosed in the embodiments of the present invention may be directly implemented as a hardware processor, or may be performed by a combination of hardware and software modules in the processor. Software modules can be located in random access memory, flash memory, read-only memory, programmable only Read memory or electrically erasable programmable memory, registers, etc. are well-known storage media in the field. The storage medium is located in the memory 62, and the processor 61 reads the information in the memory 62 and, in conjunction with its hardware, performs the steps of the above method. To avoid repetition, it will not be described in detail here.
可选地,作为一个实施例,所述处理器61具体用于:根据所述设备标识进行哈希运算生成所述IPv4地址中的每一位;或,根据配置的接口的介质访问控制MAC地址进行哈希运算生成所述IPv4地址中的每一位;或,随机生成所述IPv4地址中的每一位。Optionally, as an embodiment, the processor 61 is specifically configured to: perform a hash operation according to the device identifier to generate each bit in the IPv4 address; or control a MAC address according to a media access of the configured interface. Performing a hash operation to generate each bit in the IPv4 address; or randomly generating each bit in the IPv4 address.
可选地,作为一个实施例,所述处理器61具体用于:根据所属的自组织域的域标识ID进行哈希运算生成所述IPv4地址的前M位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位,M为正整数;或,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的前N位,随机生成所述IPv4地址的后32-N位,N为正整数。Optionally, as an embodiment, the processor 61 is specifically configured to: perform a hash operation according to a domain identifier ID of the associated self-organizing domain to generate a first M-bit of the IPv4 address, according to the device identifier or configuration. The MAC address of the interface is hashed to generate the last 32-M bits of the IPv4 address, and M is a positive integer; or, the hash operation is performed according to the domain ID of the associated self-organizing domain to generate the first N bits of the IPv4 address, The last 32-N bits of the IPv4 address are randomly generated, and N is a positive integer.
可选地,作为一个实施例,所述处理器61具体用于:根据专用IPv4地址的前M位生成所述IPv4地址的前M位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位,M为正整数;或,根据专用IPv4地址的前N位生成所述IPv4地址的前N位,随机生成所述IPv4地址的后32-N位,N为正整数。Optionally, as an embodiment, the processor 61 is specifically configured to: generate a first M bit of the IPv4 address according to the first M bits of the dedicated IPv4 address, and perform, according to the device identifier or the configured MAC address of the interface. The operation generates the last 32-M bits of the IPv4 address, and M is a positive integer; or, generates the first N bits of the IPv4 address according to the first N bits of the dedicated IPv4 address, and randomly generates the last 32-N of the IPv4 address. Bit, N is a positive integer.
可选地,作为一个实施例,所述处理器61具体用于:根据专用IPv4地址的前M位生成所述IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的后32-M位中的前L位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或,根据专用IPv4地址的前N位生成所述IPv4地址的前N位,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的后32-N位中的前L位,随机生成所述IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。Optionally, as an embodiment, the processor 61 is specifically configured to: generate a first M bit of the IPv4 address according to a first M bits of the dedicated IPv4 address, and perform a hash operation according to the domain ID of the associated self-organizing domain. The first L bits of the last 32-M bits of the IPv4 address are hashed according to the device identifier or the configured MAC address of the interface to generate the last 32-ML bits of the last 32-M bits of the IPv4 address. , M, L is a positive integer; or, the first N bits of the IPv4 address are generated according to the first N bits of the private IPv4 address, and the hash operation is performed according to the domain ID of the associated self-organizing domain to generate the last 32- of the IPv4 address. The first L bits of the N bits randomly generate the last 32-NL bits of the last 32-N bits of the IPv4 address, and N, L are positive integers.
可选地,作为一个实施例,所述接收器64接收的所述指示信息指示所述IPv4地址可用;或,所述接收器64接收的所述指示信息包括IPv4地址增量信息或可用IPv4地址。Optionally, as an embodiment, the indication information received by the receiver 64 indicates that the IPv4 address is available; or the indication information received by the receiver 64 includes an IPv4 address increment information or an available IPv4 address. .
可选地,作为一个实施例,所述接收器64接收的所述IPv4可用性指示信息是由所述登记节点发送的;或,所述接收器64接收的所述IPv4可用性 指示信息是由冲突检测服务器发送的。Optionally, as an embodiment, the IPv4 availability indication information received by the receiver 64 is sent by the registration node; or the IPv4 availability received by the receiver 64. The indication information is sent by the conflict detection server.
应理解,根据本发明实施例的通信装置60可对应于本发明实施例中的通信装置30,并可以对应于执行根据本发明实施例的方法中的相应主体,并且通信装置60中的各个模块的上述和其它操作和/或功能分别为了实现图12中的各个方法的相应流程,为了简洁,在此不再赘述。It should be understood that the communication device 60 according to an embodiment of the present invention may correspond to the communication device 30 in the embodiment of the present invention, and may correspond to a corresponding body in the method according to the embodiment of the present invention, and each module in the communication device 60 The above and other operations and/or functions are respectively implemented in order to implement the corresponding processes of the respective methods in FIG. 12, and are not described herein again for brevity.
因此,本发明实施例的自组织网络中的通信装置向登记节点发送AD消息,并接收该登记节点发送的根据该节点发送的AD消息中的设备标识确定的域证书和指示该IPv4地址可用性的指示信息,之后根据该域证书和该指示信息与该登记节点建立ACP。由此,能够建立基于IPv4的ACP,提高网络的兼容性,减少网络部署障碍。Therefore, the communication device in the ad hoc network of the embodiment of the present invention sends an AD message to the registration node, and receives a domain certificate determined by the registration node and determined by the device identifier in the AD message sent by the node, and indicates the availability of the IPv4 address. Instructing information, and then establishing an ACP with the registration node according to the domain certificate and the indication information. Therefore, it is possible to establish an IPv4-based ACP, improve network compatibility, and reduce network deployment obstacles.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本发明的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It is to be understood that the phrase "one embodiment" or "an embodiment" or "an" Thus, "in one embodiment" or "in an embodiment" or "an" In addition, these particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
在本发明的各种实施例中,应理解,上述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本发明实施例的实施过程构成任何限定。In the various embodiments of the present invention, it should be understood that the size of the sequence numbers of the above processes does not mean the order of execution, and the order of execution of each process should be determined by its function and internal logic, and should not be taken to the embodiments of the present invention. The implementation process constitutes any limitation.
另外,本文中术语“系统”和“网络”在本文中常可互换使用。应理解,本文中术语“和/或”,仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。另外,本文中字符“/”,一般表示前后关联对象是一种“或”的关系。Additionally, the terms "system" and "network" are used interchangeably herein. It should be understood that the term "and/or" herein is merely an association relationship describing an associated object, indicating that there may be three relationships, for example, A and/or B, which may indicate that A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
在本申请所提供的实施例中,应理解,“与A相应的B”表示B与A相关联,根据A可以确定B。但还应理解,根据A确定B并不意味着仅仅根据A确定B,还可以根据A和/或其它信息确定B。In the embodiments provided herein, it should be understood that "B corresponding to A" means that B is associated with A, and B can be determined from A. However, it should also be understood that determining B from A does not mean that B is only determined based on A, and that B can also be determined based on A and/or other information.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个 特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. Professional technicians can each The particular application uses different methods to implement the described functionality, but such implementation should not be considered to be beyond the scope of the invention.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the device embodiments described above are merely illustrative. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner, for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。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, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(Read-Only Memory,简称为“ROM”)、随机存取存储器(Random Access Memory,简称为“RAM”)、磁碟或者光盘等各种可以存储程序代码的介质。An integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, can be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, or a part of the technical solution, may be embodied in the form of a software product, which is stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a disk or a CD. A variety of media that can store program code.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护 范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the protection of the present invention The scope should be determined by the scope of the claims.

Claims (44)

  1. 一种自组织网络中的通信方法,其特征在于,所述通信方法包括:A communication method in a self-organizing network, characterized in that the communication method comprises:
    登记节点接收网络节点发送的邻接发现AD消息,所述AD消息携带所述网络节点的设备标识和所述网络节点的IPv4地址,所述IPv4地址是由所述网络节点自动生成的;The registration node receives the adjacency discovery AD message sent by the network node, where the AD message carries the device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node;
    所述登记节点获取所述IPv4地址可用性的指示信息;The registration node acquires indication information of the availability of the IPv4 address;
    所述登记节点根据所述设备标识确定所述网络节点是否为合法节点;Determining, by the registration node, whether the network node is a legal node according to the device identifier;
    所述登记节点在确定所述网络节点为合法节点时,向所述网络节点发送域证书和所述指示信息。The determining node sends the domain certificate and the indication information to the network node when determining that the network node is a legal node.
  2. 根据权利要求1所述的通信方法,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication method according to claim 1, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址中的每一位是由所述网络节点根据所述设备标识进行哈希运算生成的;或,Each bit of the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or
    所述IPv4地址中的每一位是由所述网络节点根据所述网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,Each bit of the IPv4 address is generated by the network node performing a hash operation according to a medium access control MAC address of an interface configured on the network node; or
    所述IPv4地址中的每一位是由所述网络节点随机生成的。Each bit of the IPv4 address is randomly generated by the network node.
  3. 根据权利要求1所述的通信方法,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication method according to claim 1, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址的前M位是由所述网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,所述IPv4地址的后32-M位是由所述网络节点根据所述设备标识或所述网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,The first M bits of the IPv4 address are generated by the network node performing a hash operation according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the If the device identifier or the MAC address of the interface configured on the network node is hashed, M is a positive integer; or,
    所述IPv4地址的前N位是由所述网络节点根据所属的自组织域的域ID进行哈希运算生成的,所述IPv4地址的后32-N位是由所述网络节点随机生成的,N为正整数。The first N bits of the IPv4 address are generated by the network node performing a hash operation according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node. N is a positive integer.
  4. 根据权利要求1所述的通信方法,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication method according to claim 1, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址的前M位是所述网络节点根据专用IPv4地址的前M位生成的,所述IPv4地址的后32-M位是所述网络节点根据所述设备标识或所述网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或, The first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are the network node according to the device identifier or the network node. If the MAC address of the configured interface is hashed, M is a positive integer; or,
    所述IPv4地址的前N位是所述网络节点根据专用IPv4地址的前N位生成的,所述IPv4地址的后32-N位是所述网络节点随机生成的,N为正整数。The first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  5. 根据权利要求1所述的通信方法,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication method according to claim 1, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址的前M位是所述网络节点根据专用IPv4地址的前M位生成的,所述IPv4地址的后32-M位中的前L位是所述网络节点根据所属的自组织域的域ID进行哈希运算生成的,所述IPv4地址的后32-M位中的后32-M-L位是所述网络节点根据所述设备标识或所述网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,The first M bits of the IPv4 address are generated by the network node according to the first M bits of the private IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the self-organizing domain of the network node according to the The domain ID is hashed, and the last 32-ML bits in the last 32-M bits of the IPv4 address are performed by the network node according to the device identifier or the MAC address of the interface configured on the network node. Generated by hash operation, M, L are positive integers; or,
    所述IPv4地址的前N位是所述网络节点根据专用IPv4地址的前N位生成的,所述IPv4地址的后32-N位中的前L位是所述网络节点根据所属的自组织域的域ID进行哈希运算生成的,所述网络节点的IPv4地址的后32-N位中的后32-N-L位是所述网络节点随机生成的,N,L为正整数。The first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address are the self-organizing domain of the network node according to the The domain ID is hashed, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N and L are positive integers.
  6. 根据权利要求1至5中任一项所述的通信方法,其特征在于,所述登记节点获取所述IPv4地址可用性的指示信息,包括:The communication method according to any one of claims 1 to 5, wherein the registration node acquires the indication information of the availability of the IPv4 address, including:
    所述登记节点确定所述IPv4地址是否可用;The registration node determines whether the IPv4 address is available;
    所述登记节点根据确定所述IPv4是否可用的结果确定所述指示信息。The registration node determines the indication information according to a result of determining whether the IPv4 is available.
  7. 根据权利要求6所述的通信方法,其特征在于,所述登记节点根据确定所述IPv4是否可用的结果确定所述指示信息,包括:The communication method according to claim 6, wherein the determining, by the registration node, the indication information according to a result of determining whether the IPv4 is available, includes:
    在所述登记节点确定所述IPv4地址可用时,确定所述指示信息指示所述网络节点的IPv4地址可用;或,When the registration node determines that the IPv4 address is available, determining that the indication information indicates that an IPv4 address of the network node is available; or
    在所述登记节点确定所述IPv4地址不可用时,确定所述指示信息包括IPv4地址增量信息或可用IPv4地址。When the registration node determines that the IPv4 address is unavailable, it is determined that the indication information includes an IPv4 address increment information or an available IPv4 address.
  8. 根据权利要求1至5中任一项所述的通信方法,其特征在于,所述登记节点获取所述IPv4地址可用性的指示信息,包括:The communication method according to any one of claims 1 to 5, wherein the registration node acquires the indication information of the availability of the IPv4 address, including:
    所述登记节点向冲突检测服务器发送所述IPv4地址;The registration node sends the IPv4 address to a conflict detection server;
    所述登记节点接收所述冲突检测服务器发送的所述指示信息,所述指示信息指示所述IPv4地址可用,或,所述指示信息包括IPv4地址增量信息或可用IPv4地址。The registration node receives the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address.
  9. 根据权利要求8所述的通信方法,其特征在于,所述登记节点向冲突检测服务器发送所述IPv4地址,包括: The communication method according to claim 8, wherein the sending, by the registration node, the IPv4 address to the conflict detection server comprises:
    所述登记节点向所述冲突检测服务器发送所述IPv4地址和所述设备标识。The registration node sends the IPv4 address and the device identifier to the conflict detection server.
  10. 一种自组织网络中的通信方法,其特征在于,所述通信方法包括:A communication method in a self-organizing network, characterized in that the communication method comprises:
    冲突检测服务器接收登记节点发送的IPv4地址;The conflict detection server receives the IPv4 address sent by the registration node;
    所述冲突检测服务器确定所述IPv4地址是否可用。The conflict detection server determines whether the IPv4 address is available.
  11. 根据权利要求10所述的通信方法,其特征在于,所述IPv4地址是由网络节点自动生成的。The communication method according to claim 10, wherein said IPv4 address is automatically generated by a network node.
  12. 根据权利要求11所述的通信方法,其特征在于,所述冲突检测服务器接收登记节点发送的IPv4地址,包括:The communication method according to claim 11, wherein the conflict detection server receives the IPv4 address sent by the registration node, and includes:
    所述冲突检测服务器接收所述登记节点发送的所述IPv4地址和所述网络节点的设备标识。The conflict detection server receives the IPv4 address sent by the registration node and a device identifier of the network node.
  13. 根据权利要求10至12中任一项所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to any one of claims 10 to 12, wherein the communication method further comprises:
    所述冲突检测服务器向所述登记节点发送第一冲突检测答复消息,所述第一冲突检测答复消息用于指示所述IPv4地址的可用性;The conflict detection server sends a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate availability of the IPv4 address;
    其中,在所述冲突检测服务器确定所述IPv4地址可用时,所述第一冲突检测答复消息指示所述IPv4地址可用;或,Wherein, when the conflict detection server determines that the IPv4 address is available, the first conflict detection reply message indicates that the IPv4 address is available; or
    在所述冲突检测服务器确定所述IPv4地址不可用时,所述第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the conflict detection server determines that the IPv4 address is unavailable, the first conflict detection information includes IPv4 address increment information or an available IPv4 address.
  14. 根据权利要求11或12所述的通信方法,其特征在于,所述通信方法还包括:The communication method according to claim 11 or 12, wherein the communication method further comprises:
    所述冲突检测服务器向所述网络节点发送第二冲突检测答复消息,所述第二冲突检测答复消息用于指示所述IPv4的可用性;The conflict detection server sends a second conflict detection reply message to the network node, where the second conflict detection reply message is used to indicate the availability of the IPv4;
    其中,在所述冲突检测服务器确定所述IPv4地址可用时,所述第二冲突检测答复消息指示所述IPv4地址可用;或,Wherein, when the conflict detection server determines that the IPv4 address is available, the second conflict detection reply message indicates that the IPv4 address is available; or
    在所述冲突检测服务器确定所述IPv4地址不可用时,所述第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the conflict detection server determines that the IPv4 address is unavailable, the second conflict detection information includes IPv4 address increment information or an available IPv4 address.
  15. 一种自组织网络中的通信方法,其特征在于,所述通信方法包括:A communication method in a self-organizing network, characterized in that the communication method comprises:
    网络节点自动生成IPv4地址;The network node automatically generates an IPv4 address;
    所述网络节点向登记节点发送邻接发现AD消息,所述AD消息携带所述网络节点的设备标识和所述IPv4地址; Sending, by the network node, a neighbor discovery AD message to the registration node, where the AD message carries a device identifier of the network node and the IPv4 address;
    所述网络节点接收域证书和所述IPv4地址可用性的指示信息,所述域证书是由所述登记节点发送的;Receiving, by the network node, a domain certificate and an indication of availability of the IPv4 address, where the domain certificate is sent by the registration node;
    所述网络节点根据所述域证书和所述指示信息与所述登记节点建立自组织控制平面ACP。The network node establishes an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information.
  16. 根据权利要求15所述的通信方法,其特征在于,所述网络节点自动生成IPv4地址,包括:The communication method according to claim 15, wherein the network node automatically generates an IPv4 address, including:
    所述网络节点根据所述设备标识进行哈希运算生成所述IPv4地址中的每一位;或,The network node performs a hash operation according to the device identifier to generate each bit in the IPv4 address; or
    所述网络节点根据配置的接口的介质访问控制MAC地址进行哈希运算生成所述IPv4地址中的每一位;或,The network node performs a hash operation according to the media access control MAC address of the configured interface to generate each bit in the IPv4 address; or
    所述网络节点随机生成所述IPv4地址中的每一位。The network node randomly generates each of the IPv4 addresses.
  17. 根据权利要求15所述的通信方法,其特征在于,所述网络节点自动生成所述IPv4地址,包括:The communication method according to claim 15, wherein the network node automatically generates the IPv4 address, including:
    所述网络节点根据所属的自组织域的域标识ID进行哈希运算生成所述IPv4地址的前M位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位,M为正整数;或,The network node performs a hash operation according to the domain identifier ID of the associated self-organizing domain to generate the first M-bit of the IPv4 address, and performs a hash operation according to the device identifier or the MAC address of the configured interface to generate the IPv4 address. After 32-M bits, M is a positive integer; or,
    所述网络节点根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的前N位,随机生成所述IPv4地址的后32-N位,N为正整数。The network node performs a hash operation according to the domain ID of the associated self-organizing domain to generate the first N bits of the IPv4 address, and randomly generates the last 32-N bits of the IPv4 address, where N is a positive integer.
  18. 根据权利要求15所述的通信方法,其特征在于,所述网络节点自动生成所述IPv4地址,包括:The communication method according to claim 15, wherein the network node automatically generates the IPv4 address, including:
    所述网络节点根据专用IPv4地址的前M位生成所述IPv4地址的前M位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位,M为正整数;或,Generating, by the network node, the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performing a hash operation according to the device identifier or the MAC address of the configured interface to generate the last 32-M bits of the IPv4 address, M is a positive integer; or,
    所述网络节点根据专用IPv4地址的前N位生成所述IPv4地址的前N位,随机生成所述IPv4地址的后32-N位,N为正整数。The network node generates the first N bits of the IPv4 address according to the first N bits of the dedicated IPv4 address, and randomly generates the last 32-N bits of the IPv4 address, where N is a positive integer.
  19. 根据权利要求15所述的通信方法,其特征在于,所述网络节点自动生成所述IPv4地址,包括:The communication method according to claim 15, wherein the network node automatically generates the IPv4 address, including:
    所述网络节点根据专用IPv4地址的前M位生成所述IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的后32-M位中的前L位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或, Generating, by the network node, the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performing a hash operation according to the domain ID of the associated self-organizing domain to generate the first L of the last 32-M bits of the IPv4 address Bit, performing a hash operation according to the device identifier or the MAC address of the configured interface to generate a last 32-ML bit in the last 32-M bits of the IPv4 address, where M, L are positive integers; or
    所述网络节点根据专用IPv4地址的前N位生成所述IPv4地址的前N位,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的后32-N位中的前L位,随机生成所述IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。The network node generates a first N bits of the IPv4 address according to the first N bits of the dedicated IPv4 address, and performs a hash operation according to the domain ID of the associated self-organizing domain to generate a front L of the last 32-N bits of the IPv4 address. Bits, randomly generating the last 32-NL bits of the last 32-N bits of the IPv4 address, N, L being positive integers.
  20. 根据权利要求15至19中任一项所述的通信方法,其特征在于,所述指示信息指示所述IPv4地址可用;或,The communication method according to any one of claims 15 to 19, wherein the indication information indicates that the IPv4 address is available; or
    所述指示信息包括IPv4地址增量信息或可用IPv4地址。The indication information includes IPv4 address increment information or an available IPv4 address.
  21. 根据权利要求15至20中任一项所述的通信方法,其特征在于,所述IPv4可用性指示信息是由所述登记节点发送的;或,所述IPv4可用性指示信息是由冲突检测服务器发送的。The communication method according to any one of claims 15 to 20, wherein the IPv4 availability indication information is transmitted by the registration node; or the IPv4 availability indication information is sent by a collision detection server .
  22. 一种自组织网络中的通信装置,其特征在于,所述通信装置包括:A communication device in a self-organizing network, characterized in that the communication device comprises:
    接收模块,用于接收网络节点发送的邻接发现AD消息,所述AD消息携带所述网络节点的设备标识和所述网络节点的IPv4地址,所述IPv4地址是由所述网络节点自动生成的;a receiving module, configured to receive an adjacency discovery AD message sent by the network node, where the AD message carries a device identifier of the network node and an IPv4 address of the network node, where the IPv4 address is automatically generated by the network node;
    获取模块,用于获取所述IPv4地址可用性的指示信息;An obtaining module, configured to obtain indication information about the availability of the IPv4 address;
    确定模块,用于根据所述设备标识确定所述网络节点是否为合法节点;a determining module, configured to determine, according to the device identifier, whether the network node is a legal node;
    发送模块,用于在所述确定模块确定所述网络节点为合法节点时,向所述网络节点发送域证书和所述指示信息。And a sending module, configured to send the domain certificate and the indication information to the network node when the determining module determines that the network node is a legal node.
  23. 根据权利要求22所述的通信装置,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication device according to claim 22, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址中的每一位是由所述网络节点根据所述设备标识进行哈希运算生成的;或,Each bit of the IPv4 address is generated by the network node performing a hash operation according to the device identifier; or
    所述IPv4地址中的每一位是由所述网络节点根据所述网络节点上配置的接口的介质访问控制MAC地址进行哈希运算生成的;或,Each bit of the IPv4 address is generated by the network node performing a hash operation according to a medium access control MAC address of an interface configured on the network node; or
    所述IPv4地址中的每一位是由所述网络节点随机生成的。Each bit of the IPv4 address is randomly generated by the network node.
  24. 根据权利要求22所述的通信装置,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication device according to claim 22, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址的前M位是由所述网络节点根据所属的自组织域的域标识ID进行哈希运算生成的,所述IPv4地址的后32-M位是由所述网络节点根据所述设备标识或所述网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或, The first M bits of the IPv4 address are generated by the network node performing a hash operation according to the domain identifier ID of the associated self-organizing domain, and the last 32-M bits of the IPv4 address are determined by the network node according to the If the device identifier or the MAC address of the interface configured on the network node is hashed, M is a positive integer; or,
    所述IPv4地址的前N位是由所述网络节点根据所属的自组织域的域ID进行哈希运算生成的,所述IPv4地址的后32-N位是由所述网络节点随机生成的,N为正整数。The first N bits of the IPv4 address are generated by the network node performing a hash operation according to the domain ID of the associated self-organizing domain, and the last 32-N bits of the IPv4 address are randomly generated by the network node. N is a positive integer.
  25. 根据权利要求22所述的通信装置,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication device according to claim 22, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址的前M位是所述网络节点根据专用IPv4地址的前M位生成的,所述IPv4地址的后32-M位是所述网络节点根据所述设备标识或所述网络节点上配置的接口的MAC地址进行哈希运算生成的,M为正整数;或,The first M bits of the IPv4 address are generated by the network node according to the first M bits of the dedicated IPv4 address, and the last 32-M bits of the IPv4 address are the network node according to the device identifier or the network node. If the MAC address of the configured interface is hashed, M is a positive integer; or,
    所述IPv4地址的前N位是所述网络节点根据专用IPv4地址的前N位生成的,所述IPv4地址的后32-N位是所述网络节点随机生成的,N为正整数。The first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address, and the last 32-N bits of the IPv4 address are randomly generated by the network node, and N is a positive integer.
  26. 根据权利要求22所述的通信装置,其特征在于,所述IPv4地址是由所述网络节点自动生成的,包括:The communication device according to claim 22, wherein the IPv4 address is automatically generated by the network node, and includes:
    所述IPv4地址的前M位是所述网络节点根据专用IPv4地址的前M位生成的,所述IPv4地址的后32-M位中的前L位是所述网络节点根据所属的自组织域的域ID进行哈希运算生成的,所述IPv4地址的后32-M位中的后32-M-L位是所述网络节点根据所述设备标识或所述网络节点上配置的接口的MAC地址进行哈希运算生成的,M,L为正整数;或,The first M bits of the IPv4 address are generated by the network node according to the first M bits of the private IPv4 address, and the first L bits of the last 32-M bits of the IPv4 address are the self-organizing domain of the network node according to the The domain ID is hashed, and the last 32-ML bits in the last 32-M bits of the IPv4 address are performed by the network node according to the device identifier or the MAC address of the interface configured on the network node. Generated by hash operation, M, L are positive integers; or,
    所述IPv4地址的前N位是所述网络节点根据专用IPv4地址的前N位生成的,所述IPv4地址的后32-N位中的前L位是所述网络节点根据所属的自组织域的域ID进行哈希运算生成的,所述网络节点的IPv4地址的后32-N位中的后32-N-L位是所述网络节点随机生成的,N,L为正整数。The first N bits of the IPv4 address are generated by the network node according to the first N bits of the dedicated IPv4 address, and the first L bits of the last 32-N bits of the IPv4 address are the self-organizing domain of the network node according to the The domain ID is hashed, and the last 32-NL bits in the last 32-N bits of the IPv4 address of the network node are randomly generated by the network node, and N and L are positive integers.
  27. 根据权利要求22至26中任一项所述的通信装置,其特征在于,所述获取模块具体用于:The communication device according to any one of claims 22 to 26, wherein the acquisition module is specifically configured to:
    确定所述IPv4地址是否可用;Determining whether the IPv4 address is available;
    根据确定所述IPv4是否可用的结果确定所述指示信息。The indication information is determined according to a result of determining whether the IPv4 is available.
  28. 根据权利要求27所述的通信装置,其特征在于,所述获取模块具体用于:The communication device according to claim 27, wherein the obtaining module is specifically configured to:
    在确定所述IPv4地址可用时,确定所述指示信息指示所述网络节点的IPv4地址可用;或,When determining that the IPv4 address is available, determining that the indication information indicates that an IPv4 address of the network node is available; or
    在确定所述IPv4地址不可用时,确定所述指示信息包括IPv4地址增量 信息或可用IPv4地址。When it is determined that the IPv4 address is unavailable, determining that the indication information includes an IPv4 address increment Information or available IPv4 address.
  29. 根据权利要求22至26中任一项所述的通信装置,其特征在于,所述发送模块还用于:The communication device according to any one of claims 22 to 26, wherein the transmitting module is further configured to:
    向冲突检测服务器发送所述IPv4地址;Sending the IPv4 address to the conflict detection server;
    其中,所述获取模块具体用于:The obtaining module is specifically configured to:
    接收所述冲突检测服务器发送的所述指示信息,所述指示信息指示所述IPv4地址可用,或,所述指示信息包括IPv4地址增量信息或可用IPv4地址;Receiving the indication information sent by the conflict detection server, where the indication information indicates that the IPv4 address is available, or the indication information includes an IPv4 address increment information or an available IPv4 address;
  30. 根据权利要求29所述的通信装置,其特征在于,所述发送模块具体用于:The communication device according to claim 29, wherein the sending module is specifically configured to:
    向所述冲突检测服务器发送所述IPv4地址和所述设备标识。Sending the IPv4 address and the device identifier to the conflict detection server.
  31. 一种自组织网络中的通信装置,其特征在于,所述通信装置包括:A communication device in a self-organizing network, characterized in that the communication device comprises:
    接收模块,用于接收登记节点发送的IPv4地址;a receiving module, configured to receive an IPv4 address sent by the registration node;
    确定模块,用于确定所述IPv4地址是否可用。A determining module is configured to determine whether the IPv4 address is available.
  32. 根据权利要求31所述的通信装置,其特征在于,所述IPv4地址是由于网络节点自动生成的。The communication device of claim 31 wherein said IPv4 address is automatically generated by a network node.
  33. 根据权利要求32所述的通信装置,其特征在于,所述接收模块具体用于:The communication device according to claim 32, wherein the receiving module is specifically configured to:
    接收所述登记节点发送的所述IPv4地址和与所述网络节点相对应的设备标识。Receiving the IPv4 address sent by the registration node and a device identifier corresponding to the network node.
  34. 根据权利要求31至33中任一项所述的通信装置,其特征在于,所述通信装置还包括:The communication device according to any one of claims 31 to 33, wherein the communication device further comprises:
    第一发送模块,用于向所述登记节点发送第一冲突检测答复消息,所述第一冲突检测答复消息用于指示所述IPv4地址的可用性;a first sending module, configured to send a first conflict detection reply message to the registration node, where the first conflict detection reply message is used to indicate availability of the IPv4 address;
    其中,在所述确定模块确定所述IPv4地址可用时,所述第一冲突检测答复消息指示所述IPv4地址可用;或,The first conflict detection reply message indicates that the IPv4 address is available when the determining module determines that the IPv4 address is available; or
    在所述确定模块确定所述IPv4地址不可用时,所述第一冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the determining module determines that the IPv4 address is unavailable, the first conflict detection information includes IPv4 address increment information or an available IPv4 address.
  35. 根据权利要求32或33所述的通信装置,其特征在于,所述通信装置还包括:The communication device according to claim 32 or 33, wherein the communication device further comprises:
    第二发送模块,用于向所述网络节点发送第二冲突检测答复消息,所述第二冲突检测答复消息指示所述IPv4的可用性; a second sending module, configured to send a second conflict detection reply message to the network node, where the second conflict detection reply message indicates availability of the IPv4;
    其中,在所述确定模块确定所述IPv4地址可用时,所述第二冲突检测答复消息指示所述IPv4地址可用;或,The second conflict detection reply message indicates that the IPv4 address is available when the determining module determines that the IPv4 address is available; or
    在所述确定模块确定所述IPv4地址不可用时,所述第二冲突检测信息包括IPv4地址增量信息或可用IPv4地址。When the determining module determines that the IPv4 address is unavailable, the second conflict detection information includes IPv4 address increment information or an available IPv4 address.
  36. 一种自组织网络中的通信装置,其特征在于,所述通信装置包括:A communication device in a self-organizing network, characterized in that the communication device comprises:
    地址生成模块,用于自动生成IPv4地址;An address generation module, configured to automatically generate an IPv4 address;
    发送模块,用于向登记节点发送邻接发现AD消息,所述AD消息携带所述通信装置的的设备标识和所述IPv4地址;a sending module, configured to send a neighbor discovery AD message to the registration node, where the AD message carries a device identifier of the communication device and the IPv4 address;
    接收模块,用于接收域证书和所述IPv4地址可用性的指示信息,所述域证书是由所述登记节点发送的;a receiving module, configured to receive indication information about a domain certificate and the availability of the IPv4 address, where the domain certificate is sent by the registration node;
    连接建立模块,用于根据所述接收模块接收到的所述域证书和所述指示信息与所述登记节点建立自组织控制平面ACP。The connection establishing module is configured to establish an ad hoc control plane ACP with the registration node according to the domain certificate and the indication information received by the receiving module.
  37. 根据权利要求36所述的通信装置,其特征在于,所述地址生成模块具体用于:The communication device according to claim 36, wherein the address generation module is specifically configured to:
    根据所述设备标识进行哈希运算生成所述IPv4地址中的每一位;或,Performing a hash operation according to the device identifier to generate each bit in the IPv4 address; or,
    根据配置的接口的介质访问控制MAC地址进行哈希运算生成所述IPv4地址中的每一位;或,Performing a hash operation according to the media access control MAC address of the configured interface to generate each bit in the IPv4 address; or,
    随机生成所述IPv4地址中的每一位。Each bit in the IPv4 address is randomly generated.
  38. 根据权利要求36所述的通信装置,其特征在于,所述地址生成模块具体用于:The communication device according to claim 36, wherein the address generation module is specifically configured to:
    根据所属的自组织域的域标识ID进行哈希运算生成所述IPv4地址的前M位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位,M为正整数;或,Performing a hash operation according to the domain identifier ID of the associated self-organizing domain to generate the first M-bit of the IPv4 address, and performing a hash operation according to the device identifier or the configured MAC address of the interface to generate the last 32-M of the IPv4 address. Bit, M is a positive integer; or,
    根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的前N位,随机生成所述IPv4地址的后32-N位,N为正整数。Performing a hash operation according to the domain ID of the associated self-organizing domain to generate the first N bits of the IPv4 address, and randomly generating the last 32-N bits of the IPv4 address, where N is a positive integer.
  39. 根据权利要求36所述的通信装置,其特征在于,所述地址生成模块具体用于:The communication device according to claim 36, wherein the address generation module is specifically configured to:
    根据专用IPv4地址的前M位生成所述IPv4地址的前M位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位,M为正整数;或,Generating the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, performing a hash operation according to the device identifier or the MAC address of the configured interface to generate the last 32-M bits of the IPv4 address, where M is a positive integer ;or,
    根据专用IPv4地址的前N位生成所述IPv4地址的前N位,随机生成所 述IPv4地址的后32-N位,N为正整数。Generating the first N bits of the IPv4 address according to the first N bits of the private IPv4 address, and randomly generating the The last 32-N bits of the IPv4 address, N is a positive integer.
  40. 根据权利要求36所述的通信装置,其特征在于,所述地址生成模块具体用于:The communication device according to claim 36, wherein the address generation module is specifically configured to:
    根据专用IPv4地址的前M位生成所述IPv4地址的前M位,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的后32-M位中的前L位,根据所述设备标识或配置的接口的MAC地址进行哈希运算生成所述IPv4地址的后32-M位中的后32-M-L位,M,L为正整数;或,Generating the first M bits of the IPv4 address according to the first M bits of the dedicated IPv4 address, and performing a hash operation according to the domain ID of the associated self-organizing domain to generate the first L bits in the last 32-M bits of the IPv4 address, according to the The MAC address of the device identifier or the configured interface is hashed to generate the last 32-ML bits in the last 32-M bits of the IPv4 address, where M and L are positive integers; or
    根据专用IPv4地址的前N位生成所述IPv4地址的前N位,根据所属的自组织域的域ID进行哈希运算生成所述IPv4地址的后32-N位中的前L位,随机生成所述IPv4地址的后32-N位中的后32-N-L位,N,L为正整数。Generating the first N bits of the IPv4 address according to the first N bits of the private IPv4 address, performing a hash operation according to the domain ID of the associated self-organizing domain to generate the first L bits in the last 32-N bits of the IPv4 address, and randomly generating The last 32-NL bits of the last 32-N bits of the IPv4 address, N, L are positive integers.
  41. 根据权利要求36至40中任一项所述的通信装置,其特征在于,所述接收模块接收的所述指示信息指示所述IPv4地址可用;或,The communication device according to any one of claims 36 to 40, wherein the indication information received by the receiving module indicates that the IPv4 address is available; or
    所述接收模块接收的所述指示信息包括IPv4地址增量信息或可用IPv4地址。The indication information received by the receiving module includes an IPv4 address increment information or an available IPv4 address.
  42. 根据权利要求36至41中任一项所述的通信装置,其特征在于,所述接收模块接收的所述IPv4可用性指示信息是由所述登记节点发送的;或,所述接收模块接收的所述IPv4可用性指示信息是由冲突检测服务器发送的。The communication device according to any one of claims 36 to 41, wherein the IPv4 availability indication information received by the receiving module is sent by the registration node; or the receiving module receives The IPv4 availability indication information is sent by the conflict detection server.
  43. 一种自组织网络系统,其特征在于,包括:权利要求22至30中任一项所述的通信装置和权利要求36至42中任一项所述的通信装置。A self-organizing network system, comprising: the communication device according to any one of claims 22 to 30, and the communication device according to any one of claims 36 to 42.
  44. 一种自组织网络系统,其特征在于,包括:权利要求22至30中任一项所述的通信装置、权利要求31至35中任一项所述的通信装置和权利要求36至40中任一项所述的通信装置。 A self-organizing network system, comprising: the communication device according to any one of claims 22 to 30, the communication device according to any one of claims 31 to 35, and any one of claims 36 to 40 A communication device as described.
PCT/CN2015/084383 2015-07-17 2015-07-17 Communication method, apparatus and system WO2017011947A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2015/084383 WO2017011947A1 (en) 2015-07-17 2015-07-17 Communication method, apparatus and system
CN201580062641.2A CN107113295B (en) 2015-07-17 2015-07-17 Communication method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2015/084383 WO2017011947A1 (en) 2015-07-17 2015-07-17 Communication method, apparatus and system

Publications (1)

Publication Number Publication Date
WO2017011947A1 true WO2017011947A1 (en) 2017-01-26

Family

ID=57833479

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/084383 WO2017011947A1 (en) 2015-07-17 2015-07-17 Communication method, apparatus and system

Country Status (2)

Country Link
CN (1) CN107113295B (en)
WO (1) WO2017011947A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102001941B1 (en) 2018-02-05 2019-07-19 효성중공업 주식회사 Connecting structure of switching module

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039262A (en) * 2007-01-24 2007-09-19 中国科学院计算机网络信息中心 Half-covered self-organizing dynamic multicast routing method
CN101938500A (en) * 2010-09-28 2011-01-05 中国人民解放军信息工程大学 Method and system for verifying source address
CN101951415A (en) * 2010-08-30 2011-01-19 清华大学 Method of increasing safety of address conflict detection process

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
GB2415576B (en) * 2004-06-25 2007-05-23 Motorola Inc Wireless communications network and method of determining adjacency of sites in a wireless communications network
CN101600156B (en) * 2009-06-03 2012-02-22 南京邮电大学 Auto-allocation method of addresses of mobile ad hoc networks
US9130837B2 (en) * 2012-05-22 2015-09-08 Cisco Technology, Inc. System and method for enabling unconfigured devices to join an autonomic network in a secure manner

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101039262A (en) * 2007-01-24 2007-09-19 中国科学院计算机网络信息中心 Half-covered self-organizing dynamic multicast routing method
CN101951415A (en) * 2010-08-30 2011-01-19 清华大学 Method of increasing safety of address conflict detection process
CN101938500A (en) * 2010-09-28 2011-01-05 中国人民解放军信息工程大学 Method and system for verifying source address

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
M. BEHRINGER, ED ET AL., AN AUTONOMIC CONTROL PLANE DRAFT-BEHRINGER-ANIMA-AUTONOMIC-CONTROL-PLANE-03, 30 June 2015 (2015-06-30) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102001941B1 (en) 2018-02-05 2019-07-19 효성중공업 주식회사 Connecting structure of switching module

Also Published As

Publication number Publication date
CN107113295A (en) 2017-08-29
CN107113295B (en) 2020-02-14

Similar Documents

Publication Publication Date Title
US10505908B2 (en) System and method for automatic wireless connection between a portable terminal and a digital device
JP6355705B2 (en) System and method for accessing a network
CN107580768B (en) Message transmission method, device and system
US9451643B2 (en) System and method for a multiple IP interface control protocol
US9350814B2 (en) Internet protocol connectivity over a service-oriented architecture bus
US9055430B2 (en) Rapid local address assignment for wireless communication networks
CN108886538B (en) Method and apparatus for configuring M2M device
US9008041B2 (en) Processing method supporting handover, communication apparatus, and communication system
US20160315859A1 (en) Data link interface internet protocol (ip) address generation
US11153207B2 (en) Data link layer-based communication method, device, and system
JP5551805B2 (en) Method and apparatus for accessing the Internet
CN112449752A (en) IPv6 address configuration method and routing equipment
WO2018006684A1 (en) Message processing method and device, and router
WO2017011947A1 (en) Communication method, apparatus and system
WO2017166038A1 (en) Communication method and terminal
CN102377835B (en) Communication method and device for network element group network

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: 15898503

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: 15898503

Country of ref document: EP

Kind code of ref document: A1