Disclosure of Invention
Based on this, the invention provides a communication performance testing method and device for a transmission path on a base station network side, a computer readable storage medium and a computer device, which can reduce the testing cost for the communication performance of the transmission path on the base station network side.
A communication performance test method for a transmission path at a base station network side comprises the following steps:
acquiring an uplink test data message transmitted by a wired test terminal through a network cable, and forwarding the uplink test data message to a GTP (GPRS Tunneling Protocol) module of a base station;
acquiring GTP tunnel head information, and sending the uplink test data message from a GTP module of a base station to a core network according to the GTP tunnel head information;
acquiring a downlink test data message downloaded from the internet by a core network according to the uplink test data message;
sending the downlink test data message from a core network to a GTP module of a base station, and eliminating GTP tunnel head information of the downlink test data message;
and acquiring the downlink test data message after the GTP tunnel head information is removed, and if the downlink test data message is not successfully forwarded to the wired test terminal from the GTP module, judging that the communication performance of the transmission path at the network side of the base station is abnormal.
A computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the method of testing communication performance of a transmission path on the network side of a base station.
A computer device comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the communication performance test method of the transmission path on the network side of the base station.
A base station network side communication performance testing device comprises:
the first acquisition module is used for acquiring an uplink test data message transmitted by a wired test terminal through a network cable and forwarding the uplink test data message to a GTP module of a base station;
the second acquisition module is used for acquiring GTP tunnel head information and sending the uplink test data message from a GTP module of the base station to a core network according to the GTP tunnel head information;
a third obtaining module, configured to obtain a downlink test data packet downloaded by a core network from the internet according to the uplink test data packet;
the sending module is used for sending the downlink test data message to a GTP module of a base station from a core network and eliminating GTP tunnel head information of the downlink test data message;
and the performance testing module is used for acquiring the downlink testing data message after the GTP tunnel head information is removed, and if the downlink testing data message is not successfully forwarded to the wired testing terminal from the GTP module, judging that the communication performance of the transmission path at the network side of the base station is abnormal.
According to the communication performance testing method, the computer readable storage medium, the computer device and the device of the base station network side transmission path, the uplink test data message is obtained from the wired test terminal through the base station network side transmission path, the downlink test data message downloaded according to the uplink test data message is sent to the wired test terminal along the base station network side transmission path, if the wired test terminal fails to receive the downlink test data message, the communication performance of the base station network side transmission path is abnormal, the communication performance of the whole base station network side transmission path can be tested only by the wired test terminal, no additional test equipment is needed to be built, the hardware cost is saved, and the testing efficiency of the communication performance of the base station network side transmission path is improved; according to the communication performance testing method and device for the network side transmission path of the base station, the uplink transmission path of the uplink test data message sequentially comprises the wired test terminal, the network cable, the GTP module of the base station, the core network and the internet, the downlink transmission path of the downlink test data message sequentially comprises the internet, the core network, the GTP module of the base station, the network cable and the wired test terminal, the uplink transmission path and the downlink transmission path are pure network transmission paths, air interface transmission is not involved, interference caused by air interface transmission is reduced, and the accuracy of performance testing of the network side transmission path is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a method for testing communication performance of a transmission path on a network side of a base station according to the present invention.
The method for testing the communication performance of the transmission path on the network side of the base station in the embodiment may include the following steps:
s11: acquiring an uplink test data message transmitted by a wired test terminal through a network cable, and forwarding the uplink test data message to a GTP module of a base station;
s12: acquiring GTP tunnel head information, and sending the uplink test data message from a GTP module of a base station to a core network according to the GTP tunnel head information;
s13: acquiring a downlink test data message downloaded from the internet by a core network according to the uplink test data message;
s14: sending the downlink test data message from a core network to a GTP module of a base station, and eliminating GTP tunnel head information of the downlink test data message;
s15: and acquiring the downlink test data message after the GTP tunnel head information is removed, and if the downlink test data message is not successfully forwarded to the wired test terminal from the GTP module, judging that the communication performance of the transmission path at the network side of the base station is abnormal.
In the embodiment, the uplink test data message is acquired from the wired test terminal through the base station network side transmission path, the downlink test data message downloaded according to the uplink test data message is sent to the wired test terminal along the base station network side transmission path, if the wired test terminal successfully receives the downlink test data message, the communication performance of the base station network side transmission path is normal, the test of the communication performance of the whole base station network side transmission path can be realized only by the wired test terminal, no additional test equipment is required to be built, the hardware cost is saved, the test efficiency of the base station network side transmission path communication performance is improved, and the advantages are more obvious particularly for the path network segment of the base station with more network node equipment and high troubleshooting cost; according to the communication performance testing method of the base station network side transmission path, the uplink transmission path of the uplink test data message sequentially comprises the wired test terminal, the network cable, the GTP module of the base station, the core network and the internet, the downlink transmission path of the downlink test data message sequentially comprises the internet, the core network, the GTP module of the base station, the network cable and the wired test terminal, and the uplink transmission path and the downlink transmission path are pure network transmission paths and do not relate to air interface transmission, so that interference caused by air interface transmission is reduced, and the accuracy of the performance testing of the network side transmission path is improved.
The base station in this embodiment may be an LTE (Long Term Evolution) base station; the core network may be an LTE core network. The steps in this embodiment may be performed in an LTE base station. The uplink test data packet may be an uplink IP (internet protocol) data packet, and the downlink test data packet may be a downlink IP data packet. The wired test terminal may be a terminal capable of network transmission, such as a desktop computer or a notebook computer connectable with a broadband. A GTP module (GPRS Tunnel Protocol) of the base station may be configured to perform GTP Protocol processing on the data packet, where the GTP Protocol is a GRPS tunneling Protocol, and the GTP module may be used to join transmission of an air interface data packet and transmission of a data packet transmitted by a network. The GTP protocol layer of the base station may be used to transport IP data packets within the core network and may transport user data between the radio access network and the core network.
Wherein for step S11: before the communication performance of a transmission path at the network side of the base station is tested by the wired test terminal and the GTP module of the base station, the connection between the GTP module of the base station and the core network can be established in advance, i.e. the GTP tunnel allows data transmission, so that the uplink test data message and the downlink test data message of the wired test terminal can be uplink and downloaded through the GTP tunnel. In one embodiment of the present invention,
the steps of acquiring GTP tunnel head information and sending the uplink test data message from a GTP module of a base station to a core network according to the GTP tunnel head information comprise:
establishing connection of a wireless test terminal, a PDCP module of a base station, a GTP module of the base station and a core network;
acquiring GTP tunnel header information for connecting a PDCP module, a GTP module and a core network;
and packaging the GTP tunnel head information into a message head of the uplink test data message, and sending the uplink test data message from a GTP module to a core network according to the GTP tunnel head information.
Specifically, the connection between the wireless test terminal, the PDCP module of the base station, the GTP module of the base station, and the core network may be established in the following manner: referring to fig. 2, a connection of the wireless test terminal, the PHY module of the base station, the MAC module of the base station, the RLC module of the base station, the PDCP module of the base station, the GTP module of the base station, the S1 module of the base station, and the core network is established.
In this embodiment, the wireless test terminal is a terminal capable of performing air interface transmission with a base station, for example, a mobile phone terminal, a tablet computer, or a notebook computer with a wireless network card. A PHY module (Physical layer), an MAC module (media Access layer), an RLC module (Radio Link Control, RLC module (Packet Data Convergence Protocol, Packet Data Convergence Protocol layer), and a PDCP module of the base station may be sequentially used to perform PHY Protocol, MAC Protocol, RLC Protocol, and PDCP Protocol processing on a Data Packet, where the PHY Protocol, the MAC Protocol, the RLC Protocol, and the PDCP Protocol belong to an air interface Protocol, and the PHY module, the MAC module, the RLC module, and the PDCP module may be compatible with transmission of an air interface Data Packet.
In this embodiment, the connection between the wireless test terminal, each protocol layer of the base station, and the core network can be quickly established through the wireless test terminal, so that the connection links of the PHY module, the MAC module, the RLC module, the PDCP module, the GTP module, and the S1 module of the base station are connected, a transmission condition is provided for the uplink and downlink test data packets of the wired test terminal, and after the header information of the GTP tunnel is obtained, the uplink test data packets can be transmitted to the upstream internet through the GTP tunnel and the core network according to the header information of the GTP tunnel.
Referring to fig. 3, in step S11, in an embodiment, the step of acquiring an uplink test data packet transmitted by the wired test terminal through the network cable, and forwarding the uplink test data packet to the GTP module of the base station includes:
acquiring the uplink test data message transmitted by the network card of the wired test terminal, the first network card of the base station and the route forwarding module of the base station in sequence;
and forwarding the uplink test data message to a GTP module of the base station through a routing forwarding module of the base station.
In this embodiment, the uplink test data packet of the wired test terminal can be forwarded to the GTP module only by the routing forwarding module of the base station and the first network card of the base station, which reduces the test cost.
The first network card of the base station can be connected with the route forwarding module of the base station through a network cable, and the route forwarding module of the base station can be connected with the communication interface of the GTP module of the base station through the network cable.
The downlink test data message can also be transmitted back to the wired test terminal through the first network card of the base station and the base station routing forwarding module. For step S15, if the downlink test data packet is not successfully forwarded to the wired test terminal through the GTP module, the step of determining that the communication performance of the base station network side is abnormal includes:
and if the downlink test data message is not successfully forwarded to a routing forwarding module of the base station through the GTP module, judging that the communication performance of a transmission path at the network side of the base station is abnormal.
Referring to fig. 4, as for step S12, the step of sending the uplink test data packet from the GTP module of the base station to the core network includes:
s121, sending the uplink test data message from a GTP module to an S1 module according to the GTP tunnel header information, acquiring S1 tunnel header information of a base station, packaging the S1 tunnel header information into a message header of the uplink test data message, and sending the uplink test data message from the S1 module to a core network according to the S1 tunnel header information;
and/or the presence of a gas in the gas,
referring to fig. 4, as for step S14, the step of sending the downlink test data packet from the core network to the GTP module of the base station includes:
and S141, sending the downlink test data message from a core network to an S1 module of a base station, eliminating the head information of an S1 tunnel of the base station in the downlink test data message, and sending the downlink test data message from an S1 module to a GTP module.
The S1 protocol layer of the bs can be used to perform S1 protocol related processing on the data packets, and can carry the data packets on the network side of the bs and the IP data packets of the ue.
After the connection of the wireless test terminal, the PHY module of the base station, the MAC module of the base station, the RLC module of the base station, the PDCP module of the base station, the GTP module of the base station, the S1 module of the base station and the core network is established, the data message is packaged with GTP tunnel header information which can be identified by a GTP tunnel and is allowed to be transmitted, and then the uplink data message of the GTP tunnel header information of the wireless test terminal is packaged and can be transmitted to an S1 protocol layer through the GTP tunnel; similarly, the data packet carrying the header information of the S1 tunnel can be identified by the S1 tunnel and allowed to be transmitted, and the S1 tunnel may allow the uplink data packet encapsulated with the header information of the S1 tunnel packet of the base station to be transmitted to the core network through the S1 tunnel.
After the uplink test data packet encapsulating the header information of the GTP tunnel packet and the header information of the S1 tunnel is transmitted to the core network, the downlink test data message downloaded by the core network according to the uplink test data message also encapsulates GTP tunnel message header information and S1 tunnel header information, as the connection state of the PHY module, the MAC module, the RLC module, the PDCP module, the GTP module and the S1 module of the base station is established through the wireless test terminal, after the downlink test data message is sent to the S1 protocol layer of the base station from the core network, the S1 tunnel header information and the GTP tunnel message header information need to be removed, the downlink test data message can be prevented from being directly transmitted to the wireless test terminal through the connecting link from the GTP module to the PHY module to form air interface transmission, network transmission of the downlink test data message is ensured, and the performance test accuracy of a transmission path at the network side of the base station is improved.
In one embodiment, the step of sending the uplink test data packet from the S1 module to the core network according to the S1 tunnel header information includes:
sending the uplink test data message from the S1 module to a second network card of the base station according to the tunnel header information of S1, and sending the uplink test data message to a core network through the second network card of the base station; a second network card of the base station is connected with the core network through a network cable;
and/or the presence of a gas in the gas,
the step of sending the downlink test data message from the core network to the S1 module of the base station includes:
and sending the downloaded downlink test data message from the core network to a second network card of the base station, and sending the downlink test data message to an S1 module of the base station through the second network card of the base station.
In this embodiment, the wired connection between the base station and the core network can be realized through the second network card of the base station, and the transmission of the uplink test data packet from the base station to the core network and the return of the downlink test data packet from the core network to the base station can be realized through the second network card of the base station, so that the data transmission efficiency is improved.
When the downlink test data packet of the wired test terminal is downlink, a downlink data packet may exist that needs to be transmitted over the air, and in order to ensure that network transmission is not affected by air transmission, the downlink data packet over the air may be sequentially forwarded to the wired test terminal from the core network, the S1 module of the base station, and the GTP module.
In one embodiment, an air interface downlink data message requested by the wireless test terminal is sent to a GTP module from a core network;
and eliminating GTP tunnel head information of the air interface downlink data message, and forwarding the air interface downlink data message to the wired test terminal from a GTP module.
In this embodiment, the air interface downlink data packet is a downlink data packet that is preset in the core network and needs to be transmitted over the air interface to the wireless test terminal through the S1 module, the GTP module, the PDCP module, the RLC module, the MAC module, and the PHY module. And the air interface downlink data message is forwarded to the wired test terminal along a core network, an S1 module of the base station and a GTP module, so that the network transmission independence of the downlink test data message is improved, the interference caused by air interface transmission is avoided, and the performance test accuracy of a transmission path at the network side of the base station is improved.
In one embodiment, the IP address of the network card of the wired test terminal and the IP address allocated by the core network for the wireless test terminal may be set to be the same;
and/or the presence of a gas in the gas,
and setting the gateway address of the network card of the wired test terminal to be the same as the IP address of the first network card of the base station.
The IP address of the network card of the wired test terminal and the IP address allocated to the wireless test terminal by the core network are set to be the same, so that the limited IP address resources can be saved, the test cost is reduced, and the transmission efficiency of the test data message can be improved. The gateway address of the network card of the wired test terminal and the IP address of the first network card of the base station are set to be the same, so that the direct connection and intercommunication between the network card of the wired test terminal and the network card of the base station can be realized, limited IP address resources can be saved, and the transmission efficiency of test data messages is improved.
In one embodiment, the method for testing communication performance of a transmission path on a network side of a base station, when forwarding the downlink test data packet from a GTP module to the wired test terminal, further includes the following steps:
acquiring the download rate and the standard transmission bandwidth of the network side of the base station when the wired test terminal receives the downlink test data message;
and if the difference value between the download rate and the standard transmission bandwidth of the base station network side is larger than a preset difference value, judging that the communication performance of the transmission path of the base station network side is abnormal.
In this embodiment, the download rate of the wired test terminal can be tested by using the FTP speed measurement tool installed on the wired test terminal, and the download rate is compared with the standard transmission bandwidth of the network side of the base station to determine whether the communication performance of the transmission path of the network side of the base station is abnormal. The preset difference is a maximum critical difference between an actual download rate and a standard transmission bandwidth of the base station network side, and the preset difference can be set according to actual needs, for example, the preset difference is 10M, the standard transmission bandwidth of the base station network side is 100M, if the download rate of the downlink test data packet received by the wired test terminal is 60M/s, the difference 40M is greater than the preset difference 10M, which indicates that the download rate of the wired test terminal is far from the standard transmission bandwidth of the base station network side, the transmission efficiency is low, and the communication performance of the transmission path of the base station network side is abnormal.
In another embodiment, when the downlink test data packet is forwarded to the wired test terminal from the GTP module, a download rate of the wired test terminal when receiving the downlink test data packet and a standard transmission bandwidth of the base station network side are obtained, and if a difference between the download rate and the standard transmission bandwidth of the base station network side is less than or equal to a preset difference, it is determined that the communication performance of the transmission path of the base station network side is normal.
In this embodiment, for example, the preset difference is 10M, the standard transmission bandwidth of the network side of the base station is 100M, and if the download rate of the downlink test data packet received by the wired test terminal is 95M/s, the difference 5M is smaller than the preset difference 10M, which indicates that the download rate of the wired test terminal is closer to the standard transmission bandwidth of the network side of the base station, and the transmission efficiency is higher, which indicates that the communication performance of the transmission path of the network side of the base station is normal.
Fig. 5 is a schematic structural diagram of a base station network side communication performance testing apparatus according to the present invention.
Referring to fig. 5, the apparatus for testing communication performance of a base station network side according to the present embodiment may include:
the first obtaining module 10 is configured to obtain an uplink test data packet transmitted by a wired test terminal through a network cable, and forward the uplink test data packet to a GTP module of a base station;
a second obtaining module 20, configured to obtain GTP tunnel header information, and send the uplink test data packet from a GTP module of the base station to a core network according to the GTP tunnel header information;
a third obtaining module 30, configured to obtain a downlink test data packet downloaded by a core network from the internet according to the uplink test data packet;
a sending module 40, configured to send the downlink test data packet from a core network to a GTP module of a base station, and reject GTP tunnel header information of the downlink test data packet;
and the performance testing module 50 is configured to obtain the downlink test data packet from which the GTP tunnel header information is removed, and if the downlink test data packet is not successfully forwarded from the GTP module to the wired test terminal, determine that the communication performance of the transmission path on the base station network side is abnormal.
In the embodiment, the uplink test data message is acquired from the wired test terminal through the base station network side transmission path, the downlink test data message downloaded according to the uplink test data message is sent to the wired test terminal along the base station network side transmission path, if the wired test terminal fails to receive the downlink test data message, the communication performance of the base station network side transmission path is abnormal, the communication performance of the whole base station network side transmission path can be tested only through the wired test terminal, no additional test equipment is required to be built, the hardware cost is saved, and the test efficiency of the base station network side transmission path communication performance is improved; according to the communication performance testing method and device for the network side transmission path of the base station, the uplink transmission path of the uplink test data message sequentially comprises the wired test terminal, the network cable, the GTP module of the base station, the core network and the internet, the downlink transmission path of the downlink test data message sequentially comprises the internet, the core network, the GTP module of the base station, the network cable and the wired test terminal, the uplink transmission path and the downlink transmission path are pure network transmission paths, air interface transmission is not involved, interference caused by air interface transmission is reduced, and the accuracy of performance testing of the network side transmission path is improved.
In one embodiment, a computer-readable storage medium has a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the method for testing communication performance of a transmission path on a base station network side.
In one embodiment, a computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the program, the steps of the method for testing communication performance of a transmission path on a network side of a base station are implemented.
The communication performance testing device at the network side of the base station, the computer readable storage medium and the computer device are in one-to-one correspondence with the communication performance testing method at the network side of the base station, and technical features and beneficial effects thereof described in the embodiment of the communication performance testing method at the network side of the base station are all applicable to the embodiment of the communication performance testing device at the network side of the base station, the computer readable storage medium and the computer device, so that the description is omitted.
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express a few embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.