CN115412487A - Communication method, device, equipment and computer readable storage medium - Google Patents

Communication method, device, equipment and computer readable storage medium Download PDF

Info

Publication number
CN115412487A
CN115412487A CN202211065054.7A CN202211065054A CN115412487A CN 115412487 A CN115412487 A CN 115412487A CN 202211065054 A CN202211065054 A CN 202211065054A CN 115412487 A CN115412487 A CN 115412487A
Authority
CN
China
Prior art keywords
node device
address
routing table
table entry
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211065054.7A
Other languages
Chinese (zh)
Inventor
王磊
邓敬贤
胡剑锋
张国松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Core Semiconductor Technology Beijing Co ltd
Original Assignee
Core Semiconductor Technology Beijing Co ltd
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 Core Semiconductor Technology Beijing Co ltd filed Critical Core Semiconductor Technology Beijing Co ltd
Priority to CN202211065054.7A priority Critical patent/CN115412487A/en
Publication of CN115412487A publication Critical patent/CN115412487A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines
    • H04B3/544Setting up communications; Call and signalling arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

A communication method, apparatus, device and computer-readable storage medium are disclosed. Determining a destination message, wherein the destination message comprises a destination address, further determining a node device address corresponding to the destination address in a routing table entry, determining a next hop node device address according to a path of the node device address corresponding to the destination address, and sending the destination message to the next hop node device. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the communication node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.

Description

