Live broadcast data acquisition method and device
The user IP address is parsed and redirected through the address resolution server, and the live broadcast request is directed to the live broadcast server within the branch, which solves the network congestion problem caused by the fixed address of the internal live broadcast service of the enterprise, and improves the stability and efficiency of the live broadcast. Simplified management.
Patent Information
- Application Number
- CN202410731177.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-10
AI Technical Summary
Internal live broadcast services within enterprises cause network congestion and bandwidth limitations due to fixed live broadcast addresses, affecting the smoothness and stability of live broadcasts, and may interfere with other business applications and reduce overall network performance.
The user's source IP address is parsed and redirected through the address resolution server, and the live broadcast request is directed to the internal live broadcast server of the nearest branch, reducing cross-regional data transmission and making full use of local area network resources.
It improves the fluency and stability of live broadcast, reduces network delay and bandwidth usage, simplifies management and maintenance, and improves training efficiency and security.
Smart Images

Figure CN118632039A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data transmission, and in particular to a method and device for acquiring live broadcast data. Background Art
[0002] As the business expands, companies will build various branches, subsidiaries and other branches in different regions. Within the company, live broadcast services are widely used in scenarios such as internal training, meetings and communication.
[0003] However, due to the complexity of the internal network of enterprises and the high requirements for security and reliability, the stability and performance of live broadcast services often face challenges. At present, most internal live broadcast services of enterprises are provided through fixed live broadcast addresses, that is, all branches, subsidiaries and employees access the live broadcast content through the same URL or IP address. Since all branches access the same live broadcast address, when multiple branches watch the live broadcast at the same time, the network traffic will increase rapidly, which is easy to cause network congestion and bandwidth limitation. Secondly, the fixed live broadcast address cannot meet the needs of users in different regions and different network environments. For example, the network conditions in some areas may be poor, and it is impossible to smoothly access the live broadcast server located in a distant area.
[0004] In the above solution, accessing live broadcast data through a fixed live broadcast address will not only affect the fluency and stability of the live broadcast, but may also interfere with other business applications and reduce the performance of the entire enterprise internal network. Summary of the invention
[0005] In view of this, the present invention provides a live broadcast data acquisition method and device to solve the problem that accessing live broadcast data through a fixed live broadcast address not only affects the fluency and stability of the live broadcast, but may also interfere with other business applications and reduce the performance of the entire enterprise internal network.
[0006] In a first aspect, the present invention provides a method for acquiring live data, the method being applied to an address resolution server in a live data acquisition system, the system further comprising a live server and a plurality of branch terminals; the live server being independently deployed in each branch; the address resolution server being deployed in a headquarters;
[0007] The method comprises:
[0008] Obtaining user access requests received by branch terminals;
[0009] Parsing the user access request to obtain a user source IP address corresponding to the user access request;
[0010] The user's source IP address is matched with the built-in data of the address resolution server, and the redirection address of the corresponding target live broadcast server is returned to the branch terminal based on the matching result; so that the branch terminal initiates a connection request to the corresponding target live broadcast server according to the redirection address and obtains the live broadcast data.
[0011] The above solution resolves and redirects the user's source IP address through the address resolution server, realizes the directional transmission and precise control of live broadcast data, improves the user experience, and improves the training efficiency and security. It has broad application prospects and market potential, and plays an important role in improving the training level and management capabilities of enterprises.
[0012] In an optional implementation, the built-in data includes a mapping relationship table between the user IP address and the live broadcast server of the branch; the matching judgment between the user source IP address and the built-in data of the address resolution server includes:
[0013] Split the user's source IP address and retain the first three IP addresses of the user's source IP address;
[0014] The first three IP addresses of the user's source IP address are matched with the mapping relationship table to obtain the target live broadcast server corresponding to the first three IP addresses.
[0015] The above solution redirects the live training request to the branch office according to the source IP address of the visiting user, making full use of LAN resources, reducing network delays and transmission problems, and improving the effect and quality of live training.
[0016] In an optional implementation, the user source IP address is a four-octet address, and the first three octets of the IP address are the first three octets of the user source IP address.
[0017] In an optional implementation manner, returning the redirection address of the corresponding target live broadcast server to the branch terminal based on the matching judgment result includes:
[0018] When the target live broadcast server corresponding to the first three IP addresses exists in the mapping relationship table, the webpage address of the target live broadcast server is determined as the redirection address, and the redirection address is returned to the branch terminal.
[0019] The above solution reduces cross-regional data transmission by redirecting live training requests to nodes within the branch office, so that the live traffic is only transmitted internally, saving network bandwidth and resources.
[0020] In a second aspect, the present invention provides a method for acquiring live data, the method being applied to a branch terminal in a live data acquisition system, the system further comprising a live server and an address resolution server; the live server being independently deployed in each branch; the address resolution server being deployed in a headquarters;
[0021] The method comprises:
[0022] Receive a user access request input by a user, and send the user access request to the address resolution server; so that the address resolution server resolves the user access request and obtains a user source IP address corresponding to the user access request; matches the user source IP address with the built-in data of the address resolution server, and returns the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result;
[0023] According to the received redirection address, a connection request is initiated to the corresponding target live broadcast server, and live broadcast data is obtained.
[0024] In an optional implementation manner, receiving a user access request input by a user includes:
[0025] A user access request input by a user is received through the browser of the branch terminal.
[0026] In a third aspect, the present invention provides a live broadcast data acquisition device, the device is applied to an address resolution server in a live broadcast data acquisition system, the system further comprising a live broadcast server and a plurality of branch office terminals; the live broadcast server is independently deployed in each branch office; the address resolution server is deployed in a headquarters;
[0027] The device comprises:
[0028] A user access request acquisition module, used to acquire user access requests received by a branch terminal;
[0029] A user source IP address acquisition module, used to parse the user access request to obtain the user source IP address corresponding to the user access request;
[0030] The redirection address acquisition module is used to match the user's source IP address with the built-in data of the address resolution server, and return the redirection address of the corresponding target live broadcast server to the branch terminal based on the matching result; so that the branch terminal can initiate a connection request to the corresponding target live broadcast server according to the redirection address and obtain live broadcast data.
[0031] In a fourth aspect, the present invention provides a live broadcast data acquisition device, the device is applied to a branch terminal in a live broadcast data acquisition system, the system further comprising a live broadcast server and an address resolution server; the live broadcast server is independently deployed in each branch; the address resolution server is deployed in the headquarters;
[0032] The device comprises:
[0033] A user access request sending module is used to receive a user access request input by a user, and send the user access request to the address resolution server; so that the address resolution server resolves the user access request and obtains the user source IP address corresponding to the user access request; matches the user source IP address with the built-in data of the address resolution server, and returns the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result;
[0034] The live broadcast data acquisition module is used to initiate a connection request to the corresponding target live broadcast server according to the received redirection address and obtain the live broadcast data.
[0035] In a fifth aspect, the present invention provides a live broadcast data acquisition system, the system comprising an address resolution server, a live broadcast server and a plurality of branch terminals; the live broadcast server is independently deployed in each branch; the address resolution server is deployed in the headquarters;
[0036] The branch terminal is used to receive a user access request input by a user and send the user access request to the address resolution server;
[0037] The address resolution server is used to resolve the user access request to obtain the user source IP address corresponding to the user access request; match the user source IP address with the built-in data of the address resolution server, and return the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result;
[0038] The branch terminal is also used to initiate a connection request to the corresponding target live broadcast server according to the received redirection address and obtain live broadcast data.
[0039] In a sixth aspect, the present invention provides a computer device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, computer instructions being stored in the memory, and the processor executing the computer instructions to thereby execute a live broadcast data acquisition method of the first aspect or any corresponding embodiment thereof.
[0040] In a seventh aspect, the present invention provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute a live broadcast data acquisition method according to the first aspect or any corresponding embodiment thereof.
[0041] In an eighth aspect, the present invention provides a computer program product, comprising computer instructions, wherein the computer instructions are used to enable a computer to execute a live broadcast data acquisition method according to the first aspect or any corresponding embodiment thereof.
[0042] The present invention resolves the user's source IP address through an address resolution server, redirects the live training request to the inside of the branch, so as to achieve directional transmission and precise control of live data, make full use of local area network resources, reduce network delay and transmission problems, and improve the effect and quality of live training. In addition, the present invention redirects the live training request to the node inside the branch, reduces cross-regional data transmission, makes the live traffic only transmitted internally, saves network bandwidth and resources, simplifies management and maintenance, and improves training efficiency and security. It has broad application prospects and market potential, and is of great significance to improving the training level of enterprises. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 is a structural schematic diagram of a live broadcast data acquisition system according to an embodiment of the present invention;
[0045] Figure 2 is a flow chart of a method for acquiring live broadcast data according to an embodiment of the present invention;
[0046] Figure 3 is a flowchart of another method for acquiring live broadcast data according to an embodiment of the present invention;
[0047] Figure 4 is a flowchart of another method for acquiring live broadcast data according to an embodiment of the present invention;
[0048] Figure 5 is a flowchart of another method for acquiring live broadcast data according to an embodiment of the present invention;
[0049] Figure 6 is a structural block diagram of a live broadcast data acquisition device according to an embodiment of the present invention;
[0050] Figure 7 is a structural block diagram of another live broadcast data acquisition device according to an embodiment of the present invention;
[0051] Figure 8 It is a schematic diagram of the hardware structure of a computer device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.
[0053] According to an embodiment of the present invention, a live broadcast data acquisition system embodiment is provided. Figure 1 is a structural diagram of a live broadcast data acquisition system according to an embodiment of the present invention. Figure 1 As shown, the live broadcast data acquisition system 110 includes an address resolution server 111, a live broadcast server 112 and multiple branch office terminals 113; the live broadcast server 112 is independently deployed in each branch office; the address resolution server 111 is deployed in the headquarters;
[0054] The branch terminal 113 is used to receive a user access request input by a user and send the user access request to the address resolution server 111;
[0055] The address resolution server 111 is used to resolve the user access request to obtain the user source IP address corresponding to the user access request; match the user source IP address with the built-in data of the address resolution server 111, and return the redirection address of the corresponding target live broadcast server to the branch terminal 113 based on the matching result;
[0056] The branch terminal 113 is also used to initiate a connection request to the corresponding target live broadcast server according to the received redirection address and obtain live broadcast data.
[0057] Furthermore, the live data acquisition system 110 can be operated in a headquarters and multiple branches (such as Figure 1The live broadcast server 112 is used to provide live training content or live content forwarding, and is independently deployed in each branch; the address resolution server 111 is used to perform address resolution and redirection according to the user's source IP address, and exists in the headquarters or cloud platform and can be accessed by users of all branches; the branch terminal 113 is used to receive live training content.
[0058] Furthermore, the live data acquisition system 110 may include multiple branch terminals 113, which are distributed in various branches. Each branch may be provided with one or more branch terminals 113, and the branch terminal 113 may be a user device such as a computer or a mobile phone.
[0059] Furthermore, during the application process, the user opens the browser of the branch terminal 113 and enters a fixed domain name address (the domain name address can be the enterprise's live training domain name address) to access the enterprise's live training content. When the request reaches the back-end address resolution server 111, the address resolution server 111 matches the user's source IP address with its built-in data to obtain the address of the target live server corresponding to the user's source IP address (for example, the target live server is the live server closest to the user), and returns the address of the target live server as a response to the inquiring branch terminal 113, so that after the branch terminal 113 receives the address of the target live server, it attempts to establish a connection with the target live server, thereby accessing the data stream of the live training content on the target live server.
[0060] In summary, the present invention resolves the user's source IP address through an address resolution server, redirects the live training request to the inside of the branch, so as to achieve directional transmission and precise control of live data, make full use of local area network resources, reduce network delays and transmission problems, and improve the effect and quality of live training. In addition, the present invention redirects the live training request to the node inside the branch, reduces cross-regional data transmission, and makes the live traffic only transmitted internally, saving network bandwidth and resources, simplifying management and maintenance, and improving training efficiency and security. It has broad application prospects and market potential, and is helpful for improving the training level of enterprises.
[0061] According to an embodiment of the present invention, an embodiment of a live data acquisition method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0062] In this embodiment, a method for obtaining live broadcast data is provided. Figure 1 An address resolution server 111 in a live broadcast data acquisition system 110 is shown, the system further comprising a live broadcast server 112 and multiple branch office terminals 113; the live broadcast server 112 is independently deployed in each branch office; the address resolution server 111 is deployed in the headquarters; Figure 2 is a flow chart of a method for acquiring live broadcast data according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:
[0063] Step S201: obtaining a user access request received by a branch terminal.
[0064] Furthermore, when accessing live data, the user first enters a fixed domain name address through the browser of the branch terminal to form a user access request to access the company's live training content. The back end of the fixed domain name address is actually connected to the address resolution server of the headquarters (that is, the domain name address indicates the address resolution server). When the user issues an access request, the access request is first sent to the address resolution server.
[0065] Step S202: parsing the user access request to obtain the user source IP address corresponding to the user access request.
[0066] Furthermore, when a user accesses the live training content of the enterprise through a browser of a branch terminal and issues a user access request, the user access request also includes the user's source IP address.
[0067] Exemplarily, the user source IP address can be automatically included in the HTTP header information when the browser initiates a user access request, which is used to identify the location of the branch terminal that initiates the access request in the network. Therefore, in order to obtain the user source IP address corresponding to the user access request, the header information of the HTTP request can be parsed to obtain the user source IP address.
[0068] Step S203, matches the user's source IP address with the built-in data of the address resolution server, and returns the redirection address of the corresponding target live broadcast server to the branch terminal based on the matching result; so that the branch terminal initiates a connection request to the corresponding target live broadcast server according to the redirection address and obtains the live broadcast data.
[0069] Furthermore, the built-in data of the address resolution server includes the user IP address of each branch terminal and the web address of the live broadcast server corresponding to the user IP address. The matching judgment result is whether the built-in data of the address resolution server has the redirection address of the target live broadcast server corresponding to the user source IP address.
[0070] Exemplarily, this embodiment can set a corresponding relationship between the user IP address of the branch terminal and the web address of the live broadcast server based on the distance condition. For example, this embodiment determines the web address of the nearest live broadcast server as the redirection address corresponding to the user IP address that issues the access request, so that the branch terminal can initiate a connection request to the corresponding target live broadcast server according to the redirection address, and can connect to the target live broadcast server and obtain the live broadcast data in the target live broadcast server.
[0071] In summary, the present invention resolves the user's source IP address through an address resolution server, redirects the live training request to the inside of the branch, so as to achieve directional transmission and precise control of live data, make full use of local area network resources, reduce network delays and transmission problems, and improve the effect and quality of live training. In addition, the present invention redirects the live training request to the node inside the branch, reduces cross-regional data transmission, and makes the live traffic only transmitted internally, saving network bandwidth and resources, simplifying management and maintenance, and improving training efficiency and security. It has broad application prospects and market potential, and is helpful for improving the training level of enterprises.
[0072] In this embodiment, another method for obtaining live data is provided, which is applied to Figure 1 An address resolution server 111 in a live broadcast data acquisition system 110 is shown, the system further comprising a live broadcast server 112 and multiple branch office terminals 113; the live broadcast server 112 is independently deployed in each branch office; the address resolution server 111 is deployed in the headquarters; Figure 3 is a flowchart of another method for acquiring live data according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:
[0073] Step S301: Obtain the user access request received by the branch terminal. Figure 2 Step S201 of the illustrated embodiment will not be described in detail here.
[0074] Step S302: parsing the user access request to obtain the user source IP address corresponding to the user access request.
[0075] For details, please see Figure 2 Step S202 of the illustrated embodiment will not be described in detail here.
[0076] Step S303, split the user source IP address and retain the first three IP addresses of the user source IP address.
[0077] For further information, see Figure 4A flowchart of another live broadcast data acquisition method is shown. In this embodiment, after the user accesses, the user's source IP address needs to be parsed and split according to ".". The first three digits (the first three octets) of the user's source IP address are retained for comparison to determine which branch's live broadcast server the user should be redirected to.
[0078] Step S304, matching the first three IP addresses of the user's source IP address with the mapping relationship table to obtain the target live broadcast server corresponding to the first three IP addresses.
[0079] In an optional implementation, the built-in data of the address resolution server includes a mapping relationship table between the user IP address and the live broadcast server of the branch; the user source IP address is a four-octet address, and the first three IP addresses are the first three octets of the user source IP address.
[0080] Furthermore, the address resolution server matches the first three IP addresses obtained by analysis with a built-in mapping table or database, which contains the correspondence between the IP address prefix (i.e. the first three IP addresses of the user's source IP address) and the web address of the branch's live broadcast server.
[0081] Step S305, when the target live broadcast server corresponding to the first three IP addresses exists in the mapping relationship table, the web page address of the target live broadcast server is determined as the redirection address, and the redirection address is returned to the branch terminal; so that the branch terminal initiates a connection request to the corresponding target live broadcast server according to the redirection address and obtains the live broadcast data.
[0082] Furthermore, if the address resolution server finds a record matching the first three digits of the user's IP address in the built-in data, the web address of the corresponding target live broadcast server is returned to the user's branch terminal as a response to redirect it. The branch terminal that issued the access request requests the web address of the corresponding internal live broadcast server according to the received redirection address and starts watching the live broadcast content.
[0083] In summary, the present invention resolves the user's source IP address through an address resolution server, redirects the live training request to the inside of the branch, so as to achieve directional transmission and precise control of live data, make full use of local area network resources, reduce network delays and transmission problems, and improve the effect and quality of live training. In addition, the present invention redirects the live training request to the node inside the branch, reduces cross-regional data transmission, and makes the live traffic only transmitted internally, saving network bandwidth and resources, simplifying management and maintenance, and improving training efficiency and security. It has broad application prospects and market potential, and is helpful for improving the training level of enterprises.
[0084] In addition, the present invention automatically selects the designated live broadcast server node according to the geographical location, which reduces the workload of manual intervention and management and simplifies the management and maintenance of the system; by redirecting according to the user's source IP address, accurate control and management of the live broadcast training content can be achieved to prevent unauthorized access and leakage.
[0085] In this embodiment, another method for obtaining live broadcast data is provided, which is applied to Figure 1 A branch terminal 113 in a live broadcast data acquisition system 110 is shown, the system further comprising a live broadcast server 112 and an address resolution server 111; the live broadcast server 112 is independently deployed in each branch; the address resolution server 111 is deployed in the headquarters; Figure 5 is a flowchart of another method for acquiring live data according to an embodiment of the present invention. Figure 5 As shown, the process includes the following steps:
[0086] Step S501, receiving a user access request input by a user, and sending the user access request to the address resolution server; so that the address resolution server resolves the user access request and obtains the user source IP address corresponding to the user access request; matches the user source IP address with the built-in data of the address resolution server, and returns the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result.
[0087] In an optional implementation, the step S501 includes:
[0088] A user access request input by a user is received through the browser of the branch terminal.
[0089] Step S502: Initiate a connection request to the corresponding target live broadcast server according to the received redirection address, and obtain live broadcast data.
[0090] Furthermore, the browser of the branch terminal receives a redirection address from the address resolution server, which points to the web address of the internal live broadcast server. The browser of the branch terminal initiates a connection request to the target live broadcast server according to the received web address. After receiving the request from the user terminal, the live broadcast server verifies the legitimacy of the request and the user's authority, and after the verification is passed, establishes a stable connection between the branch terminal and the target live broadcast server for transmitting the data stream of the live broadcast content, so that the branch user can watch the live broadcast content through the browser of the branch terminal.
[0091] In summary, the present invention resolves the user's source IP address through an address resolution server, redirects the live training request to the inside of the branch, so as to achieve directional transmission and precise control of live data, make full use of local area network resources, reduce network delays and transmission problems, and improve the effect and quality of live training. In addition, the present invention redirects the live training request to the node inside the branch, reduces cross-regional data transmission, and makes the live traffic only transmitted internally, saving network bandwidth and resources, simplifying management and maintenance, and improving training efficiency and security. It has broad application prospects and market potential, and is helpful for improving the training level of enterprises.
[0092] In addition, the present invention automatically selects the designated live broadcast server node according to the geographical location, which reduces the workload of manual intervention and management and simplifies the management and maintenance of the system; by redirecting according to the user's source IP address, accurate control and management of the live broadcast training content can be achieved to prevent unauthorized access and leakage.
[0093] In this embodiment, a live data acquisition device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0094] This embodiment provides a live broadcast data acquisition device, such as Figure 6 As shown, including:
[0095] A user access request acquisition module 601 is used to acquire a user access request received by a branch terminal;
[0096] A user source IP address acquisition module 602 is used to parse the user access request to obtain the user source IP address corresponding to the user access request;
[0097] The redirection address acquisition module 603 is used to match the user's source IP address with the built-in data of the address resolution server, and return the redirection address of the corresponding target live broadcast server to the branch terminal based on the matching result; so that the branch terminal can initiate a connection request to the corresponding target live broadcast server according to the redirection address and obtain live broadcast data.
[0098] In some optional implementations, the built-in data includes a mapping relationship table between the user IP address and the live broadcast server of the branch; the redirection address acquisition module 603 is also used to:
[0099] Split the user's source IP address and retain the first three IP addresses of the user's source IP address;
[0100] The first three IP addresses of the user's source IP address are matched with the mapping relationship table to obtain the target live broadcast server corresponding to the first three IP addresses.
[0101] In some optional implementations, the user source IP address is a four-octet address, and the first three octets of the IP address are the first three octets of the user source IP address.
[0102] In some optional implementations, the redirection address acquisition module 603 is further used to:
[0103] When the target live broadcast server corresponding to the first three IP addresses exists in the mapping relationship table, the webpage address of the target live broadcast server is determined as the redirection address, and the redirection address is returned to the branch terminal.
[0104] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0105] This embodiment provides another live data acquisition device, such as Figure 7 As shown, including:
[0106] The user access request sending module 701 is used to receive a user access request input by a user, and send the user access request to the address resolution server; so that the address resolution server resolves the user access request and obtains the user source IP address corresponding to the user access request; matches the user source IP address with the built-in data of the address resolution server, and returns the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result;
[0107] The live broadcast data acquisition module 702 is used to initiate a connection request to the corresponding target live broadcast server according to the received redirection address and acquire the live broadcast data.
[0108] In some optional implementations, the live broadcast data acquisition module 702 is further used to:
[0109] A user access request input by a user is received through the browser of the branch terminal.
[0110] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.
[0111] The embodiment of the present invention also provides a computer device, see Figure 8 , Figure 8 is a schematic diagram of the structure of a computer device provided by an optional embodiment of the present invention, such as Figure 8 As shown, the computer device includes: one or more processors 810, memory 820, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides part of the necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 8 A processor 810 is taken as an example.
[0112] The processor 810 may be a central processing unit, a network processor or a combination thereof. The processor 810 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable logic gate array, a general purpose array logic or any combination thereof.
[0113] The memory 820 stores instructions executable by at least one processor 810, so that the at least one processor 810 executes the method shown in the above embodiment.
[0114] The memory 820 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 820 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 820 may optionally include a memory remotely arranged relative to the processor 810, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0115] The memory 820 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 820 may also include a combination of the above types of memory.
[0116] The computer device also includes a communication interface 830 for the computer device to communicate with other devices or a communication network.
[0117] The embodiment of the present invention also provides a computer-readable storage medium. The method according to the embodiment of the present invention can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium through a network download, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state hard disk, etc.; further, the storage medium can also include a combination of the above types of memories. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.
[0118] A part of the present invention may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present invention through the operation of the computer. Those skilled in the art should understand that the existence of the computer program instruction in a computer-readable medium includes, but is not limited to, a source file, an executable file, an installation package file, etc., and accordingly, the way in which the computer program instruction is executed by the computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium may be any available computer-readable storage medium or communication medium accessible to the computer.
[0119] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for acquiring live broadcast data, characterized in that: The method is applied to an address resolution server in a live broadcast data acquisition system, the system further comprising a live broadcast server and multiple branch office terminals; the live broadcast server is independently deployed in each branch office; The address resolution server is deployed at the headquarters; The method comprises: Obtaining user access requests received by branch terminals; Parsing the user access request to obtain a user source IP address corresponding to the user access request; The user's source IP address is matched with the built-in data of the address resolution server, and the redirection address of the corresponding target live broadcast server is returned to the branch terminal based on the matching result; so that the branch terminal initiates a connection request to the corresponding target live broadcast server according to the redirection address and obtains the live broadcast data.
2. The method according to claim 1, characterized in that The built-in data includes a mapping relationship table between the user IP address and the live broadcast server of the branch; the matching judgment between the user source IP address and the built-in data of the address resolution server includes: Split the user's source IP address and retain the first three IP addresses of the user's source IP address; The first three IP addresses of the user's source IP address are matched with the mapping relationship table to obtain the target live broadcast server corresponding to the first three IP addresses.
3. The method according to claim 2, characterized in that The user source IP address is a four-octet address, and the first three octets of the IP address are the first three octets of the user source IP address.
4. The method according to claim 2, characterized in that: The method of returning the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching judgment result includes: When the target live broadcast server corresponding to the first three IP addresses exists in the mapping relationship table, the webpage address of the target live broadcast server is determined as the redirection address, and the redirection address is returned to the branch terminal.
5. A method for acquiring live broadcast data, characterized in that: The method is applied to a branch terminal in a live broadcast data acquisition system, the system also comprising a live broadcast server and an address resolution server; The live broadcast server is independently deployed in each branch; The address resolution server is deployed at the headquarters; The method comprises: Receive a user access request input by a user, and send the user access request to the address resolution server; so that the address resolution server resolves the user access request and obtains a user source IP address corresponding to the user access request; matches the user source IP address with the built-in data of the address resolution server, and returns the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result; According to the received redirection address, a connection request is initiated to the corresponding target live broadcast server, and live broadcast data is obtained.
6. The method according to claim 5, characterized in that The receiving a user access request input by a user comprises: A user access request input by a user is received through the browser of the branch terminal.
7. A live broadcast data acquisition device, characterized in that: The device is applied to an address resolution server in a live broadcast data acquisition system, the system also includes a live broadcast server and multiple branch office terminals; the live broadcast server is independently deployed in each branch office; The address resolution server is deployed at the headquarters; The device comprises: A user access request acquisition module, used to acquire user access requests received by a branch terminal; A user source IP address acquisition module, used to parse the user access request to obtain the user source IP address corresponding to the user access request; The redirection address acquisition module is used to match the user's source IP address with the built-in data of the address resolution server, and return the redirection address of the corresponding target live broadcast server to the branch terminal based on the matching result; so that the branch terminal can initiate a connection request to the corresponding target live broadcast server according to the redirection address and obtain live broadcast data.
8. A live broadcast data acquisition device, characterized in that: The device is applied to a branch terminal in a live broadcast data acquisition system, the system also includes a live broadcast server and an address resolution server; the live broadcast server is independently deployed in each branch; The address resolution server is deployed at the headquarters; The device comprises: A user access request sending module is used to receive a user access request input by a user, and send the user access request to the address resolution server; so that the address resolution server resolves the user access request and obtains the user source IP address corresponding to the user access request; matches the user source IP address with the built-in data of the address resolution server, and returns the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result; The live broadcast data acquisition module is used to initiate a connection request to the corresponding target live broadcast server according to the received redirection address and obtain the live broadcast data.
9. A live broadcast data acquisition system, characterized in that: The system includes an address resolution server, a live broadcast server and multiple branch terminals; the live broadcast server is independently deployed in each branch; the address resolution server is deployed in the headquarters; The branch terminal is used to receive a user access request input by a user and send the user access request to the address resolution server; The address resolution server is used to resolve the user access request to obtain the user source IP address corresponding to the user access request; match the user source IP address with the built-in data of the address resolution server, and return the corresponding redirection address of the target live broadcast server to the branch terminal based on the matching result; The branch terminal is also used to initiate a connection request to the corresponding target live broadcast server according to the received redirection address and obtain live broadcast data.
10. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes a live broadcast data acquisition method according to any one of claims 1 to 6 by executing the computer instructions.
