CN112995811A - Service fulfillment detection method and device and computer readable storage medium - Google Patents

Service fulfillment detection method and device and computer readable storage medium Download PDF

Info

Publication number
CN112995811A
CN112995811A CN202110544454.5A CN202110544454A CN112995811A CN 112995811 A CN112995811 A CN 112995811A CN 202110544454 A CN202110544454 A CN 202110544454A CN 112995811 A CN112995811 A CN 112995811A
Authority
CN
China
Prior art keywords
electronic device
preset time
detection
received
network port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110544454.5A
Other languages
Chinese (zh)
Other versions
CN112995811B (en
Inventor
鄂婉云
杜军
卢方增
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Yangtze Optical Technology Co ltd
Original Assignee
Wuhan Yangtze Optical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Yangtze Optical Technology Co ltd filed Critical Wuhan Yangtze Optical Technology Co ltd
Priority to CN202110544454.5A priority Critical patent/CN112995811B/en
Publication of CN112995811A publication Critical patent/CN112995811A/en
Application granted granted Critical
Publication of CN112995811B publication Critical patent/CN112995811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0067Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects
    • H04Q2011/0083Testing; Monitoring

Abstract

The invention discloses a service fulfillment detection method, a service fulfillment detection device and a computer readable storage medium. The method comprises the following steps: under the condition that the loop detection function of the first electronic device is started, sending an initial detection message to a network port to be detected of the first electronic device, and judging whether a target detection message returned by the network port to be detected can be received within a first preset time; under the condition that the target detection message returned by the network port to be detected can be received within the first preset time, sending the target detection message to second electronic equipment, and judging whether a response message of the second electronic equipment can be received within a second preset time; and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.

Description

Service fulfillment detection method and device and computer readable storage medium
Technical Field
The present invention relates to the field of optical network communication technologies, and in particular, to a method and an apparatus for detecting service provisioning, and a computer-readable storage medium.
Background
In the field of Optical Network communication, a Passive Optical Network (PON) system may be composed of an Optical Line Terminal (OLT) on an office side, an Optical Network Unit (ONU) on a user side, and an Optical Distribution Network (ODN) which is composed of all Passive devices such as an Optical Splitter (Splitter), where the OLT on the office side is generally placed in a machine room, and the ONU on the user side is installed in a user's home or work place. At present, when a user needs to open a certain service, a telecom technician needs to carry a terminal ONU and detection equipment such as a computer/a mobile phone to a place where the user is located to install hardware and configure service opening, and finally needs to use the detection equipment carried by the telecom technician to detect whether the service is normally opened, sometimes, according to different types of the terminal ONU and different service opening, different detection equipment needs to be carried, and in such a detection mode, the telecom technician needs to carry heavy detection equipment, and is complex in operation and long in time consumption, and cannot meet the increasing network service opening requirement.
Disclosure of Invention
In view of the above, the main objective of the present invention is to provide a method, an apparatus, and a computer-readable storage medium for detecting service provisioning, where the method does not require telecommunication technicians to carry heavy detection equipment, and the method is characterized in that an automatic detection program is set in a terminal ONU, so that after the telecommunication technicians complete installation of the terminal ONU and configuration of a certain service, the telecommunication technicians only need to perform simple key operation on the terminal ONU, and complete detection on whether the service is provisioned normally according to the automatic detection program in the terminal ONU, so that the detection is simple, and the method and the apparatus can well meet the increasing network service provisioning requirements.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
in a first aspect, the present invention provides a service provisioning detection method, applied to a first electronic device, where the first electronic device is on a user side in a network communication system, and the method includes:
under the condition that the loop detection function of the first electronic device is started, sending an initial detection message to a network port to be detected of the first electronic device, and judging whether a target detection message returned by the network port to be detected can be received within a first preset time; the target detection message is encapsulated with the port parameters of the network port to be detected;
under the condition that the target detection message returned by the network port to be detected can be received within the first preset time, sending the target detection message to second electronic equipment, and judging whether a response message of the second electronic equipment can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic equipment is on the network side in the network communication system;
and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.
In the above aspect, the method further includes:
obtaining a detection instruction, and starting the loop detection function based on the detection instruction;
the detection instruction is obtained when the duration of a switch unit arranged on the first electronic device is touched to meet a preset range.
In the foregoing solution, in a case that it is determined that the target detection packet returned by the network port to be detected is not received within the first preset time, the determining, based on the determination result, whether the user service corresponding to the network port to be detected is enabled includes: and judging that the user service is not opened.
In the foregoing solution, the sending the target detection packet to the second electronic device includes: sending the target detection message to a plurality of second electronic devices;
correspondingly, the determining whether the response message of the second electronic device can be received within the second preset time includes:
and judging whether a corresponding response message of the second electronic equipment can be received within each second preset time.
In the foregoing solution, the determining whether the user service corresponding to the network port to be tested is enabled based on the determination result includes:
judging that the user service is opened under the condition that the judgment result is that the response message of the corresponding second electronic equipment is received within at least one second preset time;
and under the condition that the judgment result is that the corresponding response message of the second electronic equipment is not received in each second preset time, judging that the user service is not opened.
In the above scheme, before the determining that the user service is opened, the method further includes:
analyzing the corresponding response message of the second electronic equipment to obtain an analysis result; the analysis result at least comprises a comparison result of the port parameter and the stored configuration parameter; the stored configuration parameters are determined according to the user service;
and judging that the user service is opened under the condition that the comparison result contained in the analysis result is that the port parameter is consistent with the stored configuration parameter.
In the above aspect, the method further includes:
controlling a status of an indicator light on the first electronic device; the state of the indicator light is used for indicating the operation condition of the first electronic equipment.
In a second aspect, the present invention further provides a service provisioning detection apparatus, applied to a first electronic device, where the first electronic device is on a user side in a network communication system, and the apparatus includes: a sending unit and a judging unit, wherein,
the sending unit is configured to send an initial detection message to a network port to be detected of the sending unit when the loop detection function of the first electronic device is turned on;
the judging unit is used for judging whether a target detection message returned by the network port to be detected can be received within a first preset time; the target detection message is encapsulated with the port parameters of the network port to be detected;
the sending unit is further configured to send the target detection packet to a second electronic device when it is determined that the target detection packet returned by the network port to be detected can be received within the first preset time;
the judging unit is further configured to judge whether a response message of the second electronic device can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic equipment is on the network side in the network communication system; and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.
In the above scheme, the apparatus further includes an obtaining unit, configured to obtain a detection instruction, and start the loop detection function based on the detection instruction; the detection instruction is obtained when the duration of a switch unit arranged on the first electronic device is touched to meet a preset range.
In the foregoing solution, the determining unit is specifically configured to: and under the condition that the target detection message returned by the network port to be detected is not received within the first preset time, judging that the user service is not opened.
In the foregoing solution, the sending unit is configured to send the target detection packet to a plurality of second electronic devices;
the judging unit is configured to judge whether a response message of the corresponding second electronic device can be received within each second preset time.
In the foregoing solution, the determining unit is further configured to: judging that the user service is opened under the condition that the judgment result is that the response message of the corresponding second electronic equipment is received within at least one second preset time; and under the condition that the judgment result is that the corresponding response message of the second electronic equipment is not received in each second preset time, judging that the user service is not opened.
In the above solution, the apparatus further includes an analyzing unit, configured to analyze the response packet of the corresponding second electronic device to obtain an analysis result; the analysis result at least comprises a comparison result of the port parameter and the stored configuration parameter; the stored configuration parameters are determined according to the user service;
the judging unit is further configured to judge that the user service is opened when a comparison result included in the analysis result is that the port parameter is consistent with the stored configuration parameter.
In the above scheme, the apparatus further includes a control unit, configured to control a state of an indicator light on the first electronic device; the state of the indicator light is used for indicating the operation condition of the first electronic equipment.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored; the computer program, when executed by a processor, implements the steps of any of the methods described above.
In a fourth aspect, an embodiment of the present invention provides a service provisioning detection apparatus, where the detection apparatus includes: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of any of the above methods when executing the computer program.
The embodiment of the invention provides a service fulfillment detection method, a service fulfillment detection device and a computer readable storage medium. The method is applied to a first electronic device, wherein the first electronic device is on a user side in a network communication system, and comprises the following steps: under the condition that the loop detection function of the first electronic device is started, sending an initial detection message to a network port to be detected of the first electronic device, and judging whether a target detection message returned by the network port to be detected can be received within a first preset time; the target detection message is encapsulated with the port parameters of the network port to be detected; under the condition that the target detection message returned by the network port to be detected can be received within the first preset time, sending the target detection message to second electronic equipment, and judging whether a response message of the second electronic equipment can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic equipment is on the network side in the network communication system; and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result. According to the detection method provided by the embodiment of the invention, when a telecommunication technician opens a certain service or a plurality of services for a user, the telecommunication technician does not need to carry heavy detection equipment, and the detection method is also provided by the embodiment of the invention through the automatic detection program arranged in the first electronic equipment (such as the terminal ONU).
Drawings
Fig. 1 is a schematic flow chart of a service activation detection method according to an embodiment of the present invention;
fig. 2 is a schematic view of a detection flow for detecting whether a service of a network port to be detected of a first electronic device is opened or not by using the service opening detection method provided in the embodiment of the present invention;
fig. 3 is a schematic structural diagram of a service fulfillment detection apparatus according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another hardware structure of the service activation detection apparatus according to the embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the following describes specific technical solutions of the present invention in further detail with reference to the accompanying drawings in the embodiments of the present invention. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
The present invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a schematic flow chart of a service activation detection method according to an embodiment of the present invention. As shown in fig. 1, the method is applied to a first electronic device, where the first electronic device is on a user side in a network communication system, and includes the specific steps of:
s101: under the condition that the loop detection function of the first electronic device is started, sending an initial detection message to a network port to be detected of the first electronic device, and judging whether a target detection message returned by the network port to be detected can be received within a first preset time; and the target detection message is encapsulated with the port parameters of the network port to be detected.
The network communication system may be an optical network communication system that transmits information based on an optical signal. The first electronic device may be an electronic device in an optical network communication system that provides various broadband services to connected users, for example, the first electronic device may be a terminal ONU installed at a user side in the network communication system, which may also be generally referred to as an optical modem, and may be divided into an active optical network unit and a passive optical network unit. In the passive optical network system, the terminal ONU receives a service transmitted from the OLT through the PON module, and cooperates with the OLT, and the terminal ONU can provide various broadband services to a connected user, such as services of Internet Surfing (Internet surf), Voice over Internet Protocol (VoIP) based on a network Protocol, High Definition Television (HDTV), Video Conference (Video Conference), Internet Protocol Television (IPTV), and the like. The aforementioned user service is also one of these broadband services. According to different types and numbers of service interfaces of the terminal ONU, the terminal ONU can be divided into multiple types, such as a Single subscriber Unit (SFU), a Single Business subscriber Unit (SBU), a Multi-Dwelling Unit (MDU), a Multi-Tenant Unit (MTU), and the like. The terminal ONU can also be used as a Home Gateway Unit (HGU) and is mainly used for external network access, Home automation, Home entertainment, energy consumption control, security and the like.
At present, no matter which type of terminal ONU is, when providing a certain service to a user, a telecom technician needs to carry the terminal ONU and detection devices such as a computer/a mobile phone to a place where the user is located to perform hardware installation and service provisioning configuration, and finally needs to use the detection devices carried by the telecom technician to perform detection on whether the service is normally provisioned. Therefore, the embodiment of the invention provides an automatic detection method for service opening, which automatically detects after a loop detection function in first electronic equipment is opened, is convenient and quick, and is convenient for telecommunication technicians to improve the working efficiency.
Here, the loop detection function may be a detection function that is started inside the first electronic device after a certain service is opened and is correct for port parameter configuration in the network port to be detected. The port parameter may be a Virtual Local Area Network (VLAN) parameter, and different user services need to distinguish respective service data packets according to different VLAN parameters, that is, different VLAN parameters need to be configured in a Network port of the first electronic device to transmit different user service data packets, that is, the port parameter is related to the certain service, for example, the internet surfing service and the IPTV service need to configure different VLAN parameters in the Network port to transmit the two service data packets.
Specifically, the loop detection function may be that a Central Processing Unit (CPU) in the first electronic device sends the initial detection packet to the network port to be detected, and then determines whether a target detection packet returned by the network port to be detected can be received within a first preset time; and the target detection message is encapsulated with the port parameters of the network port to be detected. In actual computer program execution, the LOOP detection function may be implemented by a LOOP function. It should be understood that, when the first electronic device works normally, the CPU of the terminal ONU receives, through the PON module, a service data packet of an open user service transmitted from the OLT and directly transmits the received service data packet to the user terminal through the network port to be tested, or the CPU of the terminal ONU receives, through the network port to be tested, a service data packet of an open user service transmitted from the user terminal and directly transmits the received service data packet to the second electronic device on the network side through the PON module, without transmitting the received service data packet to the CPU of the first electronic device, where the loop detection function is to detect whether the user service is actually opened after completing configuration of opening a certain user service or to detect whether a fault setting occurs in the hardware and the network link of the terminal ONU when the opened user service is suddenly abnormal, and to forward the detected fault setting from the network port of the terminal ONU to the CPU, and the CPU is transmitted to a second electronic device on the network side. It should be noted that the normal operation may refer to a working state in which the terminal ONU provides the user service for the user after the user service is opened. The first preset time may be set artificially according to actual conditions, wherein the subsequent second preset time may also be set artificially according to actual conditions, and the first preset time and the second preset time may be equal or different. The user terminal can be a television, a mobile phone, a computer and other equipment.
Here, the initial detection message may be a ping message, where the ping message at least includes a Media Access Control (MAC) address of the first electronic device and a MAC address of the subsequent second electronic device, where the MAC may also be referred to as a local area network address, and is mainly used to confirm an address of a location of the network device. The Network port to be tested may refer to any port of the first electronic device, which can be configured to provide a certain broadband service to a connected user, for example, the Network port to be tested may be a Local Area Network (LAN) interface on an ONU.
For when and how to turn on a loop detection function in the first electronic device, in some embodiments, the method further comprises:
obtaining a detection instruction, and starting the loop detection function based on the detection instruction;
the detection instruction is obtained when the duration of a switch unit arranged on the first electronic device is touched to meet a preset range.
Here, the switch unit disposed on the first electronic device may be a switch disposed on the first electronic device for turning on a loop detection function, and may have various forms, such as a touch button, a key button, and the like. As an implementation manner, the switch unit may be a RESET unit (RESET) disposed in the first electronic device, and different functions are implemented by setting a touch duration for touching the RESET unit, and specific settings of the switch unit may be as shown in table 1 below. It should be understood that the touch duration defined herein is only for illustration and is not intended to limit the present invention, and the touch duration may be adjusted according to the actual application scenario and the situation of the first electronic device.
TABLE 1
Figure 889503DEST_PATH_IMAGE001
Based on the foregoing table 1, the process of the first electronic device obtaining the detection instruction may be as follows: after a telecom technician or a user presses any time length (for example, 4 s) of the RESET key provided on the first electronic device, where the any time length is in the range of 3-8 s, the CPU of the first electronic device detects that the RESET key is pressed and the pressing time length satisfies the preset range, and generates a detection instruction, that is: the detection instruction is obtained when the duration of the touch control of the switch unit arranged on the first electronic equipment meets a preset range. After the first electronic device generates the detection instruction, a loop detection function can be started based on the detection instruction, and the loop detection function is started by a telecommunication technician after a certain service configuration is completed. Or when the first electronic equipment works normally, the first electronic equipment is abnormal suddenly, and a loop detection function is started by a user.
In an actual application process, in a case that it is determined that the target detection packet returned by the network port to be detected is not received within the first preset time, the determining, based on a determination result, whether a user service corresponding to the network port to be detected is opened includes: and judging that the user service is not opened.
That is to say, the target detection packet with the port parameter returned by the network port to be tested is not received within the first preset time, that is, it indicates that the service related to the port parameter is not really enabled, and at this time, the telecommunication technician needs to check the port parameter of the network port to be tested.
S102: under the condition that the target detection message returned by the network port to be detected can be received within the first preset time, sending the target detection message to second electronic equipment, and judging whether a response message of the second electronic equipment can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic device is on a network side in the network communication system.
It should be noted that, under the condition that the target detection message returned by the network port to be detected can be received within the first preset time, it cannot be directly determined that the user service is opened, the target detection message also needs to be sent to the second electronic device, and it is determined whether a response message of the second electronic device is received within the second preset time, and then it is determined whether the user service is opened according to the determination result. Wherein the second electronic device is installed on a network side in a network communication system, for example, a server in a computer room.
In an actual application process, the sending the target detection packet to the second electronic device may include: sending the target detection message to a plurality of second electronic devices;
correspondingly, the determining whether the response packet of the second electronic device can be received within the second preset time may include:
and judging whether a corresponding response message of the second electronic equipment can be received within each second preset time.
It should be noted that, because the second electronic device may have problems such as a firewall or other networks, in order to ensure the detection efficiency, the target detection packet may be sent to multiple second electronic devices at the same time, and whether a response packet of the corresponding second electronic device can be received within each second preset time is determined, so as to determine whether the user service is enabled. It should be noted that, since the positions of the plurality of second electronic devices may be the same or may be different, the distances from the first electronic device may be the same or may be different, and the transmission lines may also be the same or may be different, the time value of the second preset time corresponding to each second electronic device may be the same or may be different.
For example, assuming that the target detection packet is sent to 2 second electronic devices (a second electronic device a and a second electronic device B) at the same time, it needs to be determined whether the response packet of the second electronic device a can be received within a second preset time a, and it needs to be determined whether the response packet of the second electronic device B can be received within the second preset time B, where the second preset time a is a second preset time corresponding to the second electronic device a; the second preset time B is a second preset time corresponding to the second electronic device B, and the second preset time B may be the same as or different from the second preset time B.
S103: and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.
In some embodiments, in the case of sending the target detection packet to a plurality of second electronic devices, the determining, based on the determination result, whether the user service corresponding to the network port to be detected is enabled includes:
judging that the user service is opened under the condition that the judgment result is that the response message of the corresponding second electronic equipment is received within at least one second preset time;
and under the condition that the judgment result is that the corresponding response message of the second electronic equipment is not received in each second preset time, judging that the user service is not opened.
Here, the meaning to be expressed is: any second electronic device in the plurality of second electronic devices feeds back a response message, and if the first electronic device receives the response message within the corresponding second preset time, the user service is considered to be opened; and if the first electronic equipment does not receive the response message fed back by any second electronic equipment, the user service is considered to be unopened.
As an optional implementation manner, before the determining that the user service is opened, the method further includes:
analyzing the corresponding response message of the second electronic equipment to obtain an analysis result; the analysis result at least comprises a comparison result of the port parameter and the stored configuration parameter; the stored configuration parameters are determined according to the user service;
and judging that the user service is opened under the condition that the comparison result contained in the analysis result is that the port parameter is consistent with the stored configuration parameter.
It should be noted that, in the network transmission, there may be a case of misdelivery, after receiving the response packet, analyzing the response packet to obtain a port parameter included in the response packet, and comparing the port parameter with a stored configuration parameter to obtain a comparison result, determining whether the user service is opened based on the comparison result, and determining that the user service is opened if the comparison result included in the analysis result is that the port parameter is consistent with the stored configuration parameter; and under the condition that the comparison result contained in the analysis result is that the port parameter is inconsistent with the stored configuration parameter, judging that the user service is not opened.
In some embodiments, the method further comprises:
controlling a status of an indicator light on the first electronic device; the state of the indicator light is used for indicating the operation condition of the first electronic equipment.
It should be noted that, since the detection method is automatically operated in the first electronic device, the telecommunication technician is not macroscopically aware of the operation state of the first electronic device, and therefore, the state of the indicator light on the first electronic device can be controlled; the status of the indicator light is used to indicate the operating condition of the first electronic device, for example, a LOSs of Signal (LOS) indicator light and a PON indicator light on the first electronic device both flash every 1 second, which indicates that the operating condition of the first electronic device is that a loop detection function is being turned on and a service is being automatically detected; for another example, the LAN indicator light flashes every 1 second, which indicates that the operation condition of the first electronic device is that loop detection is completed, and the user service is opened and available; for another example, the LAN indicator does not flash, which indicates that the operation state of the first electronic device is that the loop detection is finished, the user service is not turned on, and the like. It should be understood that the status of the indicator light may be set according to actual needs. Therefore, the embodiment of the invention controls the indicator light on the first electronic device to indicate, can visually display the detection result, is convenient for telecommunication technicians or users to know whether the service of the first electronic device is really switched on or not, and improves the working efficiency of the telecommunication technicians.
In an actual application process, if the first electronic device includes a plurality of network ports to be detected, after the loop detection function of the first electronic device is started, each network port to be detected is sequentially detected until the detection of each network port to be detected is completed, and the loop detection function does not need to be repeatedly started. After completing the detection of all network ports to be detected, the first electronic device closes the loop detection function, and recovers the original functions of the related devices in the first electronic device, for example, recovering the original functions of the RESET key and recovering the original functions of the related indicator lights.
Compared with the existing detection mode, the detection method provided by the embodiment of the invention omits the process of carrying a computer/mobile phone/panel connection terminal ONU to detect whether the service is opened, directly sends the message through the terminal ONU to carry out the automatic detection of the service opening, can detect different configurations of different network ports of the first electronic equipment according to requirements, respectively sends the message to each network port, carries out the configuration processing according to the configuration of each port after the message reaches the port, and then loops back to the network side for forwarding, thereby being capable of detecting each network port, improving the service opening efficiency of the terminal ONU, reducing the workload of the telecommunication technical personnel for opening the service of the terminal ONU, and leading the terminal ONU to carry out the automatic detection of whether the service of the network port is normal or not when the terminal ONU is in use, if the automatic detection is finished, the service is normally opened through the state display of the indicator lamp, and then the network problems of the ONU hardware of the terminal and the optical network system are eliminated, so that the abnormal reason can be positioned to appear at the user terminal; if the service opening abnormity is displayed through the state of the indicator lamp, a telecom technician is required to check whether the configuration of the optical network system is correct or not, or whether the hardware of the terminal ONU has problems or not is checked, and by adopting the mode, the positioning of the problems is more facilitated when the ONU is suddenly abnormal, the working efficiency of the telecom technician can be improved, and the door-climbing frequency of the telecom technician can be reduced to a certain extent.
For understanding the embodiment of the present invention, fig. 2 is a schematic diagram of a detection process for detecting whether a service of a network port to be detected of a first electronic device is enabled or not by using the service enabling detection method provided by the embodiment of the present invention. It should be noted that, in the application scenario, the first electronic device is a terminal ONU; the switch unit of loop detection is realized by redefined automatic detection RESET key; sending a target detection message to the two second electronic devices, and based on this, the service provisioning automatic detection process may include:
s201: after completing the operation of opening configuration of a certain user service in a network port to be detected, a telecommunication technician presses a RESET key in the first electronic equipment for a duration meeting a set range, a CPU in the first electronic equipment obtains a detection instruction, and a loop detection function is started based on the detection instruction;
s202: the CPU sends an initial ping message to the network port to be tested and judges whether a target ping message returned by the network port to be tested can be received within a first preset time; the target ping message is packaged with port parameters of the network port to be detected; the port parameter is configured when a certain user service is opened;
s203: the CPU judges that the user service is not opened under the condition that the CPU judges that the target ping message returned by the network port to be tested is not received within the first preset time;
s204: the CPU respectively sends the target ping messages to two second electronic devices under the condition that the CPU judges that the target ping messages returned by the network port to be detected can be received within the first preset time, and judges whether response messages of the corresponding second electronic devices can be received within each second preset time; the response message is the response of the second electronic equipment to the target ping message; the second electronic equipment is on the network side in the network communication system;
s205: the CPU judges whether the user service corresponding to the network port to be detected is opened or not based on a judgment result, and judges that the user service is opened under the condition that the judgment result is that a response message of the corresponding second electronic equipment is received within at least one second preset time; and under the condition that the judgment result is that the corresponding response message of the second electronic equipment is not received in each second preset time, judging that the user service is not opened.
It should be noted that, when the first electronic device has a plurality of network ports to be tested, the foregoing steps S202 to S205 are repeated to sequentially detect other network ports to be tested in the first electronic device. In the whole detection process, the CPU controls the state of an indicator lamp on the first electronic equipment; the state of the indicator light is used for indicating the operation condition of the first electronic equipment. After the detection of all the network ports to be detected is completed, the first electronic device closes the loop detection function, and original functions of related devices in the first electronic device are recovered.
It should be noted that the terms appearing herein have been described in detail above, and are not repeated herein.
The embodiment of the invention provides a service opening detection method, when a telecommunication technician opens a certain service or a plurality of services for a user, the detection method provided by the invention does not need to carry heavy detection equipment, and an automatic detection program arranged in first electronic equipment (such as a terminal ONU) is used, namely the detection method provided by the embodiment of the invention.
Based on the same inventive concept as the foregoing, fig. 3 is a schematic structural diagram of a service provisioning detection apparatus provided in an embodiment of the present invention, where the apparatus 30 is used for a first electronic device, and the first electronic device is on a user side in a network communication system, and includes: a transmitting unit 301 and a judging unit 302, wherein,
the sending unit 301 is configured to send an initial detection packet to a network port to be detected of the sending unit when the loop detection function of the first electronic device is turned on;
the determining unit 302 is configured to determine whether a target detection packet returned by the network port to be detected can be received within a first preset time; the target detection message is encapsulated with the port parameters of the network port to be detected;
the sending unit 301 is further configured to send the target detection packet to a second electronic device when it is determined that the target detection packet returned by the network port to be detected can be received within the first preset time;
the determining unit 302 is further configured to determine whether a response message of the second electronic device can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic equipment is on the network side in the network communication system; and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.
In some embodiments, the apparatus further comprises an obtaining unit configured to obtain a detection instruction, and to turn on the loop detection function based on the detection instruction; the detection instruction is obtained when the duration of a switch unit arranged on the first electronic device is touched to meet a preset range.
In some embodiments, the determining unit 302 is specifically configured to: and under the condition that the target detection message returned by the network port to be detected is not received within the first preset time, judging that the user service is not opened.
In some embodiments, the sending unit 301 is configured to send the target detection packet to a plurality of second electronic devices;
the determining unit 302 is configured to determine whether a response message of the corresponding second electronic device can be received within each second preset time.
In some embodiments, the determining unit 302 is further configured to: judging that the user service is opened under the condition that the judgment result is that the response message of the corresponding second electronic equipment is received within at least one second preset time; and under the condition that the judgment result is that the corresponding response message of the second electronic equipment is not received in each second preset time, judging that the user service is not opened.
In some embodiments, the apparatus further includes an analyzing unit, configured to analyze the response packet of the corresponding second electronic device to obtain an analysis result; the analysis result at least comprises a comparison result of the port parameter and the stored configuration parameter; the stored configuration parameters are determined according to the user service;
the determining unit 302 is further configured to determine that the user service is enabled when a comparison result included in the analysis result is that the port parameter is consistent with the stored configuration parameter.
In some embodiments, the apparatus further comprises a control unit for controlling the status of an indicator light on the first electronic device; the state of the indicator light is used for indicating the operation condition of the first electronic equipment.
It should be noted that the service fulfillment detection apparatus provided in the embodiment of the present invention and the service fulfillment detection method provided in the embodiment of the present invention belong to the same inventive concept, and the meanings of the terms appearing herein have been described in detail in the foregoing, and are not described herein again.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the foregoing method embodiments, and the foregoing storage medium includes: a mobile storage device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The embodiment of the invention also provides a service opening detection device, which comprises: a processor and a memory for storing a computer program capable of running on the processor, wherein the processor is configured to execute the steps of the above-described method embodiments stored in the memory when running the computer program.
Fig. 4 is a schematic diagram of a hardware structure of a service provisioning detection apparatus according to an embodiment of the present invention, where the service provisioning detection apparatus 40 includes: the at least one processor 401 and the memory 402, optionally, the service opening detection apparatus 40 may further include at least one communication interface 403, and the various components in the service opening detection apparatus 40 are coupled together through a bus system 404, and it is understood that the bus system 404 is used to implement connection communication between these components. The bus system 404 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 404 in FIG. 4.
It will be appreciated that the memory 402 can be either volatile memory or nonvolatile memory, and can include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); the magnetic surface storage may be disk storage or tape storage. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static Random Access Memory (SRAM), Synchronous Static Random Access Memory (SSRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic Random Access Memory (SDRAM), Double Data Rate Synchronous Dynamic Random Access Memory (DDRSDRAM), Enhanced Synchronous Dynamic Random Access Memory (ESDRAM), Enhanced Synchronous Dynamic Random Access Memory (Enhanced Synchronous Dynamic Random Access Memory), Synchronous linked Dynamic Random Access Memory (DRAM, Synchronous Link Dynamic Random Access Memory), Direct Memory (DRmb Random Access Memory). The memory 402 described in connection with the embodiments of the invention is intended to comprise, without being limited to, these and any other suitable types of memory.
The memory 402 in the embodiment of the present invention is used to store various types of data to support the operation of the service opening detection apparatus 40. Examples of such data include: any computer program for operating on the service fulfillment detection apparatus 40, such as controlling the implementation of the status of the indicator light on the first electronic device, may be included in the memory 402 for implementing the method of the embodiment of the present invention.
The method disclosed in the above embodiments of the present invention may be applied to the processor 401, or implemented by the processor 401. The processor may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The Processor may be a general purpose Processor, a Digital Signal Processor (DSP), or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The processor may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present invention. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed by the embodiment of the invention can be directly implemented by a hardware decoding processor, or can be implemented by combining hardware and software modules in the decoding processor. The software modules may be located in a storage medium having a memory and a processor reading the information in the memory and combining the hardware to perform the steps of the method.
In an exemplary embodiment, the service opening detection Device 40 may be implemented by one or more Application Specific Integrated Circuits (ASICs), DSPs, Programmable Logic Devices (PLDs), Complex Programmable Logic Devices (CPLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, Micro Controllers (MCUs), microprocessors (microprocessors), or other electronic components, for performing the above method.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms. The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A service provision detection method is applied to a first electronic device, wherein the first electronic device is on a user side in a network communication system, and the method comprises the following steps:
under the condition that the loop detection function of the first electronic device is started, sending an initial detection message to a network port to be detected of the first electronic device, and judging whether a target detection message returned by the network port to be detected can be received within a first preset time; the target detection message is encapsulated with the port parameters of the network port to be detected;
under the condition that the target detection message returned by the network port to be detected can be received within the first preset time, sending the target detection message to second electronic equipment, and judging whether a response message of the second electronic equipment can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic equipment is on the network side in the network communication system;
and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.
2. The method of claim 1, further comprising:
obtaining a detection instruction, and starting the loop detection function based on the detection instruction;
the detection instruction is obtained when the duration of a switch unit arranged on the first electronic device is touched to meet a preset range.
3. The method according to claim 1, wherein in a case that it is determined that the target detection packet returned by the network port to be tested is not received within the first preset time, the determining, based on a determination result, whether a user service corresponding to the network port to be tested is enabled comprises: and judging that the user service is not opened.
4. The method of claim 1, wherein sending the target detection packet to the second electronic device comprises: sending the target detection message to a plurality of second electronic devices;
correspondingly, the determining whether the response message of the second electronic device can be received within the second preset time includes:
and judging whether a corresponding response message of the second electronic equipment can be received within each second preset time.
5. The method according to claim 4, wherein the determining whether the user service corresponding to the network port to be tested is opened based on the determination result comprises:
judging that the user service is opened under the condition that the judgment result is that the response message of the corresponding second electronic equipment is received within at least one second preset time;
and under the condition that the judgment result is that the corresponding response message of the second electronic equipment is not received in each second preset time, judging that the user service is not opened.
6. The method of claim 5, wherein before said determining that the user service is provisioned, the method further comprises:
analyzing the corresponding response message of the second electronic equipment to obtain an analysis result; the analysis result at least comprises a comparison result of the port parameter and the stored configuration parameter; the stored configuration parameters are determined according to the user service;
and judging that the user service is opened under the condition that the comparison result contained in the analysis result is that the port parameter is consistent with the stored configuration parameter.
7. The method of claim 1, further comprising:
controlling a status of an indicator light on the first electronic device; the state of the indicator light is used for indicating the operation condition of the first electronic equipment.
8. A service provision detection apparatus, applied to a first electronic device, where the first electronic device is on a user side in a network communication system, includes: a sending unit and a judging unit, wherein,
the sending unit is configured to send an initial detection message to a network port to be detected of the sending unit when the loop detection function of the first electronic device is turned on;
the judging unit is used for judging whether a target detection message returned by the network port to be detected can be received within a first preset time; the target detection message is encapsulated with the port parameters of the network port to be detected;
the sending unit is further configured to send the target detection packet to a second electronic device when it is determined that the target detection packet returned by the network port to be detected can be received within the first preset time;
the judging unit is further configured to judge whether a response message of the second electronic device can be received within a second preset time; the response message is the response of the second electronic equipment to the target detection message; the second electronic equipment is on the network side in the network communication system; and judging whether the user service corresponding to the network port to be tested is opened or not based on the judgment result.
9. A computer-readable storage medium, characterized in that the readable storage medium has stored thereon a computer program; the computer program when executed by a processor implements the steps of the method of any one of claims 1 to 7.
10. A service provisioning detection apparatus, wherein the detection apparatus comprises: a processor and a memory for storing a computer program operable on the processor, wherein the processor is operable to perform the steps of the method of any of claims 1 to 7 when the computer program is executed.
CN202110544454.5A 2021-05-19 2021-05-19 Service fulfillment detection method and device and computer readable storage medium Active CN112995811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110544454.5A CN112995811B (en) 2021-05-19 2021-05-19 Service fulfillment detection method and device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110544454.5A CN112995811B (en) 2021-05-19 2021-05-19 Service fulfillment detection method and device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN112995811A true CN112995811A (en) 2021-06-18
CN112995811B CN112995811B (en) 2021-07-30

Family

ID=76336814

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110544454.5A Active CN112995811B (en) 2021-05-19 2021-05-19 Service fulfillment detection method and device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112995811B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055525A (en) * 2010-12-17 2011-05-11 北京格林伟迪科技有限公司 Loop detecting and controlling method
CN103746857A (en) * 2014-02-10 2014-04-23 广东东研网络科技股份有限公司 Automatic refreshing method of default template in Ethernet local side of coaxial cable
CN106656562A (en) * 2016-11-11 2017-05-10 成都广达新网科技股份有限公司 Method and device for detecting ONU configurations batch-issued by OLT
CN106878057A (en) * 2016-12-31 2017-06-20 广东东研网络科技股份有限公司 Loop detection and sweep-out method in Ethernet passive optical network EPON system
CN108540877A (en) * 2018-06-05 2018-09-14 烽火通信科技股份有限公司 Method and system based on OMCI service model self-adapting ONU equipment types
CN108966054A (en) * 2018-06-29 2018-12-07 烽火通信科技股份有限公司 A kind of ONU uplink operation wavelength method of automatic configuration, ONU and system
CN111277925A (en) * 2020-01-17 2020-06-12 中国电信股份有限公司成都分公司 Terminal full-port blind plugging method for activating multiple services based on gigabit network
US20200267460A1 (en) * 2019-02-14 2020-08-20 Nokia Solutions And Networks Oy Loop detection in a passive optical lan network
CN112751723A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Message detection method, single board and Packet Transport Network (PTN) network equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102055525A (en) * 2010-12-17 2011-05-11 北京格林伟迪科技有限公司 Loop detecting and controlling method
CN103746857A (en) * 2014-02-10 2014-04-23 广东东研网络科技股份有限公司 Automatic refreshing method of default template in Ethernet local side of coaxial cable
CN106656562A (en) * 2016-11-11 2017-05-10 成都广达新网科技股份有限公司 Method and device for detecting ONU configurations batch-issued by OLT
CN106878057A (en) * 2016-12-31 2017-06-20 广东东研网络科技股份有限公司 Loop detection and sweep-out method in Ethernet passive optical network EPON system
CN108540877A (en) * 2018-06-05 2018-09-14 烽火通信科技股份有限公司 Method and system based on OMCI service model self-adapting ONU equipment types
CN108966054A (en) * 2018-06-29 2018-12-07 烽火通信科技股份有限公司 A kind of ONU uplink operation wavelength method of automatic configuration, ONU and system
US20200267460A1 (en) * 2019-02-14 2020-08-20 Nokia Solutions And Networks Oy Loop detection in a passive optical lan network
CN112751723A (en) * 2019-10-31 2021-05-04 中兴通讯股份有限公司 Message detection method, single board and Packet Transport Network (PTN) network equipment
CN111277925A (en) * 2020-01-17 2020-06-12 中国电信股份有限公司成都分公司 Terminal full-port blind plugging method for activating multiple services based on gigabit network

Also Published As

Publication number Publication date
CN112995811B (en) 2021-07-30

Similar Documents

Publication Publication Date Title
CN109417424B (en) Optical network unit reset message
US20120269068A1 (en) Testing system
CN109218232B (en) Method, equipment and system for realizing Mux machine
US20230198874A1 (en) Link detection method and system
WO2016197782A2 (en) Service port management method and apparatus, and computer readable storage medium
US11258666B2 (en) Method, device, and system for implementing MUX machine
US20080144610A1 (en) Thin client system and communication apparatus
AU2010256133B2 (en) Method and apparatus for detecting ethernet operation, administration and maintenance (OAM)
US20070180152A1 (en) Method and apparatus to extend error-disable-and-ignore and port-bounce capability to a PC-facing port of an IP phone
CN112995811B (en) Service fulfillment detection method and device and computer readable storage medium
CN112134775B (en) Switch loop detection method and device
CN109962793B (en) Method, apparatus, device and medium for locating broadband connectivity fault
WO2016110151A1 (en) Method and device for detecting link loopback of pon system
CN101540706B (en) Method and system for realizing remote debugging
US20100031069A1 (en) Method for Managing the Power Transmitted from a Central Network Component to a Decentralized Network Component via a Line
WO2023159956A1 (en) Bare metal server inspection and deployment method and apparatus, and device and medium
US11546237B2 (en) Multi-access edge computing architecture and detection method thereof
EP1796284B1 (en) System, apparatus and method for testing line
WO2018168144A1 (en) House-side device and method of clearing management table
RU126243U1 (en) DEVICE FOR CHANGING TRAFFIC ROUTE FOR PROCESSING
US20090124279A1 (en) Method and system for activating a backup radio frequency transmitter
WO2012100672A1 (en) Method and apparatus for accessing voice device
CN115767576A (en) Method and device for detecting network connection of equipment, storage medium and electronic device
CN110233908B (en) Method and device for directly connecting network cable of android play box with computer
CN112532412B (en) Network fault detection method and network fault detection device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant