CN112073264A - Protocol detection method, device and network equipment - Google Patents

Protocol detection method, device and network equipment Download PDF

Info

Publication number
CN112073264A
CN112073264A CN202010892802.3A CN202010892802A CN112073264A CN 112073264 A CN112073264 A CN 112073264A CN 202010892802 A CN202010892802 A CN 202010892802A CN 112073264 A CN112073264 A CN 112073264A
Authority
CN
China
Prior art keywords
detection
rtc
frequency
mdc
maximum frequency
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
CN202010892802.3A
Other languages
Chinese (zh)
Other versions
CN112073264B (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.)
New H3C Security Technologies Co Ltd
Original Assignee
New H3C Security Technologies 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 New H3C Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202010892802.3A priority Critical patent/CN112073264B/en
Publication of CN112073264A publication Critical patent/CN112073264A/en
Application granted granted Critical
Publication of CN112073264B publication Critical patent/CN112073264B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The specification provides a protocol detection method, a protocol detection device and network equipment, and relates to the technical field of communication. The protocol detection method comprises the following steps: receiving a detection event issued by MDC equipment in a multi-tenant equipment environment; determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the real-time clock RTC; determining a frequency division value of a detection event according to the detection parameters and the maximum frequency; based on the divider value and the maximum frequency, a protocol probe of the MDC device is initiated. By the method, the reliability of the network equipment can be improved.

Description

Protocol detection method, device and network equipment
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a protocol detection method, an apparatus, and a network device.
Background
As network requirements gradually increase, a manager may need to deploy more physical devices to meet the requirements, however, software and hardware resources in each physical device may not be utilized more effectively, which results in waste of resources in the physical devices.
In order to more effectively utilize the software and hardware resources of a physical Device, a physical Device may be divided into multiple logical devices by a virtualization technique, and each logical Device is called an MDC (multi tenant Device context). Each MDC has own exclusive software and hardware resources, operates independently, forwards independently and provides services independently. One MDC is created, started, restarted and deleted, and the operation of other MDCs cannot be influenced. Each MDC is an independent physical device for the user. The MDCs are isolated from each other, cannot be directly communicated, and have high safety.
As each MDC operates, probing is required according to a probing protocol to determine the performance of the MDC's associated network link. In the related processing, multiple MDCs will trigger detection respectively, and because the detection frequencies are different, the current RTC (Real Time Clock) frequency needs to be modified according to the multiple MDCs to meet the detection requirements of the multiple MDCs. At this time, the RTC frequency needs to calculate the maximum common multiple according to the required frequencies of multiple MDCs, but the calculated maximum common multiple may exceed the performance of the RTC itself, which may cause inaccurate detection results and reduce the reliability of the network device.
Disclosure of Invention
In order to overcome the problems in the related art, the present specification provides a protocol probing method, apparatus and network device.
According to a first aspect of embodiments herein, there is provided a protocol probing method, the method including:
receiving a detection event issued by MDC equipment in a multi-tenant equipment environment;
determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the real-time clock RTC;
determining a frequency division value of a detection event according to the detection parameters and the maximum frequency;
based on the divider value and the maximum frequency, a protocol probe of the MDC device is initiated.
Optionally, determining the maximum frequency according to the detection parameter carried in the detection event and the frequency peak of the real-time clock RTC includes:
when the RTC is determined not to be referred according to the reference count, determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC;
when the RTC is determined to be referenced from the reference count, a divide-by value for the detection event is determined from the maximum frequency of the RTC.
Further, determining a frequency division value for the MDC device according to the maximum frequency of the RTC includes:
when the maximum frequency of the RTC is a multiple of the detection frequency of the MDC equipment, determining a frequency division value aiming at the detection event according to the maximum frequency of the RTC;
when the maximum frequency of the RTC is not a multiple of the probing frequency of the MDC device, the probing event is written into the waiting queue.
Further, before determining the maximum frequency according to the detection parameter carried in the detection event and the frequency peak value of the RTC, the method further includes:
when it is determined that the RTC is locked, a probe event is written to the wait queue.
Further, the method further comprises:
when the protocol detection is finished, the reference count is reduced;
when the decremented reference count is 0 and there is no probe event in the wait queue, the RTC is disabled, wherein the RTC is enabled upon initiating protocol probing.
In a second aspect, the present application further provides a protocol detecting apparatus, including:
a receiving unit, configured to receive a detection event issued by an MDC device;
the determining unit is used for determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC;
the calculating unit is used for determining a frequency division value of the detection event according to the detection parameters and the maximum frequency;
and the detection unit is used for starting protocol detection of the MDC equipment based on the frequency division value and the maximum frequency.
Further, the determining unit is specifically configured to determine, when it is determined that the RTC is not referred to according to the reference count, a maximum frequency according to the detection parameter carried in the detection event and the frequency peak of the RTC; when the RTC is determined to be referenced from the reference count, a divide-by value for the detection event is determined from the maximum frequency of the RTC.
Further, the determining unit is further specifically configured to determine a frequency division value for the detection event according to the maximum frequency of the RTC when it is determined that the RTC is referenced according to the reference count and the maximum frequency of the RTC is a multiple of the detection frequency of the MDC device; when it is determined from the reference count that the RTC is referenced and that the maximum frequency of the RTC is not a multiple of the probing frequency of the MDC device, the probing event is written to the wait queue.
Optionally, the apparatus further includes:
a locking unit for writing a detection event into the wait queue when it is determined that the RTC is locked; when the RTC is determined not to be locked, the determining unit determines the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC of the real-time clock.
Optionally, the apparatus further includes:
the counting unit is used for adjusting the reference count, when the protocol detection is started, the reference count is increased, and when the protocol detection is finished, the reference count is decreased;
and an enabling unit for enabling or disabling the RTC, wherein the RTC is set in an enabling state when the reference count is not 0, and the RTC is set in a disabling state when the reference count is 0 and there is no detection event in the waiting queue.
In a third aspect, the present application further provides a network device, including a processor, a memory, and a forwarding chip;
the processor is used for calling the program codes stored in the memory and executing the following operations:
receiving a detection event issued by the MDC equipment;
determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC acquired from the forwarding chip;
determining a frequency division value of a detection event according to the detection parameters and the maximum frequency;
updating a detection information table in a memory and an operation, administration and maintenance (OAM) table in a forwarding chip according to the detection event and the maximum frequency, and setting a frequency division value in the OAM table;
and the trigger forwarding chip detects the MDC equipment according to the OAM table.
The technical scheme provided by the embodiment of the specification can have the following beneficial effects:
in the embodiment of the present specification, the working frequency of the RTC is directly set as the maximum frequency according to the detection parameter configured for the MDC device and the frequency peak of the RTC, so that the problem that the detection result is inaccurate due to the fact that the modification of the working frequency of the RTC may exceed the frequency peak of the RTC under the condition of multiple MDC devices is avoided, and the reliability of the network device is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the specification.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
FIG. 1 is a flow chart of a protocol detection method to which the present application is directed;
fig. 2 is a schematic structural diagram of a network device in an embodiment to which the present application relates;
FIG. 3 is a networking diagram of a protocol probing method in an embodiment to which the present application is directed;
FIG. 4 is a detailed flow chart of a protocol probing method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a protocol detection apparatus according to the present application;
fig. 6 is a schematic diagram of another protocol detection apparatus according to the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present specification.
In order to solve the above problem, the present application proposes a protocol probing method, as shown in fig. 1, including:
s100, receiving a detection event issued by the MDC equipment.
The network device may be a switch or a router, and as shown in fig. 2, a plurality of MDC devices may be pre-formed in the network device, and each MDC device may belong to a different local area network. The probing instructions are entered by the administrator upon initiating a protocol probing of an MDC device. When the detection instruction is issued to the network device, the detection instruction forms a detection event for one MDC device, where the detection event may be a detection event for link performance in a network related to the MDC device, may also be a detection event for detecting whether another device is operating normally, and may also be a detection event for detecting performance of a certain service in the network, and the detection for the detection event is not limited. In the detection event, the detection parameters may be carried, including the message size, detection frequency, label, detection time, and the like of the detection message sent during detection. The message size refers to the space occupied by the transmitted detection message, the detection frequency refers to the frequency of the transmitted detection message, the label refers to the label carried by the message header of the detection message, and the detection time refers to the time required for outputting the detection result in one detection.
And S102, determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC.
After receiving the detection event, the network device acquires the relevant detection parameters from the detection event and acquires a frequency peak value of the RTC preset in the network device, where the frequency peak value is a limit frequency that the RTC can reach. According to the detection parameters and the frequency peak value, the maximum frequency which can be set by the RTC can be determined, and the maximum frequency is the maximum integral multiple of the detection frequency which can be reached below the frequency peak value of the RTC. For example, if the probing frequency is not 20 mhz, the frequency peak of the RTC is 55 mhz, and the maximum frequency is determined to be 40 mhz. At this time, the selected RTC is set to output a clock signal at a frequency of 40 mhz.
And S104, determining a frequency division value of the detection event according to the detection parameters and the maximum frequency.
After the maximum frequency is calculated, a frequency division value needs to be set for the detection event of the MDC device, where the frequency division value refers to a frequency required when the MDC device issuing the detection event sends the detection message, for example, in the case where the maximum frequency of the RTC is set to 40 mhz, the frequency division value is one half for the detection frequency of 20 mhz. The frequency division value may be stored with the probe parameters and calculated when the probe message is sent.
And S106, starting protocol detection of the MDC equipment based on the frequency division value and the maximum frequency.
And starting protocol detection of the MDC equipment according to the stored frequency division value and the maximum frequency, and sending a detection message outwards at the detection frequency.
The Detection protocol may include multiple protocols, For example, based on an RFC (Request For Comments) 2544 protocol, an RFC1564 protocol, an RFC 5880 protocol, that is, a BFD (Bidirectional Forwarding Detection) protocol, and the like, that is, a protocol that satisfies a mode of periodically sending and receiving a Detection packet to implement network quality Detection may be applied to the scheme provided in the present application.
In this embodiment of the present specification, by the above method, the operating frequency of the RTC is directly set as the maximum frequency according to the detection parameter configured for the MDC device and the frequency peak of the RTC, so as to avoid a problem that a detection result is inaccurate due to the fact that the modification of the operating frequency of the RTC may exceed the frequency peak of the RTC in the case of multiple MDC devices. When the MDC can accurately perform protocol detection, the network device can more reasonably set the performance of the link to which the network device belongs according to the accurate detection, so that the network device can operate more reliably.
Since a plurality of MDC devices may be simultaneously formed in one network device, and since protocol probing among the plurality of MDC devices is performed by using the same RTC, in the related art, the plurality of MDC devices may affect each other. For example, when the first local MDC device is probing at 20 mhz, the RTC is also set to operate at 20 mhz, and at this time, if the second MDC device needs to operate at 30 mhz, the originally set maximum frequency may be overwritten by the probing event of the second MDC device, so that the probing of the first MDC device is resumed, which results in waste of time and network device resources.
In order to avoid the above problem, step S102, determining the maximum frequency according to the detection parameter carried in the detection event and the frequency peak of the RTC, includes:
S102A, when the RTC is determined not to be referred according to the reference count, determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC.
S102B, when the RTC is determined to be referenced according to the reference count, determining a frequency division value for the detection event according to the maximum frequency of the RTC.
A reference count may be set in the network device to record the number of times the RTC is referenced, and the initial value of the reference count is 0, which means that no MDC device references the RTC. The reference count may be incremented by 1 when the RTC is referenced by an MDC device and decremented by 1 when an MDC device completes probing.
According to the reference count, when it is determined that the RTC is not referenced, the detection frequency carried in the detection event and the frequency peak value of the RTC can be directly determined as the maximum frequency set by the RTC, and when it is determined that the RTC is referenced, the frequency division value set by the second MDC device can be calculated according to the maximum frequency that has been set. For example, if the probing frequency of the first MDC device is 20 mhz and the maximum frequency of the RTC is set to 40 mhz, then if the probing frequency of the second MDC device is 10 mhz, the frequency division value of the second MDC device can be directly divided by a quarter. Therefore, the maximum frequency of the RTC does not need to be reset, the problem of re-detection of the first MDC device caused by rewriting the maximum frequency of the RTC can be avoided, and the efficiency of the network device in performing protocol detection is improved.
When the frequency division value is calculated for the second MDC device, there may be a problem that the maximum frequency of the RTC is not a multiple of the preset probing frequency of the second MDC device, and at this time, if the maximum frequency of the RTC is determined again by the second MDC device, the problem of probing again by the first MDC device may also be caused.
To avoid the above problem, further, the determining a frequency division value for the detection event according to the maximum frequency of the RTC further includes:
step S103A, when the maximum frequency of the RTC is a multiple of the probing frequency of the MDC device, determining a frequency division value for the probing event according to the maximum frequency of the RTC.
Step S103B, when the maximum frequency of the RTC is not a multiple of the probing frequency of the MDC device, writes the probing event into the waiting queue.
For example, the probing frequency of the first MDC device is 20 mhz, and the maximum frequency of the RTC is set to 40 mhz. If the probing frequency of the second MDC device is 10 mhz, it is determined that 40 mhz is a multiple of 10 mhz, the frequency division value for the second MDC device is directly calculated, and the protocol probing is started according to the maximum frequency and the frequency division value. Whereas if the probing frequency of the second MDC device is 30 mhz, it may be determined that 40 mhz is not a multiple of 30 mhz.
At this time, the received probe event is written into a waiting queue predefined in the network device, and the waiting queue may be set in a storage (e.g., a memory) of the network device. And after the protocol detection of the first MDC equipment is finished, reading the detection event from the waiting queue and executing a subsequent detection process.
Secondly, when the administrator issues the detection event, there may be a case where the detection events are concurrent, that is, the detection events for two MDC devices are received in the same time period. At this time, the network device cannot sense that two detection events exist simultaneously and respectively modify the maximum frequency of the RTC, so that one protocol detection in the two detection events cannot be performed normally.
In order to avoid the above problem, before determining the maximum frequency according to the detection parameter carried in the detection event and the frequency peak value of the RTC in step S102, the method further includes:
s101, when the RTC is determined to be locked, writing the detection event into a waiting queue.
A storage space can be set in the network device to record whether the RTC is currently locked, the locking represents that the RTC is being modified, and the modification is allowed only when the RTC is not locked. That is, when the network device detects that the RTC is being locked, the network device does not process the detection event any more, writes the detection event into the waiting queue, and determines whether the protocol detection of the detection event can be started after the RTC is modified.
Additionally, in the network device, the enablement of the RTC may be controlled for a set reference count, the RTC is enabled to initiate protocol probing upon receipt of a probing event, the reference count is incremented while one protocol probing is being run, e.g., the reference count may be incremented to 1 if two MDC devices are doing protocol probing. The method related to the application further comprises the following steps:
and S108, reducing the reference count when the protocol detection is finished.
S110, when the reduced reference count is 0, the RTC is disabled.
When the protocol probing of an MDC device is completed, the number of reference counts is reduced. The reference count may be increased or decreased at intervals of 1, but is not limited thereto.
After the network device determines to reduce the reference count, the reference count becomes 0, and then it may be determined that no MDC device currently uses the RTC, and at this time, the RTC may be disabled to save resources of the network device.
A protocol probing method provided in the present application is described as a specific example, and is applied to a network device shown in fig. 2, where the network device includes a processor, a memory and a forwarding chip, and the memory stores program codes. The processor calls the program codes stored in the memory to execute the protocol detection method.
In networking, as shown in fig. 3, three MDC devices, namely, an MDC device 1, an MDC device 2, and an MDC device 3, are preset in the network device. The MDC device 1 corresponds to the local area network 1, the MDC device 2 corresponds to the local area network 2, and the MDC device 3 corresponds to the local area network 3.
The protocol detection method, as shown in fig. 4, includes:
and S1, the processor of the network equipment receives the issued detection event.
The detection order aiming at the MDC equipment 1 and the detection order aiming at the MDC equipment 2 which are input by the management personnel in the upper computer are processed by the upper computer to form a detection event and are sent to the connected network equipment.
The detection event contains detection parameters, which include the packet sending frequency of the detection packet, the used packet header, the size of the detection packet and the detection time required for outputting the detection result.
In the probe event of the MDC device 1, the probe frequency is set to 20 mhz, and in the probe event of the MDC device 2, the probe frequency is set to 30 mhz.
S2, the processor determines the situation of the selected RTC according to the RTC information table stored in the memory, and executes S3 when the RTC information table is locked; when it is determined from the lock information of the RTC information table that the RTC is not locked and it is determined from the reference count that there is no detection event referring to the RTC, S4 is performed; when the processor determines that the RTC is referenced according to the reference count with the lock information in the RTC information table being unlocked, S9 is executed.
A plurality of RTCs are preset in the forwarding chip, wherein one RTC used for realizing protocol detection is contained and is called as a detection RTC. After the probing RTC is selected, probing of each MDC device is performed based on the frequency of the RTC.
A RTC information table generated for the probe RTC is stored in memory, containing reference count, current frequency and lock information. Where the reference count is used to indicate the number of MDC devices currently referencing the probe RTC, the current frequency is the frequency set based on one probe event, where the current frequency would be set as the maximum frequency for the MDC devices. The lock information is used to indicate whether the RTC information table of the detection RTC is currently modified by the detected event, and a value of the lock information is "1" to indicate that the detection RTC is currently modified by the detected event, and "0" to indicate that the detection RTC is currently not modified by the detected event.
During initialization, the reference count is 0, the current frequency is 0, and the lock information is 0.
S3, the processor writes the detection event into the waiting queue.
When the processor processes the detection event of the MDC device 1, the lock information in the RTC information table is set to 1, and the RTC information table is locked, and at this time, when the processor starts to process the detection event of the MDC device 2, the processor determines that the RTC information table is already locked, and writes the detection event of the MDC device 2 into the waiting queue.
S4, the processor acquires the detection frequency in the detection event and the frequency peak value of the detection RTC, calculates the maximum frequency of the detection RTC when the detection is carried out, and updates the reference count in the RTC information table.
The processor acquires the peak frequency value of the probing RTC of 70 mhz according to the probing event of the MDC device 1, and calculates the maximum frequency of 60 mhz according to the probing frequency of 20 mhz of the MDC device 1. The maximum frequency is written to the current frequency of the RTC information table and the reference count is incremented by 1. After the RTC information table is written, the lock information is reset to 0, which indicates that the modification of the RTC information table is completed.
And S5, the processor calculates the frequency division value of the detection event according to the calculated maximum frequency and the detection frequency.
After the maximum frequency of the detection RTC is determined, since the maximum frequency is not the detection frequency of the detection message sent by the forwarding chip, a frequency division value needs to be calculated according to the maximum frequency, and the detection frequency of the detection message sent in the detection event can be realized according to the frequency division value. For a probing RTC with a maximum frequency of 60 mhz, the probing frequency 20 mhz of the MDC device 1 is one third of 60 mhz, so that the frequency division value of the MDC device 1 is one third. That is, when the current frequency of the probe RTC is set to the maximum frequency calculated based on the MDC device 1, the probe message is transmitted at one third of the maximum frequency.
And S6, the processor issues the detection information table to the memory, and issues the OAM table to the forwarding chip to enable the RTC.
When the maximum frequency is calculated according to the detection frequency and the frequency peak value of the detection RTC, and the frequency division value is determined according to the maximum frequency and the detection frequency, an OAM table can be issued to the forwarding chip to start detection. The detection information table stores detection parameters corresponding to detection events of each MDC device, including detection frequency, size of a detection packet, header information of the detection packet, the detection event, and the like, and the OAM table records the detection parameters and a frequency division value of the detection event for one MDC device. That is, in one probe information table, probe parameters of probe events of a plurality of MDC devices are recorded, and in one OAM table, parameters corresponding to probe events of one MDC device are recorded, but there is one independent OAM table for probe events of each MDC device.
At this time, the processor will generate an entry for the detection event of the MDC device 1 to store in the detection information table, and issue an OAM table for the MDC device 1 on the forwarding chip.
And S7, the forwarding chip starts protocol detection based on the OAM issued by the processor, and sends a detection message outwards according to the maximum frequency and the frequency division value of the RTC.
S8, the processor sets the lock information in the RTC information table as unlocked and judges whether there is a detection event in the waiting queue. If so, the probe event in the wait queue is read and re-executed S2; if not, S10 is executed.
After starting the probing for the MDC device 1, it is possible to avoid that multiple MDC devices repeatedly modify the reference count. At this time, since the reference count is set to 1, it indicates that there is a detection event referencing the detection RTC, that is, the MDC device 1 is referencing the detection RTC to send a detection message. At this point, the process jumps to S9.
And S9, the processor acquires the stored current frequency according to the RTC information table, and judges whether the current frequency is a multiple of the detection frequency according to the current frequency and the detection frequency carried in the detection event of the MDC equipment. When the current frequency is a multiple of the probing frequency, performing S5; and writing the detection event into a waiting queue when the current frequency is not a multiple of the detection frequency. For example, if a probe event is received for the MDC device 3, and the probe frequency included in the probe parameters is 40 mhz, the probe event needs to be written into the wait queue.
Since the probing frequency of the MDC device 2 is 30 mhz and the current frequency of the probing RTC is 60 mhz, the frequency division value can be determined to be one-half by determining that 60 mhz is a multiple of 30 mhz. Thereafter, in the same manner as the MDC device 1, the processor writes the relevant probe parameters of the MDC device 2 into the probe information table of the memory, generates an OAM table for the MDC device 2, and issues the OAM table to the forwarding chip.
At this time, since the frequency of the probe RTC is not modified, re-probing for the MDC device 1 is not caused, and only the frequency division value needs to be modified to complete probing of the MDC device 2 based on the current frequency of the probe RTC.
S10, when the processor determines that the reference count in the RTC information table is set to 0 and waits for no detection event in the queue, the RTC is enabled.
After the detection of the RTC is enabled, the detection RTC stops working, the information in the RTC information table is reset to the initialized value, and the subsequent protocol detection is waited.
Correspondingly, the present application also provides a protocol detecting apparatus, as shown in fig. 5, including:
a receiving unit, configured to receive a detection event issued by an MDC device;
the determining unit is used for determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC;
the calculating unit is used for determining a frequency division value of the detection event according to the detection parameters and the maximum frequency;
and the detection unit is used for starting protocol detection of the MDC equipment based on the frequency division value and the maximum frequency.
Optionally, the determining unit is specifically configured to determine, when it is determined that the RTC is not referred to according to the reference count, a maximum frequency according to the detection parameter carried in the detection event and the frequency peak of the RTC; when the RTC is determined to be referenced from the reference count, a divide down value for the MDC device is determined from the current frequency of the RTC.
Further, the determining unit is further specifically configured to determine a frequency division value for the MDC device according to the current frequency of the RTC when it is determined that the RTC is referenced according to the reference count and the current frequency of the RTC is a multiple of the preset frequency of the MDC device; when the RTC is referred according to the reference count and the current frequency of the RTC is not a multiple of the preset frequency of the MDC device, the detection event is written into the waiting queue.
Optionally, as shown in fig. 6, the apparatus further includes:
a locking unit for writing a detection event into the wait queue when it is determined that the RTC is locked; when the RTC is determined not to be locked, the determining unit determines the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC of the real-time clock.
Further, the apparatus further comprises:
the counting unit is used for adjusting the reference count, when the protocol detection is started, the reference count is increased, and when the protocol detection is finished, the reference count is decreased;
an enabling unit for enabling or disabling the RTC, wherein the RTC is placed in an enabling state when the reference count is not 0, and the RTC is placed in a disabling state when the reference count is 0.
In this embodiment of the present specification, through the above apparatus and network device, the operating frequency of the RTC is directly set as the maximum frequency according to the detection parameter configured for the MDC device and the frequency peak of the RTC, so as to avoid a problem that the detection result is inaccurate due to the fact that the modification of the operating frequency of the RTC may exceed the frequency peak of the RTC in the case of multiple MDC devices. When the MDC can accurately perform protocol detection, the network device can more reasonably set the performance of the link to which the network device belongs according to the accurate detection, so that the network device can operate more reliably.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (11)

1. A protocol probing method, comprising:
receiving a detection event issued by MDC equipment in a multi-tenant equipment environment;
determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the real-time clock RTC;
determining a frequency division value of the detection event according to the detection parameter and the maximum frequency;
and starting protocol detection of the MDC equipment based on the frequency division value and the maximum frequency.
2. The method according to claim 1, wherein the determining a maximum frequency according to the detection parameter carried in the detection event and a frequency peak of a real-time clock (RTC) comprises:
when the RTC is determined not to be referred according to the reference count, determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC;
when the RTC is determined to be referenced from the reference count, a divide-by value for the detection event is determined from a maximum frequency of the RTC.
3. The method of claim 2, wherein determining the divider value for the MDC device according to the maximum frequency of the RTC comprises:
when the maximum frequency of the RTC is a multiple of the detection frequency of the MDC equipment, determining a frequency division value aiming at the detection event according to the maximum frequency of the RTC;
when the maximum frequency of the RTC is not a multiple of the detection frequency of the MDC equipment, writing the detection event into a waiting queue.
4. The method according to claim 1, before determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak of the RTC, further comprising:
when it is determined that the RTC is locked, the probe event is written to a wait queue.
5. The method of claim 3 or 4, further comprising:
upon ending protocol probing, decrementing the reference count;
when the decremented reference count is 0 and there is no detection event in the wait queue, the RTC is disabled, wherein the RTC is enabled upon initiating protocol detection.
6. A protocol probing apparatus, comprising:
a receiving unit, configured to receive a detection event issued by an MDC device;
the determining unit is used for determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC;
the calculation unit is used for determining a frequency division value of the detection event according to the detection parameter and the maximum frequency;
and the detection unit is used for starting protocol detection of the MDC equipment based on the frequency division value and the maximum frequency.
7. The apparatus according to claim 6, wherein the determining unit is specifically configured to determine, when it is determined that the RTC is not referenced according to the reference count, a maximum frequency according to the detection parameter carried in the detection event and a frequency peak of the RTC; when the RTC is determined to be referenced from the reference count, a divide-by value for the detection event is determined from a maximum frequency of the RTC.
8. The apparatus according to claim 7, wherein the determining unit is further specifically configured to determine a frequency division value for the probing event according to the maximum frequency of the RTC when the RTC is determined to be referenced according to the reference count and the maximum frequency of the RTC is a multiple of the probing frequency of the MDC device; when the RTC is referred according to the reference count and the maximum frequency of the RTC is not a multiple of the detection frequency of the MDC device, writing the detection event into a waiting queue.
9. The apparatus of claim 6, further comprising:
a locking unit, configured to write the detection event into a wait queue when it is determined that the RTC is locked; when the RTC is determined not to be locked, the determining unit determines the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC.
10. The apparatus of claim 8 or 9, further comprising:
the counting unit is used for adjusting the reference count, when protocol detection is started, the reference count is increased, and when the protocol detection is finished, the reference count is decreased;
an enabling unit, configured to enable or disable the RTC, where when the reference count is not 0, the RTC is placed in an enabled state, and when the reference count is 0 and there is no detection event in the waiting queue, the RTC is placed in a disabled state.
11. A network device comprising a processor, a memory, and a forwarding chip;
the processor is used for calling the program codes stored in the memory and executing the following operations:
receiving a detection event issued by the MDC equipment;
determining the maximum frequency according to the detection parameters carried in the detection event and the frequency peak value of the RTC acquired from the forwarding chip;
determining a frequency division value of the detection event according to the detection parameter and the maximum frequency;
updating a detection information table in the memory and an operation, administration and maintenance (OAM) table in the forwarding chip according to the detection event and the maximum frequency, and setting a frequency division value in the OAM table;
and triggering the forwarding chip to perform detection aiming at the MDC equipment according to the OAM table.
CN202010892802.3A 2020-08-31 2020-08-31 Protocol detection method, device and network equipment Active CN112073264B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010892802.3A CN112073264B (en) 2020-08-31 2020-08-31 Protocol detection method, device and network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010892802.3A CN112073264B (en) 2020-08-31 2020-08-31 Protocol detection method, device and network equipment

Publications (2)

Publication Number Publication Date
CN112073264A true CN112073264A (en) 2020-12-11
CN112073264B CN112073264B (en) 2022-09-02

Family

ID=73664796

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010892802.3A Active CN112073264B (en) 2020-08-31 2020-08-31 Protocol detection method, device and network equipment

Country Status (1)

Country Link
CN (1) CN112073264B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162830A (en) * 2021-06-15 2021-07-23 杭州海康威视数字技术股份有限公司 Internet of things intelligent terminal equipment discovery method and device and electronic equipment

Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070064679A1 (en) * 2005-09-20 2007-03-22 Intel Corporation Jitter buffer management in a packet-based network
CN101937416A (en) * 2010-09-09 2011-01-05 苏州华芯微电子股份有限公司 PS2 (Personal System 2) protocol logic analyzer realized based on FPGA (Field Programmable Gate Array)
CN101977104A (en) * 2010-11-13 2011-02-16 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102176112A (en) * 2010-11-29 2011-09-07 江苏林洋电子股份有限公司 Method for achieving accurate clock timing by arranging RTC (real time clock) in MCU (micro control unit)
CN102664726A (en) * 2012-04-26 2012-09-12 华为技术有限公司 Precision time protocol (PTP) clock source switching method, master and slave clock devices and system
CN102970316A (en) * 2012-02-15 2013-03-13 中国人民解放军海军航空工程学院 Real-time propelling multi-platform mixed communication mechanism
CN103092062A (en) * 2013-01-28 2013-05-08 成都天奥电子股份有限公司 Method and system used for real-time clock chip accuracy adjustment
US8446846B1 (en) * 2007-02-02 2013-05-21 Radisys Canada Ulc Method of passing signal events through a voice over IP audio mixer device
US20140351449A1 (en) * 2011-04-05 2014-11-27 Blackberry Limited System and method for applying authentication and security policies in a sip environment
CN104917580A (en) * 2014-03-14 2015-09-16 华为技术有限公司 Clock synchronization detection method, device and system
CN106254370A (en) * 2016-08-30 2016-12-21 成都源知信息技术有限公司 A kind of network equipment fingerprint generation method and detecting devices
CN106935002A (en) * 2017-03-13 2017-07-07 广东合正网络技术有限公司 USB network warning system and its remote information exchange method based on network machine top box
CN106936910A (en) * 2017-03-13 2017-07-07 广东合正网络技术有限公司 USB network warning system and its remote information exchange method based on PON gateways
CN107948984A (en) * 2017-11-13 2018-04-20 中国电子科技集团公司第三十研究所 A kind of cognitive system combined based on main passive perception suitable for self-organizing network
CN109581856A (en) * 2018-12-13 2019-04-05 国电南瑞科技股份有限公司 A kind of punctual method of clock synchronization based on the calibration of high-performance crystal oscillator frequency
CN109990920A (en) * 2019-04-17 2019-07-09 中国科学院新疆理化技术研究所 A method of in nuclear radiation environment test testing temperature information
CN110380724A (en) * 2019-07-26 2019-10-25 北京智芯微电子科技有限公司 RTC clock frequency-temperature compensation chip

Patent Citations (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070064679A1 (en) * 2005-09-20 2007-03-22 Intel Corporation Jitter buffer management in a packet-based network
US8446846B1 (en) * 2007-02-02 2013-05-21 Radisys Canada Ulc Method of passing signal events through a voice over IP audio mixer device
CN101937416A (en) * 2010-09-09 2011-01-05 苏州华芯微电子股份有限公司 PS2 (Personal System 2) protocol logic analyzer realized based on FPGA (Field Programmable Gate Array)
CN101977104A (en) * 2010-11-13 2011-02-16 上海交通大学 IEEE1588 based accurate clock synchronization protocol system and synchronization method thereof
CN102176112A (en) * 2010-11-29 2011-09-07 江苏林洋电子股份有限公司 Method for achieving accurate clock timing by arranging RTC (real time clock) in MCU (micro control unit)
US20140351449A1 (en) * 2011-04-05 2014-11-27 Blackberry Limited System and method for applying authentication and security policies in a sip environment
CN102970316A (en) * 2012-02-15 2013-03-13 中国人民解放军海军航空工程学院 Real-time propelling multi-platform mixed communication mechanism
CN102664726A (en) * 2012-04-26 2012-09-12 华为技术有限公司 Precision time protocol (PTP) clock source switching method, master and slave clock devices and system
CN103092062A (en) * 2013-01-28 2013-05-08 成都天奥电子股份有限公司 Method and system used for real-time clock chip accuracy adjustment
CN104917580A (en) * 2014-03-14 2015-09-16 华为技术有限公司 Clock synchronization detection method, device and system
CN106254370A (en) * 2016-08-30 2016-12-21 成都源知信息技术有限公司 A kind of network equipment fingerprint generation method and detecting devices
CN106935002A (en) * 2017-03-13 2017-07-07 广东合正网络技术有限公司 USB network warning system and its remote information exchange method based on network machine top box
CN106936910A (en) * 2017-03-13 2017-07-07 广东合正网络技术有限公司 USB network warning system and its remote information exchange method based on PON gateways
CN107948984A (en) * 2017-11-13 2018-04-20 中国电子科技集团公司第三十研究所 A kind of cognitive system combined based on main passive perception suitable for self-organizing network
CN109581856A (en) * 2018-12-13 2019-04-05 国电南瑞科技股份有限公司 A kind of punctual method of clock synchronization based on the calibration of high-performance crystal oscillator frequency
CN109990920A (en) * 2019-04-17 2019-07-09 中国科学院新疆理化技术研究所 A method of in nuclear radiation environment test testing temperature information
CN110380724A (en) * 2019-07-26 2019-10-25 北京智芯微电子科技有限公司 RTC clock frequency-temperature compensation chip

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"《国防科技大学学报》2013年总目次", 《国防科技大学学报》 *
G. MARSHALL等: "Security Audit and Access Accountability Message XML Data Definitions for Healthcare Applications", 《IETF RFC3881》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113162830A (en) * 2021-06-15 2021-07-23 杭州海康威视数字技术股份有限公司 Internet of things intelligent terminal equipment discovery method and device and electronic equipment

Also Published As

Publication number Publication date
CN112073264B (en) 2022-09-02

Similar Documents

Publication Publication Date Title
US20190324797A1 (en) Task processing method, apparatus, and system
US20180375726A1 (en) Resource Configuration Method, Virtualized Network Function Manager, and Element Management System
CN111800354B (en) Message processing method and device, message processing equipment and storage medium
US20100228843A1 (en) Element management system in wireless communication network
TWI429236B (en) Coordinated timing network configuration parameter update procedure
JP2001313670A (en) Method for managing network
CN105740326A (en) Thread state monitoring method and device for browser
CN112073264B (en) Protocol detection method, device and network equipment
CN110471749A (en) Task processing method, device, computer readable storage medium and computer equipment
WO2019144803A1 (en) Traffic statistics method and apparatus, storage medium, and electronic apparatus
CN110971591A (en) Method and system for multi-process access to trusted application
WO2016058409A1 (en) Method and apparatus for controlling message transmission and network function virtualization system
WO2023155699A1 (en) Method and apparatus for mining security vulnerability of air interface protocol, and mobile terminal
CN110309036B (en) CPU occupancy rate detection method and detection equipment
JP2000222376A (en) Computer system and method for operating the same
US20220045874A1 (en) Charging processing method and system, and related device
CN114756356A (en) Task processing method, work node device, main node device and storage medium
WO2022062347A1 (en) Data transmission method and apparatus, and electronic device and storage medium
Cisco Using IPM
Cisco Using IPM
CN110659299B (en) Data updating method and device and front-end development client
CN110061886B (en) Prepress network management system based on SNMP
EP3837808B1 (en) Management model for network equipment performance measurements
KR101578626B1 (en) Method for processing bundle message between controller and network equipment
WO2011134255A1 (en) Method for processing service board switch and framework control apparatus

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