[go: up one dir, main page]

CN107124363B - Message broadcasting method and device - Google Patents

Message broadcasting method and device Download PDF

Info

Publication number
CN107124363B
CN107124363B CN201710229450.1A CN201710229450A CN107124363B CN 107124363 B CN107124363 B CN 107124363B CN 201710229450 A CN201710229450 A CN 201710229450A CN 107124363 B CN107124363 B CN 107124363B
Authority
CN
China
Prior art keywords
message
site
packet
relay station
routing table
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.)
Active
Application number
CN201710229450.1A
Other languages
Chinese (zh)
Other versions
CN107124363A (en
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201710229450.1A priority Critical patent/CN107124363B/en
Priority to CN202011097513.0A priority patent/CN112383478B/en
Publication of CN107124363A publication Critical patent/CN107124363A/en
Priority to PCT/CN2017/111719 priority patent/WO2018188337A1/en
Application granted granted Critical
Publication of CN107124363B publication Critical patent/CN107124363B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/806Broadcast or multicast traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a message broadcasting method and device. The method is applied to a power line network, wherein the power line network comprises a central coordinator, a relay station and a terminal station, and the method comprises the following steps: the relay station acquires a first destination address of the terminal station carried in the first message; the relay station searches whether the first destination address exists in a local branch routing table, wherein the branch routing table comprises destination addresses of reachable terminal stations; if the first destination address exists in the local branch routing table, the relay station broadcasts the first message. By adopting the embodiment of the invention, the message transmission reliability is ensured, the number of messages in the network is reduced, the message conflict scale is reduced, and the transmission efficiency is improved.

Description

报文广播方法及设备Message broadcasting method and device

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种报文广播方法及设备。The present invention relates to the field of communication technologies, and in particular, to a message broadcasting method and device.

背景技术Background technique

通信网络中传输的载波信号以报文为单元进行传输,且多采用全网广播以及代理广播等方式传输报文。The carrier signal transmitted in the communication network is transmitted in units of messages, and most of the messages are transmitted by means of network-wide broadcasting and proxy broadcasting.

所谓全网广播,就是发送站点在发送报文后,接收到报文的所有站点将该报文向周围站点进行广播,周围所有接收到广播报文的站点都会继续对报文进行广播,以此实现将报文在全网内进行广播以到达目的站点,在广播过程中,接收到报文的任意站点都不对报文进行屏蔽,如图1(a)所示,全网中的站点包括A1-A7号站点,A1号站点需要将报文发送至A6号站点,在A1号站点将报文在中继站点进行广播时,接收到报文的站点(如A2、A3、A4号站点)则分别将报文广播至A5、A6、A7号站点,使得网络中的报文数量过多,导致报文冲突严重,从而影响了报文的传输效率;全网中存在至少一个代理站点和/或至少一个非代理站点,而所谓代理广播,也就是在接收到报文的站点确定其自身为代理站点时,将报文进行广播,否则,对报文进行屏蔽的过程,而一旦关键路径上的代理站点未接收到报文,将中断报文的传输,如图1(b)所示,全网中的站点包括B1-B7号站点,其中,B3号站点为代理站点,B1号站点需要将报文发送至B6号站点,在报文转发过程中,若B3号站点未接收到报文而无法将报文转发至B6号站点,即使B2号和B4号站点接收到报文也无法将报文发送至目的站点,从而降低了报文传输的可靠性。The so-called network-wide broadcast means that after the sending site sends the message, all sites that receive the message broadcast the message to surrounding sites, and all surrounding sites that receive the broadcast message will continue to broadcast the message, so that Realize that the message is broadcast in the whole network to reach the destination site. During the broadcasting process, any site that receives the message does not block the message. As shown in Figure 1(a), the sites in the entire network include A1 -Site A7 and site A1 need to send the message to site A6. When site A1 broadcasts the message on the relay site, the sites that receive the message (such as sites A2, A3, and A4) will respectively Broadcasting the packets to sites A5, A6, and A7 makes the number of packets in the network too large, resulting in serious packet collisions, thus affecting the transmission efficiency of packets; there is at least one proxy site and/or at least one A non-proxy site, and the so-called proxy broadcast, that is, when the site receiving the message determines that it is a proxy site, it broadcasts the message, otherwise, the process of shielding the message, and once the proxy on the critical path The station does not receive the message and will interrupt the transmission of the message. As shown in Figure 1(b), the sites in the entire network include sites B1-B7, among which site B3 is the proxy site, and site B1 needs to send the message. The message is sent to site B6. During the message forwarding process, if site B3 does not receive the message and cannot forward the message to site B6, even if sites B2 and B4 receive the message, the message cannot be forwarded. sent to the destination site, thereby reducing the reliability of packet transmission.

发明内容SUMMARY OF THE INVENTION

本发明实施例所要解决的技术问题在于,提供一种报文广播方法及设备,在保证报文传输可靠性的同时,减少了网络中的报文数量,降低了报文冲突规模,提高了报文传输效率。The technical problem to be solved by the embodiments of the present invention is to provide a message broadcasting method and device, which can ensure the reliability of message transmission, reduce the number of messages in the network, reduce the scale of message conflict, and improve the text transmission efficiency.

第一方面,本发明实施例提供了一种报文广播方法,包括:中继站点中继站点获取第一报文中携带的终端站点的第一目的地址;所述中继站点在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址;若在所述本地的分支路由表中存在所述第一目的地址,则所述中继站点将所述第一报文进行广播。In a first aspect, an embodiment of the present invention provides a message broadcasting method, including: a relay site obtains a first destination address of a terminal site carried in a first message; the relay site is in a local branch routing table Find out whether the first destination address exists, and the branch routing table includes the destination address of the reachable terminal site; if the first destination address exists in the local branch routing table, the relay station will The first message is broadcast.

在本发明实施例第一方面中,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the first aspect of the embodiment of the present invention, by adopting the branch broadcast mode and transmitting the message according to the pre-updated branch routing table, the message is only forwarded on the path that exists in the branch to reach the terminal site, which is relatively low compared to the whole network. In terms of broadcast, the scale of network conflicts in message transmission is reduced, and the frequency of use of network-wide broadcast is reduced. Compared with proxy broadcast, even if the proxy site on the only path to the terminal site cannot successfully receive the message, The packet can also be transmitted through other paths in the branch to complete the packet transmission, which improves the reliability of the packet transmission.

结合第一方面,在第一方面的第一种实现方式中,所述方法还包括:若在所述本地的分支路由表中不存在所述第一目的地址,则所述中继站点不广播所述第一报文。With reference to the first aspect, in a first implementation manner of the first aspect, the method further includes: if the first destination address does not exist in the local branch routing table, the relay site does not broadcast all Describe the first message.

结合第一方面的第一种实现方式,在第一方面的第二种实现方式中,所述中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值;若接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址;将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;若接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。这样,屏蔽其他分支的串扰信号,保证本分支的相对准确率和较高的可靠性。With reference to the first implementation manner of the first aspect, in the second implementation manner of the first aspect, the relay station determines whether the packet signal quality of the received second packet reaches a preset signal quality threshold; The packet signal quality of the second packet reaches the preset signal quality threshold, then the second sending address carried in the second packet is obtained; the second sending address carried in the second packet is add to the local branch routing table; if the signal quality of the received second packet does not reach the preset signal quality threshold, the second packet is shielded. In this way, the crosstalk signals of other branches are shielded to ensure the relative accuracy and high reliability of this branch.

结合第一方面的第二种实现方式,在第一方面的第三种实现方式中,所述中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值,包括:判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the relay station determines whether the signal quality of the received second packet reaches a preset signal quality threshold, including: determining whether Whether the packet signal strength of the received second packet is greater than or equal to a preset signal strength threshold, or it is determined whether the packet communication success rate of the received second packet is greater than or equal to a preset communication success rate threshold.

结合第一方面,在第一方面的第四种实现方式中,所述中继站点获取第一报文携带的所述终端站点的第一目的地址之前,还包括:所述中继站点确定第一报文中携带的发送方式为分支广播。这样,根据获取的报文的具体广播方式以执行该报文所被指定的广播方式,而不用一一尝试其他报文转发方式,有助于提高了报文传输的效率。With reference to the first aspect, in a fourth implementation manner of the first aspect, before the relay station acquires the first destination address of the terminal station carried in the first packet, the method further includes: the relay station determining the first packet The sending method carried in the text is branch broadcast. In this way, according to the specific broadcast mode of the obtained packet, the specified broadcast mode of the packet is executed, instead of trying other packet forwarding modes one by one, which helps to improve the efficiency of packet transmission.

结合第一方面的第二种实现方式或第一方面的第三种实现方式,在第一方面的第五种实现方式中,所述将所述第一报文进行广播,包括:所述中继站点获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文;若所述中继站点在所述广播记录中不存在所述序列号标识,则所述中继站点将所述第一报文进行广播;若在所述广播记录中存在所述序列号标识,则所述中继站点不广播所述第一报文。这样,避免了对同一个广播报文进行多次广播,避免了广播风暴。With reference to the second implementation manner of the first aspect or the third implementation manner of the first aspect, in a fifth implementation manner of the first aspect, the broadcasting of the first packet includes: the relay station Click to obtain the serial number identifier of the first message, and check whether the serial number identifier exists in the broadcast record, and the serial number identifier is used to uniquely identify the first message; If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first message; if the serial number identifier exists in the broadcast record, the relay station does not broadcast the first message. In this way, multiple broadcasts of the same broadcast message are avoided, and broadcast storms are avoided.

第二方面,本发明实施例提供了报文广播设备,包括:地址获取模块,用于获取第一报文中携带的所述终端站点的第一目的地址;地址查找模块,用于在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址;报文广播模块,用于若在所述本地的分支路由表中存在所述第一目的地址,则将所述第一报文进行广播。In a second aspect, an embodiment of the present invention provides a message broadcasting device, including: an address obtaining module for obtaining the first destination address of the terminal station carried in the first message; and an address searching module for locally Find out whether the first destination address exists in the branch routing table, and the branch routing table includes the destination address of the reachable terminal station; the message broadcasting module is used for if the first destination address exists in the local branch routing table. If a destination address is present, the first packet is broadcast.

在本发明实施例第二方面中,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the second aspect of the embodiment of the present invention, by adopting the branch broadcast mode and transmitting the message according to the pre-updated branch routing table, the message is only forwarded on the path that exists in the branch to reach the terminal site, and the whole network is relatively In terms of broadcast, the scale of network conflicts in message transmission is reduced, and the frequency of use of network-wide broadcast is reduced. Compared with proxy broadcast, even if the proxy site on the only path to the terminal site cannot successfully receive the message, The packet can also be transmitted through other paths in the branch to complete the packet transmission, which improves the reliability of the packet transmission.

结合第二方面,在第二方面的第一种实现方式中,所述报文广播设备还包括:所述报文广播设备还包括:报文屏蔽模块,用于若在所述本地的分支路由表中不存在所述第一目的地址,则不广播所述第一报文。With reference to the second aspect, in the first implementation manner of the second aspect, the message broadcasting device further includes: the message broadcasting device further includes: a message screening module, configured to route if the local branch routes If the first destination address does not exist in the table, the first packet is not broadcast.

结合第二方面,在第二方面的第二种实现方式中,所述报文广播设备还包括信号判断模块,具体用于:判断接收到第二报文的报文信号质量是否达到预设信号质量阈值;若接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址;将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;若接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。这样,屏蔽其他分支的串扰信号,保证本分支的相对准确率和较高的可靠性。With reference to the second aspect, in a second implementation manner of the second aspect, the message broadcasting device further includes a signal judging module, which is specifically configured to: determine whether the signal quality of the received second message reaches a preset signal quality threshold; if the signal quality of the received second packet reaches the preset signal quality threshold, obtain the second sending address carried in the second packet; put the second packet in the The carried second sending address is added to the local branch routing table; if the packet signal quality of the received second packet does not reach the preset signal quality threshold, the second packet is shielded. In this way, the crosstalk signals of other branches are shielded to ensure the relative accuracy and high reliability of this branch.

结合第二方面的第二种实现方式,在第二方面的第三种实现方式中,所述信号判断模块具体用于:判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。With reference to the second implementation manner of the second aspect, in the third implementation manner of the second aspect, the signal judging module is specifically configured to: determine whether the signal strength of the received message of the second message is greater than or equal to Preset the signal strength threshold, or determine whether the packet communication success rate of the received second packet is greater than or equal to the preset communication success rate threshold.

结合第二方面,在第二方面的第四种实现方式中,所述报文广播设备还包括广播方式确定模块,具体用于:确定第一报文中携带的发送方式为分支广播。这样,根据获取的报文的具体广播方式以执行该报文所被指定的广播方式,而不用一一尝试其他报文转发方式,有助于提高了报文传输的效率。With reference to the second aspect, in a fourth implementation manner of the second aspect, the message broadcasting device further includes a broadcasting mode determining module, which is specifically configured to: determine that the sending mode carried in the first message is branch broadcasting. In this way, according to the specific broadcast mode of the obtained packet, the specified broadcast mode of the packet is executed, instead of trying other packet forwarding modes one by one, which helps to improve the efficiency of packet transmission.

结合第二方面,在第二方面的第五种实现方式中,所述报文广播模块具体用于:获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文;若在所述广播记录中不存在所述序列号标识,则将所述第一报文进行广播;若在所述广播记录中存在所述序列号标识,则不广播所述第一报文。这样,避免了对同一个广播报文的多次广播,避免了广播风暴。With reference to the second aspect, in a fifth implementation manner of the second aspect, the message broadcasting module is specifically configured to: obtain the sequence number identifier of the first message, and search for the presence of the sequence in the broadcast record The serial number identifier is used to uniquely identify the first message; if the serial number identifier does not exist in the broadcast record, the first message will be broadcast; If the sequence number identifier exists in the record, the first message is not broadcast. In this way, multiple broadcasts of the same broadcast message are avoided, and broadcast storms are avoided.

结合第二方面的第二种实现方式或第二方面的第三种实现方式,在第二方面的第六种实现方式中,所述第一报文为用于传输数据的报文,所述第二报文为用于更新所述本地的分支路由表的报文。In combination with the second implementation manner of the second aspect or the third implementation manner of the second aspect, in a sixth implementation manner of the second aspect, the first message is a message for transmitting data, and the The second message is a message for updating the local branch routing table.

在一个可能的设计中,报文广播设备的结构中包括处理器和收发器。所述处理器用于执行本发明第一方面提供的报文广播方法。可选的,还可以包括存储器,所述存储器用于存储支持报文广播设备执行上述方法的应用程序代码和路由表项等,所述处理器被配置为用于执行所述存储器中存储的应用程序。In one possible design, the structure of the message broadcast device includes a processor and a transceiver. The processor is configured to execute the message broadcasting method provided by the first aspect of the present invention. Optionally, it may also include a memory, where the memory is used to store application code and routing table entries that support the message broadcasting device to perform the above method, and the processor is configured to execute the application stored in the memory. program.

通过实施本发明实施例,当前中继站点获取第二报文携带的第二发送地址,并将该第二发送地址添加至本地的分支路由表中,以更新本地的分支路由表。当需要在该分支路由上传输第一报文时,中继站点获取第一报文携带的第一目的地址,并在本地的分支路由表中查找是否存在该第一目的地址,若存在,则将第一报文在分支内进行广播,否则,不广播第一报文。通过采用本发明实施例,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。By implementing the embodiment of the present invention, the current relay station obtains the second sending address carried in the second packet, and adds the second sending address to the local branch routing table to update the local branch routing table. When the first packet needs to be transmitted on the branch route, the relay station obtains the first destination address carried by the first packet, and checks whether the first destination address exists in the local branch routing table. The first packet is broadcast in the branch, otherwise, the first packet is not broadcast. By adopting the embodiment of the present invention, by adopting the branch broadcast mode and transmitting the message according to the pre-updated branch routing table, the message can only be forwarded on the path that exists in the branch to reach the terminal site, compared with the whole network broadcast. , which reduces the scale of network conflicts in message transmission and the frequency of network-wide broadcasting. Compared with proxy broadcasting, even if the proxy site on the only path to the terminal site cannot successfully receive the message, it can pass the Other paths in the branch transmit packets to complete packet transmission, which improves the reliability of packet transmission.

附图说明Description of drawings

为了更清楚地说明本发明实施例或背景技术中的技术方案,下面将对本发明实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present invention or the background technology, the accompanying drawings required in the embodiments or the background technology of the present invention will be described below.

图1(a)是本发明实施例提供的一种全网广播路线的逻辑结构示意图;1 (a) is a schematic diagram of the logical structure of a network-wide broadcast route provided by an embodiment of the present invention;

图1(b)是本发明实施例提供的一种代理广播路线的逻辑结构示意图;1(b) is a schematic diagram of the logical structure of a proxy broadcast route provided by an embodiment of the present invention;

图2是本发明实施例提供的一种电力线分支路线的逻辑结构示意图;2 is a schematic diagram of a logical structure of a power line branch route provided by an embodiment of the present invention;

图3是本发明实施例提供的一种分支广播路线的逻辑结构示意图;3 is a schematic diagram of a logical structure of a branch broadcast route provided by an embodiment of the present invention;

图4是本发明实施例提供的一种分支路由形成方法的流程示意图;4 is a schematic flowchart of a method for forming a branch route according to an embodiment of the present invention;

图5是本发明实施例提供的一种数据报的报文结构示意图;5 is a schematic diagram of a message structure of a datagram provided by an embodiment of the present invention;

图6是本发明实施例提供的一种分支路由形成界面示意图;6 is a schematic diagram of a branch route forming interface provided by an embodiment of the present invention;

图7(a)是本发明实施例提供的一种站点通信范围的界面示意图;7(a) is a schematic interface diagram of a site communication range provided by an embodiment of the present invention;

图7(b)是本发明实施例提供的另一种站点通信范围的界面示意图;7(b) is a schematic interface diagram of another station communication range provided by an embodiment of the present invention;

图8是本发明实施例提供的一种单播路线的逻辑结构示意图;8 is a schematic diagram of a logical structure of a unicast route provided by an embodiment of the present invention;

图9是本发明实施例提供的另一种报文广播方法的流程示意图;9 is a schematic flowchart of another message broadcasting method provided by an embodiment of the present invention;

图10是本发明实施例提供的一种分支路由传输界面示意图;10 is a schematic diagram of a branch routing transmission interface provided by an embodiment of the present invention;

图11是本发明实施例提供的一种分支广播设备的结构示意图;11 is a schematic structural diagram of a branch broadcasting device provided by an embodiment of the present invention;

图12是本发明实施例提供的另一种分支广播设备的结构示意图。FIG. 12 is a schematic structural diagram of another branch broadcasting device provided by an embodiment of the present invention.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行描述。The technical solutions in the embodiments of the present invention will be described below with reference to the accompanying drawings in the embodiments of the present invention.

本发明的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the description and claims of the present invention and the accompanying drawings are used to distinguish different objects, rather than to describe a specific order. . Furthermore, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes unlisted steps or units, or optionally also includes For other steps or units inherent to these processes, methods, products or devices.

在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本发明的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference herein to an "embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor a separate or alternative embodiment that is mutually exclusive of other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

本发明实施例中的技术方案适用于电力线网络。下面以电力线网络为例对本发明实施例的应用场景进行描述。所谓电力线网络,就是指以电力线作为共享媒介来传输载波通信信号,形成一个由电力线上的通信设备组成的共享网络。通常,电力线网络为一个多级多中继网络拓扑结构。这是因为,在理想条件下,电力线上传输的载波通信信号会被电力线上所有的通信设备接收成功,而在实际应用中,由于信号衰减以及噪声等因素的影响使得载波通信信号的传输距离相对有限,但通常电力线所连接的范围又较大,因此,为了将载波通信信号传输至终端站点,通常采用中继站点以扩大载波通信信号的传输距离,这样,就形成了多级多中继网络拓扑的电力线网络。The technical solutions in the embodiments of the present invention are applicable to power line networks. The following describes an application scenario of the embodiment of the present invention by taking a power line network as an example. The so-called power line network refers to the transmission of carrier communication signals using the power line as a shared medium to form a shared network composed of communication devices on the power line. Usually, the power line network is a multi-level multi-relay network topology. This is because, under ideal conditions, the carrier communication signal transmitted on the power line will be successfully received by all communication devices on the power line, but in practical applications, due to the influence of signal attenuation and noise, the transmission distance of the carrier communication signal is relatively It is limited, but usually the range connected by the power line is large. Therefore, in order to transmit the carrier communication signal to the terminal site, a relay site is usually used to expand the transmission distance of the carrier communication signal, thus forming a multi-level multi-relay network topology. power line network.

如图2所示为本实施例提供的一种电力线网络的逻辑结构示意图,其中的通信设备包括:中央协调器(Central Coordinator,CCO),中继站点以及终端站点,这些设备之间通过电力线连接。图中所示结构包括3个层级,第一行设备所在的层级为第一级,中间一行设备所在的层级为第二级,最后一行设备所在的层级则为第三级。所述中央协调器用于创建和发送报文;所述中继站点可以为提供中继服务的电脑系统设备,用于接收和转发报文,从而将报文传输至终端站点,为了传输更远的距离,通常可将报文转发至下一级中继站点,并由下一级中继站点继续转发报文;所述终端站点可以为网络终端设备,如电表(station)、移动电话(cellphone)、智能手机(smartphone)、计算机(computer)、平板电脑(tablet computer)、个人数码助理(personal digital assistant,PDA)、移动互联网设备(mobile Internet device,MID)等,用于接收并处理报文。FIG. 2 is a schematic diagram of the logical structure of a power line network provided in this embodiment, wherein the communication devices include: a central coordinator (Central Coordinator, CCO), a relay site and a terminal site, and these devices are connected by a power line. The structure shown in the figure includes three levels, the level where the first row of devices is located is the first level, the level where the middle row of devices is located is the second level, and the level where the last row of devices is located is the third level. The central coordinator is used to create and send messages; the relay site can be a computer system device that provides relay services for receiving and forwarding messages, so as to transmit messages to terminal sites, in order to transmit longer distances , usually the message can be forwarded to the next-level relay site, and the next-level relay site can continue to forward the message; the terminal site can be a network terminal device, such as a meter (station), a mobile phone (cellphone), a smart phone (smartphone), computer (computer), tablet computer (tablet computer), personal digital assistant (personal digital assistant, PDA), mobile Internet device (mobile Internet device, MID), etc., are used for receiving and processing messages.

本发明实施例中,中央协调器创建第一报文后将第一报文在分支内进行广播,接收到第一报文的中继站点获取第一报文携带的该第一报文所要到达的终端站点的第一目的地址,并在存储有多个地址的本地的分支路由表中查找是否存在该第一目的地址,若存在,则表明当前中继站点将第一报文广播出去后有到达终端站点的路由,因此当前中继站点将第一报文继续广播,若不存在,则表明当前站点不存在到达终端站点的路由,此时当前中继站点不广播该第一报文。如图3所示,全网中的站点包括D1-D14号站点,D1号站点需要将报文发送至D10号站点,在D1站点将报文广播后,D2-D6站点都接收到报文,此时,这些站点在各自的分支路由表中查找是否存在D10站点的地址,若存在(如D4、D5),则分别将报文广播出去,若不存在(如D2、D3、D6),则不广播该报文。在D4、D5将报文广播出去后,接收到报文的中继站点采用相同的方式继续传输报文,直至到达终端站点D10。中继站点通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the embodiment of the present invention, after the central coordinator creates the first message, it broadcasts the first message in the branch, and the relay station that receives the first message obtains the destination of the first message carried by the first message. The first destination address of the terminal site, and check whether the first destination address exists in the local branch routing table that stores multiple addresses. If it exists, it indicates that the current relay site broadcasts the first packet and reaches the terminal. Therefore, the current relay station continues to broadcast the first packet. If it does not exist, it means that the current station does not have a route to the terminal station. At this time, the current relay station does not broadcast the first packet. As shown in Figure 3, the sites in the entire network include sites D1-D14. Site D1 needs to send the message to site D10. After site D1 broadcasts the message, sites D2-D6 all receive the message. At this time, these sites look up whether the address of site D10 exists in their respective branch routing tables. If there is (such as D4, D5), they will broadcast the message respectively. If not (such as D2, D3, D6), then This message is not broadcast. After D4 and D5 broadcast the message, the relay station that receives the message continues to transmit the message in the same manner until reaching the terminal site D10. The relay site transmits packets according to the pre-updated branch routing table by using branch broadcast, so that the packets are only forwarded on the path that exists in the branch to the terminal site. Compared with the whole network broadcast, the number of packets is reduced. The scale of network conflict in transmission reduces the frequency of use of network-wide broadcast. Compared with proxy broadcast, even if the proxy site on the only path to the terminal site cannot successfully receive the message, it can pass through other paths in the branch. The message is transmitted to complete the message transmission, which improves the reliability of the message transmission.

以下通过图4—图10所示的实施例对报文广播方法进行详细描述。The message broadcasting method will be described in detail below through the embodiments shown in FIG. 4 to FIG. 10 .

请参阅图4,图4是本发明实施例提供的一种报文本地的分支路由表的形成过程的流程示意图。下面以中继站点为例进行描述,所述方法包括:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a process of forming a local branch routing table of a message according to an embodiment of the present invention. The following describes a relay site as an example. The method includes:

步骤S101:中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值。Step S101: The relay station determines whether the signal quality of the received second packet reaches a preset signal quality threshold.

具体的,报文是网络中信息交换与传输的数据单元,即站点一次性要发送的数据块。报文中携带了完整的数据信息,如发送地址OSTEI、目的地址ODTEI、当前中继站点的上一跳站点的地址STEI、当前中继站点将报文转发至终端站点时所经过的下一跳站点的地址DTEI、目的端口,发送源端口、数据长度、所用协议、加密等等。通常,这些信息可设置在报文头部。在本发明实施例中,将所要传输的报文作为第二报文,即第二报文为用于更新所述本地的分支路由表的报文。Specifically, a message is a data unit for information exchange and transmission in the network, that is, a data block to be sent by a station at one time. The packet carries complete data information, such as the sending address OSTEI, the destination address ODTEI, the address STEI of the previous hop site of the current relay site, and the address of the next hop site that the current relay site passes through when forwarding the message to the terminal site. Address DTEI, destination port, source port, data length, protocol used, encryption, etc. Usually, this information can be set in the packet header. In this embodiment of the present invention, the message to be transmitted is taken as the second message, that is, the second message is a message used to update the local branch routing table.

例如,如图5所示为一种IP数据报的报文结构示意图,包括数据部分以及首部(头部)部分,其中首部包含有源IP地址(发送地址OSTEI)、目的IP地址(目的地址ODTEI)等信息。For example, as shown in FIG. 5 is a schematic diagram of the packet structure of an IP datagram, including a data part and a header (header) part, wherein the header contains a source IP address (sending address OSTEI), a destination IP address (destination address ODTEI) ) and other information.

