WO2018188337A1 - Method and device for packet broadcasting - Google Patents

Method and device for packet broadcasting Download PDF

Info

Publication number
WO2018188337A1
WO2018188337A1 PCT/CN2017/111719 CN2017111719W WO2018188337A1 WO 2018188337 A1 WO2018188337 A1 WO 2018188337A1 CN 2017111719 W CN2017111719 W CN 2017111719W WO 2018188337 A1 WO2018188337 A1 WO 2018188337A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
broadcast
message
relay station
routing table
Prior art date
Application number
PCT/CN2017/111719
Other languages
French (fr)
Chinese (zh)
Inventor
郭攀
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2018188337A1 publication Critical patent/WO2018188337A1/en

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

Definitions

  • the present application relates to the field of computer technologies, and in particular, to a message broadcast method and device.
  • the carrier signal transmitted in the communication network is transmitted in units of messages, and the messages are transmitted by means of full-network broadcasting and proxy broadcasting.
  • the so-called all-network broadcast is that after the sending station sends a message, all the stations that receive the message broadcast the message to the surrounding sites, and all the sites that receive the broadcast message continue to broadcast the message.
  • the packet is broadcasted on the entire network to reach the destination site. During the broadcast process, any site that receives the packet does not block the packet.
  • the site in the entire network includes A1. - Site A7, Site A1 needs to send packets to Site A6.
  • Site A1 broadcasts the message at the relay site
  • the sites that receive the message are respectively Broadcasting the packets to the A5, A6, and A7 sites, causing the number of packets in the network to be too large, resulting in serious packet collisions, which affects the transmission efficiency of the packets.
  • At least one proxy site exists in the entire network and/or at least A non-proxy site, 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 packet, and once the path on the critical path If the site does not receive the packet, the packet will be interrupted.
  • the site in the entire network includes sites B1-B7.
  • site B3 is the proxy site, and site B1 needs to report it.
  • the message is sent to the B6 site.
  • the B3 site does not receive the packet, the packet cannot be forwarded to the B6 site.
  • the B2 and B4 stations receive the packet, the packet cannot be forwarded.
  • Send to the destination site which reduces the reliability of message transmission.
  • the technical problem to be solved by the embodiment of the present invention is to provide a packet broadcast method and device, which can reduce the number of packets in the network, reduce the size of packet conflicts, and improve the report while ensuring the reliability of packet transmission. Text transmission efficiency.
  • the embodiment of the present application provides a packet broadcast method, including: a relay station acquires a first destination address of a terminal station carried in a first packet; and the relay station searches in a local branch routing table whether The first destination address exists, the branch routing table includes a destination address of the reachable terminal station; if the first destination address exists in the local branch routing table, the relay station A message is broadcast.
  • the packet is broadcasted according to the method of the branch broadcast, and the packet is transmitted according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal station in the branch, and the network is forwarded.
  • the scale of network collisions in message transmission is reduced, and the frequency of use of the entire network broadcast is reduced.
  • Packets can also be transmitted through other paths in the branch to complete packet transmission, which improves the reliability of packet transmission.
  • the method further includes: if the first destination address does not exist in the local branch routing table, the relay station does not broadcast the The first message is described.
  • the relay station Determining whether the quality of the packet signal of the second packet reaches the preset signal quality threshold; if the quality of the packet signal of the second packet reaches the preset signal quality threshold, acquiring the second packet a second sending address carried in the text; adding a second sending address carried in the second packet to the local branch routing table; if the quality of the packet signal of the second packet is not reached
  • the preset signal quality threshold is used to mask the second packet. In this way, the crosstalk signals of other branches are shielded to ensure the relative accuracy and high reliability of the branch.
  • the relay station determines whether the quality of the received packet signal of the second packet reaches a preset signal quality threshold, including: determining And determining whether the packet signal strength of the second packet is greater than or equal to a preset signal strength threshold, or determining whether the packet communication success rate of the second packet is greater than or equal to a preset communication success threshold.
  • the method before the obtaining, by the relay station, the first destination address of the terminal station that is carried by the first packet, the method further includes: the relay station determining the first report
  • the transmission method carried in the text is a branch broadcast. In this way, according to the specific broadcast mode of the obtained message, the broadcast mode specified by the message is executed, and the other message forwarding mode is not tried one by one, which helps to improve the efficiency of message transmission.
  • the first packet is broadcast, including: the relay station Obtaining a sequence number identifier of the first packet, and searching for a sequence number identifier in the broadcast record, where the sequence number identifier is used to uniquely identify the first packet; If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first packet; 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.
  • the embodiment of the present application provides a packet broadcast device, including: an address obtaining module, configured to acquire a first destination address of the terminal station carried in the first packet; and an address searching module, configured to be localized
  • the branch routing table is configured to find whether the first destination address exists, the branch routing table includes a destination address of the reachable terminal station, and a packet broadcast module is configured to: if the first branch address table exists in the local branch routing table A destination address broadcasts the first message.
  • the packet is transmitted by using a branch broadcast manner, and the packet is transmitted according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal station in the branch, and the packet is forwarded.
  • the scale of network collisions in message transmission is reduced, and the frequency of use of the entire network broadcast is reduced.
  • Packets can also be transmitted through other paths in the branch to complete packet transmission, which improves the reliability of packet transmission.
  • the packet broadcast device further includes: the packet broadcast device further includes: a message shielding module, configured to: if the local branch route If the first destination address does not exist in the table, the first packet is not broadcast.
  • the packet broadcast device further includes: a signal determining module, configured to: determine whether the quality of the received message signal of the second packet reaches a preset signal a quality threshold; if the quality of the packet signal of the second packet reaches the preset signal quality threshold, the second sending address carried in the second packet is obtained; The second sending address is added to the local branch routing table. If the quality of the packet signal of the second packet does not reach the preset signal quality threshold, the second packet is masked. In this way, the crosstalk signals of other branches are shielded to ensure the relative accuracy and high reliability of the branch.
  • the signal determining module is specifically configured to: determine whether the signal strength of the received second packet is greater than or equal to Presetting a signal strength threshold, or determining whether a message communication success rate of the second message is greater than or equal to a preset communication success threshold.
  • the packet broadcast device further includes a broadcast mode determining module, configured to: determine that the sending mode carried in the first packet is a branch broadcast. In this way, according to the specific broadcast mode of the obtained message, the broadcast mode specified by the message is executed, and the other message forwarding mode is not tried one by one, which helps to improve the efficiency of message transmission.
  • the packet broadcast module is specifically configured to: obtain a serial number identifier of the first packet, and search for a sequence in the broadcast record a number identifier, the serial number identifier is used to uniquely identify the first packet; if the serial number identifier does not exist in the broadcast record, the first packet is broadcasted; if the broadcast is in the broadcast If the serial number identifier exists in the record, the first packet is not broadcast. In this way, multiple broadcasts of the same broadcast message are avoided, and broadcast storms are avoided.
  • the first packet is a packet for transmitting data
  • the second packet is a packet for updating the local branch routing table.
  • the structure of the message broadcast device includes a processor and a transceiver.
  • the processor is configured to perform the message broadcast method provided by the first aspect of the present application.
  • a memory may be further included, where the memory is configured to store an application code, a routing entry, and the like that support the message broadcast device to perform the foregoing method, where the processor is configured to execute the application stored in the memory. program.
  • 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.
  • the relay station obtains the first destination address carried in the first packet, and searches for the first destination address in the local branch routing table, if yes, The first packet is broadcast in the branch; otherwise, the first packet is not broadcast.
  • the packet is forwarded only on the path to the terminal station in the branch, which is relative to the whole network broadcast.
  • 1(a) is a schematic diagram showing the logical structure of a full-network broadcast route provided by an embodiment of the present application
  • 1(b) is a schematic diagram showing the logical structure of a proxy broadcast route provided by an embodiment of the present application
  • FIG. 2 is a schematic diagram of a logical structure of a power line branch route provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a logical structure of a branch broadcast route provided by an embodiment of the present application.
  • FIG. 4 is a schematic flowchart of a method for forming a branch route according to an embodiment of the present application
  • FIG. 5 is a schematic structural diagram of a packet of a datagram according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a branch routing forming interface provided by an embodiment of the present application.
  • FIG. 7(a) is a schematic diagram of an interface of a site communication range provided by an embodiment of the present application.
  • FIG. 7(b) is a schematic diagram of another interface of a site communication range provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of a logical structure of a unicast route provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart diagram of another packet broadcast method according to an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a branch routing transmission interface provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a branch broadcast device according to an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of another branch broadcast device according to an embodiment of the present application.
  • references to "an embodiment” herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application.
  • the appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
  • the technical solution in the embodiment of the present application is applicable to a power line network.
  • the application scenario of the embodiment of the present application is described below by taking a power line network as an example.
  • the so-called power line network refers to the transmission of carrier communication signals by using power lines as a shared medium to form a shared network composed of communication devices on the power lines.
  • a power line network is a multi-level, multi-relay network topology. This is because, under ideal conditions, the carrier communication signals transmitted on the power line are successfully received by all communication devices on the power line. In practical applications, the transmission distance of the carrier communication signals is relatively large due to factors such as signal attenuation and noise. Limited, but usually the range of the power line is connected. Therefore, in order to transmit the carrier communication signal to the terminal station, a relay station is usually used to expand the transmission distance of the carrier communication signal, thus forming a multi-stage multi-relay network topology. Power line network.
  • FIG. 2 is a schematic diagram showing the logical structure of a power line network according to the embodiment.
  • the communication device includes a central coordinator (CCO), a relay station, and a terminal station, and the devices are connected by a power line.
  • the structure shown in the figure consists of three levels. The first row of devices is at the first level, the middle row is at the second level, and the last row is at the third level.
  • the central coordinator is configured to create and send a message;
  • the relay station may be a computer system device providing a relay service, for receiving and forwarding a message, thereby transmitting the message to the terminal site, in order to transmit a longer distance
  • the message can be forwarded to the next-level relay station, and the next-level relay station can continue to forward the message;
  • the terminal station can be a network terminal device, such as a station, a mobile phone, or a smart phone. (smartphone), computer, tablet computer, personal digital assistant (PDA), mobile internet device (MID), etc., for receiving and processing messages.
  • PDA personal digital assistant
  • MID mobile internet device
  • the first packet is broadcasted in the branch, and is received.
  • the relay station of the first packet obtains the first destination address of the terminal station to be reached by the first packet carried in the first packet, and searches for the first branch routing table in the local branch routing table storing multiple addresses.
  • the destination address if it exists, indicates that the current relay station has the route to the terminal station after the first packet is broadcasted. Therefore, the current relay station continues to broadcast the first packet. If it does not exist, it indicates that the current site does not exist at the terminal. Route of the site. At this time, the current relay station does not broadcast the first packet.
  • the sites in the entire network include sites D1-D14.
  • Sites D1 need to send packets to site D10. After the packets are broadcast at D1 site, D2-D6 sites receive messages. At this point, the stations look up the address of the D10 site in their respective branch routing tables. If there is (such as D4, D5), the packets are broadcast separately. If they do not exist (such as D2, D3, D6), then The message is not broadcast. After the packets are broadcasted by D4 and D5, the relay station that receives the message continues to transmit the message in the same manner until it reaches the terminal station D10. The relay station uses the branch broadcast mode to transmit the packet according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal station in the branch, and the packet is reduced compared with the whole network broadcast.
  • the scale of the network collision in the transmission reduces the frequency of use of the whole network broadcast. Compared with the proxy broadcast, even if the proxy station on the path that only reaches the terminal station cannot successfully receive the message, it can pass other paths in the branch.
  • the message is transmitted to complete the message transmission, which improves the reliability of message transmission.
  • FIG. 4 is a schematic flowchart of a process of forming a branch routing table in a text message according to an embodiment of the present application.
  • the relay site is taken as an example for description.
  • the method includes:
  • Step S101 The relay station determines whether the quality of the received message signal of the second packet reaches a preset signal quality threshold.
  • the message is a data unit for information exchange and transmission in the network, that is, a data block to be sent by the site at one time.
  • the packet carries the 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 station, and the next hop site that the current relay station passes when forwarding the packet to the terminal site. Address DTEI, destination port, source port, data length, protocol used, encryption, and so on. Usually, this information can be set at the head of the message.
  • the packet to be transmitted is used as the second packet, that is, the second packet is a packet for updating the local branch routing table.
  • a schematic diagram of a packet structure of an IP datagram includes a data portion and a header (header) portion, wherein the header includes a source IP address (send address OSTEI) and a destination IP address (destination address ODTEI). ) and other information.
  • the message 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, thereby determining whether the two sites belong to the same branch network. For multiple sites, for example, if the site A can receive the packets sent by the site B and the site C, the site A determines that the packet signal quality of the packet sent by the site B is higher than that of the site C. The message signal quality of the text, therefore, the site A can be determined according to the quality of the message signal. Compared with the site C, the distance between the site B and the site A is closer, so that it is more likely to belong to the same physical branch.
  • the packet signal quality may include a packet signal strength or a packet communication success rate, which is not specifically limited herein.
  • the two stations belong to the same physical branch according to the success rate of the message communication, and the two stations communicate with each other, and one of the stations parses and counts the load of multiple messages sent by the other station.
  • the success rate of parsing determines whether the two sites are sites within the same physical branch. For example, after the 10 packets received by the site D1 are continuously sent by the site A1, the load of the 10 packets is analyzed. If 9 of them cannot be successfully parsed, the site A1 can be considered to have received the site 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.
  • the two sites belong to the same physical branch according to the strength of the message signal.
  • the two sites communicate with each other, and one of the stations calculates and counts the signal-to-noise ratio of the packets sent by the other site, thereby determining whether the two sites are Is the site within the same physical branch.
  • the site A2 calculates the signal-to-noise ratio of the packet, and generally sets the signal-to-noise ratio threshold to be in the range of -5 to 0 db. If the calculated SNR is less than 0 db, Site A1 and site D1 may be considered not to belong to the same physical branch.
  • the interface diagram of the second packet transmission is performed.
  • other sites in the communication range of the site 5, such as 41, 42 43, 44 can also receive the message, if the station receiving the message (such as 44) detects that the message signal strength is less than or equal to the preset signal strength threshold (signal strength difference), or detects the number 5 If the success rate of the message communication of the site is less than or equal to the preset communication success rate threshold (the communication success rate is low), it is determined that the site does not belong to the same branch network as the site 5, and at this time, the site 44 selects the second packet.
  • the shielding is performed, so that the crosstalk of signals between different branches can be reduced; if the signal strength is detected or the communication success rate is high, it is determined that the station belongs to the same branch line as the station 5 (such as 41, 4, 42).
  • the communication range refers to the communication range between the site and other sites. That is, one station transmits a carrier communication signal, and other stations have the possibility of receiving the carrier communication signal successfully. If the reception is successful, it indicates that the station that receives the carrier communication signal is within the communication range of the station that transmits the carrier communication signal. Of course, the communication range is limited due to factors such as noise, signal attenuation, and the like. As shown in Fig. 7(a), A, B, and C are three branch lines in the power line network. When each branch line is far apart, each station and its corresponding communication station can be considered to belong to the same branch line (communication range is as follows). The dotted line in the figure).
  • the communication stations corresponding to the respective stations may include stations of the same branch line, and may also include stations of different branch lines (the communication range is as shown by the dotted line in the figure). Show), but the signal strength is different on the same branch line and on different branch lines.
  • Step S102 Acquire a second sending address carried in the second packet if the quality of the packet signal of the second packet reaches the preset signal quality threshold.
  • the address information carried by the second packet may include a second sending address, and may include a previous hop address of the current relay station, and may also include a second destination address and a next hop address of the current relay station.
  • the relay station when receiving the second packet, extracts the address information carried by the second packet, such as the second sending address OSTEI and the previous hop address STEI of the current relay station, and may also include the second destination address. ODTEI and the next hop address DTEI of the current relay station.
  • the packet sent from the No. 5 station to the No. 1 station is the second packet, and is sent in a unicast manner. If the current relay station is the No. 3 station, that is, the packet is sent. It is sent from Site 4 to Site 3.
  • the address information OSTEI carried by the packet is 5, ODTEI is 1, STEI is 4, and DTEI is 3.
  • the so-called unicast mode that is, the process in which the message is sent to another designated site by the specified site, is one-to-one.
  • the sites in the entire network include sites C1-C7, and sites C1 need to send packets to In the C6 station, if the C1 number dynamically selects the next hop site as the C3 site according to the principle of the optimal path (the shortest path, the optimal path of the signal quality, etc.), the C3 number is received in the same way.
  • the message is sent, the message is sent to the destination site C6, and one-to-one forwarding is implemented in the process.
  • the relay station receives the broadcast message, the difference is whether the receiving station forwards the message. That is to say, in the manner of unicast packets, the site receiving the message can also be a site near the target site. As shown in Figure 8, in the process of unicasting C1 to C3, C2 and C4 may also receive. To the message, but C2 and C4 do not forward the received message.
  • Step S103 The relay station adds the second sending address to the local branch routing table.
  • the local branch routing table includes a destination address ODTEI of the reachable terminal station.
  • the current relay station adds the obtained second sending address to the local branch routing table to implement the update of the branch routing table.
  • the current relay station is the No. 3 site.
  • the address information of the received second packet is: OSTEI is 5, ODTEI is 1, and the previous hop address STEI is 4.
  • Site 3 Add the address of Site 5 to the local branch routing table. That is to say, at this time, the route from the No. 3 site to the No. 5 site is formed.
  • the branch routing table local to Site 3 in Figure 6 includes ODTEI.
  • Site 3 obtains the address of Site 5, it adds the address to the ODTEI of Table 1, thereby obtaining a table. 2.
  • the branch routing table may further include a level level corresponding to the site and a next hop address Nexthop when forwarding the packet from the current site to the ODTEI. If the ODTEI is the address of the site 5, It indicates that the level of station 5 is 4, and station 3 forwards the message to Nexthop (site 4) and then forwards it to station 4.
  • the method further includes:
  • step S104 Obtaining a next hop address carried in the second packet, and determining a local address and a next hop address of the current relay station If the local address matches the next hop address, the second packet is forwarded, and step S104 is performed; if the local address does not match the next hop address, Not forwarding the second packet (masking the second packet).
  • next hop address DTEI is the address of the next hop site that forwards the packet when the last hop station of the current relay station sends the second packet to the second destination address, that is, 4 When the site sends the message to Site 1, it first forwards it to Site 3, and the DTEI is 3.
  • station 5 sends the second message to station 4
  • 41 and 42 also receive the message, but according to the DETI carried in the second message, 41 (42) determines the local address and the second message.
  • the DETI does not match, so that the message is not sent to itself. Therefore, if the message is not forwarded and the site 4 determines that the address matches, the packet is forwarded.
  • step S104 the relay station blocks the second packet.
  • 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.
  • the relay station obtains the first destination address carried in the first packet, and searches for the first destination address in the local branch routing table, if yes, The first packet is broadcast in the branch; otherwise, the first packet is not broadcast.
  • the packet is forwarded only on the path to the terminal station in the branch, which is relative to the whole network broadcast.
  • FIG. 9 is a schematic flowchart diagram of a message broadcast method according to another embodiment of the present application.
  • the relay site is taken as an example for description.
  • the method includes:
  • Step S201 The relay station determines that the sending mode carried in the first packet is a branch broadcast.
  • the sending manner of the packet includes multiple modes such as unicast, full-network broadcast, branch broadcast, and proxy broadcast, and the corresponding sending fields are UNICAST, BROADCAST, BRANCH_BROADCAST, PROXY_BROADCAST, etc., and are used to determine that the first packet is used. How to send it.
  • the first packet is a packet for transmitting data.
  • the first packet also has a packet format similar to that shown in FIG. 5, and details are not described herein again.
  • Step S202 The relay station acquires a first destination address of the terminal station carried in the first packet.
  • the relay station when the relay station receives the first packet, the destination address carried in the first packet is extracted, and in the embodiment of the present application, the address of the terminal station to be reached by the first packet is used as the first destination. address.
  • Step S203 The relay station searches for a local destination branch table to find whether the first destination address exists.
  • the local branch routing table is a branch routing table of the current relay site, and the branch routing table includes a destination address (ODTEI) of the reachable terminal station, and may further include forwarding the packet from the current relay site.
  • ODTEI destination address
  • Level is the level to which each site belongs. The level is formed in the networking.
  • the OSTEI is the CCO where the message is created. site.
  • the branch routing table local to the relay site is pre-updated by using the implementation method shown in FIG. 4 (such as adding an address, deleting an address, etc.).
  • the current relay station that receives the packet searches for the first destination address of the terminal station in the ODTEI item of the local branch routing table, and if yes, determines that the current relay station belongs to the same branch as the terminal station. line. For example, if Site 1 needs to send the first packet to Site 5, look for the ODTEI entry in the local branch routing table of Site 1. If there is an address of Site 5 in ODTEI, it indicates Site 1 and No. 5. Sites belong to the same branch line.
  • 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 packet, and find in the broadcast record whether the serial number identifier exists. .
  • the serial number identifier is used to uniquely identify the first packet, and may be a sequence number field PacketIndex of the first packet, where the field is usually located in the packet header (as shown in FIG. 5), and the field is used by the CCO.
  • PacketIndex of the first packet
  • the field is usually located in the packet header (as shown in FIG. 5)
  • the field is used by the CCO.
  • the packet after determining that the first destination address exists in the local branch routing table, obtaining the sequence number identifier of the first packet, and searching for the serial number identifier of the first packet in the broadcast record, If it exists, it indicates that the packet has been broadcasted. In this case, the first packet will not be forwarded, and the broadcast storm will be prevented from being broadcast again. If the serial number identifier does not exist in the broadcast record, the packet is indicated. It is the first broadcast, and there is no broadcast record, so the first message can be broadcasted.
  • the non-forwarding may be shielding or filtering or discarding, or may not be a broadcast of the recording list.
  • FIG. 10 a schematic diagram corresponding to the branch routing table formed by using the implementation method shown in FIG. 6 is shown in FIG. 10, in which local branch routing tables of sites 1, 2, 21, 3, 4, and 42 are stored.
  • the address of Site 5 The address of Site 5.
  • the local branch routing table of the No. 2 site is searched to determine the address of the No. 5 site, and then the broadcast record records whether the first packet exists. Serial number identification.
  • Step S205 If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first packet.
  • the first packet may be an uplink packet or a downlink packet. That is, if the second packet is transmitted in the unicast mode, the first packet is the uplink packet. Similarly, if the second packet is transmitted in the unicast mode, the first packet is the uplink process. The packet is the downlink packet.
  • the current relay station acquires the tier of the terminal site corresponding to the first destination address and the tier of the current relay site. If the first packet is a downlink packet, the tier of the terminal site is greater than or equal to the current relay site. The relay station broadcasts the first packet when the tier of the terminal station is smaller than the tier of the current relay site, the relay station does not broadcast the first packet; If the level of the terminal station is less than or equal to the level of the relay station, the relay station broadcasts the first packet, and the level of the terminal station is greater than the relay station. At the tier level, the relay station does not broadcast the first message.
  • the CCO level is 0, the level of the first-level site closest to the CCO is 1, and the level of the second-level site is 2, and so on, the level of each level of the site can be clarified.
  • the tiers of stations 1 to 5 are 0, 1, 2, 3, and 4 in sequence
  • the packet when the packet is sent from station 1 to station 4, it is determined to be a downlink packet, and During the transmission process, the level of the terminal station 4 is greater than or The relay station is equal to the tier of the relay station. Therefore, the relay station that receives the message continues to broadcast the message, and after reaching the terminal station 4, its peer station continues to broadcast the message, and the lower-level site at the same level station stops broadcasting.
  • the message is sent from the No. 5 station to the No. 2 site, it is determined as an uplink packet according to the hierarchical relationship, and after reaching the No. 2 site, the same-level site of the No. 2 site broadcasts the packet, 2 The subordinate site of the site stops broadcasting.
  • step S206 is performed: the first message is not broadcasted.
  • the previous hop address carried in the first packet may be updated before the step S205 is performed.
  • the last hop address is the address of the current relay station. Take the current relay station as the No. 3 site as an example. That is, the message received by the third station is OSTEI 5, ODTEI is 1, STEI is 4, DTEI is 3, and station 3 broadcasts the message. When going out, the STEI is updated to 3, so that the station 4 can determine the last hop address when receiving the message.
  • the first packet is not forwarded.
  • the 44 looks for the ODTEI of the local branch routing table, and determines that there is no address to reach the fifth station, and then masks or discards the first packet. Or filter, etc.
  • the pre-updating local branch routing table 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 is in the local branch routing table. The first destination address is searched for. If yes, the broadcast record is searched for the serial number identifier of the first packet. If not, the first packet is broadcast.
  • the branch broadcast mode is adopted, and the packet is transmitted according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal site in the branch, compared with the whole network broadcast. It reduces the scale of network conflicts in message transmission and reduces the frequency of use of the whole network broadcast. Compared with the proxy broadcast, even if the proxy site on the path that only reaches the terminal site cannot successfully receive the message, it can pass the branch.
  • the other paths in the path transmit messages to complete the message transmission, which improves the reliability of message transmission.
  • FIG. 11 is a schematic structural diagram of a message broadcast device 10 according to an embodiment of the present disclosure.
  • the device includes an address obtaining module 101, an address finding module 102, and a message broadcast module 103.
  • the detailed description of each module is as follows.
  • the address obtaining module 101 is configured to obtain a first destination address of the terminal station carried in the first packet.
  • the address lookup module 102 is configured to search, in the local branch routing table, whether the first destination address exists, and the branch routing table includes a destination address of the reachable terminal station.
  • the message broadcast module 103 is configured to broadcast the first packet if the first destination address exists in the local branch routing table.
  • the packet broadcast device 10 further includes a message masking module 104, configured to not broadcast the first packet if the first destination address does not exist in the local branch routing table.
  • the packet broadcast device 10 further includes a signal determining module 105, specifically configured to:
  • the second packet is masked.
  • the signal determining module 105 is specifically configured to:
  • the packet broadcast device 10 further includes a broadcast mode determining module 106, specifically configured to:
  • the packet broadcast module 103 is specifically configured to:
  • the first packet is broadcasted
  • the first message is not broadcast.
  • the first packet is a packet for transmitting data
  • the second packet is a packet for updating the local branch routing table.
  • the message broadcast device in the embodiment shown in FIG. 11 can be implemented by the message broadcast device shown in FIG.
  • FIG. 12 a schematic diagram of a structure of a packet broadcast device is provided in the embodiment of the present application.
  • the packet broadcast device 1000 shown in FIG. 12 includes a processor 1001 and a transceiver 1004.
  • the processor 1001 is connected to the transceiver 1004, such as through the bus 1002.
  • the message broadcast device 1000 may further include a memory 1003. It should be noted that, in the actual application, the transceiver 1004 is not limited to one, and the structure of the packet broadcast device 1000 does not constitute a limitation on the embodiment of the present application.
  • the processor 1001 is used in the embodiment of the present application to implement the function of the address lookup module 102 shown in FIG.
  • the transceiver 1004 includes a receiver and a transmitter.
  • the transceiver 1004 is used in the embodiment of the present application to implement the functions of the address obtaining module 101 and the message broadcast module 103 shown in FIG.
  • the processor 1001 may be a central processing unit (CPU), a general-purpose processor, a digital signal processing (DSP) device, an application specific integrated circuit (ASIC), and a field programmable gate array ( Field-Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure.
  • the processor 1001 may also be a combination of computing functions, such as one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
  • Bus 1002 can include a path for communicating information between the components described above.
  • the bus 1002 may be a PCI bus or 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 Figure 12, but it does not mean that there is only one bus or one type of bus.
  • the memory 1003 may be a ROM or other type of static storage device that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or 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.), disk storage media or other magnetic storage devices, or can be used to carry or store in the form of instructions or data structures.
  • the desired program code and any other medium that can be accessed by the computer but is not limited thereto.
  • the memory 1003 is configured to store application code for executing the solution of the present application, and is controlled by the processor 1001 for execution.
  • the processor 1001 is configured to execute the application code stored in the memory 1003 to implement the action of the message broadcast device provided by any of the embodiments shown in FIG.
  • Also provided in the embodiment of the present application is a computer storage medium for storing computer software instructions for use in the data receiving apparatus, including a program designed to execute the above aspects for the data receiving apparatus.
  • embodiments of the present application can be provided as a method, apparatus (device), or computer program product.
  • the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware.
  • the application can 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.) including computer usable program code.
  • the computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed are a method and device for packet broadcasting. The method is applicable in a power-line network. The power-line network comprises a central coordinator, a relay station, and a terminal station. The method comprises: a relay station acquires a first destination address of the terminal station carried in a first packet; the relay station searches whether the first destination address is present in a local branch routing table, the branch routing table comprising destination addresses of reachable terminal stations; and if the first destination address is present in the local branch routing table, then the relay station broadcasts the first packet. The employment of embodiments of the present application reduces the number of packets in the network while ensuring the reliability of packet transmission, thus reducing the scale of packet conflict, and increasing transmission efficiency.

Description

报文广播方法及设备Message broadcasting method and device 技术领域Technical field
本申请涉及计算机技术领域,尤其涉及一种报文广播方法及设备。The present application relates to the field of computer technologies, and in particular, to a message broadcast method and device.
背景技术Background technique
通信网络中传输的载波信号以报文为单元进行传输,且多采用全网广播以及代理广播等方式传输报文。The carrier signal transmitted in the communication network is transmitted in units of messages, and the messages are transmitted by means of full-network 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 all-network broadcast is that after the sending station sends a message, all the stations that receive the message broadcast the message to the surrounding sites, and all the sites that receive the broadcast message continue to broadcast the message. The packet is broadcasted on the entire network to reach the destination site. During the broadcast process, any site that receives the packet does not block the packet. As shown in Figure 1(a), the site in the entire network includes A1. - Site A7, Site A1 needs to send packets to Site A6. When Site A1 broadcasts the message at the relay site, the sites that receive the message (such as Sites A2, A3, and A4) are respectively Broadcasting the packets to the A5, A6, and A7 sites, causing the number of packets in the network to be too large, resulting in serious packet collisions, which affects the transmission efficiency of the packets. At least one proxy site exists in the entire network and/or at least A non-proxy site, 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 packet, and once the path on the critical path If the site does not receive the packet, the packet will be interrupted. As shown in Figure 1(b), the site in the entire network includes sites B1-B7. Among them, site B3 is the proxy site, and site B1 needs to report it. The message is sent to the B6 site. In the process of packet forwarding, if the B3 site does not receive the packet, the packet cannot be forwarded to the B6 site. Even if the B2 and B4 stations receive the packet, the packet cannot be forwarded. Send to the destination site, which reduces the reliability of message transmission.
发明内容Summary of the invention
本申请实施例所要解决的技术问题在于,提供一种报文广播方法及设备,在保证报文传输可靠性的同时,减少了网络中的报文数量,降低了报文冲突规模,提高了报文传输效率。The technical problem to be solved by the embodiment of the present invention is to provide a packet broadcast method and device, which can reduce the number of packets in the network, reduce the size of packet conflicts, and improve the report while ensuring the reliability of packet transmission. Text transmission efficiency.
第一方面,本申请实施例提供了一种报文广播方法,包括:中继站点获取第一报文中携带的终端站点的第一目的地址;所述中继站点在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址;若在所述本地的分支路由表中存在所述第一目的地址,则所述中继站点将所述第一报文进行广播。In a first aspect, the embodiment of the present application provides a packet broadcast method, including: a relay station acquires a first destination address of a terminal station carried in a first packet; and the relay station searches in a local branch routing table whether The first destination address exists, the branch routing table includes a destination address of the reachable terminal station; if the first destination address exists in the local branch routing table, the relay station A message is broadcast.
在本申请实施例第一方面中,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the first aspect of the embodiment of the present application, the packet is broadcasted according to the method of the branch broadcast, and the packet is transmitted according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal station in the branch, and the network is forwarded. In terms of broadcasting, the scale of network collisions in message transmission is reduced, and the frequency of use of the entire network broadcast is reduced. In contrast to the proxy broadcast, even if the proxy site on the path that only reaches the terminal site cannot successfully receive the message, Packets can also be transmitted through other paths in the branch to complete packet transmission, which improves the reliability of 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 station does not broadcast the The first message is described.
结合第一方面的第一种实现方式,在第一方面的第二种实现方式中,所述中继站点判 断接收到第二报文的报文信号质量是否达到预设信号质量阈值;若接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址;将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;若接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。这样,屏蔽其他分支的串扰信号,保证本分支的相对准确率和较高的可靠性。In conjunction with the first implementation of the first aspect, in a second implementation manner of the first aspect, the relay station Determining whether the quality of the packet signal of the second packet reaches the preset signal quality threshold; if the quality of the packet signal of the second packet reaches the preset signal quality threshold, acquiring the second packet a second sending address carried in the text; adding a second sending address carried in the second packet to the local branch routing table; if the quality of the packet signal of the second packet is not reached The preset signal quality threshold is used to mask the second packet. In this way, the crosstalk signals of other branches are shielded to ensure the relative accuracy and high reliability of the branch.
结合第一方面的第二种实现方式,在第一方面的第三种实现方式中,所述中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值,包括:判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。With the second implementation of the first aspect, in a third implementation manner of the first aspect, the relay station determines whether the quality of the received packet signal of the second packet reaches a preset signal quality threshold, including: determining And determining whether the packet signal strength of the second packet is greater than or equal to a preset signal strength threshold, or determining whether the packet communication success rate of the second packet is greater than or equal to a preset communication success threshold.
结合第一方面,在第一方面的第四种实现方式中,所述中继站点获取第一报文携带的所述终端站点的第一目的地址之前,还包括:所述中继站点确定第一报文中携带的发送方式为分支广播。这样,根据获取的报文的具体广播方式以执行该报文所被指定的广播方式,而不用一一尝试其他报文转发方式,有助于提高了报文传输的效率。With reference to the first aspect, in a fourth implementation manner of the first aspect, before the obtaining, by the relay station, the first destination address of the terminal station that is carried by the first packet, the method further includes: the relay station determining the first report The transmission method carried in the text is a branch broadcast. In this way, according to the specific broadcast mode of the obtained message, the broadcast mode specified by the message is executed, and the other message forwarding mode is not tried one by one, which helps to improve the efficiency of message transmission.
结合第一方面的第二种实现方式或第一方面的第三种实现方式,在第一方面的第五种实现方式中,所述将所述第一报文进行广播,包括:所述中继站点获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文;若所述中继站点在所述广播记录中不存在所述序列号标识,则所述中继站点将所述第一报文进行广播;若在所述广播记录中存在所述序列号标识,则所述中继站点不广播所述第一报文。这样,避免了对同一个广播报文进行多次广播,避免了广播风暴。In conjunction with the second implementation manner of the first aspect, or the third implementation manner of the first aspect, in the fifth implementation manner of the first aspect, the first packet is broadcast, including: the relay station Obtaining a sequence number identifier of the first packet, and searching for a sequence number identifier in the broadcast record, where the sequence number identifier is used to uniquely identify the first packet; If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first packet; 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, the embodiment of the present application provides a packet broadcast device, including: an address obtaining module, configured to acquire a first destination address of the terminal station carried in the first packet; and an address searching module, configured to be localized The branch routing table is configured to find whether the first destination address exists, the branch routing table includes a destination address of the reachable terminal station, and a packet broadcast module is configured to: if the first branch address table exists in the local branch routing table A destination address broadcasts the first message.
在本申请实施例第二方面中,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the second aspect of the embodiment of the present application, the packet is transmitted by using a branch broadcast manner, and the packet is transmitted according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal station in the branch, and the packet is forwarded. In terms of broadcasting, the scale of network collisions in message transmission is reduced, and the frequency of use of the entire network broadcast is reduced. In contrast to the proxy broadcast, even if the proxy site on the path that only reaches the terminal site cannot successfully receive the message, Packets can also be transmitted through other paths in the branch to complete packet transmission, which improves the reliability of packet transmission.
结合第二方面,在第二方面的第一种实现方式中,所述报文广播设备还包括:所述报文广播设备还包括:报文屏蔽模块,用于若在所述本地的分支路由表中不存在所述第一目的地址,则不广播所述第一报文。With the second aspect, in a first implementation manner of the second aspect, the packet broadcast device further includes: the packet broadcast device further includes: a message shielding module, configured to: if the local branch route 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 packet broadcast device further includes: a signal determining module, configured to: determine whether the quality of the received message signal of the second packet reaches a preset signal a quality threshold; if the quality of the packet signal of the second packet reaches the preset signal quality threshold, the second sending address carried in the second packet is obtained; The second sending address is added to the local branch routing table. If the quality of the packet signal of the second packet does not reach the preset signal quality threshold, the second packet is masked. In this way, the crosstalk signals of other branches are shielded to ensure the relative accuracy and high reliability of the branch.
结合第二方面的第二种实现方式,在第二方面的第三种实现方式中,所述信号判断模块具体用于:判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。With the second implementation of the second aspect, in a third implementation manner of the second aspect, the signal determining module is specifically configured to: determine whether the signal strength of the received second packet is greater than or equal to Presetting a signal strength threshold, or determining whether a message communication success rate of the second message is greater than or equal to a preset communication success threshold.
结合第二方面,在第二方面的第四种实现方式中,所述报文广播设备还包括广播方式确定模块,具体用于:确定第一报文中携带的发送方式为分支广播。这样,根据获取的报文的具体广播方式以执行该报文所被指定的广播方式,而不用一一尝试其他报文转发方式,有助于提高了报文传输的效率。With reference to the second aspect, in a fourth implementation manner of the second aspect, the packet broadcast device further includes a broadcast mode determining module, configured to: determine that the sending mode carried in the first packet is a branch broadcast. In this way, according to the specific broadcast mode of the obtained message, the broadcast mode specified by the message is executed, and the other message forwarding mode is not tried one by one, which helps to improve the efficiency of message transmission.
结合第二方面,在第二方面的第五种实现方式中,所述报文广播模块具体用于:获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文;若在所述广播记录中不存在所述序列号标识,则将所述第一报文进行广播;若在所述广播记录中存在所述序列号标识,则不广播所述第一报文。这样,避免了对同一个广播报文的多次广播,避免了广播风暴。With reference to the second aspect, in a fifth implementation manner of the second aspect, the packet broadcast module is specifically configured to: obtain a serial number identifier of the first packet, and search for a sequence in the broadcast record a number identifier, the serial number identifier is used to uniquely identify the first packet; if the serial number identifier does not exist in the broadcast record, the first packet is broadcasted; if the broadcast is in the broadcast If the serial number identifier exists in the record, the first packet is not broadcast. In this way, multiple broadcasts of the same broadcast message are avoided, and broadcast storms are avoided.
结合第二方面的第二种实现方式或第二方面的第三种实现方式,在第二方面的第六种实现方式中,所述第一报文为用于传输数据的报文,所述第二报文为用于更新所述本地的分支路由表的报文。With reference to 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 packet is a packet for transmitting data, The second packet is a packet 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 perform the message broadcast method provided by the first aspect of the present application. Optionally, a memory may be further included, where the memory is configured to store an application code, a routing entry, and the like that support the message broadcast device to perform the foregoing method, where the processor is configured to execute the application stored in the memory. program.
通过实施本申请实施例,当前中继站点获取第二报文携带的第二发送地址,并将该第二发送地址添加至本地的分支路由表中,以更新本地的分支路由表。当需要在该分支路由上传输第一报文时,中继站点获取第一报文携带的第一目的地址,并在本地的分支路由表中查找是否存在该第一目的地址,若存在,则将第一报文在分支内进行广播,否则,不广播第一报文。通过采用本申请实施例,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。By implementing the embodiment of the present application, 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 in the first packet, and searches for the first destination address in the local branch routing table, if yes, The first packet is broadcast in the branch; otherwise, the first packet is not broadcast. By adopting the embodiment of the present application, by using a branch broadcast manner and transmitting a message according to the pre-updated branch routing table, the packet is forwarded only on the path to the terminal station in the branch, which is relative to the whole network broadcast. , reducing the scale of network conflicts in message transmission, reducing the frequency of use of the entire network broadcast, and relative proxy broadcast, even if the only proxy site on the path to the terminal site can not successfully receive the message, it can pass The other paths in the branch transmit packets to complete the packet transmission, which improves the reliability of packet transmission.
附图说明DRAWINGS
图1(a)是本申请实施例提供的一种全网广播路线的逻辑结构示意图;1(a) is a schematic diagram showing the logical structure of a full-network broadcast route provided by an embodiment of the present application;
图1(b)是本申请实施例提供的一种代理广播路线的逻辑结构示意图;1(b) is a schematic diagram showing the logical structure of a proxy broadcast route provided by an embodiment of the present application;
图2是本申请实施例提供的一种电力线分支路线的逻辑结构示意图;2 is a schematic diagram of a logical structure of a power line branch route provided by an embodiment of the present application;
图3是本申请实施例提供的一种分支广播路线的逻辑结构示意图;3 is a schematic diagram of a logical structure of a branch broadcast route provided by an embodiment of the present application;
图4是本申请实施例提供的一种分支路由形成方法的流程示意图;4 is a schematic flowchart of a method for forming a branch route according to an embodiment of the present application;
图5是本申请实施例提供的一种数据报的报文结构示意图;FIG. 5 is a schematic structural diagram of a packet of a datagram according to an embodiment of the present application;
图6是本申请实施例提供的一种分支路由形成界面示意图; 6 is a schematic diagram of a branch routing forming interface provided by an embodiment of the present application;
图7(a)是本申请实施例提供的一种站点通信范围的界面示意图;FIG. 7(a) is a schematic diagram of an interface of a site communication range provided by an embodiment of the present application;
图7(b)是本申请实施例提供的另一种站点通信范围的界面示意图;FIG. 7(b) is a schematic diagram of another interface of a site communication range provided by an embodiment of the present application;
图8是本申请实施例提供的一种单播路线的逻辑结构示意图;8 is a schematic diagram of a logical structure of a unicast route provided by an embodiment of the present application;
图9是本申请实施例提供的另一种报文广播方法的流程示意图;FIG. 9 is a schematic flowchart diagram of another packet broadcast method according to an embodiment of the present application;
图10是本申请实施例提供的一种分支路由传输界面示意图;10 is a schematic diagram of a branch routing transmission interface provided by an embodiment of the present application;
图11是本申请实施例提供的一种分支广播设备的结构示意图;11 is a schematic structural diagram of a branch broadcast device according to an embodiment of the present application;
图12是本申请实施例提供的另一种分支广播设备的结构示意图。FIG. 12 is a schematic structural diagram of another branch broadcast device according to an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third", and "fourth" and the like in the specification and claims of the present application and the drawings are used to distinguish different objects, and are not used to describe a specific order. . Furthermore, the terms "comprises" and "comprising" and "comprising" are intended to cover a non-exclusive inclusion. For example, a process, method, system, product, or device that comprises a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units not listed, or alternatively Other steps or units inherent to these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。References to "an embodiment" herein mean that a particular feature, structure, or characteristic described in connection with the embodiments can be included in at least one embodiment of the present application. The appearances of the phrases in various places in the specification are not necessarily referring to the same embodiments, and are not exclusive or alternative embodiments that are mutually exclusive. Those skilled in the art will understand and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请实施例中的技术方案适用于电力线网络。下面以电力线网络为例对本申请实施例的应用场景进行描述。所谓电力线网络,就是指以电力线作为共享媒介来传输载波通信信号,形成一个由电力线上的通信设备组成的共享网络。通常,电力线网络为一个多级多中继网络拓扑结构。这是因为,在理想条件下,电力线上传输的载波通信信号会被电力线上所有的通信设备接收成功,而在实际应用中,由于信号衰减以及噪声等因素的影响使得载波通信信号的传输距离相对有限,但通常电力线所连接的范围又较大,因此,为了将载波通信信号传输至终端站点,通常采用中继站点以扩大载波通信信号的传输距离,这样,就形成了多级多中继网络拓扑的电力线网络。The technical solution in the embodiment of the present application is applicable to a power line network. The application scenario of the embodiment of the present application is described below by taking a power line network as an example. The so-called power line network refers to the transmission of carrier communication signals by using power lines as a shared medium to form a shared network composed of communication devices on the power lines. Typically, a power line network is a multi-level, multi-relay network topology. This is because, under ideal conditions, the carrier communication signals transmitted on the power line are successfully received by all communication devices on the power line. In practical applications, the transmission distance of the carrier communication signals is relatively large due to factors such as signal attenuation and noise. Limited, but usually the range of the power line is connected. Therefore, in order to transmit the carrier communication signal to the terminal station, a relay station is usually used to expand the transmission distance of the carrier communication signal, thus forming a multi-stage 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 showing the logical structure of a power line network according to the embodiment. The communication device includes a central coordinator (CCO), a relay station, and a terminal station, and the devices are connected by a power line. The structure shown in the figure consists of three levels. The first row of devices is at the first level, the middle row is at the second level, and the last row is at the third level. The central coordinator is configured to create and send a message; the relay station may be a computer system device providing a relay service, for receiving and forwarding a message, thereby transmitting the message to the terminal site, in order to transmit a longer distance The message can be forwarded to the next-level relay station, and the next-level relay station can continue to forward the message; the terminal station can be a network terminal device, such as a station, a mobile phone, or a smart phone. (smartphone), computer, tablet computer, personal digital assistant (PDA), mobile internet device (MID), etc., 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 application, after the first coordinator creates the first packet, the first packet is broadcasted in the branch, and is received. The relay station of the first packet obtains the first destination address of the terminal station to be reached by the first packet carried in the first packet, and searches for the first branch routing table in the local branch routing table storing multiple addresses. The destination address, if it exists, indicates that the current relay station has the route to the terminal station after the first packet is broadcasted. Therefore, the current relay station continues to broadcast the first packet. If it does not exist, it indicates that the current site does not exist at the terminal. Route of the site. 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. Sites D1 need to send packets to site D10. After the packets are broadcast at D1 site, D2-D6 sites receive messages. At this point, the stations look up the address of the D10 site in their respective branch routing tables. If there is (such as D4, D5), the packets are broadcast separately. If they do not exist (such as D2, D3, D6), then The message is not broadcast. After the packets are broadcasted by D4 and D5, the relay station that receives the message continues to transmit the message in the same manner until it reaches the terminal station D10. The relay station uses the branch broadcast mode to transmit the packet according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal station in the branch, and the packet is reduced compared with the whole network broadcast. The scale of the network collision in the transmission reduces the frequency of use of the whole network broadcast. Compared with the proxy broadcast, even if the proxy station on the path that only reaches the terminal station cannot successfully receive the message, it can pass other paths in the branch. The message is transmitted to complete the message transmission, which improves the reliability of message transmission.
以下通过图4—图10所示的实施例对报文广播方法进行详细描述。The message broadcast method will be described in detail below through the embodiments shown in FIGS. 4-10.
请参阅图4,图4是本申请实施例提供的一种报文本地的分支路由表的形成过程的流程示意图。下面以中继站点为例进行描述,所述方法包括:Please refer to FIG. 4. FIG. 4 is a schematic flowchart of a process of forming a branch routing table in a text message according to an embodiment of the present application. The relay site is taken as an example for description. The method includes:
步骤S101:中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值。Step S101: The relay station determines whether the quality of the received message signal of the second packet reaches a preset signal quality threshold.
具体的,报文是网络中信息交换与传输的数据单元,即站点一次性要发送的数据块。报文中携带了完整的数据信息,如发送地址OSTEI、目的地址ODTEI、当前中继站点的上一跳站点的地址STEI、当前中继站点将报文转发至终端站点时所经过的下一跳站点的地址DTEI、目的端口,发送源端口、数据长度、所用协议、加密等等。通常,这些信息可设置在报文头部。在本申请实施例中,将所要传输的报文作为第二报文,即第二报文为用于更新所述本地的分支路由表的报文。Specifically, the message is a data unit for information exchange and transmission in the network, that is, a data block to be sent by the site at one time. The packet carries the 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 station, and the next hop site that the current relay station passes when forwarding the packet to the terminal site. Address DTEI, destination port, source port, data length, protocol used, encryption, and so on. Usually, this information can be set at the head of the message. In the embodiment of the present application, the packet to be transmitted is used as the second packet, that is, the second packet is a packet for updating the local branch routing table.
例如,如图5所示为一种IP数据报的报文结构示意图,包括数据部分以及首部(头部)部分,其中首部包含有源IP地址(发送地址OSTEI)、目的IP地址(目的地址ODTEI)等信息。For example, as shown in FIG. 5, a schematic diagram of a packet structure of an IP datagram includes a data portion and a header (header) portion, wherein the header includes a source IP address (send address OSTEI) and a destination IP address (destination address ODTEI). ) and other information.
所述报文信号质量用于描述两站点之间的通信质量,并根据通信质量衡量两站点之间的距离,进而判断两站点是否属于同一分支网络。对于多个站点而言,例如,若有站点A能够接收到站点B和站点C所发送的报文,站点A判断接收到站点B发送的报文的报文信号质量高于站点C发送的报文的报文信号质量,所以,站点A可以根据报文信号质量确定,相对于站点C,站点B与站点A的距离更近一些,从而属于同一物理分支的可能性更大一些。The message 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, thereby determining whether the two sites belong to the same branch network. For multiple sites, for example, if the site A can receive the packets sent by the site B and the site C, the site A determines that the packet signal quality of the packet sent by the site B is higher than that of the site C. The message signal quality of the text, therefore, the site A can be determined according to the quality of the message signal. Compared with the site C, the distance between the site B and the site A is closer, so that it is more likely to belong to the same physical branch.
所述报文信号质量可以包括报文信号强度或者报文通信成功率,此处不作具体限定。The packet signal quality may include a packet signal strength or a packet communication success rate, which is not specifically limited herein.
其中,根据报文通信成功率判断两站点是否属于同一物理分支可以理解为,两个站点之间相互通信,其中一个站点对另一个站点发送的多个报文的负荷进行解析并统计,通过 解析的成功率确定两站点是否为同一物理分支内的站点。例如,站点A1接收到的站点D1持续发送的10个报文后,分别对这10个报文的负荷进行解析,若其中9个都无法成功解析,则可认为站点A1接收到站点D1发送的报文的报文通信功率为10%,而通常设定通信成功率阈值为20%,因此,可认为站点A1与站点D1不属于同一物理分支。It can be understood that the two stations belong to the same physical branch according to the success rate of the message communication, and the two stations communicate with each other, and one of the stations parses and counts the load of multiple messages sent by the other station. The success rate of parsing determines whether the two sites are sites within the same physical branch. For example, after the 10 packets received by the site D1 are continuously sent by the site A1, the load of the 10 packets is analyzed. If 9 of them cannot be successfully parsed, the site A1 can be considered to have received the site 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不属于同一物理分支。It can be understood that the two sites belong to the same physical branch according to the strength of the message signal. The two sites communicate with each other, and one of the stations calculates and counts the signal-to-noise ratio of the packets sent by the other site, thereby determining whether the two sites are Is the site within the same physical branch. For example, after receiving the packet sent by the site D2, the site A2 calculates the signal-to-noise ratio of the packet, and generally sets the signal-to-noise ratio threshold to be in the range of -5 to 0 db. If the calculated SNR is less than 0 db, Site A1 and site D1 may be considered not to 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, the interface diagram of the second packet transmission is performed. In the process of sending the second packet to the site No. 4 in the site No. 5, other sites in the communication range of the site 5, such as 41, 42 43, 44 can also receive the message, if the station receiving the message (such as 44) detects that the message signal strength is less than or equal to the preset signal strength threshold (signal strength difference), or detects the number 5 If the success rate of the message communication of the site is less than or equal to the preset communication success rate threshold (the communication success rate is low), it is determined that the site does not belong to the same branch network as the site 5, and at this time, the site 44 selects the second packet. The shielding is performed, so that the crosstalk of signals between different branches can be reduced; if the signal strength is detected or the communication success rate is high, it is determined that the station belongs to the same branch line as the station 5 (such as 41, 4, 42).
其中,通信范围是指本站点与其他站点之间的通信范围。即一个站点发送载波通信信号,而其他站点具有接收成功该载波通信信号的可能性,若接收成功,则说明该接收到载波通信信号的站点在该发送载波通信信号的站点的通信范围内。当然,由于涉及噪声,信号衰减等因素,通信范围是有限的。如图7(a)所示,A、B、C为电力线网络中的三个分支线路,当各个分支线路相距较远时,可认为各个站点与其对应的通信站点属于同一分支线路(通信范围如图中虚线所示)。The communication range refers to the communication range between the site and other sites. That is, one station transmits a carrier communication signal, and other stations have the possibility of receiving the carrier communication signal successfully. If the reception is successful, it indicates that the station that receives the carrier communication signal is within the communication range of the station that transmits the carrier communication signal. Of course, the communication range is limited due to factors such as noise, signal attenuation, and the like. As shown in Fig. 7(a), A, B, and C are three branch lines in the power line network. When each branch line is far apart, each station and its corresponding communication station can be considered to belong to the same branch line (communication range is as follows). The dotted line in the figure).
另外,如图7(b)所示,当各个分支线路相距较近时,各个站点对应的通信站点可以包含同一分支线路的站点,还可以包含不同分支线路的站点(通信范围如图中虚线所示),但同一分支线路和不同分支线路上的信号强弱不同。In addition, as shown in FIG. 7(b), when the respective branch lines are close to each other, the communication stations corresponding to the respective stations may include stations of the same branch line, and may also include stations of different branch lines (the communication range is as shown by the dotted line in the figure). Show), but the signal strength is different on the same branch line and on different branch lines.
步骤S102:若所述中继站点接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址。Step S102: Acquire a second sending address carried in the second packet if the quality of the packet signal of the second packet reaches the preset signal quality threshold.
具体的,所述第二报文携带的地址信息可以包括第二发送地址,还可以包括当前中继站点的上一跳地址,还可以包括第二目的地址以及当前中继站点的下一跳地址。Specifically, the address information carried by the second packet may include a second sending address, and may include a previous hop address of the current relay station, and may also include a second destination address and a next hop address of the current relay station.
具体实施中,当中继站点在接收到第二报文时,提取第二报文携带的地址信息,如第二发送地址OSTEI以及当前中继站点的上一跳地址STEI,还可以包括第二目的地址ODTEI以及当前中继站点的下一跳地址DTEI等。例如,如图6所示,从5号站点发送至1号站点的报文为第二报文,采用单播方式进行发送,在发送过程中,若当前中继站点为3号站点,即报文由4号站点发送至3号站点,报文携带的地址信息OSTEI为5,ODTEI为1,STEI为4、DTEI为3。In a specific implementation, when receiving the second packet, the relay station extracts the address information carried by the second packet, such as the second sending address OSTEI and the previous hop address STEI of the current relay station, and may also include the second destination address. ODTEI and the next hop address DTEI of the current relay station. For example, as shown in FIG. 6, the packet sent from the No. 5 station to the No. 1 station is the second packet, and is sent in a unicast manner. If the current relay station is the No. 3 station, that is, the packet is sent. It is sent from Site 4 to Site 3. The address information OSTEI carried by the packet is 5, ODTEI is 1, STEI is 4, and DTEI is 3.
其中,所谓单播方式,即报文由指定的站点对应发给另一指定的站点的过程,实现一对一发送。如图8所示,全网中的站点包括C1-C7号站点,C1号站点需要将报文发送至 C6号站点,在报文转发过程中,若C1号根据最优路径(最短路径、信号质量最优路径等)原则动态选择下一跳站点为C3号站点,基于同样的方式,C3号在接收到报文后,将报文对应发送至目的站点C6,在此过程中实现一对一的转发。The so-called unicast mode, that is, the process in which the message is sent to another designated site by the specified site, is one-to-one. As shown in Figure 8, the sites in the entire network include sites C1-C7, and sites C1 need to send packets to In the C6 station, if the C1 number dynamically selects the next hop site as the C3 site according to the principle of the optimal path (the shortest path, the optimal path of the signal quality, etc.), the C3 number is received in the same way. After the message is sent, the message is sent to the destination site C6, and one-to-one forwarding is implemented in the process.
事实上,无论以何种方式发送报文,中继站点接收到的都属于广播报文,区别在于接收站点是否对报文进行转发。也就是说,采用单播报文的方式,接收到报文的站点还可以为目标站点附近的站点,如图8中,在报文由C1单播至C3的过程中,C2和C4也可能接收到报文,但C2和C4不转发接收到的报文。In fact, no matter how the message is sent, the relay station receives the broadcast message, the difference is whether the receiving station forwards the message. That is to say, in the manner of unicast packets, the site receiving the message can also be a site near the target site. As shown in Figure 8, in the process of unicasting C1 to C3, C2 and C4 may also receive. To the message, but C2 and C4 do not forward the received message.
步骤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 a destination address ODTEI of the reachable terminal station. The current relay station adds the obtained second sending address to the local branch routing table to implement the update of the branch routing table.
如图6中,以当前中继站点为3号站点为例,接收到的第二报文的地址信息为:OSTEI为5,ODTEI为1,上一跳地址STEI为4,此时,3号站点将5号站点的地址添加到本地的分支路由表中。也就是说,此时,形成了3号站点到5号站点的路由。As shown in Figure 6, the current relay station is the No. 3 site. 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 Add the address of Site 5 to the local branch routing table. That is to say, at this time, the route from the No. 3 site to the No. 5 site is formed.
例如,如表1所示为图6中3号站点本地的分支路由表,其中包括ODTEI,当3号站点获取了5号站点的地址后,将该地址添加到表1的ODTEI,从而得到表2。For example, as shown in Table 1, the branch routing table local to Site 3 in Figure 6 includes ODTEI. When Site 3 obtains the address of Site 5, it adds the address to the ODTEI of Table 1, thereby obtaining a 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 further include a level level corresponding to the site and a next hop address Nexthop when forwarding the packet from the current site to the ODTEI. If the ODTEI is the address of the site 5, It indicates that the level of station 5 is 4, and station 3 forwards the message to Nexthop (site 4) and then forwards it to station 4.
表1Table 1
ODTEI ODTEI LevelLevel NexthopNexthop
44 33 44
22 11 22
11 00 22
表2Table 2
ODTEI ODTEI 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;若所述本地地址与所述下一跳地址不匹配,则对所述第二报文不转发(屏蔽所述第二报文)。Obtaining a next hop address carried in the second packet, and determining a local address and a next hop address of the current relay station If the local address matches the next hop address, the second packet is forwarded, and step S104 is performed; if the local address does not match the next hop address, Not forwarding the second packet (masking the second packet).
具体的,所述下一跳地址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 last hop station of the current relay station sends the second packet to the second destination address, that is, 4 When the site sends the message to Site 1, it first forwards it to Site 3, and the DTEI is 3.
例如,5号站点将第二报文发送至4号站点时,41和42也接收到报文,但根据第二报文中携带的DETI,41(42)确定本地地址与第二报文的DETI不匹配,从而确定此报文不是发送给自己的,因此,不转发此报文,而4号站点确定地址匹配,则对该报文进行转发。For example, when station 5 sends the second message to station 4, 41 and 42 also receive the message, but according to the DETI carried in the second message, 41 (42) determines the local address and the second message. The DETI does not match, so that the message is not sent to itself. Therefore, if the message is not forwarded and the site 4 determines that the address matches, the packet is forwarded.
可选的,若所述中继站点接收到所述第二报文的报文信号质量小于所述预设信号质量阈值,则执行步骤S104:所述中继站点屏蔽所述第二报文。Optionally, if the signal quality of the packet received by the relay station is less than the preset signal quality threshold, step S104 is performed: the relay station blocks the second packet.
在本申请实施例中,当前中继站点获取第二报文携带的第二发送地址,并将该第二发送地址添加至本地的分支路由表中,以更新本地的分支路由表。当需要在该分支路由上传输第一报文时,中继站点获取第一报文携带的第一目的地址,并在本地的分支路由表中查找是否存在该第一目的地址,若存在,则将第一报文在分支内进行广播,否则,不广播第一报文。通过采用本申请实施例,通过采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the embodiment of the present application, 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 in the first packet, and searches for the first destination address in the local branch routing table, if yes, The first packet is broadcast in the branch; otherwise, the first packet is not broadcast. By adopting the embodiment of the present application, by using a branch broadcast manner and transmitting a message according to the pre-updated branch routing table, the packet is forwarded only on the path to the terminal station in the branch, which is relative to the whole network broadcast. , reducing the scale of network conflicts in message transmission, reducing the frequency of use of the entire network broadcast, and relative proxy broadcast, even if the only proxy site on the path to the terminal site can not successfully receive the message, it can pass The other paths in the branch transmit packets to complete the packet transmission, which improves the reliability of packet transmission.
请参阅图9,图9是本申请另一实施例提供的报文广播方法的流程示意图。下面以中继站点为例进行描述,所述方法包括:Referring to FIG. 9, FIG. 9 is a schematic flowchart diagram of a message broadcast method according to another embodiment of the present application. The relay site is taken as an example for description. The method includes:
步骤S201:中继站点确定第一报文中携带的发送方式为分支广播。Step S201: The relay station determines that the sending mode carried in the first packet is a branch broadcast.
具体的,报文的发送方式包括单播、全网广播、分支广播以及代理广播等多种方式,对应的发送字段分别为UNICAST、BROADCAST、BRANCH_BROADCAST、PROXY_BROADCAST等,用于确定将第一报文采用何种方式进行发送。Specifically, the sending manner of the packet includes multiple modes such as unicast, full-network broadcast, branch broadcast, and proxy broadcast, and the corresponding sending fields are UNICAST, BROADCAST, BRANCH_BROADCAST, PROXY_BROADCAST, etc., and are used to determine that the first packet is used. How to send it.
其中,第一报文为用于传输数据的报文。该第一报文同样也具有类似于图5所示的报文格式,此处不再赘述。The first packet is a packet for transmitting data. The first packet also has a packet format similar to that shown in FIG. 5, and details are not described herein again.
步骤S202:所述中继站点获取第一报文中携带的终端站点的第一目的地址。Step S202: The relay station acquires a first destination address of the terminal station carried in the first packet.
具体实施中,当中继站点在接收到第一报文时,提取第一报文中携带的目的地址,在本申请实施例中,将第一报文所要到达的终端站点的地址作为第一目的地址。In a specific implementation, when the relay station receives the first packet, the destination address carried in the first packet is extracted, and in the embodiment of the present application, the address of the terminal station to be reached by the first packet is used as the first destination. address.
步骤S203:所述中继站点在本地的分支路由表中查找是否存在所述第一目的地址。Step S203: The relay station searches for a local destination branch table to find whether the first destination address exists.
具体地,本地的分支路由表即为当前中继站点的分支路由表,所述分支路由表包括可到达的终端站点的目的地址(ODTEI),还可以包括将报文从当前中继站点转发出去的下一跳站点的地址(Nexthop)、站点的层级(Level)、发送地址(OSTEI)等。而Level即为每个站点所属的层级,所述层级在组网中形成,所述OSTEI即为创建报文的CCO的地 址。在本申请实施例中,中继站点本地的分支路由表即采用图4所示的实施方法预先更新(如添加地址、删除地址等)。Specifically, the local branch routing table is a branch routing table of the current relay site, and the branch routing table includes a destination address (ODTEI) of the reachable terminal station, and may further include forwarding the packet from the current relay site. Onehop site address (Nexthop), site level (Level), sending address (OSTEI), etc. Level is the level to which each site belongs. The level is formed in the networking. The OSTEI is the CCO where the message is created. site. In the embodiment of the present application, the branch routing table local to the relay site is pre-updated by using the implementation method shown in FIG. 4 (such as adding an address, deleting an address, etc.).
具体实施中,接收到报文的当前中继站点在本地的分支路由表的ODTEI项中查找是否存在到达终端站点的第一目的地址,若存在,则确定当前中继站点与所述终端站点属于同一分支线路。例如,1号站点需要将第一报文发送至5号站点,则在1号站点的本地分支路由表中查找ODTEI项,若ODTEI中有5号站点的地址,则表明1号站点与5号站点属于同一分支线路。In a specific implementation, the current relay station that receives the packet searches for the first destination address of the terminal station in the ODTEI item of the local branch routing table, and if yes, determines that the current relay station belongs to the same branch as the terminal station. line. For example, if Site 1 needs to send the first packet to Site 5, look for the ODTEI entry in the local branch routing table of Site 1. If there is an address of Site 5 in ODTEI, it indicates Site 1 and No. 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 packet, and find in the broadcast record whether the serial number identifier exists. .
具体的,序列号标识用于唯一识别所述第一报文,可以为第一报文的序列号字段PacketIndex,该字段通常位于报文首部(如图5中所示),该字段由CCO在创建第一报文时按照递增的序列赋值,而由中继站点转发该报文时,不能修改该序列号字段。Specifically, the serial number identifier is used to uniquely identify the first packet, and may be a sequence number field PacketIndex of the first packet, where the field is usually located in the packet header (as shown in FIG. 5), and the field is used by the CCO. When the first message is created, the value is assigned in an increasing sequence, and when the message is forwarded by the relay station, the sequence number field cannot be modified.
具体实施中,当确定在本地的分支路由表中存在所述第一目的地址以后,获取该第一报文的序列号标识,并在广播记录中查找是否存在第一报文的序列号标识,若存在,则表明已经对该报文进行过广播,此时,将不转发该第一报文,避免再次广播引起广播风暴,若在广播记录中不存在该序列号标识,则表明该报文是首次广播,不存在广播记录,因此可将该第一报文广播出去。其中,所述不转发可以为屏蔽或过滤或丢弃、也可以为记录单不广播等。In a specific implementation, after determining that the first destination address exists in the local branch routing table, obtaining the sequence number identifier of the first packet, and searching for the serial number identifier of the first packet in the broadcast record, If it exists, it indicates that the packet has been broadcasted. In this case, the first packet will not be forwarded, and the broadcast storm will be prevented from being broadcast again. If the serial number identifier does not exist in the broadcast record, the packet is indicated. It is the first broadcast, and there is no broadcast record, so the first message can be broadcasted. The non-forwarding may be shielding or filtering or discarding, or may not be a broadcast of the recording list.
例如,若采用图6所示的实施方法形成的分支路由表对应的示意图如图10所示,其中,1、2、21、3、4、和42号站点的本地的分支路由表中存储了5号站点的地址。当需要将第一报文从2号站点发送至5号站点时,通过查找2号站点的本地分支路由表,确定存在5号站点的地址,然后在广播记录中查找是否存在第一报文的序列号标识。For example, a schematic diagram corresponding to the branch routing table formed by using the implementation method shown in FIG. 6 is shown in FIG. 10, in which local branch routing tables of sites 1, 2, 21, 3, 4, and 42 are stored. The address of Site 5. When the first packet needs to be sent from the No. 2 site to the No. 5 site, the local branch routing table of the No. 2 site is searched to determine the address of the No. 5 site, and then the broadcast record records whether the first packet exists. Serial number identification.
步骤S205:若在所述广播记录中不存在所述序列号标识,则所述中继站点将所述第一报文进行广播。Step S205: If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first packet.
具体的,所述第一报文可以为上行报文也可以为下行报文。也就是说,若采用单播方式传输第二报文为下行过程,则该第一报文即为上行报文,同样,若采用单播方式传输第二报文为上行过程,则该第一报文即为下行报文。Specifically, the first packet may be an uplink packet or a downlink packet. That is, if the second packet is transmitted in the unicast mode, the first packet is the uplink packet. Similarly, if the second packet is transmitted in the unicast mode, the first packet is the uplink process. The packet is the downlink packet.
具体实施中,当前中继站点获取第一目的地址对应的终端站点的层级以及当前中继站点的层级,若所述第一报文为下行报文,在所述终端站点的层级大于或者等于当前中继站点的层级时,所述中继站点对第一报文进行广播,在所述终端站点的层级小于当前中继站点的层级时,所述中继站点不广播所述第一报文;若所述第一报文为上行报文,在所述终端站点的层级小于或者等于所述中继站点的层级时,所述中继站点对所述第一报文进行广播,在所述终端站点的层级大于所述中继站点的层级时,所述中继站点不广播所述第一报文。In a specific implementation, the current relay station acquires the tier of the terminal site corresponding to the first destination address and the tier of the current relay site. If the first packet is a downlink packet, the tier of the terminal site is greater than or equal to the current relay site. The relay station broadcasts the first packet when the tier of the terminal station is smaller than the tier of the current relay site, the relay station does not broadcast the first packet; If the level of the terminal station is less than or equal to the level of the relay station, the relay station broadcasts the first packet, and the level of the terminal station is greater than the relay station. At the tier level, the relay station does not broadcast the first message.
通常,CCO层级为0,离CCO最近的一级站点层级为1,再远一级的二级站点层级为2,依此类推,可明确每级站点的层级。Usually, the CCO level is 0, the level of the first-level site closest to the CCO is 1, and the level of the second-level site is 2, and so on, the level of each level of the site can be clarified.
例如,如图10所示,若1至5号站点的层级依次为0、1、2、3、4,当报文由1号站点发送至4号站点时,则确定为下行报文,且在发送过程中,终端站点4的层级大于或 者等于中继站点的层级,因此,接收到报文的中继站点继续广播报文,而在到达终端站点4后,其同级站点继续广播报文,同级站点的下级站点则停止广播。同样的,当报文由5号站点发送至2号站点时,则根据层级关系,确定为上行报文,且在到达2号站点后,2号站点的同级站点对报文进行广播,2号站点的下级站点则停止广播。For example, as shown in FIG. 10, if the tiers of stations 1 to 5 are 0, 1, 2, 3, and 4 in sequence, when the packet is sent from station 1 to station 4, it is determined to be a downlink packet, and During the transmission process, the level of the terminal station 4 is greater than or The relay station is equal to the tier of the relay station. Therefore, the relay station that receives the message continues to broadcast the message, and after reaching the terminal station 4, its peer station continues to broadcast the message, and the lower-level site at the same level station stops broadcasting. Similarly, when the message is sent from the No. 5 station to the No. 2 site, it is determined as an uplink packet according to the hierarchical relationship, and after reaching the No. 2 site, the same-level site of the No. 2 site broadcasts the packet, 2 The subordinate site of the site stops broadcasting.
进一步的,若在所述广播记录中存在所述序列号标识,则执行步骤S206:不广播所述第一报文。Further, if the serial number identifier exists in the broadcast record, step S206 is performed: the first message is not broadcasted.
可选的,在执行步骤S205之前,还可对所述第一报文中携带的上一跳地址进行更新。Optionally, the previous hop address carried in the first packet may be updated before the step S205 is performed.
具体的,上一跳地址(STEI)即为当前中继站点的地址。以当前中继站点为3号站点为例,也就是说,3号站点接收到的报文信息为OSTEI为5,ODTEI为1,STEI为4,DTEI为3,而3号站点将该报文广播出去时,则更新STEI为3,使得4号站点在接收到该报文时,可以确定上一跳地址。Specifically, the last hop address (STEI) is the address of the current relay station. Take the current relay station as the No. 3 site as an example. That is, the message received by the third station is OSTEI 5, ODTEI is 1, STEI is 4, DTEI is 3, and station 3 broadcasts the message. When going out, the STEI is updated to 3, so that the station 4 can determine the last hop address when receiving the message.
可选的,若在本地的分支路由表中不存在所述第一目的地址,则不转发所述第一报文。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 FIG. 10, after the first packet is received, the 44 looks for the ODTEI of the local branch routing table, and determines that there is no address to reach the fifth station, and then masks or discards the first packet. Or filter, etc.
在本申请实施例中,通过预先更新本地的分支路由表,当需要在分支内传输第一报文时,中继站点获取第一报文携带的第一目的地址,并在本地的分支路由表中查找是否该第一目的地址,若存在,则继续在广播记录中查找是否存在该第一报文的序列号标识,若不存在,则将第一报文进行广播。通过采用本申请实施例,采用分支广播的方式,并根据预先更新的分支路由表传输报文,使得报文只在分支内部中存在到达终端站点的路径上进行转发,相对全网广播而言,减少了报文传输中的网络冲突规模,降低了全网广播的使用频度,而相对代理广播而言,即使唯一到达终端站点的路径上的代理站点不能够成功接收报文,也能通过分支内的其他路径传输报文以完成报文传输,提高了报文传输的可靠性。In the embodiment of the present application, the pre-updating local branch routing table, 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 is in the local branch routing table. The first destination address is searched for. If yes, the broadcast record is searched for the serial number identifier of the first packet. If not, the first packet is broadcast. By adopting the embodiment of the present application, the branch broadcast mode is adopted, and the packet is transmitted according to the pre-updated branch routing table, so that the packet is forwarded only on the path to the terminal site in the branch, compared with the whole network broadcast. It reduces the scale of network conflicts in message transmission and reduces the frequency of use of the whole network broadcast. Compared with the proxy broadcast, even if the proxy site on the path that only reaches the terminal site cannot successfully receive the message, it can pass the branch. The other paths in the path transmit messages to complete the message transmission, which improves the reliability of message transmission.
上述详细阐述了本申请实施例的方法,下面提供了本申请实施例的装置。The above describes the method of the embodiment of the present application in detail, and the apparatus of the embodiment of the present application is provided below.
请参阅图11,图11是本申请实施例提供的一种报文广播设备10的结构示意图。如图11所示,该设备包括地址获取模块101、地址查找模块102、报文广播模块103,其中,各个模块的详细描述如下。Referring to FIG. 11, FIG. 11 is a schematic structural diagram of a message broadcast device 10 according to an embodiment of the present disclosure. As shown in FIG. 11, the device includes an address obtaining module 101, an address finding module 102, and a message broadcast module 103. The detailed description of each module is as follows.
地址获取模块101,用于获取第一报文中携带的所述终端站点的第一目的地址。The address obtaining module 101 is configured to obtain a first destination address of the terminal station carried in the first packet.
地址查找模块102,用于在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址。The address lookup module 102 is configured to search, in the local branch routing table, whether the first destination address exists, and the branch routing table includes a destination address of the reachable terminal station.
报文广播模块103,用于若在所述本地的分支路由表中存在所述第一目的地址,则将所述第一报文进行广播。The message broadcast module 103 is configured to broadcast the first packet if the first destination address exists in the local branch routing table.
所述报文广播设备10还包括报文屏蔽模块104,用于若在所述本地的分支路由表中不存在所述第一目的地址,则不广播所述第一报文。The packet broadcast device 10 further includes a message masking module 104, configured to not broadcast the first packet if the first destination address does not exist in the local branch routing table.
可选的所述报文广播设备10还包括信号判断模块105,具体用于:Optionally, the packet broadcast device 10 further includes a signal determining module 105, specifically configured to:
判断接收到第二报文的报文信号质量是否达到预设信号质量阈值;Determining whether the quality of the received message signal of the second packet reaches a preset signal quality threshold;
若接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址; And acquiring, by the second message, the second sending address carried in the second packet, if the quality of the packet signal of the second packet reaches the preset signal quality threshold;
将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;Adding a second sending address carried in the second packet to the local branch routing table;
若接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。And if the quality of the packet signal of the second packet does not reach the preset signal quality threshold, the second packet is masked.
可选的,所述信号判断模块105具体用于:Optionally, the signal determining module 105 is specifically configured to:
判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。Determining whether the packet signal strength of the second packet is greater than or equal to a preset signal strength threshold, or determining whether the packet communication success rate of the second packet is greater than or equal to a preset communication success threshold .
可选的,所述报文广播设备10还包括广播方式确定模块106,具体用于:Optionally, the packet broadcast device 10 further includes a broadcast mode determining module 106, specifically configured to:
确定第一报文中携带的发送方式为分支广播。It is determined that the sending mode carried in the first packet is a branch broadcast.
可选的,所述报文广播模块103具体用于:Optionally, the packet broadcast module 103 is specifically configured to:
获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文;Obtaining a serial number identifier of the first packet, and searching for a serial number identifier in the broadcast record, where the serial number identifier is used to uniquely identify the first packet;
若在所述广播记录中不存在所述序列号标识,则将所述第一报文进行广播;If the serial number identifier does not exist in the broadcast record, the first packet is broadcasted;
若在所述广播记录中存在所述序列号标识,则不广播所述第一报文。If the serial number identifier exists in the broadcast record, the first message is not broadcast.
可选的,所述第一报文为用于传输数据的报文,所述第二报文为用于更新所述本地的分支路由表的报文。Optionally, the first packet is a packet for transmitting data, and the second packet is a packet for updating the local branch routing table.
图11所示实施例中的报文广播设备可以以图12所示的报文广播设备实现。如图12所示,为本申请实施例提供了一种报文广播设备的结构示意图,图12所示报文广播设备1000包括:处理器1001和收发器1004。其中,处理器1001和收发器1004相连,如通过总线1002相连。可选的,所述报文广播设备1000还可以包括存储器1003。需要说明的是,实际应用中收发器1004不限于一个,该报文广播设备1000的结构并不构成对本申请实施例的限定。The message broadcast device in the embodiment shown in FIG. 11 can be implemented by the message broadcast device shown in FIG. As shown in FIG. 12, a schematic diagram of a structure of a packet broadcast device is provided in the embodiment of the present application. The packet broadcast device 1000 shown in FIG. 12 includes a processor 1001 and a transceiver 1004. The processor 1001 is connected to the transceiver 1004, such as through the bus 1002. Optionally, the message broadcast device 1000 may further include a memory 1003. It should be noted that, in the actual application, the transceiver 1004 is not limited to one, and the structure of the packet broadcast device 1000 does not constitute a limitation on the embodiment of the present application.
其中,处理器1001应用于本申请实施例中,用于实现图11所示的地址查找模块102的功能。收发器1004包括接收机和发射机,收发器1004应用于本申请实施例中,用于实现图10所示的地址获取模块101以及报文广播模块103的功能。The processor 1001 is used in the embodiment of the present application to implement the function of the address lookup module 102 shown in FIG. The transceiver 1004 includes a receiver and a transmitter. The transceiver 1004 is used in the embodiment of the present application to implement the functions of the address obtaining module 101 and the message broadcast module 103 shown in FIG.
处理器1001可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理(Digital Signal Process,DSP)器件,专用集成电路(Application Specific Integrated Circuit,ASIC),现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器1001也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。The processor 1001 may be a central processing unit (CPU), a general-purpose processor, a digital signal processing (DSP) device, an application specific integrated circuit (ASIC), and a field programmable gate array ( Field-Programmable Gate Array (FPGA) or other programmable logic device, transistor logic device, hardware component, or any combination thereof. It is possible to implement or carry out the various illustrative logical blocks, modules and circuits described in connection with the present disclosure. The processor 1001 may also be a combination of computing functions, such as one or more microprocessor combinations, a combination of a DSP and a microprocessor, and the like.
总线1002可包括一通路,在上述组件之间传送信息。总线1002可以是PCI总线或EISA总线等。总线1002可以分为地址总线、数据总线、控制总线等。为便于表示,图12中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。 Bus 1002 can include a path for communicating information between the components described above. The bus 1002 may be a PCI bus or 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 Figure 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 may be a ROM or other type of static storage device that can store static information and instructions, RAM or other types of dynamic storage devices that can store information and instructions, or 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.), disk storage media or other magnetic storage devices, or can be used to carry or store in the form of instructions or data structures. The desired program code and any other medium that can be accessed by the computer, but is not limited thereto.
可选的,存储器1003用于存储执行本申请方案的应用程序代码,并由处理器1001来控制执行。处理器1001用于执行存储器1003中存储的应用程序代码,以实现图9所示任一实施例提供的报文广播设备的动作。Optionally, the memory 1003 is configured to store application code for executing the solution of the present application, and is controlled by the processor 1001 for execution. The processor 1001 is configured to execute the application code stored in the memory 1003 to implement the action of the message broadcast device provided by any of the embodiments shown in FIG.
在本申请实施例中还提供了一种计算机存储介质,用于储存为上述数据接收装置所用的计算机软件指令,其包含用于执行上述方面为数据接收装置所设计的程序。Also provided in the embodiment of the present application is a computer storage medium for storing computer software instructions for use in the data receiving apparatus, including a program designed to execute the above aspects for the data receiving apparatus.
尽管在此结合各实施例对本申请进行了描述,然而,在实施所要求保护的本申请过程中,本领域技术人员通过查看所述附图、公开内容、以及所附权利要求书,可理解并实现所述公开实施例的其他变化。在权利要求中,“包括”(comprising)一词不排除其他组成部分或步骤,“一”或“一个”不排除多个的情况。单个处理器或其他单元可以实现权利要求中列举的若干项功能。相互不同的从属权利要求中记载了某些措施,但这并不表示这些措施不能组合起来产生良好的效果。Although the present application has been described herein in connection with the various embodiments, those skilled in the art can Other variations of the disclosed embodiments are achieved. 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 several of the functions recited in the claims. Certain measures are recited in mutually different dependent claims, but this does not mean that the measures are not combined to produce a good effect.
本领域技术人员应明白,本申请的实施例可提供为方法、装置(设备)、或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。计算机程序存储/分布在合适的介质中,与其它硬件一起提供或作为硬件的一部分,也可以采用其他分布形式,如通过Internet或其它有线或无线电信系统。Those skilled in the art will appreciate that embodiments of the present application can be provided as a method, apparatus (device), or computer program product. Thus, the present application can take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment in combination of software and hardware. Moreover, the application can 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.) including computer usable program code. The computer program is stored/distributed in a suitable medium, provided with other hardware or as part of the hardware, or in other distributed forms, such as over the Internet or other wired or wireless telecommunication systems.
本申请是参照本申请实施例的方法、装置(设备)和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present application is described with reference to flowchart illustrations and/or block diagrams of the methods, apparatus, and computer program products of the embodiments of the present application. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管结合具体特征及其实施例对本申请进行了描述,显而易见的,在不脱离本申请的精神和范围的情况下,可对其进行各种修改和组合。相应地,本说明书和附图仅仅是所附权利要求所界定的本申请的示例性说明,且视为已覆盖本申请范围内的任意和所有修改、变化、组合或等同物。显然,本领域的技术人员可以对本申请进行各种改动和变型而不脱离本申请的精神和范围。这样,倘若本申请的这些修改和变型属于本申请权利要求及其等同技术的范围之内,则本申请也意图包含这些改动和变型在内。 While the present invention has been described in connection with the specific embodiments and embodiments thereof, various modifications and combinations can be made without departing from the spirit and scope of the application. Accordingly, the description and drawings are to be regarded as It will be apparent to those skilled in the art that various modifications and changes can be made in the present application without departing from the spirit and scope of the application. Thus, it is intended that the present invention cover the modifications and variations of the present invention.

Claims (15)

  1. 一种报文广播方法,其特征在于,所述方法应用于电力线网络中,所述电力线网络包括中央协调器、中继站点以及终端站点,所述方法包括:A message broadcasting method, characterized in that the method is applied to a power line network, the power line network comprising a central coordinator, a relay station and a terminal station, the method comprising:
    中继站点获取第一报文中携带的所述终端站点的第一目的地址;The relay station acquires a first destination address of the terminal station carried in the first packet;
    所述中继站点在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址;Determining, by the relay station, a local destination address in the local branch routing table, where the branch routing table includes a destination address of the reachable terminal station;
    若在所述本地的分支路由表中存在所述第一目的地址,则所述中继站点将所述第一报文进行广播。If the first destination address exists in the local branch routing table, the relay station broadcasts the first packet.
  2. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    若在所述本地的分支路由表中不存在所述第一目的地址,则所述中继站点不广播所述第一报文。If the first destination address does not exist in the local branch routing table, the relay station does not broadcast the first packet.
  3. 如权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 wherein the method further comprises:
    所述中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值;Determining, by the relay station, whether the quality of the received message signal of the second packet reaches a preset signal quality threshold;
    若所述中继站点接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址;And acquiring, by the relay station, the second sending address carried in the second packet, if the quality of the packet signal of the second packet reaches the preset signal quality threshold;
    所述中继站点将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;The relay station adds a second sending address carried in the second packet to the local branch routing table;
    若所述中继站点接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。If the quality of the packet signal of the second packet is not up to the preset signal quality threshold, the second packet is blocked.
  4. 如权利要求3所述的方法,其特征在于,所述中继站点判断接收到第二报文的报文信号质量是否达到预设信号质量阈值,包括:The method of claim 3, wherein the relay station determines whether the quality of the received message signal of the second packet reaches a preset signal quality threshold, including:
    所述中继站点判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。Determining, by the relay station, whether the packet signal strength of the second packet is greater than or equal to a preset signal strength threshold, or determining whether the packet communication success rate of the second packet is greater than or equal to a preset Communication success rate threshold.
  5. 如权利要求1所述的方法,其特征在于,所述获取第一报文携带的所述终端站点的第一目的地址之前,还包括:The method according to claim 1, wherein before the obtaining the first destination address of the terminal station carried in the first packet, the method further includes:
    所述中继站点确定第一报文中携带的发送方式为分支广播。The relay station determines that the sending mode carried in the first packet is a branch broadcast.
  6. 如权利要求1所述的方法,其特征在于,所述中继站点将所述第一报文进行广播,包括:The method of claim 1, wherein the relay station broadcasts the first packet, including:
    所述中继站点获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文; The relay station acquires the serial number identifier of the first packet, and searches for a serial number identifier in the broadcast record, where the serial number identifier is used to uniquely identify the first packet;
    若在所述广播记录中不存在所述序列号标识,则所述中继站点将所述第一报文进行广播;If the serial number identifier does not exist in the broadcast record, the relay station broadcasts the first packet;
    若在所述广播记录中存在所述序列号标识,则所述中继站点不广播所述第一报文。If the serial number identifier exists in the broadcast record, the relay station does not broadcast the first message.
  7. 如权利要求3或4所述的方法,其特征在于,所述第一报文为用于传输数据的报文,所述第二报文为用于更新所述本地的分支路由表的报文。The method according to claim 3 or 4, wherein the first message is a message for transmitting data, and the second message is a message for updating the local branch routing table. .
  8. 一种报文广播设备,其特征在于,包括:A message broadcast device, comprising:
    地址获取模块,用于获取第一报文中携带的所述终端站点的第一目的地址;An address obtaining module, configured to obtain a first destination address of the terminal station carried in the first packet;
    地址查找模块,用于在本地的分支路由表中查找是否存在所述第一目的地址,所述分支路由表包括可到达的终端站点的目的地址;An address finding module, configured to search, in a local branch routing table, whether the first destination address exists, where the branch routing table includes a destination address of the reachable terminal station;
    报文广播模块,用于若在所述本地的分支路由表中存在所述第一目的地址,则将所述第一报文进行广播。The message broadcast module is configured to broadcast the first packet if the first destination address exists in the local branch routing table.
  9. 如权利要求8所述的报文广播设备,其特征在于,所述报文广播设备还包括:The packet broadcast device of claim 8, wherein the message broadcast device further comprises:
    报文屏蔽模块,用于若在所述本地的分支路由表中不存在所述第一目的地址,则不广播所述第一报文。The message masking module is configured to not broadcast the first packet if the first destination address does not exist in the local branch routing table.
  10. 如权利要求8所述的报文广播设备,其特征在于,所述报文广播设备还包括信号判断模块,具体用于:The packet broadcast device of claim 8, wherein the message broadcast device further comprises a signal determining module, specifically configured to:
    判断接收到第二报文的报文信号质量是否达到预设信号质量阈值;Determining whether the quality of the received message signal of the second packet reaches a preset signal quality threshold;
    若接收到所述第二报文的报文信号质量达到所述预设信号质量阈值,则获取所述第二报文中携带的第二发送地址;And acquiring, by the second message, the second sending address carried in the second packet, if the quality of the packet signal of the second packet reaches the preset signal quality threshold;
    将所述第二报文中携带的第二发送地址添加到所述本地的分支路由表中;Adding a second sending address carried in the second packet to the local branch routing table;
    若接收到所述第二报文的报文信号质量未达到所述预设信号质量阈值,则屏蔽所述第二报文。And if the quality of the packet signal of the second packet does not reach the preset signal quality threshold, the second packet is masked.
  11. 如权利要求10所述的报文广播设备,其特征在于,所述信号判断模块具体用于:The message broadcast device according to claim 10, wherein the signal determining module is specifically configured to:
    判断接收到所述第二报文的报文信号强度是否大于或者等于预设信号强度阈值,或者判断接收到所述第二报文的报文通信成功率是否大于或者等于预设通信成功率阈值。Determining whether the packet signal strength of the second packet is greater than or equal to a preset signal strength threshold, or determining whether the packet communication success rate of the second packet is greater than or equal to a preset communication success threshold .
  12. 如权利要求8所述的报文广播设备,其特征在于,所述报文广播设备还包括广播方式确定模块,具体用于:The packet broadcast device according to claim 8, wherein the message broadcast device further includes a broadcast mode determining module, specifically configured to:
    确定第一报文中携带的发送方式为分支广播。It is determined that the sending mode carried in the first packet is a branch broadcast.
  13. 如权利要求8所述的报文广播设备,其特征在于,所述报文广播模块具体用于:The packet broadcast device according to claim 8, wherein the message broadcast module is specifically configured to:
    获取所述第一报文的序列号标识,并在广播记录中查找是否存在所述序列号标识,所述序列号标识用于唯一识别所述第一报文; Obtaining a serial number identifier of the first packet, and searching for a serial number identifier in the broadcast record, where the serial number identifier is used to uniquely identify the first packet;
    若在所述广播记录中不存在所述序列号标识,则将所述第一报文进行广播;If the serial number identifier does not exist in the broadcast record, the first packet is broadcasted;
    若在所述广播记录中存在所述序列号标识,则不广播所述第一报文。If the serial number identifier exists in the broadcast record, the first message is not broadcast.
  14. 如权利要求10或11所述的报文广播设备,其特征在于,所述第一报文为用于传输数据的报文,所述第二报文为用于更新所述本地的分支路由表的报文。The packet broadcast device according to claim 10 or 11, wherein the first packet is a packet for transmitting data, and the second packet is used for updating the local branch routing table. Message.
  15. 一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行如权利要求1-7任意一项所述的方法。 A computer readable storage medium comprising instructions which, when executed on a computer, cause the computer to perform the method of any of claims 1-7.
PCT/CN2017/111719 2017-04-10 2017-11-17 Method and device for packet broadcasting WO2018188337A1 (en)

Applications Claiming Priority (2)

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

Publications (1)

Publication Number Publication Date
WO2018188337A1 true WO2018188337A1 (en) 2018-10-18

Family

ID=59726408

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/111719 WO2018188337A1 (en) 2017-04-10 2017-11-17 Method and device for packet broadcasting

Country Status (2)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139289A1 (en) * 2020-01-08 2021-07-15 华为技术有限公司 Packet sending method, routing table entry generation method, device, and storage medium
CN113645676A (en) * 2021-08-13 2021-11-12 中国人民解放军63620部队 Service data sending method and device, computer equipment and storage medium

Families Citing this family (5)

* 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
CN111682978A (en) * 2020-05-21 2020-09-18 河南理工大学 Network communication enhancement method and system
CN114697147B (en) * 2020-12-29 2024-04-05 浙江宇视科技有限公司 Equipment searching method, device, equipment 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

Citations (4)

* 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
CN101373556A (en) * 2007-08-23 2009-02-25 瑞斯康微电子(深圳)有限公司 Method for transmitting and receiving low pressure carrier wave centralized type network and apparatus thereof
CN106533503A (en) * 2015-09-10 2017-03-22 深圳市中兴微电子技术有限公司 Method and device for power line network communication
CN107124363A (en) * 2017-04-10 2017-09-01 华为技术有限公司 Message broadcasting method and apparatus

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8112358B2 (en) * 2007-06-04 2012-02-07 Qualcomm Atheros, Inc. Authorizing customer premise equipment on a sub-network
CN100499529C (en) * 2007-09-14 2009-06-10 武汉烽火网络有限责任公司 Jitter detection based congestion control method in city domain Ethernet
CN102801609B (en) * 2012-06-21 2017-05-24 华为技术有限公司 Selection method for relay station and station equipment
CN102970233B (en) * 2012-11-22 2016-03-30 华为技术有限公司 Obtain the method for route, device, equipment, concentrator and system
CN104009919B (en) * 2013-02-25 2017-06-09 新华三技术有限公司 Message forwarding method and device
CN103312547B (en) * 2013-06-18 2016-06-29 华为技术有限公司 Communication means, Apparatus and system
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
CN106301472A (en) * 2016-08-17 2017-01-04 华为技术有限公司 Method and the website of relay is selected in power line network

