WO2022063242A1 - 二层业务状态检测方法、通讯设备和存储介质 - Google Patents

二层业务状态检测方法、通讯设备和存储介质 Download PDF

Info

Publication number
WO2022063242A1
WO2022063242A1 PCT/CN2021/120393 CN2021120393W WO2022063242A1 WO 2022063242 A1 WO2022063242 A1 WO 2022063242A1 CN 2021120393 W CN2021120393 W CN 2021120393W WO 2022063242 A1 WO2022063242 A1 WO 2022063242A1
Authority
WO
WIPO (PCT)
Prior art keywords
service
layer
abnormal
protocol
sessions
Prior art date
Application number
PCT/CN2021/120393
Other languages
English (en)
French (fr)
Inventor
余辰东
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2022063242A1 publication Critical patent/WO2022063242A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Definitions

  • the present disclosure relates to the field of communication technologies, and in particular, to a layer-2 service state detection method, a communication device and a storage medium.
  • Layer 2 service protocols include Ethernet point-to-point service protocol (Point to Point Protocol over Ethernet PPPOE) and dynamic host configuration service protocol (Dynamic Host Configuration Protocol DHCP), etc.
  • the client (CLIENT) and the server (SERVER) complete the protocol interaction .
  • the CLIENT is usually located in the communication equipment, specifically the User Network Interface (UNI) of the PON equipment (Passive Optical Network, passive optical network equipment), and the SERVER is usually located in the communication equipment, specifically in the service network side of the PON equipment.
  • Interface Service Node Interface, SNI).
  • Point-to-multipoint network equipment realizes the aggregation of multiple clients through UNI, and realizes the docking with the server through SNI.
  • the communication device Since the communication device itself does not initiate or terminate Layer 2 protocol services, the communication device lacks direct perception and judgment on whether the service status is normal or not, and cannot detect and determine the location and scope of the fault. Existing judgments rely on the client's fault report or the upper-layer server's statistical alarm, which is not only inefficient, but also leads to high operation and maintenance costs.
  • the present disclosure provides a two-layer service state detection method, communication device and storage medium, so as to solve the problem that the existing judgments rely on the user client's fault report or the upper-layer server's statistical alarm, which not only has low efficiency, but also leads to relatively high operation and maintenance costs. big problem.
  • the present disclosure provides a method for detecting the state of a layer-2 service, the method comprising: determining the number of sessions corresponding to the session number of the layer-2 service, and determining whether the state of the layer-2 service is abnormal according to the number of sessions; If the status of the layer business is abnormal, an abnormal warning message will be sent.
  • the present disclosure also proposes a communication device, including a memory and a processor, the memory is configured to store a computer program; the processor is configured to execute the computer program and implement the aforementioned two-layer service state detection method when executing the computer program. A step of.
  • the present disclosure also provides a computer-readable storage medium for computer-readable storage, where the storage medium stores one or more programs, and the one or more programs can be executed by one or more processors, In order to realize the steps of the foregoing two-layer service state detection method.
  • FIG. 1 is a schematic flow chart of a layer 2 service state detection method provided by the present disclosure.
  • FIG. 2 is a schematic diagram of an interaction scenario of a PPPOE service protocol of the present disclosure.
  • FIG. 3 is a schematic diagram of an interaction scenario of the DHCP service protocol of the present disclosure.
  • FIG. 4 is a schematic flowchart of another layer-2 service state detection method provided by the present disclosure.
  • FIG. 5 is a schematic block diagram of the structure of a communication device provided by the present disclosure.
  • the present disclosure provides a layer-2 service state detection method, a base station, a calling system and a storage medium.
  • FIG. 1 is a schematic flowchart of a method for detecting a layer 2 service state provided by the present disclosure.
  • this embodiment provides a layer-2 service state detection method, and the method includes the following steps S110 and S120.
  • Step S110 Determine the number of sessions corresponding to the session number of the layer-2 service, and determine whether the state of the layer-2 service is abnormal according to the number of sessions.
  • Layer 2 services include the PPPOE service protocol, the DHCP service protocol, and other services that include an ID field to uniquely define a protocol completion process.
  • the Layer 2 service is the data link layer. Obtain the session number of the Layer 2 service, and use the session number to determine the number of sessions corresponding to the session number. For example, count the number of sessions, take the counted number as the number of sessions, and compare the number of sessions with a preset threshold. Thereby, it is determined whether the status of the Layer 2 service is abnormal.
  • the Layer 2 service is a PPPOE service protocol
  • the PPPOE service protocol has two distinct phases: a discovery phase and a PPP session phase.
  • a host wants to start a PPPOE session, it must first go through the discovery phase to identify the peer's physical address, eg, Ethernet MAC address, and establish a session ID, eg, PPPOE SESSION_ID.
  • the client can discover multiple servers, wherein the client includes a host, and the server includes an access concentrator.
  • the discovery phase allows the host to discover all access concentrators and then select one.
  • both the host and the selected access concentrator have the information that they have established the Link Control Protocol Point-to-Point Transport Protocol (PPP) connection on the Ethernet.
  • PPP Link Control Protocol Point-to-Point Transport Protocol
  • the discovery phase remains stateless until the PPP session is established.
  • PPP session Once a PPP session is established, both the host and the access concentrator must allocate resources for the PPP virtual interface.
  • the SESSION_ID field (16 bits) is defined in the PPPOE frame format, which is an unsigned value in network order. This value is constant in a given PPP session, and together with the source and destination addresses, it defines a PPP session.
  • PPPOE is re-established, the SESSION_ID will be reassigned, that is, SESSION_ID will uniquely define a PPPOE session.
  • the Layer 2 service protocol is a DHCP service protocol
  • the predecessor of DHCP is a Bootstrap Protocol BOOTP.
  • DHCP itself is a dynamic host IP configuration protocol that extends BOOTP in two ways: 1) DHCP enables a computer to obtain all the configuration information it needs with one message, that is, a protocol for transmitting configuration information, 2) DHCP allows the computer to quickly Dynamic acquisition of IP addresses, that is, a mechanism for dynamically assigning IP addresses.
  • DHCP uses the BOOTP message format but modifies the contents and meanings of some fields.
  • Transport ID is a random number selected by the client device each time it sends a DHCP request message to match the SERVER response message. It is the response to which request message, and CLIENT will discard the response message whose transaction ID does not match.
  • DHCP restarts to obtain IP its transaction ID is also unique, that is, the transaction ID can uniquely define a DHCP interaction process.
  • determining the number of sessions of the Layer 2 service includes: detecting a protocol packet of a specific Layer 2 service, and obtaining the session number in the protocol packet; determining the session number according to the session number and the previously recorded session number. number of sessions.
  • the discovery stage of the PPPOE service includes four steps from S201 to S204 described later. When the discovery stage is completed, the PPPOE CLIENT (PPPOE client) and PPPOE SERVER (PPPOE SERVER) of the communication are completed.
  • PPPOE SESSION_ID and Ethernet address together uniquely define PPPOE session.
  • session ID SESSION-ID
  • Ethernet address referred to as a PADI packet.
  • PADI packet PADI packet.
  • Detecting the DHCP ACK message includes, as shown in Figure 3, the process of requesting an IP address by a DHCP service includes the following steps S301 to S304. S301.
  • determining whether the state of the Layer 2 service is abnormal according to the number of sessions includes: determining a first preset threshold of the session number; if the number of sessions is greater than the first preset threshold, determining that the state of the Layer 2 service is abnormal .
  • a threshold is preset, the threshold is determined as the first preset threshold corresponding to the session number, and the first preset threshold is compared with the number of sessions corresponding to the session number. If the number of sessions is greater than the first preset threshold, it is determined that the state of the layer 2 service is abnormal.
  • the Layer 2 service is a PPPOE service
  • the number of sessions of the SESSION ID is obtained, and the number of sessions of the SESSION ID is compared with the first preset threshold, if the number of sessions of the SESSION ID is greater than the first preset threshold. If the threshold is set, it is determined that the status of the PPPOE service is abnormal.
  • the Layer 2 service is a DHCP service
  • obtain the number of sessions of the Transaction ID compare the number of sessions of the Transaction ID with the first preset threshold, and determine if the number of sessions of the Transaction ID is greater than the first preset threshold.
  • the status of the DHCP service is abnormal.
  • the method of determining the first preset threshold value of the session number also includes: acquiring parameters affecting the interaction of service protocols in the protocol message of the Layer 2 service, and the parameters affecting the interaction of service protocols include optical network unit (Optical Network Unit, ONU) state changes Quantity, changes in the number of MAC addresses in the corresponding virtual local area network (Virtual Local Area Network, VLAN), etc.
  • the first preset threshold corresponding to the session number of the layer 2 service is determined by the parameter affecting the interaction of the service protocol.
  • the communication device is based on a physical port or a logical port, wherein the physical port or logical port includes an optical line terminal (Optical Line Terminal, OLT), a slot, a passive optical network port (Passive Optical Network, PON port), optical network unit port (Optical Network Unit, ONU port), etc.
  • OLT optical Line Terminal
  • PON port Passive Optical Network, PON port
  • optical network unit port Optical Network Unit, ONU port
  • the physical port or logical port of the communication device When the physical port or logical port of the communication device is an ONU port, obtain the average number of service MAC address changes and the average ONU state changes corresponding to the ONU interface in the first preset period.
  • the number of changes obtains a threshold A1 corresponding to each cycle of the first preset cycle, and this A1 is used as the first preset threshold corresponding to the ONU port.
  • threshold A1 coefficient 1 ⁇ (average number of service MAC address changes + average number of ONU state changes) , where the coefficient 1 is quantitative, and the coefficient 1 is the proportional relationship between the number of MAC addresses and ONUs under the corresponding interface and the number of specific protocols represented by them.
  • Obtaining the average number of service MAC address changes includes obtaining the number of changes in the MAC address of the ONU interface in each cycle of the first preset period, and obtaining the number of changes of the MAC address under the ONU interface in each cycle according to the number of changes in the MAC address of the first preset period.
  • the current time which is an integer multiple of the first preset period.
  • Obtaining the average number of ONU state changes includes: obtaining the number of ONU state changes in each cycle of the first preset cycle, adding the number of ONU state changes in each cycle to obtain the total number of ONU state changes in the first preset cycle, according to The total number of times of ONU state changes in the first preset period and the number of periods in the first preset period are obtained to obtain the average number of times of ONU state changes.
  • Average number of ONU state changes total number of ONU state changes ⁇ number of cycles/extraction strategy
  • the startup duration, where the number of cycles is the number of cycles in the first preset cycle, and the startup duration of the extraction strategy is quantitative.
  • the threshold value A1 If the number of sessions is less than or equal to the threshold value A1, it is determined that the ONU service corresponding to the ONU port is normal; if the number of sessions is greater than the threshold value A1, it is determined that the ONU port corresponds to The ONU service is abnormal.
  • the physical port or logical port of the communication device is a PON port
  • the number of changes, the number of ONU state changes, the number of MAC addresses in the corresponding service, and the number of ONUs online are used to obtain a threshold A2 corresponding to each cycle of the second preset cycle, and this A2 is used as the first preset threshold corresponding to the PON port.
  • Threshold A2 coefficient 2 ⁇ (number of PON state changes ⁇ ONU online number + average service MAC address change number + average ONU state transition number), where the coefficient 2 is quantitative, and the coefficient 2 is the corresponding interface
  • Obtaining the average number of service MAC address changes includes obtaining the number of changes in the MAC address under the PON port in each cycle of the second preset period, and obtaining the number of changes in the MAC address under the PON port in each cycle according to the number of changes in the MAC address under the PON port in the second preset period.
  • the average number of service MAC address changes in a period.
  • the average number of changes in service MAC addresses each The number of MAC address changes under the PON port in a period ⁇ the number of cycles/the extraction strategy activation duration, where the number of cycles is the number of cycles in the second preset cycle, and the extraction strategy activation duration is quantitative.
  • the current time which is an integer multiple of the second preset period.
  • Obtaining the average number of ONU state changes includes obtaining the number of ONU state changes in each cycle of the second preset cycle, adding the number of ONU state changes in each cycle to obtain the total number of ONU state changes in the second preset cycle, according to The total number of times of ONU state changes in the second preset period and the number of periods in the second preset period are obtained to obtain the average number of times of ONU state changes.
  • Average number of ONU state changes total number of ONU state changes ⁇ number of cycles/extraction strategy Startup duration, where the number of cycles is the number of cycles in the second preset cycle, and the extraction strategy startup duration is quantitative.
  • the extraction strategy startup duration refers to the time from the extraction strategy startup to the current time, and is an integer multiple of the second preset cycle.
  • the physical port or logical port of the communication device is a PON line card, and the sum of the relevant parameters corresponding to all the PON ports under the PON line card in the third preset period is obtained as SUM (threshold A2), wherein the relevant parameters corresponding to each PON port are obtained. If the parameters are not the same, a threshold A3 corresponding to each period of the third preset period is obtained, and this A3 is used as the first preset threshold corresponding to the PON line card.
  • Threshold A3 coefficient 3 ⁇ SUM (threshold A2), where SUM (threshold A2) corresponds to all PON ports under the PON line card
  • SUM (threshold A2) corresponds to all PON ports under the PON line card
  • the physical port or logical port of the communication device is an OLT
  • the SUM (threshold A3) of the sum of the relevant parameters corresponding to all the PON line cards in the third preset period is obtained, wherein the relevant parameters corresponding to each PON line card are different
  • the fourth The threshold value A4 corresponding to each cycle of the preset cycle is set as the first preset threshold value corresponding to the OLT.
  • SUM threshold A3
  • SUM threshold A3
  • the first timer A4 is started through the OLT, when the first timer A4 times out, the number of sessions corresponding to the OLT recorded in the first timer A4 is extracted.
  • Step S120 If it is determined that the state of the Layer 2 service is abnormal, send abnormal warning information.
  • abnormal warning information is sent, where the abnormal warning information includes text, images, and the like.
  • the example includes that the Layer 2 service is a PPPOE service, and when it is determined that the state of the PPPOE service is abnormal, an abnormality warning message including the PPPOE service is sent, or, the Layer 2 service is a DHCP service, and when it is determined that the state of the DHCP service is abnormal, a message that includes the PPPOE service is sent.
  • Abnormal warning information about the DHCP service is a PPPOE service.
  • the PPPOE service or the DHCP service includes a physical port or logical port involved in the service, the physical port or logical port includes an OLT, the OLT includes multiple PON line cards, the PON line card includes multiple PONs, and the PON accesses multiple
  • the ONU when it is determined that the ONU service is abnormal, sends abnormal warning information containing the ONU service; or, when it is determined that the PON service is abnormal, sends abnormal warning information containing the PON service; or, when it is determined that the PON line card service is abnormal, it sends the abnormal warning information containing the PON
  • FIG. 4 is a schematic flowchart of another layer-2 service state detection method provided by the present disclosure, including the following steps S410 and S420.
  • Step S410 Acquire protocol interaction information of the Layer 2 service.
  • the Layer 2 service is the PPPOE service or the DHCP service
  • Step S420 Determine the state abnormality type of the Layer 2 service according to the protocol interaction information and the number of sessions.
  • the state abnormality type of the PPPOE service protocol or the DHCP service protocol is determined according to the acquired protocol interaction information and the number of sessions. For example, when the difference between the number of initial messages of the protocol interaction protocol and the number of sessions in the protocol interaction information is greater than the second preset threshold, it is determined that the physical or logical port involved in the PPPOE service protocol or the DHCP service protocol bears and forwards the protocol service.
  • the protocol interaction information includes the number of protocol interaction initiation protocol messages, and according to the protocol interaction information and the number of sessions, determining the state abnormality type of the Layer 2 service includes: determining the number of protocol interaction initiation protocol messages and the number of the protocol interaction initiation protocol messages.
  • the difference value between the number of sessions, and the second preset threshold for determining the Layer 2 service if the difference value is greater than the second preset threshold, it is determined that the status abnormality type of the Layer 2 service carried by the physical or logical port is service interaction abnormality ; If the difference value is less than or equal to the second preset threshold, then it is determined that the Layer 2 service interaction carried by the physical or logical port is normal, and the service exception type is the software and hardware forwarding module or physical port/logical port related to the physical port or logical port. The corresponding terminal, link or external device is abnormal.
  • the number of protocol interaction initiation protocol messages and the corresponding number of sessions in the protocol interaction information are obtained, and the protocol interaction initiation protocol is determined according to the number of protocol interaction initiation protocol messages and the corresponding session number.
  • Determining the second preset threshold of the Layer 2 service includes: starting a second timer, and determining the corresponding second preset threshold through the second timer. The difference between the number of protocol interaction initiation protocol messages and the corresponding number of sessions is compared with the second preset threshold to determine whether the service of the logical port or the physical port is abnormal.
  • the difference value is greater than the second preset threshold, it is determined that the state abnormality type of the Layer 2 service carried by the physical or logical port is service interaction abnormality; if the difference value is less than or equal to the second preset threshold, it is determined that the physical or logical port is abnormal
  • the Layer 2 services carried by the port interact normally, and the abnormal status of the service is that the terminal, link, or peripheral corresponding to the physical port or logical port is abnormal.
  • the number of PADI, PADO, PADR, and PADS messages and the number of sessions (Session IDs) in the protocol interaction information are respectively recorded in units of physical or logical ports within a certain period.
  • a second timer B1 is enabled through the ONU port, and the second preset threshold B1 is determined through the second timer B1.
  • the difference between the number of initial protocol messages for protocol interaction and the number of sessions is determined by the number of initial protocol messages for protocol interaction in the protocol interaction information recorded by the ONU port.
  • the difference value is compared with the second preset threshold value B1, if the difference value is less than or equal to the second preset threshold value B1, it is determined that the type of the ONU service abnormality is service interaction abnormality, and it is determined that the ONU service has message interaction failure
  • the business interaction is abnormal due to the cause. If the difference value is greater than the second preset threshold B1, it is determined that the ONU service is normal, and the ONU terminal corresponding to the ONU port is determined to be abnormal.
  • a second timer B2 is activated through the PON port, and the second preset threshold B2 is determined through the second timer B2.
  • the difference between the number of protocol interaction start protocol messages and the number of sessions is determined by the number of protocol interaction start protocol messages in the protocol interaction information recorded by the PON port.
  • the difference value is compared with the second preset threshold value B2, if the difference value is less than or equal to the second preset threshold value B2, it is determined that the abnormal type of the PON service is abnormal service interaction, and it is determined that there is a message interaction failure in the PON service The business interaction is abnormal due to the cause. If the difference value is greater than the second preset threshold B2, it is determined that the PON service is normal, and the ONU terminal or link corresponding to the PON port is determined to be abnormal.
  • the second timer B3 is activated through the PON line card, and the second preset threshold B3 is determined through the second timer B3.
  • the difference between the number of protocol interaction initiation protocol messages and the number of sessions is determined by the number of protocol interaction initiation protocol messages in the protocol interaction information recorded by the PON line card.
  • the difference value is compared with the second preset threshold value B3, if the difference value is less than or equal to the second preset threshold value B3, then it is determined that the abnormal type of the PON line card service is abnormal service interaction, and the service of the PON line card is determined to be abnormal. There is a business interaction exception caused by the failure of message interaction. If the difference value is greater than the second preset threshold B3, it is determined that the service of the PON line card is normal, and it is determined that the forwarding module with commonality corresponding to the PON line card is abnormal.
  • a second timer B4 is enabled through the OLT, and the second preset threshold B4 is determined through the second timer B4.
  • the difference between the number of initial protocol messages for protocol interaction and the number of sessions is determined according to the number of initial protocol messages for protocol interaction in the protocol interaction information recorded by the OLT.
  • the abnormal service interaction includes abnormal packet loss, and the abnormal packet loss includes abnormal packet loss of uplink packets and abnormal packet loss of downlink packets; it is determined that the state abnormality type of the Layer 2 service is abnormal service interaction , including: obtaining the number of adjacent upstream packets and the number of downstream packets in the protocol exchange information; Or downlink packets are abnormally lost.
  • the adjacent uplink message information and downlink message information in the protocol interaction information are acquired, and according to the acquired uplink message information and downlink message information, it is determined whether the service interaction of the Layer 2 service is abnormal.
  • the message is abnormally lost.
  • After obtaining the number of upstream packets in the adjacent upstream packet information and the number of downstream packets in the downstream packet information by comparing the number of upstream packets and the number of downstream packets, it is determined whether the upstream packets are abnormally lost or not.
  • Downlink packets are abnormally lost.
  • the number of uplink packets is the number of adjacent uplink packets of protocol exchange information
  • the number of downlink packets is the number of adjacent downlink packets of protocol exchange information.
  • the number of adjacent upstream packets and the number of downstream packets in the protocol interaction information corresponding to the ONU port is obtained, and the number of upstream packets and the number of downstream packets are compared. If the number of downlink packets is greater than the number of uplink packets, it is determined that the ONU uplink packets are abnormally lost; if the number of uplink messages is greater than the number of downlink packets, it is determined that the ONU downlink packets are abnormally lost.
  • the number of adjacent upstream packets and the number of downstream packets in the protocol interaction information corresponding to the PON port is obtained, and the number of upstream packets and the number of downstream packets are compared. If the number of downstream packets is greater than the number of upstream packets, it is determined that the PON upstream packets are abnormally lost; if the number of upstream messages is greater than the number of downstream packets, it is determined that the PON downstream packets are abnormally lost.
  • the PON line card when it is determined that the abnormal service interaction of the PON line card is abnormal, obtain the number of adjacent upstream packets and the number of downstream packets in the protocol interaction information corresponding to the PON line card, and compare the number of upstream packets and the number of downstream packets. Comparison. If the number of downstream packets is greater than the number of upstream packets, it is determined that the upstream packets of the PON line card are abnormally lost; if the number of upstream messages is greater than the number of downstream packets, it is determined that the downstream packets of the PON line card are abnormally lost.
  • the number of adjacent upstream packets and the number of downstream packets in the protocol interaction information corresponding to the OLT is obtained, and the number of upstream packets and the number of downstream packets are compared. If the number of downstream packets is greater than the number of upstream packets, it is determined that the OLT upstream packets are abnormally lost; if the number of upstream messages is greater than the number of downstream packets, it is determined that the OLT downstream packets are abnormally lost.
  • whether the service status is abnormal is determined by the session number of the service session number, and then the type of service abnormality and the cause of the service abnormality are determined by the protocol interaction information recorded by the physical port or the logical port. Therefore, by monitoring the change and quantity of the session number in the interaction of the Layer 2 protocol, the judgment on the exchange of the Layer 2 protocol is realized, and the qualitative and judgment of the fault is compared with the number of the protocol interaction packets, so as to realize the point-to-multipoint network device. Effective detection and efficient positioning of the Layer 2 business status in the system, and achieve the effect of low detection cost and high compatibility.
  • FIG. 5 is a schematic block diagram of the structure of a communication device provided by the present disclosure.
  • the communication equipment includes two-layer communication equipment, the second-layer communication equipment includes PON OLT equipment, and the PON OLT equipment includes OLT (Optical Line Terminal), ODN (Optical Distribution Network Passive Optical Device Optical Distribution Network), ONU ( ONT Optical Network Unit optical network unit, or Optical Network Terminal optical network terminal), wherein the number of ONUs can be multiple.
  • OLT Optical Line Terminal
  • ODN Optical Distribution Network Passive Optical Device Optical Distribution Network
  • ONU ONT Optical Network Unit optical network unit, or Optical Network Terminal optical network terminal
  • the base station further includes a processor, a memory configured to store the computer program.
  • the processor is configured to execute the computer program and implement the foregoing two-layer service state detection method provided by the present disclosure when executing the computer program.
  • the processor may be a central processing unit (Central Processing Unit, CPU), and the processor may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSP), application specific integrated circuits (Application Specific Integrated circuits) Circuit, ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor can be a microprocessor or the processor can also be any conventional processor or the like.
  • the present disclosure also provides a computer-readable storage medium, where the computer-readable storage medium stores a computer program, and when the computer program is executed by the processor, enables the processor to implement any one of the Layer 2 service status detection methods provided in the present disclosure.
  • the present disclosure discloses a layer-2 service state detection method, a communication device and a storage medium, by determining the number of sessions corresponding to the session numbers of the layer-2 service, and determining whether the state of the layer-2 service is abnormal according to the number of sessions; If the status is abnormal, an abnormal warning message will be sent, so as to realize the judgment on the interaction of the Layer 2 protocol by monitoring the change and quantity of the session number in the interaction of the Layer 2 protocol, and compare the quality and judgment of the fault based on the number of protocol interaction packets. , so as to realize the effective detection and efficient positioning of the Layer 2 service status in the point-to-multipoint network device, and achieve the effects of low detection cost and high compatibility.
  • computer-readable storage medium includes volatile and non-volatile and non-volatile storage media implemented in any method or technology for storage of information, such as computer-readable instructions, data structures, program modules or other data. Volatile, removable and non-removable media.
  • Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cartridges, magnetic tape, magnetic disk storage or other magnetic storage devices, Or any other medium that can be used to store the desired information and that can be accessed by a computer.
  • communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and can include any information delivery media, as is well known to those of ordinary skill in the art .
  • the computer-readable storage medium may be an internal storage unit of the electronic device of the foregoing embodiments, such as a hard disk or a memory of the electronic device.
  • the computer-readable storage medium can also be an external storage device of the electronic device, such as a plug-in hard disk equipped on the electronic device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash memory card ( Flash Card), etc.
  • the electronic equipment and computer-readable storage medium provided by the foregoing embodiments can obtain a corresponding smart contract by contracting the acquired artificial intelligence model, and deploy the smart contract in the blockchain.
  • the smart contract can be smoothly deployed into the blockchain network, and the deployment of the artificial intelligence model into the smart contract on the blockchain can be completed, thereby ensuring the automation of the data reasoning process. , the whole process is traceable and verifiable, while ensuring the security of data, models and transactions of two or more users.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Small-Scale Networks (AREA)

Abstract

本公开公开一种二层业务状态检测方法、通讯设备和存储介质,属于通信技术领域。该方法包括:通过确定二层业务的会话号对应的会话数量,并根据会话数量确定二层业务的状态是否异常;若确定二层业务的状态异常,则发送异常警告信息。

Description

二层业务状态检测方法、通讯设备和存储介质
相关申请的交叉引用
本公开要求享有2020年09月27日提交的名称为“二层业务状态检测方法、通讯设备和存储介质”的中国专利申请CN202011034818.7的优先权,其全部内容通过引用并入本公开中。
技术领域
本公开涉及通信技术领域,尤其涉及一种二层业务状态检测方法、通讯设备和存储介质。
背景技术
二层业务协议包括以太网的点对点业务协议(Point to Point Protocol over Ethernet PPPOE)和动态主机配置业务协议(Dynamic Host Configuration ProtocolDHCP)等,一般由客户端(CLIENT)与服务端(SERVER)完成协议交互。而CLIENT通常位于通讯设备,具体为PON设备(Passive Optical Network,无源光纤网络设备)的用户网络侧接口(User Network Interface,UNI),SERVER通常也位于通讯设备,具体位于PON设备的业务网络侧接口(Service Node Interface,SNI)。点对多点网络设备(PON设备)通过UNI实现了多个客户端的汇聚,通过SNI实现与服务端的对接。
由于通讯设备本身不进行二层协议业务的发起或终结,因此在通讯设备上对于业务状态正常与否缺少直接的感知与判断,无法检测及确定故障位置和范围。现有都依赖于CLIENT的报障或上层SERVER的统计告警进行判断,不仅效率低,且导致运维成本较大。
发明内容
本公开提供了一种二层业务状态检测方法、通讯设备和存储介质,以解决现有都依赖于用户CLIENT的报障或上层SERVER的统计告警进行判断,不仅效率低,且导致运维成本较大的问题。
为实现上述目的,本公开提供了一种二层业务状态检测方法,该方法包括:确定二层业务的会话号对应的会话数量,并根据会话数量确定二层业务的状态是否异常;若确定二层业务的状态异常,则发送异常警告信息。
为实现上述目的,本公开还提出了一种通讯设备,包括存储器和处理器,存储器配置为 存储计算机程序;处理器配置为执行计算机程序并在执行计算机程序时实现前述的二层业务状态检测方法的步骤。
为实现上述目的,本公开还提出了一种计算机可读存储介质,用于计算机可读存储,存储介质存储有一个或者多个程序,一个或者多个程序可被一个或者多个处理器执行,以实现前述的二层业务状态检测方法的步骤。
附图说明
图1是本公开提供的一种二层业务状态检测方法的示意流程图。
图2为本公开PPPOE业务协议交互场景示意图。
图3是本公开DHCP业务协议交互场景示意图。
图4是本公开提供的另一种二层业务状态检测方法的示意流程图。
图5为本公开提供的一种通讯设备的结构示意性框图。
具体实施方式
下面将结合本公开中的附图,对本公开中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本公开的一部分,而不是全部的实施例。基于本公开,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。
附图中所示的流程图仅是示例说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解、组合或部分合并,因此实际执行的顺序有可能根据实际情况改变。
本公开提供了一种二层业务状态检测方法、基站、调用系统和存储介质。
下面结合附图,对本公开的一些实施方式作详细说明。在不冲突的情况下,下述的发明实施例及发明实施例中的特征可以相互组合。
请参阅图1,图1是本公开提供的一种二层业务状态检测方法的示意流程图。
如图1所示,本实施例提供了一种二层业务状态检测方法,该方法包括如下步骤S110和S120。步骤S110:确定二层业务的会话号对应的会话数量,并根据会话数量确定二层业务的状态是否异常。
二层业务包括PPPOE业务协议和DHCP业务协议,以及其它包含ID字段以唯一定义一个协议完成过程的业务,其中,二层业务为数据链路层。获取二层业务的会话号,通过该会 话号来确定该会话号对应的会话数量,例如,统计该会话号的数量,将统计的数量作为会话数量,将该会话数量与预置阈值进行对比,从而确定二层业务的状态是否异常。
在一示例性实施例中,该二层业务为PPPOE业务协议,PPPOE业务协议有两个不同的阶段:发现阶段和PPP会话阶段。当一个主机想开始一个PPPOE会话,它必须首先进行发现阶段以识别对端的物理地址,如,以太网MAC地址,并建立一个会话号,如,PPPOE SESSION_ID。在发现阶段,基于网络的拓扑,客户端可以发现多个服务器,其中,客户端包括主机,服务器包括接入集中器。发现阶段允许主机发现所有的接入集中器,然后选择一个。当发现阶段成功完成,主机和选择的接入集中器都有了他们在以太网上建立链接控制协议点对点传输协议(POINT TO POINT PROTROL,PPP)连接的信息。直到PPP会话建立,发现阶段一直保持无状态的状态。一旦PPP会话建立,主机和接入集中器都必须为PPP虚接口分配资源。PPPOE帧格式中定义了SESSION_ID域(16比特),网络顺序无符号的值。该值在给定的PPP会话中为常量,它与源地址、目的地址一起定义了一个PPP会话。当PPPOE重新建立时,该SESSION_ID会重新分配,也即SESSION_ID会唯一定义一次PPPOE会话。
或者,该二层业务协议为DHCP业务协议,DHCP的前身是引导程序协议(Bootstrap Protocol BOOTP)。DHCP本身是一种动态主机IP配置协议,从两个方式上扩充了BOOTP:1)DHCP可使计算机用一个消息获取它所需要的所有配置信息即传送配置信息的协议,2)DHCP允许计算机快速动态的获取IP地址、即动态分配IP地址的机制。DHCP使用BOOTP的报文格式但修改了一些字段的内容和含义,其中“事务ID(Transaction ID)”,是CLIENT设备每次发送DHCP请求报文时选择的随机数用来匹配SERVER的响应报文是对哪个请求报文的响应,CLIENT会丢弃事务ID不匹配的响应报文。当DHCP重启获取IP时,其事务ID也是唯一的,也即事务ID可唯一定义一次DHCP交互过程。
在一示例性实施例中,确定二层业务的会话数数量包括:检测到特定二层业务的协议报文,获取协议报文中的会话号;根据会话号和之前记录的会话号,确定会话号的会话数量。
检测到二层业务的协议报文,提取该协议报文中记录的会话号,将该会话号与之前记录的会话号进行比对,确定该会话号与之前记录的会话号是否一致,若该会话号与之前记录的会话号不一致,则确定该会话号的会话数量,其中,该会话号的数量为有效的会话号数量,例如,PPPOE协议中的非零的会话号,如SessionID=!0x0000等。记录每一种二层业务的协议报文中的会话号,并记录该会话号的会话数量N。例如,检测到二层业务的协议报文中的会话号为初始化会话号时,设置该会话号的初始化会话数量N为0。当获取到的会话号与之前记录的会话号一致,则确定该会话号的会话数量为N+1。
在一示例性实施例中,当二层业务为PPPOE业务协议时,获取确认分组报文 (PPPoEActive Discovery Session-confirmation,PADS报文)中记录的Session ID。通过访问控制列表(Access Control List,ACL)或其它提报规则识别协议的以太网类型=0x8863,CODE=0x65的PADS报文,并根据报文格式识别并记录Session ID。其中,检测PADS报文包括如图2所示,PPPOE业务的发现阶段有包括后述S201至S204四个步骤,当此发现阶段完成后,通信的PPPOE CLIENT(PPPOE客户端)和PPPOE SERVER(PPPOE服务端)获取PPPOE SESSION_ID和以太网地址,PPPOE SESSION_ID和以太网地址一起唯一定义PPPOE会话。S201、PPPOE客户端广播一个PPPOE发起分组报文PPPOE Active Discovery Initiiation(CODE=0x09,会话ID(SESSION-ID)=0x0000),简称PADI报文。S202、一个或多个PPPOE服务端发送PPPOE给予分组报文PPPOE Active Discovery Offer(CODE=0x07,会话ID(SESSION-ID)=0x0000),简称PADO报文。S203、PPPOE客户端发送单播会话请求分组报文PPPOE Active Discovery Request(CODE=0x19,会话ID(SESSION-ID)=0x0000),简称PADR报文。S204、对应的PPPOE服务端发送一个确认分组报文PPPOE Active Discovery Session-confirmation(CODE=0x65,会话ID(SESSION ID)产生一个唯一的PPPOE会话标识码),简称PADS报文。
或者,当二层业务为DHCP业务协议时,获取地址确认报文(DHCP Acknowledgement,DHCP ACK报文)中的Transaction ID。通过ACL或其它提报规则识别协议的端口号=67/68,MESSAGE TYPE=0x05的地址确认报文,并根据报文格式识别并记录Transaction ID。检测DHCP ACK报文包括如图3所示,DHCP业务请求IP地址的过程包括如下步骤S301至S304。S301、DHCP CLIENT(DHCP客户端)发送DHCP DISCOVER广播包(Message Type=0x01)在网络中寻找DHCP SERVER(DHCP服务端),其中,DISCOVER为请求广播包;DHCP客户端发起一次请求时选择一个随机数作为“事务ID(Transaction ID)”,用来标识一次地址请求过程。S302、DHCP服务端向DHCP客户端发送DHCP OFFER单播数据包(Message Type=0x02),含IP地址、MAC地址、域名信息以及地址租期。S303、DHCP客户端发送DHCP REQUEST广播包(Message Type=0x03),正式向对应的DHCP服务端请求分配已提供的IP地址。S304、DHCP服务器向DHCP客户端发送DHCP ACK报文(Message Type=0x05),确认DHCP客户端的请求。DHCP客户端收到此DHCP ACK报文后,才真正获得了IP地址与相关配置信息,在整个DHCP地址请求过程中Transaction ID保持不变。
在一示例性实施例中,根据会话数量确定二层业务的状态是否异常,包括:确定会话号的第一预置阈值;若会话数量大于第一预置阈值,则确定二层业务的状态异常。
预先设置一个阈值,将该阈值确定为会话号对应的第一预置阈值,并将还第一预置阈值与该会话号对应的会话数量进行比对。若该会话数量大于第一预置阈值,则确定该二层业务的状态异常。在一示例性实施例中,该二层业务为PPPOE业务时,获取SESSION ID的会话 数量,将SESSION ID的会话数量与第一预置阈值进行比对,若SESSION ID的会话数量大于第一预置阈值,则确定该PPPOE业务的状态异常。或者,该二层业务为DHCP业务时,获取Transaction ID的会话数量,将该Transaction ID的会话数量与第一预置阈值进行比对,若Transaction ID的会话数量大于第一预置阈值,则确定该DHCP业务的状态异常。
确定会话号的第一预置阈值的方式还包括:获取二层业务的协议报文中影响业务协议交互的参数,该影响业务协议交互的参数包括光网络单元(Optical Network Unit,ONU)状态变化数量、对应业务虚拟局域网(Virtual Local Area Network,VLAN)内MAC地址数量变化等。通过该影响业务协议交互的参数确定该二层业务的会话号对应的第一预置阈值。在一示例性实施例中,通讯设备以物理端口或逻辑端口为单位,其中,该物理端口或逻辑端口包括光线路终端(Optical Line Terminal,OLT)、槽位、无源光纤网络口(Passive Optical Network,PON口)、光网络单元口(Optical Network Unit,ONU口)等。启动第一定时器,在一定周期内根据物理或逻辑端口为单位基于第一预置阈值判断业务是否正常,包括:提取对应接口的当前会话数量,当会话数量小于或等于第一预置阈值时,确定对应接口下业务正常,当会话量大于第一预置阈值时,确定对应接口下业务异常。
当通讯设备的物理端口或逻辑端口为ONU口时,获取第一预置周期内ONU接口下对应平均业务MAC地址变化数与平均ONU状态变化数,通过该平均业务MAC地址变化数与平均ONU状态变化数得到第一预置周期的每个周期对应的阈值A1,将该A1作为ONU口对应的第一预置阈值。例如,在获取到平均业务MAC地址变化数和平均ONU状态变化数时,通过第一阈值计算式:阈值A1=系数1×(平均业务MAC地址变化数+平均ONU状态变化数),得到阈值A1,其中,系数1为定量,该系数1为对应接口下MAC地址与ONU数量与其表征的特定协议数之间的比例关系。获取平均业务MAC地址变化数包括,获取第一预置周期的每个周期内ONU接口下MAC地址变化数,根据该每个周期内ONU接口下MAC地址变化数,得到第一预置周期的每个周期的平均业务MAC地址变化数。例如,获取第一预置周期的周期数量和第一预置周期的每个周期内ONU接口下MAC地址变化数,通过平均业务MAC地址变化数计算式:其中平均业务MAC地址变化数=每个周期内ONU接口下MAC地址变化数×周期数量/提取策略启动时长,其中,周期数量为第一预置周期的周期数量,提取策略启动时长为定量,该提取策略启动时长为在提取策略启动到当前的时间,并是第一预置周期的整数倍。获取平均ONU状态变化数包括,获取第一预置周期的每个周期的ONU状态变化次数,将每个周期的ONU状态变化次数相加,得到第一预置周期的ONU状态变化总次数,根据该第一预置周期的ONU状态变化总次数以及第一预置周期的周期数量,得到平均ONU状态变化次数。例如,获取第一预置周期的ONU状态变化总次数以及第一预置周期的周期数量,通过平均ONU状态变化次数计算式:平均ONU状态变化数=ONU状态变化总次 数×周期数量/提取策略启动时长,其中,周期数量为第一预置周期的周期数量,提取策略启动时长为定量。当通过ONU口启动第一定时器A1时,在第一定时器A1超时时,提取第一定时器A1中记录的ONU口和ONU索引对应的会话数量。将获取到的会话数量与ONU口对应的阈值A1进行比对,若会话数量小于或等于阈值A1,则确定该ONU口对应的ONU业务正常;若会话数量大于阈值A1,则确定该ONU口对应的ONU业务异常。
或者,通讯设备的物理端口或逻辑端口为PON口,获取第二预置周期内PON口下PON口状态变化次数、ONU状态变化数量、对应业务内MAC地址数量以及ONU在线数量,根据PON口状态变化次数、ONU状态变化数量、对应业务内MAC地址数量以及ONU在线数量,得到第二预置周期的每个周期对应的阈值A2,将该A2作为PON口对应的第一预置阈值。例如,获取PON口状态变化次数、ONU状态变化数量、对应业务内MAC地址数量以及ONU在线数量,根据PON口状态变化次数、ONU状态变化数量、对应业务内MAC地址数量以及ONU在线数量,根据第一预置阈值计算式:阈值A2=系数2×(PON状态变化次数×ONU在线数量+平均业务MAC地址变化数+平均ONU状态变换数),其中,系数2为定量,该系数2为对应接口下MAC地址与ONU数量与其表征的特定协议数之间的比例关系。获取平均业务MAC地址变化数包括,获取第二预置周期的每个周期内PON口下MAC地址变化数,根据该每个周期内PON口下MAC地址变化数,得到第二预置周期的每个周期的平均业务MAC地址变化数。例如,获取第二预置周期的周期数量和第二预置周期的每个周期内PON口下MAC地址变化数,通过平均业务MAC地址变化数计算式:其中平均业务MAC地址变化数=每个周期内PON口下MAC地址变化数×周期数量/提取策略启动时长,其中,周期数量为第二预置周期的周期数量,提取策略启动时长为定量,该提取策略启动时长指在提取策略启动到当前的时间,并是第二预置周期的整数倍。获取平均ONU状态变化数包括,获取第二预置周期的每个周期的ONU状态变化次数,将每个周期的ONU状态变化次数相加,得到第二预置周期的ONU状态变化总次数,根据该第二预置周期的ONU状态变化总次数以及第二预置周期的周期数量,得到平均ONU状态变化次数。
例如,获取第二预置周期的ONU状态变化总次数以及第二预置周期的周期数量,通过平均ONU状态变化次数计算式:平均ONU状态变化数=ONU状态变化总次数×周期数量/提取策略启动时长,其中,周期数量为第二预置周期的周期数量,提取策略启动时长为定量,该提取策略启动时长指在提取策略启动到当前的时间,并是第二预置周期的整数倍。当通过PON口启动第一定时器A2时,在第一定时器A2超时时,提取第一定时器A2中记录的PON口下的会话数量。将获取到的会话数量与PON口对应的阈值A2进行比对,若会话数量小于或等于阈值A2,则确定该PON口对应的PON业务正常;若会话数量大于阈值A2,则确定该PON口对应的PON业务异常。
或者,通讯设备的物理端口或逻辑端口为PON线卡,获取第三预置周期内PON线卡下所有PON口对应的相关参数的总和为SUM(阈值A2),其中,各个PON口对应的相关参数不相同,得到第三预置周期的每个周期对应的阈值A3,将该A3作为PON线卡对应的第一预置阈值。例如,获取PON线卡下所有PON口对应的阈值A2以及PON口数量,根据计算式阈值A3=系数3×SUM(阈值A2),其中,SUM(阈值A2)为PON线卡下所有PON口对应相关参数的总和,其中,各个PON口对应的相关参数不相同,系数3为定量,该系数3为对应接口下MAC地址与ONU数量与其表征的特定协议数之间的比例关系。当通过PON线卡启动第一定时器A3时,在第一定时器A3超时时,提取第一定时器A3中记录的PON线卡下的会话数量。将获取到的会话数量与PON线卡对应的阈值A3进行比对,若会话数量小于或等于阈值A3,则确定该PON线卡对应的PON线卡业务正常;若会话数量大于阈值A3,则确定该PON线卡对应的PON线卡业务异常。
或者,通讯设备的物理端口或逻辑端口为OLT,获取第三预置周期内所有PON线卡对应相关参数的总和的SUM(阈值A3),其中,各个PON线卡对应相关参数不同,得到第四预置周期的每个周期对应的阈值A4,将该A4作为OLT对应的第一预置阈值。例如,所有PON线卡对应相关参数的总和的阈值A3以及PON线卡数量,根据计算式阈值A4=系数4×SUM(阈值A3),其中系数4为定量,该系数4为对应接口下MAC地址与ONU数量与其表征的特定协议数之间的比例关系。SUM(阈值A3)为各PON线卡对应相关参数的总和,其中,各个PON线卡对应相关参数不同。当通过OLT启动第一定时器A4时,在第一定时器A4超时时,提取第一定时器A4中记录的OLT对应的会话数量。将获取到的会话数量与OLT对应的阈值A4进行比对,若会话数量小于或等于阈值A4,则确定该OLT对应的OLT业务正常;若会话数量大于阈值A4,则确定该OLT对应的OLT业务异常。
步骤S120:若确定二层业务的状态异常,则发送异常警告信息。
若确定该二层业务的状态异常,则发送异常警告信息,其中,该异常警告信息包括文字、图像等。示范例包括该二层业务为PPPOE业务,在确定PPPOE业务的状态异常时,发送包含PPPOE业务的异常警告信息,或者,该二层业务为DHCP业务,在确定DHCP业务的状态异常时,发送包含DHCP业务的异常警告信息。或者,PPPOE业务或DHCP业务包括业务涉及的物理端口或逻辑端口,该物理端口或逻辑端口包括OLT,该OLT包括多个PON线卡,该PON线卡包括多个PON,该PON接入多个ONU,当确定ONU业务异常时,发送包含ONU业务的异常警告信息;或者,当确定PON业务异常时,发送包含PON业务的异常警告信息;或者,当确定PON线卡业务异常时,发送包含PON线卡业务的异常警告信息;或者,当确定OLT业务异常时,发送包含OLT业务的异常警告信息。
请参照图4,图4为本公开提供的另一种二层业务状态检测方法的示意流程图,包括如 下步骤S410和S420。
步骤S410:获取二层业务的协议交互信息。
当二层业务为PPPOE业务或DHCP业务时,获取PPPOE业务对应的物理端口或逻辑接口记录的协议交互信息,或获取DHCP业务对应的物理端口或逻辑接口记录的协议交互信息。
步骤S420:根据协议交互信息和会话数量,确定二层业务的状态异常类型。
当获取到协议交互信息时,根据获取到的协议交互信息和会话数量,确定PPPOE业务协议或DHCP业务协议的状态异常类型。例如,当协议交互信息中的协议交互协议起始消息个数与会话数的差值大于第二预置阈值,确定PPPOE业务协议或DHCP业务协议涉及的物理或逻辑端口对该协议业务的承载转发有问题;或者,当协议交互协议起始消息个数与会话数的差值小于等于第二阈值,确定PPPOE业务协议或DHCP业务协议涉及的物理或逻辑端口对该协议业务承载正常,异常类型是物理或逻辑端口以外的模块处理或或物理端口/逻辑端口对应的终端、链路或外设备导致的。
在一示例性实施例中,协议交互信息包括协议交互起始协议消息个数,根据协议交互信息和会话数量,确定二层业务的状态异常类型,包括:确定协议交互起始协议消息个数与会话数量之间的差异值,以及确定二层业务的第二预置阈值;若差异值大于第二预置阈值,则确定该物理或逻辑端口承载的二层业务的状态异常类型为业务交互异常;若差异值小于或等于第二预置阈值,则确定该物理或逻辑端口承载的二层业务交互正常,业务异常类型为该物理端口或逻辑端口相关的软硬件转发模块或物理端口/逻辑端口对应的终端、链路或外设备异常导致。
在一示例性实施例中,获取协议交互信息中的协议交互起始协议消息个数和对应的会话数量,根据该协议交互起始协议消息个数和对应的会话数量,确定协议交互起始协议消息个数和对应的会话数量之间的差异值。确定二层业务的第二预置阈值,包括:启动第二定时器,通过该第二定时器确定对应的第二预置阈值。将协议交互起始协议消息个数和对应的会话数量之间的差异值与第二预置阈值进行比对,确定逻辑端口或物理端口的业务是否异常。若该差异值大于第二预置阈值,则确定该物理或逻辑端口承载的二层业务的状态异常类型为业务交互异常;若差异值小于或等于第二预置阈值,则确定该物理或逻辑端口承载的二层业务交互正常,业务的状态异常类型为物理端口或逻辑端口对应的终端、链路或外设异常。例如,对于PPPOE协议,在一定周期内根据物理或逻辑端口为单位分别记录协议交互信息中PADI、PADO、PADR、PADS消息的个数,以及会话(Session ID)数。比较周期内PADI数与Session ID数的关系,根据第二预置阈值,判断该物理或逻辑端口的业务是否正常;对于DHCP协议,在一定周期内根据物理或逻辑端口为单位分别记录、DHCP DISCOVER、DHCP OFFER、DHCP  REQUEST、DHCP ACK消息的个数,以及会话(Transaction ID)数。比较周期内DHCP DISCOVER数与Transaction ID数的关系,根据第二预置阈值,判断该物理或逻辑端口的业务是否正常。
在一示例性实施例中,当ONU业务异常时,通过ONU口启用第二定时器B1,通过该第二定时器B1确定第二预置阈值B1。通过ONU口记录的协议交互信息中的协议交互起始协议消息个数,确定协议交互起始协议消息个数与会话数量之间的差异值。将该差异值与第二预置阈值B1进行比对,若该差异值小于或等于第二预置阈值B1,则确定该ONU业务异常的类型为业务交互异常,确定该ONU业务存在消息交互失败原因导致的业务交互异常。若该差异值大于第二预置阈值B1,则确定该ONU业务正常,并确定该ONU口对应的ONU终端异常。
或者,当PON业务异常时,通过PON口第二启用定时器B2,通过该第二定时器B2确定第二预置阈值B2。通过PON口记录的协议交互信息中的协议交互起始协议消息个数,确定协议交互起始协议消息个数与会话数量之间的差异值。将该差异值与第二预置阈值B2进行比对,若该差异值小于或等于第二预置阈值B2,则确定该PON业务异常的类型为业务交互异常,确定该PON业务存在消息交互失败原因导致的业务交互异常。若该差异值大于第二预置阈值B2,则确定该PON业务正常,并确定该PON口对应的ONU终端或链路异常。
或者,当PON线卡业务异常时,通过PON线卡第二启用定时器B3,通过该第二定时器B3确定第二预置阈值B3。通过PON线卡记录的协议交互信息中的协议交互起始协议消息个数,确定协议交互起始协议消息个数与会话数量之间的差异值。将该差异值与第二预置阈值B3进行比对,若该差异值小于或等于第二预置阈值B3,则确定该PON线卡业务异常的类型为业务交互异常,确定该PON线卡业务存在消息交互失败原因导致的业务交互异常。若该差异值大于第二预置阈值B3,则确定该PON线卡业务正常,并确定该PON线卡对应的存在共性的转发模块异常。
或者,当OLT业务异常时,通过OLT第二启用定时器B4,通过该第二定时器B4确定第二预置阈值B4。通过OLT记录的协议交互信息中的协议交互起始协议消息个数,确定协议交互起始协议消息个数与会话数量之间的差异值。将该差异值与第二预置阈值B4进行比对,若该差异值小于或等于第二预置阈值B4,则确定该OLT业务异常的类型为业务交互异常,确定该OLT业务存在消息交互失败原因导致的业务交互异常。若该差异值大于第二预置阈值B4,则确定该OLT业务正常,并确定该OLT对应的外设备异常。
在一示例性实施例中,业务交互异常包括报文异常丢包,报文异常丢包包括上行报文异常丢包和下行报文异常丢包;确定二层业务的状态异常类型为业务交互异常,包括:获取协 议交互信息中相邻的上行报文数量和下行报文数量;根据上行报文数量和下行报文数量,确定二层业务的报文异常丢包是上行报文异常丢包,还是下行报文异常丢包。
在一示例性实施例中,获取协议交互信息中相邻的上行报文信息和下行报文信息,根据获取到的上行报文信息和下行报文信息,确定该二层业务的业务交互异常是否为报文异常丢失。在获取到相邻的上行报文信息中的上行报文数量和下行报文信息中的下行报文数量,通过比对上行报文数量和下行报文数量,确定是上行报文异常丢包还是下行报文异常丢包。其中,上行报文数量为协议交互信息相邻的上行报文个数,下行报文数量为协议交互信息相邻的下行报文个数。例如,分别比较PPPOE协议交互报文中的PADI与PADO报文个数差,PADO报文与PADR报文个数差,PADR报文与PADS报文个数差,判断找出差值最大的一组报文,且该组报文中PADI或PADR报文数量较少,则判断上行报文丢包;该组报文中PADO或PADS报文数量较少,则判断为下行报文丢包。
或者,分别比较DHCP协议交互报文中的DCHP DISCOVERY与DCHP OFFER报文个数差,DHCP OFFER与DHCP REQUEST报文个数差,DHCP REQUEST与DHCP ACK报文个数差,判断找出差值最大的一组报文,且该组报文中DCHP DISCOVERY或DCHP REQUEST报文较少,则判断上行报文丢包;该组报文中DCHP OFFER或DHCP ACK报文较少,则判断下行报文丢包。
当确定是ONU业务异常的业务交互异常时,获取ONU口对应的协议交互信息中相邻的上行报文数量和下行报文数量,将上行报文数量与下行报文数量进行比对。若下行报文数量大于上行报文数量,则判断为ONU上行报文异常丢包;上行消息数量大于下行报文数量,则判断为ONU下行报文异常丢包。
或者,当确定是PON业务异常的业务交互异常时,获取PON口对应的协议交互信息中相邻的上行报文数量和下行报文数量,将上行报文数量与下行报文数量进行比对。若下行报文数量大于上行报文数量,则判断为PON上行报文异常丢包;上行消息数量大于下行报文数量,则判断为PON下行报文异常丢包。
或者,当确定是PON线卡业务异常的业务交互异常时,获取PON线卡对应的协议交互信息中相邻的上行报文数量和下行报文数量,将上行报文数量与下行报文数量进行比对。若下行报文数量大于上行报文数量,则判断为PON线卡上行报文异常丢包;上行消息数量大于下行报文数量,则判断为PON线卡下行报文异常丢包。
或者,当确定是OLT业务异常的业务交互异常时,获取OLT对应的协议交互信息中相邻的上行报文数量和下行报文数量,将上行报文数量与下行报文数量进行比对。若下行报文数量大于上行报文数量,则判断为OLT上行报文异常丢包;上行消息数量大于下行报文数量, 则判断为OLT下行报文异常丢包。
在本公开中,通过业务的会话号的会话数量确定业务的状态是否异常,再通过物理端口或逻辑端口记录的协议交互信息确定业务异常的类型以及导致业务异常的原因。从而通过监控二层协议交互中的会话号变化与数量,实现对二层协议交的判断,并结合协议交互报文的数量比对对故障的定性与判断,从而实现对点对多点网络设备中的二层业务状态的有效检测与高效定位,且达到检测成本低、兼容性高的效果。
请参阅图5,图5是本公开提供的一种通讯设备的结构示意性框图。
该通讯设备包括二层通讯设备,该二层通讯设备包括PON OLT设备,PON OLT设备包括OLT(Optical Line Terminal光线路终端)、ODN(Optical Distribution Network无源光器件的光分配网)、ONU(ONT Optical Network Unit光网络单元,或Optical Network Terminal光网络终端),其中,ONU的数量可以为多个。
在一示例性实施例中,基站还包括处理器、存储器,存储器配置为存储计算机程序。
处理器配置为执行计算机程序并在执行计算机程序时实现本公开提供的前述二层业务状态检测方法。
应当理解的是,处理器可以是中央处理单元(Central Processing Unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。其中,通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
本公开中还提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时,使处理器实现本公开提供的任一项二层业务状态检测方法。
本公开公开了一种二层业务状态检测方法、通讯设备和存储介质,通过确定二层业务的会话号对应的会话数量,并根据会话数量确定二层业务的状态是否异常;若确定二层业务的状态异常,则发送异常警告信息,从而通过监控二层协议交互中的会话号变化与数量,实现对二层协议交互的判断,并结合协议交互报文的数量比对对故障的定性与判断,从而实现对点对多点网络设备中的二层业务状态的有效检测与高效定位,且达到检测成本低、兼容性高的效果。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些物理组件或 所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读存储介质上,计算机可读存储介质可以包括计算机可读存储介质(或非暂时性介质)和通信介质(或暂时性介质)。
如本领域普通技术人员公知的,术语计算机可读存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机可读存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。
在一示例性实施例中,计算机可读存储介质可以是前述实施例的电子设备的内部存储单元,例如电子设备的硬盘或内存。计算机可读存储介质也可以是电子设备的外部存储设备,例如电子设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。
前述各实施例提供的电子设备和计算机可读存储介质,通过将获取的人工智能模型进行合约化,得到对应的智能合约,并将智能合约部署在区块链中。本公开通过将人工智能模型转换为智能合约,从而可以平滑得将该智能合约部署到区块链网络中,完成人工智能模型部署到区块链上的智能合约中,从而保证数据推理过程的自动化,全过程可追溯、可验证,同时保证双方或多方用户的数据、模型及交易的安全。
以上仅为本公开的具体实施方式,但本公开的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本公开揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本公开的保护范围之内。因此,本公开的保护范围应以权利要求的保护范围为准。

Claims (10)

  1. 一种二层业务状态检测方法,所述方法包括:
    确定二层业务的会话号对应的会话数量,并根据所述会话数量确定所述二层业务的状态是否异常;
    若确定所述二层业务的状态异常,则发送异常警告信息。
  2. 根据权利要求1所述的二层业务状态检测方法,其中,所述根据所述会话数量确定所述二层业务的状态是否异常,包括:
    确定所述会话号的第一预置阈值;
    若所述会话数量大于所述第一预置阈值,则确定所述二层业务的状态异常。
  3. 根据权利要求2所述的二层业务状态检测方法,其中,所述确定所述会话号的第一预置阈值,包括:
    获取所述二层业务的业务协议交互参数,所述业务协议交互参数包括业务MAC地址变化数和ONU状态变化数;
    根据所述业务协议交互参数,确定所述会话号的第一预置阈值。
  4. 根据权利要求1所述的二层业务状态检测方法,其中,所述若确定所述二层业务的状态异常之后,还包括:
    获取所述二层业务的协议交互信息;
    根据所述协议交互信息和所述会话数量,确定所述二层业务的状态异常类型。
  5. 根据权利要求4所述的二层业务状态检测方法,其中,所述协议交互信息包括协议交互起始协议消息个数,所述根据所述协议交互信息和所述会话数量,确定所述二层业务的状态异常类型,包括:
    确定所述协议交互起始协议消息个数与所述会话数量之间的差异值,以及确定所述二层业务的第二预置阈值;
    若所述差异值大于所述第二预置阈值,则确定所述二层业务的状态异常类型为业务交互异常;
    若所述差异值小于或等于所述第二预置阈值,则确定所述二层业务的状态异常类型为物理端口/逻辑端口相关的软硬件转发模块或物理端口/逻辑端口对应的终端、链路或外设备异常。
  6. 根据权利要求5所述的二层业务状态检测方法,其中,所述业务交互异常包括报文异常丢包,所述报文异常丢包包括上行报文异常丢包和下行报文异常丢包;
    所述确定所述二层业务的状态异常类型为所述业务交互异常,包括:
    获取所述协议交互信息中相邻的上行报文数量和下行报文数量;
    根据所述上行报文数量和下行报文数量,确定所述二层业务的报文异常丢包是上行报文异常丢包,还是下行报文异常丢包。
  7. 根据权利要求4所述的二层业务状态检测方法,其中,不同的所述状态异常类型对应不同的异常警告信息,所述发送异常警告信息,包括:
    根据所述状态异常类型确定对应的异常警告信息,并发送所述对应的异常警告信息。
  8. 根据权利要求1所述的二层业务状态检测方法,其中,所述确定二层业务的会话数数量包括:
    检测到二层业务的协议报文,获取所述协议报文中的会话号;
    根据所述会话号和之前记录的会话号,确定所述会话号的会话数量。
  9. 一种通讯设备,包括存储器和处理器,其中,所述存储器配置为存储计算机程序;
    所述处理器,配置为执行所述计算机程序并在执行所述计算机程序时实现如权利要求1至8中任一项所述的二层业务状态检测方法的步骤。
  10. 一种计算机可读存储介质,用于计算机可读存储,其中,所述存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现如权利要求1至8中任一项所述的二层业务状态检测方法的步骤。
PCT/CN2021/120393 2020-09-27 2021-09-24 二层业务状态检测方法、通讯设备和存储介质 WO2022063242A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011034818.7 2020-09-27
CN202011034818.7A CN114363223A (zh) 2020-09-27 2020-09-27 二层业务状态检测方法、通讯设备和存储介质

Publications (1)

Publication Number Publication Date
WO2022063242A1 true WO2022063242A1 (zh) 2022-03-31

Family

ID=80844959

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/120393 WO2022063242A1 (zh) 2020-09-27 2021-09-24 二层业务状态检测方法、通讯设备和存储介质

Country Status (2)

Country Link
CN (1) CN114363223A (zh)
WO (1) WO2022063242A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118781A (zh) * 2022-06-27 2022-09-27 平安银行股份有限公司 业务状态的处理方法、装置、电子设备及存储介质

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320585A (zh) * 2014-07-08 2016-02-10 北京启明星辰信息安全技术有限公司 一种实现应用故障诊断的方法及装置
CN109981323A (zh) * 2017-12-28 2019-07-05 华为技术有限公司 一种检测数据链路层组播路径状态的方法和网络设备

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105320585A (zh) * 2014-07-08 2016-02-10 北京启明星辰信息安全技术有限公司 一种实现应用故障诊断的方法及装置
CN109981323A (zh) * 2017-12-28 2019-07-05 华为技术有限公司 一种检测数据链路层组播路径状态的方法和网络设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115118781A (zh) * 2022-06-27 2022-09-27 平安银行股份有限公司 业务状态的处理方法、装置、电子设备及存储介质
CN115118781B (zh) * 2022-06-27 2023-05-26 平安银行股份有限公司 业务状态的处理方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN114363223A (zh) 2022-04-15

Similar Documents

Publication Publication Date Title
US10122679B2 (en) Method, relay agent, and system for acquiring internet protocol address in network
US7929452B2 (en) Internet protocol (IP) address sharing and platform dynamic host configuration protocol (DHCP) mediator
US8281015B2 (en) Automatic detection and establishment of network connection
US9883010B2 (en) Method, apparatus, device and system for generating DHCP snooping binding table
WO2014169804A1 (zh) 公共业务实体注册方法和系统
US11405314B2 (en) Packet processing method and apparatus
CN101222354A (zh) 一种智能终端管理方法
CN108712485A (zh) 一种物联网设备的资源订阅方法和装置
US20100325295A1 (en) Communication apparatus
CN108667672A (zh) 一种lan接口与wan接口的自动适配方法及路由器
CN110011941B (zh) 一种报文转发方法及设备
WO2022063242A1 (zh) 二层业务状态检测方法、通讯设备和存储介质
WO2017080335A1 (zh) 一种基于pppoe网络的拨号方法、拨号系统及路由器
CN107896182B (zh) 报文转发方法及装置
WO2017045106A1 (zh) 基于光网络系统的通信方法与设备
US20140244726A1 (en) Assignment of Point-to-Point Over Ethernet (PPPoE) Session IDs
CN106131177B (zh) 一种报文处理方法及装置
US8615591B2 (en) Termination of a communication session between a client and a server
CN111225080B (zh) 一种网关下挂设备信息的获取方法
EP2574093A1 (en) Method and system for managing and controlling wired terminal, and access server
EP3407553B1 (en) Pppoe message transmission method and pppoe server
CN100596071C (zh) 一种通过dhcp扩展实现会话控制和时长采集的方法
CN107995125B (zh) 一种流量调度方法及装置
CN103392333A (zh) 一种接入网络中的认证方法、设备和系统
CN103856571B (zh) 一种自适应网路连接方法和系统

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 18/08/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21871611

Country of ref document: EP

Kind code of ref document: A1