Data transmission method, device and network equipment in base station
By synchronizing the half-frame number and half-frame time offset between base station modules, sending consecutive numbered messages using source-destination identifiers and detecting lost messages, the problem of packet loss cannot be accurately detected in the prior art is solved, and the problem of packet loss is realized High efficiency, reliability and low latency communication of data transmission within the base station.
Patent Information
- Application Number
- CN202110984555.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-25
- Publication Date
- 2025-01-03
- Estimated Expiration
- 2041-08-25
AI Technical Summary
The prior art cannot accurately detect packet loss data in base stations, affecting transmission quality, especially in distributed multi-module devices with high concurrency, low latency and high reliability requirements.
By synchronizing the half-frame number and half-frame time offset between the base station modules, the source-destination identification (SDI) is used to send consecutively numbered messages to the second base station module and determine based on the received non-consecutive numbered messages. Lost message number, generate ACK messages for retransmission of lost messages, ensuring accurate detection and retransmission of lost messages.
Accurate packet loss detection and retransmission of data transmission within the base station, ensure the transmission quality, and meet the communication needs of high concurrency, low latency and high reliability.
Smart Images

Figure CN115734404B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of mobile communication technology, and in particular to a data transmission method, device and network equipment within a base station. Background Art
[0002] 5G base station equipment is composed of multiple distributed hardware boards. Hardware boards with different functions are assembled into a complete base station function body, and the same hardware board combination improves the base station capacity and processing power. In the above-mentioned distributed multi-module equipment, the communication between multiple modules is required to meet the requirements of high concurrency, low latency, high reliability, flexible combination and easy expansion. Although Ethernet technology inherently meets the needs of high concurrency and flexible combination, it is still powerless in the face of the contradiction between high reliability and high concurrency and low latency. It cannot accurately detect packet loss data, which affects the transmission quality. Summary of the invention
[0003] The embodiments of the present invention provide a data transmission method, device and network equipment within a base station to solve the problem that the prior art cannot accurately detect packet loss data, thus affecting transmission quality.
[0004] In a first aspect, an embodiment of the present invention provides a method for data transmission within a base station, which is applied to a first base station module. The method includes:
[0005] When the first base station module and the second base station module are in communication connection and the half frame numbers and the half frame time offsets of the first base station module and the second base station module are synchronized, a plurality of first messages with consecutive numbers are sent to the second base station module through a first source-destination identifier SDI;
[0006] In the case where the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, receiving an ACK message of a lost message corresponding to the retransmitted lost message number fed back by the second base station module, where the lost message number is determined by the second base station module according to the number of the second message and the number of the third message;
[0007] Retransmitting the lost message corresponding to the lost message number according to the ACK message;
[0008] The first message includes the second message and the third message.
[0009] Optionally, before receiving an ACK message of a lost message corresponding to the retransmitted lost message number fed back by the second base station module, the method further includes:
[0010] A plurality of first messages with consecutive numbers sent to the second base station module are stored.
[0011] Optionally, the retransmitting, according to the ACK message, a lost message corresponding to the lost message number, includes:
[0012] According to the ACK message, obtain the lost message corresponding to the lost message number;
[0013] The lost message is sent to the second base station module.
[0014] Optionally, after acquiring, according to the ACK message, the lost message corresponding to the lost message number, the method further includes:
[0015] Generate lost message information according to the ACK message and the lost message;
[0016] Report the lost message information to the maintenance and testing system.
[0017] Optionally, before sending each first message to the second base station module, the method further includes:
[0018] Determine a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message;
[0019] Determine a first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length;
[0020] The tail sign area in the first target buffer is filled with first tail sign data.
[0021] Optionally, the first tail signature encapsulation method includes a copy method and a non-copy method;
[0022] The determining of the first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length includes:
[0023] When the first tail signature encapsulation mode is a copy mode, the first tail signature length area is expanded on the basis of the first original buffer to obtain a first target buffer;
[0024] When the first tail signature encapsulation mode is a non-copy mode, a first target buffer is configured according to the first original buffer and the first tail signature length.
[0025] Optionally, the first tail signature data includes at least one of the following:
[0026] First indication information indicating the half-frame number of the sending time of the first message;
[0027] Second indication information indicating a half-frame time offset of a sending moment of the first message;
[0028] third indication information instructing the first base station module to consecutively number the first messages;
[0029] fourth indication information of the first SDI of the first message instructing the first base station module to send the first message to the second base station module;
[0030] Fifth indication information indicating that the first tail signature data type is a data tail signature.
[0031] In a second aspect, an embodiment of the present invention further provides a method for data transmission within a base station, which is applied to a second base station module, and the method includes:
[0032] In the case where the first base station module and the second base station module are communicatively connected, the half-frame numbers and the half-frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, determining the lost message number according to the number of the second message and the number of the third message;
[0033] Generate an ACK message for retransmitting the lost message corresponding to the lost message number according to the lost message number;
[0034] Sending the ACK message to the first base station module;
[0035] The second message and the third message are at least a part of the first message sent by the first base station module.
[0036] Optionally, the method further includes:
[0037] Receive a second message sent by the first base station module, where the second message includes second tail signature data;
[0038] The message transmission delay is determined according to the second tail signature data.
[0039] Optionally, the second tail signature data includes at least one of the following:
[0040] Sixth indication information indicating the half frame number of the sending time of the second message;
[0041] Seventh indication information indicating a half-frame time offset of a sending moment of the second message;
[0042] eighth indication information instructing the first base station module to consecutively number the first messages;
[0043] ninth indication information of the first SDI indicating the first base station module to send the second message to the second base station module;
[0044] Tenth indication information indicating that the data type of the second tail signature is a data tail signature.
[0045] Optionally, when the second tail signature data includes sixth indication information and seventh indication information, determining the message transmission delay according to the second tail signature data includes:
[0046] Obtaining the receiving time of the second message currently received;
[0047] The message transmission delay is determined according to the receiving time, the half-frame number of the sending time of the second message, and the half-frame time offset of the sending time of the second message.
[0048] Optionally, determining the lost message number according to the number of the second message and the number of the third message includes:
[0049] Compare the first number corresponding to the second message received at the current time with the largest number in the third message received before the current time;
[0050] In the case that the first number is greater than the maximum number, the lost message number is determined according to the number of the second message and the number of the third message.
[0051] Optionally, after comparing the first number corresponding to the second message received at the current time with the maximum number in the third message received before the current time, the method further includes:
[0052] When the first number is smaller than the maximum number, the second message is reported to the application.
[0053] Optionally, after sending the ACK message to the first base station module, the method further includes:
[0054] Receive a lost message corresponding to the lost message number fed back by the first base station module according to the ACK message;
[0055] Report the lost message to the application.
[0056] Optionally, the generating, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number includes:
[0057] Determine a second tail signature encapsulation mode, a second original buffer, and a second tail signature length of the ACK message;
[0058] Determine a second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length;
[0059] The tail sign area in the second target buffer is filled with third tail sign data.
[0060] Optionally, the second tail signature encapsulation method includes a copy method and a non-copy method;
[0061] The determining of the second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length includes:
[0062] When the second tail signature encapsulation mode is a copy mode, a second tail signature length area is expanded on the basis of the second original buffer to obtain a second target buffer;
[0063] When the second tail signature encapsulation mode is a non-copy mode, the second target buffer is configured according to the second original buffer and the second tail signature length.
[0064] Optionally, the third tail signature data includes at least one of the following:
[0065] The eleventh indication information indicating the half frame number of the sending time of the ACK message;
[0066] Twelfth indication information indicating a half-frame time offset of a sending moment of the ACK message;
[0067] Thirteenth indication information indicating a lost message number of the lost message;
[0068] Fourteenth indication information of the first SDI instructing the second base station module to send the ACK message to the first base station module;
[0069] Fifteenth indication information indicating that the data type of the third tail signature is an ACK tail signature;
[0070] The sixteenth indication information indicates whether the current third tail signature data is the last tail signature data.
[0071] In a third aspect, an embodiment of the present invention further provides a network device, wherein the network device is a first base station module, including a memory, a transceiver, and a processor:
[0072] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0073] When the first base station module and the second base station module are in communication connection and the half frame numbers and the half frame time offsets of the first base station module and the second base station module are synchronized, a plurality of first messages with consecutive numbers are sent to the second base station module through a first source-destination identifier SDI;
[0074] In the case where the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, receiving an ACK message of a lost message corresponding to the retransmitted lost message number fed back by the second base station module, where the lost message number is determined by the second base station module according to the number of the second message and the number of the third message;
[0075] Retransmitting the lost message corresponding to the lost message number according to the ACK message;
[0076] The first message includes the second message and the third message.
[0077] In a fourth aspect, an embodiment of the present invention further provides a network device, wherein the network device is a second base station module, including a memory, a transceiver, and a processor:
[0078] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0079] In the case where the first base station module and the second base station module are communicatively connected, the half-frame numbers and the half-frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, determining the lost message number according to the number of the second message and the number of the third message;
[0080] Generate an ACK message for retransmitting the lost message corresponding to the lost message number according to the lost message number;
[0081] Sending the ACK message to the first base station module;
[0082] The second message and the third message are at least a part of the first message sent by the first base station module.
[0083] In a fifth aspect, an embodiment of the present invention further provides a data transmission device within a base station, applied to a first base station module, comprising:
[0084] A first sending module, configured to send a plurality of first messages with consecutive numbers to the second base station module through a first source-destination identifier SDI when the first base station module and the second base station module are in communication connection and the half-frame numbers and half-frame time offsets of the first base station module and the second base station module are synchronized;
[0085] A first receiving module, configured to receive an ACK message of a lost message corresponding to a retransmitted lost message number fed back by the second base station module, when the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, wherein the lost message number is determined by the second base station module according to the number of the second message and the number of the third message;
[0086] A retransmission module, configured to retransmit the lost message corresponding to the lost message number according to the ACK message;
[0087] The first message includes the second message and the third message.
[0088] In a sixth aspect, an embodiment of the present invention further provides a data transmission device within a base station, which is applied to a second base station module, including:
[0089] A first processing module, configured to determine a lost message number according to a number of the second message and a number of the third message, when a first base station module and a second base station module are communicatively connected, and the half-frame numbers and half-frame time offsets of the first base station module and the second base station module are synchronized, and a second message received at a current time and a third message received before the current time are non-continuously numbered;
[0090] A second processing module, configured to generate, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number;
[0091] A second sending module, used to send the ACK message to the first base station module;
[0092] The second message and the third message are at least a part of the first message sent by the first base station module.
[0093] In a seventh aspect, an embodiment of the present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the above-mentioned data transmission method within the base station.
[0094] In an embodiment of the present invention, when the first base station module and the second base station module are in communication connection, and the half-frame number and the half-frame time offset of the first base station module and the second base station module are synchronized, the first base station module sends a plurality of first messages with consecutive numbers to the second base station module through the first SDI. If the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, since the message number sent by the first base station module is continuous, when the message number received by the second base station module is discontinuous, the lost message number can be known, and the packet loss data can be accurately detected. In addition, the first base station module receives the confirmation ACK message of the lost message corresponding to the retransmitted lost message number fed back by the second base station module, and the lost message number is determined by the second base station module according to the number of the second message and the number of the third message. The first base station module retransmits the lost message corresponding to the lost message number according to the ACK message, thereby completing the retransmission of the lost message, which can ensure the transmission quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0095] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.
[0096] Figure 1 One of the step flow charts of the method for data transmission within a base station provided by an embodiment of the present invention;
[0097] Figure 2 An array queue form of the SDI cache provided by an embodiment of the present invention;
[0098] Figure 3 A schematic diagram of the lost message information format provided by an embodiment of the present invention;
[0099] Figure 4 A schematic diagram of a data message format provided by an embodiment of the present invention;
[0100] Figure 5 A second flowchart of a method for transmitting data within a base station provided by an embodiment of the present invention;
[0101] Figure 6 One of the schematic diagrams of data flow in a base station provided by an embodiment of the present invention;
[0102] Figure 7 The second schematic diagram of data flow in a base station provided by an embodiment of the present invention;
[0103] Figure 8A flowchart of the method for data transmission within a base station provided by an embodiment of the present invention;
[0104] Fig. 9 A fourth step flow chart of the method for data transmission within a base station provided in an embodiment of the present invention;
[0105] Fig.10 A schematic diagram of the ACK message format provided by an embodiment of the present invention;
[0106] Fig.11 A fifth step flow chart of the method for data transmission within a base station provided in an embodiment of the present invention;
[0107] Fig.12 One of the structural block diagrams of the data transmission device in the base station provided by the embodiment of the present invention;
[0108] Fig.13 A second structural block diagram of a data transmission device in a base station provided by an embodiment of the present invention;
[0109] Fig.14 A structural block diagram of a network device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0110] In the embodiments of the present invention, the term "and / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent three situations: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0111] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0112] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0113] At present, the reliability transmission scheme based on Ethernet is mainly guaranteed by high-level protocols, that is, transport layer protocols, including Transmission Control Protocol (TCP), Stream Control Transmission Protocol (SCTP), etc. For maintenance and testing methods, there are mainly counting at each protocol level and protocol stack packet capture plug-ins. The above technologies are described below:
[0114] TCP transmission protocol: It is a reliable transmission protocol working at the transport layer. It is based on the transmission confirmation mechanism of byte stream to achieve reliability guarantee. The concept of window length is introduced to prevent continuous link congestion by adaptive transmission bandwidth through control of the sending window. Its original design was to solve the problem of reliable data transmission in long-distance and complex networks. It has universal applicability, but has significant disadvantages: large retransmission delay (hundreds of milliseconds), complex and inefficient protocol, and cannot meet the transmission requirements of devices that pursue the physical limits of processors, such as base stations and other telecommunications equipment.
[0115] SCTP transport protocol: It is designed to meet the special needs of telecommunications equipment. It combines the advantages of TCP and User Datagram Protocol (UDP). It is very similar to the TCP protocol, but it has the following four differences:
[0116] First, SCTP is based on multi-stream transmission. One SCTP link can establish multiple transmission streams to avoid data transmission blockage caused by single-stream congestion. In contrast, TCP is a single-stream transmission.
[0117] Second: SCTP is based on reliable transmission of data blocks. It divides the data delivered by the application into blocks and numbers them, rather than the byte-by-byte numbering of TCP streams. This provides a more user-friendly application programming interface.
[0118] Third: SCTP supports multi-homing, which means multiple peer Internet Protocols (IPs). This can form M*N paths (assuming that the local device has M IPs and the peer device has N IPs), thus avoiding data interruption caused by single-path transmission routing problems.
[0119] Fourth: SCTP is more secure in link building. It uses a delayed resource allocation strategy based on data cookies stored on the user's local terminal to prevent the disk operating system (DOS) flooding attack faced by the TCP protocol. It can be seen that the SCTP transmission protocol has no obvious advantages over the TCP protocol in terms of transmission reliability, transmission delay, and protocol complexity, and is also not suitable for local environments that require extreme performance.
[0120] Statistical counting and maintenance methods: A large number of statistical counters are implemented at each protocol level of TCP / IP / Ethernet, which can only clearly indicate what type of anomaly has occurred, such as packet loss due to data checksum failure. However, this counter is for all upper-layer software and cannot clearly indicate which application software has experienced this anomaly during data transmission and delivery, and cannot meet the analysis and location requirements of specific problems.
[0121] Packet capture analysis solution: The TCP / IP protocol stack can capture data packets, and then analyze the data packets offline to identify the problem points. Among them, the packet capture maintenance and testing method has the following three shortcomings:
[0122] First, only TCP / SCTP packets can be used to determine packet loss. Packet loss analysis relies on the number of data packets. Packet loss cannot be analyzed for UDP protocol packets or bare Ethernet packets (application payloads are directly carried on the Ethernet layer without high-level protocol encapsulation).
[0123] Second: The processing capacity and memory overhead of online indiscriminate packet capture are huge, which leads to high system overhead and affects normal business. It cannot be used as a common method and is difficult to capture occasional problems.
[0124] Third: Single-point packet capture cannot analyze end-to-end delay. The message does not carry the sending time information, only the packet capture time point information, unless the sending and receiving ends capture the packets at the same time, the operation is complicated.
[0125] Therefore, the existing Ethernet reliability transmission guarantee solutions and maintenance and testing methods have obvious shortcomings, as analyzed below:
[0126] The TCP / SCTP protocol guarantees high end-to-end latency and low efficiency, which cannot meet the high reliability, high real-time and high-efficiency transmission requirements of telecommunication equipment;
[0127] Existing protocol stack statistical technology maintenance and testing methods cannot accurately locate application software problems. Specifically, they cannot clearly identify the correlation between underlying exception counts and upper-layer applications.
[0128] The packet capture analysis method cannot meet the needs of packet loss analysis of non-TCP protocol packets, which is inconsistent with the demand for efficient transmission that data should be carried on UDP. In addition, the packet capture method requires huge processing power support, or has a great impact on business performance, or cannot support the packet capture function, and cannot be used as a conventional analysis method.
[0129] Analyzing end-to-end transmission delay requires simultaneous packet capture on both the sending and receiving sides, which is highly complex.
[0130] Therefore, the embodiments of the present application provide a data transmission method, device and network equipment within a base station, which can not only ensure the high concurrency, low latency and high reliability communication requirements of Ethernet, realize accurate maintenance and measurement based on packet loss and delay anomaly analysis, but also efficiently monitor the local area network communication status and ensure transmission quality.
[0131] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0132] The network device involved in the embodiments of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (long term evolution, LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (Home evolved Node B, HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present application. In some network structures, the network device may include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0133] Specifically, Figure 1 As shown, an embodiment of the present invention provides a method for data transmission within a base station, which is applied to a first base station module. The above method may specifically include:
[0134] Step 101, when the first base station module and the second base station module are communicatively connected and the half-frame number and half-frame time offset of the first base station module and the second base station module are synchronized, a plurality of first messages with consecutive numbers are sent to the second base station module via a first source-destination identifier SDI.
[0135] Specifically, multiple modules in the base station system form a star network, and they can communicate with each other. The above-mentioned first base station module and the second base station module are different modules in the base station system, and they are connected to each other in communication. The base station system requires that the frame numbers of all modules are synchronized. Before the base station system does business, it is necessary to first complete the "matching table" of each module, that is, the process of synchronizing the half-frame number and the half-frame time offset. This process is completed through hardware signal encoding, and the accuracy can reach the nanosecond level, avoiding simultaneous packet capture on both sides, and the implementation and operation are simpler. The following embodiments are all based on the description of the base station system that has been synchronized.
[0136] Among them, packet loss judgment can be achieved by numbering data messages with the same destination. The same source and destination determine a sending link, which is called the source-destination identification (SDI). The SDI is numbered to distinguish the link; the sent data is numbered continuously within an SDI, that is, the messages going to the same destination are uniformly numbered, which is called the destination sequence number (DSN). The link between the first base station module and the second base station module is the first SDI, and the multiple consecutively numbered first messages sent by the first base station module to the second base station module through the first SDI are the first messages with multiple DSN numbers. Specifically, the continuous numbering rule of the first base station module can be: continuous numbering according to the sending link (i.e., the first SDI), which can be continuous numbering in units of source IP and destination IP pairs or source media access control (MAC) and destination MAC pairs.
[0137] Step 102, when the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, receive an acknowledgment (Acknowledgement, ACK) message of the lost message corresponding to the retransmitted lost message number fed back by the second base station module, wherein the lost message number is determined by the second base station module based on the number of the second message and the number of the third message; wherein the first message includes the second message and the third message.
[0138] Specifically, if the second message and the third message received by the second base station module are not consecutively numbered, the second base station module learns the number of the lost message, and the second base station module determines the lost message number based on the number of the second message and the number of the third message, and sends an ACK message carrying the lost message number to the first base station module. The ACK message instructs the first base station module to retransmit the lost message corresponding to the lost message number, so that it can be clearly identified which application software and which data message transmission is abnormal. The result is more accurate and dynamic transmission status monitoring can be realized.
[0139] For example: the first base station module and the second base station module determine a link, and number it as SDI: 1 (i.e., the first SDI); each sent message in the SDI: 1 link is numbered continuously, i.e., DSN is accumulated from 1, i.e., the first base station module sends DSN: 1, DSN: 2, DSN: 3, and DSN: 4. If the third message received by the second base station module is DSN: 1 and DSN: 2, and the second message received is DSN: 4, then the second base station module determines that the lost message number is DSN: 3, and the second base station module sends an ACK message carrying the number DSN: 3 to the first base station module, and the ACK message instructs the first base station module to retransmit the lost message corresponding to DSN: 3.
[0140] Step 103: retransmit the lost message corresponding to the lost message number according to the ACK message.
[0141] Specifically, after receiving the ACK message, the first base station module retransmits the lost message corresponding to the lost message number on the first SDI according to the instruction of the ACK message.
[0142] In the above embodiment of the present invention, when the first base station module and the second base station module are in communication connection, and the half-frame number and half-frame time offset of the first base station module and the second base station module are synchronized, the first base station module sends a plurality of first messages with consecutive numbers to the second base station module through the first SDI. If the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, since the message number sent by the first base station module is continuous, when the message number received by the second base station module is discontinuous, the lost message number can be known, and the packet loss data can be accurately detected. In addition, the first base station module receives the confirmation ACK message of the lost message corresponding to the retransmitted lost message number fed back by the second base station module, and the lost message number is determined by the second base station module according to the number of the second message and the number of the third message. The first base station module retransmits the lost message corresponding to the lost message number according to the ACK message, thereby completing the retransmission of the lost message, which can ensure the transmission quality.
[0143] As an optional embodiment, before receiving the confirmation ACK message of the lost message corresponding to the retransmission lost message number fed back by the second base station module in step 102, the method further includes:
[0144] A plurality of first messages with consecutive numbers sent to the second base station module are stored.
[0145] Specifically, the first message for storing multiple consecutive numbers may use SDI cache to back up data so as to trigger retransmission when packet loss occurs. If there are multiple second base station modules, multiple SDI queues may be used, and each SDI queue is stored continuously according to DSN. Figure 2 As shown, the SDI cache can be instantiated as an array queue, each array member stores a message description block, the message description block includes the message address and its DSN number, and the storage location index INDEX is DSNN, where N is the queue depth, that is, the corresponding message number. When the ACK message feedback packet loss, the corresponding message can be quickly found according to the DSN number N.
[0146] For example: Figure 2 As shown, if the first SDI is the SDI 0 queue, the array queue form of the cache instantiation can be as follows Figure 2 The value of N ranges from 1 to 9.
[0147] As an optional embodiment, the step 103 retransmits the lost message corresponding to the lost message number according to the ACK message, including:
[0148] According to the ACK message, obtain the lost message corresponding to the lost message number;
[0149] The lost message is sent to the second base station module.
[0150] Specifically, after the first base station module receives the ACK message of packet loss feedback, the retransmission of the lost message is triggered, that is, it is necessary to obtain the storage location INDEX of the lost message from the saved backup message data, and read the data from the local cache, that is, it is necessary to obtain the lost message corresponding to the lost message number from the saved backup message data, and send the lost message to the second base station module through the first SDI, thereby completing the retransmission of the lost message.
[0151] As an optional embodiment, after the step 103 obtains the lost message corresponding to the lost message number according to the ACK message, the method further includes:
[0152] Generate lost message information according to the ACK message and the lost message;
[0153] Report the lost message information to the maintenance and testing system.
[0154] Specifically, after the first base station module receives the ACK message of packet loss feedback, the maintenance and testing log copy is triggered. Specifically: to obtain the feedback ACK message, it is necessary to obtain the storage location INDEX of the lost message from the saved backup message data, read the data from the local cache, and obtain the lost message; and generate relevant information of the lost message based on the lost message and the ACK message. The relevant information of the lost message clarifies the time point when the problem occurred and the corresponding lost message, and reports the relevant information of the lost message to the maintenance and testing system so that the maintenance and testing system can analyze and locate it. The maintenance and testing means are simple and efficient, and the maintenance and testing information upload based on packet loss and delay anomalies has higher performance and minimizes the impact on the performance of the business system.
[0155] Among them, the format of the lost message information carrying ACK message and lost message uploaded to the maintenance and testing system is as follows: Figure 3 shown.
[0156] As an optional embodiment, before sending each first message to the second base station module, the method further includes:
[0157] Determine a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message;
[0158] Determine a first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length;
[0159] The tail sign area in the first target buffer is filled with first tail sign data.
[0160] Specifically, before the first base station module sends each first message, it first performs tail signature encapsulation on each first message, specifically: determining the first tail signature encapsulation method of each first message, determining the first original buffer, and determining the first tail signature length; then the first base station module can determine the first target buffer containing the tail signature space according to the above-mentioned first tail signature encapsulation method, the first original buffer, and the first tail signature length, and fill the tail signature area (i.e., the tail signature space) in the first target buffer with the corresponding first tail signature data, thereby completing the tail signature encapsulation of the message; then the first base station module caches the message and sends the message to the second base station module. Among them, the format of the first tail signature data carried by the message is as follows: Figure 4 shown.
[0161] For example: Figure 5 As shown in the figure, the steps of encapsulating the message tail signature and caching the message are as follows:
[0162] Step 51, obtain the half-frame number and half-frame time offset of the current message; specifically, start to tail the first message, and first obtain the half-frame number and half-frame time offset of the current first message.
[0163] Step 52, fill the data tail signature time information at the end of the message; specifically, jump to the data end of the first message, and fill the time of filling the data tail signature into the tail signature area.
[0164] Step 53: allocate a DSN number for the message and fill the DSN number into the tail signature area.
[0165] Step 54, buffering messages according to SDI granularity; specifically, each SDI queue continuously stores the first message according to DSN.
[0166] Specifically, the above embodiment is applicable to the implementation of bare Ethernet frame or User Datagram Protocol (UDP) frame. When the bare Ethernet frame or UDP frame is sent, a label field is inserted at the end of the message, which is called "tail signature". It can be used to implement packet loss detection and delay analysis functions, and ensure the reliability of data transmission carried on UDP frame or bare Ethernet frame. The protocol is concise and solves the problem that TCP / SCTP is inefficient and the delay cannot meet the requirements of high-performance and high-real-time transmission. It can be divided into two situations: session layer reliability transmission and data link layer reliability transmission.
[0167] like Figure 6 As shown, reliable transmission is achieved between the first base station module and the second base station module at the session layer. When the first base station module sends a first message to the second base station module, the application data of the first base station module is suffixed before being submitted to the underlying protocol stack after being encoded at the first session layer; the second base station module checks whether there is packet loss before decoding at the second session layer, and if there is packet loss, retransmission is triggered, and the delay is analyzed and reported to the second application; the second base station module sends a message to the first base station module in the same way. Among them, the double-arrow curve represents the data flow of sending and receiving messages between the first base station module and the second base station module.
[0168] like Figure 7 As shown, reliable transmission is achieved between the first base station module and the second base station module at the data link layer. When the first base station module sends the first message to the second base station module, the application data of the first base station module is signed before being submitted to the Ethernet device at the data link layer. After the Ethernet device receives the message, the second base station module checks whether there is packet loss. If there is packet loss, retransmission is triggered, and the delay is analyzed and reported to the application program; the second base station module sends a message to the first base station module in the same way. Among them, the double-arrow curve represents the data flow of sending and receiving messages between the first base station module and the second base station module.
[0169] Among them, the Data Plane Development Kit (DPDK) is a user-plane Ethernet driver acceleration module used to achieve efficient business data transmission on operating system LINUX devices.
[0170] Furthermore, the first tail signature data includes at least one of the following five items:
[0171] The first item: the first indication information indicating the half-frame number of the sending time of the first message.
[0172] Specifically, the first tail signature data includes the half-frame number of the first message sending time. After receiving the first message, the second base station module can learn the half-frame number of the first message sending time according to the first tail signature data in the first message.
[0173] The second item: the second indication information indicating the half-frame time offset of the sending moment of the first message.
[0174] Specifically, the first tail signature data includes a half-frame time offset of the first message sending time. After receiving the first message, the second base station module can learn the half-frame time offset of the first message sending time according to the first tail signature data in the first message.
[0175] The third item: third indication information indicating that the first base station module consecutively numbers the first messages.
[0176] Specifically, the first suffix data includes the first base station module's consecutive numbers for first messages with the same purpose. After receiving the first message, the second base station module can know from the first suffix data in the first message that the first messages sent by the first base station module are consecutively numbered.
[0177] Item 4: fourth indication information of the first SDI instructing the first base station module to send the first message to the second base station module.
[0178] Specifically, the first tail signature data includes the identifier of the first base station module for the logical link (having the same source and destination), that is, the logical link used by the first base station module to send the first message to the second base station module.
[0179] Fifth item: fifth indication information indicating that the first tail sign data type is a data tail sign.
[0180] Specifically, the first tail signature data includes its own tail signature type. If the first tail signature data is a data tail signature, the first message is a data sending message.
[0181] As an optional embodiment, the first tail signature encapsulation method includes a copy method and a non-copy method;
[0182] The determining of the first target buffer according to the first tail signature encapsulation mode, the first original buffer, and the first tail signature length specifically includes:
[0183] When the first tail signature encapsulation mode is a copy mode, the first tail signature length area is expanded on the basis of the first original buffer to obtain a first target buffer;
[0184] When the first tail signature encapsulation mode is a non-copy mode, a first target buffer is configured according to the first original buffer and the first tail signature length.
[0185] Specifically, tail signature encapsulation can be divided into two types: copy-free sending (i.e. non-copy mode) and copy-sending (i.e. copy mode). For copy-free sending, the pre-applied first original buffer BUFFER needs to be increased to reserve tail signature space (i.e. tail signature length); for example: the originally defined first original buffer is 1664B, and the size SIZE seen at the application level remains unchanged at 1664B, and needs to be expanded to 1792B, and 128B is reserved to fill the tail signature at the tail, that is, the first tail signature length is 128B, that is, the expanded first target buffer is 1792B.
[0186] For copy sending, it is necessary to reapply for a new BUFFER, and the reapplied new BUFFER is the first target buffer, which contains the first original buffer length and the first tail sign length, that is, the first target buffer is composed of the first original buffer length and the first tail sign length; for example: the originally defined first original buffer is 1664B, and the first tail sign length is 128B. The first original buffer remains unchanged, and a new buffer is reapplied. The new buffer is 1792B consisting of 1664B plus 128B, that is, the configured first target buffer is 1792B.
[0187] The above method is described in detail below through a specific embodiment:
[0188] like Figure 8 As shown, if the first base station module sends a message to the second base station module and the third base station module, the specific implementation of the packet loss analysis mechanism is as follows:
[0189] The first base station module and the second base station module determine a link and number it as SDI:1; the first base station module and the third base station module determine a link and number it as SDI:2.
[0190] The first base station module consecutively numbers each sent message in the SDI:1 link, and the DSN starts numbering from 1, that is, sending SDI:1DSN:1, SDI:1DSN:2, SDI:1DSN:3, and SDI:1DSN:4, etc. The first base station module consecutively numbers each sent message in the SDI:2 link, and the DSN starts numbering from 1, that is, sending SDI:2DSN:1, SDI:2DSN:2, SDI:2DSN:3, and SDI:2DSN:4, etc.
[0191] When the second base station module only receives SDI:1DSN:1, SDI:1DSN:2 and SDI:1DSN:4 messages, the second base station module determines that SDI:1DSN:3 is lost, and the second base station module feeds back ACK SDI:1DSN:3 describing the lost message to the first base station module. After receiving the ACK message, the first base station module retransmits the SDI:1DSN:3 message according to its description information; and the first base station module reports the received ACK message and the retransmitted SDI:1DSN:3 message (clarifying the time point of the problem and the corresponding message) to the maintenance and testing system for the maintenance and testing system to analyze and locate. Among them, the first base station module sending messages to the third base station module via the SDI:2 link is not affected.
[0192] It should be noted that the above embodiments of the present invention include but are not limited to the following applicable scenarios: L2 local area network where services are carried in UDP frames or bare Ethernet frames (application payload is directly carried in the Ethernet layer without high-level protocol encapsulation), scenarios with extreme requirements on latency and performance (packet loss response latency is at the 100us level or even 10us level), typical applications are scenarios where applications are carried based on the UDP protocol stack or DPDK open source components, and the above embodiments of the high-reliability communication and maintenance mechanism can be implanted as an independent plug-in, which has good protocol compatibility.
[0193] In summary, the above-mentioned embodiment of the present invention synchronizes the half-frame number and half-frame time offset of the first base station module and the second base station module, that is, the delay analysis mechanism based on the base station time synchronization system avoids simultaneous packet capture on both sides, and the implementation and operation are simpler. In addition, the second base station module determines the number of the lost message according to the number of the second message and the number of the third message, and can clearly identify which application software and which data message has abnormal transmission. The result is more accurate, and dynamic transmission status monitoring can be achieved. In addition, the relevant information of the lost message is generated according to the lost message and the ACK message. The relevant information of the lost message clarifies the time point when the problem occurred and the corresponding lost message, and the relevant information of the lost message is reported to the maintenance and testing system for analysis and positioning by the maintenance and testing system. The maintenance and testing means are simple and efficient, and the maintenance and testing information is uploaded based on packet loss and delay anomalies, with higher performance, minimizing the impact on the performance of the business system. In addition, through packet loss detection and delay analysis functions, the reliability of data transmission carried on UDP frames or raw Ethernet frames is guaranteed. The protocol is simple and solves the problem that TCP / SCTP is inefficient and the delay cannot meet the requirements of high-performance and high-real-time transmission. It can achieve end-to-end delay reliability guarantee of hundreds of microseconds, which can meet the local high reliability, high real-time and high-efficiency transmission requirements of telecommunications equipment.
[0194] like Fig. 9As shown, an embodiment of the present invention provides a method for data transmission within a base station, which is applied to a second base station module. The method specifically includes:
[0195] Step 901, when the first base station module and the second base station module are communicatively connected, the half-frame numbers and half-frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, determine the lost message number according to the number of the second message and the number of the third message; wherein the second message and the third message are at least part of the first message sent by the first base station module.
[0196] Specifically, multiple modules in the base station system form a star network, and they can communicate with each other. The above-mentioned first base station module and the second base station module are different modules in the base station system, and they are connected to each other in communication. The base station system requires that the frame numbers of all modules are synchronized. Before the base station system does business, it is necessary to first complete the "matching table" of each module, that is, the process of synchronizing the half-frame number and the half-frame time offset. This process is completed through hardware signal encoding, and the accuracy can reach the nanosecond level, avoiding simultaneous packet capture on both sides, and the implementation and operation are simpler. The following embodiments are all based on the description of the base station system that has been synchronized.
[0197] Among them, packet loss judgment can be achieved by numbering data messages with the same destination. The same source and destination determine a sending link, which is called the source-destination identification (SDI). The SDI is numbered to distinguish the link; the sent data is numbered continuously within an SDI, that is, the messages going to the same destination are uniformly numbered, which is called the destination sequence number (DSN). The link between the first base station module and the second base station module is the first SDI, and the multiple consecutively numbered first messages sent by the first base station module to the second base station module through the first SDI are the first messages with multiple DSN numbers. Specifically, the continuous numbering rule of the first base station module can be: continuous numbering according to the sending link (i.e., the first SDI), which can be continuous numbering in units of source IP and destination IP pairs or source media access control (MAC) and destination MAC pairs.
[0198] If the second message and the third message received by the second base station module are not numbered consecutively, the first message sent by the first base station is lost. The second base station module learns the number of the lost message, and the second base station module can determine the lost message number based on the number of the second message and the number of the third message, so it can be clear which application software and which data message transmission is abnormal. The result is more accurate and dynamic transmission status monitoring can be achieved.
[0199] For example: the first base station module and the second base station module determine a link and number it as SDI: 1 (i.e., the first SDI); each sent message in the SDI: 1 link is numbered continuously, i.e., DSN is accumulated from 1, i.e., the first base station module sends DSN: 1, DSN: 2, DSN: 3, and DSN: 4. If the third message received by the second base station module is DSN: 1 and DSN: 2, and the second message received is DSN: 4, then the second base station module determines that the lost message number is DSN: 3.
[0200] Step 902: Generate, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number.
[0201] Specifically, the second base station module generates an ACK message according to the number of the lost message, and the ACK message carries the number of the lost message. The ACK message is used to instruct the first base station module to retransmit the lost message corresponding to the number of the lost message. In other words, the second base station module analyzes whether there is packet loss according to the numbers of the second message and the third message, that is, determines whether the DSN numbers of all messages with the same SDI are continuous. If not, an ACK message is sent, and the ACK message carries SDI and DSN, where DSN is the DSN of the lost message, that is, a hollow DSN.
[0202] Step 903: Send the ACK message to the first base station module.
[0203] Specifically, the second base station module sends the ACK message to the first base station module, so that the first base station module retransmits the lost message according to the ACK message.
[0204] In the above embodiment of the present invention, when the first base station module and the second base station module are in communication connection, and the half-frame number and half-frame time offset of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, the lost message number is determined according to the number of the second message and the number of the third message, that is, because the message number sent by the first base station module is continuous, when the message number received by the second base station module is discontinuous, the lost message number can be known, and it can be clearly determined which application software and which data message transmission is abnormal, the result is more accurate, and dynamic transmission status monitoring can be achieved. In addition, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number is generated, and the ACK message is sent to the first base station module, so that the first base station module retransmits the lost message according to the ACK message, thereby completing the retransmission of the lost message, and ensuring the transmission quality.
[0205] As a specific embodiment, the method further includes:
[0206] Receive a second message sent by the first base station module, where the second message includes second tail signature data;
[0207] The message transmission delay is determined according to the second tail signature data.
[0208] Specifically, the second base station module receives the second message sent by the first base station module at the current time, and the second message is a part of the first message with consecutive numbers sent by the first base station, wherein the second message includes the second tail signature data, and each third message also includes the second tail signature data. After receiving each second message or third message, the second base station module jumps to the end of the message to extract the tail signature information, that is, the second tail signature data. The transmission delay of the message can be obtained according to the second tail signature data. The second tail signature data can be used to implement packet loss detection and delay analysis functions, and ensure the reliability of data transmission carried on UDP frames or raw Ethernet frames. The protocol is concise and solves the problem that TCP / SCTP is inefficient and the delay cannot meet the high-performance and high-real-time transmission requirements.
[0209] As an optional embodiment, the second tail signature data includes at least one of the following five items:
[0210] The first item: the sixth indication information indicating the half-frame number of the sending time of the second message.
[0211] Specifically, the first tail signature data includes the half-frame number of the second message sending time. After receiving the second message, the second base station module can learn the half-frame number of the second message sending time according to the second tail signature data in the second message.
[0212] The second item: the seventh indication information indicating the half-frame time offset of the sending moment of the second message.
[0213] Specifically, the second tail signature data includes a half-frame time offset of the second message sending time. After receiving the second message, the second base station module can learn the half-frame time offset of the second message sending time according to the second tail signature data in the second message.
[0214] Item 3: eighth indication information indicating that the first base station module consecutively numbers the first messages.
[0215] Specifically, the second suffix data includes the consecutive numbers of the first messages with the same purpose by the first base station module. After the second base station module receives the second message in the first message at the current time, it can be known from the second suffix data in the second message that the first message sent by the first base station module is consecutively numbered, that is, the second message and the third message should be consecutively numbered.
[0216] Item 4: ninth indication information of the first SDI instructing the first base station module to send the second message to the second base station module.
[0217] Specifically, the second tail signature data includes the identifier of the first base station module for the logical link (having the same source and destination), that is, the logical link used by the first base station module to send the second message to the second base station module.
[0218] Item 5: tenth indication information indicating that the data type of the second tail signature is a data tail signature.
[0219] Specifically, the second suffix data includes its own suffix type. If the second suffix data is a data suffix, the second message is a sending message.
[0220] As an optional embodiment, when the second tail signature data includes the sixth indication information and the seventh indication information, the step of determining the message transmission delay according to the second tail signature data specifically includes:
[0221] Obtaining the receiving time of the second message currently received;
[0222] The message transmission delay is determined according to the receiving time, the half-frame number of the sending time of the second message, and the half-frame time offset of the sending time of the second message.
[0223] Specifically, according to the frame number synchronization of the base station, after the second base station module receives the second message at the current time, it determines the receiving time of the second message (that is, the half-frame number and the half-frame number time offset of the current time); and jumps to the tail of the data of the second message to extract the tail signature information, that is, the second tail signature data, extracts the half-frame number of the sending time and the half-frame time offset of the sending time of the second message contained in the second tail signature data, and compares the half-frame number of the sending time and the half-frame time offset of the sending time of the second message with the half-frame number and the half-frame time offset of the current time, thereby obtaining the message transmission delay of the second message.
[0224] As an optional embodiment, the step 901 determines the lost message number according to the number of the second message and the number of the third message, including:
[0225] Compare the first number corresponding to the second message received at the current time with the largest number in the third message received before the current time;
[0226] In the case that the first number is greater than the maximum number, the lost message number is determined according to the number of the second message and the number of the third message.
[0227] Specifically, if the DSN number in the first SDI is continuous, the currently received second message is directly submitted to the corresponding application; if the DSN number in the first SDI is not continuous, the first number corresponding to the currently received second message is compared with the maximum number among the multiple third messages received at the current time. If the first number is greater than the maximum number among the third messages, it can be determined that the lost message number is the missing message number, and the sending of the ACK message is triggered.
[0228] As an optional embodiment, after comparing the first number corresponding to the second message received at the current time with the maximum number in the third message received before the current time, the method further includes:
[0229] When the first number is smaller than the maximum number, the second message is reported to the application.
[0230] Specifically, if the DSN number in the first SDI is not continuous, the first number corresponding to the currently received second message is compared with the maximum number among the multiple third messages received at the current time. If the first number is smaller than the maximum number among the third messages, it proves that the second message is a retransmitted message or an out-of-order message (there is no out-of-order in the L2 switching network), and the second message can be directly reported to the corresponding application.
[0231] As an optional embodiment, after the step 903 sends the ACK message to the first base station module, the method further includes:
[0232] Receive a lost message corresponding to the lost message number fed back by the first base station module according to the ACK message;
[0233] Report the lost message to the application.
[0234] Specifically, after the second base station module triggers retransmission to generate an ACK message and feeds it back to the first base station module, the second base station module skips this empty DSN (i.e., lost message) and continues to receive other messages to ensure the timeliness of the message. In addition, in order to further ensure the timeliness of the message, only one retransmission may be allowed.
[0235] As an optional embodiment, the step 902 generates, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number, specifically including:
[0236] Determine a second tail signature encapsulation mode, a second original buffer, and a second tail signature length of the ACK message;
[0237] Determine a second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length;
[0238] The tail sign area in the second target buffer is filled with third tail sign data.
[0239] Specifically, before the second base station module sends the ACK message, the ACK message is firstly encapsulated with a tail signature. Specifically: determine the second tail signature encapsulation method of the ACK message, determine the second original buffer, and determine the second tail signature length; then the second base station module can determine the second target buffer containing the tail signature space according to the above-mentioned second tail signature encapsulation method, the second original buffer, and the second tail signature length, and fill the tail signature area (i.e., the tail signature space) in the second target buffer with the corresponding third tail signature data, thereby completing the tail signature encapsulation of the ACK message. Among them, when multiple message numbers are lost, the ACK message is described by multiple third tail signature data, and the ACK message carries multiple third tail signature data in the format of Fig.10 shown.
[0240] As an optional embodiment, the second tail signature encapsulation method includes a copy method and a non-copy method;
[0241] The determining of the second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length specifically includes:
[0242] When the second tail signature encapsulation mode is a copy mode, a second tail signature length area is expanded on the basis of the second original buffer to obtain a second target buffer;
[0243] When the second tail signature encapsulation mode is a non-copy mode, the second target buffer is configured according to the second original buffer and the second tail signature length.
[0244] Specifically, tail signature encapsulation can be divided into two types: copy-free sending (i.e. non-copy mode) and copy-sending (i.e. copy mode). For copy-free sending, the pre-applied second original buffer needs to be enlarged to reserve tail signature space (i.e. tail signature length); for example: the originally defined second original buffer is 1664B, and the size SIZE seen at the application level remains unchanged at 1664B, and needs to be expanded to 1792B, and 128B is reserved to fill the tail signature at the tail, that is, the second tail signature length is 128B, that is, the second target buffer after expansion is 1792B.
[0245] For copy sending, it is necessary to reapply for a new BUFFER, and the reapplied new BUFFER is the second target buffer, which contains the second original buffer length and the second tail sign length, that is, the second target buffer is composed of the second original buffer length and the second tail sign length; for example: the originally defined second original buffer is 1664B, and the second tail sign length is 128B. The second original buffer remains unchanged, and a new buffer is reapplied. The new buffer is 1792B consisting of 1664B plus 128B, that is, the configured second target buffer is 1792B.
[0246] As an optional embodiment, the third tail signature data includes at least one of the following six items:
[0247] The first item: the eleventh indication information indicating the half-frame number of the sending time of the ACK message.
[0248] Specifically, the second tail signature data includes the half-frame number of the sending time of the ACK message. After receiving the ACK message, the first base station module can know the half-frame number of the sending time of the ACK message according to the second tail signature data in the ACK message.
[0249] The second item: the twelfth indication information indicating the half-frame time offset of the sending moment of the ACK message.
[0250] Specifically, the second tail signature data includes a half-frame time offset of the ACK message sending time. After receiving the ACK message, the first base station module can learn the half-frame time offset of the ACK message sending time according to the second tail signature data in the ACK message.
[0251] Item 3: thirteenth indication information indicating the lost message number of the lost message.
[0252] Specifically, the second tail signature data includes the lost message number of the lost message. After receiving the lost message number of the lost message, the first base station module can obtain the corresponding lost message according to the lost message number and retransmit it to the second base station module.
[0253] Item 4: fourteenth indication information of the first SDI instructing the second base station module to send the ACK message to the first base station module.
[0254] Specifically, the third tail signature data includes the identifier of the second base station module for the logical link (having the same source and destination), that is, the logical link used by the second base station module to send the ACK message to the first base station module.
[0255] Item 5: Fifteenth indication information indicating that the data type of the third tail signature is an ACK tail signature.
[0256] Specifically, the third final signature data includes its own final signature type. If the third final signature data is an ACK final signature, the message is an ACK message.
[0257] Item 6: sixteenth indication information indicating whether the current third tail signature data is the last tail signature data.
[0258] Specifically, the third final signature data includes indication information indicating whether the current third final signature data is the last final signature data. If the indication information is 0, it means that the third final signature data is the last final signature data; if the indication information is 1, there are other final signature data after the third final signature data.
[0259] The above scheme is described below through a specific embodiment:
[0260] like Fig.11 As shown, step 111, obtain the current half-frame number and the half-frame time offset; specifically, after receiving the message, the second base station module obtains the half-frame number and the half-frame time offset of the current time.
[0261] Step 112, obtaining the half-frame number and the half-frame time offset of the message sending time; specifically, obtaining the half-frame number and the half-frame time offset of the message sending time from the tail signature data of the received message.
[0262] Step 113, obtain the message transmission delay; specifically, the second base station module calculates the message transmission delay of the message according to the half-frame number of the current time, the half-frame time offset of the current time, the half-frame number of the message sending time, and the half-frame time offset of the message sending time.
[0263] Step 114, determine whether it is a data tail signature; specifically, the second base station module determines whether it is a data tail signature based on the tail signature data in the received message, if it is a data tail signature, proceed to step 115, if it is an ACK tail signature, proceed to step 118.
[0264] Step 115, determine whether the received message numbers are continuous. If the message numbers are continuous, proceed to step 116; if the message numbers are not continuous, proceed to step 117.
[0265] Step 116: Report the received message to the application.
[0266] Step 117: Generate an ACK message and feed it back to the base station module that sent the message.
[0267] Step 118: retransmit the corresponding lost message according to the ACK tail signature.
[0268] In summary, the above-mentioned embodiment of the present invention synchronizes the half-frame number and half-frame time offset of the first base station module and the second base station module, that is, the delay analysis mechanism based on the base station time synchronization system avoids simultaneous packet capture on both sides, and the implementation and operation are more concise. In addition, the second base station module determines the number of the lost message according to the number of the second message and the number of the third message, and can clearly identify which application software and which data message transmission is abnormal. The result is more accurate and dynamic transmission status monitoring can be achieved. In addition, the packet loss detection and delay analysis functions are realized through the second tail signature data to ensure the reliability of data transmission carried on UDP frames or bare Ethernet frames. The protocol is concise, and the problem of TCP / SCTP inefficiency and delay that cannot meet the requirements of high-performance and high-real-time transmission can be solved. It can achieve end-to-end delay reliability guarantee of hundreds of microseconds, and can meet the local high reliability, high real-time and high-efficiency transmission requirements of telecommunications equipment.
[0269] The above describes the data transmission method within a base station provided by an embodiment of the present invention. The following describes the data transmission device within a base station provided by an embodiment of the present invention in conjunction with the accompanying drawings.
[0270] like Fig.12 As shown, the embodiment of the present invention further provides a data transmission device 1200 in a base station, which is applied to a first base station module and includes:
[0271] A first sending module 1201 is configured to send a plurality of first messages with consecutive numbers to the second base station module through a first source-destination identifier SDI when the first base station module and the second base station module are in communication connection and the half-frame numbers and half-frame time offsets of the first base station module and the second base station module are synchronized;
[0272] A first receiving module 1202 is configured to receive an ACK message of a lost message corresponding to a retransmitted lost message number fed back by the second base station module, when the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, wherein the lost message number is determined by the second base station module according to the number of the second message and the number of the third message;
[0273] The retransmission module 1203 is used to retransmit the lost message corresponding to the lost message number according to the ACK message; wherein the first message includes the second message and the third message.
[0274] Optionally, the device further comprises:
[0275] A storage module is used to store multiple first messages with consecutive numbers sent to the second base station module.
[0276] Optionally, the retransmission module 1203 includes:
[0277] According to the ACK message, obtain the lost message corresponding to the lost message number;
[0278] The lost message is sent to the second base station module.
[0279] Optionally, the device further comprises:
[0280] A first generating module, configured to generate lost message information according to the ACK message and the lost message;
[0281] The first reporting module is used to report the lost message information to the maintenance and testing system.
[0282] Optionally, before sending each first message to the second base station module, the device further includes:
[0283] A first determining module, used to determine a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message;
[0284] A second determining module, configured to determine a first target buffer according to the first tail signature encapsulation mode, the first original buffer, and the first tail signature length;
[0285] The first filling module is used to fill the first tail sign area in the first target buffer with first tail sign data.
[0286] Optionally, the first tail signature encapsulation method includes a copy method and a non-copy method;
[0287] Wherein, the second determining module is specifically used for:
[0288] When the first tail signature encapsulation mode is a copy mode, the first tail signature length area is expanded on the basis of the first original buffer to obtain a first target buffer;
[0289] When the first tail signature encapsulation mode is a non-copy mode, a first target buffer is configured according to the first original buffer and the first tail signature length.
[0290] Optionally, the first tail signature data includes at least one of the following:
[0291] First indication information indicating the half-frame number of the sending time of the first message;
[0292] Second indication information indicating a half-frame time offset of a sending moment of the first message;
[0293] third indication information instructing the first base station module to consecutively number the first messages;
[0294] fourth indication information of the first SDI of the first message instructing the first base station module to send the first message to the second base station module;
[0295] Fifth indication information indicating that the first tail signature data type is a data tail signature.
[0296] It should be noted here that the above-mentioned device applied to the first base station module provided by the embodiment of the present invention can implement all the method steps implemented by the above-mentioned method embodiment applied to the first base station module, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0297] like Fig.13 As shown, the embodiment of the present invention further provides a data transmission device 1300 in a base station, which is applied to a second base station module and includes:
[0298] The first processing module 1301 is used to determine the lost message number according to the number of the second message and the number of the third message when the first base station module and the second base station module are communicatively connected, the half frame numbers and the half frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered;
[0299] The second processing module 1302 is used to generate an ACK message for retransmitting the lost message corresponding to the lost message number according to the lost message number;
[0300] The second sending module 1303 is used to send the ACK message to the first base station module; wherein the second message and the third message are at least a part of the first message sent by the first base station module.
[0301] Optionally, the device further comprises:
[0302] A second receiving module, used to receive a second message sent by the first base station module, wherein the second message includes second tail signature data;
[0303] The third determining module is used to determine the message transmission delay according to the second tail signature data.
[0304] Optionally, the second tail signature data includes at least one of the following:
[0305] Sixth indication information indicating the half frame number of the sending time of the second message;
[0306] Seventh indication information indicating a half-frame time offset of a sending moment of the second message;
[0307] eighth indication information instructing the first base station module to consecutively number the first messages;
[0308] ninth indication information of the first SDI indicating the first base station module to send the second message to the second base station module;
[0309] Tenth indication information indicating that the data type of the second tail signature is a data tail signature.
[0310] Optionally, when the first tail signature data includes sixth indication information and seventh indication information, the third determining module is specifically configured to:
[0311] Obtaining the receiving time of the second message currently received;
[0312] The message transmission delay is determined according to the receiving time, the half-frame number of the sending time of the second message, and the half-frame time offset of the sending time of the second message.
[0313] Optionally, the first processing module 1301 is specifically configured to:
[0314] Compare the first number corresponding to the second message received at the current time with the largest number in the third message received before the current time;
[0315] In the case that the first number is greater than the maximum number, the lost message number is determined according to the number of the second message and the number of the third message.
[0316] Optionally, the device further comprises:
[0317] The second reporting module is used to report the second message to the application program when the first number is smaller than the maximum number.
[0318] Optionally, the device further comprises:
[0319] A third receiving module, configured to receive a lost message corresponding to the lost message number fed back by the first base station module according to the ACK message;
[0320] The third reporting module is used to report the lost message to the application.
[0321] Optionally, the second processing module 1302 is specifically configured to:
[0322] Determine a second tail signature encapsulation mode, a second original buffer, and a second tail signature length of the ACK message;
[0323] Determine a second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length;
[0324] The tail sign area in the second target buffer is filled with third tail sign data.
[0325] Optionally, the second tail signature encapsulation method includes a copy method and a non-copy method;
[0326] The second processing module 1302 is used to determine the second target buffer according to the second tail signature encapsulation mode, the second original buffer and the second tail signature length, specifically to:
[0327] When the second tail signature encapsulation mode is a copy mode, a second tail signature length area is expanded on the basis of the second original buffer to obtain a second target buffer;
[0328] When the second tail signature encapsulation mode is a non-copy mode, the second target buffer is configured according to the second original buffer and the second tail signature length.
[0329] Optionally, the third tail signature data includes at least one of the following:
[0330] The eleventh indication information indicating the half frame number of the sending time of the ACK message;
[0331] Twelfth indication information indicating a half-frame time offset of a sending moment of the ACK message;
[0332] Thirteenth indication information indicating a lost message number of the lost message;
[0333] Fourteenth indication information of the first SDI instructing the second base station module to send the ACK message to the first base station module;
[0334] Fifteenth indication information indicating that the data type of the third tail signature is an ACK tail signature;
[0335] The sixteenth indication information indicates whether the current third tail signature data is the last tail signature data.
[0336] It should be noted here that the above-mentioned device applied to the second base station module provided by the embodiment of the present invention can implement all the method steps implemented by the above-mentioned method embodiment applied to the second base station module, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0337] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0338] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0339] like Fig.14 As shown, an embodiment of the present invention further provides a network device, which is a first base station module, including a memory 1420, a transceiver 1410, and a processor 1400:
[0340] Memory 1420, used for storing computer programs;
[0341] A transceiver 1410, configured to transmit and receive data under the control of the processor;
[0342] The processor 1400 is configured to read the computer program in the memory and perform the following operations:
[0343] When the first base station module and the second base station module are in communication connection and the half frame numbers and the half frame time offsets of the first base station module and the second base station module are synchronized, a plurality of first messages with consecutive numbers are sent to the second base station module through a first source-destination identifier SDI;
[0344] In the case where the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, receiving an ACK message of a lost message corresponding to the retransmitted lost message number fed back by the second base station module, where the lost message number is determined by the second base station module according to the number of the second message and the number of the third message;
[0345] Retransmitting the lost message corresponding to the lost message number according to the ACK message;
[0346] The first message includes the second message and the third message.
[0347] Optionally, before the processor 1400 executes receiving an acknowledgment ACK message of a lost message corresponding to the retransmission lost message number fed back by the second base station module, the processor is further configured to:
[0348] A plurality of first messages with consecutive numbers sent to the second base station module are stored.
[0349] Optionally, when the processor 1400 executes, according to the ACK message, retransmitting the lost message corresponding to the lost message number, specifically:
[0350] According to the ACK message, obtain the lost message corresponding to the lost message number;
[0351] The lost message is sent to the second base station module.
[0352] Optionally, after the processor 1400 executes, according to the ACK message, acquiring a lost message corresponding to the lost message number, the processor is further configured to:
[0353] Generate lost message information according to the ACK message and the lost message;
[0354] Report the lost message information to the maintenance and testing system.
[0355] Optionally, before sending each first message to the second base station module, the processor 1400 is further configured to:
[0356] Determine a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message;
[0357] Determine a first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length;
[0358] The tail sign area in the first target buffer is filled with first tail sign data.
[0359] Optionally, the first tail signature encapsulation method includes a copy method and a non-copy method;
[0360] When the processor 1400 determines the first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length, it is specifically configured to:
[0361] When the first tail signature encapsulation mode is a copy mode, the first tail signature length area is expanded on the basis of the first original buffer to obtain a first target buffer;
[0362] When the first tail signature encapsulation mode is a non-copy mode, a first target buffer is configured according to the first original buffer and the first tail signature length.
[0363] Optionally, the first tail signature data includes at least one of the following:
[0364] First indication information indicating the half-frame number of the sending time of the first message;
[0365] Second indication information indicating a half-frame time offset of a sending moment of the first message;
[0366] third indication information instructing the first base station module to consecutively number the first messages;
[0367] fourth indication information of the first SDI of the first message instructing the first base station module to send the first message to the second base station module;
[0368] Fifth indication information indicating that the first tail signature data type is a data tail signature.
[0369] like Fig.14 As shown, an embodiment of the present invention further provides another network device, which is a second base station module, including a memory 1420, a transceiver 1410, and a processor 1400:
[0370] Memory 1420, used for storing computer programs;
[0371] A transceiver 1410, configured to transmit and receive data under the control of the processor;
[0372] The processor 1400 is configured to read the computer program in the memory and perform the following operations:
[0373] In the case where the first base station module and the second base station module are communicatively connected, the half-frame numbers and the half-frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, determining the lost message number according to the number of the second message and the number of the third message;
[0374] Generate an ACK message for retransmitting the lost message corresponding to the lost message number according to the lost message number;
[0375] Sending the ACK message to the first base station module;
[0376] The second message and the third message are at least a part of the first message sent by the first base station module.
[0377] Optionally, the processor 1400 is further configured to:
[0378] Receive a second message sent by the first base station module, where the second message includes second tail signature data;
[0379] The message transmission delay is determined according to the second tail signature data.
[0380] Optionally, the second tail signature data includes at least one of the following:
[0381] Sixth indication information indicating the half frame number of the sending time of the second message;
[0382] Seventh indication information indicating a half-frame time offset of a sending moment of the second message;
[0383] eighth indication information instructing the first base station module to consecutively number the first messages;
[0384] ninth indication information of the first SDI indicating the first base station module to send the second message to the second base station module;
[0385] Tenth indication information indicating that the data type of the second tail signature is a data tail signature.
[0386] Optionally, when the second tail signature data includes sixth indication information and seventh indication information, the processor 1400 determines the message transmission delay according to the second tail signature data, specifically for:
[0387] Obtaining the receiving time of the second message currently received;
[0388] The message transmission delay is determined according to the receiving time, the half-frame number of the sending time of the second message, and the half-frame time offset of the sending time of the second message.
[0389] Optionally, when the processor 1400 determines the lost message number according to the number of the second message and the number of the third message, it is specifically configured to:
[0390] Compare the first number corresponding to the second message received at the current time with the largest number in the third message received before the current time;
[0391] In the case that the first number is greater than the maximum number, the lost message number is determined according to the number of the second message and the number of the third message.
[0392] Optionally, after the processor 1400 compares the first number corresponding to the second message received at the current time with the maximum number in the third message received before the current time, the processor is further configured to:
[0393] When the first number is smaller than the maximum number, the second message is reported to the application.
[0394] Optionally, after the processor 1400 executes sending the ACK message to the first base station module, the processor is further configured to:
[0395] Receive a lost message corresponding to the lost message number fed back by the first base station module according to the ACK message;
[0396] Report the lost message to the application.
[0397] Optionally, when the processor 1400 generates, according to the lost message number, an ACK message for retransmitting a lost message corresponding to the lost message number, the processor 1400 is specifically configured to:
[0398] Determine a second tail signature encapsulation mode, a second original buffer, and a second tail signature length of the ACK message;
[0399] Determine a second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length;
[0400] The tail sign area in the second target buffer is filled with third tail sign data.
[0401] Optionally, the second tail signature encapsulation method includes a copy method and a non-copy method;
[0402] When the processor 1400 determines the second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length, it is specifically configured to:
[0403] When the second tail signature encapsulation mode is a copy mode, a second tail signature length area is expanded on the basis of the second original buffer to obtain a second target buffer;
[0404] When the second tail signature encapsulation mode is a non-copy mode, the second target buffer is configured according to the second original buffer and the second tail signature length.
[0405] Optionally, the third tail signature data includes at least one of the following:
[0406] The eleventh indication information indicating the half frame number of the sending time of the ACK message;
[0407] Twelfth indication information indicating a half-frame time offset of a sending moment of the ACK message;
[0408] Thirteenth indication information indicating a lost message number of the lost message;
[0409] Fourteenth indication information of the first SDI instructing the second base station module to send the ACK message to the first base station module;
[0410] Fifteenth indication information indicating that the data type of the third tail signature is an ACK tail signature;
[0411] The sixteenth indication information indicates whether the current third tail signature data is the last tail signature data.
[0412] Among them, Fig.14 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 1400 and various circuits of memory represented by memory 1420 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1410 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which transmission medium may include a wireless channel, a wired channel, an optical cable, and other transmission media. The processor 1400 is responsible for managing the bus architecture and general processing, and the memory 1420 may store data used by the processor 1400 when performing operations.
[0413] The processor 1400 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0414] The processor calls the computer program stored in the memory to execute any of the base station data transmission methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0415] It should be noted here that the above-mentioned network device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned base station data transmission method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0416] An embodiment of the present invention further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the above-mentioned intra-base station data transmission method.
[0417] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0418] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0419] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0420] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0421] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0422] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data transmission method within a base station, applied to a first base station module, characterized in that: The method comprises: When the first base station module and the second base station module are in communication connection and the half frame numbers and the half frame time offsets of the first base station module and the second base station module are synchronized, a plurality of first messages with consecutive numbers are sent to the second base station module through a first source-destination identifier SDI; In the case where the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, receiving an ACK message of a lost message corresponding to the retransmitted lost message number fed back by the second base station module, where the lost message number is determined by the second base station module according to the number of the second message and the number of the third message; Retransmitting the lost message corresponding to the lost message number according to the ACK message; Wherein, the first message includes the second message and the third message; Before sending each first message to the second base station module, the method further includes: Determine a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message; Determine a first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length; The tail sign area in the first target buffer is filled with first tail sign data.
2. The method according to claim 1, characterized in that Before receiving an ACK message of a lost message corresponding to the retransmission lost message number fed back by the second base station module, the method further includes: A plurality of first messages with consecutive numbers sent to the second base station module are stored.
3. The method according to claim 1 or 2, characterized in that: The retransmitting, according to the ACK message, the lost message corresponding to the lost message number, comprises: According to the ACK message, obtain the lost message corresponding to the lost message number; The lost message is sent to the second base station module.
4. The method according to claim 3, characterized in that After obtaining the lost message corresponding to the lost message number according to the ACK message, the method further includes: Generate lost message information according to the ACK message and the lost message; Report the lost message information to the maintenance and testing system.
5. The method according to claim 1, characterized in that The first tail signature encapsulation method includes a copy method and a non-copy method; The determining of the first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length includes: When the first tail signature encapsulation mode is a copy mode, the first tail signature length area is expanded on the basis of the first original buffer to obtain a first target buffer; When the first tail signature encapsulation mode is a non-copy mode, a first target buffer is configured according to the first original buffer and the first tail signature length.
6. The method according to claim 1, characterized in that The first tail signature data includes at least one of the following: First indication information indicating the half-frame number of the sending time of the first message; Second indication information indicating a half-frame time offset of a sending moment of the first message; third indication information instructing the first base station module to consecutively number the first messages; fourth indication information of the first SDI of the first message instructing the first base station module to send the first message to the second base station module; Fifth indication information indicating that the first tail sign data type is a data tail sign.
7. A data transmission method within a base station, applied to a second base station module, characterized in that: The method comprises: In the case where the first base station module and the second base station module are communicatively connected, the half-frame numbers and the half-frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, determining the lost message number according to the number of the second message and the number of the third message; Generate an ACK message for retransmitting the lost message corresponding to the lost message number according to the lost message number; Sending the ACK message to the first base station module; The second message and the third message are at least a part of the first message sent by the first base station module; Receive a second message sent by the first base station module, where the second message includes second tail signature data; The message transmission delay is determined according to the second tail signature data.
8. The method according to claim 7, characterized in that The second tail signature data includes at least one of the following: Sixth indication information indicating the half frame number of the sending time of the second message; Seventh indication information indicating a half-frame time offset of a sending moment of the second message; eighth indication information instructing the first base station module to consecutively number the first messages; ninth indication information of the first SDI indicating the first base station module to send the second message to the second base station module; Tenth indication information indicating that the data type of the second tail signature is a data tail signature.
9. The method according to claim 8, characterized in that In a case where the second tail signature data includes the sixth indication information and the seventh indication information, determining the message transmission delay according to the second tail signature data includes: Obtaining the receiving time of the second message currently received; The message transmission delay is determined according to the receiving time, the half-frame number of the sending time of the second message, and the half-frame time offset of the sending time of the second message.
10. The method according to claim 7, characterized in that The determining the lost message number according to the number of the second message and the number of the third message includes: Compare the first number corresponding to the second message received at the current time with the largest number in the third message received before the current time; In the case that the first number is greater than the maximum number, the lost message number is determined according to the number of the second message and the number of the third message.
11. The method according to claim 10, characterized in that After comparing the first number corresponding to the second message received at the current time with the maximum number in the third message received before the current time, the method further includes: When the first number is smaller than the maximum number, the second message is reported to the application.
12. The method according to claim 7, characterized in that After sending the ACK message to the first base station module, the method further includes: Receive a lost message corresponding to the lost message number fed back by the first base station module according to the ACK message; Report the lost message to the application.
13. The method according to claim 7, characterized in that The generating, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number, comprises: Determine a second tail signature encapsulation mode, a second original buffer, and a second tail signature length of the ACK message; Determine a second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length; The tail sign area in the second target buffer is filled with third tail sign data.
14. The method according to claim 13, characterized in that The second tail signature encapsulation mode includes a copy mode and a non-copy mode; The determining of the second target buffer according to the second tail signature encapsulation mode, the second original buffer, and the second tail signature length includes: When the second tail signature encapsulation mode is a copy mode, a second tail signature length area is expanded on the basis of the second original buffer to obtain a second target buffer; When the second tail signature encapsulation mode is a non-copy mode, the second target buffer is configured according to the second original buffer and the second tail signature length.
15. The method according to claim 13, characterized in that The third tail signature data includes at least one of the following: The eleventh indication information indicating the half frame number of the sending time of the ACK message; Twelfth indication information indicating a half-frame time offset of a sending moment of the ACK message; Thirteenth indication information indicating a lost message number of the lost message; Fourteenth indication information of the first SDI instructing the second base station module to send the ACK message to the first base station module; Fifteenth indication information indicating that the data type of the third tail signature is an ACK tail signature; The sixteenth indication information indicates whether the current third tail signature data is the last tail signature data.
16. A network device, the network device being a first base station module, characterized in that: Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: When the first base station module and the second base station module are in communication connection and the half frame numbers and the half frame time offsets of the first base station module and the second base station module are synchronized, a plurality of first messages with consecutive numbers are sent to the second base station module through a first source-destination identifier SDI; In the case where the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, receiving an ACK message of a lost message corresponding to the retransmitted lost message number fed back by the second base station module, where the lost message number is determined by the second base station module according to the number of the second message and the number of the third message; Retransmitting the lost message corresponding to the lost message number according to the ACK message; Wherein, the first message includes the second message and the third message; Before the transceiver sends each first message to the second base station module, the operation further includes: Determine a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message; Determine a first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length; The tail sign area in the first target buffer is filled with first tail sign data.
17. A network device, the network device being a second base station module, characterized in that: Including memory, transceiver, processor: A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: In the case where the first base station module and the second base station module are communicatively connected, the half-frame numbers and the half-frame time offsets of the first base station module and the second base station module are synchronized, and the second message received at the current time and the third message received before the current time are non-continuously numbered, determining the lost message number according to the number of the second message and the number of the third message; Generate an ACK message for retransmitting the lost message corresponding to the lost message number according to the lost message number; Sending the ACK message to the first base station module; The second message and the third message are at least a part of the first message sent by the first base station module; the second message sent by the first base station module is received, and the second message includes second tail signature data; The message transmission delay is determined according to the second tail signature data.
18. A data transmission device in a base station, applied to a first base station module, characterized in that: include: A first sending module, configured to send a plurality of first messages with consecutive numbers to the second base station module through a first source-destination identifier SDI when the first base station module and the second base station module are in communication connection and the half-frame numbers and half-frame time offsets of the first base station module and the second base station module are synchronized; A first receiving module, configured to receive an ACK message of a lost message corresponding to a retransmitted lost message number fed back by the second base station module, when the second message received by the second base station module at the current time and the third message received before the current time are non-continuously numbered, wherein the lost message number is determined by the second base station module according to the number of the second message and the number of the third message; A retransmission module, configured to retransmit the lost message corresponding to the lost message number according to the ACK message; Wherein, the first message includes the second message and the third message; The sending module determines a first tail signature encapsulation mode, a first original buffer, and a first tail signature length of each first message before sending each first message to the second base station module; Determine a first target buffer according to the first tail sign encapsulation mode, the first original buffer, and the first tail sign length; The tail sign area in the first target buffer is filled with first tail sign data.
19. A data transmission device in a base station, applied to a second base station module, characterized in that: include: A first processing module, configured to determine a lost message number according to a number of the second message and a number of the third message, when a first base station module and a second base station module are communicatively connected, and the half-frame numbers and half-frame time offsets of the first base station module and the second base station module are synchronized, and a second message received at a current time and a third message received before the current time are non-continuously numbered; A second processing module, configured to generate, according to the lost message number, an ACK message for retransmitting the lost message corresponding to the lost message number; A second sending module, used to send the ACK message to the first base station module; The second message and the third message are at least a part of the first message sent by the first base station module; the second message sent by the first base station module is received, and the second message includes second tail signature data; The message transmission delay is determined according to the second tail signature data.
20. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the intra-base station data transmission method according to any one of claims 1 to 15.