Patent Citations (4)

* 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
CN101373556A (en) * 2007-08-23 2009-02-25 瑞斯康微电子(深圳)有限公司 Method for transmitting and receiving low pressure carrier wave centralized type network and apparatus thereof
CN106533503A (en) * 2015-09-10 2017-03-22 深圳市中兴微电子技术有限公司 Method and device for power line network communication
CN107124363A (en) * 2017-04-10 2017-09-01 华为技术有限公司 Message broadcasting method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021139289A1 (en) * 2020-01-08 2021-07-15 华为技术有限公司 Packet sending method, routing table entry generation method, device, and storage medium
CN113645676A (en) * 2021-08-13 2021-11-12 中国人民解放军63620部队 Service data sending method and device, computer equipment and storage medium
CN113645676B (en) * 2021-08-13 2023-12-15 中国人民解放军63620部队 Service data sending method and device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN112383478B (en) 2022-05-24
CN112383478A (en) 2021-02-19
CN107124363A (en) 2017-09-01
CN107124363B (en) 2020-11-06

Similar Documents

Publication Publication Date Title
WO2018188337A1 (en) Method and device for packet broadcasting
CN107852362B (en) Mesh network system and method
US7961627B2 (en) Method and system for generating antenna selection signals in OFDM transceivers with fewer RF chains than antennas in MIMO wireless networks
WO2016081734A2 (en) Techniques to support heterogeneous network data path discovery
CN110692268B (en) Island Topology and Routing in Hybrid Mesh Networks
US9380513B2 (en) Reducing broadcast duplication in hybrid wireless mesh protocol routing
US8213352B2 (en) Wireless communication system, wireless communication device, wireless communication method, and program
US10785700B2 (en) Apparatus and method for transmitting beacon messages in a mesh network
US10594598B2 (en) Path setup in a mesh network
US20160081005A1 (en) Route formation and message transmission in a data link group over multiple channels
EP2894812B1 (en) Method and apparatus for establishing a virtual interface for a set of mutual-listener devices
US20140133353A1 (en) Communication device, method for detecting hub and transmitting packet thereof
WO2018019056A1 (en) Data transmission method and relay node
US9742578B2 (en) Simple mesh network for wireless transceivers
CN110784244B (en) Data transmission method and full-duplex Ad Hoc network system
KR101903586B1 (en) Apparatus to build a distributed schedule for p2p in TSCH and AODV based Industrial IoT Networks
WO2022233299A1 (en) Network communication method and base station
CN103685039A (en) Broadcast message transmission method in wireless communication
CN116155799A (en) Ad hoc network communication system, message communication method thereof and readable storage medium
KR101508322B1 (en) System and method for generating secure route
Sun et al. An Data-Forwarding based channel condition acknowledgment for Cognitive Radio Mobility Based Routing
Kim Performance comparison of MISP-based MANET strong DAD protocol
CN116708376A (en) WiFi direct connection method, wiFi direct connection device and communication equipment
CN116249139A (en) Service data transmission method, device, equipment and medium
WO2014186985A1 (en) Communication device and wireless communication method

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

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

Country of ref document: EP

Kind code of ref document: A1