Power line carrier communication method

By classifying and prioritizing messages in the power line carrier communication network, dynamically allocating bandwidth resources, and implementing congestion management when the network is congested, the problem of delay and loss caused by equipment competition is solved and the efficiency of network resource usage is improved. .

CN118611708APending Publication Date: 2024-09-06ZHONGXIN YILONG (BEIJING) ELECTRONIC TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410827512.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Competition between devices in power line carrier communication networks results in data transmission delays, data loss, and low bandwidth utilization.

Method used

Adopt a power line carrier communication method based on dynamic bandwidth allocation, classify and prioritize messages, allocate bandwidth resources according to priority, implement congestion management when the network is congested, and use scheduling algorithms and traffic shaping technology to optimize message transmission .

Benefits of technology

It effectively solves the congestion problem caused by equipment competing for bandwidth, improves the use efficiency of network resources, and ensures the reliability of data transmission and bandwidth utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118611708A
    Figure CN118611708A
Patent Text Reader

Abstract

The invention belongs to the technical field of power line carrier communication, and aims to balance bandwidth resources in a network and solve the problem of congestion caused by bandwidth competition of network nodes. In order to achieve the purpose, the invention discloses a power line carrier communication method, which comprises the following steps of: constructing a power line carrier communication network which is used for transmitting messages; classifying the messages according to a preset condition, and setting different priorities for the messages according to keywords of the messages; and allocating bandwidth to the traffic in the network according to the priority, wherein the traffic provides a carrier for the message. According to the invention, under the condition that the bandwidth is not increased, the bandwidth resource of each node of the network is dynamically allocated, the competitive relationship among the nodes is solved, and the use efficiency of the network resource is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power line carrier communication, and in particular to a power line carrier communication method. Background Art

[0002] Power line carrier is a technology that uses existing power lines to transmit analog or digital signals at high speed through carriers. The biggest feature is that there is no need to rebuild the network. As long as there are wires, data can be transmitted. And compared with other wireless communication technologies, the transmission rate is fast. Power line carrier communication can make full use of the existing physical network of the power grid for communication and data transmission. It has the characteristics of small investment, strong flexibility, and wide coverage. Therefore, it is widely used in power systems.

[0003] In the power line carrier communication network, data transmission and exchange between devices are carried out through power lines. Although the cost is low and the data transmission speed is fast, there is a certain competition between devices. Therefore, if data transmission is not managed and controlled, conflicts will occur, resulting in large energy delays between users and business transmissions, data loss, and low bandwidth utilization, so that business transmission cannot be guaranteed.

[0004] In view of the problems existing in the existing technology, it is urgent to propose an effective method to solve the competition problem between devices in the power line carrier communication network and manage the data transmission in the network. By allocating different bandwidth resources to traffic with different priority levels in the network, the competition relationship between devices in the network is resolved, thereby improving the efficiency of network resource utilization. Summary of the invention

[0005] (I) Purpose of the invention

[0006] The purpose of the present invention is to address the problems of data loss, network delay or low bandwidth utilization that may exist due to competition for bandwidth between devices in the network in the prior art, and to propose a power line carrier communication solution based on dynamic bandwidth allocation.

[0007] (II) Technical solution

[0008] To solve the above problems, the first aspect of the present invention provides a power line carrier communication method, including constructing a power line carrier communication network, wherein the power line carrier communication network is used to transmit messages; classifying the messages according to predetermined conditions, and setting different priorities for the messages according to keywords of the messages; allocating bandwidth to the traffic in the network according to the priority, and the traffic provides a carrier for the messages.

[0009] Preferably, in the method, the power line carrier communication network includes a tree network with CCO as the center and PCO as the repeater, connecting STAs in multiple levels of association, and the CCO communicates with the PCO or the STA, and the PCO communicates with the STA through the power line carrier network.

[0010] Preferably, in the method, the STA synchronizes a network reference time according to a beacon frame of the CCO, and the network reference time is maintained by the CCO.

[0011] Preferably, the method, the classifying of messages according to predetermined conditions, includes adopting the flow classification service in the MQC method to implement the classification of the messages according to the predetermined conditions, wherein the predetermined conditions include the source address and destination address of the message, the priority in the ToS domain and the protocol type.

[0012] Preferably, the method, wherein setting different priorities for the message according to the keyword of the message includes: transmitting a message carrying an initial QoS priority to a device, wherein the initial QoS priority is mapped to a service level and a color inside the device, wherein the device includes a switching unit in the CCO, PCO or STA, for modifying the initial QoS priority, wherein the service level determines the type of the message, and the color determines the discard level of the message inside the device; wherein the device adjusts the queue of the message according to the internal service level and the color; and when the message leaves the device, the service level and the color inside the device are mapped to the message to form a QoS priority.

