WO2017041534A1 - 一种电力线网络通信的方法及装置、计算机存储介质 - Google Patents

一种电力线网络通信的方法及装置、计算机存储介质 Download PDF

Info

Publication number
WO2017041534A1
WO2017041534A1 PCT/CN2016/083971 CN2016083971W WO2017041534A1 WO 2017041534 A1 WO2017041534 A1 WO 2017041534A1 CN 2016083971 W CN2016083971 W CN 2016083971W WO 2017041534 A1 WO2017041534 A1 WO 2017041534A1
Authority
WO
WIPO (PCT)
Prior art keywords
fih
data
dtei
tei
ctei
Prior art date
Application number
PCT/CN2016/083971
Other languages
English (en)
French (fr)
Inventor
卜凡金
陈伟
常城
卿玉龙
Original Assignee
深圳市中兴微电子技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市中兴微电子技术有限公司 filed Critical 深圳市中兴微电子技术有限公司
Publication of WO2017041534A1 publication Critical patent/WO2017041534A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B3/00Line transmission systems
    • H04B3/54Systems for transmission via power distribution lines

Definitions

  • the present invention relates to power line communication (PLC) technology, and in particular, to a method and apparatus for power line network communication, and a computer storage medium.
  • PLC power line communication
  • broadband power line communication is one of the applications of the Internet of Things. Due to the advantages of having no infrastructure, such as rewiring, simple networking, low cost, high security, and easy implementation, more and more attention.
  • the communication protocol stack generally supported on the power line network node is shown in Figure 1.
  • the sender site will send data to be sent.
  • the Media Access Control Service Data Unit (MSDU) is handed over to the media access control through the aggregation layer or the network management layer ( The MAC, Media Access Control layer is processed and sent to the power line for transmission.
  • the receiving station After receiving the data from the channel, the receiving station recovers the MSDU through the MAC layer and sends it to the aggregation layer or the network management layer for processing.
  • each intermediate node needs to forward the MSDUs, that is, after the aggregation layer or network management layer of each intermediate node receives the MSDU sent by the MAC layer.
  • the MSDU needs to be parsed, and the destination MAC (DMAC, Destination Media Access Control) field is extracted, and then the routing table entry information of the DMAC corresponding node is obtained through the search algorithm.
  • DMAC Destination Media Access Control
  • the CCO sends broadcast messages to members of the entire network.
  • the PCO needs to broadcast broadcast messages to all child nodes in a broadcast manner. If there are multiple intermediate nodes in the network, due to the characteristics of the shared channel of the power line, the intermediate node may receive broadcast messages forwarded by other intermediate nodes. At this time, because the intermediate node cannot distinguish whether the broadcast message received at this time is directly sent by the administrator or forwarded by other intermediate nodes, the broadcast message will continue to be broadcast. This caused a broadcast storm. This will have disastrous consequences that the network cannot tolerate.
  • an embodiment of the present invention provides a method and apparatus for power line network communication, and a computer storage medium.
  • the forwarding information header is encapsulated in the data, and the FIH includes part or all of the following parameters: the destination terminal device identifier (DTEI, Destination Terminal Equipment Identifier, Source Terminal Equipment Identifier (STEI), Next Terminal Equipment Identifier (NTEI), Current Terminal Equipment Identifier (CTEI)
  • the encapsulated FIH data is sent to the MAC layer as new to-be-sent data, and the MAC layer performs corresponding processing on the FIH data, and then sends the power to the power line through physical (PHY) layer modulation.
  • PHY physical
  • the encapsulating the FIH in the data includes:
  • the DTEI and the NTEI are both set as broadcast addresses;
  • the TEI corresponding to the destination MAC is searched for as the DTEI in the FIH; and the next hop information is indexed in the routing table by using the DTEI as the NTEI in the FIH.
  • the FIH when performing a broadcast service, includes the DTEI and the CTEI;
  • the FIH When performing a unicast service, the FIH includes the DTEI, STEI, NTEI.
  • the MAC layer receives the packet from the power line through the PHY layer and processes it, parses the FIH data and sends it to the aggregation layer or the network management layer;
  • the aggregation layer or the network management layer After receiving the FIH data from the MAC layer, the aggregation layer or the network management layer parses each parameter in the FIH, and performs corresponding processing on the data part in the FIH data according to the parsing result; the FIH includes part of the following parameters. Or all: DTEI, STEI, NTEI, CTEI.
  • the parsing each parameter in the FIH, and performing corresponding processing on the data part in the FIH data according to the parsing result including:
  • the DTEI is a broadcast address, determining whether the CTEI is a TEI of a parent node of the site;
  • the data portion in the FIH data is copied and sent to the user layer for corresponding processing.
  • the method further includes:
  • the CTEI in the FIH is modified to be the TEI of the site, and the modified FIH data is forwarded to the child node of the site.
  • the DTEI is a non-broadcast address, determining whether the NTEI is a TEI of the local station;
  • the next hop information is indexed in the routing table according to the DTEI, and the next hop information is used to update the NTEI in FIH, and forwarding the FIH data after modifying the CTEI to the TEI of the site;
  • the data part in the FIH data is sent to the user layer for corresponding processing.
  • the encapsulating module is configured to encapsulate the FIH in the data when receiving data from the user layer, where the FIH includes part or all of the following parameters: DTEI, STEI, NTEI, CTEI;
  • the sending module is configured to send the encapsulated FIH data as a new to-be-sent data to the MAC layer, and the MAC layer performs corresponding processing on the FIH data, and then sends the signal to the power line through the PHY layer modulation.
  • the package module includes:
  • a first setting submodule configured to set the STEI and CTEI to be a site TEI
  • a determining submodule configured to extract a destination MAC of the data, and determine whether the destination MAC is a broadcast MAC
  • a second setting submodule configured to set the DTEI and the NTEI as broadcast addresses when the destination MAC is a broadcast MAC address;
  • a third setting sub-module configured to: when the destination MAC is a non-broadcast MAC, search for a TEI corresponding to the destination MAC as a DTEI in the FIH; and use the DTEI to index a next hop information in a routing table, As the NTEI in the FIH.
  • the FIH when performing a broadcast service, includes the DTEI and the CTEI;
  • the FIH When performing a unicast service, the FIH includes the DTEI, STEI, NTEI.
  • the first parsing module is configured to receive and process the packet from the power line, parse the FIH data, and send the packet to the aggregation layer or the network management layer;
  • a second parsing module configured to parse each parameter in the FIH after receiving the FIH data from the MAC layer
  • the processing module is configured to perform corresponding processing on the data portion in the FIH data according to the parsing result; the FIH includes part or all of the following parameters: DTEI, STEI, NTEI, CTEI.
  • the second parsing module includes:
  • a first determining submodule configured to determine whether the DTEI is a broadcast address
  • a second determining submodule configured to determine, when the DTEI is a broadcast address, whether the CTEI is a TEI of a parent node of the site;
  • the processing module is further configured to discard the FIH data when the CTEI is not the TEI of the parent node of the local station; and when the CTEI is the TEI of the parent node of the local site, in the FIH data The data portion is copied and sent to the user layer for processing accordingly.
  • the device further includes:
  • Modifying a module configured to modify the CTEI in the FIH to be a TEI of the site when the CTEI is a TEI of the parent node of the local site;
  • the forwarding module forwards the modified FIH data to the child nodes of the site.
  • the second parsing module includes:
  • a first determining submodule configured to determine whether the DTEI is a broadcast address
  • a third determining sub-module configured to determine, when the DTEI is a non-broadcast address, whether the NTEI is a TEI of the local station;
  • the processing module is further configured to: when the NTEI is a TEI of the local station, and the DTEI When the TEI of the site is not, the next hop information is indexed in the routing table according to the DTEI, and the NTEI in the FIH is updated by using the next hop information, and the CTEI is modified into the site. After the TEI, the FIH data is forwarded; when the NTEI is the TEI of the local station, and the DTEI is also the TEI of the local station, the data part in the FIH data is sent to the user layer for corresponding processing.
  • the computer storage medium provided by the embodiment of the present invention stores a computer program for performing the above method of power line network communication.
  • the FIH is encapsulated in the data, and the FIH includes part or all of the following parameters: DTEI, STEI, NTEI, CTEI Transmitting the completed FIH data as a new to-be-sent data to the MAC layer, and the MAC layer performs corresponding processing on the FIH data, and then transmits the data to the power line through physical PHY layer modulation.
  • the MAC layer receives the packet from the power line through the PHY layer and processes it, and parses the FIH data and sends it to the aggregation layer or the network management layer.
  • the aggregation layer or the network management layer parses the FIH.
  • the processing of the FIH by each station improves the forwarding performance of the network intermediate node to the unicast packet, thereby improving the overall data processing capability of the network.
  • the network node effectively suppresses broadcast packets, so that the network avoids catastrophic events such as broadcast storms.
  • FIG. 1 is a schematic diagram of a typical power line communication protocol stack
  • FIG. 2 is a schematic diagram of a topology of a typical power line communication network
  • FIG. 3 is a schematic flowchart 1 of a method for power line network communication according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of a data structure of a forwarding header
  • FIG. 5 is a second schematic flowchart of a method for power line network communication according to an embodiment of the present invention.
  • FIG. 6 is a schematic diagram of a network topology according to a first embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a routing table of a network node according to a first embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a network topology according to a second embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a forwarding information header after parameter optimization according to a third embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a protocol stack processing module according to a fourth embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an apparatus for power line network communication according to Embodiment 1 of the present invention.
  • FIG. 12 is a schematic structural diagram of an apparatus for power line network communication according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic flowchart 1 of a method for power line network communication according to an embodiment of the present invention. As shown in FIG. 3, the method for power line network communication includes the following steps:
  • Step 301 When the aggregation layer or the network management layer receives the data from the user layer, the FIH is encapsulated in the data, and the FIH includes part or all of the following parameters: DTEI, STEI, NTEI, CTEI.
  • the encapsulating the FIH in the data includes:
  • the DTEI and the NTEI are both set as broadcast addresses;
  • the TEI corresponding to the destination MAC is searched for as the DTEI in the FIH; and the next hop information is indexed in the routing table by using the DTEI as the NTEI in the FIH.
  • the FIH when performing a broadcast service, includes the DTEI and the CTEI; when performing a unicast service, the FIH includes the DTEI, the STEI, and the NTEI.
  • Step 302 Send the encapsulated FIH data as a new to-be-sent data to the MAC layer, and the MAC layer performs corresponding processing on the FIH data, and then sends the signal to the power line through the PHY layer modulation.
  • the data transmitted to the MAC layer by the aggregation layer or the network management layer, such as the MSDU is increased by a number of bytes of FIH in front of the data, as shown in FIG.
  • the site improves the forwarding performance of unicast packets and prevents network broadcast storms by processing the FIH.
  • FIH includes DTEI, STEI, NTEI, CTEI.
  • the byte size of these parameters can vary depending on the number of nodes the network specifically supports. For example, if the power line network supports 255 nodes, then each parameter of FIH needs only one byte size; if the network needs to support 64K nodes, then each parameter of FIH is adjusted to two bytes, and so on.
  • the broadcast address is indicated. If the field is one byte, the corresponding broadcast address is 0xFF. Generally, in the case of broadcasting a data message in a network, it is necessary to set the DTEI and NTEI as broadcast addresses. Otherwise, it means that this is a unicast data message.
  • the DTEI parameter in the FIH indicates the final destination node that forwards the data packet; the STEI indicates the original source node that forwards the data packet; these two parameters are determined by the initiating node that forwards the packet, and each intermediate node cannot forward the packet in the process of forwarding the packet. Modify these two parameters in FIH. Until the message finally reaches the destination node.
  • the NTEI parameter in the FIH indicates the next hop processing node of the current packet. If the FIH of a unicast packet received by a network node does not match the TEI of the local station, the packet is discarded.
  • the CTEI parameter in the FIH indicates the previous processing node of the current message.
  • TEI terminal device identifier
  • the intermediate node After receiving the unicast packet, the intermediate node parses the FIH, directly obtains the routing entry according to the DTEI parameter, learns the NTEI information of the next hop node, and completes the forwarding. Therefore, it is no longer necessary to parse the MSDU to obtain the DMAC, and then obtain the next hop node information corresponding to the DMAC through the search algorithm.
  • the processing performance of the routing table lookup is related to the specific algorithm used in the implementation. Generally, it takes up 50-60% of the unicast packet forwarding process, and further increases as the network-supported site capacity increases. The invention saves the process of the routing table searching by the station according to the DMAC in the packet, thereby improving the forwarding performance of the unicast packet.
  • Broadcast storms can be suppressed by the CTEI parameters in FIH.
  • the intermediate node parses the FIH to determine whether the CTEI parameter is its own parent node TEI. If yes, the broadcast message is processed; if not, the message is discarded. Through the CTEI field, the network node only processes broadcast messages from the parent node, thus avoiding broadcast storms.
  • the broadcast message in the power line network is generally a method used by the management node to transmit data messages to the member nodes.
  • FIG. 5 is a schematic flowchart 2 of a method for power line network communication according to an embodiment of the present invention. As shown in FIG. 5, the method for power line network communication includes the following steps:
  • Step 501 The MAC layer receives and processes the packet from the power line through the PHY layer, parses the FIH data, and sends the packet to the aggregation layer or the network management layer.
  • Step 502 After receiving the FIH data from the MAC layer, the aggregation layer or the network management layer parses each parameter in the FIH, and performs corresponding processing on the data part in the FIH data according to the parsing result; the FIH includes the following: Part or all of the parameters: DTEI, STEI, NTEI, CTEI.
  • the DTEI is a broadcast address, determining whether the CTEI is a TEI of a parent node of the site;
  • the data portion in the FIH data is copied and sent to the user layer for corresponding processing.
  • the method further includes:
  • the CTEI in the FIH is modified to be the TEI of the site, and the modified FIH data is forwarded to the child node of the site.
  • the parsing each parameter in the FIH, and performing corresponding processing on the data part in the FIH data according to the parsing result including:
  • the DTEI is a non-broadcast address, determining whether the NTEI is a TEI of the local station;
  • the next hop information is indexed in the routing table according to the DTEI, and the next hop information is used to update the NTEI in FIH, and forwarding the FIH data after modifying the CTEI to the TEI of the site;
  • the data part in the FIH data is sent to the user layer for corresponding processing.
  • This embodiment describes the usage of FIH for unicast messages in a power line network.
  • each node after power-on is shown in Figure 6.
  • Site A is the network manager
  • sites B and C are intermediate nodes
  • site D is the network leaf node.
  • the routing table information corresponding to each node is as shown in FIG. 7.
  • the NTEI corresponds to the local routing table information, indicating that the next hop of the local station to the destination site A is the site B.
  • the site D When receiving the packet, the site D resolves the FIH and determines that both the DTEI and the NTEI are the local sites. Therefore, the packet is received and delivered to the corresponding module for processing.
  • the intermediate nodes B and C can directly obtain the next hop information of the routing table according to the DTEI parameters in the FIH, so as to complete the forwarding.
  • the present invention saves the process of the station searching the routing table according to the DMAC in the message.
  • the processing performance of the routing table lookup is related to the specific algorithm used in the implementation. Generally, it takes up 50-60% of the unicast packet forwarding process, and further increases as the network-supported site capacity increases. Therefore, the present invention greatly improves the unicast packet forwarding performance of the network intermediate node by using the FIH.
  • This embodiment illustrates the usage of FIH for broadcast messages in a power line network.
  • Site A is the network manager
  • sites B and C are the primary nodes
  • sites D and E are the secondary nodes
  • Site B is the parent of site D
  • site C is the parent of site E.
  • the broadcast address is 0xFF.
  • Site B When receiving the packet, Site B resolves the FIH and determines that it is a broadcast packet by using DTEI and NTEI as 0xFF.
  • Site C may also receive broadcast messages from Site B.
  • Site B also discards broadcast packets from Site C.
  • Site D may receive broadcast messages from sites B and C.
  • the DTEI and NTEI fields in the FIH are used to determine the broadcast packet, and the CTEI field is further parsed.
  • the situation in which Site E processes broadcast messages is similar.
  • each station only processes the broadcast message sent by the parent node.
  • the broadcast packets of other nodes that can be received are discarded. This ensures that broadcast packets are forwarded according to the network topology and broadcast storms are avoided.
  • FIH increases the overhead of data packet transmission, but this overhead is basically negligible. For networks that support 255 members, FIH only requires 4 bytes; even for networks that support 65,535 members, only 8 bytes are required. Power line networks typically support the transmission of data packets of 1518 bytes in length. Compared to the length of the data message, the overhead of FIH increase is negligible. However, FIH greatly improves the forwarding performance of unicast packets and prevents the network from catastrophic events such as broadcast storms. Therefore, the use of FIH will make the power line network data processing performance faster and more robust.
  • This embodiment provides a method for further optimizing compression of the number of FIH parameters.
  • the CTEI field is generally used for broadcast services, and this field can actually be ignored in the case of unicast.
  • the STEI field is generally used for the unicast service.
  • the site can perform packet response processing according to the STEI.
  • Broadcast messages generally do not require a destination site for response processing; or send a response message to a network management node (CCO) even if a response is required. Therefore, the broadcast message can ignore the STEI field.
  • CCO network management node
  • Unicast and broadcast are two separate and mutually exclusive services. Based on these circumstances, we can further optimize the use of FIH.
  • the broadcast address is 0xFF.
  • FIH size of the FIH optimization parameters depends on the business situation. For unicast services, FIH can be optimized to three parameter sizes; for broadcast services, FIH can be optimized to two parameter sizes.
  • the specific processing flow is as follows:
  • the message receiving station parses the FIH, it first parses the first parameter, DTEI.
  • the DTEI is a broadcast address (0xFF)
  • the second parameter, CTEI is taken to determine whether the parameter is its own parent TEI. If not, the message is For other sites, the discard is not processed; if it is, the packet is processed, and the MSDU data is extracted according to the size of the FIH size of 2 parameters.
  • the DTEI is not a broadcast address, it is determined that the message is a unicast service.
  • the site extracts the STEI and NTEI fields from the FIH in unicast format. If the NTEI is not the local station, the message is directly discarded; otherwise, the DTEI field is further determined. If the DTEI is not the local station, the packet is forwarded; otherwise, the station processes the packet, and extracts the MSDU data according to the size of the FIH size of 3 parameters, and delivers the data to the corresponding module of the device.
  • FIH improves the unicast packet forwarding performance and suppresses broadcast storms, and further reduces the overhead of data packet transmission.
  • the unicast and broadcast services are reduced by 25% and 50%, respectively. Node processing power has been further improved.
  • This embodiment provides a process for the FIH to forward user data based on the actual usage of a company's products.
  • This process includes the unified processing method of FIH for unicast and broadcast services.
  • the functional module of the product software stack is divided as shown in Figure 10.
  • the encapsulation and parsing of FIH is done at the network management layer.
  • the network management layer manages the site MAC efficiently through HASH, and forms a direct routing table for the TEI information of each site, which facilitates indexing and obtaining site information during forwarding.
  • the product supports 4K capacity network nodes, so the TEI of each station is 2 bytes, and the network broadcast TEI is 0xFFF.
  • a typical scenario for user data transmission is that the CCO sends data to a node on the network or to the entire network.
  • Destination MAC non-broadcast MAC Search for the TEI corresponding to the site MAC through the HASH module, that is, corresponding to the DTEI in the FIH; and use the DTEI direct index routing table to the next hop in the routing table.
  • the information is set to NTEI in FIH.
  • the encapsulated FIH+MSDU is sent to the MAC layer as new to-be-sent data. After the MAC layer performs corresponding processing, the data modulation is transmitted to the power line through the PHY layer.
  • the packets received by each node in the network from the power line are handled as follows:
  • the network management layer receives the data from the MAC layer and parses the parameters in the FIH:
  • the DTEI is 0xFFF and the broadcast message receiving process is performed:
  • the CTEI is not the parent of the site and discards the packet.
  • the CTEI is the parent node of the site, and needs to be processed by the site. A copy of the MSDU part of the data is sent to the user layer for corresponding processing.
  • the CTEI in the FIH is modified to be the value of the site, and is forwarded out. The child nodes of this site continue to process;
  • DTEI is not 0xFFF and performs unicast packet reception processing:
  • NTEI is not the local site: discards the message
  • the NTEI is the site, and the DTEI is non-local: according to the DTEI index routing table, the new next hop is obtained and the NTEI in the FIH is updated with this value; the CTEI is changed to the TEI value of the site, and the packet is forwarded;
  • the NTEI is the site, and the DTEI is also the site: the site is the final destination node of the unicast message, and the MSDU part is handed over to the user layer for corresponding processing.
  • the processing of the FIH is relatively independent in the overall processing of the protocol. Therefore, although the present embodiment is used to solve the scenario in which the user data packet is forwarded, other scenarios, such as receiving and forwarding the protocol control packet, may also refer to the process in this embodiment. Process it.
  • FIG. 11 is a schematic structural diagram of an apparatus for power line network communication according to Embodiment 1 of the present invention. As shown in FIG. 12, the apparatus includes:
  • Encapsulating module 11 configured to encapsulate data in the data layer when receiving data from the user layer FIH, the FIH includes part or all of the following parameters: DTEI, STEI, NTEI, CTEI;
  • the sending module 12 is configured to send the encapsulated FIH data as a new to-be-sent data to the MAC layer, and the MAC layer performs corresponding processing on the FIH data, and then sends the data to the power line through the PHY layer modulation.
  • the package module 11 includes:
  • the first setting sub-module 111 is configured to set the STEI and the CTEI to be the site TEI;
  • the determining sub-module 112 is configured to extract a destination MAC of the data, and determine whether the destination MAC is a broadcast MAC.
  • the second setting sub-module 113 is configured to set the DTEI and the NTEI to a broadcast address when the destination MAC is a broadcast MAC address.
  • the third setting sub-module 114 is configured to: when the destination MAC is a non-broadcast MAC, search for a TEI corresponding to the destination MAC as a DTEI in the FIH; and use the DTEI to index a next hop information in a routing table. As the NTEI in the FIH.
  • the FIH When performing a broadcast service, the FIH includes the DTEI, CTEI;
  • the FIH When performing a unicast service, the FIH includes the DTEI, STEI, NTEI.
  • each module and sub-module in the device for communicating by the power line network may be a Central Processing Unit (CPU) or a microprocessor (in a device located in a power line network communication device).
  • CPU Central Processing Unit
  • microprocessor in a device located in a power line network communication device.
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • FIG. 12 is a schematic structural diagram of a device for power line network communication according to Embodiment 2 of the present invention. As shown in FIG. 12, the device includes:
  • the first parsing module 21 is configured to receive and process the packet from the power line, and parse the FIH.
  • the data is sent to the aggregation layer or network management layer;
  • the second parsing module 22 is configured to parse each parameter in the FIH after receiving the FIH data from the MAC layer.
  • the processing module 23 is configured to perform corresponding processing on the data part in the FIH data according to the parsing result; the FIH includes part or all of the following parameters: DTEI, STEI, NTEI, CTEI.
  • the second parsing module 22 includes:
  • the first determining sub-module 221 is configured to determine whether the DTEI is a broadcast address.
  • the second determining sub-module 222 is configured to determine, when the DTEI is a broadcast address, whether the CTEI is a TEI of a parent node of the site;
  • the processing module 23 is further configured to discard the FIH data when the CTEI is not the TEI of the parent node of the local station; and when the CTEI is the TEI of the parent node of the local site, the FIH data is used. The data portion of the data is copied and sent to the user layer for corresponding processing.
  • the device also includes:
  • the modifying module 24 is configured to modify the CTEI in the FIH as the TEI of the site when the CTEI is the TEI of the parent node of the local site;
  • the forwarding module 25 forwards the modified FIH data to the child nodes of the site.
  • the second parsing module 22 includes:
  • the first determining sub-module 221 is configured to determine whether the DTEI is a broadcast address.
  • the third determining sub-module 223 is configured to determine, when the DTEI is a non-broadcast address, whether the NTEI is a TEI of the local station;
  • the processing module 23 is further configured to: when the NTEI is the TEI of the local station, and the DTEI is not the TEI of the local station, index the next hop information in the routing table according to the DTEI, and use the The next hop information updates the NTEI in the FIH, and the CTEI is modified to be the TEI of the site, and the FIH data is forwarded; when the NTEI is the TEI of the site, and When the DTEI is also the TEI of the site, the data portion in the FIH data is sent to the user layer for corresponding processing.
  • each module and sub-module in the device for communicating by the power line network may be a Central Processing Unit (CPU) or a microprocessor (in a device located in a power line network communication device).
  • CPU Central Processing Unit
  • microprocessor in a device located in a power line network communication device.
  • MPU Micro Processor Unit
  • DSP Digital Signal Processor
  • FPGA Field Programmable Gate Array
  • the apparatus for tracking the service signaling may also be stored in a computer readable storage medium if it is implemented in the form of a software function module and sold or used as a separate product.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • embodiments of the present invention also provide a computer storage medium in which a computer program for performing a method of power line network communication according to an embodiment of the present invention is stored.
  • the disclosed method and smart device 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, and may be implemented in actual implementation.
  • the coupling, or direct coupling, or communication connection of the components shown or discussed may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical, mechanical or other forms. of.
  • the units described above as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place or 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 second processing unit, or each unit may be separately used as one unit, or two or more units may be integrated into one unit;
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the aggregation layer or the network management layer encapsulates the FIH in the data from the user layer, and sends the encapsulated FIH data to the MAC layer, and the MAC layer performs corresponding processing on the FIH data.
  • the physical PHY layer modulation is sent to the power line.
  • the MAC layer receives and processes the packet from the power line through the PHY layer, parses the FIH data and sends it to the aggregation layer or the network management layer; the aggregation layer or the network management layer parses the parameters in the FIH, and according to the parsing result, the FIH data
  • the data part is processed accordingly.
  • the forwarding performance of unicast packets is improved by the network intermediate nodes, thereby improving the overall data processing capability of the network.
  • the network node effectively suppresses broadcast packets, so that the network avoids catastrophic events such as broadcast storms.

Landscapes

  • Engineering & Computer Science (AREA)
  • Power Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)
  • Cable Transmission Systems, Equalization Of Radio And Reduction Of Echo (AREA)

Abstract

本发明公开了一种电力线网络通信的方法及装置、计算机存储介质,所述方法包括:汇聚层或网络管理层接收到来自用户层的数据时,在所述数据中封装FIH,所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI;将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过PHY层调制发送至电力线。

Description

一种电力线网络通信的方法及装置、计算机存储介质 技术领域
本发明涉及电力线通信(PLC,Power Line Communication)技术,尤其涉及一种电力线网络通信的方法及装置、计算机存储介质。
背景技术
随着物联网产业应用呈现多样化,宽带电力线通信作为物联网应用的一种,由于具备基础设施不用重新布线、组网简单、成本低、安全性高、易于实现等优点,受到越来越多的关注。
电力线网络节点上一般支持的通信协议栈如图1所示。网络中任意两个节点需要进行数据传输时,发送方站点将待发送数据,例如介质访问控制服务数据单元(MSDU,Media Access Control Service Data Unit)通过汇聚层或网络管理层交给介质访问控制(MAC,Media Access Control)层处理后发送到电力线上传输。接收方站点从信道上接收到数据后,通过MAC层恢复出MSDU,交给汇聚层或网络管理层处理。
当数据报文在网络节点中通过这种方式传输时,会存在两个问题。
第一,对于网络中的单播报文,如果最终目的站点和源节点之间存在多个中间(代理)节点,例如图2中中央协调器(CCO,Central Coordinator)和站点(STA,Station)之间需要经过多个代理协调器(PCO,Proxy Coordinator)的情况,那么每个中间节点都需要对MSDU进行转发,即每个中间节点的汇聚层或网络管理层收到MAC层上送的MSDU之后,需要解析MSDU,提取目的MAC(DMAC,Destination Media Access Control)字段,然后通过查找算法获取DMAC对应节点的路由表条目信息。这里解析、提取、查找路由的操作极大的消耗了中央处理器(CPU,Central  Processing Unit)的性能。
第二,对于网络中的广播报文,例如CCO向全网成员发送广播报文。PCO需要将广播报文以广播方式转发给所有子节点。若网络中存在多个中间节点情况下,由于电力线这种共享信道的特性,中间节点完全可能收到其他中间节点转发的广播报文。这时由于中间节点无法区别此时收到的广播报文是由管理者直接发出还是由其他中间节点转发,因此将继续对此广播报文进行广播。从而造成广播风暴。这将造成灾难性的后果,是网络不能容忍的。
发明内容
为解决上述技术问题,本发明实施例提供了一种电力线网络通信的方法及装置、计算机存储介质。
本发明实施例提供的电力线网络通信的方法包括:
汇聚层或网络管理层接收到来自用户层的数据时,在所述数据中封装转发信息头(FIH,Forwarding Information Header),所述FIH包括以下参数的部分或全部:目的终端设备标识(DTEI,Destination Terminal Equipment Identifier)、源终端设备标识(STEI,Source Terminal Equipment Identifier)、下一跳终端设备标识(NTEI,Next Terminal Equipment Identifier)、当前终端设备标识(CTEI,Current Terminal Equipment Identifier);
将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过物理(PHY)层调制发送至电力线。
本发明实施例中,所述在所述数据中封装FIH,包括:
将所述STEI、CTEI均设置为本站点终端设备标识(TEI,Terminal Equipment Identifier);
提取所述数据的目的MAC,判断所述目的MAC是否为广播MAC;
当所述目的MAC是广播MAC时,将所述DTEI、NTEI均设置为广播地址;
当所述目的MAC是非广播MAC时,查找所述目的MAC对应的TEI,作为所述FIH中的DTEI;利用所述DTEI在路由表中索引出下一跳信息,作为所述FIH中的NTEI。
本发明实施例中,当进行广播业务时,所述FIH包括所述DTEI、CTEI;
当进行单播业务时,所述FIH包括所述DTEI、STEI、NTEI。
本发明另一实施例提供的电力线网络通信的方法包括:
MAC层通过PHY层接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层;
汇聚层或网络管理层收到来自所述MAC层的FIH数据后,解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理;所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
本发明实施例中,所述解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理,包括:
判断所述DTEI是否为广播地址;
当所述DTEI是广播地址时,判断所述CTEI是否为本站点父节点的TEI;
当所述CTEI不是本站点父节点的TEI时,丢弃所述FIH数据;
当所述CTEI是所述本站点父节点的TEI时,对所述FIH数据中的数据部分进行复制后发送给用户层进行相应的处理。
本发明实施例中,所述方法还包括:
当所述CTEI是所述本站点父节点的TEI时,修改所述FIH中的所述CTEI为本站点的TEI,并将修改后的FIH数据转发给本站点的子节点。
本发明实施例中,所述解析FIH中的各个参数,并根据解析结果对所 述FIH数据中的数据部分进行相应处理,包括:
判断所述DTEI是否为广播地址;
当所述DTEI是非广播地址时,判断所述NTEI是否为本站点的TEI;
当所述NTEI不是本站点的TEI时,丢弃所述FIH数据;
当所述NTEI是本站点的TEI时,且所述DTEI不是本站点的TEI时,根据所述DTEI在路由表中索引出下一跳信息,并利用所述下一跳信息更新所述FIH中的NTEI,以及将所述CTEI修改为本站点的TEI后转发所述FIH数据;
当所述NTEI是本站点的TEI时,且所述DTEI也是本站点的TEI时,将所述FIH数据中的数据部分发送给用户层进行相应的处理。
本发明实施例提供的电力线网络通信的装置包括:
封装模块,配置为接收到来自用户层的数据时,在所述数据中封装FIH,所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI;
发送模块,配置为将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过PHY层调制发送至电力线。
本发明实施例中,所述封装模块包括:
第一设置子模块,配置为将所述STEI、CTEI均设置为本站点TEI;
判断子模块,配置为提取所述数据的目的MAC,判断所述目的MAC是否为广播MAC;
第二设置子模块,配置为当所述目的MAC是广播MAC时,将所述DTEI、NTEI均设置为广播地址;
第三设置子模块,配置为当所述目的MAC是非广播MAC时,查找所述目的MAC对应的TEI,作为所述FIH中的DTEI;利用所述DTEI在路由表中索引出下一跳信息,作为所述FIH中的NTEI。
本发明实施例中,当进行广播业务时,所述FIH包括所述DTEI、CTEI;
当进行单播业务时,所述FIH包括所述DTEI、STEI、NTEI。
本发明另一实施例提供的电力线网络通信的装置包括:
第一解析模块,配置为接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层;
第二解析模块,配置为收到来自所述MAC层的FIH数据后,解析FIH中的各个参数;
处理模块,配置为根据解析结果对所述FIH数据中的数据部分进行相应处理;所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
本发明实施例中,所述第二解析模块包括:
第一判断子模块,配置为判断所述DTEI是否为广播地址;
第二判断子模块,配置为当所述DTEI是广播地址时,判断所述CTEI是否为本站点父节点的TEI;
所述处理模块,还配置为当所述CTEI不是本站点父节点的TEI时,丢弃所述FIH数据;当所述CTEI是所述本站点父节点的TEI时,对所述FIH数据中的数据部分进行复制后发送给用户层进行相应的处理。
本发明实施例中,所述装置还包括:
修改模块,配置为当所述CTEI是所述本站点父节点的TEI时,修改所述FIH中的所述CTEI为本站点的TEI;
转发模块,将修改后的FIH数据转发给本站点的子节点。
本发明实施例中,所述第二解析模块包括:
第一判断子模块,配置为判断所述DTEI是否为广播地址;
第三判断子模块,配置为当所述DTEI是非广播地址时,判断所述NTEI是否为本站点的TEI;
所述处理模块,还配置为当所述NTEI是本站点的TEI时,且所述DTEI 不是本站点的TEI时,根据所述DTEI在路由表中索引出下一跳信息,并利用所述下一跳信息更新所述FIH中的NTEI,以及将所述CTEI修改为本站点的TEI后转发所述FIH数据;当所述NTEI是本站点的TEI时,且所述DTEI也是本站点的TEI时,将所述FIH数据中的数据部分发送给用户层进行相应的处理。
本发明实施例提供的计算机存储介质存储有计算机程序,该计算机程序用于执行上述电力线网络通信的方法。
本发明实施例的技术方案中,汇聚层或网络管理层接收到来自用户层的数据时,在所述数据中封装FIH,所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI;将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过物理PHY层调制发送至电力线。MAC层通过PHY层接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层;汇聚层或网络管理层收到来自所述MAC层的FIH数据后,解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理。本发明实施例通过各站点对FIH的处理,提高了网络中间节点对单播报文的转发性能,从而提高了网络整体的数据处理能力。同时网络节点对广播报文进行了有效抑制,使网络避免了广播风暴这样的灾难性事件。
附图说明
图1为典型电力线通信协议栈示意图;
图2为典型电力线通信网络拓扑示意图;
图3为本发明实施例的电力线网络通信的方法的流程示意图一;
图4为转发信息头数据结构示意图;
图5为本发明实施例的电力线网络通信的方法的流程示意图二;
图6为本发明第一实施例网络拓扑示意图;
图7为本发明第一实施例网络节点路由表示意图;
图8为本发明第二实施例网络拓扑示意图;
图9为本发明第三实施例参数优化后的转发信息头结构示意图;
图10为本发明第四实施例协议栈处理模块示意图;
图11为本发明实施例一的电力线网络通信的装置的结构组成示意图;
图12为本发明实施例二的电力线网络通信的装置的结构组成示意图。
具体实施方式
为了能够更加详尽地了解本发明实施例的特点与技术内容,下面结合附图对本发明实施例的实现进行详细阐述,所附附图仅供参考说明之用,并非用来限定本发明实施例。
图3为本发明实施例的电力线网络通信的方法的流程示意图一,如图3所示,所述电力线网络通信的方法包括以下步骤:
步骤301:汇聚层或网络管理层接收到来自用户层的数据时,在所述数据中封装FIH,所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
本发明实施例中,所述在所述数据中封装FIH,包括:
将所述STEI、CTEI均设置为本站点TEI;
提取所述数据的目的MAC,判断所述目的MAC是否为广播MAC;
当所述目的MAC是广播MAC时,将所述DTEI、NTEI均设置为广播地址;
当所述目的MAC是非广播MAC时,查找所述目的MAC对应的TEI,作为所述FIH中的DTEI;利用所述DTEI在路由表中索引出下一跳信息,作为所述FIH中的NTEI。
本发明实施例中,当进行广播业务时,所述FIH包括所述DTEI、CTEI;当进行单播业务时,所述FIH包括所述DTEI、STEI、NTEI。
步骤302:将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过PHY层调制发送至电力线。
上述方案中,通过汇聚层或网络管理层传递给MAC层的数据,如MSDU,在这部分数据前面增加若干字节长度的FIH,如图4所示。站点通过对FIH的处理从而提高网络中单播报文的转发性能以及防止网络广播风暴。
FIH包括DTEI、STEI、NTEI、CTEI。这些参数的字节大小可以根据网络具体支持的节点数目多少而定。例如,如果电力线网络支持255个节点,那么FIH每个参数只需一个字节大小即可;如果网络需要支持64K个节点,那么FIH每个参数对应调整为两个字节大小,依次类推。
这些字段为全1时表示广播地址,如字段为一个字节大小时,对应广播地址为0xFF。一般来说,对于网络中广播发送数据报文的情况下,需要将DTEI、NTEI设置为广播地址。反之,则表示这是一个单播数据报文。
FIH中DTEI参数表示转发数据报文的最终目的节点;STEI表示转发数据报文的最初源节点;这两个参数由转发报文的发起节点确定,各个中间节点在对报文进行转发过程中不能修改FIH中的这两个参数。直到报文最终到达目的节点。
FIH中的NTEI参数表示当前报文的下一跳处理节点。若一个网络节点收到的单播报文的FIH中此参数与本站点TEI不符,则丢弃此报文。
FIH中的CTEI参数表示当前报文的前一个处理节点。
单播情况下的数据报文在网络节点间传输时,参数NTEI和CTEI需要被各个中间节点逐跳修改。
网络中各个节点在组网之后,都会被网络管理者分配一个终端设备标识,即TEI。此标识与各个站点的MAC地址唯一对应。各节点需要维护自 身TEI信息,父节点TEI信息,以及本节点到达网络中其他节点的拓扑信息,从而形成路由表。通过FIH中的DTEI参数,可以提高单播报文的转发性能。
当中间节点接收到单播报文之后,解析FIH,根据DTEI参数直接获取路由条目,获知下一跳节点NTEI信息,完成转发。因此,不再需要解析MSDU获取DMAC,再通过查找算法获取DMAC对应的下一跳节点信息。路由表查找消耗的处理性能跟实现时使用的具体算法相关,一般会占用单播报文转发处理流程的50~60%以上,且随着网络支持的站点容量增大而进一步增加。本发明节省了站点根据报文中的DMAC进行路由表查找的过程,从而提高了单播报文的转发性能。
通过FIH中的CTEI参数,可以抑制广播风暴。当中间节点接收到广播报文之后,解析FIH,判断其中CTEI参数是否为自己父节点TEI。若是,则处理此广播报文;若不是,则丢弃此报文。通过CTEI字段,网络节点只处理来自父节点的广播报文,从而避免了广播风暴。
这里,电力线网络中的广播报文,一般是管理节点向成员节点传输数据报文时采用的一种方式。
图5为本发明实施例的电力线网络通信的方法的流程示意图二,如图5所示,所述电力线网络通信的方法包括以下步骤:
步骤501:MAC层通过PHY层接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层。
步骤502:汇聚层或网络管理层收到来自所述MAC层的FIH数据后,解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理;所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
本发明实施例中,所述解析FIH中的各个参数,并根据解析结果对所 述FIH数据中的数据部分进行相应处理,包括:
判断所述DTEI是否为广播地址;
当所述DTEI是广播地址时,判断所述CTEI是否为本站点父节点的TEI;
当所述CTEI不是本站点父节点的TEI时,丢弃所述FIH数据;
当所述CTEI是所述本站点父节点的TEI时,对所述FIH数据中的数据部分进行复制后发送给用户层进行相应的处理。
本发明实施例中,所述方法还包括:
当所述CTEI是所述本站点父节点的TEI时,修改所述FIH中的所述CTEI为本站点的TEI,并将修改后的FIH数据转发给本站点的子节点。
本发明实施例中,所述解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理,包括:
判断所述DTEI是否为广播地址;
当所述DTEI是非广播地址时,判断所述NTEI是否为本站点的TEI;
当所述NTEI不是本站点的TEI时,丢弃所述FIH数据;
当所述NTEI是本站点的TEI时,且所述DTEI不是本站点的TEI时,根据所述DTEI在路由表中索引出下一跳信息,并利用所述下一跳信息更新所述FIH中的NTEI,以及将所述CTEI修改为本站点的TEI后转发所述FIH数据;
当所述NTEI是本站点的TEI时,且所述DTEI也是本站点的TEI时,将所述FIH数据中的数据部分发送给用户层进行相应的处理。
以下结合具体应用场景对本发明实施例做进一步说明,应当理解,此处所描述的实施例仅用于说明和解释本发明,并不用于限定本发明。在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
实施例一
本实施例针对电力线网络中的单播报文说明FIH的用法。
网络各节点上电后组网拓扑结构如图6所示。站点A为网络管理者,站点B、C为中间节点,站点D为网络叶子节点。这种情况下,各节点对应的路由表信息如图7所示。
以站点A向站点D发送单播报文为例。站点A在报文前封装FIH为:DTEI=D、STEI=A、NTEI=B、CTEI=A。其中NTEI与本地路由表信息对应,说明本站点到达目的站点A的下一跳为站点B。
站点B收到此报文时,解析FIH,判断NTEI为本站点,但报文最终目的站点为D,因此直接根据DTEI查找本地路由表,并修改FIH为:DTEI=D、STEI=A、NTEI=C、CTEI=B。修改了NTEI和CTEI字段,表明此报文当前由站点B发出,将由站点C处理。
站点C收到此报文时,解析FIH,判断NTEI为本站点,但报文最终目的站点为D,因此直接根据DTEI查找本地路由表,并修改FIH为:DTEI=D、STEI=A、NTEI=D、CTEI=C。修改了NTEI和CTEI字段,表明此报文当前由站点C发出,将由站点D处理。
站点D收到此报文时,解析FIH,判断出DTEI、NTEI均为本站点,因此接收报文并交给相应模块进行处理。
从本实施例能够看出,中间节点B、C在处理报文过程中,只需要根据FIH中的DTEI参数即可直接获取路由表下一跳信息,从而完成转发。相比较没有FIH的情况,本发明节省了站点根据报文中的DMAC进行路由表查找的过程。路由表查找消耗的处理性能跟实现时使用的具体算法相关,一般会占用单播报文转发处理流程的50~60%以上,且随着网络支持的站点容量增大而进一步增加。因此,本发明通过使用FIH,使网络中间节点的单播报文转发性能极大提高。
实施例二
本实施例针对电力线网络中的广播报文说明FIH的用法。
网络各节点上电后组网拓扑结构如图8所示。站点A为网络管理者,站点B、C为一级子节点,站点D、E为二级子节点。其中站点B为站点D的父节点,站点C为站点E的父节点。
假定本网络节点容量小于255,则广播地址为0xFF。
当站点A需要向全体成员站点广播数据报文时,在数据报文前封装FIH为:DTEI=0xFF、STEI=A、NTEI=0xFF、CTEI=A。
站点B收到此报文时,解析FIH,通过DTEI、NTEI为0xFF判断出这是广播报文。进一步解析CTEI字段,确认和本站点父节点信息一致,因此接收此报文。由于站点B为网络中间节点,因此修改FIH为:DTEI=0xFF、STEI=A、NTEI=0xFF、CTEI=B,并转发到电力线上供子节点继续处理。
站点C收到站点A发出的报文时,通过解析FIH中的DTEI、NTEI字段判断出这是广播报文。进一步解析CTEI=A,确认和本站点父节点信息一致,因此接收此报文。由于站点C为网络中间节点,因此修改FIH为:DTEI=0xFF、STEI=A、NTEI=0xFF、CTEI=C,并转发到电力线上供子节点继续处理。
由于电力线网络的总线型特性,站点C也有可能收到站点B发出的广播报文。这种情况下,站点C解析FIH中的CTEI=B,发现与本站点父节点(A)信息不一致,因此站点C丢弃站点B的广播报文。类似的,站点B也会丢弃站点C发出的广播报文。
站点D有可能收到站点B、C发出的广播报文。通过解析FIH中的DTEI、NTEI字段判断出是广播报文,并进一步解析CTEI字段,只有和本站点父节点信息一致,即CTEI=B的情况下,才会处理此广播报文,其他情况都会进行报文丢弃处理。站点E处理广播报文情况与此类似。
从本实施例能够看出,各站点只会处理父节点发出的广播报文,对可 能收到的其他节点的广播报文进行丢弃处理,从而保证广播报文按网络拓扑进行转发,避免了广播风暴。
FIH增加了数据报文传输的额外开销,但这点开销基本可以忽略不计。对于支持255成员数量的网络来说,FIH只需要4字节;即使对于支持65535个成员数量的网络,也只需要8字节。而电力线网络通常支持传输1518字节长度的数据报文。相比数据报文长度,FIH增加的开销微乎其微。但是FIH却极大的提高了单播报文的转发性能,并使网络避免了广播风暴这样灾难性的事件。因此FIH的使用将使电力线网络数据处理性能更加快速、更加健壮。
实施例三
本实施例提供一种对FIH参数个数进一步优化压缩的方法。
CTEI字段一般针对广播业务使用,单播的情况实际可以忽略此字段。STEI字段一般用于单播业务,当报文被转发最终目的站点,即DTEI对应的站点时,站点可以依据STEI进行报文响应处理。而广播报文一般不需要目的站点进行响应处理;或者即使需要响应,也是将响应报文发送给网络管理节点(CCO)。因此广播报文可以忽略STEI字段。
单播和广播是两种独立互斥的业务。基于这些情况,我们可以对FIH的使用作进一步优化。
假定本网络节点容量小于255,则广播地址为0xFF。
如图9所示,FIH优化参数之后大小随业务情况而定。若为单播业务,FIH可优化为3个参数大小;若为广播业务,FIH可优化为2个参数大小。具体处理流程如下:
报文接收站点在解析FIH时,首先解析第一个参数,即DTEI。
1)若DTEI为广播地址(0xFF),则判定此报文为广播业务,并取第二个参数,即CTEI,判断此参数是否为自己父节点TEI,若不是,说明报文 为其他站点发出,丢弃不处理;若是,则处理此报文,且按FIH大小为2参数大小情况提取MSDU数据。
2)若DTEI非广播地址,判定此报文为单播业务。站点按单播格式从FIH提取STEI和NTEI字段。若NTEI非本站点,直接丢弃此报文;否则,进一步判断DTEI字段。若DTEI非本站点,对此报文进行转发处理;否则,站点处理此报文,按FIH大小为3参数大小情况偏移提取MSDU数据,并交给设备相应模块处理。
使用这种参数优化处理之后,FIH在提高单播报文转发性能和抑制广播风暴的同时,对于数据报文传输的额外开销进一步减小,单播和广播业务分别减小25%和50%,网络节点处理能力得到进一步提升。
实施例四
本实施例基于某公司产品实际使用情况给出FIH在转发用户数据时的一种处理流程,此流程包含了FIH针对单播、广播业务的统一处理方法。
产品整体软件协议栈功能模块划分如图10所示。FIH的封装和解析在网络管理层完成。网络管理层通过HASH方式对站点MAC进行高效管理,并对各站点的TEI信息形成直连路由表,便于转发时索引和获取站点信息。
产品支持4K容量网络节点,因此各站点TEI为2字节大小,网络广播TEI为0xFFF。用户数据传输的典型场景是CCO向网络某节点或整个网络发送数据。
CCO收到来自用户层的MSDU数据时,启动数据发送处理流程:
1)提取MSDU中目的MAC参数,判断此参数是否为广播地址并相应封装FIHFIH。其中STEI=CTEI=本站点TEI。
目的MAC是广播MAC:封装FIH中DTEI=NTEI=0xFFF;
目的MAC非广播MAC:通过HASH模块查找站点MAC对应的TEI,即对应FIH中的DTEI;并用DTEI直接索引路由表将路由表中的下一跳信 息设置为FIH中的NTEI。
2)将封装完成的FIH+MSDU作为新的待发送数据发给MAC层。MAC层进行相应处理后,通过PHY层将数据调制发送到电力线。
网络中各节点收到电力线的报文具体处理如下:
1)通过PHY层接收来自电力线的报文并处理,将解析得到的FIH+MSDU数据发送给网络管理层;
2)网络管理层收到来自MAC层的数据,解析FIH中各参数:
DTEI为0xFFF,进行广播报文接收处理:
CTEI不是本站点的父节点,丢弃报文;
CTEI是本站点的父节点,需要本站点处理,将数据MSDU部分拷贝一份送给用户层作相应处理;另外,修改FIH中的CTEI为本站点值,并将其转发出去,待本站点子节点继续处理;
DTEI非0xFFF,进行单播报文接收处理:
NTEI非本站点:丢弃报文;
NTEI为本站点,DTEI为非本站点:根据DTEI索引路由表,获取新的下一跳并用此值更新FIH中的NTEI;将CTEI改为本站点TEI值,将报文转发出去;
NTEI为本站点,DTEI也为本站点:本站点为单播报文最终目的节点,将MSDU部分交给用户层作相应处理。
FIH的处理在协议整体处理流程中相对独立,因此虽然本实施例用于解决用户数据报文转发的场景,但其他场景,例如协议控制报文的接收和转发,也可以参考本实施例的流程进行处理。
图11为本发明实施例一的电力线网络通信的装置的结构组成示意图,如图12所示,所述装置包括:
封装模块11,配置为接收到来自用户层的数据时,在所述数据中封装 FIH,所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI;
发送模块12,配置为将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过PHY层调制发送至电力线。
所述封装模块11包括:
第一设置子模块111,配置为将所述STEI、CTEI均设置为本站点TEI;
判断子模块112,配置为提取所述数据的目的MAC,判断所述目的MAC是否为广播MAC;
第二设置子模块113,配置为当所述目的MAC是广播MAC时,将所述DTEI、NTEI均设置为广播地址;
第三设置子模块114,配置为当所述目的MAC是非广播MAC时,查找所述目的MAC对应的TEI,作为所述FIH中的DTEI;利用所述DTEI在路由表中索引出下一跳信息,作为所述FIH中的NTEI。
当进行广播业务时,所述FIH包括所述DTEI、CTEI;
当进行单播业务时,所述FIH包括所述DTEI、STEI、NTEI。
本领域技术人员应当理解,图12所示的电力线网络通信的装置中的各单元的实现功能可参照前述电力线网络通信的方法的相关描述而理解。
在实际应用中,所述电力线网络通信的装置中的各个模块及子模块所实现的功能,均可由位于电力线网络通信的装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
图12为本发明实施例二的电力线网络通信的装置的结构组成示意图,如图12所示,所述装置包括:
第一解析模块21,配置为接收来自电力线的报文并处理,解析得到FIH 数据后发送给汇聚层或网络管理层;
第二解析模块22,配置为收到来自所述MAC层的FIH数据后,解析FIH中的各个参数;
处理模块23,配置为根据解析结果对所述FIH数据中的数据部分进行相应处理;所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
所述第二解析模块22包括:
第一判断子模块221,配置为判断所述DTEI是否为广播地址;
第二判断子模块222,配置为当所述DTEI是广播地址时,判断所述CTEI是否为本站点父节点的TEI;
所述处理模块23,还配置为当所述CTEI不是本站点父节点的TEI时,丢弃所述FIH数据;当所述CTEI是所述本站点父节点的TEI时,对所述FIH数据中的数据部分进行复制后发送给用户层进行相应的处理。
所述装置还包括:
修改模块24,配置为当所述CTEI是所述本站点父节点的TEI时,修改所述FIH中的所述CTEI为本站点的TEI;
转发模块25,将修改后的FIH数据转发给本站点的子节点。
所述第二解析模块22包括:
第一判断子模块221,配置为判断所述DTEI是否为广播地址;
第三判断子模块223,配置为当所述DTEI是非广播地址时,判断所述NTEI是否为本站点的TEI;
所述处理模块23,还配置为当所述NTEI是本站点的TEI时,且所述DTEI不是本站点的TEI时,根据所述DTEI在路由表中索引出下一跳信息,并利用所述下一跳信息更新所述FIH中的NTEI,以及将所述CTEI修改为本站点的TEI后转发所述FIH数据;当所述NTEI是本站点的TEI时,且 所述DTEI也是本站点的TEI时,将所述FIH数据中的数据部分发送给用户层进行相应的处理。
本领域技术人员应当理解,图12所示的电力线网络通信的装置中的各单元的实现功能可参照前述电力线网络通信的方法的相关描述而理解。
在实际应用中,所述电力线网络通信的装置中的各个模块及子模块所实现的功能,均可由位于电力线网络通信的装置中的中央处理器(Central Processing Unit,CPU)、或微处理器(Micro Processor Unit,MPU)、或数字信号处理器(Digital Signal Processor,DSP)、或现场可编程门阵列(Field Programmable Gate Array,FPGA)等实现。
本发明实施例上述业务信令跟踪的装置如果以软件功能模块的形式实现并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。
相应地,本发明实施例还提供一种计算机存储介质,其中存储有计算机程序,该计算机程序用于执行本发明实施例的电力线网络通信的方法。
本发明实施例所记载的技术方案之间,在不冲突的情况下,可以任意组合。
在本发明所提供的几个实施例中,应该理解到,所揭露的方法和智能设备,可以通过其它的方式实现。以上所描述的设备实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以 有另外的划分方式,如:多个单元或组件可以结合,或可以集成到另一个系统,或一些特征可以忽略,或不执行。另外,所显示或讨论的各组成部分相互之间的耦合、或直接耦合、或通信连接可以是通过一些接口,设备或单元的间接耦合或通信连接,可以是电性的、机械的或其它形式的。
上述作为分离部件说明的单元可以是、或也可以不是物理上分开的,作为单元显示的部件可以是、或也可以不是物理单元,即可以位于一个地方,也可以分布到多个网络单元上;可以根据实际的需要选择其中的部分或全部单元来实现本实施例方案的目的。
另外,在本发明各实施例中的各功能单元可以全部集成在一个第二处理单元中,也可以是各单元分别单独作为一个单元,也可以两个或两个以上单元集成在一个单元中;上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。
工业实用性
本发明实施例的技术方案,汇聚层或网络管理层在来自用户层的数据中封装FIH;将封装完成的FIH数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过物理PHY层调制发送至电力线。MAC层通过PHY层接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层;汇聚层或网络管理层解析FIH中的各个参数,并根据解析结果对FIH数据中的数据部分进行相应处理。提高了网络中间节点对单播报文的转发性能,从而提高了网络整体的数据处理能力。同时网络节点对广播报文进行了有效抑制,使网络避免了广播风暴这样的灾难性事件。

Claims (15)

  1. 一种电力线网络通信的方法,所述方法包括:
    汇聚层或网络管理层接收到来自用户层的数据时,在所述数据中封装转发信息头FIH,所述FIH包括以下参数的部分或全部:目的终端设备标识DTEI、源终端设备标识STEI、下一跳终端设备标识NTEI、当前终端设备标识CTEI;
    将封装完成的FIH数据作为新的待发送数据发送给介质访问控制MAC层,所述MAC层对所述FIH数据进行相应处理后,通过物理PHY层调制发送至电力线。
  2. 根据权利要求1所述的电力线网络通信的方法,其中,所述在所述数据中封装转发信息头FIH,包括:
    将所述STEI、CTEI均设置为本站点TEI;
    提取所述数据的目的MAC,判断所述目的MAC是否为广播MAC;
    当所述目的MAC是广播MAC时,将所述DTEI、NTEI均设置为广播地址;
    当所述目的MAC是非广播MAC时,查找所述目的MAC对应的TEI,作为所述FIH中的DTEI;利用所述DTEI在路由表中索引出下一跳信息,作为所述FIH中的NTEI。
  3. 根据权利要求1或2所述的电力线网络通信的方法,其中,
    当进行广播业务时,所述FIH包括所述DTEI、CTEI;
    当进行单播业务时,所述FIH包括所述DTEI、STEI、NTEI。
  4. 一种电力线网络通信的方法,所述方法包括:
    MAC层通过PHY层接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层;
    汇聚层或网络管理层收到来自所述MAC层的FIH数据后,解析FIH 中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理;所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
  5. 根据权利要求4所述的电力线网络通信的方法,其中,所述解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理,包括:
    判断所述DTEI是否为广播地址;
    当所述DTEI是广播地址时,判断所述CTEI是否为本站点父节点的TEI;
    当所述CTEI不是本站点父节点的TEI时,丢弃所述FIH数据;
    当所述CTEI是所述本站点父节点的TEI时,对所述FIH数据中的数据部分进行复制后发送给用户层进行相应的处理。
  6. 根据权利要求5所述的电力线网络通信的方法,其中,所述方法还包括:
    当所述CTEI是所述本站点父节点的TEI时,修改所述FIH中的所述CTEI为本站点的TEI,并将修改后的FIH数据转发给本站点的子节点。
  7. 根据权利要求4所述的电力线网络通信的方法,其中,所述解析FIH中的各个参数,并根据解析结果对所述FIH数据中的数据部分进行相应处理,包括:
    判断所述DTEI是否为广播地址;
    当所述DTEI是非广播地址时,判断所述NTEI是否为本站点的TEI;
    当所述NTEI不是本站点的TEI时,丢弃所述FIH数据;
    当所述NTEI是本站点的TEI时,且所述DTEI不是本站点的TEI时,根据所述DTEI在路由表中索引出下一跳信息,并利用所述下一跳信息更新所述FIH中的NTEI,以及将所述CTEI修改为本站点的TEI后转发所述FIH数据;
    当所述NTEI是本站点的TEI时,且所述DTEI也是本站点的TEI时,将所述FIH数据中的数据部分发送给用户层进行相应的处理。
  8. 一种电力线网络通信的装置,所述装置包括:
    封装模块,配置为接收到来自用户层的数据时,在所述数据中封装FIH,所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI;
    发送模块,配置为将封装完成的FIH数据作为新的待发送数据发送给MAC层,所述MAC层对所述FIH数据进行相应处理后,通过PHY层调制发送至电力线。
  9. 根据权利要求8所述的电力线网络通信的装置,其中,所述封装模块包括:
    第一设置子模块,配置为将所述STEI、CTEI均设置为本站点TEI;
    判断子模块,配置为提取所述数据的目的MAC,判断所述目的MAC是否为广播MAC;
    第二设置子模块,配置为当所述目的MAC是广播MAC时,将所述DTEI、NTEI均设置为广播地址;
    第三设置子模块,配置为当所述目的MAC是非广播MAC时,查找所述目的MAC对应的TEI,作为所述FIH中的DTEI;利用所述DTEI在路由表中索引出下一跳信息,作为所述FIH中的NTEI。
  10. 根据权利要求8或9所述的电力线网络通信的装置,其中,
    当进行广播业务时,所述FIH包括所述DTEI、CTEI;
    当进行单播业务时,所述FIH包括所述DTEI、STEI、NTEI。
  11. 一种电力线网络通信的装置,所述装置包括:
    第一解析模块,配置为接收来自电力线的报文并处理,解析得到FIH数据后发送给汇聚层或网络管理层;
    第二解析模块,配置为收到来自所述MAC层的FIH数据后,解析FIH 中的各个参数;
    处理模块,配置为根据解析结果对所述FIH数据中的数据部分进行相应处理;所述FIH包括以下参数的部分或全部:DTEI、STEI、NTEI、CTEI。
  12. 根据权利要求11所述的电力线网络通信的装置,其中,所述第二解析模块包括:
    第一判断子模块,配置为判断所述DTEI是否为广播地址;
    第二判断子模块,配置为当所述DTEI是广播地址时,判断所述CTEI是否为本站点父节点的TEI;
    所述处理模块,还配置为当所述CTEI不是本站点父节点的TEI时,丢弃所述FIH数据;当所述CTEI是所述本站点父节点的TEI时,对所述FIH数据中的数据部分进行复制后发送给用户层进行相应的处理。
  13. 根据权利要求12所述的电力线网络通信的装置,其中,所述装置还包括:
    修改模块,配置为当所述CTEI是所述本站点父节点的TEI时,修改所述FIH中的所述CTEI为本站点的TEI;
    转发模块,将修改后的FIH数据转发给本站点的子节点。
  14. 根据权利要求11所述的电力线网络通信的装置,其中,所述第二解析模块包括:
    第一判断子模块,配置为判断所述DTEI是否为广播地址;
    第三判断子模块,配置为当所述DTEI是非广播地址时,判断所述NTEI是否为本站点的TEI;
    所述处理模块,还配置为当所述NTEI是本站点的TEI时,且所述DTEI不是本站点的TEI时,根据所述DTEI在路由表中索引出下一跳信息,并利用所述下一跳信息更新所述FIH中的NTEI,以及将所述CTEI修改为本站点的TEI后转发所述FIH数据;当所述NTEI是本站点的TEI时,且所述 DTEI也是本站点的TEI时,将所述FIH数据中的数据部分发送给用户层进行相应的处理。
  15. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令配置为执行权利要求1-7任一项所述的电力线网络通信的方法。