Communication method, device, equipment and computer readable storage medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a communication method, apparatus, device, and computer readable storage medium.
Background
The broadband power line carrier communication network is a communication network which takes a power line as a communication medium and realizes the aggregation, transmission and interaction of the power utilization information of low-voltage power users.
In the prior art, when node devices communicate with each other in a broadband power line carrier communication system, the node devices need to send messages to a central coordinator, and the central coordinator sends the messages to a target node device.
Disclosure of Invention
In view of this, embodiments of the present invention provide a communication method, an apparatus, a device and a computer-readable storage medium, so as to reduce communication pressure of a central coordinator, reduce routing hops of communication node devices, optimize a communication flow and improve communication efficiency.
In a first aspect, an embodiment of the present invention provides a communication method, which is applicable to a node device in a broadband power line carrier communication system, where the broadband power line carrier communication system includes a plurality of node devices, and the method includes:
determining a target message, wherein the target message comprises a destination address;
determining a node device address corresponding to the destination address in a routing table entry, wherein the routing table entry comprises at least one path of the node device address;
determining the address of the next hop node equipment according to the path of the node equipment address corresponding to the destination address; and
and sending the target message to the next hop node equipment.
In some embodiments, the determining the target packet specifically includes:
and generating the target message according to the destination address.
In some embodiments, the determining the target packet specifically includes:
and receiving the target message.
In some embodiments, in response to that the current node device is a central coordinator, the determining, in the routing table entry, the node device address corresponding to the destination address specifically is:
and determining a node device address corresponding to the destination address in a first routing table entry, wherein the first routing table entry comprises a path of at least one lower-level node device address.
In some embodiments, in response to that the current node device is the proxy coordinator, the determining, in the routing table entry, the node device address corresponding to the destination address specifically is:
and determining a node device address corresponding to the destination address in a second routing table entry, wherein the second routing table entry comprises a superior node device address and a path of at least one inferior node device address.
In some embodiments, in response to that the current node device is a site device, the determining, in the routing table entry, a node device address corresponding to the destination address specifically includes:
and determining the node equipment address corresponding to the destination address in a third routing table entry, wherein the third routing table entry comprises a path of a superior node equipment address.
In some embodiments, the method further comprises:
in response to that the routing table entry does not include the node device address corresponding to the destination address, determining a superior node device address corresponding to the current node device in the routing table entry; and
and sending the target message to the superior node equipment.
In a second aspect, an embodiment of the present invention provides a communication apparatus, where the communication apparatus includes:
a message determining unit, configured to determine a target message, where the target message includes a destination address;
an address query unit, configured to determine a node device address corresponding to the destination address in a routing table entry, where the routing table entry includes a path of at least one node device address;
a first address determining unit, configured to determine a next hop node device address according to a path of a node device address corresponding to the destination address; and
and the message sending unit is used for sending the target message to the next hop node equipment.
In a third aspect, embodiments of the present invention provide a computer-readable storage medium on which computer program instructions are stored, which when executed by a processor implement the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention provides a communication device, where the communication device includes:
the communication module is used for communication among different node devices; and
a memory for storing one or more computer program instructions, and a processor, wherein the one or more computer program instructions are executed by the processor to implement the method according to the first aspect.
The technical scheme of the embodiment of the invention determines the node equipment address corresponding to the destination address in the routing table entry by determining the target message, determines the next hop node equipment address according to the path of the node equipment address corresponding to the destination address, and sends the target message to the next hop node equipment. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.
Drawings
The above and other objects, features and advantages of the present invention will become more apparent from the following description of the embodiments of the present invention with reference to the accompanying drawings, in which:
fig. 1 is a schematic diagram of a broadband power line carrier communication system of an embodiment of the present invention;
fig. 2 is a schematic diagram of a protocol stack of a broadband power line carrier communication system of an embodiment of the present invention;
fig. 3 is a flowchart of a node device communication method in a broadband power line carrier communication system in the prior art;
fig. 4 is a flowchart of a specific communication method of a node device in a broadband power line carrier communication system according to an embodiment of the present invention;
FIG. 5 is a diagram of a first routing table entry generated by the central coordinator CCO according to one embodiment of the present invention;
FIG. 6 is a schematic diagram of a first routing table entry generated by the central coordinator CCO according to another embodiment of the present invention;
FIG. 7 is a diagram illustrating a second routing table entry generated by the proxy coordinator PCO1 according to an embodiment of the present invention;
FIG. 8 is a diagram of a second routing table entry generated by the proxy coordinator PCO2 according to an embodiment of the present invention;
FIG. 9 is a diagram illustrating a second routing table entry generated by the proxy coordinator PCO1 according to another embodiment of the present invention;
FIG. 10 is a schematic diagram of a second routing table entry generated by the proxy coordinator PCO2 according to another embodiment of the present invention;
fig. 11 is a schematic diagram of a third routing table entry generated by station device STA1 according to an embodiment of the present invention
Fig. 12 is a flowchart of a communication method of a node device in a broadband power line carrier communication system according to an embodiment of the present invention;
fig. 13 is a flowchart of a communication apparatus of an embodiment of the present invention;
fig. 14 is a schematic diagram of a communication device of an embodiment of the present invention.
Detailed Description
The present invention will be described below based on examples, but the present invention is not limited to only these examples. In the following detailed description of the present invention, certain specific details are set forth. It will be apparent to one skilled in the art that the present invention may be practiced without these specific details. Well-known methods, procedures, components and circuits have not been described in detail so as not to obscure the present invention.
Further, those of ordinary skill in the art will appreciate that the drawings provided herein are for illustrative purposes and are not necessarily drawn to scale.
Unless the context clearly requires otherwise, throughout the description, the words "comprise", "comprising", and the like are to be construed in an inclusive sense as opposed to an exclusive or exhaustive sense; that is, what is meant is "including, but not limited to".
In the description of the present invention, it is to be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Fig. 1 is a schematic diagram of a broadband power line carrier communication system according to an embodiment of the present invention. As shown in fig. 1, a broadband power line carrier communication system according to an embodiment of the present invention includes a plurality of node devices including a Central Coordinator (CCO), a Proxy Coordinator (PCO), and a Station device (Station, STA). In the present embodiment, the proxy coordinator includes PCO1, PCO2, and the station devices include STA1, STA2, STA3, STA4, STA5, STA6, STA7, STA8, and STA9.
Furthermore, the broadband power line carrier communication system takes the CCO as the center and takes the PCO as the relay agent, and all the STAs are connected to form a multi-level associated tree-shaped communication network, so that networking of the broadband power line carrier communication system can be realized.
Specifically, the central coordinator CCO (e.g., a concentrator local communication unit) is a master node in the broadband power line carrier communication system, and is used for networking control, network maintenance, and the like.
The proxy coordinator PCO (e.g. smart meter, I-type collector communication unit, broadband carrier II-type collector) is used for communication between the central coordinator and the site devices, or for data forwarding and the like between the site devices.
The station equipment STA (such as a smart meter, an I-type collector communication unit and a broadband carrier II-type collector) is a slave node in the broadband power line carrier communication system.
In some embodiments, each node device in the broadband power line carrier communication system maintains a routing table entry, and performs communication based on the maintained routing table entry. And according to different types of the node equipment, the corresponding routing table entries are different. When the node device is a central coordinator CCO, because there is no superior node device, the routing table entry maintained by the node device is a first routing table entry, and the first routing table entry includes a path of at least one address of a subordinate node device. When the node device is a proxy coordinator PCO, since the node device has both an upper node device and a lower node device, the routing table entry maintained by the node device is a second routing table entry, and the second routing table entry includes a path of an address of the upper node device and an address of at least one lower node device. When the node device is a station device STA, since there is no lower level node device, the routing table maintained by the node device is a third routing table, where the third routing table includes a path of an address of the upper level node device.
In this embodiment, a communication connection between a plurality of node devices in a broadband power line carrier communication system via a power line is taken as an example for description.
The method comprises the steps of determining a target message which comprises a destination address, further determining a node equipment address corresponding to the destination address in a routing table entry, determining a next hop node equipment address according to a path of the node equipment address corresponding to the destination address, and sending the target message to the next hop node equipment. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the communication node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.
Further, fig. 2 is a schematic diagram of a protocol stack of the broadband power line carrier communication system according to an embodiment of the present invention. As shown in fig. 2, a protocol stack of the broadband power line carrier communication system includes an application layer a, a data link layer b, and a physical layer c. In this embodiment, the data link layer b includes a network management sublayer b1 and a Medium Access Control sublayer b2, and the Medium Access Control sublayer b2 is a MAC sublayer (Medium Access Control).
In this embodiment, the application layer a is used for communication and service data interaction between the local communication unit and the communication unit, and data transmission is completed through the data link layer b. The data link layer b is used for data transmission. The network management sublayer b1 is used for networking, network maintenance, routing management and convergence and distribution of application layer messages of the broadband power line carrier communication system. The mac sublayer b2 competes for the physical channel by two channel Access mechanisms, CSMA/CA (Carrier Sense Multiple Access with Collision avoidance) and TDMA (Time Division Multiple Access), thereby realizing reliable transmission of data packets. The physical layer c is used for encoding and modulating the data message of the media access control sublayer b2 into a broadband carrier signal or wireless information, further sending the broadband carrier signal or the wireless information to a power line medium or a wireless transmission medium, and simultaneously receiving the broadband carrier signal of the power line medium, demodulating the broadband carrier signal into the data message, and sending the data message to the media access control sublayer b2 for processing.
The embodiment of the invention determines the address of the node equipment corresponding to the destination address in the routing table entry by determining the target message, wherein the target message comprises the destination address, determines the address of the node equipment of the next hop according to the path of the address of the node equipment corresponding to the destination address, and sends the target message to the node equipment of the next hop. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the communication node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.
Further, fig. 3 is a flowchart of a node device communication method in a broadband power line carrier communication system in the prior art. As shown in fig. 3, a node device communication method in a broadband power line carrier communication system in the prior art includes the following steps:
and step S100, the node equipment sends a message to the central coordinator.
In the prior art, node devices in a broadband power line carrier communication network do not have a direct communication function, and when the node devices communicate with each other, a message needs to be sent to a central coordinator CCO, for example, when a node device STA4 communicates with a node device STA5, the node device STA4 sends the message to the central coordinator CCO through a proxy coordinator PCO 1.
And step S110, the central coordinator sends the message to the target node equipment.
In the prior art, the central coordinator CCO sends a packet to the target node device according to the service information included in the packet in response to receiving the packet, for example, when the node device STA4 communicates with the node device STA5, the central coordinator CCO responds to receiving the packet sent by the node device STA4 through the proxy coordinator PCO1, and the central coordinator CCO forwards the packet to the node device STA5 through the proxy coordinator PCO 1.
Further, when a plurality of node devices communicate with each other, the CCO needs to send a packet to the plurality of node devices according to service information in the plurality of packets, which results in a higher communication pressure of the CCO, and a higher number of hops in routing during communication between the node devices, which results in a lower communication efficiency. Therefore, the invention aims at the situation, the node equipment determines the address of the next hop node equipment according to the routing table entry, and sends the target message to the next hop node equipment, thereby reducing the communication pressure of the central coordinator, reducing the routing hop count of the communication node equipment, optimizing the communication flow and improving the communication efficiency.
Further, fig. 4 is a flowchart of a specific communication method of a node device in the broadband power line carrier communication system according to an embodiment of the present invention. As shown in fig. 4, a specific communication method of a node device in a broadband power line carrier communication system according to an embodiment of the present invention includes the following steps:
and step S210, determining a target message.
In this embodiment, after networking of the broadband power line carrier communication system is completed, the current node device determines a target packet, where the target packet includes a destination address, and the destination address is an MAC address of the target node device.
In an optional implementation manner, in response to that the current node device is a data sender, the target packet is determined to be a target packet generated according to the destination address. Specifically, when the node device has a need to send a packet, for example, when data needs to be reported to a higher node, the target packet is generated according to a destination address.
In another optional implementation manner, in response to that the current node device is a node device in the data transmission path, when receiving a packet sent by another node device and determining that a destination address of the packet is not the current node device, determining that the received packet sent by the other node device is a target packet.
Step S220, determine whether the routing table entry includes the node device address corresponding to the destination address.
In this embodiment, the current node device obtains a destination address in the target packet, and detects whether a node device address corresponding to the destination address exists in the routing table entry.
And each node device generates a corresponding routing table entry when networking. Specifically, the current node device sends beacon requests in all channels respectively, where the beacon requests are used to search for a central coordinator CCO and a proxy coordinator PCO in a network, and then the central coordinator CCO and the proxy coordinator PCO respond to the beacon requests after receiving the beacon requests. Further, the current node device records the responses received on the channels, selects the central coordinator CCO or the proxy coordinator PCO with better communication quality as its own superior node device, and sends a network access request to it. After receiving the network access request, the superior node device takes the node device as a subordinate node of the superior node device. Further, the central coordinator CCO determines whether to approve network access according to the network establishment mode and the information of the current node device, and if so, sends network access approval information to the current node device, and the current node device successfully accesses the network. If not, the network access refusing information is sent to the current node equipment, and the current node equipment re-accesses the network according to the steps after receiving the network access refusing information until the network is successfully accessed. After the broadband power line carrier communication system completes networking, the node equipment in the broadband power line carrier communication system generates a routing table entry according to the networking node equipment.
The method comprises the steps that a Central Coordinator (CCO) generates a first routing table item, and the first routing table item comprises a path of at least one lower node equipment address.
In an optional implementation manner, the path is all node devices through which the current node reaches the lower node device. Taking the system shown in fig. 1 as an example, the first routing table entry generated by the central coordinator CCO is shown in fig. 5.
Specifically, the central coordinator CCO generates a first routing entry according to the paths of all the node device addresses of the network, where the first routing entry includes a path of a proxy coordinator PCO1 address (CCO-PCO 1), a path of a proxy coordinator PCO2 address (CCO-PCO 1-PCO 2), a path of a proxy coordinator PCO3 address (CCO-PCO 1-PCO 3), a path of a station device STA1 address (CCO-STA 1), a path of a station device STA2 address (CCO-STA 2), a path of a station device STA3 address (CCO-STA 3), a path of a station device STA4 address (CCO-PCO 1-STA 4), a path of a station device STA5 address (CCO-PCO 1-STA 5), a path of a station device STA6 address (CCO-PCO 1-PCO2-STA 6), a path of a station device STA7 address (CCO-PCO 1-PCO2-STA 7), a path of a station device STA8 address (CCO-PCO 1-PCO3-STA 9-PCO STA 9).
In another optional implementation manner, the path is a first node device through which the current node reaches each lower node device, that is, a next-hop node device address. Taking the system shown in fig. 1 as an example, the first routing table entry generated by the central coordinator CCO is shown in fig. 6.
For example, when the next-stage node device is the proxy coordinator PCO2, the next-hop node device address of the central coordinator CCO is the proxy coordinator PCO1 address. For another example, when the next node device is the station device STA2, the next hop node device address of the central coordinator CCO is the station device STA2 address. For another example, when the next node device is the station device STA7, the next hop node device address of the central coordinator CCO is the proxy coordinator PCO1 address.
The proxy coordinator PCO generates a second routing table entry comprising a path of a superior node device address and at least one inferior node device address.
In an optional implementation manner, the path is all node devices through which the current node reaches the upper node device and the lower node device. Taking the system shown in fig. 1 as an example for explanation, the second routing table entry generated by the agent coordinator PCO1 is shown in fig. 7.
Specifically, the proxy coordinator PCO1 generates a second routing table entry according to a path of one upper node device address and all lower node device addresses, where the second routing table entry includes a path of a central coordinator CCO address (PCO 1-CCO), a path of a proxy coordinator PCO2 address (PCO 1-PCO 2), a path of a proxy coordinator PCO3 address (PCO 1-PCO 3), a path of a station device STA4 address (PCO 1-STA 4), and a path of a station device STA5 address (PCO 1-STA 5), a path of a station device STA6 address (PCO 1-PCO2-STA 6), a path of a station device STA7 address (PCO 1-PCO2-STA 7), a path of a station device STA8 address (PCO 1-PCO 3-8 STA), and a path of a station device STA9 address (PCO 1-PCO 3-9).
Further, the second routing table entry generated by the proxy coordinator PCO2 is shown in fig. 8. Specifically, the second routing table entry includes a path of a proxy coordinator PCO1 address (PCO 2-PCO 1), a path of a station device STA6 address (PCO 2-STA 6), and a path of a station device STA7 address (PCO 2-STA 7).
In another optional implementation manner, the path is a first node device through which the current node reaches each lower node device, that is, a next-hop node device address or a higher node device address. Taking the system shown in fig. 1 as an example for explanation, the second routing table entry generated by the proxy coordinator PCO1 is shown in fig. 9.
Specifically, for example, the upper node device is a central coordinator CCO, and the upper node device address of the proxy coordinator PCO1 is a central coordinator CCO address, and for example, when the lower node device is a proxy coordinator PCO2, the next hop node device address of the proxy coordinator PCO1 is a proxy coordinator PCO2 address. For another example, when the next node device is the station device STA4, the next hop node device address of the proxy coordinator PCO1 is the station device STA4 address. Also for example, when the next-stage node device is the station device STA7, the next-hop node device address of the proxy coordinator PCO1 is the proxy coordinator PCO2 address.
Further, the second routing table entry generated by the proxy coordinator PCO2 is shown in fig. 10. Specifically, for example, the upper node device is the proxy coordinator PCO1, and the upper node device address of the proxy coordinator PCO2 is the proxy coordinator PCO1 address, and for example, when the lower node device is the station device STA6, the next hop node device address of the proxy coordinator PCO2 is the station device STA6 address.
In this embodiment, the second routing table entry generated by the proxy coordinator PCO3 is similar to the implementation manners shown in fig. 8 and 10, and details of the present invention are not repeated here.
The station equipment STA generates a third routing table entry, wherein the third routing table entry comprises a path of an address of the superior node equipment.
In this embodiment, the path is an address at which the current node reaches the upper node device. Taking the system shown in fig. 1 as an example for explanation, the third routing table entry generated by the station device STA1 is shown in fig. 11. Specifically, the station device STA1 generates a third routing table entry according to a path of an address of a higher node device, where the third routing table entry includes that the higher node device is a central coordinator CCO, and the address of the higher node device of the station device STA1 is a central coordinator CCO address.
Further, the generation of the routing table entry by the station devices STA2 to STA9 is similar to the implementation manner shown in fig. 11, and the details of the present invention are not repeated here.
In an optional embodiment, if the current node device is a node device that does not access the network, after the current node device accesses the network, all higher-level node devices of the current node device add the path of the address of the current node device to the routing table entry. Specifically, the upper node device may be a proxy coordinator PCO, and the proxy coordinator PCO adds the path of the current node device to the second routing table entry of the proxy coordinator PCO. If the upper node device may be a central coordinator CCO, the central coordinator CCO adds the path of the current node device to the first routing entry of the central coordinator CCO.
In this embodiment, if the current node device routing table entry includes the node device address corresponding to the destination address, step S230 is executed. If the current node device routing table entry does not include the node device address corresponding to the destination address, step S260 is executed.
Step S230, determining the node device address corresponding to the destination address in the routing table entry.
In this embodiment, the node device address corresponding to the destination address is determined in the routing table entry of the current node device.
As described above, when the types of the node devices are different, the maintained routing table entries are also different, and the current node device determines the node device address corresponding to the destination address in the maintained routing table entries. That is, in response to the current node device being the central coordinator CCO, the node device address corresponding to the destination address is determined in the first routing table entry. And in response to the current node device being the proxy coordinator PCO, determining a node device address corresponding to the destination address in the second routing table entry. And in response to that the current node device is a station device STA, determining a node device address corresponding to the destination address in a third routing table entry.
For example, when the current node device is the central coordinator CCO and the central coordinator CCO communicates with the station device STA8, the station device STA8 corresponding to the MAC address of the station device STA8 is determined in the first routing table entry of the central coordinator CCO.
For example, when the current node device is the proxy coordinator PCO1 and the proxy coordinator PCO1 communicates with the station device STA8, the station device STA8 corresponding to the MAC address of the station device STA8 is determined in the second routing table entry of the proxy coordinator PCO 1.
For example, when the station device STA8 communicates with the proxy coordinator PCO3 in response to the current node device being the station device STA8, the proxy coordinator PCO3 corresponding to the MAC address of the proxy coordinator PCO3 is determined in the third routing table entry of the station device STA8.
Step S240, determining the next hop node device address according to the path of the node device address corresponding to the destination address.
In this embodiment, the current node device determines the address of the next-hop node device according to the path of the node device address corresponding to the destination address.
And step S250, sending the target message to the next hop node equipment.
In this embodiment, the current node device sends the target packet to the next-hop node device according to the address of the next-hop node device, and the current step is ended.
For example, assuming that the current node device is a central coordinator CCO and the destination address is STA8, the central coordinator CCO may determine, according to the routing table entry shown in fig. 5 or fig. 6, that the next-hop node device is an address corresponding to the PCO1, and then the central coordinator CCO sends the target packet to the proxy coordinator PCO 1.
For example, assuming that the current node device is the proxy coordinator PCO1 and the destination address is STA8, the proxy coordinator PCO1 may determine, according to the routing table entry shown in fig. 7 or fig. 9, that the next-hop node device is the address corresponding to the PCO3, and then the central coordinator CCO sends the target packet to the proxy coordinator PCO3.
Step S260, determining the address of the upper node device corresponding to the current node device in the routing table entry.
In this embodiment, in response to that the node device address corresponding to the destination address is not included in the routing table entry, the upper node device address corresponding to the current node device is determined in the routing table entry.
Step S270, the target message is sent to the upper node equipment.
In this embodiment, the current node device sends the target packet to the upper node device, and the current step is finished.
For example, assuming that the current node device is the station device STA4, and when the station device STA4 communicates with the station device STA6, in response to that the third routing table entry of the station device STA4 does not include the address of the station device STA6, the station device STA4 determines, in the third routing table entry, that the address of the upper node device is the address of the proxy coordinator PCO1, and further, the station device STA4 sends the target packet to the proxy coordinator PCO 1.
For example, assuming that the front node device is the proxy coordinator PCO1, and when the proxy coordinator PCO1 communicates with the station device STA3, in response to that the second routing table entry of the proxy coordinator PCO1 does not include the address of the station device STA3, the proxy coordinator PCO1 determines that the address of the upper node device is the central coordinator CCO in the second routing table entry, and further, the proxy coordinator PCO1 sends the target packet to the central coordinator CCO.
Further, after the current node device sends the target packet to the upper node device, and the upper node device receives the target packet, the steps S210 to S270 are executed until the target packet is sent to the target node device.
For example, assume that node device STA6 needs to send data to node device STA8. And for the node equipment STA6, generating a target message, wherein the target message comprises a destination address STA8, and if the destination address STA8 is not detected in a third routing table entry maintained by the node equipment STA6, sending the target message to the upper-level node equipment PCO2 of the node equipment. After receiving the target message, the node device PCO2 analyzes the target message to obtain the destination address STA8, and if the destination address STA8 is not detected in the second routing table entry maintained by the node device PCO2, sends the target message to the upper node device PCO1 thereof. After receiving the target message, the node device PCO1 analyzes the target message to obtain a destination address STA8, detects the destination address STA8 in a second routing table item maintained by the node device PCO1, determines that a next-stage node device corresponding to the destination address STA8 is a PCO3, and sends the target message to the next-stage node device PCO3. After receiving the target message, the node device PCO3 analyzes the target message to obtain a destination address STA8, detects the destination address STA8 in a second routing table maintained by the node device, determines that a next-stage node device corresponding to the destination address STA8 is the STA8, sends the target message to the node device STA8, and completes data transmission.
Thus, when the node device STA6 needs to transmit data to STA8, its transmission path is STA6-PCO2-PCO1-PCO3-STA8. In the data transmission in the prior art, the STA6 needs to send data to the CCO first and then send the data to the STA8 by the CCO, that is, the transmission path is the STA6-PCO2-PCO1-CCO-PCO1-PCO3-STA8. Therefore, according to the technical scheme of the embodiment of the invention, on one hand, the data transmission path can be reduced, the communication efficiency is improved, and meanwhile, the success rate of data transmission can be improved as the data transmission is likely to fail in each time. On the other hand, in some cases, data transmission can be finished without CCO, and the communication pressure of the central coordinator is relieved.
The method comprises the steps of determining a target message which comprises a destination address, further determining a node equipment address corresponding to the destination address in a routing table entry, determining a next hop node equipment address according to a path of the node equipment address corresponding to the destination address, and sending the target message to the next hop node equipment. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the communication node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.
Fig. 12 is a flowchart of a communication method of a node device in a broadband power line carrier communication system according to an embodiment of the present invention. As shown in fig. 12, a communication method of a node device in a broadband power line carrier communication system according to an embodiment of the present invention includes the following steps:
s200, determining a target message, wherein the target message comprises a destination address.
S300, determining a node device address corresponding to the destination address in a routing table entry, wherein the routing table entry comprises at least one path of the node device address.
S400, determining the address of the next hop node device according to the path of the node device address corresponding to the destination address.
S500, the target message is sent to the next hop node equipment.
In some embodiments, the determining the target packet specifically includes:
and generating the target message according to the destination address.
In some embodiments, the determining the target packet specifically includes:
and receiving the target message.
In some embodiments, in response to that the current node device is the central coordinator, the determining, in the routing table entry, the node device address corresponding to the destination address specifically includes:
and determining a node device address corresponding to the destination address in a first routing table entry, wherein the first routing table entry comprises a path of at least one subordinate node device address.
In some embodiments, in response to that the current node device is the proxy coordinator, the determining, in the routing table entry, the node device address corresponding to the destination address specifically is:
and determining a node device address corresponding to the destination address in a second routing table entry, wherein the second routing table entry comprises a superior node device address and a path of at least one inferior node device address.
In some embodiments, in response to that the current node device is a site device, the determining, in the routing table entry, a node device address corresponding to the destination address specifically includes:
and determining the node equipment address corresponding to the destination address in a third routing table entry, wherein the third routing table entry comprises a path of a superior node equipment address.
In some embodiments, the method further comprises:
in response to that the routing table entry does not include the node device address corresponding to the destination address, determining a superior node device address corresponding to the current node device in the routing table entry; and
and sending the target message to the superior node equipment.
The method comprises the steps of determining a target message which comprises a destination address, further determining a node equipment address corresponding to the destination address in a routing table entry, determining a next hop node equipment address according to a path of the node equipment address corresponding to the destination address, and sending the target message to the next hop node equipment. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the communication node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.
Fig. 13 is a flowchart of a communication apparatus according to an embodiment of the present invention. In the embodiment shown in fig. 13, the communication apparatus is applied to a node device in a broadband power line carrier communication system, and includes a packet determination unit 310, an address query unit 320, a first address determination unit 330, and a packet transmission unit 340. The message determining unit 310 is configured to determine a target message, where the target message includes a destination address. The address query unit 320 is configured to determine a node device address corresponding to the destination address in a routing table entry, where the routing table entry includes a path of at least one node device address. The first address determining unit 330 is configured to determine a next hop node device address according to a path of the node device address corresponding to the destination address. The message sending unit 340 is configured to send the target message to the next-hop node device.
In some embodiments, the communication device further comprises:
and the message generating unit is used for generating the target message according to the destination address.
In some embodiments, the communication device further comprises:
and the message receiving unit is used for receiving the target message.
In some embodiments, the communication device further comprises:
and the first address query unit is used for responding to the condition that the current node device is a central coordinator, and determining the node device address corresponding to the destination address in a first routing table entry, wherein the first routing table entry comprises a path of at least one lower-level node device address.
In some embodiments, the communication device further comprises:
and the second address query unit is used for responding to that the current node equipment is the proxy coordinator, and determining the node equipment address corresponding to the destination address in a second routing table item, wherein the second routing table item comprises a superior node equipment address and a path of at least one subordinate node equipment address.
In some embodiments, the communication device further comprises:
a third address query unit, configured to determine, in response to that the current node device is a site device, a node device address corresponding to the destination address in a third routing table entry, where the third routing table entry includes an address of a higher-level node device.
In some embodiments, the address lookup unit 320 is further configured to:
and in response to the fact that the node device address corresponding to the destination address is not included in the routing table entry, determining a superior node device address corresponding to the current node device in the routing table entry.
In some embodiments, the message sending unit 340 is further configured to:
and sending the target message to the superior node equipment.
The embodiment of the invention determines the address of the node equipment corresponding to the destination address in the routing table entry by determining the target message, wherein the target message comprises the destination address, determines the address of the node equipment of the next hop according to the path of the address of the node equipment corresponding to the destination address, and sends the target message to the node equipment of the next hop. Therefore, the address of the next hop node equipment can be determined in the routing table entry according to the target message, the communication pressure of the central coordinator is reduced, the routing hop count of the communication node equipment is reduced, the communication flow is optimized, and the communication efficiency is improved.
Fig. 14 is a schematic diagram of a communication device of an embodiment of the present invention. The communication device shown in fig. 14 may be a general-purpose data processing chip or apparatus. The data processing chip or device comprises a general purpose computer hardware structure including at least a processor 421 and a memory 422. The processor 421 and the memory 422 are connected by a bus 423. The memory 422 is adapted to store instructions or programs executable by the processor 421. Processor 421 may be a stand-alone microprocessor or a collection of one or more microprocessors. Thus, processor 421 implements the processing of data and the control of other devices by executing instructions stored by memory 422 to thereby perform the method flows of embodiments of the present invention as described above. The bus 423 connects the various components together and to a display controller 424 and a display device and input/output (I/O) device 425. Input/output (I/O) devices 425 may be a mouse, keyboard, modem, network interface, touch input device, motion sensing input device, printer, and other devices known in the art. Typically, the input/output devices 425 are connected to the system through input/output (I/O) controllers 426.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, a communication device or a computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may employ a computer program product embodied on one or more computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations of methods, communication devices, and computer program products according to embodiments of the application. It will be understood that each flow in the flow diagrams can be implemented by computer program instructions.
These computer program instructions may be stored in a computer-readable memory that can direct a computer or other programmable data processing chip or device to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows.
These computer program instructions may also be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing chip or apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing chip or apparatus, create means for implementing the functions specified in the flowchart flow or flows.
The above description is only a preferred embodiment of the present invention and is not configured to limit the present invention, and various modifications and variations of the present invention may occur to those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A communication method applied to a node device in a broadband power line carrier communication system including a plurality of node devices, the method comprising:
determining a target message, wherein the target message comprises a destination address;
determining a node device address corresponding to the destination address in a routing table entry, wherein the routing table entry comprises a path of at least one node device address;
determining the address of the next hop node equipment according to the path of the node equipment address corresponding to the destination address; and
and sending the target message to the next hop node equipment.
2. The method according to claim 1, wherein the determining the target packet specifically is:
and generating the target message according to the destination address.
3. The method according to claim 1, wherein the determining the target packet specifically is:
and receiving the target message.
4. The method according to claim 1, wherein, in response to the current node device being a central coordinator, the determining, in the routing table entry, the node device address corresponding to the destination address specifically is:
and determining a node device address corresponding to the destination address in a first routing table entry, wherein the first routing table entry comprises a path of at least one lower-level node device address.
5. The method according to claim 1, wherein, in response to the current node device being a proxy coordinator, the determining, in the routing table entry, the node device address corresponding to the destination address specifically is:
and determining a node device address corresponding to the destination address in a second routing table entry, wherein the second routing table entry comprises a superior node device address and a path of at least one inferior node device address.
6. The method according to claim 1, wherein, in response to the current node device being a site device, the determining, in the routing table entry, the node device address corresponding to the destination address specifically includes:
and determining the node equipment address corresponding to the destination address in a third routing table entry, wherein the third routing table entry comprises a path of a superior node equipment address.
7. The method of claim 1, further comprising:
in response to that the routing table entry does not include the node device address corresponding to the destination address, determining a superior node device address corresponding to the current node device in the routing table entry; and
and sending the target message to the superior node equipment.
8. A communication apparatus, characterized in that the communication apparatus comprises:
a message determining unit, configured to determine a target message, where the target message includes a destination address;
an address query unit, configured to determine, in a routing table entry, a node device address corresponding to the destination address, where the routing table entry includes a path of at least one node device address;
a first address determining unit, configured to determine a next hop node device address according to a path of a node device address corresponding to the destination address; and
and the message sending unit is used for sending the target message to the next hop node equipment.
9. A computer-readable storage medium on which computer program instructions are stored, which, when executed by a processor, implement the method of any one of claims 1-7.
10. A communication device, characterized in that the communication device comprises:
the communication module is used for communication among different node devices; and
a memory to store one or more computer program instructions, and a processor, wherein the one or more computer program instructions are executed by the processor to implement the method of any of claims 1-7.
CN202211065054.7A 2022-09-01 2022-09-01 Communication method, device, equipment and computer readable storage medium Pending CN115412487A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211065054.7A CN115412487A (en) 2022-09-01 2022-09-01 Communication method, device, equipment and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211065054.7A CN115412487A (en) 2022-09-01 2022-09-01 Communication method, device, equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN115412487A true CN115412487A (en) 2022-11-29

Family

ID=84163819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211065054.7A Pending CN115412487A (en) 2022-09-01 2022-09-01 Communication method, device, equipment and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN115412487A (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036792A1 (en) * 2007-09-21 2009-03-26 Greenpeak Technologies Compressed source routing
CN103312547A (en) * 2013-06-18 2013-09-18 华为技术有限公司 Communication method, communication device and communication system
CN106656799A (en) * 2017-02-14 2017-05-10 湖南基石通信技术有限公司 Message forwarding method and device based on wireless mesh network
CN111262787A (en) * 2020-03-17 2020-06-09 北京四季豆信息技术有限公司 Data transmission method and electronic equipment
CN113542099A (en) * 2021-07-21 2021-10-22 北京字跳网络技术有限公司 Data transmission method, device, electronic equipment, medium and product

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009036792A1 (en) * 2007-09-21 2009-03-26 Greenpeak Technologies Compressed source routing
CN103312547A (en) * 2013-06-18 2013-09-18 华为技术有限公司 Communication method, communication device and communication system
CN106656799A (en) * 2017-02-14 2017-05-10 湖南基石通信技术有限公司 Message forwarding method and device based on wireless mesh network
CN111262787A (en) * 2020-03-17 2020-06-09 北京四季豆信息技术有限公司 Data transmission method and electronic equipment
CN113542099A (en) * 2021-07-21 2021-10-22 北京字跳网络技术有限公司 Data transmission method, device, electronic equipment, medium and product

Similar Documents

Publication Publication Date Title
Shah et al. Congestion control algorithms in wireless sensor networks: Trends and opportunities
CN100493260C (en) Method and apparatus for allocating a channel to a wireless interface
CN110572187B (en) Networking method for broadband power line communication network
CN110661551B (en) Method for adaptively adjusting beacon period time slot number
CN109788444B (en) Node networking method applied to high-density multi-hop network
CN109068367B (en) Wireless token passing method, device, equipment and readable storage medium
WO2008083395A2 (en) Unknown destination traffic repetition
CN101373556A (en) Method for transmitting and receiving low pressure carrier wave centralized type network and apparatus thereof
CN103825834A (en) Method and network exchange device for adjusting flow load sharing in EVI
Havinal et al. Mecor: Minimal energy consumption with optimized routing in manet
Amuru et al. To send or not to send-learning MAC contention
CN110831006B (en) Ad hoc network system and data transmission method thereof
CN105049347A (en) Routing method of DTN (Delay Tolerant Network) based on social network task distribution model
CN114374721A (en) Power line and wireless communication fusion method and system for power internet of things
WO2022041914A1 (en) Power line communication method, device, and system
CN106411731B (en) Method and device for auto-negotiation LACP protocol reference system and reference port
Bo et al. An energy-efficient one-shot scheduling algorithm for wireless sensor networks
CN111262787B (en) Data transmission method and electronic equipment
CN110996266B (en) Multicast group data transmission method of ad hoc network system
CN115412487A (en) Communication method, device, equipment and computer readable storage medium
KR101238577B1 (en) Method and apparatus of selecting backoff counter in wireless mesh network having plural relay nodes and computer program product thereof
JP5673303B2 (en) Wireless terminal device, wireless system, and wireless communication method
CN110212941B (en) Event-driven heterogeneous node-based clustering method
Darabkh et al. A novel routing protocol for software defined radios
CN109617818B (en) Message forwarding method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination