Proximal detection-based nearby access method and system
By obtaining the enterprise and geographical information of the client terminal through the detection server, assigning the optimal media server and determining the optimal access line, the problem of inconvenient access of media servers in the prior art is solved, and connection stability and user experience are improved.
Patent Information
- Application Number
- CN202411253231.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-12-10
AI Technical Summary
现有技术无法根据网络环境和实际情况自定义客户终端的地址,导致媒体服务器接入不便,影响用户体验和带宽利用率。
Through the detection server, the client terminal's enterprise information and geographical location information are obtained, the site code information is determined, the optimal media server is allocated, and the optimal access line is determined based on the network detection results, so as to achieve efficient access between the client terminal and the media server.
It improves the stability and efficiency of the connection between the client terminal and the media server, reduces the service pressure of the media server, and improves user experience and bandwidth utilization.
Smart Images

Figure CN119109837A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a proximity access method based on active detection and a system thereof. Background Art
[0002] With the development of Internet technology, multimedia services such as video on demand, live broadcast, and online games are becoming increasingly popular. Users' demand for low latency in media services is growing, and network latency has become a key factor affecting user experience. By allowing client terminals to access nearby multimedia servers, the delay in data transmission can be reduced, and bandwidth utilization and user experience can be improved. In the prior art, the geographical location-aware DNS service (GeoDNS) is mainly used to select the nearest media server for access for the client terminal based on the IP address of the client terminal. The prior art cannot customize the address of the client terminal according to the network environment and actual conditions, and select the media server for access for the client terminal based on the customized address. In addition, in the prior art, the connection between the terminal and the media server is determined based on the active detection results to determine whether it is completed through the intranet or the extranet. Summary of the invention
[0003] In order to achieve a more efficient and convenient connection between a client terminal and a media server, the present invention provides a method and system for nearby access based on active detection, which effectively enhances the stability of the connection between the client terminal and the media server.
[0004] In a first aspect, the present invention provides a method for proximity access based on active detection, characterized in that the method comprises:
[0005] The detection server obtains the enterprise information and geographic location information of the client terminal that logs into the system server;
[0006] The detection server determines the first three fields of the site code information of the client terminal through the enterprise information and geographic location information of the client terminal;
[0007] The detection server allocates an optimal media server to the client terminal according to the first three fields of the site code information;
[0008] The client terminal performs network detection on the optimal media server;
[0009] The detection server determines the best route for the client terminal to access the optimal media server according to the network detection result;
[0010] The client terminal accesses the optimal media server through the optimal line.
[0011] In a second aspect, the present invention further provides a proximity access system based on active detection, characterized in that the system comprises a detection server and a client terminal, wherein:
[0012] The detection server includes an acquisition module, a field determination module, an allocation module and a line determination module;
[0013] The client terminal includes a detection module and an access module;
[0014] The acquisition module is used for the detection server to acquire the enterprise information and geographic location information of the client terminal that logs into the system server;
[0015] The field determination module is used for the detection server to determine the first three fields of the site code information of the client terminal through the enterprise information and geographical location information of the client terminal;
[0016] The allocation module is used for the detection server to allocate the optimal media server to the client terminal according to the first three fields of the site code information;
[0017] The line determination module is used for the detection server to determine the best line when the client terminal accesses the optimal media server according to the network detection result;
[0018] The detection module is used for the client terminal to perform network detection on the optimal media server;
[0019] The access module is used for the client terminal to access the optimal media server through the optimal line.
[0020] The present invention provides a nearby access method based on active detection and a system thereof: first, by judging whether the enterprise computer room identifiers in the site code information of the client terminal and the media server are consistent, it can be quickly determined whether the client terminal can be connected to the media server through the intranet; second, the detection server can customize the geographical location of the client terminal according to actual conditions, thereby improving the efficiency of the media server accessed by the client terminal; third, by counting the geographical locations of the client terminals, it can be accurately and efficiently determined which areas have a large number of client terminals, so that the deployment of servers can be customized for different areas, making the use of server resources more efficient; finally, the detection server dynamically adjusts the allocation of media servers to the client terminals according to the load balancing mechanism, thereby reducing the service pressure of the media server and improving the experience of the client terminals. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0022] Figure 1 is a flow chart of a method for nearby access based on active detection provided by an embodiment of the present invention;
[0023] Figure 2 is a network detection flow chart provided by an embodiment of the present invention;
[0024] Figure 3 This is an interaction diagram of a proximity access method based on active detection provided by an embodiment of the present invention;
[0025] Figure 4 is a timing diagram of a proximity access method based on active detection provided by an embodiment of the present invention;
[0026] Figure 5 The invention is a block diagram of a nearby access system based on active detection provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0027] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. SUMMARY OF THE INVENTION
[0029] As mentioned above, the present invention provides a method and system for nearby access based on active detection, which significantly improves the stability of the service and the user experience through the method of nearby access of the client terminal to the media server.
[0030] Exemplary Methods
[0031] Figure 1 : is a flow chart of a method for nearby access based on active detection provided by an embodiment of the present invention, and the embodiment includes the following steps:
[0032] S101: The detection server obtains the company information and geographic location information of the client terminal that logs into the system server.
[0033] The detection server is used to detect the optimal media server accessed by the client terminal and the optimal route when accessing the optimal media server;
[0034] The site code information is used to mark the optimal media server accessed by the client terminal and the optimal line when accessing the optimal media server. The site code information consists of four fields: enterprise code, country code, regional code and enterprise computer room identification. The enterprise code, country code and regional code are used to determine the optimal media server connected to the client terminal, and the enterprise computer room identification is used to determine the optimal line used when the client terminal is connected to the optimal media server. Specifically, the enterprise code, the public cloud defaults to EDEF, and when a hybrid cloud enterprise registers, a fixed enterprise code will be assigned; the country code, the default country code 86 of China is used. If it is deployed in other countries, it is selected according to the standard country code definition; the regional code, the default domestic computer room area code, and the default foreign SLDEF; the enterprise computer room identification is used to distinguish different computer rooms. The client terminal and the media server in the same computer room can communicate with each other through the intranet, and the client terminal and the media server in different computer rooms cannot communicate with each other through the intranet, but can only communicate with each other through the external network.
[0035] The media server is used to provide media content access services for client terminals. For example, the client terminals can play audio and video and download content through the media server.
[0036] Specifically, the step of the detection server acquiring the enterprise information and geographic location information of the client terminal that logs into the system server includes:
[0037] First, the client terminal logs in to the system server through the system server's URL and its own account and password. After successful login, the client terminal will upload the company information and IP address of the device to the system server's database. The system server's database stores the company information and IP address of the client terminal.
[0038] Preferably, when the IP address of the client terminal is only an intranet address or an extranet address, the IP address of the client terminal is uploaded to the database of the system server; when the IP address of the client terminal has both an intranet address and an extranet address, the extranet address is intercepted by using a reverse proxy server, and only the intranet address of the client terminal is uploaded to the database of the system server.
[0039] After the client terminal uploads the enterprise information and IP address to the database of the system server, the detection server obtains the IP address information of the client terminal through the system server and queries the specific geographic location information of the client terminal based on the IP address information of the client terminal, so as to allocate the nearest media server to the client terminal according to the specific geographic location.
[0040] In the above steps, in addition to obtaining the specific geographical location information of the client terminal through the IP address, the detection server can also improve the accuracy and precision of obtaining the geographical location through the application of technologies such as GPS and WI-FI positioning.
[0041] S102: The detection server determines the first three fields of the site code information of the client terminal through the enterprise information and geographic location information of the client terminal.
[0042] Specifically, the detection server determines the enterprise code in the site code information of the client terminal through the enterprise information to which the client terminal belongs. For example, after detection, the detection server determines that the enterprise to which the client terminal belongs is an enterprise using a hybrid cloud, and the enterprise code assigned to the client terminal A is E000001. The detection server determines the country code and the area code in the site code information of the client terminal through the geographical location information of the client terminal. For example, after detection, the detection server determines that the geographical location of the client terminal is Beijing, and the country code assigned to the client terminal is 86 and the area code is 010.
[0043] In addition, the detection server may also customize the country code and area code in the site code information of the client terminal.
[0044] For example, when the detection server detects that the load of the media server in the Guangzhou area is relatively low and the load of the media server in the Beijing area is too high, the area code of the client terminal A in Beijing can be customized to 020 (the area code of Guangzhou). In this way, the client terminal A in Beijing can access the media server in Guangzhou with a relatively low load, thereby improving the user experience of the client terminal A in accessing the media server and reducing the load pressure on the media server.
[0045] In addition, when the detection server fails to query the geographic location information of the client terminal, it determines the country code and area code in the site code information of the client terminal according to the default geographic location information, and allocates a specific media server for the client terminal using the default geographic location to access.
[0046] S103: The detection server allocates an optimal media server to the client terminal according to the first three fields of the site code information.
[0047] Specifically, the detection server allocates the nearest media server to the client terminal according to the first three fields of the site code information of the client terminal.
[0048] For example, after detection, the detection server determines that the first three fields of the site code information of client terminal A are E000001-86-010. The detection server then assigns the client terminal A a media server in Beijing of its company based on the first three digits of the site code information of the client terminal, and returns the detection address of the media server to the client terminal A so that the client terminal can access the media server based on the detection address.
[0049] S104: The client terminal performs network detection on the optimal media server.
[0050] like Figure 2 As shown, step S104 specifically includes:
[0051] S201: The client terminal accesses the optimal media server through the detection address of the media server.
[0052] Specifically, the client terminal accesses the optimal media server screened out by the detection server through the address of the media server. If the client terminal can access the media server through the intranet, the media server is accessed through the intranet first. If the media server cannot be accessed through the intranet, the media server is accessed through the extranet.
[0053] S202: The client terminal records network status information when accessing the media server.
[0054] Specifically, after the client terminal accesses the media server screened by the detection server, the network status information when accessing the media server will be recorded, so that the detection server can select the best access line for the client terminal based on the network status information, thereby improving the efficiency of the client terminal in accessing the media server and improving the user experience and satisfaction.
[0055] S105: The detection server determines the best route for the client terminal to access the optimal media server according to the network detection result.
[0056] Specifically, the client terminal returns the network status information to the detection server, and the detection server determines whether the client terminal accesses the optimal media server through an intranet or an extranet according to the network status information.
[0057] In addition, when the detection server determines that the client terminal accesses the optimal media server through the intranet, the detection server assigns the client terminal an enterprise computer room identifier that is the same as that of the optimal media server. For example, when client terminal A accesses media server B, after detection, it is determined that client terminal A can access the media server through the intranet, then the client terminal A is assigned an enterprise computer room identifier that is the same as that of the media server B; when the detection server determines that the client terminal accesses the optimal media server through the extranet, the detection server assigns the client terminal an enterprise computer room identifier that is different from that of the optimal media server. For example, when client terminal A accesses media server B, after detection, it is determined that client terminal A can only access the media server through the extranet, then the client terminal A is assigned an enterprise computer room identifier that is different from that of the media server B.
[0058] After two detections, the detection server finally determines the four fields of the site code information of the client terminal. When the client terminal applies for access to the media server again, if the IP address of the client terminal has not changed, the detection server directly allocates the optimal media server and the optimal access line to the client terminal based on the site code information of the client terminal, without the need to re-detect the optimal media server and the optimal line that the client terminal can access. This can save the time for the client terminal to access the optimal media server and improve the customer's user experience; if the IP address of the client terminal changes, the detection server needs to re-detect to determine the site code information of the client terminal, and then re-allocate the optimal media server and the optimal access line that the client terminal can access based on the new site code information of the client terminal.
[0059] In the second embodiment, the detection server can also monitor the load balancing status of the media server in real time, and dynamically adjust which media servers the client terminal can access according to the load balancing mechanism. When the detection server detects that the current media server is overloaded, the number of client terminals accessing the media server will be reduced accordingly, and vice versa, the number of client terminals accessing the media server will be increased accordingly. In addition, the detection server can also count the number of client terminals in each area, and determine the number of media servers deployed in the area according to the number of client terminals in different areas, so that the media server resources can be used most fully and the waste of resources can be reduced.
[0060] In a third embodiment, the detection server can predict the best route for the client terminal to access the optimal media server based on historical detection data and current detection results, which can further improve the accuracy of the detection results.
[0061] S105: The client terminal accesses the optimal media server through the optimal line. After the detection server allocates the optimal media server and the optimal access route to the client terminal, the client terminal can access the resources of the media server through the optimal access route.
[0062] Figure 3 : This is an interaction diagram provided by an embodiment of the present invention. First, client terminal A logs in to the system server, and then the detection server obtains the enterprise information and IP address of the client terminal A (step 1). Then, the first three fields of the site code information of the client terminal A are determined based on the above information, and the optimal media server is allocated to the client terminal A based on the first three fields of the site code information, and the detection address of the media server is returned to the client terminal A (step 2). The client terminal A is connected to the media server, and then it is determined whether the client terminal A and the media server can be connected through the intranet (step 3) and the determination result is returned to the detection server (step 4). The detection server determines whether the client terminal A is connected to the optimal media server through the external network or the intranet based on the result, and determines the fourth bit of the site code information of the client terminal A, that is, the enterprise computer room identifier (step 5). Afterwards, when the client terminal A requests to access the media server again, the detection server can directly allocate the optimal media server to the client terminal A based on the site code information of the client terminal and the site code information of the media server, and determine the best access route, including deciding whether to use the intranet or the public network for access (step 6).
[0063] Figure 4 This is a timing diagram provided by an embodiment of the present invention. The client terminal logs in to the system server (step 1), the system server records the enterprise information and IP address of the client terminal in the database, and then the detection server obtains the enterprise information and IP address of the client terminal (step 2), and the detection server queries the geographic location information of the client terminal through the IP address (step 3). After the above steps are completed, the detection server returns the detection address to the client terminal (step 4), the client terminal detects the media server according to the detection address (step 5), and returns the detection result to the detection server (step 6), the detection server determines the site code information of the client terminal according to the detection result and records it in the database of the system server (step 7), and then the client terminal can transmit data with the media server (step 8).
[0064] Exemplary Systems
[0065] Correspondingly, an embodiment of the present invention further provides a proximity access system based on active detection. Figure 5 is a block diagram of a nearby access system based on active detection provided by an embodiment of the present invention, such as Figure 5 As shown, the system 500 provided in this embodiment includes a client terminal and a detection server, wherein:
[0066] The detection server includes an acquisition module 501, a field determination module 502, an allocation module 503 and a line determination module 504;
[0067] The client terminal includes a detection module 505 and an access module 506;
[0068] The acquisition module 501 is used for the detection server to acquire the enterprise information and geographic location information of the client terminal that logs into the system server;
[0069] The determining field module 502 is used for the detection server to determine the first three fields of the site code information of the client terminal through the enterprise information and geographic location information of the client terminal;
[0070] The allocation module 503 is used for the detection server to allocate the optimal media server to the client terminal according to the first three fields of the site code information;
[0071] The line determination module 504 is used for the detection server to determine the best line when the client terminal accesses the optimal media server according to the network detection result;
[0072] The detection module 505 is used for the client terminal to perform network detection on the optimal media server;
[0073] The access module 506 is used for the client terminal to access the optimal media server through the optimal line.
[0074] The detection server is used to detect the optimal media server accessed by the client terminal and the optimal route when accessing the optimal media server;
[0075] The site code information is used to mark the optimal media server accessed by the client terminal and the optimal line when accessing the optimal media server. The site code information is composed of four fields: enterprise code, country code, area code and enterprise computer room identification. The enterprise code, country code and area code are used to determine the optimal media server connected to the client terminal, and the enterprise computer room identification is used to determine the optimal line used when the client terminal is connected to the optimal media server.
[0076] The media server is used to provide media content access services for client terminals.
[0077] The acquisition module 501 specifically includes:
[0078] Login module 509, used for the client terminal to log in to the system server;
[0079] The upload module 510 is used to accept the client terminal to upload the enterprise information and IP address to the database of the system server;
[0080] An IP acquisition module 511 is used for the detection server to acquire the IP address of the client terminal recorded in the database;
[0081] The query module 512 is used for the detection server to query the specific geographical location information of the client terminal according to the IP address of the client terminal.
[0082] The upload module specifically includes:
[0083] A submodule for uploading the IP address of the client terminal to the database of the system server when the IP address of the client terminal is only an intranet address or an extranet address;
[0084] A submodule for intercepting the external network address by using a reverse proxy server when the IP address of the client terminal includes both an internal network address and an external network address, and only uploading the internal network address of the client terminal to the database of the system server.
[0085] The field determination module 502 specifically includes:
[0086] A submodule for the detection server to determine the enterprise code in the site code information of the client terminal through the enterprise information to which the client terminal belongs;
[0087] A submodule for the detection server to determine the country code and area code in the site code information of the client terminal through the geographical location information of the client terminal.
[0088] The allocation module 503 specifically includes:
[0089] An allocation server module, used for the detection server to allocate the nearest media server to the client terminal according to the first three fields of the site code information of the client terminal;
[0090] The detection address returning module is used for the detection server to return the detection address of the media server to the client terminal.
[0091] The detection module 505 specifically includes:
[0092] An access module 507, configured for the client terminal to access the optimal media server through the detection address of the media server;
[0093] The recording module 508 is used for the client terminal to record the network status information when accessing the media server.
[0094] The line determination module 504 specifically includes:
[0095] A network status return module, used for the client terminal to return the network status information to the detection server;
[0096] The server determination module is used for the detection server to determine whether the client terminal accesses the optimal media server through an intranet or an extranet according to the network status information.
[0097] The system further comprises:
[0098] A submodule for allocating to the client terminal an enterprise computer room identifier identical to that of the optimal media server when the detection server determines that the client terminal accesses the optimal media server through the intranet;
[0099] A submodule for allocating an enterprise computer room identifier different from that of the optimal media server to the client terminal by the detection server when the detection server determines that the client terminal accesses the optimal media server through an external network.
[0100] The system further comprises:
[0101] After the site code information for the client terminal is determined, if the IP address of the client terminal has not changed, the detection server directly allocates the submodule of the optimal media server and the optimal access line to the client terminal according to the site code information of the client terminal;
[0102] A submodule for the detection server to re-determine the site code information of the client terminal through detection if the IP address of the client terminal changes.
[0103] The detection server dynamically adjusts the media server accessed by the client terminal according to a load balancing mechanism.
[0104] The detection server predicts the optimal media server for the client terminal to access based on historical detection data and current detection results.
[0105] The system comprises:
[0106] The customization module is used for the detection server to customize the country code and area code in the site code information of the client terminal.
[0107] The system comprises:
[0108] The default module is used to determine the country code and area code in the site code information of the client terminal according to the default geographic location information when the detection server fails to query the geographic location information of the client terminal. The detection server will allocate a specific media server for access to the client terminal using the default geographic location.
[0109] It should be noted that although the operations of the proximity access method based on active detection of the present invention are described in a specific order in the accompanying drawings, this does not require or imply that the operations must be performed in this specific order, or that all the operations shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps.
[0110] In addition, although several devices, units or modules of the proximity access system based on active detection are mentioned in the above detailed description, this division is only exemplary and not mandatory. In fact, according to an embodiment of the present invention, the features and functions of two or more modules described above can be concretized in one module. Conversely, the features and functions of one module described above can be further divided into multiple modules to be concretized.
[0111] Although the spirit and principle of the present invention have been described with reference to several specific embodiments, it should be understood that the present invention is not limited to the disclosed specific embodiments, and the division of various aspects does not mean that the features in these aspects cannot be combined to benefit, and such division is only for the convenience of expression. The present invention is intended to cover various modifications and equivalent arrangements included in the spirit and scope of the attached claims. According to the above disclosure of the present invention, the present invention provides: 1. A method for proximity access based on active detection, characterized in that the method comprises: The detection server obtains the enterprise information and geographic location information of the client terminal that logs into the system server; The detection server determines the first three fields of the site code information of the client terminal through the enterprise information and geographic location information of the client terminal; The detection server allocates an optimal media server to the client terminal according to the first three fields of the site code information; The client terminal performs network detection on the optimal media server; The detection server determines the best route for the client terminal to access the optimal media server according to the network detection result; The client terminal accesses the optimal media server through the optimal line. 2. The method for nearby access based on active detection according to item 1 above is characterized in that: The detection server is used to detect the optimal media server accessed by the client terminal and the optimal route when accessing the optimal media server; The site code information is used to mark the optimal media server accessed by the client terminal and the optimal line when accessing the optimal media server. The site code information is composed of four fields: enterprise code, country code, area code and enterprise computer room identification. The enterprise code, country code and area code are used to determine the optimal media server connected to the client terminal, and the enterprise computer room identification is used to determine the optimal line used when the client terminal is connected to the optimal media server. The media server is used to provide media content access services for client terminals. 3. The method for nearby access based on active detection according to item 1 above is characterized in that the step of the detection server acquiring the enterprise information and geographic location information of the client terminal logging into the system server specifically comprises: The client terminal logs into the system server; The client terminal uploads the enterprise information and IP address to the database of the system server; The detection server obtains the IP address of the client terminal recorded in the database; The detection server queries the specific geographical location information of the client terminal according to the IP address of the client terminal. 4. The method for nearby access based on active detection according to item 3 above is characterized in that the step of the client terminal uploading the IP address to the database of the system server specifically includes: When the IP address of the client terminal is only an intranet address or an extranet address, uploading the IP address of the client terminal to the database of the system server; When the IP address of the client terminal includes both an intranet address and an extranet address, the extranet address is intercepted by a reverse proxy server, and only the intranet address of the client terminal is uploaded to the database of the system server. 5. The method for nearby access based on active detection according to item 1 or 2 above is characterized in that the step of the detection server determining the first three fields of the site code information of the client terminal through the enterprise information and geographic location information of the client terminal specifically comprises: The detection server determines the enterprise code in the site code information of the client terminal through the enterprise information to which the client terminal belongs; The detection server determines the country code and the area code in the site code information of the client terminal through the geographical location information of the client terminal. 6. The method for nearby access based on active detection according to item 1 above is characterized in that the step of the detection server allocating the optimal media server to the client terminal according to the first three fields of the site code information specifically comprises: The detection server allocates the nearest media server to the client terminal according to the first three fields of the site code information of the client terminal; The detection server returns the detection address of the media server to the client terminal. 7. The method for nearby access based on active detection according to item 6 above is characterized in that the step of the client terminal performing network detection on the optimal media server specifically comprises: The client terminal accesses the optimal media server through the detection address of the media server; The client terminal records network status information when accessing the media server. 8. The method for nearby access based on active detection according to item 7 above is characterized in that the step of the detection server determining the best route for the client terminal to access the optimal media server according to the network detection result specifically comprises: The client terminal returns the network status information to the detection server; The detection server determines whether the client terminal accesses the optimal media server through an intranet or an extranet according to the network status information. 9. The method for proximity access based on active detection according to item 2 or 8 above, characterized in that the method further comprises: When the detection server determines that the client terminal accesses the optimal media server through the intranet, the detection server assigns the same enterprise computer room identifier as that of the optimal media server to the client terminal; When the detection server determines that the client terminal accesses the optimal media server through the external network, the detection server allocates an enterprise computer room identifier different from that of the optimal media server to the client terminal. 10. The method for proximity access based on active detection according to item 9 above, characterized in that the method further comprises: After the site code information of the client terminal is determined, if the IP address of the client terminal has not changed, the detection server directly allocates the best media server and the best access line to the client terminal according to the site code information of the client terminal; If the IP address of the client terminal changes, the detection server re-determines the site code information of the client terminal through detection. 11. The method for nearby access based on active detection according to item 1 above is characterized in that the detection server dynamically adjusts the media server accessed by the client terminal according to a load balancing mechanism. 12. The method for nearby access based on active detection according to item 1 above is characterized in that the detection server predicts the optimal media server for the client terminal to access based on historical detection data and current detection results. 13. The method for proximity access based on active detection according to item 1 or 2 above, characterized in that the method comprises: The detection server customizes the country code and area code in the site code information of the client terminal. 14. The method for proximity access based on active detection according to item 1 or 2 above, characterized in that the method comprises: When the detection server fails to query the geographical location information of the client terminal, the country code and the area code in the site code information of the client terminal are determined according to the default geographical location information. 15. The method for nearby access based on active detection according to item 14 above is characterized in that a specific media server is allocated for access by a client terminal using a default geographical location. 16. A proximity access system based on active detection, characterized in that the system comprises a detection server and a client terminal, wherein: The detection server includes an acquisition module, a field determination module, an allocation module and a line determination module; The client terminal includes a detection module and an access module; The acquisition module is used for the detection server to acquire the enterprise information and geographic location information of the client terminal that logs into the system server; The field determination module is used for the detection server to determine the first three fields of the site code information of the client terminal through the enterprise information and geographical location information of the client terminal; The allocation module is used for the detection server to allocate the optimal media server to the client terminal according to the first three fields of the site code information; The line determination module is used for the detection server to determine the best line when the client terminal accesses the optimal media server according to the network detection result; The detection module is used for the client terminal to perform network detection on the optimal media server; The access module is used for the client terminal to access the optimal media server through the optimal line. 17. The active detection-based proximity access system according to item 16 above is characterized in that: The detection server is used to detect the optimal media server accessed by the client terminal and the optimal route when accessing the optimal media server; The site code information is used to mark the optimal media server accessed by the client terminal and the optimal line when accessing the optimal media server. The site code information is composed of four fields: enterprise code, country code, area code and enterprise computer room identification. The enterprise code, country code and area code are used to determine the optimal media server connected to the client terminal, and the enterprise computer room identification is used to determine the optimal line used when the client terminal is connected to the optimal media server. The media server is used to provide media content access services for client terminals. 18. According to the active detection-based proximity access system described in item 16 above, the acquisition module specifically includes: A login module, used for the client terminal to log into the system server; An upload module, used for the client terminal to upload the enterprise information and IP address to the database of the system server; An IP acquisition module, used for the detection server to acquire the IP address of the client terminal recorded in the database; The query module is used for the detection server to query the specific geographical location information of the client terminal according to the IP address of the client terminal. 19. According to the active detection-based proximity access system described in item 18 above, the upload module specifically includes: A submodule for uploading the IP address of the client terminal to the database of the system server when the IP address of the client terminal is only an intranet address or an extranet address; A submodule for intercepting the external network address by using a reverse proxy server when the IP address of the client terminal has both an internal network address and an external network address, and only uploading the internal network address of the client terminal to the database of the system server. 20. The active detection-based proximity access system according to item 16 or 17 above, wherein the field determination module specifically comprises: A submodule for the detection server to determine the enterprise code in the site code information of the client terminal through the enterprise information to which the client terminal belongs; A submodule for the detection server to determine the country code and area code in the site code information of the client terminal through the geographical location information of the client terminal. 21. According to the active detection-based proximity access system described in item 16 above, the allocation module specifically includes: An allocation server module, used for the detection server to allocate the nearest media server to the client terminal according to the first three fields of the site code information of the client terminal; The detection address returning module is used for the detection server to return the detection address of the media server to the client terminal. 22. The active detection-based proximity access system according to item 21 above, wherein the detection module specifically comprises: An access module, used for the client terminal to access the optimal media server through the detection address of the media server; The recording module is used for the client terminal to record the network status information when accessing the media server. 23. According to the active detection-based proximity access system of item 22 above, the line determination module specifically comprises: A network status return module, used for the client terminal to return the network status information to the detection server; The server determination module is used for the detection server to determine whether the client terminal accesses the optimal media server through an intranet or an extranet according to the network status information. 24. The active detection-based proximity access system according to item 17 or 23 above, characterized in that the system further comprises: A submodule for allocating to the client terminal an enterprise computer room identifier identical to that of the optimal media server when the detection server determines that the client terminal accesses the optimal media server through the intranet; A submodule for allocating an enterprise computer room identifier different from that of the optimal media server to the client terminal by the detection server when the detection server determines that the client terminal accesses the optimal media server through an external network. 25. The system for the nearest access party based on active detection according to item 24 above, characterized in that the system further comprises: After the site code information for the client terminal is determined, if the IP address of the client terminal has not changed, the detection server directly allocates the submodule of the optimal media server and the optimal access line to the client terminal according to the site code information of the client terminal; A submodule for the detection server to re-determine the site code information of the client terminal through detection if the IP address of the client terminal changes. 26. The active detection-based proximity access system according to item 16 above is characterized in that the detection server dynamically adjusts the media server accessed by the client terminal according to a load balancing mechanism. 27. The active detection-based proximity access system according to item 16 above is characterized in that the detection server predicts the optimal media server for the client terminal to access based on historical detection data and current detection results. 28. The active detection-based proximity access system according to item 16 or 17 above, characterized in that the system comprises: The customization module is used for the detection server to customize the country code and area code in the site code information of the client terminal. 29. The proximity access system based on active detection according to item 16 or 17 above is characterized in that the system includes: a default module, which is used to determine the country code and area code in the site code information of the client terminal according to the default geographic location information when the detection server fails to query the geographic location information of the client terminal. 30. The active detection-based proximity access system according to item 29 above is characterized in that a specific media server is allocated for access by a client terminal using a default geographical location.
Claims
1. A method for proximity access based on active detection, characterized in that: The method comprises: The detection server obtains the enterprise information and geographic location information of the client terminal that logs into the system server; The detection server determines the first three fields of the site code information of the client terminal through the enterprise information and geographic location information of the client terminal; The detection server allocates an optimal media server to the client terminal according to the first three fields of the site code information; The client terminal performs network detection on the optimal media server; The detection server determines the best route for the client terminal to access the optimal media server according to the network detection result; The client terminal accesses the optimal media server through the optimal line.
2. The method for nearby access based on active detection according to claim 1, characterized in that: The detection server is used to detect the optimal media server accessed by the client terminal and the optimal route when accessing the optimal media server; The site code information is used to mark the optimal media server accessed by the client terminal and the optimal line when accessing the optimal media server. The site code information is composed of four fields: enterprise code, country code, area code and enterprise computer room identification. The enterprise code, country code and area code are used to determine the optimal media server connected to the client terminal, and the enterprise computer room identification is used to determine the optimal line used when the client terminal is connected to the optimal media server. The media server is used to provide media content access services for client terminals.
3. The method for nearby access based on active detection according to claim 1, characterized in that: The step of allocating the optimal media server to the client terminal according to the first three fields of the site code information by the detection server specifically includes: The detection server allocates the nearest media server to the client terminal according to the first three fields of the site code information of the client terminal; The detection server returns the detection address of the media server to the client terminal.
4. The method for nearby access based on active detection according to claim 3, characterized in that: The step of the client terminal performing network detection on the optimal media server specifically includes: The client terminal accesses the optimal media server through the detection address of the media server; The client terminal records network status information when accessing the media server.
5. The method for nearby access based on active detection according to claim 4, characterized in that: The step of the detection server determining the best route for the client terminal to access the optimal media server according to the network detection result specifically includes: The client terminal returns the network status information to the detection server; The detection server determines whether the client terminal accesses the optimal media server through an intranet or an extranet according to the network status information.
6. A proximity access system based on active detection, characterized in that: The system comprises a detection server and a client terminal, wherein: The detection server includes an acquisition module, a field determination module, an allocation module and a line determination module; The client terminal includes a detection module and an access module; The acquisition module is used for the detection server to acquire the enterprise information and geographic location information of the client terminal that logs into the system server; The field determination module is used for the detection server to determine the first three fields of the site code information of the client terminal through the enterprise information and geographical location information of the client terminal; The allocation module is used for the detection server to allocate the optimal media server to the client terminal according to the first three fields of the site code information; The line determination module is used for the detection server to determine the best line when the client terminal accesses the optimal media server according to the network detection result; The detection module is used for the client terminal to perform network detection on the optimal media server; The access module is used for the client terminal to access the optimal media server through the optimal line.
7. The active detection-based proximity access system according to claim 6, characterized in that: The detection server is used to detect the optimal media server accessed by the client terminal and the optimal route when accessing the optimal media server; The site code information is used to mark the optimal media server accessed by the client terminal and the optimal line when accessing the optimal media server. The site code information is composed of four fields: enterprise code, country code, area code and enterprise computer room identification. The enterprise code, country code and area code are used to determine the optimal media server connected to the client terminal, and the enterprise computer room identification is used to determine the optimal line used when the client terminal is connected to the optimal media server. The media server is used to provide media content access services for client terminals.
8. The active detection-based proximity access system according to claim 6, characterized in that: The allocation module specifically includes: An allocation server module, used for the detection server to allocate the nearest media server to the client terminal according to the first three fields of the site code information of the client terminal; The detection address returning module is used for the detection server to return the detection address of the media server to the client terminal.
9. The active detection-based proximity access system according to claim 8, characterized in that: The detection module specifically includes: An access module, used for the client terminal to access the optimal media server through the detection address of the media server; The recording module is used for the client terminal to record the network status information when accessing the media server.
10. The active detection-based proximity access system according to claim 9, characterized in that: The line determination module specifically includes: A network status return module, used for the client terminal to return the network status information to the detection server; The server determination module is used for the detection server to determine whether the client terminal accesses the optimal media server through an intranet or an extranet according to the network status information.