所述报文信号质量用于描述两站点之间的通信质量,并根据通信质量衡量两站点之间的距离,进而判断两站点是否属于同一分支网络。对于多个站点而言,例如,若有站点A能够接收到站点B和站点C所发送的报文,站点A判断接收到站点B发送的报文的报文信号质量高于站点C发送的报文的报文信号质量,所以,站点A可以根据报文信号质量确定,相对于站点C,站点B与站点A的距离更近一些,从而属于同一物理分支的可能性更大一些。The packet signal quality is used to describe the communication quality between the two sites, and the distance between the two sites is measured according to the communication quality, so as to determine whether the two sites belong to the same branch network. For multiple sites, for example, if site A can receive the packets sent by site B and site C, site A judges that the signal quality of the message received by the message sent by site B is higher than that of the message sent by site C. Therefore, site A can be determined based on the signal quality of the packets. Compared with site C, the distance between site B and site A is closer, so it is more likely to belong to the same physical branch.

所述报文信号质量可以包括报文信号强度或者报文通信成功率,此处不作具体限定。The packet signal quality may include packet signal strength or packet communication success rate, which is not specifically limited here.

其中,根据报文通信成功率判断两站点是否属于同一物理分支可以理解为,两个站点之间相互通信,其中一个站点对另一个站点发送的多个报文的负荷进行解析并统计,通过解析的成功率确定两站点是否为同一物理分支内的站点。例如,站点A1接收到的站点D1持续发送的10个报文后,分别对这10个报文的负荷进行解析,若其中9个都无法成功解析,则可认为站点A1接收到站点D1发送的报文的报文通信功率为10%,而通常设定通信成功率阈值为20%,因此,可认为站点A1与站点D1不属于同一物理分支。Among them, judging whether two sites belong to the same physical branch according to the success rate of message communication can be understood as that the two sites communicate with each other, and one site parses and counts the loads of multiple packets sent by the other site. The success rate determines whether two sites are within the same physical branch. For example, after station A1 receives 10 packets continuously sent by station D1, it parses the load of these 10 packets respectively. If 9 of them cannot be successfully parsed, it can be considered that station A1 has received the packets sent by station D1. The message communication power of the message is 10%, and the communication success rate threshold is usually set to 20%. Therefore, it can be considered that the site A1 and the site D1 do not belong to the same physical branch.

根据报文信号强度判断两站点是否属于同一物理分支可以理解为,两个站点之间相互通信,其中一个站点对另一个站点发送的报文的信噪比进行计算并统计,从而确定两站点是否为同一物理分支内的站点。例如,站点A2接收到的站点D2发送的报文后,计算该报文的信噪比,而通常设定信噪比阈值属于-5~0db范围,若所计算的信噪比小于0db,则可认为站点A1与站点D1不属于同一物理分支。Judging whether two sites belong to the same physical branch according to the signal strength of the message can be understood as the two sites communicate with each other, and one site calculates and counts the signal-to-noise ratio of the message sent by the other site to determine whether the two sites are for sites within the same physical branch. For example, after station A2 receives the message sent by site D2, it calculates the signal-to-noise ratio of the message. Usually, the signal-to-noise ratio threshold is set in the range of -5 to 0db. If the calculated signal-to-noise ratio is less than 0db, then It can be considered that site A1 and site D1 do not belong to the same physical branch.

具体实施中,如图6所示为第二报文传输的界面示意图,在5号站点将第二报文发送至4号站点的过程中,5号站点通信范围内的其他站点如41、42、43、44也可以接收到该报文,若接收到该报文的站点(如44)检测到报文信号强度小于或者等于预设信号强度阈值(信号强度差),或者检测到与5号站点的报文通信成功率小于或者等于预设通信成功率阈值(通信成功率较低),则确定该站点与5号站点不属于同一分支网络,此时,44号站点选择对第二报文进行屏蔽,从而可以减少不同分支之间信号的串扰;若检测到信号强度好或者通信成功率高,则确定该站点与5号站点属于同一分支线路(如41、4、42)。In the specific implementation, as shown in FIG. 6 is a schematic diagram of the interface for the transmission of the second message. During the process of site 5 sending the second message to site 4, other sites within the communication range of site 5 such as 41 and 42 , 43, 44 can also receive the message, if the station that receives the message (such as 44) detects that the signal strength of the message is less than or equal to the preset signal strength threshold (signal strength difference), or detects that it is different from No. 5 The message communication success rate of the site is less than or equal to the preset communication success rate threshold (the communication success rate is low), then it is determined that the site and site 5 do not belong to the same branch network. At this time, site 44 selects the second message Shielding can reduce the crosstalk of signals between different branches; if it is detected that the signal strength is good or the communication success rate is high, it is determined that the site and the No. 5 site belong to the same branch line (eg 41, 4, 42).

其中,通信范围是指本站点与其他站点之间的通信范围。即一个站点发送载波通信信号,而其他站点具有接收成功该载波通信信号的可能性,若接收成功,则说明该接收到载波通信信号的站点在该发送载波通信信号的站点的通信范围内。当然,由于涉及噪声,信号衰减等因素,通信范围是有限的。如图7(a)所示,A、B、C为电力线网络中的三个分支线路,当各个分支线路相距较远时,可认为各个站点与其对应的通信站点属于同一分支线路(通信范围如图中虚线所示)。Among them, the communication range refers to the communication range between this site and other sites. That is, a station sends a carrier communication signal, and other stations have the possibility of successfully receiving the carrier communication signal. If the reception is successful, it means that the station receiving the carrier communication signal is within the communication range of the station sending the carrier communication signal. Of course, the communication range is limited due to factors such as noise, signal attenuation, etc. involved. As shown in Figure 7(a), A, B, and C are three branch lines in the power line network. When each branch line is far apart, it can be considered that each site and its corresponding communication site belong to the same branch line (the communication range is as follows: shown by the dotted line in the figure).

另外,如图7(b)所示,当各个分支线路相距较近时,各个站点对应的通信站点可以包含同一分支线路的站点,还可以包含不同分支线路的站点(通信范围如图中虚线所示),但同一分支线路和不同分支线路上的信号强弱不同。In addition, as shown in Figure 7(b), when each branch line is relatively close, the communication site corresponding to each site may include the site of the same branch line, and may also include the site of different branch lines (the communication range is indicated by the dotted line in the figure). shown), but the signal strength is different on the same branch line and different branch lines.

步骤S102:若所述中继站点接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址。Step S102: If the packet signal quality of the second packet received by the relay station reaches the preset signal quality threshold, obtain a second sending address carried in the second packet.

具体的,所述第二报文携带的地址信息可以包括第二发送地址,还可以包括当前中继站点的上一跳地址,还可以包括第二目的地址以及当前中继站点的下一跳地址。Specifically, the address information carried in the second packet may include the second sending address, the previous hop address of the current relay site, the second destination address, and the next hop address of the current relay site.

具体实施中,当中继站点在接收到第二报文时,提取第二报文携带的地址信息,如第二发送地址OSTEI以及当前中继站点的上一跳地址STEI,还可以包括第二目的地址ODTEI以及当前中继站点的下一跳地址DTEI等。例如,如图6所示,从5号站点发送至1号站点的报文为第二报文,采用单播方式进行发送,在发送过程中,若当前中继站点为3号站点,即报文由4号站点发送至3号站点,报文携带的地址信息OSTEI为5,ODTEI为1,STEI为4、DTEI为3。In a specific implementation, when the relay station receives the second packet, it extracts address information carried in the second packet, such as the second sending address OSTEI and the current relay station's previous hop address STEI, and may also include the second destination address. ODTEI and the next hop address DTEI of the current relay site, etc. For example, as shown in Figure 6, the message sent from site 5 to site 1 is the second message, which is sent in unicast mode. During the sending process, if the current relay site is site 3, the message is the second message. Sent from site 4 to site 3, the address information carried in the packet is OSTEI 5, ODTEI 1, STEI 4, and DTEI 3.

其中,所谓单播方式,即报文由指定的站点对应发给另一指定的站点的过程,实现一对一发送。如图8所示,全网中的站点包括C1-C7号站点,C1号站点需要将报文发送至C6号站点,在报文转发过程中,若C1号根据最优路径(最短路径、信号质量最优路径等)原则动态选择下一跳站点为C3号站点,基于同样的方式,C3号在接收到报文后,将报文对应发送至目的站点C6,在此过程中实现一对一的转发。Among them, the so-called unicast mode is a process in which a message is sent from a designated site to another designated site, so as to realize one-to-one sending. As shown in Figure 8, the sites in the entire network include sites C1-C7. Site C1 needs to send packets to site C6. The next hop site is dynamically selected as site C3 based on the principle of optimal quality path, etc., based on the same method, after C3 receives the message, it sends the message to the destination site C6, and realizes one-to-one in this process. 's forwarding.

事实上,无论以何种方式发送报文,中继站点接收到的都属于广播报文,区别在于接收站点是否对报文进行转发。也就是说,采用单播报文的方式,接收到报文的站点还可以为目标站点附近的站点,如图8中,在报文由C1单播至C3的过程中,C2和C4也可能接收到报文,但C2和C4不转发接收到的报文。In fact, no matter how the message is sent, what the relay station receives is a broadcast message, and the difference lies in whether the receiving site forwards the message. That is to say, by unicasting the message, the station that receives the message can also be a site near the target site. As shown in Figure 8, in the process of unicasting the message from C1 to C3, C2 and C4 may also receive the message. received packets, but C2 and C4 do not forward the received packets.

步骤S103:所述中继站点将所述第二发送地址添加到所述本地的分支路由表中。Step S103: The relay station adds the second sending address to the local branch routing table.

具体的,所述本地的分支路由表中包括可到达的终端站点的目的地址ODTEI。当前中继站点将获取的第二发送地址添加到本地的分支路由表中,以实现对该分支路由表的更新。Specifically, the local branch routing table includes the destination address ODTEI of the reachable terminal site. The current relay site adds the acquired second sending address to the local branch routing table, so as to update the branch routing table.

如图6中,以当前中继站点为3号站点为例,接收到的第二报文的地址信息为:OSTEI为5,ODTEI为1,上一跳地址STEI为4,此时,3号站点将5号站点的地址添加到本地的分支路由表中。也就是说,此时,形成了3号站点到5号站点的路由。As shown in Figure 6, taking the current relay site as site 3 as an example, the address information of the received second packet is: OSTEI is 5, ODTEI is 1, and the previous hop address STEI is 4. At this time, site 3 is Add the address of site 5 to the local branch routing table. That is to say, at this time, a route from site 3 to site 5 is formed.

例如,如表1所示为图6中3号站点本地的分支路由表,其中包括ODTEI,当3号站点获取了5号站点的地址后,将该地址添加到表1的ODTEI,从而得到表2。For example, as shown in Table 1, the local branch routing table of site No. 3 in Figure 6 includes ODTEI. After site No. 3 obtains the address of site No. 5, the address is added to the ODTEI of Table 1, thereby obtaining the table 2.

可选的,如表1所示,该分支路由表中还可包括站点对应的层级Level以及将报文从当前站点转发到ODTEI时的下一跳地址Nexthop,若ODTEI为5号站点的地址,表明5号站点所在的层级为4,且3号站点通过将报文转发给Nexthop(4号站点)后由4号站点再进行转发。Optionally, as shown in Table 1, the branch routing table may also include the level corresponding to the site and the next hop address Nexthop when forwarding the message from the current site to ODTEI. If ODTEI is the address of site No. 5, It indicates that the level where site 5 is located is 4, and site 3 forwards the message to Nexthop (site 4) and then forwards it by site 4.

表1Table 1

ODTEIODTEI LevelLevel NexthopNexthop 44 33 44 22 11 22 11 00 22

表2Table 2

ODTEIODTEI LevelLevel NexthopNexthop 44 33 44 22 11 22 11 00 22 55 44 44

可选的,在如图4所示的实施场景中,所述步骤S102之后,还包括:Optionally, in the implementation scenario shown in FIG. 4 , after the step S102, the method further includes:

获取所述第二报文中携带的下一跳地址,判断当前中继站点的本地地址与下一跳地址是否匹配,若所述本地地址与所述下一跳地址相匹配,则对所述第二报文进行转发,并执行步骤S104;若所述本地地址与所述下一跳地址不匹配,则对所述第二报文不转发(屏蔽所述第二报文)。Obtain the next hop address carried in the second packet, and determine whether the local address of the current relay site matches the next hop address. The second packet is forwarded, and step S104 is executed; if the local address does not match the next hop address, the second packet is not forwarded (the second packet is shielded).

具体的,所述下一跳地址DTEI即为当前中继站点的上一跳站点将第二报文发送至第二目的地址时将报文进行转发的下一跳站点的地址,也就是说,4号站点将报文发送至1号站点时,先转发给3号站点,那么此时的DTEI为3。Specifically, the next-hop address DTEI is the address of the next-hop site that forwards the packet when the previous-hop site of the current relay site sends the second packet to the second destination address, that is, 4 When station No. 1 sends a packet to station No. 1, it will be forwarded to station No. 3 first, then the DTEI at this time is 3.

例如,5号站点将第二报文发送至4号站点时,41和42也接收到报文,但根据第二报文中携带的DETI,41(42)确定本地地址与第二报文的DETI不匹配,从而确定此报文不是发送给自己的,因此,不转发此报文,而4号站点确定地址匹配,则对该报文进行转发。For example, when site 5 sends the second message to site 4, 41 and 42 also receive the message, but according to the DETI carried in the second message, 41 (42) determines the difference between the local address and the second message The DETI does not match, so it is determined that the packet is not sent to itself. Therefore, the packet is not forwarded, but the station No. 4 determines that the address matches and forwards the packet.

可选的,若所述中继站点接收到所述第二报文的报文信号质量小于所述预设信号质量阈值,则执行步骤S104:所述中继站点屏蔽所述第二报文。Optionally, if the packet signal quality of the second packet received by the relay station is lower than the preset signal quality threshold, step S104 is performed: the relay station blocks the second packet.

在本发明实施例中,当前中继站点获取第二报文携带的第二发送地址,并将该第二发送地址添加至本地的分支路由表中,以更新本地的分支路由表。当需要在该分支路由上传输第一报文时,中继站点获取第一报文携带的第一目的地址,并在本地的分支路由表中查找是否存在该第一目的地址,若存在,则将第一报文在分支内进行广播,否则,不广播第一报文。通过采用本发明实施例,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In this embodiment of the present invention, the current relay station acquires the second sending address carried in the second packet, and adds the second sending address to the local branch routing table to update the local branch routing table. When the first packet needs to be transmitted on the branch route, the relay station obtains the first destination address carried by the first packet, and checks whether the first destination address exists in the local branch routing table. The first packet is broadcast in the branch, otherwise, the first packet is not broadcast. By adopting the embodiment of the present invention, by adopting the branch broadcast mode and transmitting the message according to the pre-updated branch routing table, the message can only be forwarded on the path that exists in the branch to reach the terminal site, compared with the whole network broadcast. , which reduces the scale of network conflicts in message transmission and the frequency of network-wide broadcasting. Compared with proxy broadcasting, even if the proxy site on the only path to the terminal site cannot successfully receive the message, it can pass the Other paths in the branch transmit packets to complete packet transmission, which improves the reliability of packet transmission.

请参阅图9,图9是本发明另一实施例提供的报文广播方法的流程示意图。下面以中继站点为例进行描述,所述方法包括:Please refer to FIG. 9. FIG. 9 is a schematic flowchart of a message broadcasting method provided by another embodiment of the present invention. The following describes a relay site as an example. The method includes:

步骤S201:中继站点确定第一报文中携带的发送方式为分支广播。Step S201: The relay station determines that the sending mode carried in the first packet is branch broadcast.

具体的,报文的发送方式包括单播、全网广播、分支广播以及代理广播等多种方式,对应的发送字段分别为UNICAST、BROADCAST、BRANCH_BROADCAST、PROXY_BROADCAST等,用于确定将第一报文采用何种方式进行发送。Specifically, the sending methods of the message include unicast, network-wide broadcast, branch broadcast, and proxy broadcast. The corresponding sending fields are UNICAST, BROADCAST, BRANCH_BROADCAST, PROXY_BROADCAST, etc. how to send.

其中,第一报文为用于传输数据的报文。该第一报文同样也具有类似于图5所示的报文格式,此处不再赘述。The first message is a message for transmitting data. The first message also has a message format similar to that shown in FIG. 5 , and details are not repeated here.

步骤S202:所述中继站点获取第一报文中携带的终端站点的第一目的地址。Step S202: The relay station obtains the first destination address of the terminal station carried in the first packet.

具体实施中,当中继站点在接收到第一报文时,提取第一报文中携带的目的地址,在本发明实施例中,将第一报文所要到达的终端站点的地址作为第一目的地址。In a specific implementation, when the relay station receives the first packet, it extracts the destination address carried in the first packet. In this embodiment of the present invention, the address of the terminal station to which the first packet is to arrive is used as the first destination address.

步骤S203:所述中继站点在本地的分支路由表中查找是否存在所述第一目的地址。Step S203: The relay station searches the local branch routing table whether the first destination address exists.

具体地,本地的分支路由表即为当前中继站点的分支路由表,所述分支路由表包括可到达的终端站点的目的地址(ODTEI),还可以包括将报文从当前中继站点转发出去的下一跳站点的地址(Nexthop)、站点的层级(Level)、发送地址(OSTEI)等。而Level即为每个站点所属的层级,所述层级在组网中形成,所述OSTEI即为创建报文的CCO的地址。在本发明实施例中,中继站点本地的分支路由表即采用图4所示的实施方法预先更新(如添加地址、删除地址等)。Specifically, the local branch routing table is the branch routing table of the current relay site, and the branch routing table includes the destination address (ODTEI) of the reachable terminal site, and may also include the destination address (ODTEI) that forwards the packet from the current relay site. The address of the one-hop site (Nexthop), the level of the site (Level), the sending address (OSTEI), etc. The Level is the level to which each site belongs, the level is formed in the networking, and the OSTEI is the address of the CCO that creates the message. In this embodiment of the present invention, the local branch routing table of the relay site is updated in advance (eg, adding addresses, deleting addresses, etc.) using the implementation method shown in FIG. 4 .

具体实施中,接收到报文的当前中继站点在本地的分支路由表的ODTEI项中查找是否存在到达终端站点的第一目的地址,若存在,则确定当前中继站点与所述终端站点属于同一分支线路。例如,1号站点需要将第一报文发送至5号站点,则在1号站点的本地分支路由表中查找ODTEI项,若ODTEI中有5号站点的地址,则表明1号站点与5号站点属于同一分支线路。In a specific implementation, the current relay site that receives the message searches the ODTEI entry of the local branch routing table to see if there is a first destination address to the terminal site, and if so, it is determined that the current relay site and the terminal site belong to the same branch line. For example, if site 1 needs to send the first packet to site 5, the ODTEI entry is searched in the local branch routing table of site 1. If there is the address of site 5 in ODTEI, it indicates that site 1 and site 5 Sites belong to the same branch line.

步骤S204:若所述中继站点在所述本地的分支路由表中存在所述第一目的地址,获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识。Step S204: If the relay station has the first destination address in the local branch routing table, obtain the serial number identifier of the first message, and check whether the serial number identifier exists in the broadcast record. .

