WO2017045433A1 - Method and device for detecting communication state between stations, and storage medium - Google Patents

Method and device for detecting communication state between stations, and storage medium Download PDF

Info

Publication number
WO2017045433A1
WO2017045433A1 PCT/CN2016/083549 CN2016083549W WO2017045433A1 WO 2017045433 A1 WO2017045433 A1 WO 2017045433A1 CN 2016083549 W CN2016083549 W CN 2016083549W WO 2017045433 A1 WO2017045433 A1 WO 2017045433A1
Authority
WO
WIPO (PCT)
Prior art keywords
site
sta
station
information
field information
Prior art date
Application number
PCT/CN2016/083549
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 WO2017045433A1 publication Critical patent/WO2017045433A1/en

Links

Images

Classifications

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

Definitions

  • the present invention relates to the field of power line communication, and in particular, to a method and device for detecting inter-site communication status of a power line communication network, and a storage medium.
  • the power line In the power line communication network, the power line is used as the network transmission medium, so that the power line and the signal line are unified, and no additional network line is required.
  • the ordinary power socket of the household is a communication interface, and data and power transmission can be simultaneously performed, and the networking is simple and costly. Low and easy to implement.
  • the Central Coordinator (CCO) site is responsible for managing the entire network.
  • the site in the power line communication network will notify the CCO site and other sites when the power is lost or designated to go offline; however, when the channel is degraded and the communication is abnormal, the CCO site and other sites Unable to know the communication anomaly, it will continue to send data, causing channel burden and even loss of large amounts of data.
  • embodiments of the present invention are directed to a method and apparatus for detecting inter-site communication status of a power line communication network, and a storage medium, to reduce channel burden and avoid loss of a large amount of data.
  • an embodiment of the present invention provides a method for detecting an inter-site communication state of a power line communication network, where the method includes:
  • the central coordination CCO station sends a probe request message to the base station STA station at a preset time interval;
  • the CCO station does not receive the probe response sent by the STA station within a preset time. And determining that the communication between the CCO site and the STA site is abnormal;
  • the CCO station sends a network-wide broadcast offline message to all the STA stations in the power line communication network, and recovers the terminal device identifier TEI resource corresponding to the abnormal STA site; wherein the entire network broadcasts the offline message. And the TEI information of the STA station that includes the communication abnormality, where the all-network broadcast offline message is used to indicate that all STA stations in the power line communication network delete routing information corresponding to the TEI information.
  • the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level field information. ;
  • the probe response message includes source site field information and destination site field information.
  • an embodiment of the present invention provides a method for detecting an inter-site communication state of a power line communication network, where the method includes:
  • the base station STA station sends a probe request message to the proxy coordination PCO station, and starts a timer.
  • the probe request message is that the STA station determines that the status value of the STA station is less than a preset initial value by using a preset time interval. Sent
  • the STA station When the STA station does not receive the probe response message sent by the PCO station, the STA station sends a proxy change request to the central coordination CCO site; the proxy change request includes the target PCO site. Terminal device identification TEI information;
  • the STA site receives an agent change response sent by the CCO station; the agent change response includes agent change success indication information or agent change failure indication information.
  • the probe request message includes source site field information and destination site field information
  • the probe response message includes source site field information and destination site field information.
  • an embodiment of the present invention provides a method for detecting an inter-site communication state of a power line communication network, where the method includes:
  • the central coordination CCO station receives the proxy change request sent by the base station STA station; the proxy change request includes the terminal device identifier TEI information of the target proxy coordination PCO site; wherein the proxy change request is that the STA site is within the timer time Sent when the probe response message sent by the PCO station is not received;
  • the CCO station sends a proxy change response to the STA site according to the TEI information of the target PCO site, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
  • an embodiment of the present invention provides an inter-site communication state detecting apparatus for a power line communication network, where the apparatus includes:
  • the first sending module is configured to send a probe request message to the STA site of the base station at a preset time interval
  • the first receiving module is configured to determine that the communication between the inter-site communication state detecting device of the power line communication network and the STA site is abnormal when the probe response message sent by the STA station is not received within a preset time;
  • the first sending module is configured to send a network-wide broadcast offline message to all STA stations in the power line communication network, and recover a terminal device identifier TEI resource corresponding to the STA site with abnormal communication; wherein, the entire network
  • the broadcast offline message includes TEI information of the STA station with abnormal communication, and the network-wide broadcast offline message is used to instruct all STA stations in the power line communication network to delete routing information corresponding to the TEI information.
  • the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level field information. ;
  • the probe response message includes source site field information and destination site field information.
  • an embodiment of the present invention provides an apparatus for detecting an inter-site communication state of a power line communication network, where the apparatus includes: a second sending module, a timer module, and a second receiving module;
  • the second sending module is configured to send a probe request message to the proxy coordination PCO site, and start a timer in the timer module, where the probe request message is determined by the determining module at a preset time interval. When the status value is less than the preset initial value, it is sent by the second sending module;
  • the timer module is configured to start a timer for timing
  • the second receiving module is configured to receive a probe response message sent by the PCO station within a timeout period of the timer;
  • the second sending module is configured to send, when the second receiving module does not receive the probe response message sent by the PCO station, the proxy change request to the central coordination CCO station in the timer time;
  • the proxy change request includes the terminal device identifier TEI information of the target PCO site;
  • the second receiving module is configured to receive a proxy change response sent by the CCO station, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
  • the probe request message includes source site field information and destination site field information
  • the probe response message includes source site field information and destination site field information.
  • an embodiment of the present invention provides an inter-site communication state detecting apparatus for a power line communication network, where the apparatus includes:
  • a third receiving module configured to receive a proxy change request sent by the STA station of the base station; the proxy change request includes the terminal device identifier TEI information of the target proxy coordination PCO site; wherein the proxy change request is that the STA site is timing Sent when the probe response message sent by the PCO station is not received within the device time;
  • a third sending module configured to send, according to the TEI information of the target PCO site, an agent change response to the STA site, where the agent change response includes a proxy change success Indicates information or agent change failure indication information.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing between the stations of the power line communication network according to the first aspect of the embodiments. Communication status detection method.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute an inter-site of a power line communication network according to the second aspect of the embodiments. Communication status detection method.
  • an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing between the stations of the power line communication network according to the third aspect of the embodiments. Communication status detection method.
  • the CCO station sends a probe request message to the STA station at a preset time interval; the CCO station does not receive the STA station transmission within a preset time. Determining a communication abnormality between the CCO site and the STA site; the CCO station transmitting a full-network broadcast offline message to all STA stations in the power line communication network, and recovering an abnormal communication with the communication a TEI resource corresponding to the STA site, where the network-wide broadcast offline message includes TEI information of the STA site with abnormal communication, and the network-wide broadcast offline message is used to indicate all STAs in the power line communication network.
  • the station deletes the routing information corresponding to the TEI information, and disconnects the communication between the abnormal STA site and other STA stations in the power line communication network; thus, in the process of application layer data transmission, there is no communication between the detected sites. Data is sent only when an abnormality occurs. Once there is a communication abnormality between the stations, the abnormal STA site and other STA sites are cut off in time. Communication in order to protect the data communication process to ensure the quality of service, and reduce the burden on the channel.
  • FIG. 1 is a diagram for detecting inter-site communication status of a power line communication network according to Embodiment 1 of the present invention. Flow chart of the method;
  • FIG. 2 is a schematic diagram of a network topology according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 2 of the present invention
  • FIG. 4 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 3 of the present invention.
  • FIG. 5 is a flowchart of an inter-site communication state detecting apparatus of a power line communication network according to Embodiment 1 of the present invention.
  • FIG. 6 is a flowchart of an inter-site communication state detecting apparatus of a power line communication network according to Embodiment 2 of the present invention.
  • FIG. 7 is a flowchart of an inter-site communication state detecting apparatus of a power line communication network according to Embodiment 3 of the present invention.
  • a probe request message (CC_DETECT_REQ) and a probe response message (CC_DETECT_RSP)
  • CC_DETECT_RSP probe response message
  • FIG. 1 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 1 of the present invention.
  • the method provided in this embodiment may be performed by a Central Coordinator (CCO) site.
  • CO Central Coordinator
  • the method provided in this embodiment may include:
  • Step 101 The CCO station sends a probe request message to a station (STA, STA) station at a preset time interval.
  • Step 102 When the CCO station does not receive the probe response message sent by the STA station within a preset time, it is determined that the communication between the CCO site and the STA site is abnormal.
  • Step 103 The CCO station sends a network-wide broadcast offline message to all STA stations in the power line communication network, and recovers a Terminal Equipment Identifier (TEI) resource corresponding to the STA site with abnormal communication;
  • the network broadcast offline message includes the TEI information of the STA station with the communication abnormality, and the network-wide broadcast offline message is used to indicate that all STA stations in the power line communication network delete the routing information corresponding to the TEI information.
  • TEI Terminal Equipment Identifier
  • probe request message may include source site field information and destination site field information.
  • message format of the probe request message may be as shown in Table 1:
  • the probe request message may include source site field information, destination site field information, and destination site level field information, and the site that receives the probe request message may update its own hierarchical information according to the destination site level field information.
  • the message format of the probe request message may be as shown in Table 2:
  • the probe response message includes source site field information and destination site field information
  • the message format of the probe response message may be as shown in Table 3:
  • the byte size of the field may be determined according to the number of nodes specifically supported by the power line communication network. For example, if the power line communication network supports 255 nodes, the DTEI and STEI fields only need to occupy 1 byte. This embodiment does not specifically limit this.
  • the CCO site when managing a site in a power line communication network, the CCO site maintains a site state table, where the site state table contains state information of each site in the power line communication network, and the CCO site will each site just
  • the corresponding site status is set to the initial value when the network is connected, and the initial value is set according to the channel quality in the actual application scenario, the delayed retransmission of the data, and the Proxy Coordinator (PCO) site change time, for example,
  • the site status value is 1, the site is active.
  • the site state value is 0, the site is not active.
  • the CCO station sends a probe request message to the STA site at a preset time interval.
  • the preset time may be a routing period.
  • the site status value of the corresponding site in the site status table is decremented by 1. Before the site status value is reduced to 0, as long as the probe response message is received, The site status value of the site is set to the initial value; when the site status value is reduced to 0, the CCO site can determine the communication anomaly with the site.
  • the CCO site After determining that the communication between the CCO site and the STA site is abnormal, the CCO site is directed to the power line. All the STAs in the network send a broadcast message of the entire network to the offline, and the STA site that is abnormal in the communication is forced to go offline, and the TEI resource corresponding to the abnormal STA site is recovered.
  • the application layer sends a probe request message to the target site before sending the data, and if the probe response message of the target site is received, the data is sent, if the target site is not received. If the probe response message is sent, the data transmission is not performed temporarily; for example, in the network topology shown in FIG. 2, the application layer of the D station needs to send large amounts of data to the H site at a certain time, and before the data is sent, the application layer first detects the communication state. The D site first sends a probe request message to the H site. If the probe response message of the H site is not received within the set time, the D site application layer temporarily does not send data to the H site, and then detects the probe at a specific time. If the probe response message is not received, the data communication with the H site is abandoned. If the probe response message of the H site is received within the set time, the communication between the D site and the H site is normal, and the data is sent to the H site.
  • the STA station that is abnormal in the communication is forced to go offline, and the STA site in the power line communication network is notified that the abnormal STA site is offline.
  • the other STA stations delete the routing information of the STA station with the abnormal communication, and cut off the communication between the STA station with the abnormal communication and other stations in the power line communication network; during the application layer data transmission, there is no communication between the detected sites. Data transmission is performed only when an abnormality is performed, thereby ensuring the data communication process, ensuring the quality of service, and reducing the channel burden.
  • FIG. 3 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 2 of the present invention.
  • the method provided in this embodiment may be performed by a STA site.
  • the method provided in this embodiment may include:
  • Step 301 The STA station sends a probe request message to the PCO station, and starts a timer.
  • the probe request message is sent when the STA station determines that the status value of the STA station is less than a preset initial value by using a preset time interval.
  • Step 302 If the STA site does not receive the probe response message sent by the PCO station within the timer time, the STA site sends a proxy change request to the CCO site; the proxy change request includes the TEI information of the target PCO site. ;
  • Step 303 The STA site receives an agent change response sent by the CCO station, where the agent change response includes proxy change success indication information or agent change failure indication information.
  • the CCO site is used to manage the PCO site and the STA site, and the PCO site is the parent site of the STA site, and the CCO site communicates with the STA site through the PCO site.
  • the probe request message may include source site field information and destination site field information.
  • the message format of the probe request message may be as shown in Table 1 in the foregoing embodiment; the probe response message may include source site field information.
  • the destination site field information, and the message format thereof may be as shown in Table 3 in the foregoing embodiment; details are not described herein again.
  • this embodiment can be used for the agent change process of the site.
  • the STA site maintains the state information of the site.
  • the state value of the STA site is set to an initial value.
  • the STA site passes the preset time interval. That is, each T D period should receive a probe request message of the CCO station and reply the probe response message to the CCO station; if the STA station does not receive the probe request message of the CCO station in the T D period, the STA site is The status value is decremented by 1, and the status value of the local station is detected in each T BC period.
  • the probe request message is actively sent to the PCO station, and a timer is started, which is defined in this embodiment.
  • the device is an N*T BC timer, where N represents a variable, and the N*T BC timer time changes according to different actual application scenarios and real-time network status, if the N*T BC timer time within, the STA receives the probe station does not send a response message PCO station, a change request is sent to the agent station CCO, proxy change; if in the N * T BC timer, the STA receives the PCO site station transmits Probe response message, then the communication abnormality does not exist, the proxy does not need to change the station STA STA site between the site and the PCO.
  • the H site is a STA site
  • the F site is a PCO site
  • the D site is a CCO site
  • the state value is decremented by 1
  • a probe request message is sent to the F station to start the N*T BC timer; if it is received within the N*T BC timer time
  • the probe response message sent by the F station indicates that there is no communication abnormality between the H site and the F site, and the probe request message of the D site not receiving the D site is caused by the communication abnormality between the F site and the D site, so
  • the H site does not need to perform proxy change, and waits for the F site to perform proxy change completion. If the probe response message sent by the F site is not received within the N*T BC timer time, there is communication between the H site and the F site.
  • An exception a proxy
  • the process of proxy change is initiated, thereby ensuring data communication and ensuring service quality.
  • Embodiment 4 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 3 of the present invention.
  • the method provided in this embodiment may be performed by a CCO site.
  • the embodiment provides Methods can include:
  • Step 401 The CCO station receives the proxy change request sent by the STA station, where the proxy change request includes the TEI information of the target PCO site, where the proxy change request is that the STA site does not receive the probe sent by the PCO station within the timer time. Sent when responding to a message;
  • Step 402 The CCO station sends an agent change response to the STA site according to the TEI information of the target PCO site, where the agent change response includes the agent change success indication information or the agent change failure indication information.
  • the CCO station determines, according to the TEI information in the proxy change request, whether the site corresponding to the TEI information is suitable as the PCO site of the STA site, and if appropriate, The STA station sends a proxy change response including the proxy change success indication information; if not, sending the proxy change to the STA site The agent change response of the failure indication information.
  • the STA change request is initiated to the CCO site to prevent the data from being received due to the communication abnormality, thereby ensuring the service quality.
  • FIG. 5 is a schematic diagram of an inter-site communication state detecting apparatus for a power line communication network according to Embodiment 1 of the present invention. As shown in FIG. 5, the apparatus provided in this embodiment may include:
  • the first sending module 11 is configured to send a probe request message to the STA site at a preset time interval
  • the first receiving module 12 is configured to determine that the communication between the inter-site communication state detecting device of the power line communication network and the STA site is abnormal when the probe response message sent by the STA station is not received within a preset time;
  • the first sending module 11 is configured to send a network-wide broadcast offline message to all STA stations in the power line communication network, and recover a TEI resource corresponding to the abnormal STA site; wherein the network broadcast offline message
  • the TEI information of the STA station that is abnormal in the communication is included, and the all-network broadcast offline message is used to indicate that all STA stations in the power line communication network delete routing information corresponding to the TEI information.
  • the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level field information; the probe response message includes a source site. Field information and destination site field information.
  • the inter-site communication state detecting device of the power line communication network provided in this embodiment can be used to perform the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects thereof are similar, and details are not described herein again.
  • the first transmitting module 11 and the first receiving module 12 may be a central processing unit (CPU), a microprocessor (MPU), and a digital signal processor (DSP) located at a CCO site.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate array
  • the inter-site communication state detection method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing inter-site communication status performed in a CCO site according to an embodiment of the present invention. Detection method.
  • the apparatus provided in this embodiment may include: a second sending module 21, a timer module 22, a judging module 23, and a second receiving module 24.
  • the second sending module 21 is configured to send a probe request message to the PCO station, and start a timer in the timer module 22, where the probe request message is that the determining module determines the status value by using a preset time interval. Transmitted by the second sending module 21 when it is less than the preset initial value;
  • the timer module 22 is configured to start a timer to perform timing
  • the second receiving module 24 is configured to receive a probe response message sent by the PCO station within a timeout period of the timer.
  • the determining module 23 is configured to determine that the second receiving module 24 is at the timer Whether the probe response message sent by the PCO station is received in time;
  • the second sending module 21 is configured to send a proxy change request to the CCO site when the second receiving module 24 does not receive the probe response message sent by the PCO station within the timing of the timer;
  • the request contains the TEI information of the target PCO site;
  • the second receiving module 24 is configured to receive a proxy change response sent by the CCO station; the proxy change response includes proxy change success indication information or proxy change failure indication information.
  • the probe request message includes source site field information and destination site field information; the probe response message includes source site field information and destination site field information.
  • the inter-site communication state detecting device of the power line communication network provided in this embodiment may be used to perform the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
  • the second sending module 21, the timer module 22, the judging module 23, and the second receiving module 24 may be processed by a central processing unit (CPU), a microprocessor (MPU), and a digital signal located at the STA site.
  • CPU central processing unit
  • MPU microprocessor
  • a digital signal located at the STA site may be processed by a central processing unit (CPU), a microprocessor (MPU), and a digital signal located at the STA site.
  • CPU central processing unit
  • MPU microprocessor
  • FPGAs Field Programmable Gate Arrays
  • the inter-site communication state detection method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • program codes such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing inter-site communication status performed in an STA site according to an embodiment of the present invention. Detection method.
  • FIG. 7 is a schematic diagram of an inter-site communication state detecting apparatus for a power line communication network according to Embodiment 3 of the present invention. As shown in FIG. 7, the apparatus provided in this embodiment may include:
  • the third receiving module 31 is configured to receive a proxy change request sent by the STA station, where the proxy change request includes TEI information of the target PCO site, where the proxy change request is that the STA site does not receive the PCO site within the timer time. Sent when a probe response message is sent;
  • the third sending module 32 is configured to send a proxy change response to the STA site according to the TEI information of the target PCO site, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
  • the inter-site communication state detecting device of the power line communication network provided in this embodiment can be used to perform the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the third receiving module 31 and the third transmitting module 32 may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate located at a CCO site.
  • CPU central processing unit
  • MPU microprocessor
  • DSP digital signal processor
  • FPGA field programmable gate
  • the inter-site communication state detection method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions.
  • a computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read only memory (ROM, a Read Only Memory), a magnetic disk, or an optical disk.
  • ROM read only memory
  • magnetic disk or an optical disk.
  • optical disk A variety of media that can store program code.
  • embodiments of the invention are not limited to any specific combination of hardware and software.
  • the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing inter-site communication status performed in a CCO site according to an embodiment of the present invention. Detection method.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention 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 and optical storage, etc.) including computer usable program code.
  • 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. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
  • the technical solution provided by the embodiment of the present invention in the process of data transmission of the application layer, performs data transmission when detecting that there is no communication abnormality between the sites, and if the communication abnormality exists between the sites, the abnormal STA site and other STA sites are cut off in time.
  • the communication between them ensures the data communication process, guarantees the quality of service, and reduces the channel burden.

Abstract

Provided is a method for detecting a communication state between stations. The method comprises: a CCO station sending a probe request message to a STA station at a pre-set time interval; when the CCO station does not receive a probe response message sent by the STA station within a pre-set time, determining that the communication between the CCO station and the STA station is abnormal; and the CCO station sending a full-network broadcast offline message to all the STA stations in a power line communication network, and recycling TEI resources corresponding to the STA station which has a communication abnormality, wherein the full-network broadcast offline message contains TEI information about the STA station, and the full-network broadcast offline message is used for indicating that all the STA stations in the power line communication network delete routing information corresponding to the TEI information, thereby disabling the communication between the STA station which has a communication abnormality and the other stations in the power line communication network. Also provided at the same time are a device for detecting a communication state between stations, and a storage medium.

Description

站点间通信状态检测方法及装置、存储介质Method and device for detecting communication status between stations, storage medium 技术领域Technical field
本发明涉及电力线通信领域,尤其涉及一种电力线通信网络的站点间通信状态检测方法及装置、存储介质。The present invention relates to the field of power line communication, and in particular, to a method and device for detecting inter-site communication status of a power line communication network, and a storage medium.
背景技术Background technique
电力线通信网络中,利用电力线作为网络传输媒介,使电力线和信号线合一,不必另外布设网络线,家用的普通电源插座即为通信接口,可同时进行数据和电力的传输,组网简单、成本低且易于实现。In the power line communication network, the power line is used as the network transmission medium, so that the power line and the signal line are unified, and no additional network line is required. The ordinary power socket of the household is a communication interface, and data and power transmission can be simultaneously performed, and the networking is simple and costly. Low and easy to implement.
通常,在一个逻辑电力线通信网络中,由中央协调(Central Coordinator,CCO)站点负责对整个网络的管理。在现有的通信过程中,电力线通信网络中的站点在掉电或被指定下线的情况下,会通知CCO站点及其它站点;然而,当信道变差导致通信异常时,CCO站点及其它站点无法获知通信异常,仍然会不断地发送数据,造成信道负担,甚至大量数据的丢失。Typically, in a logical power line communication network, the Central Coordinator (CCO) site is responsible for managing the entire network. In the existing communication process, the site in the power line communication network will notify the CCO site and other sites when the power is lost or designated to go offline; however, when the channel is degraded and the communication is abnormal, the CCO site and other sites Unable to know the communication anomaly, it will continue to send data, causing channel burden and even loss of large amounts of data.
发明内容Summary of the invention
有鉴于此,本发明实施例期望提供一种电力线通信网络的站点间通信状态检测方法及装置、存储介质,以减少信道负担,避免大量数据的丢失。In view of this, embodiments of the present invention are directed to a method and apparatus for detecting inter-site communication status of a power line communication network, and a storage medium, to reduce channel burden and avoid loss of a large amount of data.
本发明实施例的技术方案是这样实现的:The technical solution of the embodiment of the present invention is implemented as follows:
第一方面,本发明实施例提供一种电力线通信网络的站点间通信状态检测方法,所述方法包括:In a first aspect, an embodiment of the present invention provides a method for detecting an inter-site communication state of a power line communication network, where the method includes:
中央协调CCO站点经预设时间间隔向基站STA站点发送探测请求消息;The central coordination CCO station sends a probe request message to the base station STA station at a preset time interval;
所述CCO站点在预设时间内未接收到所述STA站点发送的探测响应消 息时,判定所述CCO站点与所述STA站点之间通信异常;The CCO station does not receive the probe response sent by the STA station within a preset time. And determining that the communication between the CCO site and the STA site is abnormal;
所述CCO站点向所述电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与通信异常的STA站点对应的终端设备标识TEI资源;其中,所述全网广播下线消息中包含所述通信异常的STA站点的TEI信息,所述全网广播下线消息用于指示所述电力线通信网络中的所有STA站点删除与所述TEI信息对应的路由信息。The CCO station sends a network-wide broadcast offline message to all the STA stations in the power line communication network, and recovers the terminal device identifier TEI resource corresponding to the abnormal STA site; wherein the entire network broadcasts the offline message. And the TEI information of the STA station that includes the communication abnormality, where the all-network broadcast offline message is used to indicate that all STA stations in the power line communication network delete routing information corresponding to the TEI information.
在本发明的其他实施例中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;或者,所述探测请求消息中包括源站点字段信息、目的站点字段信息以及目的站点层级字段信息;In other embodiments of the present invention, the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level field information. ;
所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
第二方面,本发明实施例提供一种电力线通信网络的站点间通信状态检测方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a method for detecting an inter-site communication state of a power line communication network, where the method includes:
基站STA站点向代理协调PCO站点发送探测请求消息,并启动定时器;其中,所述探测请求消息是所述STA站点经预设时间间隔判断出所述STA站点的状态值小于预设初始值时发送的;The base station STA station sends a probe request message to the proxy coordination PCO station, and starts a timer. The probe request message is that the STA station determines that the status value of the STA station is less than a preset initial value by using a preset time interval. Sent
在所述定时器时间内,所述STA站点未接收到所述PCO站点发送的探测响应消息时,所述STA站点向中央协调CCO站点发送代理变更请求;所述代理变更请求中包含目标PCO站点的终端设备标识TEI信息;When the STA station does not receive the probe response message sent by the PCO station, the STA station sends a proxy change request to the central coordination CCO site; the proxy change request includes the target PCO site. Terminal device identification TEI information;
所述STA站点接收所述CCO站点发送的代理变更响应;所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The STA site receives an agent change response sent by the CCO station; the agent change response includes agent change success indication information or agent change failure indication information.
在本发明的其他实施例中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;In other embodiments of the present invention, the probe request message includes source site field information and destination site field information;
所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
第三方面,本发明实施例提供一种电力线通信网络的站点间通信状态检测方法,所述方法包括: In a third aspect, an embodiment of the present invention provides a method for detecting an inter-site communication state of a power line communication network, where the method includes:
中央协调CCO站点接收基站STA站点发送的代理变更请求;所述代理变更请求中包含目标代理协调PCO站点的终端设备标识TEI信息;其中,所述代理变更请求是所述STA站点在定时器时间内未接收到PCO站点发送的探测响应消息时发送的;The central coordination CCO station receives the proxy change request sent by the base station STA station; the proxy change request includes the terminal device identifier TEI information of the target proxy coordination PCO site; wherein the proxy change request is that the STA site is within the timer time Sent when the probe response message sent by the PCO station is not received;
所述CCO站点根据所述目标PCO站点的TEI信息,向所述STA站点发送代理变更响应;其中,所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The CCO station sends a proxy change response to the STA site according to the TEI information of the target PCO site, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
第四方面,本发明实施例提供一种电力线通信网络的站点间通信状态检测装置,所述装置包括:In a fourth aspect, an embodiment of the present invention provides an inter-site communication state detecting apparatus for a power line communication network, where the apparatus includes:
第一发送模块,配置为经预设时间间隔向基站STA站点发送探测请求消息;The first sending module is configured to send a probe request message to the STA site of the base station at a preset time interval;
第一接收模块,配置为在预设时间内未接收到所述STA站点发送的探测响应消息时,判定所述电力线通信网络的站点间通信状态检测装置与所述STA站点之间通信异常;The first receiving module is configured to determine that the communication between the inter-site communication state detecting device of the power line communication network and the STA site is abnormal when the probe response message sent by the STA station is not received within a preset time;
所述第一发送模块,配置为向所述电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与通信异常的STA站点对应的终端设备标识TEI资源;其中,所述全网广播下线消息中包含所述通信异常的STA站点的TEI信息,所述全网广播下线消息用于指示所述电力线通信网络中的所有STA站点删除与所述TEI信息对应的路由信息。The first sending module is configured to send a network-wide broadcast offline message to all STA stations in the power line communication network, and recover a terminal device identifier TEI resource corresponding to the STA site with abnormal communication; wherein, the entire network The broadcast offline message includes TEI information of the STA station with abnormal communication, and the network-wide broadcast offline message is used to instruct all STA stations in the power line communication network to delete routing information corresponding to the TEI information.
在本发明的其他实施例中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;或者,所述探测请求消息中包括源站点字段信息、目的站点字段信息以及目的站点层级字段信息;In other embodiments of the present invention, the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level field information. ;
所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
第五方面,本发明实施例提供一种电力线通信网络的站点间通信状态检测装置,所述装置包括:第二发送模块、定时器模块和第二接收模块; In a fifth aspect, an embodiment of the present invention provides an apparatus for detecting an inter-site communication state of a power line communication network, where the apparatus includes: a second sending module, a timer module, and a second receiving module;
所述第二发送模块,配置为向代理协调PCO站点发送探测请求消息,并启动所述定时器模块中的定时器;其中,所述探测请求消息是所述判断模块经预设时间间隔判断出状态值小于预设初始值时由所述第二发送模块发送的;The second sending module is configured to send a probe request message to the proxy coordination PCO site, and start a timer in the timer module, where the probe request message is determined by the determining module at a preset time interval. When the status value is less than the preset initial value, it is sent by the second sending module;
所述定时器模块,配置为启动定时器进行定时;The timer module is configured to start a timer for timing;
所述第二接收模块,配置为在所述定时器定时的时间内,进行接收所述PCO站点发送的探测响应消息;The second receiving module is configured to receive a probe response message sent by the PCO station within a timeout period of the timer;
所述第二发送模块,配置为在所述定时器时间内,如果所述第二接收模块未接收到所述PCO站点发送的探测响应消息时,向中央协调CCO站点发送代理变更请求;所述代理变更请求中包含目标PCO站点的终端设备标识TEI信息;The second sending module is configured to send, when the second receiving module does not receive the probe response message sent by the PCO station, the proxy change request to the central coordination CCO station in the timer time; The proxy change request includes the terminal device identifier TEI information of the target PCO site;
所述第二接收模块,配置为接收所述CCO站点发送的代理变更响应;所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The second receiving module is configured to receive a proxy change response sent by the CCO station, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
在本发明的其他实施例中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;In other embodiments of the present invention, the probe request message includes source site field information and destination site field information;
所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
第六方面,本发明实施例提供一种电力线通信网络的站点间通信状态检测装置,所述装置包括:In a sixth aspect, an embodiment of the present invention provides an inter-site communication state detecting apparatus for a power line communication network, where the apparatus includes:
第三接收模块,配置为接收基站STA站点发送的代理变更请求;所述代理变更请求中包含目标代理协调PCO站点的终端设备标识TEI信息;其中,所述代理变更请求是所述STA站点在定时器时间内未接收到PCO站点发送的探测响应消息时发送的;a third receiving module, configured to receive a proxy change request sent by the STA station of the base station; the proxy change request includes the terminal device identifier TEI information of the target proxy coordination PCO site; wherein the proxy change request is that the STA site is timing Sent when the probe response message sent by the PCO station is not received within the device time;
第三发送模块,配置为根据所述目标PCO站点的TEI信息,向所述STA站点发送代理变更响应;其中,所述代理变更响应中包含代理变更成功指 示信息或代理变更失败指示信息。a third sending module, configured to send, according to the TEI information of the target PCO site, an agent change response to the STA site, where the agent change response includes a proxy change success Indicates information or agent change failure indication information.
第七方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行第一方面实施例所述的电力线通信网络的站点间通信状态检测方法。According to a seventh aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing between the stations of the power line communication network according to the first aspect of the embodiments. Communication status detection method.
第八方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行第二方面实施例所述的电力线通信网络的站点间通信状态检测方法。In an eighth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions, where the computer executable instructions are used to execute an inter-site of a power line communication network according to the second aspect of the embodiments. Communication status detection method.
第九方面,本发明实施例提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行第三方面实施例所述的电力线通信网络的站点间通信状态检测方法。According to a ninth aspect, an embodiment of the present invention provides a computer storage medium, where the computer storage medium stores computer executable instructions for executing between the stations of the power line communication network according to the third aspect of the embodiments. Communication status detection method.
本发明实施例的电力线通信网络的站点间通信状态检测方法及装置,CCO站点经预设时间间隔向STA站点发送探测请求消息;所述CCO站点在预设时间内未接收到所述STA站点发送的探测响应消息时,判定所述CCO站点与所述STA站点之间通信异常;所述CCO站点向所述电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与通信异常的STA站点对应的TEI资源;其中,所述全网广播下线消息中包含所述通信异常的STA站点的TEI信息,所述全网广播下线消息用于指示所述电力线通信网络中的所有STA站点删除与所述TEI信息对应的路由信息,切断该通信异常的STA站点与电力线通信网络中其它各个STA站点的通信;如此,在应用层数据发送的过程中,在探测出站点间不存在通信异常时才进行数据发送,一旦站点间存在通信异常就及时切断异常STA站点与其它各个STA站点之间的通信,从而保障了数据通信过程,保证了服务质量,且减轻了信道负担。The method and device for detecting inter-site communication status of a power line communication network according to an embodiment of the present invention, the CCO station sends a probe request message to the STA station at a preset time interval; the CCO station does not receive the STA station transmission within a preset time. Determining a communication abnormality between the CCO site and the STA site; the CCO station transmitting a full-network broadcast offline message to all STA stations in the power line communication network, and recovering an abnormal communication with the communication a TEI resource corresponding to the STA site, where the network-wide broadcast offline message includes TEI information of the STA site with abnormal communication, and the network-wide broadcast offline message is used to indicate all STAs in the power line communication network. The station deletes the routing information corresponding to the TEI information, and disconnects the communication between the abnormal STA site and other STA stations in the power line communication network; thus, in the process of application layer data transmission, there is no communication between the detected sites. Data is sent only when an abnormality occurs. Once there is a communication abnormality between the stations, the abnormal STA site and other STA sites are cut off in time. Communication in order to protect the data communication process to ensure the quality of service, and reduce the burden on the channel.
附图说明DRAWINGS
图1为本发明实施例一提供的电力线通信网络的站点间通信状态检测 方法的流程图;FIG. 1 is a diagram for detecting inter-site communication status of a power line communication network according to Embodiment 1 of the present invention; Flow chart of the method;
图2为本发明实施例的网络拓扑示意图;2 is a schematic diagram of a network topology according to an embodiment of the present invention;
图3为本发明实施例二提供的电力线通信网络的站点间通信状态检测方法的流程图;3 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 2 of the present invention;
图4为本发明实施例三提供的电力线通信网络的站点间通信状态检测方法的流程图;4 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 3 of the present invention;
图5为本发明实施例一提供的电力线通信网络的站点间通信状态检测装置的流程图;5 is a flowchart of an inter-site communication state detecting apparatus of a power line communication network according to Embodiment 1 of the present invention;
图6为本发明实施例二提供的电力线通信网络的站点间通信状态检测装置的流程图;6 is a flowchart of an inter-site communication state detecting apparatus of a power line communication network according to Embodiment 2 of the present invention;
图7为本发明实施例三提供的电力线通信网络的站点间通信状态检测装置的流程图。FIG. 7 is a flowchart of an inter-site communication state detecting apparatus of a power line communication network according to Embodiment 3 of the present invention.
具体实施方式detailed description
在本发明的各实施例中,通过在现有的通信协议中增加一组管理报文:探测请求消息(CC_DETECT_REQ)和探测响应消息(CC_DETECT_RSP),来判断探测站点和被探测站点之间是否通信异常,从而使探测站点在获知通信异常的情况下,暂时不向被探测站点发送数据,减轻信道负担,避免了数据的丢失。In various embodiments of the present invention, by adding a set of management messages: a probe request message (CC_DETECT_REQ) and a probe response message (CC_DETECT_RSP) to an existing communication protocol, it is determined whether communication between the probe site and the detected site is performed. The abnormality causes the detecting station to temporarily send data to the detected station without knowing the communication abnormality, thereby reducing the channel burden and avoiding data loss.
下面结合具体的实施例对本发明提供的电力线通信网络的站点间通信状态检测方法进行详细描述。The method for detecting the inter-site communication state of the power line communication network provided by the present invention will be described in detail below with reference to specific embodiments.
图1为本发明实施例一提供的电力线通信网络的站点间通信状态检测方法的流程图。本实施例提供的方法可以由中央协调(Central Coordinator,CCO)站点执行,具体地,如图1所示,本实施例提供的方法可以包括:FIG. 1 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 1 of the present invention. The method provided in this embodiment may be performed by a Central Coordinator (CCO) site. Specifically, as shown in FIG. 1 , the method provided in this embodiment may include:
步骤101、CCO站点经预设时间间隔向基站(Station,STA)站点发送探测请求消息。 Step 101: The CCO station sends a probe request message to a station (STA, STA) station at a preset time interval.
步骤102、该CCO站点在预设时间内未接收到该STA站点发送的探测响应消息时,判定该CCO站点与该STA站点之间通信异常。Step 102: When the CCO station does not receive the probe response message sent by the STA station within a preset time, it is determined that the communication between the CCO site and the STA site is abnormal.
步骤103、该CCO站点向该电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与通信异常的STA站点对应的终端设备标识(Terminal Equipment Identifier,TEI)资源;其中,该全网广播下线消息中包含该通信异常的STA站点的TEI信息,该全网广播下线消息用于指示该电力线通信网络中的所有STA站点删除与该TEI信息对应的路由信息。Step 103: The CCO station sends a network-wide broadcast offline message to all STA stations in the power line communication network, and recovers a Terminal Equipment Identifier (TEI) resource corresponding to the STA site with abnormal communication; The network broadcast offline message includes the TEI information of the STA station with the communication abnormality, and the network-wide broadcast offline message is used to indicate that all STA stations in the power line communication network delete the routing information corresponding to the TEI information.
需要说明的是,该探测请求消息中可以包括源站点字段信息和目的站点字段信息,具体地,该探测请求消息的消息格式可以如表一所示:It should be noted that the probe request message may include source site field information and destination site field information. Specifically, the message format of the probe request message may be as shown in Table 1:
表一Table I
字段Field 起始字节Start byte 大小(字节)Size (bytes) 说明Description
DTEIDTEI 00 22 目的站点字段信息Destination site information
STEISTEI 22 22 源站点字段信息Source site field information
或者,该探测请求消息中可以包括源站点字段信息、目的站点字段信息以及目的站点层级字段信息,接收到该探测请求消息的站点可以根据目的站点层级字段信息更新自身的层级信息。具体地,该探测请求消息的消息格式可以如表二所示:Alternatively, the probe request message may include source site field information, destination site field information, and destination site level field information, and the site that receives the probe request message may update its own hierarchical information according to the destination site level field information. Specifically, the message format of the probe request message may be as shown in Table 2:
表二Table II
字段Field 起始字节Start byte 大小(字节)Size (bytes) 说明Description
DTEIDTEI 00 22 目的站点字段信息Destination site information
STEISTEI 22 22 源站点字段信息Source site field information
LayerLayer 44 11 目的站点层级字段信息Destination site level field information
具体地,该探测响应消息中包括源站点字段信息和目的站点字段信息,该探测响应消息的消息格式可以如表三所示: Specifically, the probe response message includes source site field information and destination site field information, and the message format of the probe response message may be as shown in Table 3:
表三Table 3
字段Field 起始字节Start byte 大小(字节)Size (bytes) 说明Description
DTEIDTEI 00 22 目的站点字段信息Destination site information
STEISTEI 22 22 源站点字段信息Source site field information
实际应用中,字段的字节大小可以根据电力线通信网络具体支持的节点数目的多少而定,例如,若电力线通信网络支持255个节点,则DTEI和STEI字段只需要占用1个字节。本实施例对此不做具体限定。In practical applications, the byte size of the field may be determined according to the number of nodes specifically supported by the power line communication network. For example, if the power line communication network supports 255 nodes, the DTEI and STEI fields only need to occupy 1 byte. This embodiment does not specifically limit this.
本实施例中,CCO站点在管理电力线通信网络中的站点时,会维护一张站点状态表,在站点状态表中,包含了电力线通信网络中各个站点的状态信息,CCO站点将每个站点刚入网时对应的站点状态设置为初始值,其中,初始值是根据实际应用场景中的信道质量、数据的延时重发情况以及代理协调(Proxy Coordinator,PCO)站点变更时间进行设定的,例如,当站点状态值为1时表示站点活跃,当站点状态值为0时表示站点不活跃。In this embodiment, when managing a site in a power line communication network, the CCO site maintains a site state table, where the site state table contains state information of each site in the power line communication network, and the CCO site will each site just The corresponding site status is set to the initial value when the network is connected, and the initial value is set according to the channel quality in the actual application scenario, the delayed retransmission of the data, and the Proxy Coordinator (PCO) site change time, for example, When the site status value is 1, the site is active. When the site state value is 0, the site is not active.
CCO站点经预设时间间隔向STA站点发送探测请求消息,本实施例中,该预设时间间隔具体为一个信标周期TBC,CCO站点在每个TBC向一个STA站点发送一个探测请求消息,可以理解,在每个路由周期TD内,CCO站点即可对电力线通信网络内的每个站点遍历一次,其中,TD=TBC*站点数目。The CCO station sends a probe request message to the STA site at a preset time interval. In this embodiment, the preset time interval is specifically a beacon period T BC , and the CCO station sends a probe request message to one STA station in each T BC. It can be understood that within each routing period T D , the CCO site can traverse once for each station within the power line communication network, where T D = T BC * number of stations.
该CCO站点在预设时间内未接收到该STA站点发送的探测响应消息时,判定该CCO站点与该STA站点之间通信异常;其中,预设时间具体可以为一个路由周期,本实施例中,若在一个路由周期内,CCO站点未接收到探测响应消息,则将站点状态表中对应站点的站点状态值减1,在站点状态值减为0之前,只要接收到探测响应消息,就将该站点的站点状态值置为初始值;当站点状态值减为0时,CCO站点即可判定与该站点之间通信异常。When the CCO site does not receive the probe response message sent by the STA station within a preset time, it is determined that the communication between the CCO site and the STA site is abnormal. The preset time may be a routing period. In this embodiment, If the CCO site does not receive the probe response message within a routing period, the site status value of the corresponding site in the site status table is decremented by 1. Before the site status value is reduced to 0, as long as the probe response message is received, The site status value of the site is set to the initial value; when the site status value is reduced to 0, the CCO site can determine the communication anomaly with the site.
在判定CCO站点与该STA站点之间通信异常后,CCO站点向电力线 网络中的所有STA站点发送全网广播下线消息,强制该通信异常的STA站点下线,并回收该通信异常的STA站点对应的TEI资源。After determining that the communication between the CCO site and the STA site is abnormal, the CCO site is directed to the power line. All the STAs in the network send a broadcast message of the entire network to the offline, and the STA site that is abnormal in the communication is forced to go offline, and the TEI resource corresponding to the abnormal STA site is recovered.
在保障应用层中数据发送的应用场景中,应用层在发送数据前,先向目标站点发送探测请求消息,若收到目标站点的探测响应消息,再进行数据发送,若未收到目标站点的探测响应消息,则暂不进行数据发送;例如图2所示的网络拓扑中,某时刻D站点的应用层需要发送大批量数据给H站点,数据发送之前,应用层先进行通信状态的探测,D站点先发探测请求消息给H站点,如果在设定时间内没有收到H站点的探测响应消息,则D站点应用层暂不发送数据给H站点,隔特定时间再探测,多次探测都没收到探测响应消息的情况下,放弃与H站点的数据通信,如果在设定时间内收到H站点的探测响应消息,说明D站点和H站点通信正常,发送数据给H站点。In the application scenario of ensuring data transmission in the application layer, the application layer sends a probe request message to the target site before sending the data, and if the probe response message of the target site is received, the data is sent, if the target site is not received. If the probe response message is sent, the data transmission is not performed temporarily; for example, in the network topology shown in FIG. 2, the application layer of the D station needs to send large amounts of data to the H site at a certain time, and before the data is sent, the application layer first detects the communication state. The D site first sends a probe request message to the H site. If the probe response message of the H site is not received within the set time, the D site application layer temporarily does not send data to the H site, and then detects the probe at a specific time. If the probe response message is not received, the data communication with the H site is abandoned. If the probe response message of the H site is received within the set time, the communication between the D site and the H site is normal, and the data is sent to the H site.
本实施例的技术方案,CCO站点在获知与STA站点之间通信异常后,强制该通信异常的STA站点下线,并通知电力线通信网络中的所有STA站点该通信异常的STA站点下线,使其他STA站点删除与该通信异常的STA站点的路由信息,切断了该通信异常的STA站点与电力线通信网络中其他站点的通信;在应用层数据发送的过程中,在探测出站点间不存在通信异常时才进行数据发送,从而保障了数据通信过程,保证服务质量,且减轻了信道负担。In the technical solution of the embodiment, after the CCO station learns that the communication with the STA site is abnormal, the STA station that is abnormal in the communication is forced to go offline, and the STA site in the power line communication network is notified that the abnormal STA site is offline. The other STA stations delete the routing information of the STA station with the abnormal communication, and cut off the communication between the STA station with the abnormal communication and other stations in the power line communication network; during the application layer data transmission, there is no communication between the detected sites. Data transmission is performed only when an abnormality is performed, thereby ensuring the data communication process, ensuring the quality of service, and reducing the channel burden.
图3为本发明实施例二提供的电力线通信网络的站点间通信状态检测方法的流程图。本实施例提供的方法可以由STA站点执行,具体地,如图3所示,本实施例提供的方法可以包括:FIG. 3 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 2 of the present invention. The method provided in this embodiment may be performed by a STA site. Specifically, as shown in FIG. 3, the method provided in this embodiment may include:
步骤301、STA站点向PCO站点发送探测请求消息,并启动定时器;其中,该探测请求消息是该STA站点经预设时间间隔判断出该STA站点的状态值小于预设初始值时发送的; Step 301: The STA station sends a probe request message to the PCO station, and starts a timer. The probe request message is sent when the STA station determines that the status value of the STA station is less than a preset initial value by using a preset time interval.
步骤302、若在该定时器时间内,该STA站点未接收到该PCO站点发送的探测响应消息,则该STA站点向CCO站点发送代理变更请求;该代理变更请求中包含目标PCO站点的TEI信息;Step 302: If the STA site does not receive the probe response message sent by the PCO station within the timer time, the STA site sends a proxy change request to the CCO site; the proxy change request includes the TEI information of the target PCO site. ;
步骤303、该STA站点接收该CCO站点发送的代理变更响应;该代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。Step 303: The STA site receives an agent change response sent by the CCO station, where the agent change response includes proxy change success indication information or agent change failure indication information.
需要说明的是,CCO站点用于管理PCO站点和STA站点,PCO站点是STA站点的父站点,CCO站点通过PCO站点与STA站点进行通信。It should be noted that the CCO site is used to manage the PCO site and the STA site, and the PCO site is the parent site of the STA site, and the CCO site communicates with the STA site through the PCO site.
该探测请求消息中可以包括源站点字段信息和目的站点字段信息,具体地,该探测请求消息的消息格式可以如上述实施例中的表一所示;该探测响应消息中可以包括源站点字段信息和目的站点字段信息,其消息格式可以如上述实施例中的表三所示;此处不再赘述。The probe request message may include source site field information and destination site field information. Specifically, the message format of the probe request message may be as shown in Table 1 in the foregoing embodiment; the probe response message may include source site field information. And the destination site field information, and the message format thereof may be as shown in Table 3 in the foregoing embodiment; details are not described herein again.
在实际应用中,本实施例可以用于站点的代理变更过程。具体地,STA站点会维护本站点的状态信息,在该STA站点刚入网时,将该STA站点的状态值置为初始值,在通信正常的情况下,该STA站点经预设时间间隔,即每个TD周期应该接收到一次CCO站点的探测请求消息,并回复探测响应消息给CCO站点;若该STA站点在TD周期内未接收到CCO站点的探测请求消息,则将该STA站点的状态值减1,并在每个TBC周期检测本站点的状态值,若状态值小于初始值,则主动向PCO站点发送探测请求消息,并启动定时器,本实施例中定义该定时器为N*TBC定时器,其中,N表示变量,该N*TBC定时器时间会随着不同的实际应用场景以及实时的网络状态而发生变化,若在该N*TBC定时器时间内,该STA站点未接收到PCO站点发送的探测响应消息,则会向CCO站点发送代理变更请求,进行代理变更;若在该N*TBC定时器时间内,该STA站点接收到了PCO站点发送的探测响应消息,则说明STA站点与PCO站点之间不存在通信异常,该STA站点不需要进行代理变更。 In practical applications, this embodiment can be used for the agent change process of the site. Specifically, the STA site maintains the state information of the site. When the STA site just enters the network, the state value of the STA site is set to an initial value. When the communication is normal, the STA site passes the preset time interval. That is, each T D period should receive a probe request message of the CCO station and reply the probe response message to the CCO station; if the STA station does not receive the probe request message of the CCO station in the T D period, the STA site is The status value is decremented by 1, and the status value of the local station is detected in each T BC period. If the status value is less than the initial value, the probe request message is actively sent to the PCO station, and a timer is started, which is defined in this embodiment. The device is an N*T BC timer, where N represents a variable, and the N*T BC timer time changes according to different actual application scenarios and real-time network status, if the N*T BC timer time within, the STA receives the probe station does not send a response message PCO station, a change request is sent to the agent station CCO, proxy change; if in the N * T BC timer, the STA receives the PCO site station transmits Probe response message, then the communication abnormality does not exist, the proxy does not need to change the station STA STA site between the site and the PCO.
例如,如图2中所示,假设H站点为一个STA站点,F站点为一个PCO站点,D站点为一个CCO站点;若H站点在TD周期内未接收到D站点发送的探测请求消息,则将状态值减1,并在检测到本站点的状态值小于初始值时,向F站点发送探测请求消息,启动N*TBC定时器;若在N*TBC定时器时间内接收到F站点发送的探测响应消息,则表明H站点和F站点之间不存在通信异常,该H站点未接收到D站点的探测请求消息是由于F站点与D站点之间存在通信异常导致的,因此H站点不需要进行代理变更,等待F站点进行代理变更完成即可;若在N*TBC定时器时间内未接收到F站点发送的探测响应消息,则说明H站点和F站点之间存在通信异常,需要进行代理变更。For example, as shown in FIG. 2, it is assumed that the H site is a STA site, the F site is a PCO site, and the D site is a CCO site; if the H site does not receive the probe request message sent by the D site in the T D cycle, Then, the state value is decremented by 1, and when it is detected that the state value of the site is less than the initial value, a probe request message is sent to the F station to start the N*T BC timer; if it is received within the N*T BC timer time The probe response message sent by the F station indicates that there is no communication abnormality between the H site and the F site, and the probe request message of the D site not receiving the D site is caused by the communication abnormality between the F site and the D site, so The H site does not need to perform proxy change, and waits for the F site to perform proxy change completion. If the probe response message sent by the F site is not received within the N*T BC timer time, there is communication between the H site and the F site. An exception, a proxy change is required.
本实施例的技术方案,STA站点在获知与PCO站点间存在通信异常时,发起代理变更的过程,从而保障数据通信,保证服务质量。In the technical solution of the embodiment, when the STA site learns that there is a communication abnormality with the PCO site, the process of proxy change is initiated, thereby ensuring data communication and ensuring service quality.
图4为本发明实施例三提供的电力线通信网络的站点间通信状态检测方法的流程图,本实施例提供的方法可以由CCO站点执行,具体地,如图4所示,本实施例提供的方法可以包括:4 is a flowchart of a method for detecting an inter-site communication state of a power line communication network according to Embodiment 3 of the present invention. The method provided in this embodiment may be performed by a CCO site. Specifically, as shown in FIG. 4, the embodiment provides Methods can include:
步骤401、CCO站点接收STA站点发送的代理变更请求;该代理变更请求中包含目标PCO站点的TEI信息;其中,该代理变更请求是该STA站点在定时器时间内未接收到PCO站点发送的探测响应消息时发送的;Step 401: The CCO station receives the proxy change request sent by the STA station, where the proxy change request includes the TEI information of the target PCO site, where the proxy change request is that the STA site does not receive the probe sent by the PCO station within the timer time. Sent when responding to a message;
步骤402、该CCO站点根据该目标PCO站点的TEI信息,向该STA站点发送代理变更响应;其中,该代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。Step 402: The CCO station sends an agent change response to the STA site according to the TEI information of the target PCO site, where the agent change response includes the agent change success indication information or the agent change failure indication information.
本实施例中,CCO站点接收到STA站点发送的代理变更请求后,会根据代理变更请求中的TEI信息,判断该TEI信息对应的站点是否适合作为该STA站点的PCO站点,若合适,则向该STA站点发送包含代理变更成功指示信息的代理变更响应;若不合适,则向该STA站点发送包含代理变 更失败指示信息的代理变更响应。In this embodiment, after receiving the proxy change request sent by the STA site, the CCO station determines, according to the TEI information in the proxy change request, whether the site corresponding to the TEI information is suitable as the PCO site of the STA site, and if appropriate, The STA station sends a proxy change response including the proxy change success indication information; if not, sending the proxy change to the STA site The agent change response of the failure indication information.
本实施例的技术方案,STA站点在发现与PCO站点间存在通信异常后,向CCO站点发起代理变更请求,避免由于通信异常而无法接收到数据,从而保证服务质量。In the technical solution of the embodiment, after the STA site finds that there is a communication abnormality with the PCO site, the STA change request is initiated to the CCO site to prevent the data from being received due to the communication abnormality, thereby ensuring the service quality.
图5为本发明实施例一提供的电力线通信网络的站点间通信状态检测装置。如图5所示,本实施例提供的装置可以包括:FIG. 5 is a schematic diagram of an inter-site communication state detecting apparatus for a power line communication network according to Embodiment 1 of the present invention. As shown in FIG. 5, the apparatus provided in this embodiment may include:
第一发送模块11,配置为经预设时间间隔向STA站点发送探测请求消息;The first sending module 11 is configured to send a probe request message to the STA site at a preset time interval;
第一接收模块12,配置为在预设时间内未接收到该STA站点发送的探测响应消息时,判定该电力线通信网络的站点间通信状态检测装置与该STA站点之间通信异常;The first receiving module 12 is configured to determine that the communication between the inter-site communication state detecting device of the power line communication network and the STA site is abnormal when the probe response message sent by the STA station is not received within a preset time;
该第一发送模块11,配置为向该电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与该通信异常的STA站点对应的TEI资源;其中,该全网广播下线消息中包含该通信异常的STA站点的TEI信息,该全网广播下线消息用于指示该电力线通信网络中的所有STA站点删除与该TEI信息对应的路由信息。The first sending module 11 is configured to send a network-wide broadcast offline message to all STA stations in the power line communication network, and recover a TEI resource corresponding to the abnormal STA site; wherein the network broadcast offline message The TEI information of the STA station that is abnormal in the communication is included, and the all-network broadcast offline message is used to indicate that all STA stations in the power line communication network delete routing information corresponding to the TEI information.
其中,该探测请求消息中包括源站点字段信息和目的站点字段信息;或者,该探测请求消息中包括源站点字段信息、目的站点字段信息以及目的站点层级字段信息;该探测响应消息中包括源站点字段信息和目的站点字段信息。The probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level field information; the probe response message includes a source site. Field information and destination site field information.
本实施例提供的电力线通信网络的站点间通信状态检测装置,可用于执行上述图1所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The inter-site communication state detecting device of the power line communication network provided in this embodiment can be used to perform the technical solution of the method embodiment shown in FIG. 1 , and the implementation principle and technical effects thereof are similar, and details are not described herein again.
在实际应用中,所述第一发送模块11和第一接收模块12可由位于CCO站点上的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP) 或现场可编程门阵列(FPGA)等器件实现。In practical applications, the first transmitting module 11 and the first receiving module 12 may be a central processing unit (CPU), a microprocessor (MPU), and a digital signal processor (DSP) located at a CCO site. Or device implementation such as field programmable gate array (FPGA).
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的站点间通信状态检测方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present invention, if the above-mentioned inter-site communication state detection method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. . Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例在CCO站点中执行的站点间通信状态检测方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing inter-site communication status performed in a CCO site according to an embodiment of the present invention. Detection method.
图6为本发明实施例二提供的电力线通信网络的站点间通信状态检测装置。如图6所示,本实施例提供的装置可以包括:第二发送模块21、定时器模块22、判断模块23以及第二接收模块24。6 is a device for detecting inter-site communication status of a power line communication network according to Embodiment 2 of the present invention. As shown in FIG. 6, the apparatus provided in this embodiment may include: a second sending module 21, a timer module 22, a judging module 23, and a second receiving module 24.
其中,该第二发送模块21,配置为向PCO站点发送探测请求消息,并启动该定时器模块22中的定时器;其中,该探测请求消息是该判断模块经预设时间间隔判断出状态值小于预设初始值时由该第二发送模块21发送的;The second sending module 21 is configured to send a probe request message to the PCO station, and start a timer in the timer module 22, where the probe request message is that the determining module determines the status value by using a preset time interval. Transmitted by the second sending module 21 when it is less than the preset initial value;
所述定时器模块22,配置为启动定时器进行定时;The timer module 22 is configured to start a timer to perform timing;
所述第二接收模块24,配置为在所述定时器定时的时间内,进行接收所述PCO站点发送的探测响应消息;The second receiving module 24 is configured to receive a probe response message sent by the PCO station within a timeout period of the timer.
所述判断模块23,用于判断所述第二接收模块24在所述定时器定时的 时间内是否接收到所述PCO站点发送的探测响应消息;The determining module 23 is configured to determine that the second receiving module 24 is at the timer Whether the probe response message sent by the PCO station is received in time;
所述第二发送模块21,配置为在该定时器的定时时间内,该第二接收模块24未接收到该PCO站点发送的探测响应消息时,则向CCO站点发送代理变更请求;该代理变更请求中包含目标PCO站点的TEI信息;The second sending module 21 is configured to send a proxy change request to the CCO site when the second receiving module 24 does not receive the probe response message sent by the PCO station within the timing of the timer; The request contains the TEI information of the target PCO site;
该第二接收模块24,配置为接收该CCO站点发送的代理变更响应;该代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The second receiving module 24 is configured to receive a proxy change response sent by the CCO station; the proxy change response includes proxy change success indication information or proxy change failure indication information.
具体地,该探测请求消息中包括源站点字段信息和目的站点字段信息;该探测响应消息中包括源站点字段信息和目的站点字段信息。Specifically, the probe request message includes source site field information and destination site field information; the probe response message includes source site field information and destination site field information.
本实施例提供的电力线通信网络的站点间通信状态检测装置,可用于执行上述图3所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The inter-site communication state detecting device of the power line communication network provided in this embodiment may be used to perform the technical solution of the method embodiment shown in FIG. 3, and the implementation principle and technical effects thereof are similar, and details are not described herein again.
在实际应用中,所述第二发送模块21、定时器模块22、判断模块23以及第二接收模块24可由位于STA站点上的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等器件实现。In practical applications, the second sending module 21, the timer module 22, the judging module 23, and the second receiving module 24 may be processed by a central processing unit (CPU), a microprocessor (MPU), and a digital signal located at the STA site. Implemented by devices such as DSPs or Field Programmable Gate Arrays (FPGAs).
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的站点间通信状态检测方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。 It should be noted that, in the embodiment of the present invention, if the above-mentioned inter-site communication state detection method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. . Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例在STA站点中执行的站点间通信状态检测方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing inter-site communication status performed in an STA site according to an embodiment of the present invention. Detection method.
图7为本发明实施例三提供的电力线通信网络的站点间通信状态检测装置。如图7所示,本实施例提供的装置可以包括:FIG. 7 is a schematic diagram of an inter-site communication state detecting apparatus for a power line communication network according to Embodiment 3 of the present invention. As shown in FIG. 7, the apparatus provided in this embodiment may include:
第三接收模块31,配置为接收STA站点发送的代理变更请求;该代理变更请求中包含目标PCO站点的TEI信息;其中,该代理变更请求是该STA站点在定时器时间内未接收到PCO站点发送的探测响应消息时发送的;The third receiving module 31 is configured to receive a proxy change request sent by the STA station, where the proxy change request includes TEI information of the target PCO site, where the proxy change request is that the STA site does not receive the PCO site within the timer time. Sent when a probe response message is sent;
第三发送模块32,配置为根据该目标PCO站点的TEI信息,向该STA站点发送代理变更响应;其中,该代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The third sending module 32 is configured to send a proxy change response to the STA site according to the TEI information of the target PCO site, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
本实施例提供的电力线通信网络的站点间通信状态检测装置,可用于执行上述图4所示方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The inter-site communication state detecting device of the power line communication network provided in this embodiment can be used to perform the technical solution of the method embodiment shown in FIG. 4, and the implementation principle and technical effects are similar, and details are not described herein again.
在实际应用中,所述第三接收模块31和第三发送模块32可由位于CCO站点上的中央处理器(CPU)、微处理器(MPU)、数字信号处理器(DSP)或现场可编程门阵列(FPGA)等器件实现。In practical applications, the third receiving module 31 and the third transmitting module 32 may be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate located at a CCO site. Device implementations such as arrays (FPGAs).
需要说明的是,本发明实施例中,如果以软件功能模块的形式实现上述的站点间通信状态检测方法,并作为独立的产品销售或使用时,也可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明实施例的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机、服务器、或者网络设备等)执行本发明各个实施例所述方法的全部或部分。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read Only Memory)、磁碟或者光盘等 各种可以存储程序代码的介质。这样,本发明实施例不限制于任何特定的硬件和软件结合。It should be noted that, in the embodiment of the present invention, if the above-mentioned inter-site communication state detection method is implemented in the form of a software function module, and is sold or used as an independent product, it may also be stored in a computer readable storage medium. . Based on such understanding, the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium, including a plurality of instructions. A computer device (which may be a personal computer, server, or network device, etc.) is caused to perform all or part of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a USB flash drive, a mobile hard disk, a read only memory (ROM, a Read Only Memory), a magnetic disk, or an optical disk. A variety of media that can store program code. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
相应地,本发明实施例再提供一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行本发明实施例在CCO站点中执行的站点间通信状态检测方法。Correspondingly, the embodiment of the present invention further provides a computer storage medium, where the computer storage medium stores computer executable instructions for performing inter-site communication status performed in a CCO site according to an embodiment of the present invention. Detection method.
本领域内的技术人员应明白,本发明的实施例可提供为方法、***、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention 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 and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(***)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. 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. Instructions are provided for implementation The steps of a function specified in a block or blocks of a flow or a flow and/or a block diagram of a flow chart.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.
工业实用性Industrial applicability
本发明实施例提供的技术方案,在应用层数据发送的过程中,在探测出站点间不存在通信异常时才进行数据发送,一旦站点间存在通信异常就及时切断异常STA站点与其它各个STA站点之间的通信,从而保障了数据通信过程,保证了服务质量,且减轻了信道负担。 The technical solution provided by the embodiment of the present invention, in the process of data transmission of the application layer, performs data transmission when detecting that there is no communication abnormality between the sites, and if the communication abnormality exists between the sites, the abnormal STA site and other STA sites are cut off in time. The communication between them ensures the data communication process, guarantees the quality of service, and reduces the channel burden.

Claims (13)

  1. 一种站点间通信状态检测方法,所述方法包括:An inter-site communication status detecting method, the method comprising:
    中央协调CCO站点经预设时间间隔向基站STA站点发送探测请求消息;The central coordination CCO station sends a probe request message to the base station STA station at a preset time interval;
    所述CCO站点在预设时间内未接收到所述STA站点发送的探测响应消息时,判定所述CCO站点与所述STA站点之间通信异常;When the CCO station does not receive the probe response message sent by the STA station within a preset time, it is determined that the communication between the CCO station and the STA site is abnormal;
    所述CCO站点向所述电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与通信异常的STA站点对应的终端设备标识TEI资源;其中,所述全网广播下线消息中包含所述通信异常的STA站点的TEI信息,所述全网广播下线消息用于指示所述电力线通信网络中的所有STA站点删除与所述TEI信息对应的路由信息。The CCO station sends a network-wide broadcast offline message to all the STA stations in the power line communication network, and recovers the terminal device identifier TEI resource corresponding to the abnormal STA site; wherein the entire network broadcasts the offline message. And the TEI information of the STA station that includes the communication abnormality, where the all-network broadcast offline message is used to indicate that all STA stations in the power line communication network delete routing information corresponding to the TEI information.
  2. 根据权利要求1所述的方法,其中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;或者,所述探测请求消息中包括源站点字段信息、目的站点字段信息以及目的站点层级字段信息;The method according to claim 1, wherein the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level. Field information
    所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
  3. 一种站点间通信状态检测方法,所述方法包括:An inter-site communication status detecting method, the method comprising:
    基站STA站点向代理协调PCO站点发送探测请求消息,并启动定时器;其中,所述探测请求消息是所述STA站点经预设时间间隔判断出所述STA站点的状态值小于预设初始值时发送的;The base station STA station sends a probe request message to the proxy coordination PCO station, and starts a timer. The probe request message is that the STA station determines that the status value of the STA station is less than a preset initial value by using a preset time interval. Sent
    在所述定时器时间内,所述STA站点未接收到所述PCO站点发送的探测响应消息时,所述STA站点向中央协调CCO站点发送代理变更请求;所述代理变更请求中包含目标PCO站点的终端设备标识TEI信息;When the STA station does not receive the probe response message sent by the PCO station, the STA station sends a proxy change request to the central coordination CCO site; the proxy change request includes the target PCO site. Terminal device identification TEI information;
    所述STA站点接收所述CCO站点发送的代理变更响应;所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The STA site receives an agent change response sent by the CCO station; the agent change response includes agent change success indication information or agent change failure indication information.
  4. 根据权利要求3所述的方法,其中,所述探测请求消息中包括源 站点字段信息和目的站点字段信息;The method of claim 3, wherein the probe request message includes a source Site field information and destination site field information;
    所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
  5. 一种站点间通信状态检测方法,所述方法包括:An inter-site communication status detecting method, the method comprising:
    中央协调CCO站点接收基站STA站点发送的代理变更请求;所述代理变更请求中包含目标代理协调PCO站点的终端设备标识TEI信息;其中,所述代理变更请求是所述STA站点在定时器时间内未接收到PCO站点发送的探测响应消息时发送的;The central coordination CCO station receives the proxy change request sent by the base station STA station; the proxy change request includes the terminal device identifier TEI information of the target proxy coordination PCO site; wherein the proxy change request is that the STA site is within the timer time Sent when the probe response message sent by the PCO station is not received;
    所述CCO站点根据所述目标PCO站点的TEI信息,向所述STA站点发送代理变更响应;其中,所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The CCO station sends a proxy change response to the STA site according to the TEI information of the target PCO site, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
  6. 一种站点间通信状态检测装置,其中,所述装置包括:An inter-site communication state detecting device, wherein the device comprises:
    第一发送模块,配置为经预设时间间隔向基站STA站点发送探测请求消息;The first sending module is configured to send a probe request message to the STA site of the base station at a preset time interval;
    第一接收模块,配置为在预设时间内未接收到所述STA站点发送的探测响应消息时,判定所述电力线通信网络的站点间通信状态检测装置与所述STA站点之间通信异常;The first receiving module is configured to determine that the communication between the inter-site communication state detecting device of the power line communication network and the STA site is abnormal when the probe response message sent by the STA station is not received within a preset time;
    所述第一发送模块,配置为向所述电力线通信网络中的所有STA站点发送全网广播下线消息,并回收与通信异常的STA站点对应的终端设备标识TEI资源;其中,所述全网广播下线消息中包含所述通信异常的STA站点的TEI信息,所述全网广播下线消息用于指示所述电力线通信网络中的所有STA站点删除与所述TEI信息对应的路由信息。The first sending module is configured to send a network-wide broadcast offline message to all STA stations in the power line communication network, and recover a terminal device identifier TEI resource corresponding to the STA site with abnormal communication; wherein, the entire network The broadcast offline message includes TEI information of the STA station with abnormal communication, and the network-wide broadcast offline message is used to instruct all STA stations in the power line communication network to delete routing information corresponding to the TEI information.
  7. 根据权利要求6所述的装置,其中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;或者,所述探测请求消息中包括源站点字段信息、目的站点字段信息以及目的站点层级字段信息;The apparatus according to claim 6, wherein the probe request message includes source site field information and destination site field information; or the probe request message includes source site field information, destination site field information, and destination site level. Field information
    所述探测响应消息中包括源站点字段信息和目的站点字段信息。 The probe response message includes source site field information and destination site field information.
  8. 一种站点间通信状态检测装置,所述装置包括:第二发送模块、定时器模块和第二接收模块,其中:An inter-site communication state detecting device, the device comprising: a second sending module, a timer module and a second receiving module, wherein:
    所述第二发送模块,配置为向代理协调PCO站点发送探测请求消息,并启动所述定时器模块中的定时器;其中,所述探测请求消息是所述判断模块经预设时间间隔判断出状态值小于预设初始值时由所述第二发送模块发送的;The second sending module is configured to send a probe request message to the proxy coordination PCO site, and start a timer in the timer module, where the probe request message is determined by the determining module at a preset time interval. When the status value is less than the preset initial value, it is sent by the second sending module;
    所述定时器模块,配置为启动定时器进行定时;The timer module is configured to start a timer for timing;
    所述第二接收模块,配置为在所述定时器定时的时间内,进行接收所述PCO站点发送的探测响应消息;The second receiving module is configured to receive a probe response message sent by the PCO station within a timeout period of the timer;
    所述第二发送模块,配置为在所述定时器时间内,如果所述第二接收模块未接收到所述PCO站点发送的探测响应消息时,向中央协调CCO站点发送代理变更请求;所述代理变更请求中包含目标PCO站点的终端设备标识TEI信息;The second sending module is configured to send, when the second receiving module does not receive the probe response message sent by the PCO station, the proxy change request to the central coordination CCO station in the timer time; The proxy change request includes the terminal device identifier TEI information of the target PCO site;
    所述第二接收模块,配置为接收所述CCO站点发送的代理变更响应;所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。The second receiving module is configured to receive a proxy change response sent by the CCO station, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
  9. 根据权利要求8所述的装置,其中,所述探测请求消息中包括源站点字段信息和目的站点字段信息;The apparatus according to claim 8, wherein the probe request message includes source site field information and destination site field information;
    所述探测响应消息中包括源站点字段信息和目的站点字段信息。The probe response message includes source site field information and destination site field information.
  10. 一种站点间通信状态检测装置,所述装置包括:An inter-site communication state detecting device, the device comprising:
    第三接收模块,配置为接收基站STA站点发送的代理变更请求;所述代理变更请求中包含目标代理协调PCO站点的终端设备标识TEI信息;其中,所述代理变更请求是所述STA站点在定时器时间内未接收到PCO站点发送的探测响应消息时发送的;a third receiving module, configured to receive a proxy change request sent by the STA station of the base station; the proxy change request includes the terminal device identifier TEI information of the target proxy coordination PCO site; wherein the proxy change request is that the STA site is timing Sent when the probe response message sent by the PCO station is not received within the device time;
    第三发送模块,配置为根据所述目标PCO站点的TEI信息,向所述 STA站点发送代理变更响应;其中,所述代理变更响应中包含代理变更成功指示信息或代理变更失败指示信息。a third sending module, configured to: according to TEI information of the target PCO site, to the The STA site sends a proxy change response, where the proxy change response includes proxy change success indication information or proxy change failure indication information.
  11. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求1或2所述的电力线通信网络的站点间通信状态检测方法。A computer storage medium storing computer executable instructions for performing an inter-site communication state detection method of the power line communication network according to claim 1 or 2.
  12. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求3或4所述的电力线通信网络的站点间通信状态检测方法。A computer storage medium storing computer executable instructions for performing an inter-site communication state detection method of the power line communication network according to claim 3 or 4.
  13. 一种计算机存储介质,所述计算机存储介质中存储有计算机可执行指令,该计算机可执行指令用于执行权利要求5所述的电力线通信网络的站点间通信状态检测方法。 A computer storage medium having stored therein computer executable instructions for performing an inter-site communication state detection method of the power line communication network of claim 5.