PCT/CN2016/083971 2015-09-10 2016-05-30 一种电力线网络通信的方法及装置、计算机存储介质 WO2017041534A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510574961.8 2015-09-10
CN201510574961.8A CN106533503B (zh) 2015-09-10 2015-09-10 一种电力线网络通信的方法及装置

Publications (1)

Publication Number Publication Date
WO2017041534A1 true WO2017041534A1 (zh) 2017-03-16

Family

ID=58240150

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083971 WO2017041534A1 (zh) 2015-09-10 2016-05-30 一种电力线网络通信的方法及装置、计算机存储介质

Country Status (2)

Country Link
CN (1) CN106533503B (zh)
WO (1) WO2017041534A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311805A (zh) * 2019-05-31 2019-10-08 国网上海市电力公司 一种基于微功率无线及电力线通讯的多源通讯网络
CN116599891A (zh) * 2023-07-14 2023-08-15 北京智芯半导体科技有限公司 双模通信方法、装置和计算机可读存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107124363B (zh) * 2017-04-10 2020-11-06 华为技术有限公司 报文广播方法及设备
CN107197502B (zh) * 2017-06-19 2020-03-24 深圳市盛路物联通讯技术有限公司 一种控制边缘路由节点更新路由信息表的方法及设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011349A1 (en) * 2005-06-09 2007-01-11 Lockheed Martin Corporation Information routing in a distributed environment
CN101217556A (zh) * 2007-01-05 2008-07-09 华为技术有限公司 路由协议增强方法和装置
CN102498694A (zh) * 2009-09-14 2012-06-13 日本电气株式会社 通信系统、转发节点、路径管理服务器、通信方法和程序
CN103918233A (zh) * 2011-11-03 2014-07-09 高通股份有限公司 多递送路线分组排序

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070011349A1 (en) * 2005-06-09 2007-01-11 Lockheed Martin Corporation Information routing in a distributed environment
CN101217556A (zh) * 2007-01-05 2008-07-09 华为技术有限公司 路由协议增强方法和装置
CN102498694A (zh) * 2009-09-14 2012-06-13 日本电气株式会社 通信系统、转发节点、路径管理服务器、通信方法和程序
CN103918233A (zh) * 2011-11-03 2014-07-09 高通股份有限公司 多递送路线分组排序

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110311805A (zh) * 2019-05-31 2019-10-08 国网上海市电力公司 一种基于微功率无线及电力线通讯的多源通讯网络
CN110311805B (zh) * 2019-05-31 2022-05-06 国网上海市电力公司 一种基于微功率无线及电力线通讯的多源通讯网络
CN116599891A (zh) * 2023-07-14 2023-08-15 北京智芯半导体科技有限公司 双模通信方法、装置和计算机可读存储介质
CN116599891B (zh) * 2023-07-14 2023-12-19 北京智芯半导体科技有限公司 双模通信方法、装置和计算机可读存储介质

Also Published As

Publication number Publication date
CN106533503A (zh) 2017-03-22
CN106533503B (zh) 2019-05-31

Similar Documents

Publication Publication Date Title
US10880817B2 (en) Wi-fi configuration method, Wi-Fi mobile terminal, and Wi-Fi device
US11196623B2 (en) Data packaging protocols for communications between IoT devices
US11109269B2 (en) Packet forwarding method and apparatus
CN109391500B (zh) 一种配置管理方法、装置及设备
US10499313B2 (en) Efficient hybrid resource and schedule management in time slotted channel hopping networks
US11050657B2 (en) Method, device and node for message transmission, and computer storage medium
WO2019019906A1 (zh) 一种通信方法、设备及存储介质
WO2017054576A1 (zh) 单播隧道建立方法、装置和系统
US10791051B2 (en) System and method to bypass the forwarding information base (FIB) for interest packet forwarding in an information-centric networking (ICN) environment
EP2708001A1 (en) Label switched routing to connect low power network domains
WO2017041534A1 (zh) 一种电力线网络通信的方法及装置、计算机存储介质
KR101991388B1 (ko) 이종 네트워크상에서의 컨텐츠 전송 방법 및 이를 위한 장치
US20180145905A1 (en) Data link layer-based communication method, device, and system
US20160127150A1 (en) Packet processing method and device
WO2019223795A1 (zh) 报文传输方法、通信装置和系统
WO2021197141A1 (zh) 业务处理方法、装置、设备及存储介质
US10270607B2 (en) Method and system for roamed client device handling
WO2015131739A1 (zh) 数据交互方法、基带处理单元、射频拉远单元及中继单元
US10645184B2 (en) Information transmission method, gateway, and controller
WO2011103761A1 (zh) 数据报文传输方法及接入设备
CN107181614B (zh) 一种wifi网络及其组网方法和数据传输方法
WO2015096734A1 (zh) 一种业务数据的下行传输方法及分组数据网关
WO2020147784A1 (zh) 报文解封装方法及装置、报文封装方法及装置、电子装置和存储介质
CN114338852B (zh) 一种封装基于Thread协议的数据包以获得IEEE 802.11物理帧的方法
CN114666745B (zh) 数据传输方法、节点控制方法、网络设备、网络系统

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

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

Country of ref document: EP

Kind code of ref document: A1