具体的,序列号标识用于唯一识别所述第一报文,可以为第一报文的序列号字段PacketIndex,该字段通常位于报文首部(如图5中所示),该字段由CCO在创建第一报文时按照递增的序列赋值,而由中继站点转发该报文时,不能修改该序列号字段。Specifically, the sequence number identifier is used to uniquely identify the first message, and may be the sequence number field PacketIndex of the first message, which is usually located in the header of the message (as shown in FIG. 5 ), and is stored by the CCO in the header. When the first packet is created, the value is assigned in an incrementing sequence, and the sequence number field cannot be modified when the packet is forwarded by the relay station.

具体实施中,当确定在本地的分支路由表中存在所述第一目的地址以后,获取该第一报文的序列号标识,并在广播记录中查找是否存在第一报文的序列号标识,若存在,则表明已经对该报文进行过广播,此时,将不转发该第一报文,避免再次广播引起广播风暴,若在广播记录中不存在该序列号标识,则表明该报文是首次广播,不存在广播记录,因此可将该第一报文广播出去。其中,所述不转发可以为屏蔽或过滤或丢弃、也可以为记录单不广播等。In a specific implementation, after it is determined that the first destination address exists in the local branch routing table, the serial number identifier of the first message is obtained, and whether there is a serial number identifier of the first message in the broadcast record is searched, If it exists, it indicates that the message has been broadcast. At this time, the first message will not be forwarded to avoid broadcast storms caused by re-broadcasting. If the serial number identifier does not exist in the broadcast record, it indicates that the message This is the first broadcast, and there is no broadcast record, so the first packet can be broadcast. Wherein, the non-forwarding may be blocking, filtering or discarding, or non-broadcasting of the record sheet.

例如,若采用图6所示的实施方法形成的分支路由表对应的示意图如图10所示,其中,1、2、21、3、4、和42号站点的本地的分支路由表中存储了5号站点的地址。当需要将第一报文从2号站点发送至5号站点时,通过查找2号站点的本地分支路由表,确定存在5号站点的地址,然后在广播记录中查找是否存在第一报文的序列号标识。For example, if the schematic diagram corresponding to the branch routing table formed by the implementation method shown in FIG. 6 is shown in FIG. Address of site 5. When the first message needs to be sent from site 2 to site 5, the local branch routing table of site 2 is searched to determine that the address of site 5 exists, and then the broadcast record is checked to see if there is an address for the first message. Serial number identification.

步骤S205:若在所述广播记录中不存在所述序列号标识,则所述中继站点将所述第一报文进行广播。Step S205: If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first message.

具体的,所述第一报文可以为上行报文也可以为下行报文。也就是说,若采用单播方式传输第二报文为下行过程,则该第一报文即为上行报文,同样,若采用单播方式传输第二报文为上行过程,则该第一报文即为下行报文。Specifically, the first packet may be an uplink packet or a downlink packet. That is to say, if the transmission of the second packet in the unicast mode is the downlink process, the first packet is the uplink packet. Similarly, if the transmission of the second packet in the unicast mode is the uplink process, the first packet is the uplink packet. The message is the downlink message.

具体实施中,当前中继站点获取第一目的地址对应的终端站点的层级以及当前中继站点的层级,若所述第一报文为下行报文,在所述终端站点的层级大于或者等于当前中继站点的层级时,所述中继站点对第一报文进行广播,在所述终端站点的层级小于当前中继站点的层级时,所述中继站点不广播所述第一报文;若所述第一报文为上行报文,在所述终端站点的层级小于或者等于所述中继站点的层级时,所述中继站点对所述第一报文进行广播,在所述终端站点的层级大于所述中继站点的层级时,所述中继站点不广播所述第一报文。In a specific implementation, the current relay site obtains the level of the terminal site corresponding to the first destination address and the level of the current relay site. If the first packet is a downlink packet, the level of the terminal site is greater than or equal to the current relay site. When the level of the terminal site is lower than that of the current relay site, the relay site does not broadcast the first message; if the first message is The message is an uplink message. When the level of the terminal site is less than or equal to the level of the relay site, the relay site broadcasts the first message, and the level of the terminal site is greater than that of the relay site. When the level is high, the relay station does not broadcast the first packet.

通常,CCO层级为0,离CCO最近的一级站点层级为1,再远一级的二级站点层级为2,依此类推,可明确每级站点的层级。Usually, the CCO level is 0, the level of the first-level site closest to the CCO is 1, the level of the second-level site further away is 2, and so on, the level of each level of site can be defined.

例如,如图10所示,若1至5号站点的层级依次为0、1、2、3、4,当报文由1号站点发送至4号站点时,则确定为下行报文,且在发送过程中,终端站点4的层级大于或者等于中继站点的层级,因此,接收到报文的中继站点继续广播报文,而在到达终端站点4后,其同级站点继续广播报文,同级站点的下级站点则停止广播。同样的,当报文由5号站点发送至2号站点时,则根据层级关系,确定为上行报文,且在到达2号站点后,2号站点的同级站点对报文进行广播,2号站点的下级站点则停止广播。For example, as shown in Figure 10, if the levels of sites 1 to 5 are 0, 1, 2, 3, and 4 in sequence, when a message is sent from site 1 to site 4, it is determined to be a downlink message, and During the sending process, the level of the terminal site 4 is greater than or equal to the level of the relay site. Therefore, the relay site that receives the message continues to broadcast the message, and after reaching the terminal site 4, its peer site continues to broadcast the message. The subordinate sites of the superior site stop broadcasting. Similarly, when the message is sent from site 5 to site 2, it is determined as an uplink message according to the hierarchical relationship, and after reaching site 2, the peer site of site 2 broadcasts the message, and 2 The subordinate sites of the site number stop broadcasting.

进一步的,若在所述广播记录中存在所述序列号标识,则执行步骤S206:不广播所述第一报文。Further, if the serial number identifier exists in the broadcast record, step S206 is executed: the first message is not broadcast.

可选的,在执行步骤S205之前,还可对所述第一报文中携带的上一跳地址进行更新。Optionally, before step S205 is performed, the last hop address carried in the first packet may also be updated.

具体的,上一跳地址(STEI)即为当前中继站点的地址。以当前中继站点为3号站点为例,也就是说,3号站点接收到的报文信息为OSTEI为5,ODTEI为1,STEI为4,DTEI为3,而3号站点将该报文广播出去时,则更新STEI为3,使得4号站点在接收到该报文时,可以确定上一跳地址。Specifically, the previous hop address (STEI) is the address of the current relay site. Taking the current relay site as site 3 as an example, that is, the message information received by site 3 is that OSTEI is 5, ODTEI is 1, STEI is 4, and DTEI is 3, and site 3 broadcasts the message. When going out, the STEI is updated to 3, so that the station No. 4 can determine the last hop address when it receives the packet.

可选的,若在本地的分支路由表中不存在所述第一目的地址,则不转发所述第一报文。Optionally, if the first destination address does not exist in the local branch routing table, the first packet is not forwarded.

具体的,如图10中的站点44,当44接收到第一报文后,查找其本地分支路由表的ODTEI,确定不存在到达5号站点的地址,则将第一报文进行屏蔽或丢弃或过滤等。Specifically, as shown in site 44 in Fig. 10, after receiving the first message, 44 searches the ODTEI of its local branch routing table, determines that there is no address reaching site 5, and then shields or discards the first message or filtering, etc.

在本发明实施例中,通过预先更新本地的分支路由表,当需要在分支内传输第一报文时,中继站点获取第一报文携带的第一目的地址,并在本地的分支路由表中查找是否该第一目的地址,若存在,则继续在广播记录中查找是否存在该第一报文的序列号标识,若不存在,则将第一报文进行广播。通过采用本发明实施例,采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the embodiment of the present invention, by updating the local branch routing table in advance, when the first packet needs to be transmitted in the branch, the relay station obtains the first destination address carried in the first packet, and stores it in the local branch routing table. Find out whether the first destination address exists, and if so, continue to search the broadcast record for the presence of the serial number identifier of the first message, and if not, broadcast the first message. By adopting the embodiment of the present invention, the branch broadcast mode is adopted, and the message is transmitted according to the pre-updated branch routing table, so that the message is only forwarded on the path that exists in the branch to the terminal site. Compared with the whole network broadcast, It reduces the scale of network conflicts in message transmission, and reduces the frequency of network-wide broadcasting. Compared with proxy broadcasting, even if the proxy site on the only path to the terminal site cannot successfully receive the message, it can pass the branch. Other paths within the network transmit the message to complete the message transmission, which improves the reliability of the message transmission.

上述详细阐述了本发明实施例的方法,下面提供了本发明实施例的装置。The method of the embodiment of the present invention is described in detail above, and the apparatus of the embodiment of the present invention is provided below.

请参阅图11,图11是本发明实施例提供的一种报文广播设备10的结构示意图。如图11所示,该设备包括地址获取模块101、地址查找模块102、报文广播模块103,其中,各个模块的详细描述如下。Please refer to FIG. 11. FIG. 11 is a schematic structural diagram of a message broadcasting device 10 according to an embodiment of the present invention. As shown in FIG. 11 , the device includes an address acquisition module 101 , an address search module 102 , and a message broadcast module 103 , wherein the detailed description of each module is as follows.

地址获取模块101,用于获取第一报文中携带的所述终端站点的第一目的地址。The address obtaining module 101 is configured to obtain the first destination address of the terminal station carried in the first packet.

地址查找模块102,用于在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址。The address lookup module 102 is configured to look up whether the first destination address exists in a local branch routing table, where the branch routing table includes destination addresses of reachable terminal sites.