PCT/CN2016/083549 2015-09-14 2016-05-26 Method and device for detecting communication state between stations, and storage medium WO2017045433A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510581999.8 2015-09-14
CN201510581999.8A CN106533501A (en) 2015-09-14 2015-09-14 Inter-site communication state detection method and device for power line communication network

Publications (1)

Publication Number Publication Date
WO2017045433A1 true WO2017045433A1 (en) 2017-03-23

Family

ID=58288121

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/083549 WO2017045433A1 (en) 2015-09-14 2016-05-26 Method and device for detecting communication state between stations, and storage medium

Country Status (2)

Country Link
CN (1) CN106533501A (en)
WO (1) WO2017045433A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245477B (en) * 2020-01-16 2022-02-22 磐基技术有限公司 Power failure detection method of communication equipment
CN113852974A (en) * 2021-03-31 2021-12-28 天翼智慧家庭科技有限公司 Fast topology detection method based on 802.11 wireless frame
CN113203190B (en) * 2021-04-30 2022-05-27 佛山市顺德区美的电子科技有限公司 Pairing method and device of air conditioner based on power line communication and storage medium
CN113949415B (en) * 2021-09-23 2022-09-13 中国能源建设集团广东省电力设计研究院有限公司 Agent change evaluation method and device for high-speed power line carrier communication network
CN113923748B (en) * 2021-11-12 2023-06-02 重庆邮电大学 Method for forming cluster network based on proxy change
CN117177101B (en) * 2023-11-03 2024-02-02 深圳讯智物联科技有限公司 CCO state processing method and system based on ammeter reading system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1748597A1 (en) * 2005-07-27 2007-01-31 Sharp Kabushiki Kaisha Method for managing hidden stations in a centrally controlled network
CN102571151A (en) * 2011-12-21 2012-07-11 华为技术有限公司 Processing method for power line communication network and central coordinator (CCo)
CN102904610A (en) * 2012-08-29 2013-01-30 华为技术有限公司 Node recovering method and equipment for power line communication
CN103560840A (en) * 2013-10-28 2014-02-05 华为技术有限公司 Method, device and system for monitoring terminal conditions
CN203433667U (en) * 2013-09-18 2014-02-12 国家电网公司 Broadband carrier meter-reading module based on power line carrier communication

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882557B (en) * 2012-09-25 2015-07-08 华为技术有限公司 Coordinator recovery method and power line communication equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1748597A1 (en) * 2005-07-27 2007-01-31 Sharp Kabushiki Kaisha Method for managing hidden stations in a centrally controlled network
CN102571151A (en) * 2011-12-21 2012-07-11 华为技术有限公司 Processing method for power line communication network and central coordinator (CCo)
CN102904610A (en) * 2012-08-29 2013-01-30 华为技术有限公司 Node recovering method and equipment for power line communication
CN203433667U (en) * 2013-09-18 2014-02-12 国家电网公司 Broadband carrier meter-reading module based on power line carrier communication
CN103560840A (en) * 2013-10-28 2014-02-05 华为技术有限公司 Method, device and system for monitoring terminal conditions