[0013] Preferably, the method, the power line carrier communication method also includes: after setting different priorities for the keywords of the message, implementing traffic supervision and interface speed limiting on the traffic, and when network congestion occurs, using congestion management method to arrange the queue order of the message; the traffic supervision is used to discard the traffic when the traffic exceeds the rated bandwidth; the interface speed limiting is used to limit the total rate of the interface traffic.

[0014] Preferably, the method, the congestion management method includes: when network congestion occurs, congestion avoidance is used to arrange the message to be transmitted to the device, the forwarding order of the message is arranged according to the scheduling algorithm, and then the interface speed limit and traffic shaping are used to arrange the message to be transmitted out of the device; wherein, the scheduling algorithm includes FIFO scheduling algorithm, PQ scheduling algorithm, CQ scheduling algorithm, WRR scheduling algorithm and WFQ scheduling algorithm; the congestion avoidance is used to discard the message when network congestion occurs, and the strategy for discarding the message includes WRED discard; the traffic shaping is used to cache the traffic when the traffic exceeds the rated bandwidth.

[0015] Preferably, in the method, the WRED discard includes designing a maximum threshold, a minimum threshold and a maximum discard probability of a queue for the messages of different priorities; when the message queue length is lower than the minimum threshold, the message is not discarded; when the message queue length is higher than the maximum threshold, tail discard is performed; when the message queue length is between the maximum threshold and the minimum threshold, according to the maximum discard probability, the longer the message queue, the greater the discard probability.

[0016] Preferably, the method, the power line carrier communication method adopts link fragmentation and cross-link efficiency mechanism, divides the message into multiple small message fragments for sending, and gives priority to sending RTP messages.

[0017] Preferably, in the method, the RTP message carries the highest level priority, the RTP message is limited by the interface rate limit, and the RTP message exceeding the rated bandwidth is discarded.

[0018] (III) Beneficial effects

[0019] The above technical solution of the present invention has the following beneficial technical effects:

[0020] The present invention proposes a power line carrier communication method. The present invention solves the equipment competition problem existing in the power line carrier communication network in the prior art, manages the flow transmission in the network based on the dynamic adjustment of bandwidth allocation, balances the bandwidth resources in the network, solves the congestion problem caused by network node competition for bandwidth, and improves the utilization efficiency of network resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of the steps of a power line carrier communication method according to an embodiment of the present invention;

[0022] Figure 2 It is a topological structure diagram of a power line carrier communication network in a power line carrier communication method according to an embodiment of the present invention;

[0023] Figure 3 It is a variable area of ​​a beacon frame of a power line carrier communication network in the power line carrier communication method according to the embodiment of the present invention;

[0024] Figure 4 It is a schematic diagram of beacon time slot division of CCO allocated by the power line carrier communication network in the power line carrier communication method according to the embodiment of the present invention;

[0025] Figure 5 It is a schematic diagram of TDMA time slot division of CCO allocation of a power line carrier communication network in a power line carrier communication method according to an embodiment of the present invention;

[0026] Figure 6It is a VCS timer duration and state transition diagram of a power line carrier communication network in a power line carrier communication method according to an embodiment of the present invention;

[0027] Figure 7 It is a schematic diagram of the steps of setting message priority in the power line carrier communication method according to an embodiment of the present invention;

[0028] Figure 8 is a QoS priority mapping flow chart of a dual-mode communication method according to an embodiment of the present invention;

[0029] Fig. 9 It is the QoS technology processing flow of the dual-mode communication method according to the implementation mode of the present invention;

[0030] Fig.10 is a schematic diagram of a FIFO queue of a dual-mode communication method according to an embodiment of the present invention;

[0031] Fig.11 Schematic diagram of a PQ queue of a dual-mode communication method according to an embodiment of the present invention;

[0032] Fig.12 It is a schematic diagram of a WFQ queue of a dual-mode communication method according to an implementation method of the present invention;

[0033] Fig.13 It is a schematic diagram of the relationship between WRED and the queue mechanism of the dual-mode communication method according to an embodiment of the present invention;

[0034] Fig.14 Schematic diagram of the LFI working principle of the dual-mode communication method according to an embodiment of the present invention;

[0035] Fig.15 It is a schematic diagram of the RTP priority queue of the dual-mode communication method according to the implementation mode of the present invention. DETAILED DESCRIPTION

[0036] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention. In addition, in the following description, the description of well-known structures and technologies is omitted to avoid unnecessary confusion of the concept of the present invention.

[0037] The accompanying drawings show schematic diagrams of layer structures according to embodiments of the present invention. These figures are not drawn to scale, and some details are magnified and some details may be omitted for the purpose of clarity. The shapes of various regions and layers shown in the figures and the relative sizes and positional relationships therebetween are only exemplary, and may deviate in practice due to manufacturing tolerances or technical limitations, and those skilled in the art may additionally design regions / layers with different shapes, sizes, and relative positions according to actual needs.

[0038] Obviously, the described embodiments are only some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0039] In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0040] Power line carrier is a technology that uses existing power lines to transmit analog or digital signals at high speed through carriers. The biggest feature is that there is no need to rebuild the network. As long as there are wires, data can be transmitted. And compared with other wireless communication technologies, the transmission rate is fast. Power line carrier communication can make full use of the existing physical network of the power grid for communication and data transmission. It has the characteristics of small investment, strong flexibility, and wide coverage. Therefore, it is widely used in power systems.

[0041] In the power line carrier communication network, data transmission and exchange between devices are carried out through power lines. Although the cost is low and the data transmission speed is fast, there is a certain competition between devices. Therefore, if data transmission is not managed and controlled, conflicts will occur, resulting in large energy delays between users and business transmissions, data loss, and low bandwidth utilization, so that business transmission cannot be guaranteed.

[0042] In view of the requirements of the current prior art for power line carrier communication networks, the present invention proposes a power line carrier communication method to achieve management of network bandwidth resources and improve network utilization efficiency.

[0043] Figure 1 Schematic diagram of the steps of the power line carrier communication method according to the embodiment of the present invention. Figure 1 The specific steps of the power line carrier communication method are described.

[0044] Step S110: construct a power line carrier communication network, where the power line carrier communication network is used to transmit messages.

[0045] Step S120: classify the messages according to the predetermined conditions, and set different priorities for the messages according to the keywords of the messages.

[0046] Step S130: Allocate bandwidth to traffic in the network according to priority, and the traffic provides a carrier for the message.

[0047] According to some optional embodiments, in step S110, a power line carrier communication network is constructed, and the power line carrier communication network is used to transmit messages. Figure 21 is a topological diagram of a power line carrier communication network in a power line carrier communication method according to an embodiment of the present invention. Figure 2 As shown, the power line carrier communication network includes a tree network with CCO as the center and PCO as the repeater, connecting STAs in multiple levels of association. CCO and PCO or STA, PCO and STA communicate through the power line carrier network.

[0048] In addition, the STA synchronizes the network reference time according to the beacon frame of the CCO, and the network reference time is maintained by the CCO. Figure 3 It is a variable area of ​​the beacon frame of the power line carrier communication network in the power line carrier communication method of the embodiment of the present invention. Figure 3 As shown, Figure 3 It indicates the beacon timestamp, beacon cycle count, source TEI, carrier mapping table index, number of symbols, reserved and phase line bit numbers, and the range of field sizes in the beacon frame.

[0049] Specifically, the beacon timestamp is the network reference time marked by the device sending the beacon when sending the beacon. The network reference time is maintained by the CCO, and all sites on the website need to be synchronized with the network reference time of the CCO. In the central beacon, the beacon timestamp is the network reference time. In the proxy beacon, the beacon timestamp is the network reference time evaluated by the PCO. In the discovery beacon, the beacon timestamp is the network reference time evaluated by the STA. The beacon cycle count is an incremental count of the beacon cycle maintained by the CCO. Every time the CCO schedules a beacon cycle, the beacon cycle count increases. The source TEI indicates the TEI of the site that sends the beacon. The carrier mapping table index indicates the carrier mapping table index used when the beacon frame is sent. The phase line identifier indicates the destination phase line to which the beacon frame needs to be sent.

[0050] In one embodiment, according to the MAC sublayer of the data link layer in the power line carrier communication network, the network uses a channel access mechanism based on a beacon frame. The CCO periodically sends beacon frames to synchronize the network reference time for all network nodes. The beacon frame contains the planning information of the beacon time slot, TDMA time slot, CSMA time slot, bound CSMA time slot, etc. in the beacon period allocated by the CCO. The subnodes in the broadband carrier communication network must follow the time slots allocated by the CCO to access the channel.

[0051] In addition, when CCO performs channel access, it needs to consider the phase line factor of the power line. When STAs on different power line phases communicate with CCO, they also need to consider the power line phase factor. STAs can select the corresponding time slot to communicate with CCO according to the phase line they are on. In one embodiment, Figure 4 Schematic diagram of beacon time slot division of CCO allocated by power line carrier communication network in power line carrier communication method according to an embodiment of the present invention. Figure 4 As shown, when CCO is planning time slots, it can allocate bound CSMA time slots according to business needs, and a certain business can occupy the time slot alone. All STAs involved in the business can compete to send messages of the business in the bound CSMA time slot. In one embodiment, Figure 5 FIG. 1 is a schematic diagram of TDMA time slot division of CCO allocation of a power line carrier communication network in a power line carrier communication method according to an embodiment of the present invention. Figure 5 As shown, when the TDMA time slots allocated by CCO are divided, if the STA to which the time slot is allocated is specified, for a specific STA sequence, the STA of the central beacon and the proxy beacon are multiplexed. The STA to which each TDMA time slot belongs is consistent with the CCO and STA sequence to which the central beacon time slot and the proxy beacon time slot belong. The length of each time slot is determined by the "TDMA time slot length" in units of 100 microseconds. All TDMA time slots can only be assigned to the same service, and the designated service is determined by the "TDMA time slot link identifier".

[0052] In one embodiment, when accessing the power line carrier communication network, if the CSMA / CA channel access mechanism is adopted, in the CSMA time slot allocated by the CCO, the station must compete for the channel and avoid conflicts before occupying the channel to send messages. The message sent in the CSMA time slot must be guaranteed to be transmitted in the corresponding CSMA time slot, and cannot cross the time slot, especially to ensure that it cannot cross to non-competition time slots such as beacon time slots and TDMA time slots. When competing for channels in the CSMA time slot, basic conflict judgment and avoidance are required, and the channel status is further predicted through the VCS mechanism.

[0053] In one embodiment, after sending a message, the sending node needs to wait for a response message: a unicast SOF frame requires the receiving node to respond with a "select confirmation" message, while a broadcast SOF frame specifies a node to respond with a "select confirmation".

[0054] To determine if a conflict has occurred in the network, in one embodiment, when a message is sent, no response message is received while waiting for a response message, or an invalid or unexpected message is received. After the SOF frame is sent, the received "Selection Confirmation" frame indicates that the PHY has not successfully parsed all PB blocks.

[0055] Specifically, VCS, or Virtual Carrier Sense, is a time slot prediction mechanism used in CSMA time slots and must be supported by every node. The VCS mechanism is determined based on the message transmission time and frame interval and is implemented using a VCS timer and the channel status after the timer expires. Figure 6The VCS timer duration and state transition diagram of the power line carrier communication network in the power line carrier communication method of the embodiment of the present invention, the VCS timer duration calculation method and the channel state after the VCS timer expires are as follows Figure 6 As shown. When a conflict is detected, the VCS timer duration extends the interframe interval, and the channel state is idle after the VCS timer expires; when a leading phenomenon is detected, the VCS timer duration extends the interframe interval, and the channel state is idle after the VCS timer expires; when the SOF frame control phenomenon is analyzed, the VCS timer duration is the frame length*10us, and the channel state is idle after the VCS timer expires; when the selection confirmation phenomenon is analyzed, the VCS timer duration competes for the interframe interval, and the channel state is idle after the VCS timer expires.

[0056] Using the CSMA / CA channel access mechanism, stations need to support priority when competing for channels in CSMA time slots. Messages with high priority should have higher channel competition capabilities than messages with low priority. The priority of the message is determined by the classification rules. In the CSMA time slot, only service messages of the assigned priority or type can be transmitted. In the bound CSMA time slot, each node needs to compete for the channel according to the general CSMA mechanism. Only after the competition is successful can the service message of the corresponding priority or type be sent. When STA needs to communicate with CCO, it must use the multi-phase line time slot according to the multi-phase line time slot planning. Multi-phase line CSMA refers to the time slots allocated to stations on power lines with different phases. STAs on different phases can only send messages to CCO in the time slots of the corresponding phases. Multi-phase line CSMA time slots are used by all STAs on the same phase line.

[0057] In one embodiment, when accessing the power line carrier communication network, if the TDMA channel access mechanism is adopted, within the TDMA time slot, the node does not need to compete for the channel and can monopolize the allocated TDMA time slot to send messages. The TDMA time slot is generally allocated to a certain priority service or a certain type of service, and only the corresponding service message can be transmitted within the time slot.

[0058] The basic transmission unit for transmitting data between the physical layers of different stations is the MAC layer protocol data unit MPDU, which is provided to the physical layer by the MAC sublayer. An MPDU with multiple physical block payloads is called a long MPDU, and an MPDU with one or no physical block payload is called a short MPDU. The MPDU frame control contains delimiter content, network type, network identifier, standard version number and frame control check sequence. The delimiter content indicates the MPDU frame type, including beacon frame, SOF frame, selection confirmation frame, network coordination frame and others. The network type indicates the type of network where the MPDU station is located. The network identifier distinguishes different broadband carrier communication networks. The standard version number indicates different versions of the standard evolution and identifies the standard version used by the sending message station or network. The frame control check sequence calculates the fields in the frame control except the frame control check sequence, and uses a 24-bit cyclic redundancy check algorithm. In addition, the content of the variable area is determined by the delimiter type. The variable area of ​​the beacon frame contains the beacon timestamp. The beacon timestamp is the network reference time marked by the device sending the beacon when sending the beacon. The network reference time is maintained by the CCO. All sites on the website need to be synchronized with the network reference time of the CCO. In the central beacon, the beacon timestamp is the network reference time. In the proxy beacon, the beacon timestamp is the network reference time evaluated by the PCO. In the discovery beacon, the beacon timestamp is the network reference time evaluated by the STA.

[0059] After completing step S110 and constructing the power line carrier communication network, proceed to step S120, classify the messages according to the predetermined conditions, and set different priorities for the messages according to the keywords of the messages. Classifying the messages according to the predetermined conditions includes using the flow classification service in the MQC method to classify the messages according to the predetermined conditions. The predetermined conditions include the source address and destination address of the message, the priority in the ToS field, and the protocol type.

[0060] Then, different priorities are set for the messages according to their keywords. Figure 7 Schematic diagram of the steps of setting message priority in the power line carrier communication method according to the embodiment of the present invention. Figure 7 Description Set different priorities for messages based on the keywords in the messages.

[0061] Step S710, a message carrying an initial QoS priority is transmitted to the device, and the initial QoS priority is mapped to a service level and a color inside the device. The device includes a switching unit in the CCO, PCO or STA, which is used to modify the initial QoS priority. The service level determines the type of the message, and the color determines the discard level of the message inside the device.

[0062] Step S720: The device adjusts the queue of the message according to the internal service level and color.

[0063] Step S730: When the message leaves the device, the service level and color inside the device are mapped to the message to form a QoS priority.

[0064] Specifically, in step S710, a message carrying an initial QoS priority is transmitted to a device, and the initial QoS priority is mapped to a service level and color inside the device. The device is a switching unit in a CCO, PCO, or STA, which is used to modify the initial QoS priority. Traffic provides a carrier for the message.

[0065] In addition, the service level is also called local priority, which refers to the service quality of the message inside the device and determines the category to which the message belongs. The color determines the discard level of the message inside the device. When a queue is congested, the color can determine the discard order of the queue without affecting the mapping relationship between the local priority and the queue. There are three color values, from low to high priority: Green, Yellow, and Red.

[0066] In one embodiment, Figure 8 FIG. 1 is a flow chart of QoS priority mapping of the dual-mode communication method according to an embodiment of the present invention. Figure 8 As shown, when a message carrying QoS priorities including 802.1P, DSCP, and MPLS EXP is transmitted to a device, the QoS priority carried by the message is mapped to the service level and color of the device. The device, i.e., the switching unit, adjusts the queue of the message according to the internal service level and color. Then, when the message leaves the device, the internal service level and color of the device are mapped to the message to form a QoS priority including 802.1P, DSCP, and MPLS EXP.

[0067] After classifying the message and setting its priority, enter step S130, allocate bandwidth to the traffic in the network according to the priority, and the traffic provides a carrier for the message. The master node CCO balances the network bandwidth resources of each STA node, and solves the congestion problem caused by node communication competition in the power line carrier communication network without increasing the network bandwidth. According to the different needs of each STA, the bandwidth is balanced for each STA node, and different service qualities are provided for it, including: bandwidth and low latency can be provided for time-sensitive services, and other services will not affect these time-sensitive services when using the network; it guarantees end-to-end service quality, improves the efficiency of network resource utilization, and makes the power line carrier technology more widely used in various network communication fields.