报文广播模块103,用于若在所述本地的分支路由表中存在所述第一目的地址,则将所述第一报文进行广播。The message broadcasting module 103 is configured to broadcast the first message if the first destination address exists in the local branch routing table.

所述报文广播设备10还包括报文屏蔽模块104,用于若在所述本地的分支路由表中不存在所述第一目的地址,则不广播所述第一报文。The message broadcasting device 10 further includes a message screening module 104, configured to not broadcast the first message if the first destination address does not exist in the local branch routing table.

可选的所述报文广播设备10还包括信号判断模块105,具体用于:Optionally, the message broadcasting device 10 further includes a signal judging module 105, which is specifically used for:

判断接收到第二报文的报文信号质量是否达到预设信号质量阈值;judging whether the signal quality of the received second packet reaches a preset signal quality threshold;

若接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址;If the packet signal quality of the received second packet reaches the preset signal quality threshold, acquiring the second sending address carried in the second packet;

将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;adding the second sending address carried in the second message to the local branch routing table;

若接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。If the packet signal quality of the received second packet does not reach the preset signal quality threshold, the second packet is shielded.

可选的,所述信号判断模块105具体用于:Optionally, the signal judging module 105 is specifically used for:

判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。Determine whether the signal strength of the received second packet is greater than or equal to a preset signal strength threshold, or determine whether the communication success rate of the received second packet is greater than or equal to the preset communication success rate threshold .

可选的,所述报文广播设备10还包括广播方式确定模块106,具体用于:Optionally, the message broadcasting device 10 further includes a broadcasting mode determining module 106, which is specifically used for:

确定第一报文中携带的发送方式为分支广播。It is determined that the sending mode carried in the first packet is branch broadcast.

可选的,所述报文广播模块103具体用于:Optionally, the message broadcasting module 103 is specifically used for:

获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文;Obtain the serial number identifier of the first message, and look up whether the serial number identifier exists in the broadcast record, and the serial number identifier is used to uniquely identify the first message;

若在所述广播记录中不存在所述序列号标识,则将所述第一报文进行广播;If the sequence number identifier does not exist in the broadcast record, broadcast the first message;

若在所述广播记录中存在所述序列号标识,则不广播所述第一报文。If the sequence number identifier exists in the broadcast record, the first packet is not broadcast.

可选的,所述第一报文为用于传输数据的报文,所述第二报文为用于更新所述本地的分支路由表的报文。Optionally, the first message is a message for transmitting data, and the second message is a message for updating the local branch routing table.

图11所示实施例中的报文广播设备可以以图12所示的报文广播设备实现。如图12所示,为本发明实施例提供了一种报文广播设备的结构示意图,图12所示报文广播设备1000包括:处理器1001和收发器1004。其中,处理器1001和收发器1004相连,如通过总线1002相连。可选的,所述报文广播设备1000还可以包括存储器1003。需要说明的是,实际应用中收发器1004不限于一个,该报文广播设备1000的结构并不构成对本发明实施例的限定。The message broadcasting device in the embodiment shown in FIG. 11 may be implemented by the message broadcasting device shown in FIG. 12 . As shown in FIG. 12 , a schematic structural diagram of a message broadcasting device is provided for an embodiment of the present invention. The message broadcasting device 1000 shown in FIG. 12 includes a processor 1001 and a transceiver 1004 . The processor 1001 is connected to the transceiver 1004, for example, through a bus 1002. Optionally, the message broadcasting device 1000 may further include a memory 1003 . It should be noted that in practical applications, the transceiver 1004 is not limited to one, and the structure of the message broadcasting device 1000 does not constitute a limitation to the embodiments of the present invention.

其中,处理器1001应用于本发明实施例中,用于实现图11所示的地址查找模块102的功能。收发器1004包括接收机和发射机,收发器1004应用于本发明实施例中,用于实现图10所示的地址获取模块101以及报文广播模块103的功能。The processor 1001 is used in the embodiment of the present invention to implement the function of the address search module 102 shown in FIG. 11 . The transceiver 1004 includes a receiver and a transmitter. The transceiver 1004 is used in the embodiment of the present invention to implement the functions of the address obtaining module 101 and the message broadcasting module 103 shown in FIG. 10 .

处理器1001可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理(Digital Signal Process,DSP)器件,专用集成电路(Application SpecificIntegrated Circuit,ASIC),现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本发明公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器1001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The processor 1001 may be a central processing unit (Central Processing Unit, CPU), a general-purpose processor, a digital signal processing (Digital Signal Process, DSP) device, an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field -Programmable Gate Array, FPGA) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute the various exemplary logical blocks, modules and circuits described in connection with this disclosure. The processor 1001 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

总线1002可包括一通路,在上述组件之间传送信息。总线1002可以是PCI总线或EISA总线等。总线1002可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The bus 1002 may include a path to communicate information between the aforementioned components. The bus 1002 may be a PCI bus, an EISA bus, or the like. The bus 1002 can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in FIG. 12, but it does not mean that there is only one bus or one type of bus.

存储器1003可以是ROM或可存储静态信息和指令的其他类型的静态存储设备,RAM或者可存储信息和指令的其他类型的动态存储设备,也可以是EEPROM、CD-ROM或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。The memory 1003 can be ROM or other types of static storage devices that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or can be EEPROM, CD-ROM or other optical disk storage, optical disk storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being executed by a computer Access any other medium without limitation.

可选的,存储器1003用于存储执行本发明方案的应用程序代码,并由处理器1001来控制执行。处理器1001用于执行存储器1003中存储的应用程序代码,以实现图9所示任一实施例提供的报文广播设备的动作。Optionally, the memory 1003 is used to store the application code for executing the solution of the present invention, and the execution is controlled by the processor 1001 . The processor 1001 is configured to execute the application program code stored in the memory 1003, so as to realize the action of the message broadcasting device provided by any of the embodiments shown in FIG. 9 .

在本发明实施例中还提供了一种计算机存储介质,用于储存为上述数据接收装置所用的计算机软件指令,其包含用于执行上述方面为数据接收装置所设计的程序。In an embodiment of the present invention, a computer storage medium is also provided for storing computer software instructions used by the data receiving apparatus, which includes a program for executing the above aspect designed for the data receiving apparatus.

尽管在此结合各实施例对本发明进行了描述,然而,在实施所要求保护的本发明过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。While the invention has been described herein in conjunction with various embodiments, those skilled in the art will appreciate, from reviewing the drawings, the disclosure, and the appended claims, in practicing the claimed invention, and Other variations of the disclosed embodiments are implemented. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude a plurality. A single processor or other unit may fulfill the functions of several items recited in the claims. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that these measures cannot be combined to advantage.

本领域技术人员应明白,本发明的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。As will be appreciated by those skilled in the art, embodiments of the present invention may be provided as a method, an apparatus (apparatus), 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 take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein. The computer program is stored/distributed in a suitable medium, provided with or as part of other hardware, or may take other forms of distribution, such as over the Internet or other wired or wireless telecommunication systems.

本发明是参照本发明实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowcharts and/or block diagrams of methods, apparatus (apparatus) and computer program products according to embodiments of the present invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

尽管结合具体特征及其实施例对本发明进行了描述,显而易见的,在不脱离本发明的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本发明的示例性说明,且视为已覆盖本发明范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Although the invention has been described in conjunction with specific features and embodiments thereof, it will be apparent that various modifications and combinations can be made therein without departing from the spirit and scope of the invention. Accordingly, this specification and drawings are merely illustrative of the invention as defined by the appended claims, and are deemed to cover any and all modifications, variations, combinations or equivalents within the scope of the invention. It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (16)

1. A message broadcasting method is applied to a power line network, wherein the power line network comprises a central coordinator, a relay station and a terminal station, and the method comprises the following steps:
the relay station acquires a first destination address of the terminal station carried in the first message;
the relay station searches whether the first destination address exists in a local branch routing table, wherein the branch routing table comprises destination addresses of terminal stations which can be reached after the relay station broadcasts the message;
if the first destination address exists in the local branch routing table, the relay station broadcasts the first message.
2. The method of claim 1, wherein the method further comprises:
and if the first destination address does not exist in the local branch routing table, the relay station does not broadcast the first message.
3. The method of claim 1, wherein the method further comprises:
the relay station judges whether the message signal quality of the received second message reaches a preset signal quality threshold value;
if the message signal quality of the second message received by the relay station reaches the preset signal quality threshold, acquiring a second sending address carried in the second message;
and the relay station adds the second sending address carried in the second message to the local branch routing table.
4. The method of claim 3, wherein the method further comprises:
and if the message signal quality of the second message received by the relay station does not reach the preset signal quality threshold, discarding the second message.
5. The method of claim 4, wherein the step of the relay station determining whether the message signal quality of the received second message reaches a preset signal quality threshold comprises:
and the relay station judges whether the message signal strength of the received second message is greater than or equal to a preset signal strength threshold value or judges whether the message communication success rate of the received second message is greater than or equal to a preset communication success rate threshold value.
6. The method according to claim 1, wherein before the obtaining the first destination address of the terminal station carried in the first packet, further comprising:
and the relay station determines that the sending mode carried in the first message is the branch broadcast.
7. The method of claim 1, wherein the broadcasting of the first packet by the relay station comprises:
the relay station acquires a serial number identifier of the first message, and searches whether the serial number identifier exists in a broadcast record, wherein the serial number identifier is used for uniquely identifying the first message;
if the serial number identification does not exist in the broadcast record, the relay station broadcasts the first message;
and if the serial number identification exists in the broadcast record, the relay station does not broadcast the first message.
8. The method according to claim 3 or 5, wherein the first packet is a packet for transmitting data, and the second packet is a packet for updating the local branch routing table.
9. A message broadcasting device, comprising:
the address acquisition module is used for acquiring a first destination address of the terminal station carried in the first message;
an address lookup module, configured to lookup whether the first destination address exists in a local branch routing table, where the branch routing table includes destination addresses of terminal stations that can be reached after the relay station broadcasts the packet;
and the message broadcasting module is used for broadcasting the first message if the first destination address exists in the local branch routing table.
10. The message broadcasting device as claimed in claim 9, wherein the message broadcasting device further comprises:
and the message shielding module is used for not broadcasting the first message if the first destination address does not exist in the local branch routing table.
11. The message broadcasting device of claim 9, wherein the message broadcasting device further comprises a signal determination module, specifically configured to:
judging whether the message signal quality of the received second message reaches a preset signal quality threshold value;
if the message signal quality of the received second message reaches the preset signal quality threshold, acquiring a second sending address carried in the second message;
and adding the second sending address carried in the second message into the local branch routing table.
12. The message broadcasting device of claim 11, wherein the signal determination module is further configured to:
and if the message signal quality of the received second message does not reach the preset signal quality threshold value, discarding the second message.
13. The message broadcasting device of claim 12, wherein the signal determining module is specifically configured to:
and judging whether the message signal strength of the received second message is greater than or equal to a preset signal strength threshold value or judging whether the message communication success rate of the received second message is greater than or equal to a preset communication success rate threshold value.
14. The message broadcasting device according to claim 9, wherein the message broadcasting device further includes a broadcasting mode determining module, specifically configured to:
and determining that the sending mode carried in the first message is the branch broadcast.
15. The message broadcasting device of claim 9, wherein the message broadcasting module is specifically configured to:
acquiring a serial number identifier of the first message, and searching whether the serial number identifier exists in a broadcast record, wherein the serial number identifier is used for uniquely identifying the first message;
if the serial number identification does not exist in the broadcast record, broadcasting the first message;
and if the serial number identification exists in the broadcast record, not broadcasting the first message.
16. The message broadcasting device according to claim 11 or 13, characterized in that the first message is a message for transmitting data, and the second message is a message for updating the local branch routing table.
CN201710229450.1A 2017-04-10 2017-04-10 Message broadcasting method and device Active CN107124363B (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
CN201710229450.1A CN107124363B (en) 2017-04-10 2017-04-10 Message broadcasting method and device
CN202011097513.0A CN112383478B (en) 2017-04-10 2017-04-10 Message broadcasting method and device
PCT/CN2017/111719 WO2018188337A1 (en) 2017-04-10 2017-11-17 Method and device for packet broadcasting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710229450.1A CN107124363B (en) 2017-04-10 2017-04-10 Message broadcasting method and device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202011097513.0A Division CN112383478B (en) 2017-04-10 2017-04-10 Message broadcasting method and device

Publications (2)

Publication Number Publication Date
CN107124363A CN107124363A (en) 2017-09-01
CN107124363B true CN107124363B (en) 2020-11-06

Family

ID=59726408

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202011097513.0A Active CN112383478B (en) 2017-04-10 2017-04-10 Message broadcasting method and device
CN201710229450.1A Active CN107124363B (en) 2017-04-10 2017-04-10 Message broadcasting method and device

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN202011097513.0A Active CN112383478B (en) 2017-04-10 2017-04-10 Message broadcasting method and device

Country Status (2)

Country Link
CN (2) CN112383478B (en)
WO (1) WO2018188337A1 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112383478B (en) * 2017-04-10 2022-05-24 华为技术有限公司 Message broadcasting method and device
CN113098770B (en) * 2020-01-08 2024-04-16 华为技术有限公司 Message sending method, routing table item generation method, device and storage medium
CN111682978A (en) * 2020-05-21 2020-09-18 河南理工大学 A kind of network communication enhancement method and system
CN114697147B (en) * 2020-12-29 2024-04-05 浙江宇视科技有限公司 Device search method, device, device and storage medium
CN112867091B (en) * 2021-01-14 2022-11-08 湖南智领通信科技有限公司 Mesh gateway selection method and device based on active routing protocol
CN113541739B (en) * 2021-07-09 2023-04-28 合肥新线通信科技有限公司 Single-frequency communication method, system, equipment and storage medium
CN113645676B (en) * 2021-08-13 2023-12-15 中国人民解放军63620部队 Service data sending method and device, computer equipment and storage medium
CN117614134A (en) * 2023-11-28 2024-02-27 国网上海能源互联网研究院有限公司 A multi-CCO station area collaborative networking method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009037A (en) * 2006-01-27 2007-08-01 瑞斯康微电子(深圳)有限公司 Low-voltage carrier centralized network and method of constructing network, transmitting and receiving thereof
CN102801609A (en) * 2012-06-21 2012-11-28 华为技术有限公司 Selection method for relay station and station equipment
CN102970233A (en) * 2012-11-22 2013-03-13 华为技术有限公司 Method, apparatus and device for acquiring route, concentrator and system
CN103312547A (en) * 2013-06-18 2013-09-18 华为技术有限公司 Communication method, communication device and communication system
CN106301472A (en) * 2016-08-17 2017-01-04 华为技术有限公司 Method and the website of relay is selected in power line network

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9413686B2 (en) * 2007-06-04 2016-08-09 Qualcomm Incorporated Establishing a unique end-to-end management key
CN101373556B (en) * 2007-08-23 2012-08-01 瑞斯康微电子(深圳)有限公司 Method for transmitting and receiving low pressure carrier wave centralized type network and apparatus thereof
CN100499529C (en) * 2007-09-14 2009-06-10 武汉烽火网络有限责任公司 Jitter detection based congestion control method in city domain Ethernet
CN104009919B (en) * 2013-02-25 2017-06-09 新华三技术有限公司 Message forwarding method and device
US9781036B2 (en) * 2015-07-28 2017-10-03 Lenovo Enterprise Solutions (Singapore) Pte. Ltd Emulating end-host mode forwarding behavior
CN105049375A (en) * 2015-08-13 2015-11-11 浪潮集团有限公司 Data forwarding method and system based on cloud computing data center
CN106533503B (en) * 2015-09-10 2019-05-31 深圳市中兴微电子技术有限公司 A kind of method and device of powerline network communication
CN112383478B (en) * 2017-04-10 2022-05-24 华为技术有限公司 Message broadcasting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009037A (en) * 2006-01-27 2007-08-01 瑞斯康微电子(深圳)有限公司 Low-voltage carrier centralized network and method of constructing network, transmitting and receiving thereof
CN102801609A (en) * 2012-06-21 2012-11-28 华为技术有限公司 Selection method for relay station and station equipment
CN102970233A (en) * 2012-11-22 2013-03-13 华为技术有限公司 Method, apparatus and device for acquiring route, concentrator and system
CN103312547A (en) * 2013-06-18 2013-09-18 华为技术有限公司 Communication method, communication device and communication system
CN106301472A (en) * 2016-08-17 2017-01-04 华为技术有限公司 Method and the website of relay is selected in power line network

Also Published As

Publication number Publication date
CN112383478A (en) 2021-02-19
CN112383478B (en) 2022-05-24
CN107124363A (en) 2017-09-01
WO2018188337A1 (en) 2018-10-18

Similar Documents

Publication Publication Date Title
CN107124363B (en) Message broadcasting method and device
US20160150459A1 (en) Techniques to support heterogeneous network data path discovery
US10003532B2 (en) Communication method and communication apparatus
US7961627B2 (en) Method and system for generating antenna selection signals in OFDM transceivers with fewer RF chains than antennas in MIMO wireless networks
TWI793361B (en) Independent redundant path discovery for bluetooth mesh
US20060268727A1 (en) Methods and apparatus for providing a dynamic on-demand routing protocol
US9380513B2 (en) Reducing broadcast duplication in hybrid wireless mesh protocol routing
US10893457B2 (en) Route discovery in a mesh communication network
Kalogeiton et al. A multihop and multipath routing protocol using NDN for VANETs
US10716048B2 (en) Detecting critical links in bluetooth mesh networks
US20160081005A1 (en) Route formation and message transmission in a data link group over multiple channels
CN110692268A (en) Island Topology and Routing in Hybrid Mesh Networks
EP3136676B1 (en) Method, device and system for transmitting data
US10594598B2 (en) Path setup in a mesh network
WO2016197689A1 (en) Method, apparatus and system for processing packet
US9742578B2 (en) Simple mesh network for wireless transceivers
CN106900174A (en) The data transmission method of WLAN mesh network, apparatus and system
Siddiqui et al. Hop-by-hop traceback in wireless sensor networks
US11375434B2 (en) Method and mesh node for enabling communication in a wireless mesh network
CN107770771B (en) Routing method for adding privacy protection in opportunity network
CN101867996B (en) Multi-radiofrequency mesh network transmission method, network node and system
WO2020052791A1 (en) Detecting critical links in bluetooth mesh networks
WO2014186985A1 (en) Communication device and wireless communication method
CN108347700B (en) A kind of broadcasting method and broadcasting device for wireless ad hoc network
CN107637047A (en) Aggregate target and exploration are inquired about

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
GR01 Patent grant
GR01 Patent grant