CN108243053B - Packet loss fault positioning method and device - Google Patents

Packet loss fault positioning method and device Download PDF

Info

Publication number
CN108243053B
CN108243053B CN201611229377.XA CN201611229377A CN108243053B CN 108243053 B CN108243053 B CN 108243053B CN 201611229377 A CN201611229377 A CN 201611229377A CN 108243053 B CN108243053 B CN 108243053B
Authority
CN
China
Prior art keywords
mac address
physical line
port
user
line sub
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.)
Active
Application number
CN201611229377.XA
Other languages
Chinese (zh)
Other versions
CN108243053A (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.)
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Zhejiang 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 China Mobile Communications Group Co Ltd, China Mobile Group Zhejiang Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN201611229377.XA priority Critical patent/CN108243053B/en
Publication of CN108243053A publication Critical patent/CN108243053A/en
Application granted granted Critical
Publication of CN108243053B publication Critical patent/CN108243053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/0677Localisation of faults
    • 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/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • 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
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Abstract

The invention discloses a packet loss fault positioning method and device, which can position packet loss fault positions and greatly improve the efficiency of packet loss fault positioning. The method comprises the following steps: acquiring the ONU model and the MAC address input by a dialing user on a user input interface and port numbers of all physical line sub-ports contained in an aggregation group of an exchanger where the dialing user is positioned; if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line.

Description

Packet loss fault positioning method and device
Technical Field
The invention relates to the field of communication, in particular to a packet loss fault positioning method and device.
Background
The broadband is an important foundation for the development of the national economic society, and with the development of the information society, the broadband-dependent network economic development of e-commerce, internet of things, mobile internet and the like also puts new requirements on broadband construction, and the broadband-dependent network economic development is an important task for broadband constructors to construct high-speed, convenient, low-price and three-dimensional network services. In such a background, the handling time limit of the broadband fault of the home user is very important, which also requires that the reason of the fault can be located in time.
The current fault location method is mainly to primarily solve the problem through the error code generated after the user dials, and the fault on the line is judged by checking whether the current aggregation port or the physical line sub-interface is UP and whether the optical power of the port is normal. The method is not suitable for accidental random packet loss faults, because indexes of the port or the line are generally normal for accidental faults of packet loss, and therefore, the problem that which link needs to be determined is difficult for sub-ports in the switch aggregation group. In order to quickly locate which link the data is lost, a better and more convenient method is needed.
Disclosure of Invention
Aiming at the defects and shortcomings in the prior art, the invention provides a packet loss fault positioning method and device.
On one hand, an embodiment of the present invention provides a packet loss fault location method, including:
acquiring the ONU model and the MAC address input by a dialing user on a user input interface and port numbers of all physical line sub-ports contained in an aggregation group of an exchanger where the dialing user is positioned;
if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line.
On the other hand, an embodiment of the present invention provides a packet loss fault locating device, including:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring the ONU model and the MAC address input by a dialing user on a user input interface and the port number of each physical line sub-port contained in an exchanger aggregation group where the dialing user is located;
and the matching unit is used for acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number if the ONU model and the MAC address are judged to be legal, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port, in which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface, as a packet-lost physical line.
According to the packet loss fault positioning method and device provided by the embodiment of the invention, when the ONU model and the MAC address input by the dialing user on the user input interface are legal, the MAC address is matched with the MAC address of the data packet transmitted in the physical line sub-port in the switch aggregation group where the dialing user is located, so that the physical line lost by the data packet of the dialing user is judged, the packet loss fault position can be positioned, and the efficiency of packet loss fault positioning is greatly improved.
Drawings
Fig. 1 is a flowchart illustrating a packet loss fault location method according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a packet loss fault location method according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of an embodiment of a packet loss fault locating apparatus according to the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some embodiments, but not all embodiments, of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, the present embodiment discloses a packet loss fault location method, including:
s1, acquiring the ONU model and the MAC address input by the dialing user on the user input interface and the port number of each physical line sub-port included in the switch aggregation group where the dialing user is located;
in this embodiment, the execution flow of step S1 may be as shown in fig. 2, and specifically includes: when the dial-up user wants to locate the packet loss fault location, it may trigger (for example, click a button) to establish a user input interface, and then the dial-up user may input the ONU (Optical Network Unit) model, the MAC (Media Access Control or Medium Access Control) address, and the port number of each physical line sub-port included in the switch aggregation group where the dial-up user is located on the interface, and in the process of performing interface input by the dial-up user, if it is detected that the user has input to the user input interface, a monitoring event may be created to monitor whether the dial-up user has clicked a confirmation button for confirming the input aforementioned information, and if the monitoring event monitors that the dial-up user has clicked the confirmation button, the monitoring event may be ended, and step S2 is executed.
And S2, if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line.
In this embodiment, referring to fig. 2, it should be noted that, when the step S2 is executed, it is first determined whether the ONU model and the MAC address input by the dialing user on the user input interface are legal, and if not, the dialing user input is cleared and an input error is prompted, and if legal, the next execution is continued. Judging whether the ONU model and the MAC address are legal may include: and searching a preset ONU type number table, if the ONU type number is searched in the ONU type number table, and if the MAC address is judged to be the MAC address with the standard format, determining that the ONU type number and the MAC address are legal. It can be understood that whether the MAC address is a MAC address with a standard format means whether the format of the MAC address meets the format requirement of the MAC address with the standard format, such as a bit requirement, and details are not described herein.
According to the packet loss fault positioning method provided by the embodiment of the invention, when the ONU model and the MAC address input by the dialing user on the user input interface are legal, the MAC address is matched with the MAC address of the data packet being transmitted in the physical line sub-port in the switch aggregation group where the dialing user is located, so that the physical line lost by the data packet of the dialing user is judged, the packet loss fault position can be positioned, and the efficiency of packet loss fault positioning is greatly improved.
Referring to fig. 2, based on the foregoing method embodiment, the S2 may include the following steps:
applying for allocating a positioning task thread of the number of physical line sub-ports included in the switch aggregation group to a pre-created thread pool to execute a positioning task, wherein the number of the physical line sub-ports included in the switch aggregation group is determined according to the port number of each physical line sub-port, the positioning task to be executed by each positioning task thread is to establish SNMP (simple network management protocol) connection with one physical line sub-port according to the port number of the physical line sub-port, after the establishment of the SNMP connection is completed, an MAC address included in a data packet being transmitted in the physical line sub-port is acquired, the MAC address included in the data packet is matched with the MAC address input by the dial-up user on a user input interface, and a matching result is returned;
it can be understood that each positioning task thread applied for allocation to the thread pool executes a positioning task for different physical line sub-ports, and how to create, allocate, and manage the thread to execute the positioning task is prior art and is not described herein again. It should be noted that the positioning task to be executed by each positioning task thread may specifically be to obtain an MIB node value of the physical line sub-port according to the port number of the corresponding physical line sub-port, extract a MAC address included in a data packet being transmitted in the physical line sub-port from the MIB node value, match the MAC address included in the data packet with a MAC address input by the dial-up user on the user input interface, and return a matching result.
After the number of positioning task threads are distributed in the thread pool, waiting for the positioning task threads to execute the positioning tasks, obtaining an execution result of the positioning tasks after the positioning task threads finish executing the positioning tasks, and returning the positioning task threads to the thread pool, wherein the execution result is a matching result of matching an MAC address contained in a data packet which is transmitted in a corresponding physical line sub-port with an MAC address input by the dialing user on a user input interface;
and according to the matching result, determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet loss physical line.
In this embodiment, referring to fig. 2, after determining a physical line to be dropped, a playback dialog box may be created, and a port number of a physical line sub-port corresponding to the physical line to be dropped is output; and when the physical line with packet loss is not determined, a back display dialog box can be created, and prompt information that the data packet is not found is output.
Referring to fig. 3, the present embodiment discloses a packet loss fault locating device, including:
the system comprises an acquisition unit 1, a configuration unit and a control unit, wherein the acquisition unit 1 is used for acquiring the ONU model and the MAC address input by a dialing user on a user input interface and the port number of each physical line sub-port included in an exchanger aggregation group where the dialing user is located;
and the matching unit 2 is configured to, if it is determined that the ONU model and the MAC address are valid, obtain, by using the port number, an MAC address included in a data packet being transmitted in each physical line sub-port, match the MAC address included in the data packet with an MAC address input by the dial-up user on a user input interface, and determine, as a packet-lost physical line, a physical line corresponding to a physical line sub-port where an MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dial-up user on the user input interface.
In this embodiment, the matching unit may be specifically configured to:
and searching a preset ONU type number table, if the ONU type number is searched in the ONU type number table, and if the MAC address is judged to be the MAC address with the standard format, determining that the ONU type number and the MAC address are legal.
In this embodiment, the matching unit may be specifically configured to:
applying for allocating a positioning task thread of the number of physical line sub-ports included in the switch aggregation group to a pre-created thread pool to execute a positioning task, wherein the number of the physical line sub-ports included in the switch aggregation group is determined according to the port number of each physical line sub-port, the positioning task to be executed by each positioning task thread is to establish SNMP connection with one physical line sub-port according to the port number of the physical line sub-port, after the establishment of the SNMP connection is completed, an MAC address included in a data packet being transmitted in the physical line sub-port is acquired, the MAC address included in the data packet is matched with the MAC address input by the dial-up user on a user input interface, and a matching result is returned;
the positioning task to be executed by each positioning task thread may specifically be to acquire an MIB node value of a physical line sub-port according to a port number of the corresponding physical line sub-port, extract an MAC address included in a data packet being transmitted in the physical line sub-port from the MIB node value, match the MAC address included in the data packet with an MAC address input by the dial-up user on a user input interface, and return a matching result.
After the number of positioning task threads are distributed in the thread pool, waiting for the positioning task threads to execute the positioning tasks, obtaining an execution result of the positioning tasks after the positioning task threads finish executing the positioning tasks, and returning the positioning task threads to the thread pool, wherein the execution result is a matching result of matching an MAC address contained in a data packet which is transmitted in a corresponding physical line sub-port with an MAC address input by the dialing user on a user input interface;
and according to the matching result, determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet loss physical line.
On the basis of the foregoing embodiment of the apparatus, the apparatus may further include the following structure not shown in the drawings:
and the output unit is used for outputting the port number of the physical line sub-port corresponding to the packet-lost physical line after the packet-lost physical line is determined.
The device can execute any packet loss fault positioning method, so that the same technical problem can be solved, and the same technical effect can be achieved.
To sum up, the packet loss fault location device provided in the embodiment of the present invention determines the physical line where the data packet of the dial-up user is lost by performing MAC address matching between the MAC address and the data packet being transmitted in the physical line sub-port of the switch aggregation group where the dial-up user is located when the ONU model and the MAC address input by the dial-up user on the user input interface are legal, so that the location of the packet loss fault can be located, and the efficiency of locating the packet loss fault is greatly improved.
Fig. 4 is a schematic entity structure diagram of an electronic device according to an embodiment of the present invention, and as shown in fig. 4, the electronic device may include: at least one processor 101, at least one memory 102, and a bus 103; wherein the content of the first and second substances,
the processor 101 and the memory 102 complete mutual communication through the bus 103;
the memory 102 stores program instructions executable by the processor 101, and the processor 101 may call the program instructions to perform the method provided by the above method embodiments, for example, the method includes: acquiring the ONU model and the MAC address input by a dialing user on a user input interface and port numbers of all physical line sub-ports contained in an aggregation group of an exchanger where the dialing user is positioned; if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line.
An embodiment of the present invention discloses a computer program product, the computer program product includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the method provided by the above method embodiment, for example, the method includes: acquiring the ONU model and the MAC address input by a dialing user on a user input interface and port numbers of all physical line sub-ports contained in an aggregation group of an exchanger where the dialing user is positioned; if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line.
Embodiments of the present invention provide a non-transitory computer-readable storage medium storing computer instructions, which cause a computer to execute a method provided by the above method embodiments, for example, including: acquiring the ONU model and the MAC address input by a dialing user on a user input interface and port numbers of all physical line sub-ports contained in an aggregation group of an exchanger where the dialing user is positioned; if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The terms "upper", "lower", and the like, indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience in describing the present invention and simplifying the description, but do not indicate or imply that the referred devices or elements must have a specific orientation, be constructed and operated in a specific orientation, and thus, should not be construed as limiting the present invention. Unless expressly stated or limited otherwise, the terms "mounted," "connected," and "connected" are intended to be inclusive and mean, for example, that they may be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood by those skilled in the art according to specific situations.
In the description of the present invention, numerous specific details are set forth. It is understood, however, that embodiments of the invention may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description. Similarly, it should be appreciated that in the foregoing description of exemplary embodiments of the invention, various features of the invention are sometimes grouped together in a single embodiment, figure, or description thereof for the purpose of streamlining the disclosure and aiding in the understanding of one or more of the various inventive aspects. However, the disclosed method should not be interpreted as reflecting an intention that: that the invention as claimed requires more features than are expressly recited in each claim. Rather, as the following claims reflect, inventive aspects lie in less than all features of a single foregoing disclosed embodiment. Thus, the claims following the detailed description are hereby expressly incorporated into this detailed description, with each claim standing on its own as a separate embodiment of this invention. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict. The present invention is not limited to any single aspect, nor is it limited to any single embodiment, nor is it limited to any combination and/or permutation of these aspects and/or embodiments. Moreover, each aspect and/or embodiment of the present invention may be utilized alone or in combination with one or more other aspects and/or embodiments thereof.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solution of the present invention, and not to limit the same; while the invention has been described in detail and with reference to the foregoing embodiments, it will be understood by those skilled in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications and substitutions do not depart from the spirit and scope of the present invention, and they should be construed as being included in the following claims and description.

Claims (8)

1. A packet loss fault locating method is characterized by comprising the following steps:
acquiring the ONU model and the MAC address input by a dialing user on a user input interface and port numbers of all physical line sub-ports contained in an aggregation group of an exchanger where the dialing user is positioned;
if the ONU model and the MAC address are judged to be legal, acquiring the MAC address contained in the data packet transmitted in each physical line sub-port by using the port number, matching the MAC address contained in the data packet with the MAC address input by the dialing user on a user input interface, and determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet-lost physical line;
if the ONU model and the MAC address are judged to be legal, the method comprises the following steps:
and searching a preset ONU type number table, if the ONU type number is searched in the ONU type number table, and if the MAC address is judged to be the MAC address with the standard format, determining that the ONU type number and the MAC address are legal.
2. The method according to claim 1, wherein the obtaining, by using the port number, a MAC address included in a data packet being transmitted in each physical line sub-port, matching the MAC address included in the data packet with a MAC address input by the dial-up user on a user input interface, and determining, as a physical line to be dropped, a physical line corresponding to a physical line sub-port whose MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dial-up user on the user input interface, includes:
applying for allocating a positioning task thread of the number of physical line sub-ports included in the switch aggregation group to a pre-created thread pool to execute a positioning task, wherein the number of the physical line sub-ports included in the switch aggregation group is determined according to the port number of each physical line sub-port, the positioning task to be executed by each positioning task thread is to establish SNMP connection with one physical line sub-port according to the port number of the physical line sub-port, after the establishment of the SNMP connection is completed, an MAC address included in a data packet being transmitted in the physical line sub-port is acquired, the MAC address included in the data packet is matched with the MAC address input by the dial-up user on a user input interface, and a matching result is returned;
after the number of positioning task threads are distributed in the thread pool, waiting for the positioning task threads to execute the positioning tasks, obtaining an execution result of the positioning tasks after the positioning task threads finish executing the positioning tasks, and returning the positioning task threads to the thread pool, wherein the execution result is a matching result of matching an MAC address contained in a data packet which is transmitted in a corresponding physical line sub-port with an MAC address input by the dialing user on a user input interface;
and according to the matching result, determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet loss physical line.
3. The method according to claim 2, wherein the positioning task to be executed by each positioning task thread specifically comprises acquiring an MIB node value of a physical line sub-port according to a port number of the corresponding physical line sub-port, extracting a MAC address included in a data packet being transferred in the physical line sub-port from the MIB node value, matching the MAC address included in the data packet with a MAC address input by the dial-up user on a user input interface, and returning a matching result.
4. The method of claim 1, further comprising:
and after the physical line to be lost is determined, outputting the port number of the physical line sub-port corresponding to the physical line to be lost.
5. A packet loss fault locating apparatus, comprising:
the system comprises an acquisition unit, a processing unit and a control unit, wherein the acquisition unit is used for acquiring the ONU model and the MAC address input by a dialing user on a user input interface and the port number of each physical line sub-port contained in an exchanger aggregation group where the dialing user is located;
a matching unit, configured to, if it is determined that the ONU model and the MAC address are valid, obtain, by using the port number, an MAC address included in a data packet being transmitted in each physical line sub-port, match the MAC address included in the data packet with an MAC address input by the dial-up user on a user input interface, and determine, as a packet-lost physical line, a physical line corresponding to a physical line sub-port where an MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dial-up user on the user input interface;
the matching unit is specifically configured to:
and searching a preset ONU type number table, if the ONU type number is searched in the ONU type number table, and if the MAC address is judged to be the MAC address with the standard format, determining that the ONU type number and the MAC address are legal.
6. The apparatus according to claim 5, wherein the matching unit is specifically configured to:
applying for allocating a positioning task thread of the number of physical line sub-ports included in the switch aggregation group to a pre-created thread pool to execute a positioning task, wherein the number of the physical line sub-ports included in the switch aggregation group is determined according to the port number of each physical line sub-port, the positioning task to be executed by each positioning task thread is to establish SNMP connection with one physical line sub-port according to the port number of the physical line sub-port, after the establishment of the SNMP connection is completed, an MAC address included in a data packet being transmitted in the physical line sub-port is acquired, the MAC address included in the data packet is matched with the MAC address input by the dial-up user on a user input interface, and a matching result is returned;
after the number of positioning task threads are distributed in the thread pool, waiting for the positioning task threads to execute the positioning tasks, obtaining an execution result of the positioning tasks after the positioning task threads finish executing the positioning tasks, and returning the positioning task threads to the thread pool, wherein the execution result is a matching result of matching an MAC address contained in a data packet which is transmitted in a corresponding physical line sub-port with an MAC address input by the dialing user on a user input interface;
and according to the matching result, determining the physical line corresponding to the physical line sub-port of which the MAC address corresponding to the switch aggregation group is consistent with the MAC address input by the dialing user on the user input interface as a packet loss physical line.
7. The apparatus according to claim 6, wherein the positioning task to be executed by each positioning task thread specifically comprises obtaining an MIB node value of a physical line sub-port according to a port number of the corresponding physical line sub-port, extracting a MAC address included in a data packet being transmitted in the physical line sub-port from the MIB node value, matching the MAC address included in the data packet with a MAC address input by the dial-up user on a user input interface, and returning a matching result.
8. The apparatus of claim 5, further comprising:
and the output unit is used for outputting the port number of the physical line sub-port corresponding to the packet-lost physical line after the packet-lost physical line is determined.
CN201611229377.XA 2016-12-27 2016-12-27 Packet loss fault positioning method and device Active CN108243053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611229377.XA CN108243053B (en) 2016-12-27 2016-12-27 Packet loss fault positioning method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611229377.XA CN108243053B (en) 2016-12-27 2016-12-27 Packet loss fault positioning method and device

Publications (2)

Publication Number Publication Date
CN108243053A CN108243053A (en) 2018-07-03
CN108243053B true CN108243053B (en) 2020-12-22

Family

ID=62702913

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611229377.XA Active CN108243053B (en) 2016-12-27 2016-12-27 Packet loss fault positioning method and device

Country Status (1)

Country Link
CN (1) CN108243053B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109379133B (en) * 2018-12-11 2020-03-31 武汉烽火技术服务有限公司 PON (passive optical network) packet loss processing method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104869014A (en) * 2015-04-24 2015-08-26 国家电网公司 Ethernet fault positioning and detection method
WO2016086402A1 (en) * 2014-12-05 2016-06-09 华为技术有限公司 Data communication method, apparatus and system
CN105703934A (en) * 2014-11-28 2016-06-22 亿阳信通股份有限公司 PON network fault diagnosis method and apparatus for household broadband service
CN106034045A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Ethernet link failure positioning method, device and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105703934A (en) * 2014-11-28 2016-06-22 亿阳信通股份有限公司 PON network fault diagnosis method and apparatus for household broadband service
WO2016086402A1 (en) * 2014-12-05 2016-06-09 华为技术有限公司 Data communication method, apparatus and system
CN106034045A (en) * 2015-03-20 2016-10-19 中兴通讯股份有限公司 Ethernet link failure positioning method, device and system
CN104869014A (en) * 2015-04-24 2015-08-26 国家电网公司 Ethernet fault positioning and detection method

Also Published As

Publication number Publication date
CN108243053A (en) 2018-07-03

Similar Documents

Publication Publication Date Title
CN107995215B (en) Control method and device of intelligent household equipment and cloud platform server
US20170046204A1 (en) Application Scaling Management Method and Apparatus
CN111371595A (en) Network security deployment method, device, equipment and readable storage medium
EP3255833A1 (en) Alarm information processing method, relevant device and system
EP3905589A1 (en) Slice resource deployment method and apparatus, and slice manager and computer storage medium
CN107133231B (en) Data acquisition method and device
CN110661670A (en) Network equipment configuration management method and device
CN109062619A (en) Third party stores equipment Explore of Unified Management Ideas, system, device and storage medium
CN105159728A (en) Method and device for obtaining NTP time information based on android system
CN111130962A (en) Automatic configuration method, equipment, system and storage medium for switch
CN103684885A (en) Method and device for determining web server accessing abnormities
CN106936660B (en) Data acquisition method and device
CN102291274A (en) System and method for realizing automatic adaptation of network testing instrument
CN108243053B (en) Packet loss fault positioning method and device
CN113938391A (en) Network distribution method and system for gateway equipment and electronic equipment
CN112333672B (en) Method and device for opening UPF network element of 5G core network
US10693731B2 (en) Flow entry management method and device
CN110380902B (en) Topological relation generation method and device, electronic equipment and storage medium
CN110830271B (en) Method and device for realizing automatic association and update of homeman resource data
CN110061886B (en) Prepress network management system based on SNMP
EP2355409A1 (en) Network management device
CN111090853B (en) Account management method, system, electronic equipment and storage medium
CN114513419A (en) Security policy configuration method and system
CN114221882A (en) Method, device, equipment and storage medium for detecting fault link
CN108924013B (en) Network flow accurate acquisition method and 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