[0068] in addition, Fig. 9 This is the QoS technology processing flow of the dual-mode communication method according to the embodiment of the present invention. Fig. 9As shown, the power line carrier communication method also includes: after setting different priorities for the keywords of the message, implementing flow supervision and interface speed limit on the flow, and using the congestion management method to arrange the queue order of the message when the network is congested. Among them, flow supervision is used to discard the flow when the flow exceeds the rated bandwidth. In one embodiment, the typical function of flow supervision is to limit the flow and burst of a certain connection entering a certain network. When the message meets certain conditions, such as the message flow of a certain connection is too large, the flow supervision can take different processing actions for the message, such as discarding the message, or resetting the priority of the message. Interface speed limit is used to limit the total rate of interface flow. In one embodiment, the total rate of the interface sending messages (including emergency messages and protocol messages) can be limited on a physical interface by using the physical interface total rate limit (LR for short).

[0069] Specifically, the congestion management method includes: when network congestion occurs, congestion avoidance is used to arrange the transmission of messages to the device, the forwarding order of the messages is arranged according to the scheduling algorithm, and then the interface speed limit and traffic shaping are used to arrange the messages to be transmitted out of the device; among them, the scheduling algorithms include FIFO scheduling algorithm, PQ scheduling algorithm, WRR scheduling algorithm and WFQ scheduling algorithm.

[0070] Among them, congestion avoidance is used to discard packets when network congestion occurs, and the packet discarding strategy includes WRED discarding. In one embodiment, congestion avoidance monitors the use of network resources, and takes the strategy of actively discarding packets when congestion tends to intensify, and relieves network overload by adjusting traffic. The traditional packet loss strategy, that is, when network congestion occurs, packets enter the queue, and when the queue is full, the subsequent traffic is directly discarded and cannot be cached. Traffic shaping is used to cache traffic when the traffic exceeds the rated bandwidth. In one embodiment, the typical function of traffic shaping is to limit the traffic and bursts of a certain connection out of a certain network. Make the packets sent out at a relatively uniform speed. Traffic shaping is usually completed using buffers and token buckets. When the message is sent too fast, it is first cached in the buffer, and then these buffered messages are sent evenly under the control of the token bucket.

[0071] Among them, the FIFO scheduling algorithm is the first-in-first-out queue scheduling algorithm. Fig.10 FIFO queue diagram of the dual-mode communication method according to the embodiment of the present invention. Fig.10 As shown in the figure, the FIFO scheduling algorithm does not classify messages. When the speed at which messages enter the interface is greater than the speed at which the interface can send them, FIFO allows messages to enter the queue in the order in which they arrive at the interface. At the same time, FIFO allows messages to leave the queue in the order in which they enter the queue at the exit of the queue. The first messages will leave the queue first, and the last messages will leave the queue later.

[0072] The PQ scheduling algorithm is the priority queue PQ scheduling, which strictly schedules the queues in the order of their priorities. Only when all the messages in the high-priority queues are scheduled, the low-priority queues will have a chance to schedule. Fig.11 Schematic diagram of the PQ queue of the dual-mode communication method according to the embodiment of the present invention. Fig.11 As shown, in one embodiment, after the PCO configures the PQ scheduling, it schedules and sends messages in order from high to low priority. The four queues of PQ are: high priority queue, medium priority queue, normal priority queue and low priority queue, and their priorities decrease in sequence. When the message is dequeued, PQ first dequeues and sends the message in the high priority queue until the message in the high priority queue is sent, and then sends the message in the medium priority queue, also until it is sent, and then the normal priority queue and the low priority queue. In this way, the message belonging to the higher priority queue will be sent first during classification, and the lower priority message will be preempted by the higher priority message when congestion occurs, so that the message of the high priority service can be processed first, and the message of the lower priority service can be processed in the idle time after the network processes the key service, which not only ensures the priority of the high priority service, but also makes full use of the network resources.

[0073] The WRR scheduling algorithm is a weighted round-robin scheduling algorithm that schedules packets between queues in turn, and schedules the packet flows in each queue according to the weight of each queue.

[0074] The WFQ scheduling algorithm is the weighted fair queue scheduling algorithm. Fig.12 FIG. 1 is a schematic diagram of a WFQ queue of a dual-mode communication method according to an implementation method of the present invention. Fig.12 As shown in the figure, the WFQ scheduling algorithm classifies packets by flow. For IP networks, packets with the same source IP address, destination IP address, source port number, destination port number, protocol number, and IP priority belong to the same flow. Each flow is assigned to a queue, and different flows are assigned to different queues as much as possible. The number of WFQ queues N can be configured. When leaving the queue, WFQ allocates the bandwidth occupied by each flow at the exit according to the IP priority of the flow. The smaller the priority value, the less bandwidth is obtained. The larger the priority value, the more bandwidth is obtained. This ensures fairness between services of the same priority and reflects the weights between services of different priorities.

[0075] Furthermore, WRED discarding includes designing the highest threshold, lowest threshold and maximum discarding probability of queues for packets of different priorities. When the length of the packet queue is lower than the lowest threshold, packets are not discarded; when the length of the packet queue is higher than the highest threshold, tail discarding is performed; when the length of the packet queue is between the highest threshold and the lowest threshold, according to the maximum discarding probability, the longer the packet queue, the greater the discarding probability. Fig.13FIG. 1 is a schematic diagram showing the relationship between WRED and the queue mechanism of the dual-mode communication method according to an embodiment of the present invention. Fig.13 As shown, in one embodiment, weighted random early detection (WRED) is a congestion avoidance mechanism that discards packets before the queue is congested. WRED sets a pair of low thresholds and high thresholds for each queue, and stipulates that: when the queue length is less than the low limit, no packets are discarded, and the discard probability is 0%; when the queue length exceeds the high limit, all newly arrived packets are discarded, that is, tail discard is performed, and the discard probability is 100%; when the queue length is between the low limit and the high limit, newly arrived packets begin to be randomly discarded, and a maximum discard probability is set. The longer the queue, the greater the discard probability. WRED can assign packet discard parameters based on different colors. The more important the packet, the higher the minimum and maximum thresholds are than the less important packets, and the highest discard probability is lower.

[0076] In one embodiment, when the queue mechanism adopts WFQ, WRED can set the index, upper limit, lower limit, and discard probability when calculating the average queue length for packets of different priorities, thereby providing different discard characteristics for packets of different priorities. Flow-based WRED can be implemented. When classifying, different flows have their own queues. For flows with small traffic, since their queue lengths are always small, the discard probability will be relatively small. Flows with large traffic will have larger queue lengths, thereby discarding more messages, protecting the interests of flows with small traffic.

[0077] In one embodiment, when the queue mechanism adopts FIFO and PQ: WRED can set the index, upper limit, lower limit, and discard rate for calculating the average queue length for each queue, and provide different discard characteristics for messages in different queues. For flows with small traffic, since the number of its messages is small, from the statistical probability, the probability of being discarded will also be small, and the interests of flows with small traffic can also be protected.

[0078] The power line carrier communication method adopts the link fragmentation and crossover (LFI) link efficiency mechanism to divide the message into multiple small fragments for transmission, and give priority to sending RTP messages. The link efficiency mechanism can improve the performance of the link and indirectly improve the QoS of the network, such as reducing the link packet transmission delay and adjusting the effective bandwidth for specific services. In one embodiment, after the power line carrier communication method adopts LFI, the data message (non-RTP priority queue) is fragmented and sent one by one before transmission, and if a voice message arrives at this time, it is sent first, thereby ensuring the delay and jitter of real-time services such as voice. Fig.14 Schematic diagram of the LFI working principle of the dual-mode communication method according to the embodiment of the present invention. Fig.14As shown in the figure, when the power line carrier communication method applies LFI technology, when a large message is dequeued, it can be divided into small messages of customized length. This makes it unnecessary for the messages in the RTP priority queue or LLQ to wait until the large message is sent before being scheduled. The waiting time is only the sending time of the small message. This greatly reduces the delay caused by sending large messages on the low-speed link.

[0079] RTP messages carry the highest priority, and the interface speed limit is used to limit RTP messages, and RTP messages that exceed the rated bandwidth are discarded. RTP priority queue is a simple queue technology to solve the quality of service of real-time services. Its principle is to send RTP messages carrying real-time services into high-priority queues so that they are sent first, ensuring that delay and jitter are reduced to a minimum, thereby ensuring the quality of service for delay-sensitive services. Fig.15 Schematic diagram of RTP priority queue of dual-mode communication method according to an embodiment of the present invention. Fig.15 As shown in the figure, since the rate of the messages entering the RTP priority queue is limited, the messages exceeding the specified flow will be discarded. In this way, when the interface is congested, it can be ensured that the messages belonging to the RTP priority queue will not occupy bandwidth exceeding the specified bandwidth, thereby protecting the bandwidth that other messages deserve and solving the problem that the traffic of the RTP priority queue may occupy the bandwidth of other data traffic.

[0080] The present invention relates to a power line carrier communication method. Based on QoS technology, the traffic in the network is classified and the priority is determined, so as to allocate bandwidth for the traffic in the network. Without increasing the bandwidth, the bandwidth resources of each node of the network are dynamically allocated, the competition relationship between the nodes is resolved, the congestion problem caused by the competition of network nodes for bandwidth is solved, and the utilization efficiency of network resources is improved.

[0081] It should be understood that the above specific embodiments of the present invention are only used to illustrate or explain the principles of the present invention, and do not constitute a limitation of the present invention. Therefore, any modifications, equivalent substitutions, improvements, etc. made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. In addition, the appended claims of the present invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalent forms of such scope and boundaries.

[0082] The present invention has been described above with reference to the embodiments of the present invention. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present invention. The scope of the present invention is defined by the appended claims and their equivalents. Without departing from the scope of the present invention, a person skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present invention.

[0083] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0084] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0085] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

Claims

1. A power line carrier communication method, characterized in that: include: Building a power line carrier communication network, wherein the power line carrier communication network is used to transmit messages; Classifying the messages according to predetermined conditions, and setting different priorities for the messages according to keywords of the messages; Bandwidth is allocated to traffic in the network according to priority, and the traffic provides a carrier for the message.

2. The method according to claim 1, characterized in that The power line carrier communication network includes a tree network with a CCO as the center and a PCO as a repeater, which connects STAs in multiple levels. The CCO communicates with the PCO or the STA, and the PCO communicates with the STA through the power line carrier network.

3. The method according to claim 2, characterized in that The STA synchronizes a network reference time according to a beacon frame of the CCO, and the network reference time is maintained by the CCO.

4. The method according to claim 1, characterized in that: The classifying of the messages according to the predetermined conditions includes implementing the classification of the messages according to the predetermined conditions using the flow classification service in the MQC method, The predetermined conditions include the source address and destination address of the message, the priority in the ToS field, and the protocol type.

5. The method according to claim 1, characterized in that The step of setting different priorities for the message according to the keyword of the message comprises: A message carrying an initial QoS priority is transmitted to a device, wherein the initial QoS priority is mapped to a service level and a color inside the device, wherein the device includes a switching unit in the CCO, PCO or STA, configured to modify the initial QoS priority, wherein the service level determines the type of the message, and the color determines the discard level of the message inside the device; The device adjusts the queue of the message according to the internal service level and the color; When the message leaves the device, the service level and the color inside the device are mapped to the message to form a QoS priority.

6. The method according to claim 5, characterized in that The power line carrier communication method further includes: after setting different priorities for the keywords of the message, implementing flow supervision and interface speed limit on the flow, and arranging the queue order of the message by using a congestion management method when network congestion occurs; The traffic monitoring is used to discard the traffic when the traffic exceeds the rated bandwidth; The interface rate limit is used to limit the total rate of the interface traffic.

7. The method according to claim 6, characterized in that The congestion management method includes: When network congestion occurs, congestion avoidance is used to arrange the message to be transmitted to the device, the forwarding order of the message is arranged according to the scheduling algorithm, and then the message is arranged to be transmitted out of the device by using interface speed limit and traffic shaping; wherein the scheduling algorithm includes FIFO scheduling algorithm, PQ scheduling algorithm, CQ scheduling algorithm, WRR scheduling algorithm and WFQ scheduling algorithm; The congestion avoidance is used to discard the message when congestion occurs in the network, and the strategy of discarding the message includes WRED discard; The traffic shaping is used to buffer the traffic when the traffic exceeds the rated bandwidth.

8. The method according to claim 7, characterized in that The WRED discarding includes designing the highest threshold, the lowest threshold and the maximum discarding probability of the queue for the packets of different priorities. When the message queue length is lower than the minimum threshold, the message is not discarded; When the message queue length is higher than the maximum threshold, tail discard is performed; When the message queue length is between the upper threshold and the lower threshold, according to the maximum discard probability, the longer the message queue is, the greater the discard probability is.

9. The method according to claim 7, characterized in that: The power line carrier communication method adopts link fragmentation and cross-link efficiency mechanism to divide the message into multiple small message fragments for sending, and gives priority to sending RTP messages.

10. The method according to claim 9, characterized in that The RTP message carries the highest priority, and the RTP message is limited by the interface rate limit, and the RTP message exceeding the rated bandwidth is discarded.

Citation Information

Cited By

  • Dynamic spectrum anti-interference and QoS intelligent scheduling method and system based on power line carrier

    CN121547143A