Also Published As

Publication number Publication date
CN106533501A (en) 2017-03-22

Similar Documents

Publication Publication Date Title
WO2017045433A1 (en) Method and device for detecting communication state between stations, and storage medium
WO2016188432A1 (en) Machine type communication scheduling method, base station and user equipment
US9736876B1 (en) Method and apparatus for establishing links and maintaining consistent link information between stations
KR20210005547A (en) RRC connection recovery method, device and computer storage media
MX2021011509A (en) Transferring monitoring event information during a mobility procedure.
WO2018014283A1 (en) Communication method, network device and terminal device
WO2021096411A1 (en) Integrity protection of radio resource control message
TW201941638A (en) A data transmission method and device
JP2018516031A (en) Information notification method, user terminal, first base station, and second base station
WO2016026313A1 (en) Method, device and system for implementing information self-registration, and computer storage medium
WO2018028675A1 (en) Random access signal configuration method, apparatus, device, system and storage medium
EP3267648B1 (en) Data processing methods and device
CN102546304A (en) BFD detection method, equipment and system
CN106537955B (en) Data transmission method and device
EP3065445B1 (en) Method, cse, and system for transmitting m2m application request
WO2019141194A1 (en) Method and device for updating system message
CN106230658A (en) A kind of method and apparatus monitoring the network equipment
WO2016110241A1 (en) Method and system for detecting hidden station, station and computer storage medium
WO2016141653A1 (en) Sctp connection re-establishing method, device and storage medium
WO2019178844A1 (en) Data transmission method and device
CN104869532B (en) Group member management method and device
CN112911659B (en) NR-based information reporting method and device
US10356676B2 (en) Resource switching method, apparatus, and system
WO2021217511A1 (en) Communication method and apparatus
WO2017165999A1 (en) Network service implementation method, service controller, and communication system

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

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

Country of ref document: EP

Kind code of ref document: A1