CN117411799A - Audio and video transmission performance testing method and device, storage medium and electronic equipment - Google Patents

Audio and video transmission performance testing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN117411799A
CN117411799A CN202310771248.7A CN202310771248A CN117411799A CN 117411799 A CN117411799 A CN 117411799A CN 202310771248 A CN202310771248 A CN 202310771248A CN 117411799 A CN117411799 A CN 117411799A
Authority
CN
China
Prior art keywords
domain name
protocol address
resolution information
target domain
relay server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310771248.7A
Other languages
Chinese (zh)
Inventor
石峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202310771248.7A priority Critical patent/CN117411799A/en
Publication of CN117411799A publication Critical patent/CN117411799A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2514Translation of Internet protocol [IP] addresses between local and global IP addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses an audio and video transmission performance test method, an audio and video transmission performance test device, a storage medium and electronic equipment, and relates to the technical field of communication, wherein the method comprises the following steps: acquiring a domain name corresponding to a relay server instance from a signaling service; inquiring target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address; if the target domain name resolution information is found, resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information; and establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance. The method and the device can effectively reduce the test cost of the audio and video transmission service performance of the relay service under the WebRTC architecture.

Description

Audio and video transmission performance testing method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of communication, in particular to an audio and video transmission performance testing method and device, a storage medium and electronic equipment.
Background
The WebRTC-based audio/video transmission architecture is applied to a large number of scenarios, and is a real-time voice-video communication architecture based on a browser, and as shown in fig. 1, the architecture is generally composed of a hole server (STUN server), a relay server (TURN server), and a self-built signaling server. The hole punching server acts as a temporary intermediary for the p2p request of the client (Peer), detecting the NAT type and opening a port on the NAT device to allow a response; the TURN server may provide communication relay services for clients (peers) after a p2p connection failure.
When the relay server instance is used as a relay server (TURN server), a tester can construct a large number of call connections to exchange audio and video data with the server through a tester when performing performance test on the relay service of the relay server instance. As shown in fig. 3, in the conventional test, a test opportunity obtains a domain name corresponding to an available relay server instance (TURN service instance) from a signaling service (such as a signaling service cluster), and then resolves a public network IP through DNS and establishes a public network connection with the relay server instance by using the public network IP, so that the test machine is in the same intranet as the tested service, and the test process accesses through an external network, which results in a large amount of public network traffic.
In the current manner, when the performance test is performed on the relay service of the relay server instance, as the load (i.e. the number of call connections) and the test duration required by the test increase, the cost required by the test increases due to the consumption of the public network traffic, resulting in higher test cost.
Disclosure of Invention
The embodiment of the application provides a scheme which can effectively reduce the test cost of the audio and video transmission service performance of the relay service under the WebRTC architecture.
The embodiment of the application provides the following technical scheme:
according to one embodiment of the application, an audio/video transmission performance test method includes: acquiring a domain name corresponding to a relay server instance from a signaling service; inquiring target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address; if the target domain name resolution information is found, resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information; and establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
In some embodiments of the present application, after the querying the target domain name resolution information corresponding to the domain name from the local system file, the method further includes: if the target domain name resolution information is not found, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the method further includes: if the domain name is acquired, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the method further includes: displaying an analysis information setting interface according to the setting instruction; and according to the setting operation in the analysis information setting interface, the target domain name analysis information is recorded in the local system file.
In some embodiments of the present application, before the setting operation in the setting interface according to the resolution information, the method further includes, before recording the target domain name resolution information in the local system file: inquiring attribute information of the relay server instance from the instance information inquiry interface; and if the attribute information comprises the capability of not having the capacity expansion and contraction automatically, opening an operation control corresponding to the setting operation in the analysis information setting interface.
In some embodiments of the present application, before the querying, from a domain name system server, a public network protocol address corresponding to the domain name if the domain name is acquired, the method further includes: acquiring the latest generation time of a relay server instance from the signaling service; and determining whether the target domain name resolution information corresponding to the domain name exists in the local system file according to the latest generation time.
In some embodiments of the present application, after the establishing a connection with the relay server instance according to the intranet protocol address to perform a performance test on a relay service of the relay server instance, the method further includes: continuously transmitting test audio and video data packets to the relay server instance; and recording transmission performance data of the relay service of the relay server instance for the received test audio and video data packet.
According to one embodiment of the present application, an audio/video transmission performance testing apparatus, the apparatus includes: the acquisition module is used for acquiring the domain name corresponding to the relay server instance from the signaling service; the query module is used for querying target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address; the resolution module is used for resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information if the target domain name resolution information is found; and the test module is used for establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
In some embodiments of the present application, after the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the apparatus further includes a first file update module configured to: if the target domain name resolution information is not found, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the apparatus further includes a second file update module configured to: if the domain name is acquired, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the apparatus further includes a file setting module, configured to: displaying an analysis information setting interface according to the setting instruction; and according to the setting operation in the analysis information setting interface, the target domain name analysis information is recorded in the local system file.
In some embodiments of the present application, before the setting operation in the setting interface according to the resolution information, the local system file records the target domain name resolution information, the apparatus further includes an instance verification module, configured to: inquiring attribute information of the relay server instance from the instance information inquiry interface; and if the attribute information comprises the capability of not having the capacity expansion and contraction automatically, opening an operation control corresponding to the setting operation in the analysis information setting interface.
In some embodiments of the present application, before the querying, from a domain name system server, a public network protocol address corresponding to the domain name if the domain name is acquired, the apparatus further includes an update confirmation module, configured to: acquiring the latest generation time of a relay server instance from the signaling service; and determining whether the target domain name resolution information corresponding to the domain name exists in the local system file according to the latest generation time.
In some embodiments of the present application, after the connection is established with the relay server instance according to the intranet protocol address to perform performance testing on a relay service of the relay server instance, the apparatus further includes a recording module configured to: continuously transmitting test audio and video data packets to the relay server instance; and recording transmission performance data of the relay service of the relay server instance for the received test audio and video data packet.
According to another embodiment of the present application, a storage medium has stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method described in the embodiments of the present application.
According to another embodiment of the present application, an electronic device may include: a memory storing a computer program; and the processor reads the computer program stored in the memory to execute the method according to the embodiment of the application.
According to another embodiment of the present application, a computer program product or computer program includes computer instructions stored in a computer readable storage medium. The computer instructions are read from the computer-readable storage medium by a processor of a computer device, and executed by the processor, cause the computer device to perform the methods provided in the various alternative implementations described in the embodiments of the present application.
In the embodiment of the application, a domain name corresponding to a relay server instance is obtained from a signaling service; inquiring target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address; if the target domain name resolution information is found, resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information; and establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
In this way, the local default is preferably used for resolving the local system file of the network protocol address, after the tester obtains the domain name corresponding to the available relay server instance from the signaling service, the tester can query the target domain name resolution information corresponding to the domain name from the local system file, obtain the intranet address corresponding to the domain name through the target domain name resolution information resolution, establish intranet connection with the relay server instance through the intranet address, further effectively avoid consuming public network traffic when performance test is performed, namely, intercept the public network address of the DNS resolution domain name through the local system file, convert the public network traffic into intranet traffic on the premise of not changing the logic of the tested service itself, and effectively reduce the test cost of the audio/video transmission service performance of the relay service under the WebRTC architecture.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a flowchart of an audio-video transmission performance test method according to an embodiment of the present application.
Fig. 2 shows a system architecture diagram of an audio/video transmission system based on WebRTC architecture.
Fig. 3 shows a flowchart of an audio/video transmission performance test in the related art.
Fig. 4 shows an audio-video transmission performance test flow chart according to one embodiment of the present application.
Fig. 5 shows a flowchart of an audio/video transmission performance test performed in a scenario according to an embodiment of the present application.
Fig. 6 shows a diagram of bandwidth change between performing and not performing a test using a public network bandwidth in the scenario of fig. 5 using the embodiment of the present application.
Fig. 7 shows a diagram of bandwidth variation between performing and not performing a test using a public network bandwidth without using the embodiment of the present application in the scenario of fig. 5.
Fig. 8 shows a diagram of bandwidth change between performing and not performing a test using intranet bandwidth in the scenario of fig. 5 using the embodiment of the present application.
Fig. 9 shows a diagram of bandwidth variation between performing and not performing a test using intranet bandwidth under the scenario of fig. 5 without using the embodiment of the present application.
Fig. 10 shows a block diagram of an audio-video transmission performance testing apparatus according to an embodiment of the present application.
Fig. 11 shows a block diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
Fig. 1 schematically shows a flow chart of an audio-video transmission performance test method according to an embodiment of the present application. The execution main body of the audio and video transmission performance test method can be any test machine with audio and video transmission capability, such as a computer, a mobile phone, a television, a smart watch, household appliances and the like.
As shown in fig. 1, the audio/video transmission performance test method may include steps S110 to S140.
Step S110, obtaining the domain name corresponding to the relay server instance from the signaling service; step S120, inquiring target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally default and is preferentially used for resolving the network protocol address; step S130, if the target domain name resolution information is found, resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information; and step S140, establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
Referring to fig. 3 and fig. 4, the tester, the signaling service (e.g., signaling service cluster) and the relay server instance (TURN service instance) are located in the same intranet, and the tester, the signaling service (e.g., signaling service cluster) and the relay server instance (TURN service instance) may be located in the same cloud service room. A relay server instance (TURN service instance) is a virtual computing environment that may be comprised of a CPU, memory, system disk, and running operating system.
The testing machine can obtain the information such as the domain name and the account number corresponding to the available relay server instance from the signaling service. The testing machine is provided with a file (namely a local system file) which is used for resolving the network protocol address by default and is preferentially used for inquiring target domain name resolution information corresponding to the domain name from the local system file by default, wherein the target domain name resolution information refers to information comprising the intranet protocol address corresponding to the domain name.
In one embodiment of the present application, the local system file is specifically a Hosts file in the system, where the Hosts file is a system file without an extension, and an association "database" may be established in the system file between the domain name and its corresponding IP address (including an intranet protocol address (intranet IP address) in the present application). The domain name and its corresponding IP address (in this application, the intranet protocol address (intranet IP address)) may form the target domain name resolution information, and the intranet protocol address (intranet IP address) is the IP address corresponding to the relay server instance in the intranet. It will be appreciated that the local system file may also be other configuration files.
If the target domain name resolution information is found, the intranet protocol address corresponding to the domain name can be resolved based on the target domain name resolution information. In step 5 of fig. 4, the TURN connection can be established in the intranet according to the intranet protocol address (e.g., intranet IP of fig. 4) and the relay server instance, so as to avoid the tester from performing step 4 of fig. 3 to establish the TURN connection using the public network IP. Furthermore, the performance test can be performed on the relay service of the relay server instance through the intranet traffic, and the relay service is a program of audio and video transmission processing running on the relay server instance.
In this way, based on the step S110 to the step S140, the local default is preferably used for resolving the local system file of the network protocol address, after the tester obtains the domain name corresponding to the available relay server instance from the signaling service, the tester can query the target domain name resolution information corresponding to the domain name from the local system file, obtain the intranet address corresponding to the domain name through the target domain name resolution information resolution, establish intranet connection with the relay server instance through the intranet address, further, effectively avoid consuming public network traffic when performance test is performed, that is, intercept the public network address of the resolved domain name through the local system file, convert the public network traffic into intranet traffic on the premise of not changing the logic of the tested service itself, and effectively reduce the test cost of the audio/video transmission service performance of the relay service under the WebRTC architecture.
Further alternative embodiments of the steps performed when performing the audio/video transmission performance test under the embodiment of fig. 1 are described below.
In one embodiment, after the querying the target domain name resolution information corresponding to the domain name from the local system file, the method further includes: if the target domain name resolution information is not found, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
If the tester does not find the target domain name resolution information corresponding to the domain name from the local system file, the tester may further execute step 3 in fig. 4, and query the public network protocol address (such as the public network IP in fig. 4) corresponding to the domain name from the domain name system server (DNS server). And, as shown in step 4 of fig. 4, an intranet protocol address (e.g., intranet IP in fig. 4) corresponding to a public network protocol address (e.g., public network IP in fig. 4) is queried from an instance information query interface, such as the DescriibeInstances interface in fig. 4.
The instance information query interface may be provided by a cloud service provider, and the intranet protocol address in the instance information query interface is dynamically updated along with the generation of the relay server instance, that is, when a relay server instance is generated in the cloud service provider, the public network protocol address and the intranet protocol address corresponding to the generated relay server instance are synchronously updated to the instance information query interface.
Because some relay server examples have the capacity of automatic expansion and contraction, public network protocol addresses and intranet protocol addresses of new relay server examples generated by automatic expansion and contraction are also unpredictable in dynamic change, and intranet protocol addresses (such as intranet IP in fig. 4) corresponding to the public network protocol addresses (such as the public network IP in fig. 4) can be accurately queried through an example information query interface, so that the public network protocol addresses corresponding to the relay server examples are accurately converted into the intranet protocol addresses, namely, the intranet protocol addresses (such as the intranet IP in fig. 4) corresponding to the relay server examples are accurately queried.
According to the intranet protocol address and the domain name combination, target domain name resolution information can be generated and stored in a local system file, and the tester can inquire the target domain name resolution information from the local system file and resolve to obtain the intranet protocol address corresponding to the domain name.
In one embodiment, before the querying the target domain name resolution information corresponding to the domain name from the local system file, the method further includes: if the domain name is acquired, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file.
In the foregoing embodiment, if the testing machine does not find the target domain name resolution information corresponding to the domain name from the local system file, the local system file is updated by converting the public network protocol address into the internal network protocol address. In this embodiment, after the domain name corresponding to the relay server instance is obtained, the local system file is updated directly by converting the public network protocol address into the internal network protocol address without querying the local system file, and then the local (i.e. the testing machine) can query the target domain name resolution information from the local system file after updating the local system file.
Specifically, after obtaining a domain name corresponding to a relay server instance, the tester queries a public network protocol address corresponding to the domain name from a domain name system server, queries an intranet protocol address corresponding to the public network protocol address from an instance information query interface, generates target domain name resolution information according to intranet protocol address and domain name combination, and stores the target domain name resolution information in a local system file. When the target domain name resolution information is stored in the local system file, if the generated target domain name resolution information is inconsistent with the target domain name resolution information existing in the local system file or the target domain name resolution information corresponding to the domain name does not exist in the local system file, the target domain name resolution information can be updated and stored in the local system file.
Further, before the domain name is obtained and the public network protocol address corresponding to the domain name is queried from the domain name system server, the method may further include: acquiring the latest generation time of a relay server instance from the signaling service; and determining whether the target domain name resolution information corresponding to the domain name exists in the local system file according to the latest generation time.
The latest generation time of the relay server instance can be synchronously updated in the signaling service, and the testing machine obtains the latest generation time of the relay server instance from the signaling service. According to the latest generation time, if the difference between the latest generation time and the current time in the testing machine is smaller than a preset threshold value, accurate target domain name resolution information corresponding to the domain name exists in the local system file, and further, after the domain name is acquired, the target domain name resolution information corresponding to the domain name can be directly inquired from the local system file.
According to the latest generation time, if the difference between the latest generation time and the current time in the testing machine is greater than or equal to a preset threshold value, it can be determined that target domain name resolution information corresponding to the domain name may not exist in a local system file or the target domain name resolution information corresponding to the domain name may not be accurate, and further, after the domain name is acquired, if the domain name is acquired, a public network protocol address corresponding to the domain name is queried from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file to ensure that the accurate target domain name resolution information is successfully obtained from the local system file.
In one embodiment, before the querying the target domain name resolution information corresponding to the domain name from the local system file, the method further includes: displaying an analysis information setting interface according to the setting instruction; and according to the setting operation in the analysis information setting interface, the target domain name analysis information is recorded in the local system file.
The related user can trigger the setting instruction through the preset triggering operation, so that the testing machine responds to the setting instruction to display the analysis information setting interface, the related user can perform setting operation in the analysis information setting interface, open the local system file through the setting operation, and conveniently record target domain name analysis information comprising a domain name and a corresponding intranet protocol address according to requirements.
Further, before the setting operation in the setting interface according to the resolution information, the method may further include: inquiring attribute information of the relay server instance from the instance information inquiry interface; and if the attribute information comprises the capability of not having the capacity expansion and contraction automatically, opening an operation control corresponding to the setting operation in the analysis information setting interface.
The cloud service provider can synchronize the attribute information according to the generated relay server instance in the instance information query interface, the attribute information can indicate whether the relay server instance has the capacity automatic expansion and contraction capability, if the attribute information indicates that the relay server does not have the capacity automatic expansion and contraction capability, an operation control corresponding to the setting operation is opened in the analysis information setting interface, and the user can further allow the setting operation through the operation control.
And generating a relay server instance in the cloud service provider, and synchronously updating the public network protocol address and the intranet protocol address corresponding to the generated relay server instance to the instance information query interface. Because some relay server examples have the capacity of automatic expansion and contraction, the public network protocol address and the intranet protocol address of a new relay server example generated by automatic expansion and contraction are also unpredictable in dynamic change, and when the relay server does not have the capacity of automatic expansion and contraction, related users are allowed to manually perform setting operation through operation controls, so that inaccuracy of the queried intranet protocol address caused by inaccuracy of target domain name resolution information set by the users can be avoided.
In one embodiment, after the establishing a connection with the relay server instance according to the intranet protocol address to perform performance testing on a relay service of the relay server instance, the method further includes: continuously transmitting test audio and video data packets to the relay server instance; and recording transmission performance data of the relay service of the relay server instance for the received test audio and video data packet.
After the testing machine establishes intranet connection with the relay server instance according to the intranet protocol address corresponding to the relay server instance, the testing machine can continuously transmit the test audio and video data packet to the relay server instance by constructing a call, and record transmission performance data of the relay service of the relay server instance on the received test audio and video data packet, such as data packet total number, packet loss number, delay, jitter and the like.
The foregoing embodiments are further described below in connection with a procedure for performing WebRTC audio-video transmission service performance test in a scenario where performance test is performed by applying the embodiment of the audio-video transmission performance test method described in the present application.
Referring to fig. 5, in this scenario, the flow of WebRTC audio/video transmission service performance test may include steps S210 to S2180.
Step S210 to step S220, obtaining the domain name corresponding to the relay server instance from the signaling service. Specifically, in step S210, the testing script in the testing machine requests the signaling interface from the signaling service, and in step S220, the domain name corresponding to the available relay server instance returned by the signaling service is obtained.
After step S220, step S230 is entered to perform a Hosts file update procedure, which may include steps S240 to S2130.
Step 240 to step 250, query target domain name resolution information corresponding to the domain name from a local system file (Hosts file), where the target domain name resolution information refers to information including an intranet protocol address (intranet IP) corresponding to the domain name, and the local system file (Hosts file) is a file that is locally default by the testing machine and is preferentially used for resolving the network protocol address.
If the query result returned in step S250 is: if no query is made (i.e., no target domain name resolution information is found), then steps S260 through S2130 are performed, and step S2140 is followed to enter the TURN connection establishment procedure.
Steps S260 to S2130 may include: if the target domain name resolution information is not found, inquiring a public network protocol address (public network IP) corresponding to the domain name from a domain name system server (DNS server); inquiring the intranet protocol address (intranet IP) corresponding to the public network protocol address (public network IP) from an instance information inquiry interface (DescriibeInstances interface), wherein the intranet protocol address (intranet IP) is dynamically updated along with the generation of the relay server instance; generating target domain name resolution information according to the intranet protocol address (intranet IP) and the domain name; and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
Specifically, if the target domain name resolution information is not found, in step S260, the performance test script uses the domain name as a call-in script (Proxy script); in step S270 and step S280, the Proxy script queries a public network protocol address (public network IP) corresponding to the domain name from a domain name system server (DNS server). Further, in step S290 and step S2100, the Proxy script queries the instance information query interface (DescriibeInstances interface) for the intranet protocol address (intranet IP) corresponding to the public network protocol address (public network IP). In step S2100, the Proxy script generates target domain name resolution information according to the intranet protocol address (intranet IP) and the domain name, and stores the target domain name resolution information in a local system file. Step S2120 to step S2130, the performance test script knows that the execution was successful (i.e., the target domain name resolution information was successfully updated in the local system file (Hosts file)).
After executing step S2130, going to step S2140 and entering into the TURN connection establishment flow, the test script needs to execute steps S2150 to S2170, steps S2150 to S2160, and queries target domain name resolution information corresponding to the domain name from a local system file (Hosts file), and obtains the intranet protocol address (intranet IP) corresponding to the domain name based on the target domain name resolution information resolution, and then, executing step S2170 can establish TURN connection in the intranet through intranet IP and a relay server instance.
Further, if the query result returned in the step S250 is: if it is found (i.e., the target domain name resolution information is found), then the direct step S2140 goes to the TURN connection establishment procedure. At this time, the test script does not need to execute steps S2150 to S2160, that is, the query result returned in step S250 is: after the query (i.e. the target domain name resolution information is found), the test script can directly resolve and obtain the intranet protocol address (intranet IP) corresponding to the domain name based on the target domain name resolution information, so that step S2170 is directly performed, and TURN connection in the intranet is established through the intranet IP and the relay server instance.
After the TURN connection in the intranet is established with the relay server instance through the performance test script in the tester, performance testing may also be performed in step S2170. The performance test may be performed while continuously transmitting test audio and video data packets to the relay server instance. And in step S2180, recording the test result, that is, recording the transmission performance data of the relay service of the relay server instance for the received test audio/video data packet.
In this scenario, when performance testing is performed, 10 calls are kept with the relay server instance per second by the tester, each call bandwidth is 1.5Mbps, and a comparison test with a duration of 600 seconds is performed. From the following results, it can be confirmed that by adopting the method of the embodiment of the application to realize the test of the traffic from the public network to the internal network, the traffic of the public network generated by the performance test can be effectively reduced, and the test cost is reduced.
Taking a charging standard of a cloud service provider as an example for calculation, if a system that needs to support a call connection with 1000 bandwidths per second maintained at 1.5Mbps is tested, the required cost is:
taking a 24-hour stability test of a real-time audio and video cloud built based on a WebRTC framework as an example, each time of stability test, according to the scheme of the application, the cost can be saved by 11865.23 yuan in terms of flow cost, and the test cost is effectively reduced.
In this scenario, by applying the embodiment of the present application, by converting the public network IP of the relay server instance into the intranet IP address, and adding the method of the target domain name resolution information to the local Hosts file of the tester, the flow generated in the testing process is limited to the intranet flow, so as to greatly reduce the testing cost of the performance test.
In order to facilitate better implementation of the audio and video transmission performance testing method provided by the embodiment of the application, the embodiment of the application also provides an audio and video transmission performance testing device based on the audio and video transmission performance testing method. The meaning of the noun is the same as that in the above audio/video transmission performance test method, and specific implementation details can be referred to the description in the method embodiment. Fig. 10 shows a block diagram of an audio-video transmission performance testing apparatus according to an embodiment of the present application.
As shown in fig. 10, the audio/video transmission performance test apparatus 300 may include: the obtaining module 310 may be configured to obtain, from the signaling service, a domain name corresponding to the relay server instance; the query module 320 may be configured to query, from a local system file, target domain name resolution information corresponding to the domain name, where the target domain name resolution information refers to information including an intranet protocol address corresponding to the domain name, and the local system file is a file that is locally default and is preferentially used for resolving a network protocol address; the resolution module 330 may be configured to, if the target domain name resolution information is found, resolve the intranet protocol address corresponding to the domain name based on the target domain name resolution information; the test module 340 may be configured to establish a connection with the relay server instance according to the intranet protocol address, so as to perform a performance test on a relay service of the relay server instance.
In some embodiments of the present application, after the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the apparatus further includes a first file update module configured to: if the target domain name resolution information is not found, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the apparatus further includes a second file update module configured to: if the domain name is acquired, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the apparatus further includes a file setting module, configured to: displaying an analysis information setting interface according to the setting instruction; and according to the setting operation in the analysis information setting interface, the target domain name analysis information is recorded in the local system file.
In some embodiments of the present application, before the setting operation in the setting interface according to the resolution information, the local system file records the target domain name resolution information, the apparatus further includes an instance verification module, configured to: inquiring attribute information of the relay server instance from the instance information inquiry interface; and if the attribute information comprises the capability of not having the capacity expansion and contraction automatically, opening an operation control corresponding to the setting operation in the analysis information setting interface.
In some embodiments of the present application, before the querying, from a domain name system server, a public network protocol address corresponding to the domain name if the domain name is acquired, the apparatus further includes an update confirmation module, configured to: acquiring the latest generation time of a relay server instance from the signaling service; and determining whether the target domain name resolution information corresponding to the domain name exists in the local system file according to the latest generation time.
In some embodiments of the present application, after the connection is established with the relay server instance according to the intranet protocol address to perform performance testing on a relay service of the relay server instance, the apparatus further includes a recording module configured to: continuously transmitting test audio and video data packets to the relay server instance; and recording transmission performance data of the relay service of the relay server instance for the received test audio and video data packet.
It should be noted that although in the above detailed description several modules or units of a device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functions of two or more modules or units described above may be embodied in one module or unit, in accordance with embodiments of the present application. Conversely, the features and functions of one module or unit described above may be further divided into a plurality of modules or units to be embodied.
In addition, the embodiment of the application further provides an electronic device, which may be a testing machine, as shown in fig. 11, which shows a schematic structural diagram of the electronic device according to the embodiment of the application, specifically:
the electronic device may include one or more processing cores 'processors 401, one or more computer-readable storage media's memory 402, power supply 403, and input unit 404, among other components. Those skilled in the art will appreciate that the electronic device structure shown in fig. 11 is not limiting of the electronic device and may include more or fewer components than shown, or may combine certain components, or may be arranged in different components.
Wherein:
the processor 401 is a control center of the electronic device, connects various parts of the entire computer device using various interfaces and lines, and performs various functions of the computer device and processes data by running or executing software programs and/or modules stored in the memory 402, and calling data stored in the memory 402, thereby performing overall monitoring of the electronic device. Optionally, processor 401 may include one or more processing cores; preferably, the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user page, an application program, etc., and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401.
The memory 402 may be used to store software programs and modules, and the processor 401 executes various functional applications and data processing by executing the software programs and modules stored in the memory 402. The memory 402 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device, etc. In addition, memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
The electronic device further comprises a power supply 403 for supplying power to the various components, preferably the power supply 403 may be logically connected to the processor 401 by a power management system, so that functions of managing charging, discharging, and power consumption are performed by the power management system. The power supply 403 may also include one or more of any of a direct current or alternating current power supply, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
The electronic device may further comprise an input unit 404, which input unit 404 may be used for receiving input digital or character information and generating keyboard, mouse, joystick, optical or trackball signal inputs in connection with user settings and function control.
Although not shown, the electronic device may further include a display unit or the like, which is not described herein. In particular, in this embodiment, the processor 401 in the electronic device loads executable files corresponding to the processes of one or more computer programs into the memory 402 according to the following instructions, and the processor 401 executes the computer programs stored in the memory 402, so as to implement the functions in the foregoing embodiments of the present application, where the processor 401 may perform the following steps:
acquiring a domain name corresponding to a relay server instance from a signaling service; inquiring target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address; if the target domain name resolution information is found, resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information; and establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
In some embodiments of the present application, after the querying the target domain name resolution information corresponding to the domain name from the local system file, the method further includes: if the target domain name resolution information is not found, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the method further includes: if the domain name is acquired, inquiring a public network protocol address corresponding to the domain name from a domain name system server; inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance; generating the target domain name resolution information according to the intranet protocol address and the domain name; and storing the target domain name resolution information in the local system file.
In some embodiments of the present application, before the querying, from the local system file, the target domain name resolution information corresponding to the domain name, the method further includes: displaying an analysis information setting interface according to the setting instruction; and according to the setting operation in the analysis information setting interface, the target domain name analysis information is recorded in the local system file.
In some embodiments of the present application, before the setting operation in the setting interface according to the resolution information, the method further includes: inquiring attribute information of the relay server instance from the instance information inquiry interface; and if the attribute information comprises the capability of not having the capacity expansion and contraction automatically, opening an operation control corresponding to the setting operation in the analysis information setting interface.
In some embodiments of the present application, before the querying, from a domain name system server, a public network protocol address corresponding to the domain name if the domain name is acquired, the method further includes: acquiring the latest generation time of a relay server instance from the signaling service; and determining whether the target domain name resolution information corresponding to the domain name exists in the local system file according to the latest generation time.
In some embodiments of the present application, after the establishing a connection with the relay server instance according to the intranet protocol address to perform a performance test on a relay service of the relay server instance, the method further includes: continuously transmitting test audio and video data packets to the relay server instance; and recording transmission performance data of the relay service of the relay server instance for the received test audio and video data packet.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, the present embodiments also provide a storage medium having stored therein a computer program that can be loaded by a processor to perform the steps of any of the methods provided by the embodiments of the present application.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Since the computer program stored in the storage medium may perform any of the steps in the method provided in the embodiment of the present application, the beneficial effects that can be achieved by the method provided in the embodiment of the present application may be achieved, which are detailed in the previous embodiments and are not described herein.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the application following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the application pertains.
It will be understood that the present application is not limited to the embodiments that have been described above and shown in the drawings, but that various modifications and changes can be made without departing from the scope thereof.

Claims (10)

1. The audio and video transmission performance testing method is characterized by comprising the following steps of:
acquiring a domain name corresponding to a relay server instance from a signaling service;
inquiring target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address;
If the target domain name resolution information is found, resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information;
and establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
2. The method of claim 1, wherein after querying the local system file for the target domain name resolution information corresponding to the domain name, the method further comprises:
if the target domain name resolution information is not found, inquiring a public network protocol address corresponding to the domain name from a domain name system server;
inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance;
generating the target domain name resolution information according to the intranet protocol address and the domain name;
and storing the target domain name resolution information in the local system file so that the target domain name resolution information is queried locally from the local system file.
3. The method of claim 1, wherein prior to querying the target domain name resolution information corresponding to the domain name from the local system file, the method further comprises:
If the domain name is acquired, inquiring a public network protocol address corresponding to the domain name from a domain name system server;
inquiring the intranet protocol address corresponding to the public network protocol address from an instance information inquiry interface, wherein the intranet protocol address is dynamically updated along with the generation of the relay server instance;
generating the target domain name resolution information according to the intranet protocol address and the domain name;
and storing the target domain name resolution information in the local system file.
4. The method of claim 1, wherein prior to querying the target domain name resolution information corresponding to the domain name from the local system file, the method further comprises:
displaying an analysis information setting interface according to the setting instruction;
and according to the setting operation in the analysis information setting interface, the target domain name analysis information is recorded in the local system file.
5. The method according to claim 4, wherein before the setting operation in the setting interface according to the resolution information, the target domain name resolution information is recorded in the local system file, the method further comprises:
inquiring attribute information of the relay server instance from the instance information inquiry interface;
And if the attribute information comprises the capability of not having the capacity expansion and contraction automatically, opening an operation control corresponding to the setting operation in the analysis information setting interface.
6. A method according to claim 3, wherein before said querying, from a domain name system server, a public network protocol address corresponding to the domain name if the domain name is obtained, the method further comprises:
acquiring the latest generation time of a relay server instance from the signaling service;
and determining whether the target domain name resolution information corresponding to the domain name exists in the local system file according to the latest generation time.
7. The method according to any one of claims 1 to 6, wherein after said establishing a connection with said relay server instance according to said intranet protocol address for performance testing of a relay service of said relay server instance, said method further comprises:
continuously transmitting test audio and video data packets to the relay server instance;
and recording transmission performance data of the relay service of the relay server instance for the received test audio and video data packet.
8. An audio/video transmission performance test device, comprising:
The acquisition module is used for acquiring the domain name corresponding to the relay server instance from the signaling service;
the query module is used for querying target domain name resolution information corresponding to the domain name from a local system file, wherein the target domain name resolution information refers to information comprising an intranet protocol address corresponding to the domain name, and the local system file is a file which is locally defaulted and is preferentially used for resolving the network protocol address;
the resolution module is used for resolving the intranet protocol address corresponding to the domain name based on the target domain name resolution information if the target domain name resolution information is found;
and the test module is used for establishing connection with the relay server instance according to the intranet protocol address so as to perform performance test on the relay service of the relay server instance.
9. A storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the method of any of claims 1 to 7.
10. An electronic device, comprising: a memory storing a computer program; a processor reading a computer program stored in a memory to perform the method of any one of claims 1 to 7.
CN202310771248.7A 2023-06-28 2023-06-28 Audio and video transmission performance testing method and device, storage medium and electronic equipment Pending CN117411799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310771248.7A CN117411799A (en) 2023-06-28 2023-06-28 Audio and video transmission performance testing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310771248.7A CN117411799A (en) 2023-06-28 2023-06-28 Audio and video transmission performance testing method and device, storage medium and electronic equipment

Publications (1)

Publication Number Publication Date
CN117411799A true CN117411799A (en) 2024-01-16

Family

ID=89485921

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310771248.7A Pending CN117411799A (en) 2023-06-28 2023-06-28 Audio and video transmission performance testing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN117411799A (en)

Similar Documents

Publication Publication Date Title
CN102984286B (en) Method and device and system of domain name server (DNS) for buffering updating
CN106302434B (en) Server adaptation method, device and system
CN110166526B (en) Multi-CDN access management method and device, computer equipment and storage medium
CN111193773B (en) Load balancing method, device, equipment and storage medium
WO2013104172A1 (en) Method for realizing load balancing, dns server, and client
CN112513830A (en) Back-source method and related device in content distribution network
WO2020088170A1 (en) Domain name system configuration method and related apparatus
CN102368789A (en) Method and system for connecting dual-stack terminal to network
CN109067936A (en) A kind of method and device of domain name mapping
CN110830565A (en) Resource downloading method, device, system, electronic equipment and storage medium
JP2019016042A (en) Data acquisition program, device, and method
CN110730196A (en) Network resource access method, computer equipment and storage medium
CN112434053B (en) Method, device, equipment and storage medium for calculating live broadcast heat
WO2022242361A1 (en) Data download method and apparatus, computer device and storage medium
TWI356301B (en) Memory management system and method for open platf
CN110764688A (en) Method and device for processing data
CN111064821A (en) Method and device for determining IP address of edge node
CN112749015B (en) Load balancing method and device
WO2024066503A1 (en) Service invocation method and apparatus
CN117411799A (en) Audio and video transmission performance testing method and device, storage medium and electronic equipment
CN112702446A (en) Distributed storage system with DNS (domain name system) cached in edge network
CN111130948A (en) Network quality detection method and device
CN114785753B (en) Domain name resolution method, system, medium and electronic equipment of container cloud platform
CN114553771B (en) Method for virtual router loading and related equipment
CN114356456B (en) Service processing method, device, storage medium and electronic equipment

Legal Events

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