FPGA-based signaling analysis device and method
The FPGA chip uses time division multiplexing to deeply analyze No. 7 signaling messages, which solves the problems of long analysis time and small bandwidth in the existing technology, achieves efficient multi-channel signaling analysis, and reduces equipment costs.
Patent Information
- Application Number
- CN202410976219.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-19
AI Technical Summary
When the existing No. 7 signaling system parses signaling messages, the messages are single and cannot flexibly configure multiple types of service messages. The parsing time is long and the bandwidth is small, resulting in high equipment costs and requiring multiple processors or servers. deal with.
The FPGA-based time division multiplexing method is used to perform in-depth analysis of multi-channel No. 7 signaling messages. The messages are stored and parsed in external memory through the parsing sub-module, matching sub-module and encapsulating sub-module to obtain keywords and timestamp information. and packet length, and encapsulates the message header according to the TLV format to achieve line-speed parsing.
It greatly shortens the message parsing time, increases the parsing bandwidth, reduces the workload of external servers, enables flexible parsing of multiple business messages, and reduces equipment costs.
Smart Images

Figure CN118509509B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication network technology, and in particular to a SS7 signaling parsing device and method based on FPGA. Background Art
[0002] The SS7 signaling system is a set of telecommunication protocols defined by ITU-T, which is mainly used to provide inter-office signaling for telephone companies. The SS7 signaling system uses common channel signaling technology, that is, out-of-band signaling technology, which provides an independent packet switching network for signaling services. As a widely used common channel signaling system, the SS7 signaling system plays an important role in the development of communication technology. It supports a variety of application scenarios, such as call forwarding, call waiting, call holding, etc., and provides telecommunication service functions such as billing and roaming. At the same time, the service analysis system based on SS7 provides mobile communication operators with the ability to monitor and analyze network operation in real time, which helps to improve network service quality and user experience.
[0003] In the related technical scheme, the processing method of the seventh signaling is to parse the signaling message from the business message received by the system's electrical interface or optical interface through an ASIC chip or FPGA chip, and send the signaling message to the system's processor or external server for further analysis, such as processing the key fields in the message. The business message supported by this technical scheme is single, and it is not possible to flexibly configure multiple types of business messages. The in-depth analysis of the message is completed by the processor or server. The message parsing time is relatively long, and the bandwidth of the message parsing is very small. Multiple processors or multiple servers are required for processing, resulting in high equipment costs. Summary of the invention
[0004] The purpose of the present application is to provide a SS7 signaling parsing device based on FPGA, which utilizes FPGA to implement in-depth parsing of multiple SS7 signaling messages through time division multiplexing, thereby improving the bandwidth of message parsing; and greatly shortens the message parsing time by storing messages while parsing.
[0005] Based on the above purpose, the present application provides a SS7 signaling parsing device based on FPGA, the device comprising:
[0006] At least one first parsing module, configured to parse the received service message based on the first strategy and obtain the first message carried in the service message;
[0007] An external memory, used to store the first message, and obtain a starting address of the first message in the external memory;
[0008] At least one second parsing module, the second parsing module includes a parsing submodule, a matching submodule and a packaging submodule, wherein:
[0009] A parsing submodule, configured to parse the first message to obtain the No. 7 signaling based on the second strategy and the time division multiplexing method while storing the first message in the external memory, and obtain keywords, timestamp information and packet length in the No. 7 signaling;
[0010] A matching submodule, used for performing rule matching according to a keyword and a preset rule matching table, obtaining a matching rule ID when the matching is successful, and reading a first message from an external memory according to a packet length and a starting address of the external memory;
[0011] The encapsulation submodule is used to encapsulate the keyword, timestamp information, matching rule ID and the first message in TLV format to obtain a second message.
[0012] Furthermore, the device includes multiple first parsing modules and multiple second parsing modules, and one of the multiple second parsing modules can parse the first messages output by the multiple first parsing modules, wherein the services supported by the first parsing module are at least one of the following: SDH, EOS, POS, and WAN.
[0013] Furthermore, the service supported by the first parsing module is SDH service, and the first parsing module is defined as an SDH parsing module. The SDH parsing module obtains TU12 / TU11 frames in the SDH service, obtains the No. 7 signaling based on the time slot indication in the TU12 / TU11 frame, and obtains the starting position and channel number of the No. 7 signal.
[0014] Furthermore, the service supported by the first parsing module is EOS service. The first parsing module is defined as an EOS parsing module. The EOS parsing module parses and obtains the Ethernet message in the EOS service. If there is an SCTP message in the Ethernet message, the SCTP message and the channel number are output to the parsing submodule, otherwise the Ethernet message is discarded.
[0015] Furthermore, the service supported by the first parsing module is POS service. The first parsing module is defined as a POS parsing module. The POS parsing module recovers Ethernet messages from the POS service through HDLC framing. If there is an SCTP message in the Ethernet message, the SCTP message and channel number are output to the parsing submodule, otherwise the Ethernet message is discarded.
[0016] Furthermore, the service supported by the first parsing module is WAN service, and the first parsing module is defined as a WAN parsing module. The WAN parsing module recovers the Ethernet message from the WAN service through Ethernet MAC framing. If there is an SCTP message in the Ethernet message, the SCTP message and channel number are output to the parsing sub-module, otherwise the Ethernet message is discarded.
[0017] Furthermore, the second strategy includes performing parsing based on the signaling transmission protocol, and the parsing submodule also includes a cache module, wherein:
[0018] A cache module is used to cache the SS7 signaling and / or SCTP message to an on-chip cache space corresponding to the channel number, and when the cached data length is the write data length of the external memory, read the data from the on-chip cache space and write it to the external memory;
[0019] The external memory is used to store the read data into the storage space corresponding to the channel number and obtain the starting address of the data in the external memory;
[0020] The parsing submodule uses the signaling transmission protocol to perform time division multiplexing parsing on the input multi-channel interleaved SCTP message to obtain the No. 7 signaling in the message, and extracts the keywords, timestamp information and packet length in the No. 7 signaling of the corresponding channel;
[0021] The matching submodule is used to match rules according to keywords and rule matching tables. When the match is successful, the offset position, data block length and matching rule ID of the data block in the SCTP message that hits the matching rule are obtained, and the seventh signaling and / or SCTP message is read from the external memory according to the packet length and the starting address of the external memory.
[0022] Furthermore, the encapsulation submodule encapsulates the offset position, data block length, matching rule ID, keyword and timestamp information of each data block that hits the matching rule as the message header of the second message in the TLV format, encapsulates the system 7 signaling and / or SCTP message as the value of the second message in the TLV format, and generates and outputs the second message.
[0023] Based on the above purpose, the present application provides a signaling analysis method based on FPGA, which includes:
[0024] Parsing the received service message based on the first strategy, and obtaining a first message carried in the service message;
[0025] Cache the first message and obtain the starting address of the first message in the external memory;
[0026] While caching the first message, the first message is parsed based on the second strategy and the time division multiplexing method to obtain the No. 7 signaling, and the keywords, timestamp information and packet length in the No. 7 signaling are obtained;
[0027] Perform rule matching according to the keyword and the preset rule matching table, obtain the successfully matched matching rule ID when the match is successful, and read the first message from the external memory according to the packet length and the starting address of the external memory;
[0028] The keyword, timestamp information, matching rule ID and the first message are encapsulated in TLV format to obtain a second message.
[0029] Based on the above purpose, the present application provides a communication device, including the FPGA-based SS7 signaling parsing device as described above.
[0030] The present application realizes the deep parsing function of the No. 7 signaling message through an FPGA chip, and can realize the parsing function of various business messages. While the message data is stored in an external memory, the multi-channel messages are further deeply parsed through a time division multiplexing method, and the key field information in the message is obtained for rule matching, thereby realizing the function of parsing the No. 7 signaling at line speed. The message caching and parsing can be performed simultaneously, which can greatly shorten the message parsing time and improve the bandwidth of the message parsing; the parsed keywords and rule IDs are encapsulated in the message header through TLV, effectively reducing the workload of the external server. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 It is a first system block diagram of a SS7 signaling parsing device based on FPGA provided according to an embodiment of the present application;
[0032] Figure 2 It is a second system block diagram of the SS7 signaling parsing device based on FPGA provided according to an embodiment of the present application;
[0033] Figure 3 It is a third system block diagram of the SS7 signaling parsing device based on FPGA provided according to an embodiment of the present application;
[0034] Figure 4 It is a schematic diagram of message parsing and caching synchronously provided according to an embodiment of the present application;
[0035] Figure 5 It is a first flow chart of the SS7 signaling parsing method based on FPGA provided in an embodiment of the present application;
[0036] Figure 6 It is a second flow chart of the FPGA-based No. 7 signaling parsing method provided according to an embodiment of the present application;
[0037] Figure 7 It is a system block diagram of a communication device provided according to an embodiment of the present application. DETAILED DESCRIPTION
[0038] The present application will be described in detail below in conjunction with the specific implementation modes shown in the accompanying drawings, but these implementation modes do not limit the present application. Structural, methodological, or functional changes made by ordinary technicians in the field based on these implementation modes are included in the protection scope of the present application.
[0039] Please refer to Figure 1 The present application provides a signaling parsing device based on FPGA, the device includes at least one first parsing module 11, at least one second parsing module 12 and an external memory 13, wherein the second parsing module 12 includes a parsing submodule 121, a matching submodule 122 and an encapsulation submodule 123. The first parsing module 11 parses the received service message based on the first strategy to obtain the first message carried in the service message. It can be understood that there are multiple implementation methods of the first strategy, and the implementation methods of the first strategy parsing are different based on the types of the received service messages. For example, if the received service message is of SDH type, the parsing method of the first strategy is based on the parsing method of the SDH frame structure. The external memory 13 caches the parsed first message and obtains the starting address of the first message in the external memory 13. The external memory 13 can be DDR. While the parsing submodule 121 caches the first message in the external memory 13, it parses the first message based on the second strategy and the time division multiplexing method, obtains the No. 7 signaling in the first message, further parses the No. 7 signaling, and obtains the keywords, timestamp information, and packet length in the No. 7 signaling. The matching submodule 122 performs rule matching in a preset rule matching table according to the keywords. When the match is successful, that is, the keyword hits the matching rule, the matched matching rule ID is obtained, and the first message is read from the external memory 13 according to the packet length and the starting address of the external memory 13. The encapsulation submodule 123 encapsulates the keywords, timestamp information, matching rule ID, and the first message in the TLV format, obtains the second message after encapsulation, and outputs the second message. This embodiment implements the deep parsing function of the No. 7 signaling message through an FPGA chip, and can implement the parsing function of multiple business messages. While the external memory caches the message data after preliminary parsing, the message after preliminary parsing is further deeply parsed through the time division multiplexing method and the second strategy parsing, and the key field information in the message is obtained for rule matching, thereby realizing the function of parsing the No. 7 signaling at line speed. Compared with the prior art in which the processor needs to obtain the complete message before starting to parse, in this embodiment, the cache and parsing of the message are carried out simultaneously, the speed of message parsing is faster, and the channels for message parsing are more, thereby greatly shortening the message parsing time and increasing the bandwidth of message parsing. In a specific embodiment of the present application, the delay from the service message entering the parsing device to the matching completion output is less than 250ns, thereby shortening the message parsing time.
[0040] As an optional implementation, the device includes multiple first parsing modules 11 and multiple second parsing modules 12, and one of the multiple second parsing modules 12 can parse the first message output by the multiple first parsing modules 11, wherein the first parsing module 11 supports at least one of the following services: SDH, EOS, POS, and WAN. In this embodiment, the parsing device in this application can realize the parsing function of multiple business messages, and the first parsing module 11 can be a business message parsing module of different types. Based on different types of parsing implementation methods, the first parsing module 11 completes the preliminary parsing function of the corresponding business message, and parses the first message from the business message. Due to the different types of business messages, the format or type of the parsed first message will also be different. The second parsing module 12 is similar to an instantiated module and can be flexibly configured with different first parsing modules 11. The parsing device in this application can access different types of business messages, and can be flexibly combined and configured according to user needs and FPGA resources. The application of the parsing device is flexible and can meet the needs of different users.
[0041] In a specific embodiment of the present application, the services supported by the first parsing module 11 in the device are SDH, EOS, POS, and WAN, so the first parsing module 11 is defined as an SDH parsing module 111, an EOS parsing module 112, a POS parsing module 113, and a WAN parsing module 114. Figure 2 As shown, the SDH parsing module 111 and the first second parsing module 12 cooperate to complete the functions of signaling parsing, keyword rule matching, and message encapsulation in the SDH service, the EOS parsing module 112 and the second second parsing module 12 cooperate to complete the functions of signaling parsing, keyword rule matching, and message encapsulation in the EOS service, the POS parsing module 113 and the third second parsing module 12 cooperate to complete the functions of signaling parsing, keyword rule matching, and message encapsulation in the POS service, and the WAN parsing module 114 and the fourth second parsing module 12 cooperate to complete the functions of signaling parsing, keyword rule matching, and message encapsulation in the WAN service. The parsing device can simultaneously support the parsing functions of SDH, EOS, POS, and WAN. It can be seen from this that the parsing device of the present application can support multiple types of service message parsing interfaces, for example, it can simultaneously support the parsing functions of SDH and EOS, and users can flexibly configure according to actual needs or FPGA design resources to meet various business needs.
[0042] Signaling System 7 (SS7) was developed by ITU-T (International Telecommunication Union – Telecommunication). The defined set of telecommunication protocols is referred to as SS7 signaling protocol stack, which is mainly used to provide inter-office signaling data. SS7 signaling protocol stack includes: the first layer of signaling transmission part (Message Transfer Part 1, MTP1) corresponding to the physical layer, the second layer of signaling transmission part (Message Transfer Part 2, MTP2) corresponding to the data link layer, the third layer of signaling transmission part (Message Transfer Part 3, MTP3) corresponding to the network layer, and various signaling transmission protocols such as database transaction processing, call establishment and release on the application layer. In SS7, there are three signal units: Message Signal Unit (MSU), Link Status Signal Unit (LSSU) and Fill-in Signal Unit (FISU).
[0043] As an optional implementation method, the SDH parsing module 111 parses the received SDH service based on the structure of the SDH frame, obtains the payload position in the TU12 / TU11 frame in the SDH service, and then obtains the TU12 / TU11 frame in the SDH service, further parses the TU12 / TU11 frame, obtains the TS time slot indication of the TU12 / TU11 frame, and recovers the start position, end position and channel number of the No. 7 signaling in the message from each time slot according to the time slot indication of the TU12 / TU11 frame, and then parses the No. 7 signaling, and outputs the No. 7 signaling to the parsing submodule 121 for subsequent message processing. The channel number indicates the number of the channel for transmitting data. In the Public Switched Telephone Network (PSTN), the voice encoding method adopts the pulse code modulation (PCM) encoding format with a transmission rate of 64kbit / s. The TS0~TS31 time slots in the TU12 frame of the SDH frame are used as channels for transmitting voice signals, and can be used to transmit voice signals of telephone calls, including analog voice signals (for example, PCM encoding format) or digital voice signals. Exemplarily, the interface rate of the SDH parsing module 111 supports 10G SDH services. For the parsing process of the SDH service in this example, please refer to the description in the prior art, and this application will not be described in detail.
[0044] As an optional implementation, in EOS (Ethernet over SDH, SDH carries Ethernet service) technology, Ethernet frames are mapped into SDH containers and then transmitted through the SDH network. The first parsing module 11 is defined as an EOS parsing module 112, and the EOS parsing module 112 parses the received EOS service, that is, completes the virtual cascade parsing based on VC4 / VC3 / VC12, and recovers the Ethernet message from the message. The obtained Ethernet message is further parsed to identify whether there is an SCTP message in the Ethernet message. If so, the SCTP message label is added, and the SCTP message and channel number are obtained, and the SCTP message and channel number are output to the parsing submodule 121 to further process the SCTP message, otherwise the Ethernet message is discarded, and the bandwidth of subsequent message processing is reduced by intercepting the non-SCTP message. Exemplarily, the interface rate of the EOS parsing module 112 supports 10G EOS service.
[0045] As an optional implementation, in an SDH network, a POS (Packet over SONET / SDH, SONET / SDH bearer packet) message is mapped to a virtual container of SDH, such as VC-12, VC-3 or VC-4, and transmitted through the SDH network. The first parsing module 11 is defined as a POS parsing module 113, which parses the received POS service, and recovers the Ethernet message from the POS service through HDLC (High-Level Data Link Control) framing. The obtained Ethernet message is further parsed to identify whether there is an SCTP message in the Ethernet message. If so, the SCTP message label is added, and the SCTP message and channel number are obtained, and the SCTP message and channel number are output to the parsing submodule 121 to further process the SCTP message, otherwise the Ethernet message is discarded, and the bandwidth of subsequent message processing is reduced by intercepting non-SCTP messages. Exemplarily, the interface rate of the POS parsing module 113 supports 10G POS services.
[0046] As an optional implementation, WAN (Wide Area Network) services generally refer to data packets transmitted in a wide area network, with a transmission rate of up to 10 Gbps (gigabits per second). WAN services generally follow the standard Ethernet frame format, but may also include specific encapsulation or tunneling protocols to support transmission in a wide area network. The first parsing module 11 is defined as a WAN parsing module 114, which parses the received WAN service, and recovers the Ethernet message from the WAN service through Ethernet MAC (Media Access Control) framing. The obtained Ethernet message is further parsed to identify whether there is an SCTP message in the Ethernet message. If so, an SCTP message label is added, and the SCTP message and channel number are obtained, and the SCTP message and channel number are output to the parsing submodule 121 to further process the SCTP message, otherwise the Ethernet message is discarded, and the bandwidth of subsequent message processing is reduced by intercepting non-SCTP messages.
[0047] As an optional implementation, the second strategy includes performing parsing based on the signaling transmission protocol, such as Figure 3 As shown, the second parsing module 12 also includes a cache module 124, which caches the No. 7 signaling and / or SCTP message to the on-chip cache space corresponding to the channel number. When the cached data length is the write data length of the external memory 13, the data is read from the on-chip cache space and written to the external memory 13. The external memory 13 stores the read data in the storage space corresponding to the channel number and obtains the starting address of the external memory 13 of the data. The parsing submodule 121 uses the signaling transmission protocol to perform time division multiplexing parsing on the input multi-channel interleaved SCTP message to obtain the No. 7 signaling in the message, and extracts the keywords, timestamp information and packet length in the No. 7 signaling of the corresponding channel. Figure 4 The schematic diagram of the synchronous caching and parsing of the message shown in the figure, wherein 0, 1, ..., x represents the channel number, and the write data length of the external memory 13 is 64 bytes. Based on the above implementation, while the parsed message is cached in the external memory, the message is further parsed, and the data of different channels can be processed in different time slots by using the time division multiplexing method, and the key field information in the message can be obtained. The parsing and storage of the message are performed synchronously, so that the message parsing time can be greatly shortened.
[0048] The first message is stored in the external memory 13 based on the channel number. It can be understood that there are multiple channels for transmitting signaling data. The external memory 13 includes multiple storage spaces and each storage space has a corresponding channel number. The storage space is used for data information in the channel to which the channel number corresponding to the external memory 13 belongs. The number of supported channel numbers can be determined based on the resources of the external memory, the resources of the FPGA, and actual needs. For example, in this embodiment, 4K channel numbers are supported.
[0049] Exemplarily, based on the above implementation, the received service messages are parsed by the SDH parsing module 111, the EOS parsing module 112, the POS parsing module 113 and the WAN parsing module 114 to obtain the System 7 signaling or SCTP message. When the parsed message is cached, it is divided into 4 cache spaces through the external memory 13. Each cache space supports 4K channel numbers, so that the messages parsed by different parsing modules can be cached in the external memory 13.
[0050] Signaling Transport Protocol (SIGTRAN) is a specification for intercommunication between Signaling System 7 and IP developed by the SIGTRAN working group of IETF. This protocol cluster supports the transmission of traditional circuit-switched network SCN (Switched Circuit Network) signaling through IP networks. The signaling transmission protocol includes two layers of protocols: a transmission protocol and a signaling adaptation protocol. The transmission protocol adopts the stream control transmission protocol, and the signaling adaptation protocols include M2UA (MTP2 user adaptation layer), M2PA (MTP2 peer adaptation layer), M3UA (MTP3 user adaptation layer), SUA (SCCP user adaptation layer), etc. The SCTP message contains a common message header and several data blocks (Chunks). Each data block can contain both control information and user data. The embodiment of the present application further parses the SCTP message according to the signaling transmission protocol to obtain the signaling data in the SCTP message.
[0051] As a possible implementation, the matching submodule 122 performs rule matching based on the extracted keywords and the rule matching table. When the match is successful, the offset position, data block length and matching rule ID of the data block in the SCTP message that hits the matching rule are obtained, and the first message is read from the external memory 13 according to the packet length and the starting address of the external memory of the SCTP message in the external memory 13. Exemplarily, the matching submodule 122 can support a matching rule with a 128-strip mask. Based on the matching rule, the obtained keywords are matched. If the match is successful, the corresponding matching rule is hit and the corresponding matching rule ID is obtained. Because the SCTP message contains multiple data blocks, during the rule matching process, there may be multiple databases that hit the matching rule, so the offset position of the data block that hits the matching rule in the SCTP message can be obtained.
[0052] As a possible implementation, the encapsulation submodule 123 encapsulates the offset position, data block length, matching rule ID, keyword and timestamp information of each data block that hits the matching rule as the message header of the second message in TLV format, encapsulates the No. 7 signaling and / or SCTP message as the value of the second message in TLV format, and generates and outputs the second message. TLV (Type-Length-Value) encapsulation, type refers to the type or type of the data element, length is the data length in the indication value part (usually in bytes), and value is the actual data content. The embodiment of the present application encapsulates the offset position of the data block that hits the matching rule, the data block length, the matching rule ID and the keyword into the message header of the second message according to the TLV encapsulation format, stores the data of the SCTP message in the value area of the second message, and outputs the second message to the back-end server. The back-end server can directly obtain the data block that hits the rule according to the offset position of the data block that hits the matching rule in the message header of the second message, and directly process the keyword of the hit rule, thereby greatly improving the processing performance of the server, effectively reducing the required number of servers, and reducing the cost of product design.
[0053] Please refer to Figure 5 The present application provides a method for parsing SS7 signaling based on FPGA, the method comprising the steps of:
[0054] S501, parsing a received service message based on a first strategy, and obtaining a first message carried in the service message;
[0055] S502, storing a first message, and obtaining a starting address of an external memory of the first message;
[0056] S503: while storing the first message, parse the first message based on the second strategy and the time division multiplexing method to obtain the No. 7 signaling, and obtain the keywords, timestamp information and packet length in the No. 7 signaling;
[0057] S504, performing rule matching according to the keyword and a preset rule matching table, obtaining the successfully matched matching rule ID when the match is successful, and reading the first message from the external memory according to the packet length and the starting address of the external memory;
[0058] S505 . Encapsulate the keyword, timestamp information, matching rule ID, and the first message in TLV format to obtain a second message.
[0059] This embodiment implements the deep analysis function of the No. 7 signal message through the FPGA chip, and can realize the analysis function of various business messages. While caching the message data after the preliminary analysis, the message after the preliminary analysis is further deeply analyzed through the time division multiplexing method and the second strategy analysis, and the key field information in the message is obtained for rule matching. The caching and analysis of the message are carried out simultaneously, which can greatly shorten the message parsing time and improve the bandwidth of the message parsing.
[0060] Optionally, the supported services are at least one of the following: SDH, EOS, POS, and WAN.
[0061] Optionally, the step of parsing the received service message based on the first strategy to obtain the first message carried in the service message includes:
[0062] The supported service is SDH. The TU12 / TU11 frame in the SDH service is obtained. The No. 7 signaling is obtained based on the time slot indication in the TU12 / TU11 frame, and the starting position and channel number of the No. 7 signaling are obtained.
[0063] Optionally, the step of parsing the received service message based on the first strategy and obtaining the first message carried in the service message further includes:
[0064] The supported service is EOS. The Ethernet message in the EOS service is parsed and obtained. If there is an SCTP message in the Ethernet message, the SCTP message and channel number are output to, otherwise the Ethernet message is discarded.
[0065] Optionally, the step of parsing the received service message based on the first strategy and obtaining the first message carried in the service message further includes:
[0066] The supported service is POS. Ethernet packets are recovered from POS services through HDLC framing. If there are SCTP packets in the Ethernet packets, the SCTP packets and channel numbers are output. Otherwise, the Ethernet packets are discarded.
[0067] Optionally, the step of parsing the received service message based on the first strategy and obtaining the first message carried in the service message further includes:
[0068] The supported service is WAN. Ethernet packets are recovered from WAN services through Ethernet MAC framing. If there are SCTP packets in the Ethernet packets, the SCTP packets and channel numbers are output. Otherwise, the Ethernet packets are discarded.
[0069] Optional, such as Figure 5 As shown, while storing the first message, parsing the first message based on the second strategy and the time division multiplexing method to obtain the No. 7 signaling, and obtaining the keywords, timestamp information and packet length in the No. 7 signaling includes:
[0070] S601, caching SS7 signaling and / or SCTP messages into an on-chip cache space corresponding to a channel number, and when the cached data length is equal to the write data length of the external memory, reading data from the on-chip cache space and writing it into the external memory 13;
[0071] S602, storing the read data into the storage space corresponding to the channel number, and obtaining the starting address of the data in the external memory 13;
[0072] S603, using the signaling transmission protocol to perform time division multiplexing analysis on the input multi-channel interleaved SCTP message to obtain the No. 7 signaling in the message, and extract the keyword, timestamp information and packet length in the No. 7 signaling of the corresponding channel;
[0073] S604, performing rule matching according to the keyword and the rule matching table, when the match succeeds, obtaining the offset position of the data block in the SCTP message that hits the matching rule, the data block length, and the matching rule ID, and reading the SS7 signaling and / or SCTP message from the external memory 13 according to the packet length and the starting address of the external memory 13;
[0074] S605. Encapsulate the offset position, data block length, matching rule ID, keyword and timestamp information of each data block that hits the matching rule into the message header of the second message in TLV format, encapsulate the seventh signaling and / or SCTP message as the value of the second message in TLV format, and generate and output the second message.
[0075] The embodiment of the present application further provides a communication device, which includes the above-mentioned FPGA-based No. 7 signaling parsing device. For example, the network device includes Figure 1 The FPGA-based No. 7 signaling parsing device shown. The communication device can be any communication device used for service forwarding in a communication network.
[0076] As an example, see Figure 7 , which shows a schematic diagram of the structure of a communication device provided by an embodiment of the present application. The network device includes an FPGA-based No. 7 signaling parsing device 701, a communication interface 702, a processor 703, a memory 704, and a bus 705. The processor 703, the memory 704, the communication interface 702, and the FPGA-based No. 7 signaling parsing device 701 are connected to each other through the bus 705. Among them, Figure 7 The connection method between the processor 703, the memory 704, the communication interface 702 and the FPGA-based No. 7 signaling parsing device 701 is merely exemplary. During implementation, the processor 703, the memory 704, the communication interface 702 and the FPGA-based No. 7 signaling parsing device 701 may also be connected to each other in communication with each other using other connection methods besides the bus 705.
[0077] The memory 704 may be used to store computer programs, which may include instructions and data. In an embodiment of the present application, the memory 704 may be various types of storage media, such as random access memory (RAM), static random access memory (SRAM), non-volatile RAM (NVRAM), DDR (Double Data Rate SDRAM), etc. The memory 704 may include a hard disk and / or a memory.
[0078] The processor 703 may be a general-purpose processor, which may be a processor that performs specific steps and / or operations by reading and executing a computer program stored in a memory (e.g., memory 704), and the general-purpose processor is used to process the second message output by the No. 7 signaling parsing device 701. The general-purpose processor may be, for example, but not limited to, a central processing unit (CPU). In addition, the processor 703 may also be a dedicated processor, which may be a processor specially designed to perform specific steps and / or operations, and the dedicated processor may be, for example, but not limited to, an ASIC and an FPGA, etc. In addition, the processor 703 may also be a combination of multiple processors, such as a multi-core processor.
[0079] The communication interface 702 may include an input / output (I / O) interface, a physical interface, and a logical interface, etc., which are used to interconnect devices within the network device, and an interface for interconnecting the network device with other devices (such as network devices). The physical interface may be a Gigabit Ethernet interface (GE), which may be used to interconnect the network device with other devices, and the logical interface is an interface within the network device, which may be used to interconnect devices within the network device. It is easy to understand that the communication interface 702 may be used for the network device to communicate with other devices, for example, the communication interface 702 is used to send and receive messages between the network device and other devices.
[0080] The bus 705 may be any type of communication bus for interconnecting the processor 703 , the memory 704 , the communication interface 702 and the FPGA-based SS7 signaling parsing device 701 , such as a system bus.
[0081] The structure of the FPGA-based No. 7 signaling parsing device 701 can be referred to Figure 1 The illustrated embodiments are not described here. The interconnection between any device among the processor 703, the memory 704 and the communication interface 702 and the FPGA-based No. 7 signaling parsing device 701 may specifically refer to the interconnection between any device and the device in the FPGA-based No. 7 signaling parsing device 701. In some embodiments, the above-mentioned processor 703, the memory 704 and the communication interface 702 may all be integrated on the FPGA-based No. 7 signaling parsing device 701, or the above-mentioned processor 703, the memory 704 and the communication interface 702 may be respectively arranged on chips independent of each other, or may be at least partially or completely arranged on the same chip. Whether each device is independently arranged on different chips or integrated on one or more chips often depends on the needs of product design. This application does not limit the specific implementation form of the above-mentioned devices.
[0082] Figure 7 The communication device shown is merely exemplary. During implementation, the communication device may further include other components, which are not listed one by one in this article.
[0083] The embodiments disclosed in the present application also provide a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer executes the FPGA-based signaling parsing method according to any one of the above embodiments.
[0084] Although the preferred embodiments of the present application have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, without departing from the scope and spirit of the application as disclosed in the accompanying claims.
Claims
1. A signaling system for signaling No. 7 based on FPGA, characterized in that: The device comprises: At least one first parsing module, configured to parse the received service message based on a first strategy to obtain a first message carried in the service message, wherein a parsing method of the first strategy is determined based on a type of the service message; An external memory, used to store the first message, and obtain a starting address of the first message in the external memory; At least one second parsing module, the second parsing module includes a parsing submodule, a matching submodule and a packaging submodule, wherein: The parsing submodule is used to parse the first message to obtain the No. 7 signaling based on the second strategy and the time division multiplexing method while storing the first message in the external memory, and obtain the keywords, timestamp information and packet length in the No. 7 signaling; The matching submodule is used to perform rule matching according to the keyword and a preset rule matching table, obtain the successfully matched matching rule ID when the match is successful, and read the first message from the external memory according to the packet length and the starting address of the external memory; The encapsulation submodule is used to encapsulate the keyword, timestamp information, matching rule ID and the first message in TLV format to obtain a second message.
2. The FPGA-based signaling analysis device according to claim 1, characterized in that: The device includes multiple first parsing modules and multiple second parsing modules, and one of the multiple second parsing modules can parse the first message output by the multiple first parsing modules, wherein the services supported by the first parsing module are at least one of the following: SDH, EOS, POS, and WAN.
3. The FPGA-based signaling analysis device according to claim 1, characterized in that: The service supported by the first parsing module is the SDH service. The first parsing module is defined as an SDH parsing module. The SDH parsing module obtains the TU12 / TU11 frame in the SDH service, obtains the No. 7 signaling based on the TS time slot indication in the TU12 / TU11 frame, and obtains the starting position and channel number of the No. 7 signal.
4. The FPGA-based signaling analysis device according to claim 1, characterized in that: The service supported by the first parsing module is EOS service. The first parsing module is defined as an EOS parsing module. The EOS parsing module parses and obtains Ethernet messages in the EOS service. If there is an SCTP message in the Ethernet message, the SCTP message and the channel number are output to the parsing submodule, otherwise the Ethernet message is discarded.
5. The FPGA-based signaling analysis device according to claim 1, characterized in that: The service supported by the first parsing module is POS service. The first parsing module is defined as a POS parsing module. The POS parsing module recovers Ethernet messages from the POS service through HDLC framing. If there is an SCTP message in the Ethernet message, the SCTP message and channel number are output to the parsing submodule, otherwise the Ethernet message is discarded.
6. The FPGA-based signaling analysis device according to claim 1, characterized in that: The service supported by the first parsing module is WAN service. The first parsing module is defined as a WAN parsing module. The WAN parsing module recovers Ethernet packets from WAN services through Ethernet MAC framing. If there is an SCTP packet in the Ethernet packet, the SCTP packet and channel number are output to the parsing submodule, otherwise the Ethernet packet is discarded.
7. The FPGA-based SS7 signaling parsing device according to claim 3, 4, 5 or 6, characterized in that: The second strategy includes performing parsing based on a signaling transmission protocol, and the parsing submodule also includes a cache module, wherein: The cache module is used to cache the SS7 signaling and / or SCTP message to the on-chip cache space corresponding to the channel number, and when the cached data length is the write data length of the external memory, read the data from the on-chip cache space and write it to the external memory; The external memory is used to store the read data into the storage space corresponding to the channel number and obtain the starting address of the data in the external memory; The parsing submodule uses the signaling transmission protocol to perform time division multiplexing parsing on the input multi-channel interleaved SCTP message to obtain the No. 7 signaling in the message, and extracts the keywords, timestamp information and packet length in the No. 7 signaling of the corresponding channel; The matching submodule is used to perform rule matching according to the keyword and the rule matching table. When the match is successful, the offset position, data block length and matching rule ID of the data block in the SCTP message that hits the matching rule are obtained, and the seventh signaling and / or SCTP message is read from the external memory according to the packet length and the starting address of the external memory.
8. The FPGA-based signaling analysis device according to claim 7, characterized in that: The encapsulation submodule encapsulates the offset position, data block length, matching rule ID, keyword and timestamp information of each data block that hits the matching rule into the message header of the second message in TLV format, encapsulates the seventh signaling and / or SCTP message as the value of the second message in TLV format, and generates and outputs the second message.
9. A method for parsing SS7 signaling based on FPGA, characterized in that: The method comprises: Parsing the received service message based on the first strategy, obtaining a first message carried in the service message, wherein a parsing method of the first strategy is determined based on a type of the service message; Storing the first message, and obtaining a starting address of the first message in an external memory; While storing the first message, parsing the first message based on the second strategy and the time division multiplexing method to obtain the No. 7 signaling, and obtaining keywords, timestamp information and packet length in the No. 7 signaling; Performing rule matching according to the keyword and a preset rule matching table, obtaining a matching rule ID when the match is successful, and reading the first message from the external memory according to the packet length and the starting address of the external memory; The keyword, timestamp information, matching rule ID and the first message are encapsulated in TLV format to obtain a second message.
10. A communication device, characterized in that: It comprises the FPGA-based SS7 signaling parsing device as described in any one of claims 1-8.
