CN112543473B - Test method, device and equipment based on network element simulation and computer storage medium - Google Patents

Test method, device and equipment based on network element simulation and computer storage medium Download PDF

Info

Publication number
CN112543473B
CN112543473B CN202011590933.2A CN202011590933A CN112543473B CN 112543473 B CN112543473 B CN 112543473B CN 202011590933 A CN202011590933 A CN 202011590933A CN 112543473 B CN112543473 B CN 112543473B
Authority
CN
China
Prior art keywords
network element
identifier
test
tested
amf
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011590933.2A
Other languages
Chinese (zh)
Other versions
CN112543473A (en
Inventor
黄长春
蔡蔚旻
吴翔
黄燕
周俊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Group Jiangsu Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Mobile Communications Group Co Ltd, China Mobile Group Jiangsu Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202011590933.2A priority Critical patent/CN112543473B/en
Publication of CN112543473A publication Critical patent/CN112543473A/en
Application granted granted Critical
Publication of CN112543473B publication Critical patent/CN112543473B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a test method, a test device, test equipment and a computer storage medium based on network element simulation. The method comprises the steps of obtaining network element test parameters, wherein the network element test parameters comprise an identification of a virtual network element, protocol stack information of the virtual network element and an identification of a tested network element, sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identification of the tested network element to establish Protocol Data Unit (PDU) session connection between the virtual network element and the tested network element, receiving a PDU session response message sent by the tested network element, wherein the PDU session response message comprises the identification of the virtual network element and the identification of a User Plane Function (UPF) network element distributed by a session management function (SMUPF) network element, carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identification of the UPF network element, and carrying out target test on the network element of a 5G core network.

Description

Test method, device and equipment based on network element simulation and computer storage medium
Technical Field
The invention belongs to the field of network operation and maintenance, and particularly relates to a test method, a test device, test equipment and a computer storage medium based on network element simulation.
Background
With the construction and commercialization of 5G networks, the structural evolution of networks has brought a great challenge to the network operation and maintenance work of telecom operators. At present, the operation and maintenance mode of a 5GC core network mainly comprises the steps of collecting device performance and event data output by a network element of the 5G core network, processing the data, then realizing network monitoring, initiating a service test on the 5G network through wireless equipment, and perceiving service quality. However, the existing wireless test mode does not have the target test capability for the network element of the 5G core network.
Disclosure of Invention
The embodiment of the invention provides a test method, a test device, test equipment and a computer storage medium based on network element simulation, which can perform targeted test on a 5G core network element.
In a first aspect, an embodiment of the present invention provides a test method based on network element simulation, where the method includes: acquiring network element test parameters, wherein the network element test parameters comprise an identifier of a virtual network element, protocol stack information of the virtual network element and an identifier of a tested network element;
sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element so as to establish the PDU session connection between the virtual network element and the tested network element;
receiving a PDU session response message sent by a tested network element, wherein the PDU session response message comprises an identifier of a virtual network element and an identifier of a user plane function UPF network element distributed by a session management function SMF network element;
and carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identifier of the UPF network element.
In an optional embodiment, the virtual network element includes a base station and/or an access and mobility management function, AMF, network element; the tested network element comprises an AMF network element and a session management function SMF network element.
In an optional embodiment, when the virtual network element includes a base station and an AMF network element, and the measured network element includes an SMF network element, sending a protocol data unit PDU session request message to the measured network element corresponding to the identifier of the measured network element, includes:
and the base station sends a PDU session request message to the SMF network element, wherein the PDU session request message is used for the SMF network element to determine the identifier of the AMF network element according to the relationship information between the identifier of the AMF network element and the identifier of the SBI server, so as to send a PDF session response message to the AMF network element corresponding to the identifier of the AMF network element.
In an optional embodiment, the virtual network element includes a base station and/or an access and mobility management function, AMF, network element; the tested network element comprises a UPF network element; the network element test parameters also comprise the identification of the SMF network element to which the UPF network element belongs; sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element, wherein the PDU session request message comprises:
a base station sends a PDU session connection request message to a UPF network element;
the method further comprises the following steps:
under the condition that the base station receives the PDU session response message, the AMF network element receives the identifier of the UPF network element selected by the SMF network element;
a base station receives an identifier of a UPF network element sent by an AMF network element;
and carrying out user plane data communication with the UPF network element according to the identifier of the UPF network element.
In an optional implementation manner, a test parameter is input into a session between a virtual network element and a network element to be tested, where the test parameter includes a preset period;
determining whether the test time is met according to a preset period;
and when the test time is met, testing and displaying the test result through a specified algorithm.
In an alternative embodiment, the specifying algorithm comprises:
a normal distribution analysis method and a business causal chain fault analysis method.
In a second aspect, an embodiment of the present invention provides a testing apparatus based on network element simulation, where the apparatus includes: the network element testing parameter comprises an identification of the virtual network element, protocol stack information of the virtual network element and an identification of the tested network element;
the sending module is used for sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element so as to establish the Protocol Data Unit (PDU) session connection between the virtual network element and the tested network element;
the receiving module is used for receiving a PDU session response message sent by the tested network element, wherein the PDU session response message comprises an identifier of a virtual network element and an identifier of a user plane function UPF network element distributed by a session management function SMF network element;
and the communication module is used for carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identifier of the UPF network element.
In an optional implementation manner, the sending module is specifically configured to: and the base station sends a PDU session request message to the SMF network element, wherein the PDU session request message is used for determining the identifier of the AMF network element by the SMF network element according to the relation information between the identifier of the AMF network element and the identifier of the SBI server, so as to send a PDF session response message to the AMF network element corresponding to the identifier of the AMF network element.
In a third aspect, a testing device based on network element simulation is provided, where the device includes: a memory for storing a program; a processor, configured to execute a program stored in the memory to execute the test method based on network element simulation provided in the first aspect or any optional implementation manner of the first aspect.
In a fourth aspect, a computer storage medium is provided, where computer program instructions are stored on the computer storage medium, and when executed by a processor, the computer program instructions implement the network element simulation-based testing method provided in the first aspect or any optional implementation manner of the first aspect.
The test method, the device, the equipment and the computer storage medium based on the network element simulation can obtain network element test parameters, wherein the network element test parameters comprise identification of a virtual network element, protocol stack information of the virtual network element and identification of a tested network element, a Protocol Data Unit (PDU) session request message is sent to the tested network element corresponding to the identification of the tested network element so as to establish Protocol Data Unit (PDU) session connection between the virtual network element and the tested network element, a PDU session response message sent by the tested network element is received, the PDU session response message comprises the identification of the virtual network element and the identification of a User Plane Function (UPF) network element distributed by a Session Management Function (SMF) network element, user plane data communication is carried out according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identification of the UPF network element, and the target test can be carried out on the network element of a 5G core network.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required to be used in the embodiments of the present invention will be briefly described below, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a testing method based on network element simulation according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of another testing method based on network element simulation according to an embodiment of the present invention;
FIG. 3 is a schematic diagram illustrating a comparison of test results processed by a normal distribution method according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a causal chain fault analysis method for a web browsing service according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a target test performed on an AMF network element according to an embodiment of the present invention;
fig. 6 is a schematic diagram of a target test performed on an SMF network element according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a targeted test for a UPF network element according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a testing apparatus based on network element simulation according to another embodiment of the present invention;
fig. 9 is a structural diagram of an exemplary hardware architecture of a testing device based on network element simulation in an embodiment of the present invention.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It should be noted that, in this document, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
First, for convenience of understanding, the following sections of the embodiments of the present invention will specifically describe technical terms and application examples related thereto.
Protocol Data Units (PDUs) are established at each level of the transmission system in a layered network structure, such as in the open system interconnection model. The PDU, which contains information from the upper layer and information attached to the entity of the current layer, is transferred to the next lower layer. The physical layer actually transports these PDUs in a framed bitstream, which are built up by the higher layers of the protocol stack. The receiving system passes these packets from bottom to top through the protocol stack and separates out the relevant information in the PDUs at each layer of the protocol stack.
The User Plane Function (UPF) is a basic component of the 5 GC. For realizing the separation of User Plane (CP) and Control Plane (UP).
Session Management Function (SMF), which is a functional unit of a 5G service-based architecture. The SMF is mainly responsible for interacting with a separate data plane, creating, updating, and deleting PDU dialogues, and managing a session environment with the UPF.
Access and Mobility Management Function (AMF) is responsible for managing handovers between base stations in the next generation radio Access network.
Based on Service Based Interface (SBI).
First, a test method based on network element simulation provided by the embodiment of the present invention is described below.
Fig. 1 is a schematic flowchart illustrating a testing method based on network element simulation according to an embodiment of the present invention. As shown in fig. 1, the method may include the steps of:
s101, network element testing parameters are obtained, wherein the network element testing parameters comprise identification of a virtual network element, protocol stack information of the virtual network element and identification of a tested network element.
In some embodiments, the virtual network elements comprise base stations and/or access and mobility management function, AMF, network elements; the tested network element comprises an AMF network element and a session management function SMF network element.
In some embodiments, the network element test parameters include: (1) virtual network element parameters: virtual base station address gNodeP IP, port, ID identification, Tracking Area Code (TAC).
(2) Measured network element parameters: the 5GC current network element parameters as the test targets comprise: manufacturer, type, AMF network element IP address, port, AMF ID identification, APN, UPF network element IP address, port, SMF network element IP address, port.
Wherein different parameters can be input according to different types of the tested network elements.
(3) Testing parameters, wherein the testing parameters comprise: test task parameters and test plan parameters.
Wherein the test task parameters include: the virtual test network element performs parameters required by the specified service test through the tested network element: web browsing, PING/TCP PING, domain name resolution, downloading, mail, video, games, voice, short messages. Different classes of tests correspond to different sets of parameters, for example: the web browsing service test parameters include: url, user agent, gzip compression, x-host, picture downloading, first-level page keywords, second-level page keywords and test times.
Wherein the test plan parameters include: reserving test time, ending time, test time granularity and test period, wherein the test period comprises a month, a week and a day.
S102, sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element so as to establish the Protocol Data Unit (PDU) session connection between the virtual network element and the tested network element.
In some embodiments, when the virtual network element includes a base station and an AMF network element, and the network element under test includes an SMF network element, sending a protocol data unit PDU session request message to the network element under test corresponding to the identifier of the network element under test, including:
and the base station sends a PDU session request message to the SMF network element, wherein the PDU session request message is used for the SMF network element to determine the identifier of the AMF network element according to the relation information between the identifier of the AMF network element and the identifier based on the service interface SBI server, so as to send a PDF session response message to the AMF network element corresponding to the identifier of the AMF network element.
In some embodiments, the virtual network elements comprise base stations and/or access and mobility management function, AMF, network elements; the tested network element comprises a UPF network element; the network element test parameters also comprise the identification of the SMF network element to which the UPF network element belongs; sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element, wherein the PDU session request message comprises:
and the base station sends a PDU session connection request message to the UPF network element.
The method further comprises the following steps:
and under the condition that the base station receives the PDU session response message, the AMF network element receives the identifier of the UPF network element selected by the SMF network element, the base station receives the identifier of the UPF network element sent by the AMF network element, and the base station performs user plane data communication with the UPF network element according to the identifier of the UPF network element.
In some embodiments, the method for testing the tested network element AMF network element includes: the method comprises the steps that input virtual gNodeB IP, ports, ID identification, TAC, test numbers, IP addresses and ports of tested AMF network elements, and virtual gNodeB simulates a signaling process of an N2 interface protocol stack (IP/SCTP/NG-AP), so that the virtual gNodeB is communicated with the tested AMF network elements, and registration processes and PDU conversation processes of the test numbers are achieved.
In some embodiments, the method for testing the tested element SFM network element includes: the method comprises the steps of inputting virtual gNodeB IP, ports, ID identifications, TAC, virtual AMF network element IP addresses, ports, AMF ID identifications, test numbers, tested SMF network element IP addresses and port parameters, and virtual gNodeB virtual N11 interface protocol stack (IP/SCTP/NG-AP), so that the method is communicated with the specified target test SMF network element.
S103, receiving a PDU session response message sent by the tested network element, wherein the PDU session response message comprises an identifier of the virtual network element and an identifier of a user plane function UPF network element distributed by a session management function SMF network element.
In some embodiments, the method for testing the tested network element AMF further includes: after the PDU session flow is successful, the AMF returns a PDU session update response message through an N2 interface, where the PDU IP address (IPa) assigned to the test user number by the network and the UPF IP address (IPb) assigned by the SMF are carried, and the virtual nodeb uses the IPa address to perform user plane data interaction with the IPb of the UPF through an N3 interface.
In some embodiments, the test for the UPF network element is distributed via the SMF network element and is not the network element targeted for testing in this application.
In some embodiments, the method for testing the SMF further includes: and virtualizing the AMF network element and virtualizing the base station to test the SMF of the tested network element. In the process of establishing a PDU session service flow by butting the virtual AMF Network element and the SMF to be tested, the SMF to be tested searches the SBI-Server IP address of the AMF from the Network storage (NRF) Network element according to the NF-Instance-Id reported by the virtual AMF Network element in the N11 interface, and if the SBI-Server IP address cannot be searched, the signaling flow will fail. Therefore, after the virtual AMF network element is online, registration in the NRF network element needs to be completed to ensure normal query of the SMF.
However, the registration of the NRF network element after the virtual network element AMF is online brings a problem of network security. Because the NRF element may face services of one or more provinces, after the virtual AMF is registered in the NRF element, the SMF element to be tested in the area corresponding to the NRF element can query the virtual AMF element, and if the local data configuration is wrong, the current network user service may be directed to the virtual AMF, thereby causing service failure and affecting the normal operation of the network.
Therefore, the method for registering the NRF network element is not applicable in the embodiment of the present invention, and the SMF network element to be tested is tested by using a static configuration method. The static configuration method comprises the following steps: the SMF network element of the current network statically configures the mapping relation between the Instance ID and the SBI-Server IP of the virtual AMF network element, so that the normal flow of the PDU session service of the SMF of the network element to be tested can be ensured without using NRF network element registration, and the influence on a production network is reduced.
And S104, carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identifier of the UPF network element.
In some embodiments, the method for testing the tested network element UPF comprises: and the network element SMF is communicated with the UPF to be tested through an N4 interface, so that the service test is completed. However, in the N4 interface protocol, the network element SMF has a strong control capability on the tested network element UPF, the tested network element UPF simultaneously carries the test service and the current network service, and the network element SMF may bring a security impact on the network operation.
In the embodiment of the invention, the method for carrying out targeted test on the UPF of the tested network element by an indirect test method comprises the following steps: and statically configuring the mapping relation between the test number and the tested network element UPF in the SMF network element.
In some embodiments, according to the virtual gnnodeb IP, port, ID identifier, TAC, virtual AMF network element IP address, port, AMF ID identifier, test number (corresponding to the measured network element UPF), SMF network element IP address to which the measured network element UPF belongs, and port parameter input in step S401, the virtual gnnodeb virtual N11 interface protocol stack (IP/SCTP/NG-AP) is used to interwork with the specified AMF network element. Then the SMF network element selects the UPF to be tested according to the pre-configured office data. And then, the IP address is returned to the virtual network element AMF, so that the interaction of user plane data between the virtual base station gNodeB and the network element UPF to be tested is realized through an N3 interface.
The test method based on network element simulation of the embodiment of the invention can obtain the network element test parameters, wherein the network element test parameters comprise the identification of the virtual network element, the protocol stack information of the virtual network element and the identification of the tested network element, the PDU session request message is sent to the tested network element corresponding to the identification of the tested network element so as to establish the protocol data unit PDU session connection between the virtual network element and the tested network element, the PDU session response message sent by the tested network element is received, the PDU session response message comprises the identification of the virtual network element and the identification of the UPF network element distributed by the SMF network element, the UPF network element carries out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identification of the UPF network element, and the target test can be carried out on the 5G core network element.
Fig. 2 is a schematic flow chart of another testing method based on network element simulation according to an embodiment of the present invention, and as shown in fig. 2, the method may include the following steps:
s201, network element test parameters are obtained, wherein the network element test parameters comprise an identifier of a virtual network element, protocol stack information of the virtual network element, and an identifier of a tested network element.
S202, sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element so as to establish the Protocol Data Unit (PDU) session connection between the virtual network element and the tested network element.
S203, receiving a PDU session response message sent by the tested network element, wherein the PDU session response message comprises an identifier of the virtual network element and an identifier of a user plane function UPF network element allocated by a session management function SMF network element.
And S204, carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identifier of the UPF network element.
In some embodiments, by constructing a session of the virtual network element and the tested network element, an environment for targeted testing is constructed.
S205, inputting test parameters into the conversation between the virtual network element and the network element to be tested, wherein the test parameters comprise a preset period.
In some embodiments, the parameters are tested, wherein the test parameters include: test task parameters and test plan parameters.
Wherein the test task parameters include: the virtual test network element performs parameters required by the specified service test through the tested network element: web browsing, PING/TCP PING, domain name resolution, downloading, mail, video, games, voice, short messages. Different classes of tests correspond to different sets of parameters, for example: the web browsing service test parameters include: url, user agent, gzip compression, x-host, picture downloading, first-level page keywords, second-level page keywords and test times.
Wherein the test plan parameters include: reserving test time, ending time, test time granularity and test period, wherein the test period comprises a month, a week and a day.
S206, inquiring whether the test opportunity is met according to a preset period; if yes, go to step S507; if not, whether the test time is met is inquired again according to the preset period.
And S207, testing and displaying a test result by a normal distribution analysis method and a business causal chain fault analysis method.
In some embodiments, before displaying the test result, the method further includes collecting key information in the test process and forming a test record, where the information of the test record includes: the method comprises the following steps of testing time, a testing plan identifier, a testing number IMSI, ISDN, a user IP, simulation network element information, targeted testing network element information, testing service information, time delay, success rate, a testing result, a failure reason and a signaling code stream association identifier.
In some embodiments, displaying the test result by the normal distribution analysis method includes: inputting a test object, wherein the test object comprises:
geographic object: inputting the test area objects of city, district and county.
Network element object: inputting single or multiple tested network elements.
KQI or KPI: the KPI or KQI type of the analysis is entered, for example:
time delay KPI: registration delay, user authentication delay, PDU session delay, bearer allocation delay, tunnel establishment delay, DNS delay, TCP establishment delay, etc.
Success rate KPI: DNS analysis success rate, TCP connection success rate, registration success rate, PDU session success rate, bearing distribution success rate, HTTP success rate, tunnel establishment success rate and the like.
And (3) KQI: end-to-end delay, end-to-end success rate, etc.
Time range.
In some embodiments, the normal distribution is calculated as:
the normal distribution is calculated by the formula:
Figure BDA0002866968550000101
wherein, x is KPI (or KQI) index value after screening according to input conditions, mu is KPI (or KQI) index mean value in statistical period, k reflects KPI (or KQI) normal distribution centralized trend position, and sigma is total standard deviation:
Figure BDA0002866968550000111
wherein, the normal distribution method is adopted to reflect the discrete degree of the test result.
Fig. 3 is a schematic diagram illustrating a comparison of test results processed by a normal distribution method according to an embodiment of the present invention.
In some embodiments: the displaying of the test result by the normal distribution analysis method further comprises:
and periodically carrying out normal analysis on the data according to a preset definition. And generating a reference curve through machine learning, and performing anomaly detection through the deviation of the current curve and the reference curve so as to monitor the communication quality.
In some embodiments, by the degree of deviation from the curve. To evaluate the communication quality.
In some embodiments, displaying the test results by causal chain fault analysis comprises: the method comprises the steps of decomposing a 5G business chain into a plurality of key process links, classifying failure reasons of sub-processes contained in each link, and when business indexes are lowered, rapidly performing causal pre-positioning analysis according to the failure reasons to determine problem links and problem placement points.
As a specific example, as shown in fig. 4, a schematic diagram of a causal chain fault analysis method for a web browsing service according to an embodiment of the present invention is shown, and as shown in fig. 4, a problem in the service can be quickly displayed.
And S208, inquiring whether the test opportunity is met according to a preset period.
In some embodiments, when the query test timing is not satisfied, periodically querying whether the test timing satisfies a condition according to a preset period until the test timing satisfies the condition.
The test method based on network element simulation of the embodiment of the invention can obtain the network element test parameters, wherein the network element test parameters comprise the identification of the virtual network element, the protocol stack information of the virtual network element and the identification of the tested network element, the PDU session request message is sent to the tested network element corresponding to the identification of the tested network element so as to establish the protocol data unit PDU session connection between the virtual network element and the tested network element, the PDU session response message sent by the tested network element is received, the PDU session response message comprises the identification of the virtual network element and the identification of the UPF network element distributed by the SMF network element, the UPF network element carries out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identification of the UPF network element, and the target test can be carried out on the 5G core network element.
Fig. 5 shows a schematic diagram of performing a target test on an AMF network element according to an embodiment of the present invention, such as virtualizing a enode base station as shown in fig. 5, and then performing a target test on the AMF network element, where the virtual enode b simulates a signaling flow of an N2 interface protocol stack (IP/SCTP/NG-AP) according to the simulated enode b IP, port, ID identifier, TAC, test number, tested AMF network element IP address, port input in the above steps, so as to communicate with the specified target test AMF network element, and implement a registration flow of the test number and a PDU session flow.
After the PDU session flow succeeds, the AMF network element returns a PDU session assignment response message through an N2 interface, wherein the PDU IP address (IPA) assigned to a test user number by the network and the UPF IP address (IPb) assigned by the SMF are carried, and the simulation gNodeB uses the IPa address to perform user plane data interaction with the IPb of the UPF through an N3 interface.
Fig. 6 shows a schematic diagram of performing a targeting test on an SMF network element according to an embodiment of the present invention, where fig. 6 illustrates virtualizing a gNode base station and an AMF network element, and then performing a targeting test on the SMF network element.
And simulating an N11 interface protocol stack (IP/SCTP/NG-AP) by the virtual gNodeB according to the simulated gNodeB IP, the port, the ID identifier, the TAC, the simulated AMF network element IP address, the port, the AMF ID identifier, the test number, the tested SMF network element IP address and the port parameter input in the steps, so as to be communicated with the specified target testing SMF network element.
Fig. 7 is a schematic diagram illustrating a target test performed on a UPF network element according to an embodiment of the present invention, which is performed by virtualizing an AMF network element and a gNode base station and then performing the target test on the UPF network element as shown in fig. 7.
The target test of the UPF network element can simulate SMF and is communicated with the target UPF through an N4 interface, thereby completing the service test. However, in the N4 interface protocol, the SMF network element has a strong control capability for the UPF network element, the UPF network element simultaneously carries the test service and the current network service, and the simulation SMF may bring a security impact on the network operation.
Based on the same inventive concept, the embodiment of the invention provides a testing device based on network element simulation. Fig. 8 shows a schematic structural diagram of a testing apparatus based on network element simulation according to another embodiment of the present invention. As shown in fig. 8, the apparatus includes:
the obtaining module 801 is configured to obtain network element test parameters, where the network element test parameters include an identifier of a virtual network element, protocol stack information of the virtual network element, and an identifier of a network element to be tested.
The sending module 802 is configured to send a protocol data unit PDU session request message to the tested network element corresponding to the identifier of the tested network element, so as to establish a protocol data unit PDU session connection between the virtual network element and the tested network element.
The receiving module 803 is configured to receive a PDU session response message sent by a measured network element, where the PDU session response message includes an identifier of a virtual network element and an identifier of a user plane function UPF network element allocated by a session management function SMF network element.
The communication module 804 is configured to perform user plane data communication with the UPF network element corresponding to the identifier of the UPF network element according to the protocol stack information of the virtual network element.
In some embodiments, the sending module 802 is specifically configured to: and the base station sends a PDU session request message to the SMF network element, wherein the PDU session request message is used for the SMF network element to determine the identifier of the AMF network element according to the relationship information between the identifier of the AMF network element and the identifier of the SBI server, so as to send a PDF session response message to the AMF network element corresponding to the identifier of the AMF network element.
The virtual network element comprises a base station and an AMF network element, and the network element to be tested comprises an SMF network element.
In some embodiments, the virtual network element comprises a base station and/or an access and mobility management function, AMF, network element. The tested network element comprises an AMF network element and a session management function SMF network element.
In some embodiments, the sending module 802 is specifically configured to:
and the base station sends a PDU session connection request message to the UPF network element.
And under the condition that the base station receives the PDU session response message, the AMF network element receives the identifier of the UPF network element selected by the SMF network element.
A base station receives an identifier of a UPF network element sent by an AMF network element;
and carrying out user plane data communication with the UPF network element according to the identifier of the UPF network element.
In some embodiments, the apparatus further comprises:
the input module 805 is configured to input a test parameter into a session between the virtual network element and the network element to be tested, where the test parameter includes a preset period.
The determining module 806 is configured to query whether the testing time is met according to a preset period, and when the testing time is met, perform a test and display a test result through a specified algorithm.
Wherein, the designated algorithm comprises: a normal analysis method and a business causal chain fault analysis method.
Other details of the testing apparatus based on network element simulation according to the embodiment of the present invention are similar to those of the testing method based on network element simulation described above with reference to the embodiments shown in fig. 4 to 5, and can achieve the corresponding technical effects, and are not described herein again for brevity.
Fig. 9 is a structural diagram of an exemplary hardware architecture of a testing device based on network element simulation in an embodiment of the present invention.
As shown in fig. 9, the test equipment 900 based on network element simulation comprises an input device 901, an input interface 902, a central processor 903, a memory 904, an output interface 905, and an output device 906. The input interface 902, the central processing unit 903, the memory 904, and the output interface 905 are connected to each other through a bus 910, and the input device 901 and the output device 906 are connected to the bus 910 through the input interface 902 and the output interface 905, respectively, and further connected to other components of the test device 900 based on the network element simulation.
Specifically, the input device 901 receives input information from the outside, and transmits the input information to the central processor 903 through the input interface 902; central processor 903 processes input information based on computer-executable instructions stored in memory 904 to generate output information, stores the output information temporarily or permanently in memory 904, and then transmits the output information to output device 906 via output interface 905; the output device 906 outputs the output information to the outside of the test device 900 based on the network element simulation for use by the user.
That is, the test apparatus based on network element simulation shown in fig. 9 may also be implemented to include: a memory storing computer-executable instructions; and a processor which, when executing the computer executable instructions, may implement the method of the network element simulation based test equipment described in connection with fig. 4-5.
In one embodiment, the testing apparatus 900 based on network element simulation shown in fig. 9 may be implemented as an apparatus, which may include: a memory for storing a program; and a processor for executing the program stored in the memory to execute the coverage determination method according to the embodiment of the present invention.
The embodiment of the invention also provides a computer storage medium, wherein computer program instructions are stored on the computer storage medium, and when being executed by a processor, the computer program instructions realize the test method based on the network element simulation of the embodiment of the invention.
It is to be understood that the invention is not limited to the precise arrangements and instrumentalities shown. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of a machine-readable medium include electronic circuits, semiconductor memory devices, ROM, flash memory, Erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
As will be apparent to those skilled in the art, for convenience and brevity of description, the specific working processes of the systems, modules and units described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any equivalent modifications or substitutions can be easily made by those skilled in the art within the technical scope of the present invention.

Claims (9)

1. A test method based on network element simulation is characterized by comprising the following steps:
acquiring network element test parameters, wherein the network element test parameters comprise an identifier of a virtual network element, protocol stack information of the virtual network element and an identifier of a tested network element;
sending a Protocol Data Unit (PDU) session request message to the tested network element corresponding to the identifier of the tested network element so as to establish Protocol Data Unit (PDU) session connection between the virtual network element and the tested network element;
receiving a PDU session response message sent by the tested network element, wherein the PDU session response message comprises an identifier of the virtual network element and an identifier of a user plane function UPF network element distributed by a Session Management Function (SMF) network element;
carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identifier of the UPF network element;
the virtual network element comprises a base station and/or an access and mobility management function (AMF) network element; the network element to be tested comprises an AMF network element and a session management function SMF network element.
2. The method of claim 1, wherein when the virtual network element includes a base station and an AMF network element, and the network element under test includes an SMF network element, the sending a protocol data unit, PDU, session request message to the network element under test corresponding to the identifier of the network element under test comprises:
and the base station sends a PDU session request message to the SMF network element, wherein the PDU session request message is used for determining the identifier of the AMF network element by the SMF network element according to the relation information between the identifier of the AMF network element and the identifier of the SBI server based on the service interface, so as to send a PDF session response message to the AMF network element corresponding to the identifier of the AMF network element.
3. The method according to claim 1, wherein the virtual network element comprises a base station and/or an access and mobility management function, AMF, network element; the tested network element comprises a UPF network element; the network element test parameters also comprise the identification of the SMF network element to which the UPF network element belongs; the sending a protocol data unit PDU session request message to the measured network element corresponding to the identifier of the measured network element includes:
the base station sends a PDU session connection request message to a UPF network element;
the method further comprises the following steps:
under the condition that the base station receives the PDU session response message, the AMF network element receives the identifier of the UPF network element selected by the SMF network element;
the base station receives the identifier of the UPF network element sent by the AMF network element;
and carrying out user plane data communication with the UPF network element according to the identifier of the UPF network element.
4. The method of any of claims 1 to 3, further comprising:
inputting test parameters into a session between the virtual network element and the network element to be tested, wherein the test parameters comprise a preset period;
inquiring whether the test time is met according to the preset period;
and when the test time is met, testing and displaying the test result through a specified algorithm.
5. The method of claim 4, wherein the specified algorithm comprises:
a normal analysis method and a business causal chain fault analysis method.
6. A testing device based on network element simulation is characterized by comprising:
the network element testing system comprises an acquisition module, a test module and a test module, wherein the acquisition module is used for acquiring network element testing parameters, and the network element testing parameters comprise an identifier of a virtual network element, protocol stack information of the virtual network element and an identifier of a tested network element;
a sending module, configured to send a protocol data unit PDU session request message to the measured network element corresponding to the identifier of the measured network element, so as to establish a protocol data unit PDU session connection between the virtual network element and the measured network element;
a receiving module, configured to receive a PDU session response message sent by the network element to be tested, where the PDU session response message includes an identifier of the virtual network element and an identifier of a user plane function UPF network element allocated by a session management function SMF network element;
the communication module is used for carrying out user plane data communication according to the protocol stack information of the virtual network element and the UPF network element corresponding to the identifier of the UPF network element;
the virtual network element comprises a base station and/or an access and mobility management function (AMF) network element; the tested network element comprises an AMF network element and a Session Management Function (SMF) network element.
7. The apparatus of claim 6, wherein the sending module is specifically configured to: and the base station sends a PDU session request message to the SMF network element, wherein the PDU session request message is used for determining the identifier of the AMF network element by the SMF network element according to the relation information between the identifier of the AMF network element and the identifier of the SBI server, and is used for sending a PDF session response message to the AMF network element corresponding to the identifier of the AMF network element.
8. A test apparatus based on network element simulation, the apparatus comprising: a processor, and a memory storing computer program instructions; the processor reads and executes the computer program instructions to implement the network element simulation based test method according to any one of claims 1 to 5.
9. A computer storage medium having computer program instructions stored thereon, which when executed by a processor implement the network element simulation based testing method of any one of claims 1-5.
CN202011590933.2A 2020-12-29 2020-12-29 Test method, device and equipment based on network element simulation and computer storage medium Active CN112543473B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011590933.2A CN112543473B (en) 2020-12-29 2020-12-29 Test method, device and equipment based on network element simulation and computer storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011590933.2A CN112543473B (en) 2020-12-29 2020-12-29 Test method, device and equipment based on network element simulation and computer storage medium

Publications (2)

Publication Number Publication Date
CN112543473A CN112543473A (en) 2021-03-23
CN112543473B true CN112543473B (en) 2022-09-06

Family

ID=75017828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011590933.2A Active CN112543473B (en) 2020-12-29 2020-12-29 Test method, device and equipment based on network element simulation and computer storage medium

Country Status (1)

Country Link
CN (1) CN112543473B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114390024B (en) * 2021-12-31 2024-03-19 中科南京移动通信与计算创新研究院 Access network protocol stack test method, system and storage medium
CN114143905B (en) * 2022-01-29 2022-12-02 阿里巴巴达摩院(杭州)科技有限公司 Session establishing method, communication system, electronic device and storage medium
CN116723530B (en) * 2023-08-09 2023-11-03 中国电信股份有限公司 Fault network element determining method, device, computer equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135735A (en) * 2014-08-25 2014-11-05 宁波普天通信技术有限公司 Automatic testing method, device and system for LTE core network
CN104796302A (en) * 2015-04-17 2015-07-22 大唐移动通信设备有限公司 Method and system for testing network element simulators
CN109639527A (en) * 2018-12-18 2019-04-16 中国移动通信集团江苏有限公司 Test method, device, equipment and the medium of network adjustment engineering
CN110875840A (en) * 2018-09-03 2020-03-10 中兴通讯股份有限公司 Network element management method, device, system and storage medium
CN111010702A (en) * 2018-10-08 2020-04-14 华为技术有限公司 Time delay sensitive network communication method and device thereof
CN111200846A (en) * 2018-11-19 2020-05-26 华为技术有限公司 Time delay sensitive network communication method and device thereof
CN111200878A (en) * 2018-11-19 2020-05-26 华为技术有限公司 Information transmission method and device
CN111200848A (en) * 2018-11-19 2020-05-26 华为技术有限公司 Communication method and device
CN111953576A (en) * 2019-05-17 2020-11-17 华为技术有限公司 Virtual network communication method, equipment and system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104135735A (en) * 2014-08-25 2014-11-05 宁波普天通信技术有限公司 Automatic testing method, device and system for LTE core network
CN104796302A (en) * 2015-04-17 2015-07-22 大唐移动通信设备有限公司 Method and system for testing network element simulators
CN110875840A (en) * 2018-09-03 2020-03-10 中兴通讯股份有限公司 Network element management method, device, system and storage medium
CN111010702A (en) * 2018-10-08 2020-04-14 华为技术有限公司 Time delay sensitive network communication method and device thereof
CN111200846A (en) * 2018-11-19 2020-05-26 华为技术有限公司 Time delay sensitive network communication method and device thereof
CN111200878A (en) * 2018-11-19 2020-05-26 华为技术有限公司 Information transmission method and device
CN111200848A (en) * 2018-11-19 2020-05-26 华为技术有限公司 Communication method and device
CN109639527A (en) * 2018-12-18 2019-04-16 中国移动通信集团江苏有限公司 Test method, device, equipment and the medium of network adjustment engineering
CN111953576A (en) * 2019-05-17 2020-11-17 华为技术有限公司 Virtual network communication method, equipment and system

Also Published As

Publication number Publication date
CN112543473A (en) 2021-03-23

Similar Documents

Publication Publication Date Title
CN112543473B (en) Test method, device and equipment based on network element simulation and computer storage medium
CN109451451B (en) Terminal roaming method, device and storage medium
US10045238B2 (en) Providing easy access to radio networks
EP2681870B1 (en) Technique for determining correlated events in a communication system
EP2721789B1 (en) Distributing network identifiers using a hash function
CN103167044B (en) The method of the intelligently parsing of domain name system DNS, testing device and system
US20140280803A1 (en) Optimized Content Distribution Based on Metrics Derived from the End User
CN102820984A (en) Automatic network topology detection and modeling
CN111901135A (en) Data analysis method and device
WO2018095537A1 (en) Application provisioning to mobile edge
CN110086640B (en) Service enabling method and device
CN103581351B (en) The method and apparatus of network access
CN110366276A (en) Serviceization framework base station
CN113825129B (en) Industrial Internet asset mapping method in 5G network environment
WO2018192149A1 (en) Dial testing method, apparatus and system
CN110391940A (en) Response method, device, system, equipment and the storage medium of address of service
CN109561167A (en) A kind of domain name analytic method and device
CN109818821A (en) A kind of detection method and device of website CDN framework
US7646729B2 (en) Method and apparatus for determination of network topology
US20090238077A1 (en) Method and apparatus for providing automated processing of a virtual connection alarm
CN1937461B (en) Terminal test device based on terminal management business
CN100486210C (en) Topology finding method and system in SIP network
CN105611525B (en) A kind of information processing method and electronic equipment
CN108345508A (en) Interface calls test method and device
CN107872493A (en) A kind of information processing method, terminal and server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant