CN111245914B - Analog communication method and device of terminal equipment and storage medium - Google Patents

Analog communication method and device of terminal equipment and storage medium Download PDF

Info

Publication number
CN111245914B
CN111245914B CN202010011507.2A CN202010011507A CN111245914B CN 111245914 B CN111245914 B CN 111245914B CN 202010011507 A CN202010011507 A CN 202010011507A CN 111245914 B CN111245914 B CN 111245914B
Authority
CN
China
Prior art keywords
address
virtual address
proxy server
server
communication data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010011507.2A
Other languages
Chinese (zh)
Other versions
CN111245914A (en
Inventor
朱东宝
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Xiaomi Pinecone Electronic Co Ltd
Original Assignee
Beijing Xiaomi Pinecone Electronic 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 Beijing Xiaomi Pinecone Electronic Co Ltd filed Critical Beijing Xiaomi Pinecone Electronic Co Ltd
Priority to CN202010011507.2A priority Critical patent/CN111245914B/en
Publication of CN111245914A publication Critical patent/CN111245914A/en
Application granted granted Critical
Publication of CN111245914B publication Critical patent/CN111245914B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering

Abstract

The disclosure relates to an analog communication method and device of a terminal device and a storage medium. The method applied to the proxy server comprises the following steps: receiving simulation configuration information sent by a test server; configuring a virtual address of the proxy server according to the simulation configuration information, wherein the virtual address is an address determined according to a target geographical position to be simulated by the proxy server; and when the routing equipment connected with the terminal equipment communicates with the target server requested by the terminal equipment, forwarding communication data between the routing equipment and the target server by using the virtual address. Through the technical scheme of the embodiment of the disclosure, the virtual address of the proxy server is configured to simulate the communication condition of the terminal device in other geographic positions, so that the communication state of the terminal device in different geographic positions can be conveniently detected.

Description

Analog communication method and device of terminal equipment and storage medium
Technical Field
The present disclosure relates to electronic communication technologies, and in particular, to a method and an apparatus for simulating communication of a terminal device, and a storage medium.
Background
With the development of internet communication, various terminal devices can realize communication with the cloud, so that functions such as remote control and the like are realized. In the process of communication, the terminal device often needs to forward data through a server at the geographic position where the terminal device is located, so as to realize communication of the terminal device in the internet. Under different use scenes and geographic positions, various problems may exist in communication of the terminal device, so that poor experience of the terminal device in use is caused.
Disclosure of Invention
The disclosure provides an analog communication method and device of a terminal device and a storage medium.
According to a first aspect of the embodiments of the present disclosure, there is provided a method for simulating communication of a terminal device, where the method is applied to a proxy server, and includes:
receiving simulation configuration information sent by a test server;
configuring a virtual address of the proxy server according to the simulation configuration information, wherein the virtual address is an address determined according to a target geographical position to be simulated by the proxy server;
and when the routing equipment connected with the terminal equipment communicates with the target server requested by the terminal equipment, forwarding communication data between the routing equipment and the target server by using the virtual address.
In some embodiments, said forwarding communication data between said routing device and said target server with said virtual address comprises:
receiving first communication data sent by the routing equipment by taking the virtual address as a destination address;
and sending the first communication data to a target server of the terminal equipment by taking the virtual address as a source address.
In some embodiments, the sending the first communication data to the destination server of the terminal device with the virtual address as a source address includes:
determining a target address of a target server of the terminal equipment according to the first communication data;
and sending the first communication data to the target server by taking the virtual address as a source address and the target address as a destination address.
In some embodiments, said forwarding communication data between said routing device and said target server with said virtual address comprises:
receiving second communication data sent by the target server by taking the virtual address as a destination address;
and sending the second communication data to the routing equipment by taking the virtual address as a source address.
According to a second aspect of the embodiments of the present disclosure, there is provided an analog communication method of a terminal device, the method being applied to a routing device, including:
acquiring simulation configuration information sent by a test server, wherein the simulation configuration information comprises: the virtual address of the proxy server is determined according to the target geographical position to be simulated by the proxy server;
and forwarding communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server.
In some embodiments, the method further comprises:
configuring the virtual address and a flow forwarding rule according to the simulation configuration information;
the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server includes:
and forwarding the communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server according to the flow forwarding rule.
In some embodiments, the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server includes:
receiving first communication data sent by the terminal equipment;
and sending the first communication data to the proxy server by taking the virtual address as a destination address.
In some embodiments, the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server includes:
receiving second communication data sent by the proxy server by taking the virtual address as a source address;
and sending the second communication data to the terminal equipment.
In some embodiments, the obtaining the virtual address of the proxy server sent by the test server includes:
acquiring a simulation test instruction;
sending an address acquisition request to the test server according to the simulation test instruction;
and receiving the virtual address of the proxy server returned by the test server according to the address acquisition request.
In some embodiments, the obtaining simulation test instructions comprises:
receiving the simulation test instruction sent by any electronic equipment connected with the routing equipment; or the like, or a combination thereof,
and acquiring the simulation test instruction generated by the routing equipment according to preset detection time.
According to a third aspect of the embodiments of the present disclosure, there is provided a method for simulating communication of a terminal device, where the method is applied to a test server, and includes:
acquiring a target geographical position to be simulated;
determining simulation configuration information of a configuration proxy server according to the target geographic position;
sending the simulation configuration information to the proxy server, and configuring a virtual address of the proxy server;
and sending the virtual address to a routing device connected with the terminal device.
In some embodiments, the sending the virtual address to a routing device connected to the terminal device includes:
receiving an address acquisition request sent by the routing equipment;
and sending the virtual address to the router according to the address acquisition request.
According to a fourth aspect of the embodiments of the present disclosure, there is provided an analog communication apparatus of a terminal device, the apparatus being applied to a proxy server, including:
the first receiving module is used for receiving the simulation configuration information sent by the test server;
the first determining module is used for configuring a virtual address of the proxy server according to the simulation configuration information, wherein the virtual address is an address determined according to a target geographical position to be simulated by the proxy server;
and the first forwarding module is used for forwarding communication data between the routing equipment and a target server requested by the terminal equipment by using the virtual address when the routing equipment connected with the terminal equipment communicates with the target server.
In some embodiments, the first forwarding module comprises:
the first receiving submodule is used for receiving first communication data sent by the routing equipment by taking the virtual address as a destination address;
and the first sending submodule is used for sending the first communication data to a target server of the terminal equipment by taking the virtual address as a source address.
In some embodiments, the first sending submodule includes:
the first determining submodule is used for determining a target address of a target server of the terminal equipment according to the first communication data;
and the second sending submodule is used for sending the first communication data to the target server by taking the virtual address as a source address and the target address as a destination address.
In some embodiments, the first forwarding module comprises:
the second receiving submodule is used for receiving second communication data sent by the target server by taking the virtual address as a destination address;
and the third sending submodule is used for sending the second communication data to the routing equipment by taking the virtual address as a source address.
According to a fifth aspect of the embodiments of the present disclosure, there is provided an analog communication apparatus of a terminal device, the apparatus being applied to a routing device, including:
a first obtaining module, configured to obtain simulation configuration information sent by a test server, where the simulation configuration information includes: the virtual address of the proxy server is determined according to the target geographic position to be simulated by the proxy server;
and the second forwarding module is used for forwarding communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server.
In some embodiments, the apparatus further comprises:
the first configuration module is used for configuring the virtual address and the flow forwarding rule according to the simulation configuration information;
the second forwarding module is specifically configured to:
and forwarding the communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server according to the flow forwarding rule.
In some embodiments, the second forwarding module comprises:
the third receiving submodule is used for receiving the first communication data sent by the terminal equipment;
and the fourth sending submodule is used for sending the first communication data to the proxy server by taking the virtual address as a destination address.
In some embodiments, the second forwarding module comprises:
the fourth receiving submodule is used for receiving second communication data sent by the proxy server by taking the virtual address as a source address;
and the fifth sending submodule is used for sending the second communication data to the terminal equipment.
In some embodiments, the first obtaining module comprises:
the first acquisition sub-module is used for acquiring a simulation test instruction;
a sixth sending submodule, configured to send an address obtaining request to the test server according to the simulation test instruction;
and the fifth receiving submodule is used for receiving the virtual address of the proxy server returned by the test server according to the address acquisition request.
In some embodiments, the first obtaining sub-module includes:
the sixth receiving submodule is used for receiving the simulation test instruction sent by any electronic device connected with the routing device; or the like, or a combination thereof,
and the second obtaining submodule is used for obtaining the simulation test instruction generated by the routing equipment according to preset detection time.
According to a sixth aspect of the embodiments of the present disclosure, there is provided an analog communication apparatus of a terminal device, the apparatus being applied to a test server, including:
the second acquisition module is used for acquiring the geographical position of the target to be simulated;
the second determining module is used for determining the simulation configuration information of the configuration proxy server according to the target geographic position;
the second configuration module is used for sending the simulation configuration information to the proxy server and configuring the virtual address of the proxy server;
and the sending module is used for sending the virtual address to the routing equipment connected with the terminal equipment.
In some embodiments, the sending module includes:
a seventh receiving submodule, configured to receive an address obtaining request sent by the routing device;
and the seventh sending submodule is used for sending the virtual address to the router according to the address obtaining request.
According to a seventh aspect of the embodiments of the present disclosure, there is provided an analog communication apparatus of a terminal device, the apparatus at least including: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, and the executable instructions perform the steps in the analog communication method of any terminal device.
According to an eighth aspect of embodiments of the present disclosure, there is provided a non-transitory computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, the computer-executable instructions implement the steps in the analog communication method of a terminal device provided in any one of the foregoing embodiments.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects: and simulating the target geographic position of the proxy server by configuring the virtual address of the proxy server. And then, a simulation test is initiated through the routing equipment, and the communication data of the terminal equipment is forwarded through the proxy server, so that the communication condition of the terminal equipment at the target geographic position is simulated, the condition that the communication condition is inconsistent with the communication condition in actual use due to the fact that the communication test is carried out at the actual geographic position when the terminal equipment leaves a factory is reduced, and the actual communication performance of the terminal equipment is conveniently and comprehensively and accurately tested.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a first flowchart illustrating a method of analog communication of a terminal device according to an exemplary embodiment;
fig. 2 is a flowchart ii illustrating an analog communication method of a terminal device according to an exemplary embodiment;
fig. 3 is a flowchart three illustrating an analog communication method of a terminal device according to an exemplary embodiment;
FIG. 4 is a fourth flowchart illustrating a method of simulated communication for a terminal device in accordance with an exemplary embodiment;
FIG. 5 is a block diagram illustrating a first configuration of an analog communication device of a terminal device in accordance with an exemplary embodiment;
fig. 6 is a block diagram of a second exemplary embodiment of an analog communication device of a terminal device;
fig. 7 is a block diagram of a third configuration of an analog communication apparatus of a terminal device according to an exemplary embodiment;
fig. 8 is a block diagram illustrating a physical structure of an analog communication device of a terminal apparatus according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. The following description refers to the accompanying drawings in which the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the invention, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a method for simulating communication of a terminal device, which is applied to a proxy server, according to an exemplary embodiment, and is shown in fig. 1, including the following steps:
step S101, receiving simulation configuration information sent by a test server;
step S102, configuring a virtual address of a proxy server according to simulation configuration information, wherein the virtual address is an address determined according to a target geographical position to be simulated by the proxy server;
and step S103, when the routing equipment connected with the terminal equipment communicates with the target server requested by the terminal equipment, forwarding communication data between the routing equipment and the target server by using the virtual address.
The proxy server is a server for simulating other geographical positions, and the functions of the proxy server can be realized by using a server device of an entity or simulation software configured on a routing device or other devices.
The testing server is used for configuring the proxy server, after the proxy server receives the simulation configuration information of the testing server, the virtual address can be determined according to the simulation configuration information, and the geographic position marked in the virtual address is the target geographic position to be simulated. The target geographic location is different from the actual geographic location of the proxy server. Because different geographical locations may use different network protocol standards, etc., when the proxy server establishes a connection with the routing device at an actual geographical location, and when the proxy server establishes a connection with the routing device at a virtual target geographical location, the communication environment of the terminal device may be different, and the transmission parameters of the communication data may also be different.
The geographic location and the communication address used for communication have a corresponding relationship, for example, different geographic locations are mapped with different communication addresses, and in this case, the target geographic location is different from the communication address mapped by the actual geographic location of the proxy server. In view of this, the virtual address obtained by the proxy server is a communication address having a corresponding relationship with the target geographic location, and the communication address includes, but is not limited to, an IP address.
That is, the virtual address may be configured for the proxy server by the test server regardless of the actual geographic location of the proxy server. The virtual address may include a communication address, such as an IP address, used by the terminal device to communicate. The virtual address includes location information of a simulated target geographic location, for example: country code, area code, etc. The above-mentioned country code, area code, etc. representing the location information may be located in different fields of the virtual address. For example, the information contained in the field a of the virtual address is country information, and the information contained in the field b is regional information of the country, and so on. Different countries or regions may correspond to different communication environments, use different network protocol standards, etc. In the field containing the location information in the virtual address, different country codes or area codes point to different geographical locations such as different countries or areas. Therefore, when the terminal device needs to perform data communication, the routing device can identify the target geographic location according to the relevant field in the virtual address, and configure a corresponding data forwarding policy.
Therefore, if the communication performance of the terminal device at different geographic positions needs to be tested, the geographic position of the proxy server connected with the terminal device can be simulated in advance, and then the data communication of the terminal device at the target geographic position is simulated, so that the communication performance of the terminal device at different geographic positions can be tested. For example, the geographic locations of the terminal device and the proxy server are both within country a, while the terminal device is ready for sale to country B. And country B uses a different network protocol standard from country a, and therefore, the terminal device has a difference in network environment between when performing data communication in country a and when performing data communication in country B.
Assuming that country a and country C use the same network protocol standard, if the terminal device needs to access the target server in country C, forwarding by other servers may not be needed, but the target server may be directly accessed. And if the terminal equipment is in the B country, forwarding is required to be carried out through a proxy server of the B country. Therefore, before shipping, the communication condition of the terminal device in the country B can be simulated by configuring the virtual address of the proxy server as the address located in the country B and then forwarding the data between the terminal device and the proxy server through the routing device. And setting a target server which the terminal equipment needs to access to in country C, forwarding data sent by the terminal equipment to the proxy server through the routing equipment, and forwarding the data to the target server through the proxy server.
Through the steps, the virtual address of the proxy server can be configured by the test server, and the simulation of different geographic positions of the terminal equipment is realized, so that the communication performance of the terminal equipment is tested under different simulated geographic position conditions, and the difference of the communication performance of the terminal equipment caused by the difference between the test environment and the environment in actual use is reduced.
In some embodiments, the forwarding, by the virtual address, communication data between the routing device and the target server includes:
receiving first communication data sent by the routing equipment by taking the virtual address as a destination address; and/or the presence of a gas in the gas,
and sending the first communication data to a target server of the terminal equipment by taking the virtual address as a source address.
Here, the first communication data refers to communication data that is sent by the terminal device, sent to the proxy server via the routing device, and forwarded to the destination server by the proxy server.
When the simulated communication test of the terminal device is performed, the routing device will forward the first communication data sent by the terminal device to the proxy server, that is, the virtual address of the proxy server will be used as the destination address of the forwarding data of the routing device, and receive the first communication data sent by the routing device.
When the proxy server receives the first communication data sent by the routing device, the address of the target server of the first communication data can be determined through the address information carried in the first communication data. And then forwarding the first communication data to the target server by taking the virtual address of the proxy server as a source address and the address of the target server as a destination address.
Therefore, the simulated communication process of forwarding the first communication data sent by the terminal device to the target server under the communication environment of the simulated geographical position is realized.
In some embodiments, the sending the first communication data to the destination server of the terminal device with the virtual address as the source address includes:
determining a target address of a target server of the terminal equipment according to the first communication data;
and sending the first communication data to the target server by taking the virtual address as a source address and the target address as a destination address.
The first communication data is data transmitted by the terminal device to the target server, and the first communication data includes address information of the target server. Therefore, when the proxy server forwards the first communication data, the destination address of the destination server needs to be determined according to the address information in the first communication data. The first communication data is then sent from the virtual address of the proxy server to the target address of the target server. That is, in this process of transmitting data, the virtual address serves as the source address of the communication, and the destination address of the destination server serves as the destination address of the communication.
For example, region a and region B use different network communication protocols. When the terminal equipment is in the area A, if the target server of the area A is to be accessed, the terminal equipment can be directly accessed without forwarding other servers. When the terminal device is in the B area, the data transfer needs to be performed through the proxy server in the B area, and the target server in the a area can be accessed. Therefore, the virtual address carrying the information of the area B is used as the address of the proxy server, and the virtual address is used as the source address or the destination address when the routing equipment performs data forwarding, so that the simulation of the communication process of the terminal equipment accessing the target server of the area A when the terminal equipment is in the area B is realized.
Therefore, the process that when the terminal device carries out data communication at the target geographic position, the local proxy server of the target geographic position forwards the data to the target server can be simulated. The simulation detection of the actual communication process is facilitated.
In some embodiments, forwarding the communication data between the routing device and the destination server by using the virtual address includes:
receiving second communication data sent by the target server by taking the virtual address as a destination address; and/or the presence of a gas in the atmosphere,
and sending the second communication data to the routing equipment by taking the virtual address as a source address.
For communication data sent by a remote target server to a terminal device, under a target geographic position, a local proxy server of the target geographic position is required to forward the communication data from the remote target server to a routing device connected with the terminal device. Therefore, the proxy server simulates the target geographic position, and forwards the communication data sent to the terminal device by the target server by using the virtual address, thereby simulating the process of receiving the data by the terminal device. The data receiving capacity of the terminal equipment is simulated and tested by analyzing the data receiving process of the terminal equipment. For example, in a network environment where a geographical location is simulated, requirements such as a communication test and a communication abnormality analysis under a limited network parameter when data communication is performed on a terminal device are satisfied.
Fig. 2 is a flowchart illustrating an analog communication method of a terminal device, which is applied to a routing device, according to an exemplary embodiment, and includes the following steps, as shown in fig. 2:
step S201, acquiring simulation configuration information sent by a test server, where the simulation configuration information includes: the virtual address of the proxy server is determined according to the target geographic position to be simulated by the proxy server;
and S202, forwarding communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server.
The routing equipment is connected with the terminal equipment, provides routing service for the terminal equipment and enables the terminal equipment to carry out normal data communication in the Internet. When a communication process of simulating the target geographic position is needed, simulation configuration information of the proxy server can be obtained from the test server. The simulation configuration information contains the virtual address of the proxy server, and in the communication process, the physical terminal device receives and transmits the address of the target server of the communication data. The routing equipment only carries out data forwarding between the virtual address of the proxy server and the address of the terminal equipment. Therefore, the communication process that the local proxy server forwards data when the terminal equipment communicates at the target geographic position is simulated.
In some embodiments, the method further comprises:
configuring a virtual address and a flow forwarding rule according to the simulation configuration information;
the forwarding of communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server includes:
and forwarding the communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server according to the flow forwarding rule.
After the routing device obtains the simulation configuration information, it needs to configure a virtual address as a destination address when forwarding data sent by the terminal device, and sets a traffic forwarding rule. The traffic forwarding rule includes parameters such as bandwidth and speed allocated when the traffic is forwarded, and a rule for processing and forwarding the communication data after the communication data is received.
After the configuration is completed, the routing device can be used as an intermediate node between the terminal device and the proxy server, and forwards data between the terminal device and the proxy server according to the traffic forwarding rule.
In some embodiments, the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server includes:
receiving first communication data sent by terminal equipment;
and sending the first communication data to the proxy server by taking the virtual address as a destination address.
And in the process of forwarding data by the routing equipment, when first communication data sent by the terminal equipment is received, the virtual address of the proxy server is used as a destination address, and the first communication data is sent to the proxy server.
No matter the final destination address of the first communication data, the first communication data are forwarded to the proxy server through the routing device, and then forwarded to the target server by the proxy server. In this way, it is possible to simulate a communication process in which the terminal device transmits the first communication data to the remote target server, thereby facilitating detection of a communication state of the communication process, data transceiving capability of the terminal device, and the like.
In some embodiments, the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server includes:
receiving second communication data sent by the proxy server by using the virtual address as a source address;
the second communication data is transmitted to the terminal device.
When a target server communicating with the terminal device sends the second communication data to the terminal device, the second communication data is forwarded to the proxy server. And the proxy server sends the second communication data to the routing equipment. Therefore, the virtual address of the proxy server is used as the source address and the address of the routing device is used as the destination address in the communication process.
And after receiving the second communication data sent by the proxy server, the routing equipment sends the second communication data to the terminal equipment. Thus, the simulated communication process of the terminal device receiving the second communication data sent by the target server is completed.
In some embodiments, the obtaining the virtual address of the proxy server sent by the test server includes:
acquiring a simulation test instruction;
sending an address acquisition request to a test server according to the simulation test instruction;
and receiving the virtual address of the proxy server returned by the test server according to the address acquisition request.
The simulation test instruction is used for triggering the routing equipment to initiatively initiate a request, and acquiring simulation configuration information and the like provided by the test server. When the simulation communication test of the geographic position needs to be carried out, an address acquisition request is actively sent to acquire the address of the proxy server, and then the simulation test communication is carried out.
The simulated test instructions may be provided by other devices connected to the routing device, such as a test terminal of a tester. Or, the related information of the simulation test instruction may be preset on the routing device directly, and the simulation test instruction may be triggered and obtained by setting time, period, event, or the like.
Because the routing equipment can be connected with a plurality of terminals, the mode of acquiring the simulation test instruction through the routing equipment supports respective operation of a plurality of persons, and the control of one test terminal by one tester is not limited. Moreover, if the relevant information of the simulation test instruction is preset on the routing equipment, the test is automatically triggered according to the triggering condition without repeated setting or manual triggering. Therefore, by the method, the testing efficiency can be effectively improved, and the application scene of the test is enlarged.
In some embodiments, the obtaining the simulation test instruction includes:
receiving a simulation test instruction sent by any electronic equipment connected with the routing equipment; or the like, or a combination thereof,
and acquiring a simulation test instruction generated by the routing equipment according to preset detection time.
Here, any of the electronic devices may be various devices connected to the routing device, including: a computer, a cell phone, a server, or other type of device. Through the electronic devices, a simulation test instruction can be sent to the routing device, and the routing device is triggered to actively send an address acquisition request. The method is not limited by a test terminal corresponding to one tester, and can realize respective tests of multiple persons.
Alternatively, the routing device may preset relevant policies for testing, at specified testing time or other penalty conditions, such as: for example: the method has the advantages that the routing equipment is triggered to automatically generate the simulation test instruction under the trigger conditions that the idle time of the routing equipment is larger than the preset threshold value or new terminal equipment is accessed into the routing equipment, and the like, so that manual operation is not needed, testers and test time are not limited, and the test can be carried out at any time.
Fig. 3 is a flowchart illustrating a method for simulating communication of a terminal device, which is applied to a test server, according to an exemplary embodiment, and as shown in fig. 3, the method includes the following steps:
s301, acquiring a target geographical position to be simulated;
step S302, determining simulation configuration information of a configuration proxy server according to the target geographic position;
step S303, sending simulation configuration information to the proxy server, and configuring a virtual address of the proxy server;
and step S304, sending the virtual address to the routing equipment connected with the terminal equipment.
The test server provides relevant configuration of the test for the proxy server and the routing equipment, and the logic code of the test and the simulated target geographical position required by the test can be deployed on the test server. The test server acquires a simulated target geographical position set according to actual test requirements, and then determines simulated configuration information for configuring the proxy server according to the target geographical position.
For different test requirements, different simulation configuration information can be determined according to different target geographic positions, and then different virtual addresses are configured for the proxy server. And sending the configured simulation configuration information corresponding to the proxy server to the routing equipment so that the routing equipment performs related configuration of traffic forwarding.
Therefore, related information or logic codes of the simulation test do not need to be deployed on routing equipment with poor safety and processing capacity, and terminal equipment limited to testing personnel is not needed. Therefore, the maintenance and the updating of the test related information are convenient, and the operation is convenient.
In some embodiments, the sending the virtual address to the routing device connected to the terminal device includes:
receiving an address acquisition request sent by routing equipment;
and sending the virtual address to the router according to the address acquisition request.
When the simulation test is needed, the routing device actively sends an address acquisition request from the test server to acquire the configured virtual address of the proxy server. When the routing equipment confirms that the test can be carried out, the simulation test is initiated at any time, and the operation and the control are convenient. In addition, the routing equipment can be connected with a plurality of different terminal equipment, so that the plurality of terminal equipment can respectively control the routing equipment to initiate the simulation test. Through the cooperation of the test server and the routing equipment, a convenient and safe simulation test environment is provided.
Embodiments of the present disclosure also provide the following examples:
the method can be applied to the simulation test of terminal equipment such as Internet of things equipment. For example, the terminal device is an internet of things device sold in country a, and the current geographic location of the internet of things device is country B. At this time, the internet of things device transmits data to the server in country B, so that it cannot be determined whether the internet of things device requests the server in country B or selects different servers according to the country and region automatically. Therefore, by using the method of the embodiment of the disclosure, no matter where the geographical position of the internet of things device is, the internet of things device can be regarded as being in country a, and then the communication process of the internet of things device is detected.
In some embodiments, a test terminal of a tester has a wireless communication function, and a hotspot is opened to connect the internet of things devices. And finally, communication data of the equipment of the Internet of things is forwarded to the proxy server on the test terminal of a tester, and the flow of the equipment of the Internet of things is forwarded to a remote target server by the proxy server.
The above method can only forward data within the time when the test terminal of the tester is turned on, and the test terminal of the tester has the configuration requirement. And the operation and test operation is limited by the test terminal of the tester, so that the mode inversion test of different terminal equipment at any time is difficult to realize.
Therefore, by means of the method in the embodiment of the disclosure, testing terminals of testers are not required, and simulation testing of the internet of things equipment by multiple people and multiple terminals can be supported.
Firstly, an address of a geographical position which is required to be used by the terminal equipment is configured to be used as a virtual address, and the proxy server is configured by the virtual address. The terminal equipment is networked through the routing equipment, the routing equipment acquires simulation configuration information from the test cloud, and the configuration comprises a proxy server address, a terminal equipment flow forwarding rule and the like. When the terminal device sends a request to a remote target server, the request passes through the routing device, and the routing device forwards the data traffic by using the configured proxy server.
In the following, a DNS (Domain Name System, Domain Name resolution service) request is taken as an example for explanation, and as shown in fig. 4, the method includes the following steps:
step S401, the routing equipment acquires simulation configuration information from a test server; wherein the simulated configuration information comprises simulated geographical location information;
s402, the test server returns simulation configuration information to the routing equipment;
step S403, the terminal device sends a DNS request to the target server and forwards the request through the routing device;
step S404, the routing equipment forwards the DNS request to a corresponding proxy server according to the simulation configuration information;
step S405, the proxy server forwards the DNS request of the terminal equipment to a target server;
step S406, the target server returns a DNS response to the proxy server;
step S407, the proxy server returns a DNS response to the routing equipment;
and step S408, the routing equipment returns a DNS response to the terminal equipment.
The communication data is forwarded through the proxy server, and no matter the terminal equipment or the target server judges the geographic position of the terminal equipment, the terminal equipment is considered to be located at the geographic position indicated by the virtual address of the proxy server. Therefore, the simulation of the geographic position in the communication process of the terminal equipment is realized.
Fig. 5 is a block diagram illustrating an analog communication device of a terminal device according to an example embodiment. Referring to fig. 5, the apparatus 500 may be a proxy server, and may also be a functional component applied in the proxy server, and includes a first receiving module 510, a first determining module 520, and a first forwarding module 530.
A first receiving module 510, configured to receive simulation configuration information sent by a test server;
a first determining module 520, configured to configure a virtual address of the proxy server according to the simulation configuration information, where the virtual address is an address determined according to a target geographic location to be simulated by the proxy server;
a first forwarding module 530, configured to forward, when a routing device connected to the terminal device communicates with a target server requested by the terminal device, communication data between the routing device and the target server by using the virtual address.
In some embodiments, the first forwarding module comprises:
the first receiving submodule is used for receiving first communication data sent by the routing equipment by taking the virtual address as a destination address;
and the first sending submodule is used for sending the first communication data to a target server of the terminal equipment by taking the virtual address as a source address.
In some embodiments, the first sending submodule includes:
the first determining submodule is used for determining a target address of a target server of the terminal equipment according to the first communication data;
and the second sending submodule is used for sending the first communication data to the target server by taking the virtual address as a source address and the target address as a destination address.
In some embodiments, the first forwarding module comprises:
the second receiving submodule is used for receiving second communication data sent by the target server by taking the virtual address as a destination address;
and the third sending submodule is used for sending the second communication data to the routing equipment by taking the virtual address as a source address.
Fig. 6 is a block diagram illustrating an analog communication device of a terminal device according to an example embodiment. Referring to fig. 6, the apparatus 600 may be a routing device, and may also be a functional component applied in the routing device, and includes a first obtaining module 610 and a second forwarding module 620.
A first obtaining module 610, configured to obtain simulation configuration information sent by a test server, where the simulation configuration information includes: the virtual address of the proxy server is determined according to the target geographical position to be simulated by the proxy server;
a second forwarding module 620, configured to forward, by using the virtual address as the address of the proxy server, communication data between a terminal device and the proxy server.
In some embodiments, the apparatus further comprises:
the first configuration module is used for configuring the virtual address and the flow forwarding rule according to the simulation configuration information;
the second forwarding module is specifically configured to:
and forwarding the communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server according to the flow forwarding rule.
In some embodiments, the second forwarding module comprises:
the third receiving submodule is used for receiving the first communication data sent by the terminal equipment;
and the fourth sending submodule is used for sending the first communication data to the proxy server by taking the virtual address as a destination address.
In some embodiments, the second forwarding module comprises:
the fourth receiving submodule is used for receiving second communication data sent by the proxy server by taking the virtual address as a source address;
and the fifth sending submodule is used for sending the second communication data to the terminal equipment.
In some embodiments, the first obtaining module comprises:
the first acquisition sub-module is used for acquiring a simulation test instruction;
the sixth sending submodule is used for sending an address obtaining request to the test server according to the simulation test instruction;
and the fifth receiving submodule is used for receiving the virtual address of the proxy server returned by the test server according to the address acquisition request.
In some embodiments, the first obtaining sub-module includes:
the sixth receiving submodule is used for receiving the simulation test instruction sent by any electronic device connected with the routing device; or the like, or, alternatively,
and the second obtaining submodule is used for obtaining the simulation test instruction generated by the routing equipment according to preset detection time.
Fig. 7 is a block diagram illustrating an analog communication device of a terminal device according to an example embodiment. Referring to fig. 7, the apparatus 700 may be a test server, or may be a functional component applied in the test server, and includes a second obtaining module 710, a second determining module 720, and a second configuring module 730.
A second obtaining module 710, configured to obtain a target geographic location to be simulated;
a second determining module 720, configured to determine, according to the target geographic location, simulation configuration information of the configuration proxy server;
a second configuration module 730, configured to send the simulation configuration information to the proxy server, and configure a virtual address of the proxy server;
and the sending module is used for sending the virtual address to the routing equipment connected with the terminal equipment.
In some embodiments, the sending module includes:
a seventh receiving submodule, configured to receive an address obtaining request sent by the routing device;
and the seventh sending submodule is used for sending the virtual address to the router according to the address acquisition request.
With regard to the apparatus in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be described in detail here.
Fig. 8 is a block diagram illustrating a physical structure of a control apparatus 800 of an environment improvement device according to an exemplary embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and so forth.
Referring to fig. 8, the apparatus 800 may include one or more of the following components: a processing component 801, a memory 802, a power component 803, a multimedia component 804, an audio component 805, an input/output (I/O) interface 806, a sensor component 807, and a communications component 808.
The processing component 801 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 801 may include one or more processors 810 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 801 may also include one or more modules that facilitate interaction between the processing component 801 and other components. For example, the processing component 801 may include a multimedia module to facilitate interaction between the multimedia component 804 and the processing component 801.
The memory 810 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 802 may be implemented by any type or combination of volatile or non-volatile storage devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
A power supply component 803 provides power to the various components of the device 800. The power supply component 803 may include: a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the device 800.
The multimedia component 804 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 804 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and/or rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 805 is configured to output and/or input audio signals. For example, the audio component 805 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may further be stored in the memory 810 or transmitted via the communication component 808. In some embodiments, the audio component 805 also includes a speaker for outputting audio signals.
The I/O interface 806 provides an interface between the processing component 801 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 807 includes one or more sensors for providing various aspects of condition assessment for the apparatus 800. For example, the sensor component 807 may detect the open/closed state of the device 800, the relative positioning of components such as a display and keypad of the device 800, the sensor component 807 may also detect a change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, orientation or acceleration/deceleration of the device 800, and a change in temperature of the device 800. Sensor assembly 807 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. The sensor assembly 807 can also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 807 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 808 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The apparatus 800 may access a wireless network based on a communication standard, such as WiFi, 2G, or 3G, or a combination thereof. In an exemplary embodiment, the communication component 808 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 808 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, or other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors, or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 802 comprising instructions, executable by the processor 810 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform any of the methods provided in the above embodiments.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (26)

1. A simulation communication method of a terminal device is characterized in that the method is applied to a proxy server and comprises the following steps:
receiving simulation configuration information sent by a test server;
configuring a virtual address of the proxy server according to the simulation configuration information, wherein the virtual address is an address determined according to a target geographical position to be simulated by the proxy server;
when the routing equipment connected with the terminal equipment communicates with a target server requested by the terminal equipment, forwarding communication data between the routing equipment and the target server by using the virtual address;
wherein the forwarding communication data between the routing device and the target server by using the virtual address comprises:
forwarding the communication data between the routing equipment and the target server by using the virtual address according to a data forwarding strategy configured by the routing equipment; the data forwarding strategy is as follows: and the routing equipment identifies the target geographic position according to the relevant field in the virtual address and configures a corresponding data forwarding strategy according to the network protocol standard of the target geographic position.
2. The method of claim 1, wherein forwarding communication data between the routing device and the target server with the virtual address comprises:
receiving first communication data sent by the routing equipment by taking the virtual address as a destination address;
sending the first communication data to a target service of the terminal equipment by taking the virtual address as a source address
A device.
3. The method according to claim 2, wherein the sending the first communication data to a target server of the terminal device with the virtual address as a source address comprises:
determining a target address of a target server of the terminal equipment according to the first communication data;
and sending the first communication data to the target server by taking the virtual address as a source address and the target address as a destination address.
4. The method of claim 1, wherein forwarding communication data between the routing device and the target server with the virtual address comprises:
receiving second communication data sent by the target server by taking the virtual address as a destination address;
and sending the second communication data to the routing equipment by taking the virtual address as a source address.
5. An analog communication method of a terminal device, wherein the method is applied to a routing device, and comprises the following steps:
acquiring simulation configuration information sent by a test server, wherein the simulation configuration information comprises: the virtual address of the proxy server is determined according to the target geographical position to be simulated by the proxy server; forwarding communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server;
wherein, said using the virtual address as the address of the proxy server, forwarding the communication data between the terminal device and the proxy server, includes:
identifying the target geographic position according to the relevant fields in the virtual address, and configuring a corresponding data forwarding strategy according to the network protocol standard of the target geographic position; and forwarding the communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server according to the data forwarding strategy.
6. The method of claim 5, further comprising:
configuring the virtual address and a flow forwarding rule according to the simulation configuration information;
the virtual address is used as the address of the proxy server to forward the terminal equipment and the proxy server
Including:
forwarding the terminal device by taking the virtual address as the address of the proxy server according to the flow forwarding rule
And preparing communication data between the proxy server and the server.
7. The method according to claim 5, wherein the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server comprises:
receiving first communication data sent by the terminal equipment;
and sending the first communication data to the proxy server by taking the virtual address as a destination address.
8. The method according to claim 5, wherein the forwarding communication data between the terminal device and the proxy server by using the virtual address as the address of the proxy server comprises:
receiving second communication data sent by the proxy server by taking the virtual address as a source address;
and sending the second communication data to the terminal equipment.
9. The method according to any one of claims 5 to 7, wherein the obtaining the virtual address of the proxy server sent by the test server comprises:
acquiring a simulation test instruction;
sending an address acquisition request to the test server according to the simulation test instruction;
and receiving the virtual address of the proxy server returned by the test server according to the address acquisition request.
10. The method of claim 9, wherein obtaining the simulated test instructions comprises:
receiving the simulation test instruction sent by any electronic equipment connected with the routing equipment; or the like, or, alternatively,
and acquiring the simulation test instruction generated by the routing equipment according to preset detection time.
11. A simulation communication method of a terminal device is characterized in that the method is applied to a test server and comprises the following steps:
acquiring a target geographic position to be simulated;
determining simulation configuration information of a configuration proxy server according to the target geographic position;
sending the simulation configuration information to the proxy server, and configuring a virtual address of the proxy server;
sending the virtual address to a routing device connected with the terminal device;
wherein the virtual address is to cause the routing device to:
and identifying the target geographic position according to the relevant fields in the virtual address, configuring a corresponding data forwarding strategy according to the network protocol standard of the target geographic position, and forwarding the communication data between the terminal equipment and the proxy server based on the data forwarding strategy.
12. The method of claim 11, wherein sending the virtual address to a routing device connected to the end device comprises:
receiving an address acquisition request sent by the routing equipment;
and sending the virtual address to the router according to the address acquisition request.
13. An analog communication device of a terminal device, which is applied to a proxy server, comprising:
the first receiving module is used for receiving the simulation configuration information sent by the test server;
a first determining module for configuring a virtual address of the proxy server according to the simulation configuration information, wherein,
the virtual address is an address determined according to a target geographic position to be simulated by the proxy server;
a first forwarding module, configured to forward, when a routing device connected to the terminal device communicates with a target server requested by the terminal device, communication data between the routing device and the target server using the virtual address; wherein the forwarding communication data between the routing device and the target server by using the virtual address comprises: forwarding the communication data between the routing equipment and the target server by using the virtual address according to a data forwarding strategy configured by the routing equipment; the data forwarding strategy is as follows: and the routing equipment identifies a target geographic position according to the relevant field in the virtual address, and configures a corresponding data forwarding strategy according to the network protocol standard of the target geographic position.
14. The apparatus of claim 13, wherein the first forwarding module comprises:
a first receiving submodule, configured to receive, by using the virtual address as a destination address, a first communication sent by the routing device
Data;
a first sending submodule, configured to send the first communication data to the first communication terminal with the virtual address as a source address
A target server of the terminal device.
15. The apparatus of claim 14, wherein the first sending submodule comprises:
a first determining submodule, configured to determine a destination of the target server of the terminal device according to the first communication data
Marking an address;
a second sending submodule for using the virtual address as a source address and the destination address as a destination address,
and sending the first communication data to the target server.
16. The apparatus of claim 13, wherein the first forwarding module comprises:
a second receiving submodule for receiving the second message sent by the target server by using the virtual address as a destination address
Communicating the data;
a third sending submodule for sending the second communication data to the mobile station using the virtual address as a source address
A routing device.
17. An analog communication device of a terminal device, which is applied to a routing device, comprising:
a first obtaining module, configured to obtain simulation configuration information sent by a test server, where the simulation configuration information includes: the virtual address of the proxy server is determined according to the target geographical position to be simulated by the proxy server;
the second forwarding module is used for forwarding communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server; wherein, said using the virtual address as the address of the proxy server, forwarding the communication data between the terminal device and the proxy server, includes: identifying the target geographical position according to the relevant fields in the virtual address, and configuring a corresponding data forwarding strategy according to the network protocol standard of the target geographical position; and forwarding the communication data between the terminal equipment and the proxy server by taking the virtual address as the address of the proxy server according to the data forwarding strategy.
18. The apparatus of claim 17, further comprising:
the first configuration module is used for configuring the virtual address and the flow forwarding rule according to the simulation configuration information;
the second forwarding module is specifically configured to:
forwarding the terminal device by taking the virtual address as the address of the proxy server according to the flow forwarding rule
And communication data between the proxy server and the server are prepared.
19. The apparatus of claim 18, wherein the second forwarding module comprises:
the third receiving submodule is used for receiving the first communication data sent by the terminal equipment;
a fourth sending submodule for sending the first communication data to the destination address using the virtual address as the destination address
The proxy server is described.
20. The apparatus of claim 18, wherein the second forwarding module comprises:
a fourth receiving submodule, configured to receive, by using the virtual address as a source address, the second message sent by the proxy server
Communicating data;
and the fifth sending submodule is used for sending the second communication data to the terminal equipment.
21. The apparatus according to any one of claims 18 to 20, wherein the first obtaining module comprises:
the first acquisition submodule is used for acquiring a simulation test instruction;
a sixth sending submodule, configured to send an address obtaining request to the test server according to the simulation test instruction;
and the fifth receiving submodule is used for receiving the virtual address of the proxy server returned by the test server according to the address acquisition request.
22. The apparatus of claim 21, wherein the first obtaining sub-module comprises:
a sixth receiving submodule for receiving the simulation test sent by any electronic device connected to the routing device
Instructions; or the like, or a combination thereof,
and the second acquisition submodule is used for acquiring the simulation test instruction generated by the routing equipment according to preset detection time.
23. An analog communication device of a terminal device, which is applied to a test server, comprising:
the second acquisition module is used for acquiring the geographical position of the target to be simulated;
the second determining module is used for determining the simulation configuration information of the configuration proxy server according to the target geographic position;
a second configuration module for sending the simulation configuration information to the proxy server to configure the proxy server
The virtual address of (a);
the sending module is used for sending the virtual address to the routing equipment connected with the terminal equipment; wherein the virtual address is to cause the routing device to: and identifying the target geographic position according to the relevant fields in the virtual address, configuring a corresponding data forwarding strategy according to the network protocol standard of the target geographic position, and forwarding the communication data between the terminal equipment and the proxy server based on the data forwarding strategy.
24. The apparatus of claim 23, wherein the sending module comprises:
a seventh receiving submodule, configured to receive an address obtaining request sent by the routing device;
and the seventh sending submodule is used for sending the virtual address to the router according to the address acquisition request.
25. Analog communication device for a terminal equipment, characterized in that it comprises at least: a processor and a memory for storing executable instructions operable on the processor, wherein:
the processor is configured to execute the executable instructions, when the processor is configured to execute the steps in the analog communication method of the terminal device provided by any one of the above claims 1 to 4 or 5 to 10 or 11 to 12.
26. A non-transitory computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when executed by a processor, implement the steps in the analog communication method of the terminal device provided in any one of claims 1 to 4 or 5 to 10 or 11 to 12.
CN202010011507.2A 2020-01-06 2020-01-06 Analog communication method and device of terminal equipment and storage medium Active CN111245914B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010011507.2A CN111245914B (en) 2020-01-06 2020-01-06 Analog communication method and device of terminal equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010011507.2A CN111245914B (en) 2020-01-06 2020-01-06 Analog communication method and device of terminal equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111245914A CN111245914A (en) 2020-06-05
CN111245914B true CN111245914B (en) 2022-07-22

Family

ID=70866331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010011507.2A Active CN111245914B (en) 2020-01-06 2020-01-06 Analog communication method and device of terminal equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111245914B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114115919B (en) * 2021-12-02 2023-10-31 四川虹美智能科技有限公司 Communication address switching system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973489B1 (en) * 2000-03-21 2005-12-06 Mercury Interactive Corporation Server monitoring virtual points of presence
CN101043523A (en) * 2006-03-21 2007-09-26 腾讯科技(深圳)有限公司 Login method, system and proxy server of instant message server
CN103092581A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Method and device for setting up Web front-end local development environment
CN106534319A (en) * 2016-11-22 2017-03-22 深圳市掌世界网络科技有限公司 Method for direct access to target server through proxy server
CN108063714A (en) * 2016-11-09 2018-05-22 北京国双科技有限公司 A kind of processing method and processing device of network request

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7702760B2 (en) * 2001-03-26 2010-04-20 Nokia Corporation Configuration method and system
JP5456683B2 (en) * 2007-10-24 2014-04-02 ラントロニクス・インコーポレイテツド Various methods and apparatus for a central station for assigning virtual IP addresses
US8744065B2 (en) * 2010-09-22 2014-06-03 Avaya Inc. Method and system for monitoring contact center transactions

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6973489B1 (en) * 2000-03-21 2005-12-06 Mercury Interactive Corporation Server monitoring virtual points of presence
CN101043523A (en) * 2006-03-21 2007-09-26 腾讯科技(深圳)有限公司 Login method, system and proxy server of instant message server
CN103092581A (en) * 2011-10-28 2013-05-08 阿里巴巴集团控股有限公司 Method and device for setting up Web front-end local development environment
CN108063714A (en) * 2016-11-09 2018-05-22 北京国双科技有限公司 A kind of processing method and processing device of network request
CN106534319A (en) * 2016-11-22 2017-03-22 深圳市掌世界网络科技有限公司 Method for direct access to target server through proxy server

Also Published As

Publication number Publication date
CN111245914A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN106358189B (en) Method and device for accessing wireless local area network
RU2640646C2 (en) Method and device for cloud card transmission
EP3177077A1 (en) Method and device for network access
EP3136698B1 (en) Connection status prompting method and device
EP2975821A1 (en) Network connection method and apparatus
CN109451793B (en) Method and device for realizing network edge calculation
RU2644511C2 (en) Method and device for displaying router configuration interface
US20160255521A1 (en) Method and apparatus for testing a smart device
CN106254467A (en) Sharing files method and device
CN106454998B (en) Wireless local area network access method, device and terminal
US9723486B2 (en) Method and apparatus for accessing network
EP3553672B1 (en) Information interaction method and device and computer readable storage medium thereof
EP3757738A1 (en) Method and device for page processing
CN111010314A (en) Communication test method and device for terminal equipment, routing equipment and storage medium
CN111031002A (en) Broadcast discovery method, broadcast discovery apparatus, and storage medium
US20210051504A1 (en) Information reporting method and apparatus
CN109565650B (en) Method and device for broadcasting and receiving configuration information of synchronous signal block
CN109417802B (en) Method and device for transmitting flight information
CN111245914B (en) Analog communication method and device of terminal equipment and storage medium
CN109155668B (en) Flight path configuration method and device
CN110913276A (en) Data processing method, device, server, terminal and storage medium
EP2950242A1 (en) Method and apparatus for determining position
CN114430370B (en) Method, device, equipment and storage medium for determining network slice
CN106658412B (en) Positioning method and device
CN110995743B (en) Security testing method and device for terminal equipment and storage medium

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100085 unit C, building C, lin66, Zhufang Road, Qinghe, Haidian District, Beijing

Applicant after: Beijing Xiaomi pinecone Electronic Co.,Ltd.

Address before: 100085 unit C, building C, lin66, Zhufang Road, Qinghe, Haidian District, Beijing

Applicant before: BEIJING PINECONE ELECTRONICS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant