CN115765924B - 2M channel service detection method, system, device and storage medium - Google Patents
2M channel service detection method, system, device and storage medium Download PDFInfo
- Publication number
- CN115765924B CN115765924B CN202211332289.8A CN202211332289A CN115765924B CN 115765924 B CN115765924 B CN 115765924B CN 202211332289 A CN202211332289 A CN 202211332289A CN 115765924 B CN115765924 B CN 115765924B
- Authority
- CN
- China
- Prior art keywords
- channel
- data stream
- data
- service
- traffic
- 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
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 82
- 230000005540 biological transmission Effects 0.000 claims abstract description 57
- 238000000034 method Methods 0.000 claims description 17
- 238000004891 communication Methods 0.000 abstract description 10
- 238000012423 maintenance Methods 0.000 abstract description 7
- 238000004458 analytical method Methods 0.000 abstract description 3
- 230000008054 signal transmission Effects 0.000 description 8
- 230000011664 signaling Effects 0.000 description 6
- 238000010586 diagram Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000007726 management method Methods 0.000 description 4
- 239000000523 sample Substances 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000017525 heat dissipation Effects 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 239000000284 extract Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000011897 real-time detection Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000007723 transport mechanism Effects 0.000 description 1
- 239000002699 waste material Substances 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Time-Division Multiplex Systems (AREA)
Abstract
The invention discloses a 2M channel service detection method, a 2M channel service detection system, a 2M channel service detection device and a 2M channel service detection storage medium, and relates to the technical field of communication. The 2M channel service detection device of the embodiment of the invention is accessed to the port of the related equipment in the 2M channel transmission line, the 2M channel is determined and displayed to be in an idle state when the data stream of the port is not received through the analysis of the data stream of the port by the 2M channel service detection device, and the 2M channel service detection is carried out according to the frame structure of the 2M channel and the data structure of the data stream when the data stream is received, and the 2M channel service detection result is displayed, so that maintainers can conveniently know whether the current port is effectively transmitting data and the specific service type of transmission, and the maintainers can conveniently carry out subsequent maintenance.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, a system, an apparatus, and a storage medium for detecting a service of a 2M channel.
Background
The 2M channel transmission has the characteristics of safety, reliability and the like, is still a main communication means of each security department at present, and is used for carrying out communication of key services such as command, conference and the like and important services, and the quantity of the communication is very large. The existing 2M channel resource is basically opened and maintained by manual management, and the passive DDF distribution frame is generally adopted for switching among different sites and different buildings, so that the port service condition of related equipment on a 2M channel transmission line can not be perceived, and the 2M channel transmission line is difficult to maintain.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides a 2M channel service detection method, a system, a device and a storage medium, which can improve the maintenance efficiency of a 2M channel transmission line.
In one aspect, an embodiment of the present invention provides a service detection method for a 2M channel, including the following steps:
receiving a 2M channel detection instruction to capture a data stream in a 2M channel;
Judging whether the data stream is received or not;
when the data stream is not received, determining that the 2M channel is in an idle state and displaying;
and when the data stream is received, carrying out 2M channel service detection according to the frame structure of the 2M channel and the data structure of the data stream, and obtaining and displaying the 2M channel transmission service.
According to some embodiments of the invention, the determining whether the data stream is received comprises the steps of:
acquiring a level signal of a detection interface;
When the level signal is continuously smaller than a level threshold value within a preset time period, determining that the data stream is not received;
and when the level signal is greater than a level threshold value within a preset time period, determining that the data stream is received.
According to some embodiments of the present invention, the performing 2M channel traffic detection according to the frame structure of the 2M channel and the data structure of the data stream, to obtain the 2M channel transmission traffic includes the following steps:
determining a multiframe signal in the data stream based on multiframe time slots of a PCM30 frame structure;
judging whether the multiframe signal accords with a first preset content or not;
When the multi-frame signal accords with the first preset content, determining that the transmission service of the 2M channel is a voice service;
and when the multiframe signal does not accord with the first preset content, determining the transmission service of the 2M channel according to the data structure of the data stream.
According to some embodiments of the invention, the determining the transmission traffic of the 2M channel according to the data structure of the data stream comprises the steps of:
judging whether the data structure of the data stream accords with a preset protocol format or not;
when the data structure of the data stream accords with a preset protocol format, the transmission service of the 2M channel is a voice service or a network service;
and when the data structure of the data stream does not accord with a preset protocol format, the transmission service of the 2M channel is video service.
According to some embodiments of the invention, the determining whether the data structure of the data stream conforms to a preset protocol format includes the following steps:
analyzing the data stream based on a preset protocol format;
when the data stream is successfully analyzed, the data structure of the data stream accords with the preset protocol format;
when the data stream can not be successfully analyzed, processing the data stream according to a preset operation;
When the data stream processed according to the preset operation is successfully analyzed, the data structure of the data stream accords with the preset protocol format;
And when the data stream processed according to the preset operation cannot be successfully analyzed, the data structure of the data stream does not accord with the preset protocol format.
According to some embodiments of the invention, the processing the data stream according to a preset operation includes the steps of:
and shifting each time sequence data of the data stream by a plurality of bits to the right.
According to some embodiments of the present invention, the 2M channel service detection is performed according to the frame structure of the 2M channel and the data structure of the data stream, and the obtaining the 2M channel transmission service further includes the following steps:
And if the frame structure of the 2M channel is a non-frame structure and the data structure of the data stream accords with a preset protocol format, the transmission service of the 2M channel is a network service.
On the other hand, the embodiment of the invention also provides a service detection system of the 2M channel, which comprises:
A first module for receiving a 2M channel sounding instruction to capture a data stream in a 2M channel;
a second module for judging whether the data stream is received;
A third module, configured to determine that the 2M channel is in an idle state and display the idle state when the data stream is not received;
and a fourth module, configured to, when the data stream is received, perform service detection of the 2M channel according to the frame structure of the 2M channel and the data structure of the data stream, obtain a transmission service of the 2M channel, and display the transmission service.
On the other hand, the embodiment of the invention also provides a service detection device of the 2M channel, which comprises:
at least one processor;
At least one memory for storing at least one program;
the at least one program, when executed by the at least one processor, causes the at least one processor to implement the 2M channel traffic detection method as described above.
In another aspect, embodiments of the present invention further provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the traffic detection method of a 2M channel as described above.
The technical scheme of the invention has at least one of the following advantages or beneficial effects: the 2M channel service detection device of the embodiment of the invention is accessed to the port of the related equipment in the 2M channel transmission line, the 2M channel is determined and displayed to be in an idle state when the data stream of the port is not received through the analysis of the data stream of the port by the 2M channel service detection device, and the 2M channel service detection is carried out according to the frame structure of the 2M channel and the data structure of the data stream when the data stream is received, and the 2M channel service detection result is displayed, so that maintainers can conveniently know whether the current port is effectively transmitting data and the specific service type of transmission, and the maintainers can conveniently carry out subsequent maintenance.
Drawings
Fig. 1 is a flowchart of a service detection method of a 2M channel according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a non-frame structure format provided by an embodiment of the present invention;
fig. 3 is a schematic diagram of a PCM30 frame structure format according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a PCM31 frame structure format according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of HDLC protocol format provided in an embodiment of the present invention;
Fig. 6 is a schematic diagram of a service detection apparatus for a 2M channel according to an embodiment of the present invention;
fig. 7 is a flowchart of a 2M channel traffic detection method according to another embodiment of the present invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein the same or similar reference numerals refer to the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, it should be understood that the direction or positional relationship indicated with respect to the description of the orientation, such as up, down, left, right, etc., is based on the direction or positional relationship shown in the drawings, is merely for convenience of describing the present invention and simplifying the description, and does not indicate or imply that the apparatus or element to be referred to must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention.
In the description of the present invention, the description of first, second, etc. is for the purpose of distinguishing between technical features only, and should not be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated or implicitly indicating the precedence of the technical features indicated.
After the communication machine room 2M channel resource and the DDF frame port are used for a long time, the problems of misrecording, neglected recording and the like are unavoidable in the processes of personnel recording, updating, management and maintenance. Especially for large and medium-sized communication machine rooms, a large number of idle 2M channels and idle DDF frame ports are easy to appear, and the problems of unclear and inaccurate resource data and the like in the manual maintenance process are not dared to be removed, so that channel resource waste is caused.
Based on the above, the embodiment of the invention can quickly and accurately identify the service transmitted by the 2M channel by using the service detection device of the 2M channel under the condition of not influencing the communication service, so as to facilitate maintenance and management of the 2M channel transmission line by maintenance personnel.
Before further describing the embodiment of the present application in detail, the description of the 2M channel related to the embodiment of the present application is specifically as follows:
There are 5 kinds of 2M frame structures, the first is a non-frame structure, the second is a PCM30 frame structure, the third is a PCM31 frame structure, the fourth is a PCM30 CRC frame structure, and the fifth is a PCM31 CRC frame structure.
The non-frame structure of reference map 2,2M is mainly transmitted with data, and is characterized by only 10 slot per frame, and the remaining 31 slots are not distinguished.
Referring to fig. 3 and 4, the PCM30 frame structure can transmit information of 30 channels at maximum, and the PCM31 frame structure can transmit information of 31 channels at maximum. The PCM30 frame structure is typically used for traffic for signaling number 1 (channel associated signaling). The main characteristic is that the 16 th time slot transmits signaling number 1, multi-frame signal and multi-frame alarm, and one multi-frame contains 16 subframes.
The PCM31 frame structure is generally used for signaling circuit 7 (i.e. common-path signaling), and is characterized in that 31 time slots can be used for service information, and PCM31 has no multiframe signal.
The PCM30 CRC frame structure differs from PCM30 in that there are more CRC check bytes. Also, the PCM30 CRC frame structure has more CRC check bytes than the PCM31 frame structure.
Before further describing the embodiment of the present application in detail, the HDLC protocol format related to the embodiment of the present application is described as follows:
advanced data link Control (HDLC) is a bit oriented data link layer protocol for transmitting data over synchronous networks, developed by International Standardization Organization (ISO) according to IBM corporation's SDLC (Synchronous Data Link Control) protocol.
The HDLC frame consists of 6 fields as shown in fig. 5. Both ends of the frame end with a flag field (F), and the transmitted data is contained in an information field (INFO).
The frame flag F, HDLC uses a fixed flag field 01111110 as the frame boundary. The receiving end starts to receive the frame when detecting an F mark, and the frame is considered to be ended if the F mark is found in the receiving process. The transmitted data may contain the same field as the flag field, which may cause the receiving end to end the data transmission by mistake, and in order to prevent this, a bit stuffing technique is introduced. The transmitting station inserts a 0 at bit 7 once there are 5 1's after finding a 0 in the transmitted data bit sequence. The receiving end performs the opposite operation, if the receiving end finds that there are 51 s behind 0, the 7 th bit is checked, and if the 0 is the 7 th bit, the 0 is deleted; if 1 and bit 8 is 0, then it is considered to be the flag field F, thus ensuring that there are no fields in the data bits that are identical to the flag field.
An address field a, which is used in the multi-drop link to store the address of the slave station. The general address field is 8 bits long, and longer addresses can be extended, but are all integer multiples of 8. The least significant bit of each 8-bit group indicates whether the 8-bit is the end of the address field: 1 represents the last 8 bits group; 0 means that there is an address group following, and the remaining 7 bits represent the entire extension field.
The control field C, HDLC defines 3 different frames, which can be distinguished according to the control field, and information frames (l frames) are used not only to transmit data but also to piggyback acknowledgement signals for flow control and error control. Management frames (S-frames) are transmission processes that manage frame control without the use of a piggyback mechanism. Unnumbered frames (U frames) have control functions for various links. The control field uses the first 1 bit or the first 2 bits to distinguish frames of different formats, the basic control field length being 8 bits. The extended control field is 16 bits.
The information field INFO, the I frame and a part of the U frame contain control fields. This field may contain all bit sequences of user data, without limitation in length, but in use typically defines the length.
Check field FCS, which contains a check of address field, control field, information field, but does not include a flag field. The general check field uses a CRCCCITT standard check sequence of 16 bits, and can also use a CRC-32 check sequence of 32 bits.
The embodiment of the invention provides a 2M channel service detection method, which is applied to a 2M channel service detection device shown in fig. 6, wherein the 2M channel service detection device comprises one or more processors and a memory, and the processors and the memory can be connected through a bus or other modes. The memory, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs as well as non-transitory computer executable programs. In addition, the memory may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device.
In some embodiments, the memory optionally includes memory remotely located with respect to the control processor, the remote memory being connectable to the 2M channel traffic detection device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The non-transitory software program and instructions required for the 2M channel traffic detection method applied to the 2M channel traffic detection device are stored in the memory, and when executed by the processor, the 2M channel traffic detection method of the embodiment of the present invention is executed.
The service detection device of the 2M channel also comprises a detection interface which is used for accessing the ports of related equipment on the transmission line such as the distribution frame, and the like, and the data stream of the 2M channel in a period of time is collected and transmitted to the processor. The probe interface may be coupled to the processor through an LIU (LAN INTERFACE Unit, local area network interface Unit) chip. The processor of the embodiment of the invention can be a processor with the model RK3568, has high performance, low power consumption and high reliability, and can meet the requirement of channel real-time detection. The LIU chip selects an E1 signal interface chip with the model DS21448, high-resistance access is supported, and the detection interface can collect port data in a bypass access mode without influencing normal transmission service of a user.
The service detection device of the 2M channel further comprises a control panel, the control panel is connected with the processor, and the control panel can be a touch screen.
The 2M channel service detection device further comprises a display screen, wherein the display screen is connected with the processor and used for displaying 2M channel detection results, and the 2M channel comprising the port is in an idle state or an occupied state currently, and the 2M channel is in a current transmission service type, namely voice service, video service or network service and the like.
The service detection device of the 2M channel further comprises a heat dissipation unit, the heat dissipation unit comprises a temperature sensor and a fan, the temperature sensor is used for detecting the temperature value of the processor and sending the temperature value to the processor, and the processor controls the fan to work according to the temperature value.
The 2M channel traffic detection device further comprises a battery (not shown in the figure) for powering the processor, the fan, etc. in the 2M channel traffic detection device.
The traffic detection device of the 2M channel further comprises an indicator light for displaying an on or off state of the traffic detection device of the 2M channel.
The 2M channel service detection device is also provided with a network port or a serial port and is used for transmitting detection results to other devices.
It will be appreciated by those skilled in the art that the arrangement shown in fig. 6 does not constitute a limitation of the 2M channel traffic detection arrangement, and may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
Referring to fig. 1, the traffic detection method of the 2M channel according to the embodiment of the present invention includes, but is not limited to, step S110, step S120, step S130, and step S140.
Step S110, receiving a 2M channel detection instruction to capture a data stream in a 2M channel;
Step S120, judging whether a data stream is received;
Step S130, when the data stream is not received, determining that the 2M channel is in an idle state and displaying;
Step S140, when the data stream is received, the service detection of the 2M channel is performed according to the frame structure of the 2M channel and the data structure of the data stream, and the transmission service of the 2M channel is obtained and displayed.
In this embodiment, after the maintainer accesses the probe interface to the port, a 2M channel probe instruction may be input through the control panel. After receiving the 2M channel detection instruction, the processor starts to detect whether an I/O pin connected with the detection interface of the processor receives the data stream, if the data stream is not received, the processor indicates that the 2M channel on the port of the current distribution frame is in an idle state and displays the data stream, if the data stream is received, the processor indicates that the 2M channel on the port of the current distribution frame is in an occupied state, further based on the captured data stream, the 2M channel service detection is performed according to the frame structure of the 2M channel and the data structure of the data stream, and the 2M channel transmission service is obtained and displayed. In this embodiment, the embodiment of the present invention considers that different frame structures and data structures are adopted for different service types when signal transmission is performed, so that the embodiment of the present invention determines the service type of transmission in a channel by capturing a data stream in the channel for a certain period of time to determine the frame structure of a 2M channel and the data structure of the data stream, without analyzing specific transmission information in the data stream, and improves the security of user data.
According to some embodiments of the present invention, in step S120, the step of determining whether a data stream is received includes the steps of:
Step S210, obtaining a level signal of a detection interface;
step S220, when the level signal is continuously smaller than the level threshold value in the preset time period, determining that the data stream is not received;
In step S230, when the level signal is greater than the level threshold value in the preset period, it is determined that the data stream is received.
In this embodiment, whether the 2M channel is transmitting data may be determined by acquiring the level at the probe interface, and when the level signal is continuously less than the level threshold value in the preset time period, it is determined that the data stream is not received, and when the level signal is greater than or equal to the level threshold value in the preset time period, it is determined that the data stream is received.
In other embodiments, it may also be determined whether the 2M channel is in an idle state by detecting an LOS (LOSs Of Signal) alarm or an AIS (Alarm Indication Signal, signal alarm indication) alarm Signal Of the 2M channel, if an LOS alarm or an AIS alarm Signal is received, the 2M channel is in an idle state, and if no LOS alarm or AIS alarm Signal is received, the 2M channel is in an occupied state.
According to some embodiments of the present invention, in step S140, a step of performing 2M channel traffic detection according to a frame structure of a 2M channel and a data structure of a data stream to obtain a 2M channel transmission traffic includes the following steps:
Step S310, determining a multiframe signal in a data stream based on a multiframe time slot of a PCM30 frame structure;
Step S320, judging whether the multiframe signal accords with a first preset content;
Step S330, when the multiframe signal accords with the first preset content, determining that the transmission service of the 2M channel is a voice service;
Step S340, when the multiframe signal does not accord with the first preset content, the transmission service of the 2M channel is determined according to the data structure of the data stream.
In this embodiment, the main difference between the PCM30 frame structure and the PCM31 frame structure is that the 16 th time slot sent by the PCM30 frame structure is used for transmitting multiframe information, the multiframe signal adopts a specific format to perform multiframe synchronization notification, the 16 th time slot of the PCM31 frame structure is the same as most other time slots and is used for transmitting common user data, and the PCM31 frame structure does not have multiframe signals, so that the embodiment of the invention firstly assumes that a 2M channel adopts the PCM30 frame structure, extracts the multiframe signal of the multiframe time slot (such as the 16 th time slot) based on the PCM30 frame structure, and then compares the multiframe signal with a first preset content to determine whether the multiframe signal meets the actual multiframe signal format of the PCM30 frame structure, and if the multiframe signal meets the first preset content, which indicates that the 2M channel does adopt the PCM30 frame structure, determines that the transmission service of the 2M channel is voice service; if the multi-frame signal does not conform to the first preset content, the 2M channel is not in a PCM30 frame structure, but in a PCM31 frame structure, and the transmission service of the 2M channel is determined according to the data structure of the data stream.
It should be noted that, the type of the traffic transmitted by the PCM30 frame structure depends on the signal transmission end, which is generally a voice traffic, and may also be a video traffic or a network traffic, so determining that the 2M channel transmission traffic is a voice traffic by determining that the 2M channel transmission traffic adopts the PCM30 frame structure is only one embodiment of the present invention, and may also be a video traffic or a network traffic in combination with the actual situation of the signal transmission end.
According to some embodiments of the present invention, in step S340, determining the transmission traffic of the 2M channel according to the data structure of the data stream includes the steps of:
Step S410, judging whether the data structure of the data stream accords with a preset protocol format;
Step S420, when the data structure of the data stream accords with the preset protocol format, the transmission service of the 2M channel is a voice service or a network service;
in step S430, when the data structure of the data stream does not conform to the preset protocol format, the transmission service of the 2M channel is a video service.
According to some embodiments of the present invention, in step S410, the step of determining whether the data structure of the data stream conforms to a preset protocol format includes the following steps:
step S510, analyzing the data stream based on a preset protocol format;
step S520, when the data stream is successfully parsed, the data structure of the data stream accords with a preset protocol format;
step S530, if the data stream can not be successfully parsed, the data stream is processed according to a preset operation;
step S540, when the data stream processed according to the operation is successfully analyzed, the data structure of the data stream accords with a preset protocol format;
in step S550, when the data stream processed according to the operation cannot be successfully parsed, the data structure of the data stream does not conform to the preset protocol format.
In step S530, the step of processing the data stream according to the preset operation includes the following steps:
in step S610, each time series data of the data stream is shifted right by a number of bits.
In this embodiment, if the multiframe signal does not conform to the first preset content, the 2M channel adopts the PCM31 frame structure, and further analysis of the data structure of the data stream is required to determine the transmission service of the 2M channel, which is specifically as follows.
Analyzing the data stream according to the HDLC protocol format, if the data stream can be successfully analyzed, indicating that the data structure of the data stream accords with the HDLC protocol format, wherein the data structure transmits No. 7 signaling, and the corresponding transmitted service is voice service;
Analyzing the data stream according to the HDLC protocol format, if the data stream can not be successfully analyzed, indicating that the channel data protocol does not meet the HDLC protocol format, further carrying out shift processing on 1-31 time sequence data of the PCM31 frame structure, shifting the time sequence data by 1 bit to the right as a whole, then analyzing the data stream after shift operation according to the HDLC protocol format again, if the data structure of the shifted data stream can meet the HDLC protocol format, considering that the data stream meets the HDLC protocol format and is transmitted as network service, otherwise, considering that the data stream is video service.
It should be noted that, the type of service transmitted by the PCM31 frame structure depends on the signal transmission end, and generally, the PCM31 frame structure and the data format of the HDLC protocol are adopted to transmit the voice service or the network service (where the transmission end adds a plurality of bits to the network service to perform a shift process in the subsequent parsing protocol process), and the PCM31 frame structure and other data formats are adopted to transmit the video service, so that, based on determining that the 2M channel adopts the PCM31 frame structure, whether the data structure conforms to the preset protocol format or not determines that the transmission service corresponding to the 2M channel is only one embodiment of the present invention, and can also be determined in combination with the actual situation of the signal transmission end.
It should be noted that, the preset protocol format may be other protocol formats besides the HDLC protocol format, and may specifically be determined according to a data transmission rule of the signal transmission end.
According to some embodiments of the present invention, in step S140, the step of performing 2M channel traffic detection according to the frame structure of the 2M channel and the data structure of the data stream to obtain the 2M channel transmission traffic further includes the following steps:
In step S710, the frame structure of the 2M channel is a non-frame structure and the data structure of the data stream conforms to the preset protocol format, and the transmission service of the 2M channel is a network service.
Similarly, the type of the traffic transmitted in the non-frame structure depends on the signal transmission end, and the network traffic is generally transmitted in the data format of the non-frame structure and the HDLC protocol, so that the method of acquiring the data stream and judging that the frame structure of the 2M channel is in the non-frame structure and the data structure of the data stream accords with the HDLC protocol format to determine that the traffic corresponding to the 2M channel is the network traffic is only one embodiment of the present invention, and the method can also be determined as video traffic or voice traffic in combination with the actual situation of the signal transmission end.
An overall flow of a 2M channel traffic detection method according to an embodiment of the present invention will be described with reference to fig. 7.
Firstly, 2M channel data are collected to detect the channel, if the LOS/AIS alarm signals are received, the channel is displayed to be idle, otherwise, frame structure detection is carried out. And if the frame structure detection result is the PCM30 frame structure, displaying the voice service. If the frame structure detection result is the PCM30 frame structure, judging whether the data stream of the 16 th time slot accords with the HDLC protocol format, if so, displaying the voice service, if not, carrying out shift processing on the 1-31 time sequence data, and then judging whether the HDLC protocol format is met, if so, displaying the video service, and if not, displaying the network service. If the frame structure detection result is no frame structure, judging whether the data flow accords with the HDLC protocol format, if so, displaying network service, otherwise, displaying the service type unknown.
On the other hand, the embodiment of the invention also provides a service detection system of the 2M channel, which comprises:
A first module for receiving a 2M channel sounding instruction to capture a data stream in a 2M channel;
A second module for judging whether a data stream is received;
a third module, configured to determine that the 2M channel is in an idle state when the data stream is not received;
and a fourth module, configured to perform service detection of the 2M channel according to the frame structure of the 2M channel and the data structure of the data stream when the data stream is received, so as to obtain a transmission service of the 2M channel.
It can be understood that the content in the foregoing 2M channel service detection method embodiment is applicable to the system embodiment, and the functions specifically implemented by the system embodiment are the same as those in the foregoing 2M channel service detection method embodiment, and the beneficial effects achieved by the system embodiment are the same as those achieved by the foregoing 2M channel service detection method embodiment.
Furthermore, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions that are executed by one or more control processors, where the one or more control processors are caused to perform the method for detecting traffic of a 2M channel in the method embodiment.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention.
Claims (10)
1. A method for detecting traffic of a 2M channel, comprising the steps of:
receiving a 2M channel detection instruction to capture a data stream in a 2M channel;
Judging whether the data stream is received or not;
when the data stream is not received, determining that the 2M channel is in an idle state and displaying;
and when the data stream is received, carrying out 2M channel service detection according to the frame structure of the 2M channel and the data structure of the data stream, and obtaining and displaying the 2M channel transmission service.
2. The traffic detection method of 2M channel according to claim 1, wherein said determining whether the data stream is received comprises the steps of:
acquiring a level signal of a detection interface;
When the level signal is continuously smaller than a level threshold value within a preset time period, determining that the data stream is not received;
and when the level signal is greater than a level threshold value within a preset time period, determining that the data stream is received.
3. The method for detecting 2M channel traffic according to claim 1, wherein said detecting 2M channel traffic according to the frame structure of the 2M channel and the data structure of the data stream, obtaining the 2M channel transmission traffic comprises the steps of:
determining a multiframe signal in the data stream based on multiframe time slots of a PCM30 frame structure;
judging whether the multiframe signal accords with a first preset content or not;
When the multi-frame signal accords with the first preset content, determining that the transmission service of the 2M channel is a voice service;
and when the multiframe signal does not accord with the first preset content, determining the transmission service of the 2M channel according to the data structure of the data stream.
4. A method for traffic detection for a 2M channel according to claim 3, wherein said determining the transmission traffic for the 2M channel based on the data structure of the data stream comprises the steps of:
judging whether the data structure of the data stream accords with a preset protocol format or not;
when the data structure of the data stream accords with a preset protocol format, the transmission service of the 2M channel is a voice service or a network service;
and when the data structure of the data stream does not accord with a preset protocol format, the transmission service of the 2M channel is video service.
5. The traffic detection method of 2M channel according to claim 4, wherein said determining whether the data structure of the data stream conforms to a preset protocol format comprises the steps of:
analyzing the data stream based on a preset protocol format;
when the data stream is successfully analyzed, the data structure of the data stream accords with the preset protocol format;
when the data stream can not be successfully analyzed, processing the data stream according to a preset operation;
When the data stream processed according to the preset operation is successfully analyzed, the data structure of the data stream accords with the preset protocol format;
And when the data stream processed according to the preset operation cannot be successfully analyzed, the data structure of the data stream does not accord with the preset protocol format.
6. The traffic detection method of 2M channels according to claim 5, wherein said processing said data stream according to a preset operation comprises the steps of:
and shifting each time sequence data of the data stream by a plurality of bits to the right.
7. The method for detecting 2M channel traffic according to claim 1, wherein said detecting 2M channel traffic according to the frame structure of the 2M channel and the data structure of the data stream, obtaining the 2M channel transmission traffic further comprises the steps of:
And if the frame structure of the 2M channel is a non-frame structure and the data structure of the data stream accords with a preset protocol format, the transmission service of the 2M channel is a network service.
8. A traffic detection system for a 2M channel, comprising:
A first module for receiving a 2M channel sounding instruction to capture a data stream in a 2M channel;
a second module for judging whether the data stream is received;
A third module, configured to determine that the 2M channel is in an idle state and display the idle state when the data stream is not received;
and a fourth module, configured to, when the data stream is received, perform service detection of the 2M channel according to the frame structure of the 2M channel and the data structure of the data stream, obtain a transmission service of the 2M channel, and display the transmission service.
9. A traffic detection apparatus for a 2M channel, comprising:
at least one processor;
At least one memory for storing at least one program;
when the at least one program is executed by the at least one processor, the at least one processor is caused to implement the traffic detection method of a 2M channel according to any one of claims 1 to 7.
10. A computer-readable storage medium in which a processor-executable program is stored, characterized in that the processor-executable program is for implementing the traffic detection method of a 2M channel according to any one of claims 1 to 7 when being executed by the processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211332289.8A CN115765924B (en) | 2022-10-28 | 2022-10-28 | 2M channel service detection method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211332289.8A CN115765924B (en) | 2022-10-28 | 2022-10-28 | 2M channel service detection method, system, device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115765924A CN115765924A (en) | 2023-03-07 |
CN115765924B true CN115765924B (en) | 2024-06-14 |
Family
ID=85354951
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211332289.8A Active CN115765924B (en) | 2022-10-28 | 2022-10-28 | 2M channel service detection method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115765924B (en) |
Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009582A (en) * | 2006-01-24 | 2007-08-01 | 北京畅通达通信技术有限公司 | Real-time online monitoring method and device based on the 2M data circuit transfer quality |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE10232982B4 (en) * | 2002-07-19 | 2005-11-10 | Rohde & Schwarz Gmbh & Co. Kg | Method and arrangement for receiving-side detection of the associated data channels of time-multiplexed transmitted data signals |
CN101257444B (en) * | 2008-03-25 | 2010-10-27 | 华为技术有限公司 | System, device and method for transmitting packet data |
CN102420695B (en) * | 2010-09-27 | 2014-07-02 | 中国移动通信集团四川有限公司 | Access method and system of identification service at transmission marginal interface |
CN104579821B (en) * | 2014-12-04 | 2018-07-31 | 中国人民解放军91655部队 | The method and apparatus for detecting the frame structure form of the data frame of E1 links |
CN109088700B (en) * | 2018-08-30 | 2021-10-29 | 珠海泰芯半导体有限公司 | Wireless communication method |
CN112152721A (en) * | 2020-08-21 | 2020-12-29 | 内蒙古电力(集团)有限责任公司内蒙古超高压供电局 | SDH-based E1 optical service access method and device |
CN113810244B (en) * | 2021-08-18 | 2022-09-16 | 柳州达迪通信技术股份有限公司 | Idle channel identification system, method, device and storage medium |
-
2022
- 2022-10-28 CN CN202211332289.8A patent/CN115765924B/en active Active
Patent Citations (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101009582A (en) * | 2006-01-24 | 2007-08-01 | 北京畅通达通信技术有限公司 | Real-time online monitoring method and device based on the 2M data circuit transfer quality |
Non-Patent Citations (1)
Title |
---|
2M通道自动切换保护装置技术要求分析;赵阔;张渝;徐茂华;;电力系统通信;20120410(04);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN115765924A (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9742645B2 (en) | Method and apparatus for measuring performance of multi-service in tunnel | |
CN101015157B (en) | Alarm indication and suppression (ais) method and system in an Ethernet oam network. | |
CN106713074B (en) | Data network quality segmentation detection method based on business tine and system | |
WO2018171641A1 (en) | Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus | |
CN107517117B (en) | IP layer OAM (operation administration and maintenance) alarm method and device and network node | |
CN110601919A (en) | Loopback detection method and system | |
CN111130821B (en) | Power failure alarm method, processing method and device | |
CN114785874B (en) | Method for providing high-availability transmission channel based on multi-network protocol | |
WO2022262573A1 (en) | Method and apparatus for detecting fault of passive wavelength division device, and server and storage medium | |
EP4167530A1 (en) | Network monitoring method, electronic device and storage medium | |
CN107241216A (en) | Maintain the method and device of the stable transmission of critical data | |
CN115765924B (en) | 2M channel service detection method, system, device and storage medium | |
CN107070739A (en) | A kind of router operation troubles intelligent detecting method and system | |
CN101009582A (en) | Real-time online monitoring method and device based on the 2M data circuit transfer quality | |
CN114978939B (en) | Method for detecting network link quality | |
CN113949657B (en) | Internet of things detection device, system and test method | |
KR100605985B1 (en) | Initial Contection Signaling Method for Synchro-Ethernet Device | |
CN102149219A (en) | System and method for distinguishing service types of different types of terminals | |
CN116032355A (en) | Method and equipment for acquiring information of optical network system and optical network system | |
KR100257883B1 (en) | High level data link control method of communication packet destination and packet type detection device and method | |
US8407365B2 (en) | Method and system for autodiscovery of a network path | |
CN109649440B (en) | A kind of collecting method and system towards Train Approaching early warning system | |
KR100285709B1 (en) | Method for showing network conditions on the communication network management system | |
CN113068158A (en) | NVR and IPC automatic wireless code matching connection method | |
WO2012083756A1 (en) | Method and system for transmitting alerting information of tdm distal circuit emulation service |
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 |