Link establishment method, device, apparatus, system and storage medium
By configuring IP data filtering rules for the system simulator, the problem of insufficient support for TCP/IP protocol in the prior art is solved, and the effect of improving the efficiency of IP link establishment is achieved.
Patent Information
- Application Number
- CN202110915570.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-10
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2041-08-10
AI Technical Summary
In the prior art, how to improve the support of system simulators for TCP/IP protocols, and thus improve the efficiency of IP link establishment.
By configuring IP data filtering rules for the system simulator, the system simulator supports TCP/IP protocols, thereby improving the efficiency of IP link establishment.
It improves the support of the system simulator for the TCP/IP protocol, and thus improves the efficiency and reliability of IP link establishment.
Smart Images

Figure CN115914057B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a link establishment method, device, apparatus, system and storage medium. Background Art
[0002] Protocol testing has become one of the most active areas in computer network and distributed system protocol engineering.
[0003] If the existing protocol test system is to complete all current Internet Protocol (IP) data test scenarios, the system simulator needs to have a certain degree of support for the Transmission Control Protocol (TCP) / IP.
[0004] However, there is currently no better optimization solution for improving the system simulator's support for the TCP / IP protocol. Summary of the invention
[0005] The embodiments of the present application provide a link establishment method, device, apparatus, system and storage medium to solve the problem in the prior art of how to improve the support of the system simulator for the TCP / IP protocol. The support of the system simulator for the TCP / IP protocol is improved by configuring IP data filtering rules for the system simulator, thereby improving the efficiency of IP link establishment.
[0006] In a first aspect, an embodiment of the present application provides a link establishment method, the method being used for a test device in a test system, the test system further comprising one or more system simulators and one or more terminals under test, the method comprising:
[0007] Acquire first Internet Protocol IP link information, where the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, where the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals;
[0008] configuring IP data filtering rules for the first system simulator according to the first IP link information;
[0009] The IP data filtering rule is sent to the first system simulator.
[0010] Optionally, according to the link establishment method described in an embodiment of the present application, the first IP link information includes one or more of the following:
[0011] a cell identifier of the first system simulator;
[0012] IP protocol version number;
[0013] IP protocol type;
[0014] A local port, wherein the local port is a port used by the test device;
[0015] Local address, the local address is the IP address used by the test device;
[0016] A remote port, where the remote port is a port used by the first terminal under test;
[0017] A remote address, where the remote address is an IP address used by the first tested terminal;
[0018] IP security information.
[0019] Optionally, according to the link establishment method described in an embodiment of the present application, the IP data filtering rules include uplink data filtering rules and downlink data filtering rules, the uplink data filtering rules are used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first terminal under test.
[0020] Optionally, the link establishment method according to an embodiment of the present application further includes:
[0021] A local link corresponding to the first IP link is established according to local information in the first IP link information, where the local information includes the local port and the local address.
[0022] Optionally, the link establishment method according to an embodiment of the present application further includes:
[0023] If it is determined according to the first IP link information that the first IP link is an IP link established for the first time by the test device and the first terminal under test through the first system simulator, then generating cell switching indication information for indicating the first IP link;
[0024] sending the cell switching indication information to the first system simulator;
[0025] receiving a media access control MAC address learning request message sent by the first system simulator according to the cell switching indication information;
[0026] A MAC address learning response message is sent to the first system simulator, where the MAC address learning response message includes the MAC address of the test device.
[0027] In a second aspect, an embodiment of the present application further provides a link establishment method, the method being used for a system simulator in a test system, the test system further comprising a test device and one or more terminals under test, the method comprising:
[0028] receiving an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals;
[0029] The IP data transmitted between the test device and the first tested terminal is filtered according to the IP data filtering rule.
[0030] Optionally, according to the link establishment method described in an embodiment of the present application, the IP data filtering rule includes an uplink data filtering rule and a downlink data filtering rule, the uplink data filtering rule is used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rule is used to filter the IP data sent by the test device to the first terminal under test;
[0031] The filtering of the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule includes:
[0032] Filtering the IP data sent by the first tested terminal to the test device according to the uplink data filtering rule;
[0033] The IP data sent by the test device to the first tested terminal is filtered according to the downlink data filtering rule.
[0034] Optionally, the link establishment method according to an embodiment of the present application further includes:
[0035] If the cell switching indication information sent by the test device for indicating the first IP link is received, a media access control MAC address learning request message is generated according to the cell switching indication information;
[0036] Sending the MAC address learning request message to the test device;
[0037] Receiving a MAC address learning response message sent by the test device, wherein the MAC address learning response message includes the MAC address of the test device;
[0038] The MAC address of the test device is added to the IP data transmitted between the test device and the first terminal under test.
[0039] In a third aspect, an embodiment of the present application further provides a test device, which is used in a test system, wherein the test system further includes one or more system simulators and one or more terminals under test; the test device includes a memory, a transceiver, and a processor:
[0040] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0041] Acquire first Internet Protocol IP link information, where the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, where the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals;
[0042] configuring IP data filtering rules for the first system simulator according to the first IP link information;
[0043] The IP data filtering rule is sent to the first system simulator.
[0044] Optionally, according to the test device according to an embodiment of the present application, the first IP link information includes one or more of the following:
[0045] a cell identifier of the first system simulator;
[0046] IP protocol version number;
[0047] IP protocol type;
[0048] A local port, wherein the local port is a port used by the test device;
[0049] Local address, the local address is the IP address used by the test device;
[0050] A remote port, where the remote port is a port used by the first terminal under test;
[0051] A remote address, where the remote address is an IP address used by the first tested terminal;
[0052] IP security information.
[0053] Optionally, according to the test device described in one embodiment of the present application, the IP data filtering rules include uplink data filtering rules and downlink data filtering rules, the uplink data filtering rules are used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first terminal under test.
[0054] Optionally, the testing device according to an embodiment of the present application further includes:
[0055] A local link corresponding to the first IP link is established according to local information in the first IP link information, where the local information includes the local port and the local address.
[0056] Optionally, according to the testing device according to an embodiment of the present application, the processing is further used for:
[0057] If it is determined according to the first IP link information that the first IP link is an IP link established for the first time by the test device and the first terminal under test through the first system simulator, then generating cell switching indication information for indicating the first IP link;
[0058] sending the cell switching indication information to the first system simulator;
[0059] Receiving a MAC address learning request message sent by the first system simulator according to the cell switching indication information;
[0060] A MAC address learning response message is sent to the first system simulator, where the MAC address learning response message includes the MAC address of the test device.
[0061] In a fourth aspect, an embodiment of the present application further provides a system simulator, wherein the system simulator is used in a test system, wherein the test system further includes a test device and one or more terminals under test; the system simulator includes a memory, a transceiver, and a processor:
[0062] A memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations:
[0063] receiving an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals;
[0064] The IP data transmitted between the test device and the first tested terminal is filtered according to the IP data filtering rule.
[0065] Optionally, according to the system simulator described in one embodiment of the present application, the IP data filtering rule includes an uplink data filtering rule and a downlink data filtering rule, the uplink data filtering rule is used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rule is used to filter the IP data sent by the test device to the first terminal under test;
[0066] The filtering of the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule includes:
[0067] Filtering the IP data sent by the first tested terminal to the test device according to the uplink data filtering rule;
[0068] The IP data sent by the test device to the first tested terminal is filtered according to the downlink data filtering rule.
[0069] Optionally, according to the system simulator described in one embodiment of the present application, the processor is further configured to:
[0070] If the cell switching indication information sent by the test device for indicating the first IP link is received, a media access control MAC address learning request message is generated according to the cell switching indication information;
[0071] Sending the MAC address learning request message to the test device;
[0072] Receiving a MAC address learning response message sent by the test device, wherein the MAC address learning response message includes the MAC address of the test device;
[0073] The MAC address of the test device is added to the IP data transmitted between the test device and the first terminal under test.
[0074] In a fifth aspect, an embodiment of the present application further provides a link establishment device, the device being used for a test device in a test system, the test system further comprising one or more system simulators and one or more terminals under test; the device comprising:
[0075] an acquiring unit, configured to acquire first Internet Protocol IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, wherein the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals;
[0076] a configuration unit, configured to configure IP data filtering rules for the first system simulator according to the first IP link information;
[0077] A sending unit is used to send the IP data filtering rule to the first system simulator.
[0078] In a sixth aspect, an embodiment of the present application further provides a link establishment device, the device being used for a system simulator in a test system, the test system further comprising a test device and one or more terminals under test; the device comprising:
[0079] a receiving unit, configured to receive an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals;
[0080] A filtering unit is used to filter the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule.
[0081] In a seventh aspect, an embodiment of the present application further provides a test system, the test system comprising a test device, one or more system simulators, and one or more terminals under test;
[0082] The test device is used to execute the link establishment method as described in the first aspect above; and the system simulator is used to execute the link establishment method as described in the second aspect above.
[0083] In an eighth aspect, an embodiment of the present application further provides a processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the link establishment method described in the first aspect above.
[0084] In the ninth aspect, an embodiment of the present application further provides a processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the link establishment method described in the second aspect above.
[0085] The embodiments of the present application provide a link establishment method, device, apparatus, system and storage medium, which obtains first IP link information, configures IP data filtering rules for a first system simulator based on the first IP link information, and sends the IP data filtering rules to the first system simulator. In this way, the first system simulator can filter the IP data transmitted between the test device and the first terminal under test based on the IP data filtering rules, thereby improving the system simulator's support for the TCP / IP protocol and further improving the efficiency of IP link establishment. BRIEF DESCRIPTION OF THE DRAWINGS
[0086] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0087] Figure 1 This is one of the flowcharts of a link establishment method provided in an embodiment of the present application;
[0088] Figure 2 It is one of the structural schematic diagrams of a test system provided in an embodiment of the present application;
[0089] Figure 3 This is a second flow chart of a link establishment method provided in an embodiment of the present application;
[0090] Figure 4 This is a second structural diagram of a test system provided in an embodiment of the present application;
[0091] Figure 5 This is a flowchart of a link establishment method provided in an embodiment of the present application;
[0092] Figure 6 This is a fourth flowchart of a link establishment method provided in an embodiment of the present application;
[0093] Figure 7 This is one of the structural schematic diagrams of a link establishment device provided in an embodiment of the present application;
[0094] Figure 8 This is a second structural diagram of a link establishment device provided in an embodiment of the present application;
[0095] Fig. 9 is a schematic diagram of the structure of the test device provided in the embodiment of the present application;
[0096] Fig.10 It is a schematic diagram of the structure of the system simulator provided in the embodiment of the present application. DETAILED DESCRIPTION
[0097] In the embodiments of the present application, the term "and / or" describes the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0098] In the embodiments of the present application, the term "plurality" refers to two or more than two, and other quantifiers are similar.
[0099] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0100] The technical solution provided in the embodiment of the present application can be applicable to a variety of systems, especially 5G systems. For example, the applicable system can be a global system of mobile communication (GSM) system, a code division multiple access (CDMA) system, a wideband code division multiple access (WCDMA) general packet radio service (GPRS) system, a long term evolution (LTE) system, a LTE frequency division duplex (FDD) system, a LTE time division duplex (TDD) system, an advanced long term evolution (LTE-A) system, a universal mobile telecommunication system (UMTS), a world-wide interoperability for microwave access (WiMAX) system, a 5G new air interface (NR) system, etc. These various systems include terminal equipment and network equipment. The system may also include a core network part, such as an evolved packet system (EPS), a 5G system (5GS), etc.
[0101] The terminal under test involved in the embodiment of the present application may be a device that provides voice and / or data connectivity to a user, a handheld device with a wireless connection function, or other processing devices connected to a wireless modem. In different systems, the name of the terminal device may also be different. For example, in a 5G system, the terminal device may be called a user equipment (UE). A wireless terminal device can communicate with one or more core networks (CN) via a radio access network (RAN). The wireless terminal device may be a mobile terminal device, such as a mobile phone (or a "cellular" phone) and a computer with a mobile terminal device. For example, it may be a portable, pocket-sized, handheld, computer-built-in or vehicle-mounted mobile device that exchanges language and / or data with a wireless access network. For example, personal communication service (PCS) phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs) and other devices. The wireless terminal device may also be referred to as a system, a subscriber unit, a subscriber station, a mobile station, a mobile station, a remote station, an access point, a remote terminal device, an access terminal device, a user terminal device, a user agent, and a user device, but is not limited in the embodiments of the present application.
[0102] The system simulator involved in the embodiment of the present application may be a base station, which may include multiple cells providing services for the terminal. Depending on the specific application scenario, the base station may also be called an access point, or may be a device in the access network that communicates with the wireless terminal device through one or more sectors on the air interface, or other names. The network device may be used to interchange received air frames with Internet Protocol (IP) packets, and serve as a router between the wireless terminal device and the rest of the access network, wherein the rest of the access network may include an Internet Protocol (IP) communication network. The network device may also coordinate the attribute management of the air interface. For example, the network device involved in the embodiments of the present application may be a network device (Base Transceiver Station, BTS) in the Global System for Mobile communications (Global System for Mobile communications, GSM) or Code Division Multiple Access (Code Division Multiple Access, CDMA), or a network device (NodeB) in Wide-band Code Division Multiple Access (WCDMA), or an evolutionary network device (evolutional Node B, eNB or e-NodeB) in the long term evolution (long term evolution, LTE) system, a 5G base station (gNB) in the 5G network architecture (next generation system), or a home evolved Node B (Home evolved Node B, HeNB), a relay node, a home base station (femto), a pico base station (pico), etc., which is not limited in the embodiments of the present application. In some network structures, the network device may include a centralized unit (CU) node and a distributed unit (DU) node, and the centralized unit and the distributed unit may also be arranged geographically separately.
[0103] The embodiments of the present application provide a link establishment method, device, apparatus, system and storage medium, which improve the system simulator's support for the TCP / IP protocol by configuring IP data filtering rules on the system simulator, thereby improving the efficiency of IP link establishment.
[0104] Among them, the method and the device are based on the same application concept. Since the method and the device solve the problem in a similar principle, the implementation of the device and the method can refer to each other, and the repeated parts will not be repeated.
[0105] The following is an explanation through specific embodiments.
[0106] Figure 1 is one of the flow diagrams of a link establishment method provided in an embodiment of the present application. The link establishment method can be applied to a test device in a test system. The test system can also include one or more system simulators and one or more terminals under test, such as Figure 2 As shown. Figure 1 As shown, the link establishment method may include the following steps:
[0107] Step 101, obtain first IP link information, the first IP link information is used to instruct the test device to establish a first IP link with the first tested terminal through a first system simulator, the first system simulator is used to characterize any one of one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals.
[0108] Specifically, the first IP link information may refer to the IP link information required to be used when the first test case provided by the Testing and TestControl Notation (TTCN) test script is executed. The first test case may be a test case included in the TTCN test script. Wherein, the TTCN test script may include a set of protocol test cases specified by the 3rd Generation Partnership Project (3GPP), wherein each test case includes a part of the protocol specifications that need to be supported by the terminal under test, and many test cases need to test the protocol support of the terminal under test for IP multimedia data.
[0109] The first system simulator may refer to Figure 2 Any one of system simulators among system simulator 1, system simulator 2, ..., system simulator n.
[0110] The first terminal under test may refer to Figure 2 Any one of the tested terminal 1, the tested terminal 2, ..., the tested terminal m.
[0111] It is worth noting that the system simulator in the embodiment of the present application can be an NR system simulator, an LTE system simulator, or other system simulators. The present application does not limit the type of system simulator.
[0112] Step 102: Configure IP data filtering rules for the first system simulator according to the first IP link information.
[0113] Specifically, after the test device obtains the first IP link information, it can determine the first system simulator and the first terminal under test according to the first IP link information, and configure IP data filtering rules for the first system simulator, and the IP data filtering rules are used to filter the IP data between the test device and the first terminal under test. For example: filter the IP data sent from the terminal under test to the test device. Another example: filter the IP data sent from the test device to the terminal under test.
[0114] Step 103: Send the IP data filtering rules to the first system simulator.
[0115] Specifically, after configuring the IP data filtering rule, the test device can send the IP data filtering rule to the first system simulator, so that the first system simulator can filter the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule, for example, adding an Ethernet header to the uplink data and removing the Ethernet header from the downlink data.
[0116] It can be seen from the above embodiments that by obtaining the first IP link information, configuring IP data filtering rules for the first system simulator according to the first IP link information, and sending the IP data filtering rules to the first system simulator, the first system simulator can filter the IP data transmitted between the test device and the first terminal under test according to the IP data filtering rules, thereby improving the system simulator's support for the TCP / IP protocol and further improving the efficiency of IP link establishment.
[0117] Optionally, the first IP link information includes one or more of the following:
[0118] a cell identifier of the first system simulator;
[0119] IP protocol version number;
[0120] IP protocol type;
[0121] A local port, wherein the local port is a port used by the test device;
[0122] Local address, the local address is the IP address used by the test device;
[0123] A remote port, where the remote port is a port used by the first terminal under test;
[0124] A remote address, where the remote address is an IP address used by the first tested terminal;
[0125] IP security information.
[0126] Specifically, the cell identifier (Cell-Id) of the registered cell may refer to the identifier of the system simulator. For example, Cell-Id1 is the NR system simulator, and Cell-Id2 is the LTE simulator.
[0127] The IP protocol version number (IP Version) may refer to a version number such as the fourth version of the Internet Protocol (ie, IPv4) or the sixth version of the Internet Protocol (ie, IPv6).
[0128] The IP protocol type (Protocol Type) may refer to types such as User Datagram Protocol (UDP), TCP or Internet Control Message Protocol (ICMP).
[0129] The local port may refer to the port used by the test equipment, for example, the test equipment is a test computer (Personal Computer, PC).
[0130] The local address (Local Addr) may refer to the IP address used by the test device.
[0131] The remote port may refer to the port used by the terminal under test.
[0132] The remote address (Remote Addr) may refer to the IP address used by the terminal under test.
[0133] IP security information (IPSEC) can include algorithm and key information.
[0134] It can be seen from the above embodiments that the first IP link information includes IP protocol information, local information and remote information required for test case execution, so that it is convenient to configure IP data filtering rules for the system simulator based on these information, thereby improving the reliability of IP link establishment.
[0135] Optionally, the IP data filtering rules in the above step 102 include uplink data filtering rules and downlink data filtering rules, the uplink data filtering rules are used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first terminal under test.
[0136] Specifically, when the test device configures IP data filtering rules for the first system simulator, it needs to configure uplink data filtering rules and downlink data filtering rules, so that the first system simulator can filter uplink IP data according to the uplink data filtering rules, and filter downlink IP data according to the downlink data filtering rules.
[0137] For example, the first system simulator filters the uplink IP data according to the uplink data filtering rule, which may include:
[0138] Check the source and destination addresses in the uplink data packet;
[0139] If the data is encrypted, check the IP security information (IPSEC);
[0140] If the data is not encrypted, check the source and destination ports, as well as the protocol type;
[0141] If all the above information matches, the upstream IP data will be sent to the test device after adding the Ethernet header;
[0142] If the information does not match, the upstream IP data is directly discarded.
[0143] For another example, when the first system simulator filters the downstream IP data according to the downstream data filtering rule, it may include:
[0144] Check the source and destination addresses in the downlink data packet;
[0145] If the data is encrypted, check the IP security information (IPSEC);
[0146] If the data is not encrypted, check the source and destination ports, as well as the protocol type;
[0147] If all the above information matches, the downlink IP data is sent to the first tested terminal after removing the Ethernet header;
[0148] If the information does not match, the downstream IP data is directly discarded.
[0149] It can be seen from the above embodiments that the IP data filtering rules may include uplink data filtering rules and downlink data filtering rules. This makes it easy for the first system simulator to filter the uplink IP data according to the uplink data filtering rules, and to filter the downlink IP data according to the downlink data filtering rules, thereby improving the system simulator's support for the TCP / IP protocol and further improving the efficiency of IP link establishment.
[0150] Optionally, the link establishment method provided in the embodiment of the present application further includes:
[0151] A local link corresponding to the first IP link is established according to local information in the first IP link information, where the local information includes the local port and the local address.
[0152] Specifically, the test device may establish a local link corresponding to the first IP link according to the local information included in the first IP link information, such as a local port (Local Port) and a local address (Local Addr), and start an IP data receiving and sending thread.
[0153] In addition, the test device may also configure IPSEC of the local link according to the IP security information (IPSEC) included in the first IP link information.
[0154] It is worth noting that the test device in the embodiment of the present application comes with a TCP / IP protocol stack. Since the TTCN test script can only send and receive user data, that is, the data cannot contain TCP / User Datagram Protocol (UDP) header and IP header information, the TCP / IP protocol stack will filter the IP data transmitted between the test device and the first device under test. For example: the TCP / IP protocol stack adds a TCP / UDP header, an IP header, and an Ethernet header to the downlink data and sends it to the first system simulator; removes the TCP / UDP header, IP header, and Ethernet header from the received uplink data and sends it to the TTCN test script.
[0155] It can be seen from the above embodiments that in addition to configuring IP data filtering rules for the first system simulator, the test device also needs to establish a local link corresponding to the first IP link based on the local information contained in the first IP link information, such as: local port (Local Port) and local address (Local Addr). This can ensure IP data transmission between the test device and the first device under test and improve the efficiency of data transmission.
[0156] Optionally, the link establishment method provided in the embodiment of the present application further includes:
[0157] If it is determined according to the first IP link information that the first IP link is an IP link established for the first time by the test device and the first terminal under test through the first system simulator, then generating cell switching indication information for indicating the first IP link;
[0158] sending the cell switching indication information to the first system simulator;
[0159] receiving a media access control (MAC) address learning request message sent by the first system simulator according to the cell switching indication information;
[0160] A MAC address learning response message is sent to the first system simulator, where the MAC address learning response message includes the MAC address of the test device.
[0161] Specifically, when determining whether the first IP link is an IP link established for the first time, the test device may compare the established historical IP links.
[0162] For example, the system simulator identifier in the first IP link information is Cell-Id2, and the IP address of the first terminal under test is 192.168.0.2;
[0163] The historical IP links that are stored locally include:
[0164] IP link 1: The system simulator is identified as Cell-Id1, and the IP address of the terminal under test is 192.168.0.2;
[0165] IP link 2: The system simulator is identified as Cell-Id1, and the IP address of the terminal under test is 193.168.0.2;
[0166] IP link 3: The system simulator is identified as Cell-Id1, and the IP address of the terminal under test is 203.168.0.2;
[0167] IP link 4: The system simulator is identified as Cell-Id1, and the IP address of the terminal under test is 204.168.0.2;
[0168] By comparison, the IP address in the first IP link information is the same as the IP address in IP link 1, but the system simulator identifier is different, indicating that the system simulator has switched, that is, the first IP link established at this time is the first IP link established, and it is necessary to instruct the switched system simulator to initiate the MAC address learning process.
[0169] Among them, for the MAC address learning request message in the MAC address learning process, the type of MAC address learning request message corresponding to different IP protocol versions (IP Version) is different. For example, the MAC address learning request message corresponding to IPv4 is an Address Resolution Protocol (ARP) request message, and the MAC address learning request message corresponding to IPv6 is a Neighbor Solicitation (NS) message.
[0170] For the MAC address learning response message in the MAC address learning process, the type of MAC address learning response message corresponding to different IP protocol versions (IPVersion) is different. For example, the MAC address learning response message corresponding to IPv4 is an ARP response message, and the MAC address learning response message corresponding to IPv6 is a neighbor advertisement (NeighborAdvertisement, NA) message.
[0171] It can be seen from the above embodiments that when the test device determines that the first IP link is an IP link established for the first time, it can instruct the corresponding system simulator to initiate a MAC address learning process, so that the system simulator can add the MAC address of the test device to the Ethernet header when filtering data, thereby ensuring the IP data transmission between the test device and the first device under test and improving the reliability of data transmission.
[0172] Figure 3 This is a flow chart of a link establishment method provided in an embodiment of the present application. The link establishment method is applied to a system simulator in a test system. The test system also includes a test device and one or more terminals under test. Figure 3 As shown, the link establishment method may include the following steps:
[0173] Step 301, receive the IP data filtering rules sent by the test device, where the IP data filtering rules are the filtering rules configured by the test device for the system simulator based on the first IP link information, where the first IP link information is used to instruct the test device to establish a first IP link with the first tested terminal through the system simulator, where the first tested terminal is used to represent any one of the one or more tested terminals.
[0174] Specifically, the system simulator may refer to Figure 2 Any one of system simulators among system simulator 1, system simulator 2, ..., system simulator n.
[0175] The first terminal under test may refer to Figure 2 Any one of the tested terminal 1, the tested terminal 2, ..., the tested terminal m.
[0176] It is worth noting that the system simulator in the embodiment of the present application can be an NR system simulator, an LTE system simulator, or other system simulators. The present application does not limit the type of system simulator.
[0177] In addition, the first IP link information may refer to the IP link information required to be used when the first test case provided by the TTCN test script is executed. The first test case may be a test case included in the TTCN test script. The TTCN test script may include a set of protocol test cases specified by 3GPP, each of which includes a portion of protocol specifications that need to be supported by the terminal under test, and many test cases need to test the protocol support of the terminal under test for IP multimedia data.
[0178] The first IP link information includes one or more of the following:
[0179] a cell identifier of the first system simulator;
[0180] IP protocol version number;
[0181] IP protocol type;
[0182] A local port, wherein the local port is a port used by the test device;
[0183] Local address, the local address is the IP address used by the test device;
[0184] A remote port, where the remote port is a port used by the first terminal under test;
[0185] A remote address, where the remote address is an IP address used by the first tested terminal;
[0186] IP security information.
[0187] Specifically, the cell identifier (Cell-Id) of the registered cell may refer to the identifier of the system simulator. For example, Cell-Id1 is the NR system simulator, and Cell-Id2 is the LTE simulator.
[0188] The IP protocol version number (IP Version) may refer to a version number such as the fourth version of the Internet Protocol (ie, IPv4) or the sixth version of the Internet Protocol (ie, IPv6).
[0189] The IP protocol type (Protocol Type) may refer to types such as User Datagram Protocol (UDP), TCP or Internet Control Message Protocol (ICMP).
[0190] The local port may refer to the port used by the test equipment, for example, the test equipment is a test computer (Personal Computer, PC).
[0191] The local address (Local Addr) may refer to the IP address used by the test device.
[0192] The remote port may refer to the port used by the terminal under test.
[0193] The remote address (Remote Addr) may refer to the IP address used by the terminal under test.
[0194] IP security information (IPSEC) can include algorithm and key information.
[0195] Step 302: Filter the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule.
[0196] Specifically, the system simulator can filter the IP data between the test device and the first terminal under test according to the IP data filtering rule, for example: filtering the IP data sent from the terminal under test to the test device, or for another example: filtering the IP data sent from the test device to the terminal under test.
[0197] It can be seen from the above embodiments that the system simulator filters the IP data transmitted between the test device and the first terminal under test according to the IP data filtering rules sent by the receiving test device, thereby improving the system simulator's support for the TCP / IP protocol and further improving the efficiency of IP link establishment.
[0198] Optionally, the IP data filtering rules include uplink data filtering rules and downlink data filtering rules, the uplink data filtering rules are used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first terminal under test.
[0199] The filtering of the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule includes:
[0200] Filtering the IP data sent by the first tested terminal to the test device according to the uplink data filtering rule;
[0201] The IP data sent by the test device to the first tested terminal is filtered according to the downlink data filtering rule.
[0202] Specifically, the IP data filtering rules include uplink data filtering rules and downlink data filtering rules. The system simulator can filter the IP data sent by the first tested terminal to the test device according to the uplink data filtering rules, and the system simulator can filter the IP data sent by the test device to the first tested terminal according to the downlink data filtering rules.
[0203] For example, when the first system simulator filters the uplink IP data according to the uplink data filtering rule, it may include:
[0204] Check the source and destination addresses in the uplink data packet;
[0205] If the data is encrypted, check the IP security information (IPSEC);
[0206] If the data is not encrypted, check the source and destination ports, as well as the protocol type;
[0207] If all the above information matches, the upstream IP data will be sent to the test device after adding the Ethernet header;
[0208] If the information does not match, the upstream IP data is directly discarded.
[0209] For another example, when the first system simulator filters the downstream IP data according to the downstream data filtering rule, it may include:
[0210] Check the source and destination addresses in the downlink data packet;
[0211] If the data is encrypted, check the IP security information (IPSEC);
[0212] If the data is not encrypted, check the source and destination ports, as well as the protocol type;
[0213] If all the above information matches, the downlink IP data is sent to the first tested terminal after removing the Ethernet header;
[0214] If the information does not match, the downstream IP data is directly discarded.
[0215] It can be seen from the above embodiments that the system simulator filters the uplink IP data according to the uplink data filtering rules, and filters the downlink IP data according to the downlink data filtering rules, thereby improving the system simulator's support for the TCP / IP protocol and further improving the efficiency of IP link establishment.
[0216] Optionally, the link establishment method provided in the embodiment of the present application further includes:
[0217] If the cell switching indication information sent by the test device for indicating the first IP link is received, a media access control MAC address learning request message is generated according to the cell switching indication information;
[0218] Sending the MAC address learning request message to the test device;
[0219] Receiving a MAC address learning response message sent by the test device, wherein the MAC address learning response message includes the MAC address of the test device;
[0220] The MAC address of the test device is added to the IP data transmitted between the test device and the first terminal under test.
[0221] Specifically, after receiving the cell switching indication information sent by the test device, the system simulator will initiate a MAC address learning process to the test device according to the cell switching indication information.
[0222] Among them, for the MAC address learning request message in the MAC address learning process, the MAC address learning request message type corresponding to different IP protocol versions (IP Version) is different. For example, the MAC address learning request message corresponding to IPv4 is an ARP request message, and the MAC address learning request message corresponding to IPv6 is NS.
[0223] For the MAC address learning response message in the MAC address learning process, the MAC address learning response message type corresponding to different IP protocol versions (IPVersion) is different. For example, the MAC address learning response message corresponding to IPv4 is an ARP response message, and the MAC address learning response message corresponding to IPv6 is an NA message.
[0224] For example: IPV4 uses the first tested terminal address in the upstream filtering rule as the source address, uses the test device address as the destination address, simulates sending ARP request messages, and learns the MAC address of the test device. After obtaining the MAC address of the test device, the upstream IPv4 data can be successfully sent to the test device. The TCP / IP protocol stack on the test device will reply with an ARP response message and update the ARP table on the test device, so that the downstream IPv4 data will be sent to the corresponding system simulator according to the ARP table.
[0225] Another example: IPv6 uses the address of the tested terminal in the upstream filtering rule as the source address, uses the test device address as the destination address, simulates sending a neighbor request message (NS), and learns the MAC address of the test device. After obtaining the MAC address of the test device, the upstream IPv6 data can be successfully sent to the test device. The TCP / IP protocol stack on the test device will reply with a neighbor response message (NA) to update the IPv6 neighbor table of the test device. Similarly, the downstream IPv6 data will be sent to the corresponding system simulator according to the neighbor table.
[0226] It can be seen from the above embodiments that after the system simulator receives the cell switching indication information for indicating the first IP link, it can initiate a MAC address learning process to the test device and add the learned MAC address of the test device to the Ethernet header, thereby ensuring the IP data transmission between the test device and the first device under test and improving the reliability of data transmission.
[0227] The following uses the NR system simulator and the LTE system simulator as examples (i.e., Figures 4 to 6 ) to specifically describe the implementation process of the above link establishment.
[0228] like Figure 4 As shown, the test equipment includes a TTCN test script, an IP link establishment module, and a TCP / IP protocol stack; the system simulator includes an IP data filtering module. The IP link establishment module can be a functional module of the test equipment. The IP data filtering module can be a functional module of the system simulator.
[0229] TTCN test scripts contain a set of protocol test cases specified by 3GPP, each of which contains a part of the protocol specifications that the terminal under test needs to support, and most of the test cases need to test the protocol support of the terminal under test for IP multimedia data. TTCN test scripts can only send and receive user data, that is, the data cannot contain TCP / UDP header and IP header information.
[0230] The IP link establishment module is established by the link establishment method provided in the embodiment of the present application. On the one hand, it is used to receive data sent by the TTCN test script and send the data to the IP data filtering module on the corresponding IP link; on the other hand, it is used to receive data uploaded by the IP data filtering module and send the data to the TTCN test script on the corresponding IP link.
[0231] The TCP / IP protocol stack is the TCP / IP protocol stack that comes with the test device and can be called by other applications. The test device can be a test PC, and the IP address required for establishing an IP link needs to be configured on the test device.
[0232] The system simulator is responsible for simulating the base station, processing the signaling and IP data sent by the TTCN test script and sending them to the terminal under test through the air interface, and processing the air interface messages transmitted by the terminal under test and uploading them to the TTCN test script. The system simulator can be an NR system simulator, an LTE system simulator, or other systems that can simulate base stations. Figure 4 The system simulators listed in are NR system simulator and LTE system simulator.
[0233] The terminal under test, which is used to test the protocol support, will interact with the TTCN test script at the IP layer. The terminal under test needs to receive IP data with IP header and TCP / UDP header at the air interface.
[0234] The router is connected to the test equipment, the IP data filtering module on the LTE system simulator, and the IP data filtering module on the NR system simulator through the Ethernet port.
[0235] The IP data filtering module is responsible for filtering IP data packets in the network and performing cell switching operations.
[0236] like Figure 5 As shown, based on Figure 4 Test system shown:
[0237] (1) The TTCN test script sends the IP link information required for the execution of this use case to the IP link establishment module.
[0238] (2) The IP link establishment module splits the IP information into uplink filtering rules (local information pointing to the test device) and downlink filtering rules (remote information pointing to the terminal under test), and configures them to the IP data filtering module on the corresponding system simulator.
[0239] (3) The IP link establishment module establishes a local link monitor based on the local information in the IP information, configures the local link security information, starts the receiving thread, and waits for the arrival of the uplink data.
[0240] (4) The IP link establishment module checks the CellId field in the IP information to detect whether the current cell is a new cell (i.e., determines whether the IP link to be established is the first IP link established). If yes, it sends a cell switching instruction to the IP data filtering module.
[0241] (5) The IP data filter module receives the cell switching instruction and simulates the remote address to send a neighbor request message (IPv6) or an ARP request (IPv4) to learn the MAC address of the test device. In this way, when sending uplink data, the IP data filter module can fill in the MAC address of the test device in the Ethernet header and send the data to the test device correctly.
[0242] (6) After receiving the neighbor request message (Ipv6) or ARP request (Ipv4), the TCP / IP protocol stack of the test device will update the local neighbor table (Ipv6) or ARP table (Ipv4) and return the neighbor response message (Ipv6) or ARP response (Ipv4) carrying the MAC address of the test device. When sending downlink data, the TCP / IP protocol stack can find the MAC address of the corresponding IP data filter module according to the remote address, fill in the Ethernet header, and send the data to the correct IP data filter module.
[0243] (7) If you need to switch to another system simulator, just repeat the above process.
[0244] After the above link establishment process is completed, the TTCN test script can interact with the terminal under test at the IP layer. It can also support the situation where the TTCN test script only sends and receives user data, while the terminal under test needs to send and receive IP data. It can also complete the IP link switching between different system simulators in a short time.
[0245] like Figure 6 As shown, based on Figure 4 Test system shown:
[0246] (1) The terminal under test sends uplink IP data to the IP data filtering module through the air interface.
[0247] (2) IP data filtering module, filtering IP data according to the configured uplink filtering rules, including:
[0248] Check whether the address information in the IP header matches;
[0249] If the data is encrypted, check the IPSEC information;
[0250] If it is not encrypted, check the port and protocol type in the TCP / UDP header;
[0251] If the above information matches, the Ethernet header is added and the data is sent to the test device;
[0252] If the above information does not match, the data is discarded.
[0253] (3) After receiving the data, the TCP / IP protocol stack of the test device removes the Ethernet header, IP header, and TCP / UDP header and sends the user data to the IP link establishment module of the corresponding port.
[0254] (4) After receiving the user data, the IP link establishment module matches the corresponding IP link information and sends the user data to the TTCN test script.
[0255] (4) Downlink IP data processing corresponds to it.
[0256] It can be seen that in the IP link establishment scheme in the embodiment of the present application, the system simulator only needs to develop a small amount of IP data processing code to complete the entire IP link establishment and data transmission process, which greatly reduces the entry threshold of the system simulator for IP data testing. And according to actual tests, using the link switching between system simulators in the present invention, the link switching will be completed in a short time, which fully meets the needs of all current TTCN test cases. And for the switching test scenario in the connected state, it can effectively avoid data packet loss, and at the same time, it can also efficiently complete the switching action in the test scenario of repeated switching, that is, it can flexibly switch between multiple system simulators, and can ensure timeliness.
[0257] Figure 7 is one of the structural schematic diagrams of a link establishment device provided in an embodiment of the present application, the link establishment device is used for testing equipment in a test system, the test system also includes one or more system simulators, and one or more terminals under test. The link establishment device can be used to perform Figure 1 The link establishment method shown in FIG. Figure 7 As shown, the link establishment device may include:
[0258] An acquiring unit 71 is configured to acquire first Internet Protocol IP link information, wherein the first IP link information is used to indicate that the test device establishes a first IP link with a first tested terminal through a first system simulator, wherein the first system simulator is used to represent any one of the one or more system simulators, and the first tested terminal is used to represent any one of the one or more tested terminals;
[0259] A configuration unit 72, configured to configure an IP data filtering rule for the first system simulator according to the first IP link information;
[0260] The sending unit 73 is used to send the IP data filtering rule to the first system simulator.
[0261] Further, based on the above device, the first IP link information includes one or more of the following:
[0262] a cell identifier of the first system simulator;
[0263] IP protocol version number;
[0264] IP protocol type;
[0265] A local port, wherein the local port is a port used by the test device;
[0266] Local address, the local address is the IP address used by the test device;
[0267] A remote port, where the remote port is a port used by the first terminal under test;
[0268] A remote address, where the remote address is an IP address used by the first tested terminal;
[0269] IP security information.
[0270] Furthermore, based on the above-mentioned device, the IP data filtering rules include uplink data filtering rules and downlink data filtering rules, the uplink data filtering rules are used to filter the IP data sent by the first terminal under test to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first terminal under test.
[0271] Further, based on the above device, it also includes:
[0272] An establishing unit is used to establish a local link corresponding to the first IP link according to the local information in the first IP link information, wherein the local information includes the local port and the local address.
[0273] Further, based on the above device, it also includes:
[0274] a judging unit, configured to generate cell switching indication information for indicating the first IP link if it is determined according to the first IP link information that the first IP link is an IP link established for the first time by the test device and the first terminal under test through the first system simulator;
[0275] an indication unit, configured to send the cell switching indication information to the first system simulator;
[0276] A learning unit, configured to receive a media access control MAC address learning request message sent by the first system simulator according to the cell switching indication information;
[0277] A response unit is used to send a MAC address learning response message to the first system simulator, wherein the MAC address learning response message includes the MAC address of the test device.
[0278] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0279] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0280] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0281] Figure 8 This is a second structural diagram of a link establishment device provided in an embodiment of the present application. The link establishment device is used for a system simulator in a test system. The test system also includes a test device and one or more terminals under test. The link establishment device can be used to perform Figure 3 The link establishment method shown in FIG. Figure 8 As shown, the link establishment device may include:
[0282] A receiving unit 81 is used to receive an Internet Protocol IP data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals;
[0283] The filtering unit 82 is used to filter the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule.
[0284] Further, based on the above device, the IP data filtering rule includes an uplink data filtering rule and a downlink data filtering rule, the uplink data filtering rule is used to filter the IP data sent by the first tested terminal to the test device, and the downlink data filtering rule is used to filter the IP data sent by the test device to the first tested terminal;
[0285] The filtering unit 82 comprises:
[0286] an uplink filtering unit, configured to filter the IP data sent by the first tested terminal to the test device according to the uplink data filtering rule;
[0287] A downlink filtering unit is used to filter the IP data sent by the test device to the first tested terminal according to the downlink data filtering rule.
[0288] Further, based on the above device, it also includes:
[0289] A generating unit, configured to generate a media access control MAC address learning request message according to the cell switching indication information if the cell switching indication information sent by the test device for indicating the first IP link is received;
[0290] A sending unit, used to send the MAC address learning request message to the test device;
[0291] An address unit, configured to receive a MAC address learning response message sent by the test device, wherein the MAC address learning response message includes a MAC address of the test device;
[0292] An adding unit is used to add the MAC address of the test device to the IP data transmitted between the test device and the first terminal under test.
[0293] It should be noted that the division of units in the embodiments of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0294] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), disk or optical disk and other media that can store program codes.
[0295] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0296] Fig. 9 is a schematic diagram of the structure of the test device provided in the embodiment of the present application. The test device can be used to perform Figure 1 The link establishment method shown in FIG. Fig. 9 As shown, the transceiver 900 is used to receive and send data under the control of the processor 910. Fig. 9 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically one or more processors represented by processor 910 and various circuits of memory represented by memory 920 are linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described in this application. The bus interface provides an interface. The transceiver 900 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, including wireless channels, wired channels, optical cables, and other transmission media. For different user devices, the user interface 930 may also be an interface capable of externally and internally connecting required devices, and the connected devices include but are not limited to a keypad, a display, a speaker, a microphone, a joystick, and the like.
[0297] The processor 910 is responsible for managing the bus architecture and general processing, and the memory 920 can store data used by the processor 910 when performing operations.
[0298] Optionally, the processor 910 may be a CPU (central processing unit), an ASIC (Application Specific Integrated Circuit), an FPGA (Field-Programmable Gate Array) or a CPLD (Complex Programmable Logic Device), and the processor may also adopt a multi-core architecture.
[0299] The processor calls the computer program stored in the memory to execute any of the methods provided in the embodiments of the present application according to the obtained executable instructions. The processor and the memory can also be arranged physically separately.
[0300] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0301] Fig.10 is a schematic diagram of the structure of the system simulator provided in the embodiment of the present application; the system simulator can be used to execute Figure 3 The link establishment method shown in FIG. Fig.10 As shown, the transceiver 1000 is used to receive and send data under the control of the processor 1010.
[0302] Among them, Fig.10 In the embodiment, the bus architecture may include any number of interconnected buses and bridges, specifically various circuits linking together one or more processors represented by processor 1010 and memory represented by memory 1020. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art and are therefore not further described herein. The bus interface provides an interface. The transceiver 1000 may be a plurality of components, namely, a transmitter and a receiver, providing a unit for communicating with various other devices on a transmission medium, which transmission medium may include a wireless channel, a wired channel, an optical cable, and other transmission media. The processor 1010 is responsible for managing the bus architecture and general processing, and the memory 1020 may store data used by the processor 1010 when performing operations.
[0303] The processor 1010 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or a complex programmable logic device (CPLD). The processor may also adopt a multi-core architecture.
[0304] It should be noted here that the above-mentioned device provided in the embodiment of the present invention can implement all the method steps implemented in the above-mentioned method embodiment, and can achieve the same technical effect. The parts and beneficial effects that are the same as the method embodiment in this embodiment will not be described in detail here.
[0305] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the methods provided in the above embodiments, including:
[0306] Acquire first Internet Protocol IP link information, where the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, where the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals;
[0307] configuring IP data filtering rules for the first system simulator according to the first IP link information;
[0308] The IP data filtering rule is sent to the first system simulator.
[0309] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0310] On the other hand, an embodiment of the present application further provides a processor-readable storage medium, wherein the processor-readable storage medium stores a computer program, wherein the computer program is used to enable the processor to execute the methods provided in the above embodiments, including:
[0311] receiving an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals;
[0312] The IP data transmitted between the test device and the first tested terminal is filtered according to the IP data filtering rule.
[0313] The processor-readable storage medium can be any available medium or data storage device that can be accessed by the processor, including but not limited to magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc.), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD)), etc.
[0314] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) that contain computer-usable program code.
[0315] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer executable instructions. These computer executable instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0316] These processor executable instructions may also be stored in a processor readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the processor readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0317] These processor-executable instructions may also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0318] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A link establishment method, characterized in that: The method is used for testing equipment in a testing system, wherein the testing system further comprises one or more system simulators and one or more terminals under test, and the method comprises: Acquire first Internet Protocol IP link information, where the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, where the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals; configuring IP data filtering rules for the first system simulator according to the first IP link information; Sending the IP data filtering rule to the first system simulator; Establishing a local link corresponding to the first IP link according to the local information in the first IP link information, starting an IP data receiving and sending thread, and filtering the IP data transmitted between the test device and the first tested terminal through a TCP / IP protocol stack, wherein the local information includes a local port and a local address; The first IP link information refers to the IP link information required for executing the first test case provided by the Test and Test Control Notation (TTCN) test script; the first test case is any test case included in the TTCN test script.
2. The link establishment method according to claim 1, characterized in that: The first IP link information includes one or more of the following: a cell identifier of the first system simulator; IP protocol version number; IP protocol type; A local port, wherein the local port is a port used by the test device; Local address, the local address is the IP address used by the test device; A remote port, where the remote port is a port used by the first terminal under test; A remote address, where the remote address is an IP address used by the first tested terminal; IP security information.
3. The link establishment method according to claim 1 or 2, characterized in that: The IP data filtering rules include uplink data filtering rules and downlink data filtering rules. The uplink data filtering rules are used to filter the IP data sent by the first tested terminal to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first tested terminal.
4. The link establishment method according to claim 1, characterized in that: Also includes: If it is determined according to the first IP link information that the first IP link is an IP link established for the first time by the test device and the first terminal under test through the first system simulator, then generating cell switching indication information for indicating the first IP link; sending the cell switching indication information to the first system simulator; receiving a media access control MAC address learning request message sent by the first system simulator according to the cell switching indication information; A MAC address learning response message is sent to the first system simulator, where the MAC address learning response message includes the MAC address of the test device.
5. A link establishment method, characterized in that: The method is used for testing a system simulator in a system, wherein the test system further comprises a test device and one or more terminals under test, and the method comprises: receiving an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals; Filtering the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule; The first IP link information refers to the IP link information required to be used when executing the first test case provided by the test and test control notation TTCN test script; the first test case is any test case included in the TTCN test script; The test device is used to establish a local link corresponding to the first IP link according to the local information in the first IP link information, start the IP data receiving and sending threads, and filter the IP data transmitted between the test device and the first terminal under test through the TCP / IP protocol stack. The local information includes a local port and a local address.
6. The link establishment method according to claim 5, characterized in that: The IP data filtering rule includes an uplink data filtering rule and a downlink data filtering rule, the uplink data filtering rule is used to filter the IP data sent by the first tested terminal to the test device, and the downlink data filtering rule is used to filter the IP data sent by the test device to the first tested terminal; The filtering of the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule includes: Filtering the IP data sent by the first tested terminal to the test device according to the uplink data filtering rule; The IP data sent by the test device to the first tested terminal is filtered according to the downlink data filtering rule.
7. The link establishment method according to claim 5 or 6, characterized in that: Also includes: If the cell switching indication information sent by the test device for indicating the first IP link is received, a media access control MAC address learning request message is generated according to the cell switching indication information; Sending the MAC address learning request message to the test device; Receiving a MAC address learning response message sent by the test device, wherein the MAC address learning response message includes the MAC address of the test device; The MAC address of the test device is added to the IP data transmitted between the test device and the first terminal under test.
8. A testing device, characterized in that: The test device is used in a test system, and the test system also includes one or more system simulators and one or more terminals under test; the test device includes a memory, a transceiver, and a processor: a memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; A processor is configured to read the computer program in the memory and perform the following operations: Acquire first Internet Protocol IP link information, where the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, where the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals; configuring IP data filtering rules for the first system simulator according to the first IP link information; Sending the IP data filtering rule to the first system simulator; Establishing a local link corresponding to the first IP link according to the local information in the first IP link information, starting an IP data receiving and sending thread, and filtering the IP data transmitted between the test device and the first tested terminal through a TCP / IP protocol stack, wherein the local information includes a local port and a local address; The first IP link information refers to the IP link information required for executing the first test case provided by the Test and Test Control Notation (TTCN) test script; the first test case is any test case included in the TTCN test script.
9. The testing device according to claim 8, characterized in that The first IP link information includes one or more of the following: a cell identifier of the first system simulator; IP protocol version number; IP protocol type; A local port, wherein the local port is a port used by the test device; Local address, the local address is the IP address used by the test device; A remote port, where the remote port is a port used by the first terminal under test; A remote address, where the remote address is an IP address used by the first tested terminal; IP security information.
10. The testing device according to claim 8 or 9, characterized in that The IP data filtering rules include uplink data filtering rules and downlink data filtering rules. The uplink data filtering rules are used to filter the IP data sent by the first tested terminal to the test device, and the downlink data filtering rules are used to filter the IP data sent by the test device to the first tested terminal.
11. The testing device according to claim 8, characterized in that The processor is further configured to: If it is determined according to the first IP link information that the first IP link is an IP link established for the first time by the test device and the first terminal under test through the first system simulator, then generating cell switching indication information for indicating the first IP link; sending the cell switching indication information to the first system simulator; Receiving a MAC address learning request message sent by the first system simulator according to the cell switching indication information; A MAC address learning response message is sent to the first system simulator, where the MAC address learning response message includes the MAC address of the test device.
12. A system simulator, characterized in that: The system simulator is used in a test system, which also includes a test device and one or more terminals under test; the system simulator includes a memory, a transceiver, and a processor: a memory for storing a computer program; a transceiver for transmitting and receiving data under the control of the processor; A processor is configured to read the computer program in the memory and perform the following operations: receiving an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals; Filtering the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule; The first IP link information refers to the IP link information required to be used when executing the first test case provided by the test and test control notation TTCN test script; the first test case is any test case included in the TTCN test script; The test device is used to establish a local link corresponding to the first IP link according to the local information in the first IP link information, start the IP data receiving and sending threads, and filter the IP data transmitted between the test device and the first terminal under test through the TCP / IP protocol stack. The local information includes a local port and a local address.
13. The system simulator according to claim 12, characterized in that: The IP data filtering rule includes an uplink data filtering rule and a downlink data filtering rule, the uplink data filtering rule is used to filter the IP data sent by the first tested terminal to the test device, and the downlink data filtering rule is used to filter the IP data sent by the test device to the first tested terminal; The filtering of the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule includes: Filtering the IP data sent by the first tested terminal to the test device according to the uplink data filtering rule; The IP data sent by the test device to the first tested terminal is filtered according to the downlink data filtering rule.
14. The system simulator according to claim 12 or 13, characterized in that: The processor is further configured to: If the cell switching indication information sent by the test device for indicating the first IP link is received, a media access control MAC address learning request message is generated according to the cell switching indication information; Sending the MAC address learning request message to the test device; Receiving a MAC address learning response message sent by the test device, wherein the MAC address learning response message includes the MAC address of the test device; The MAC address of the test device is added to the IP data transmitted between the test device and the first terminal under test.
15. A link establishment device, characterized in that: The device is used for testing equipment in a testing system, wherein the testing system further comprises one or more system simulators and one or more terminals under test; the device comprises: an acquiring unit, configured to acquire first Internet Protocol IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through a first system simulator, wherein the first system simulator is used to characterize any one of the one or more system simulators, and the first tested terminal is used to characterize any one of the one or more tested terminals; a configuration unit, configured to configure IP data filtering rules for the first system simulator according to the first IP link information; A sending unit, used for sending the IP data filtering rule to the first system simulator; an establishing unit, configured to establish a local link corresponding to the first IP link according to the local information in the first IP link information, start an IP data receiving and sending thread, and filter the IP data transmitted between the test device and the first tested terminal through a TCP / IP protocol stack, wherein the local information includes a local port and a local address; The first IP link information refers to the IP link information required for executing the first test case provided by the Test and Test Control Notation (TTCN) test script; the first test case is any test case included in the TTCN test script.
16. A link establishment device, characterized in that: The device is used for testing a system simulator in a system, wherein the test system further comprises a test device and one or more terminals under test; the device comprises: a receiving unit, configured to receive an Internet Protocol (IP) data filtering rule sent by the test device, wherein the IP data filtering rule is a filtering rule configured by the test device for the system simulator according to first IP link information, wherein the first IP link information is used to instruct the test device to establish a first IP link with a first tested terminal through the system simulator, wherein the first tested terminal is used to represent any one of the one or more tested terminals; A filtering unit, configured to filter the IP data transmitted between the test device and the first tested terminal according to the IP data filtering rule; The first IP link information refers to the IP link information required to be used when executing the first test case provided by the test and test control notation TTCN test script; the first test case is any test case included in the TTCN test script; The test device is used to establish a local link corresponding to the first IP link according to the local information in the first IP link information, start the IP data receiving and sending threads, and filter the IP data transmitted between the test device and the first terminal under test through the TCP / IP protocol stack. The local information includes a local port and a local address.
17. A testing system, characterized in that: The test system includes a test device, one or more system simulators, and one or more terminals under test; The test device is used to execute the link establishment method as described in any one of claims 1 to 4; the system simulator is used to execute the link establishment method as described in any one of claims 5 to 7.
18. A processor-readable storage medium, characterized in that: The processor-readable storage medium stores a computer program, and the computer program is used to enable the processor to execute the link establishment method described in any one of claims 1 to 4, or execute the link establishment method described in any one of claims 5 to 7.
Citation Information
Patent Citations
Methods, test systems and arrangements for verifying compliance with requirement specifications
CN104301173A