CN114615272B - Method and system for scheduling media data forwarding server - Google Patents

Method and system for scheduling media data forwarding server Download PDF

Info

Publication number
CN114615272B
CN114615272B CN202210111539.9A CN202210111539A CN114615272B CN 114615272 B CN114615272 B CN 114615272B CN 202210111539 A CN202210111539 A CN 202210111539A CN 114615272 B CN114615272 B CN 114615272B
Authority
CN
China
Prior art keywords
terminal
server
media data
cluster
scheduling
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210111539.9A
Other languages
Chinese (zh)
Other versions
CN114615272A (en
Inventor
张靖磊
程用学
朱龙
丁林超
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Huacheng Software Technology Co Ltd
Original Assignee
Hangzhou Huacheng Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huacheng Software Technology Co Ltd filed Critical Hangzhou Huacheng Software Technology Co Ltd
Priority to CN202210111539.9A priority Critical patent/CN114615272B/en
Publication of CN114615272A publication Critical patent/CN114615272A/en
Application granted granted Critical
Publication of CN114615272B publication Critical patent/CN114615272B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a method, a system, an electronic device and a storage medium for scheduling a media data forwarding server, wherein the method for scheduling the media data forwarding server is used for acquiring a media data request message initiated by a first terminal to a second terminal; distributing a first-level server cluster for the second terminal according to the address of the second terminal; determining a second server cluster in the first server cluster according to an operator to which the second terminal belongs, and distributing a second server for the first terminal in the second server cluster; distributing a first server for the first terminal according to the second server; the media data generated by the second terminal is forwarded to the first server through the second server, and the media data is forwarded to the first terminal through the first server, so that the problems that the single-wire server is slower in data transmission and unstable in connection when a user accesses data from different network operators are solved, the response time is reduced, and the stability of network connection is ensured.

Description

Method and system for scheduling media data forwarding server
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, a system, an electronic device, and a storage medium for scheduling a media data forwarding server.
Background
At present, the video monitoring function of security equipment is widely used by household and enterprise users, real-time video preview can be carried out by simply adding equipment through an APP, alarm information notification and alarm video watching play a critical role in the fields of households, shops and the like. The media forwarding function is the most important function in security video monitoring, the user experience is also of great importance, and the server deployment is also required to be accessed and deployed nearby as much as possible.
At present, a server of a cloud manufacturer is mostly used for service deployment, so that the aim of rapid deployment is fulfilled. The server of the cloud manufacturer provides BGP (border gateway protocol) network access function, and the BGP server adopts a multi-line fusion technology, comprises telecommunication, network communication and mobile integration into one IP address (Internet Protocol Address ) and can easily realize single IP high-speed access. However, the price of BGP networks on cloud servers often exceeds the price of single-wire servers, and BGP networks are not necessarily available in self-built operator rooms. From the cost point of view, a single-wire server is selected as the media forwarding server. However, the single-wire server has slower data transmission and unstable connection when users access data from different network operators, and cannot well meet the access requirements of all line users.
Aiming at the problems that the single-wire server in the related art has slower data transmission and unstable connection when users access data from different network operators, no effective solution is proposed at present.
Disclosure of Invention
In this embodiment, a method, a system, an electronic device, and a storage medium for scheduling a media data forwarding server are provided, so as to solve the problems that in the related art, when a user accesses data from different network operators, a single-line server has slower data transmission and unstable connection.
In a first aspect, in this embodiment, there is provided a method for scheduling a media data forwarding server, where the method includes:
Acquiring a media data request message initiated by a first terminal, determining a second terminal according to the media data request message, and distributing a first-level server cluster for the second terminal according to the address of the second terminal, wherein the second terminal stores media data;
determining an operator to which the second terminal belongs according to the terminal identifier of the second terminal, determining a secondary server cluster in the primary server cluster according to the operator to which the second terminal belongs, and distributing a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal;
distributing a first server to the first terminal according to the second server, wherein the first server is in communication connection with the second server;
the media data generated by the second terminal is forwarded to the first server via the second server, and the media data is forwarded to the first terminal via the first server.
In some of these embodiments, the server cluster includes a plurality of sub-clusters, and assigning a primary server cluster to the second terminal according to an address of the second terminal includes:
determining at least one sub-cluster according to the address of the second terminal, and acquiring the resource allocation condition of the sub-cluster of the address of the second terminal;
And distributing the primary server cluster for the second terminal in the at least one sub-cluster according to the resource distribution condition of the sub-cluster of the address where the second terminal is located.
In some embodiments, allocating a second server to the first terminal in the secondary server cluster according to the terminal identification of the second terminal includes:
Acquiring a device serial number of the second terminal according to the terminal identifier of the second terminal;
and distributing a second server for the first terminal in the second server cluster according to the equipment serial number of the second terminal.
In some of these embodiments, assigning the second server to the first terminal in the secondary server cluster according to the device serial number of the second terminal includes:
And storing the identifiers of the servers in the secondary server cluster one by one into a plurality of preset storage spaces, determining a target storage space in the plurality of preset storage spaces according to the equipment serial number of the second terminal, and determining the second server according to the server identifiers stored in the target storage space.
In some of these embodiments, assigning the first terminal to the first server according to the second server includes:
Determining a second-level server cluster of the first terminal in the first-level server cluster according to the first-level server cluster distributed for the second terminal and an operator to which the first terminal belongs;
and distributing a first server for the first terminal in a second-level service cluster of the first terminal.
In some of these embodiments, assigning the first server to the first terminal in the second-level service cluster of the first terminal includes:
Acquiring a device serial number of the second terminal according to the terminal identifier of the second terminal;
And storing the identifiers of all servers in the secondary server cluster of the first terminal into a plurality of preset storage spaces one by one, determining a target storage space in the plurality of preset storage spaces according to the equipment serial number of the second terminal, and determining the first server according to the server identifiers stored in the target storage space.
In some of these embodiments, forwarding media data generated by the second terminal to the first server via the second server includes:
obtaining a mapping relation table of a port and a server, and obtaining a port for data transmission between the first server and the second server according to the mapping relation table, the first server and the second server;
The media data generated by the second terminal is sent to the first server through the port by the second server.
In some embodiments, the media data request message initiated by the first terminal includes a terminal identification of the first terminal and a terminal identification of the second terminal, wherein the terminal identification includes an IP address.
In a second aspect, in this embodiment, there is provided a media data forwarding server scheduling system, including: the scheduling center is in communication connection with the server cluster, and is used for executing the scheduling method of the media data forwarding server in the first aspect.
In some of these embodiments, the media data forwarding server scheduling system further comprises:
and the first terminals and the second terminals are respectively connected with the dispatching center in a communication way.
In a third aspect, in this embodiment, there is provided an electronic device, including a memory, a processor, and a computer program stored on the memory and executable on the processor, where the processor implements the method for scheduling a media data forwarding server according to the first aspect.
In a fourth aspect, in this embodiment, there is provided a storage medium having stored thereon a computer program that, when executed by a processor, implements the media data forwarding server scheduling method of the first aspect described above.
Compared with the related art, the method, the system, the electronic device and the storage medium for scheduling the media data forwarding server provided in the embodiment determine a second terminal according to a media data request message initiated by a first terminal by acquiring the media data request message, and allocate a primary server cluster for the second terminal according to an address of the second terminal, wherein the second terminal stores media data; determining an operator to which the second terminal belongs according to the terminal identifier of the second terminal, determining a secondary server cluster in the primary server cluster according to the operator to which the second terminal belongs, and distributing a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal; distributing a first server to the first terminal according to the second server, wherein the first server is in communication connection with the second server; the media data generated by the second terminal is forwarded to the first server through the second server, and the media data is forwarded to the first terminal through the first server, so that the problems that in the related art, when a user accesses data from different network operators, the single-wire server is slow in data transmission and unstable in connection are solved, the response time is reduced, and the stability of network connection is guaranteed.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the other features, objects, and advantages of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
Fig. 1 is a block diagram of a hardware structure of a terminal of a media data forwarding server scheduling method according to an embodiment of the present application;
Fig. 2 is a flow chart of a method for scheduling a media data forwarding server according to an embodiment of the present application;
FIG. 3 is a hierarchical schematic diagram of a server cluster according to an embodiment of the present application;
FIG. 4 is a schematic diagram of media data forwarding according to one embodiment of the present application;
fig. 5 is a schematic diagram of mapping relationship between ports and a server according to an embodiment of the application.
Detailed Description
The present application will be described and illustrated with reference to the accompanying drawings and examples for a clearer understanding of the objects, technical solutions and advantages of the present application.
Unless defined otherwise, technical or scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terms "a," "an," "the," "these" and similar terms in this application are not intended to be limiting in number, but may be singular or plural. The terms "comprising," "including," "having," and any variations thereof, as used herein, are intended to encompass non-exclusive inclusion; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (units) is not limited to the list of steps or modules (units), but may include other steps or modules (units) not listed or inherent to such process, method, article, or apparatus. The terms "connected," "coupled," and the like in this disclosure are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The term "plurality" as used herein means two or more. "and/or" describes an association relationship of an association object, meaning that there may be three relationships, e.g., "a and/or B" may mean: a exists alone, A and B exist together, and B exists alone. Typically, the character "/" indicates that the associated object is an "or" relationship. The terms "first," "second," "third," and the like, as referred to in this disclosure, merely distinguish similar objects and do not represent a particular ordering for objects.
The method embodiments provided in the present embodiment may be executed in a terminal, a computer, or similar computing device. For example, the method is run on a terminal, and fig. 1 is a block diagram of a hardware structure of a terminal of the media data forwarding server scheduling method of the present embodiment. As shown in fig. 1, the terminal may include one or more (only one is shown in fig. 1) processors 102 and a memory 104 for storing data, wherein the processors 102 may include, but are not limited to, a microprocessor MCU, a programmable logic device FPGA, or the like. The terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and is not intended to limit the structure of the terminal. For example, the terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store computer programs, such as software programs of application software and modules, such as a computer program corresponding to the media data forwarding server scheduling method in the present embodiment, and the processor 102 executes the computer programs stored in the memory 104 to perform various functional applications and data processing, i.e., implement the above-described method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. The network includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for scheduling a media data forwarding server is provided, and fig. 2 is a flowchart of the method for scheduling a media data forwarding server according to this embodiment, as shown in fig. 2, where the flowchart includes the following steps:
Step S201, a media data request message initiated by a first terminal is obtained, a second terminal is determined according to the media data request message, and a primary server cluster is allocated to the second terminal according to the address of the second terminal, wherein the second terminal stores media data.
The first terminal may be any terminal device capable of connecting to a network, such as a smart phone, a notebook computer, a tablet computer, etc., and the user may initiate the media data request message through an application program installed in the terminal device. The second terminal may be any networked device such as a wireless monitoring device that may store or retrieve media data. The media data request message includes identification information of the first terminal and the second terminal, and the identification information may be an IP address. Media data includes text, pictures, voice, video, and the like. The server cluster comprises a plurality of single-wire servers.
In practical application, a plurality of primary server clusters are associated to each region and city in advance according to a nearby allocation principle, after a server scheduling center acquires a media data request message, the primary server clusters which can be allocated to a second terminal are determined according to the address of the second terminal, the nearby allocation principle is followed, and the server with the shortest distance can be allocated to the second terminal as much as possible, so that the speed of sending the media data of the second terminal to the first terminal is increased.
Step S202, determining an operator to which the second terminal belongs according to the terminal identification of the second terminal, determining a secondary server cluster in the primary server cluster according to the operator to which the second terminal belongs, and distributing a second server to the first terminal in the secondary server cluster according to the terminal identification of the second terminal.
The operators include providers for providing network services such as China Mobile, china Union, china telecom, china broadcast television, and the like. And the server in the secondary server cluster determined according to the operator to which the second terminal belongs is consistent with the operator to which the second terminal belongs.
In the step, the data of the second terminal can be transmitted to the secondary server cluster only by using network services provided by a single operator, so that the data transmission efficiency and the data transmission stability are ensured.
In step S203, a first server is allocated to the first terminal according to the second server, where the first server is communicatively connected to the second server.
The first server is a server which can establish communication connection with the second server and the first terminal in the primary server cluster.
In step S204, the media data generated by the second terminal is forwarded to the first server via the second server, and the media data is forwarded to the first terminal via the first server.
Step S201 to step S204 above, firstly, determine a primary server cluster according to the address of the second terminal, secondly, determine a secondary server cluster according to the operator of the second terminal, determine a second server for receiving and forwarding media data from the second terminal from the secondary server cluster, and determine a first server for receiving and forwarding media data from the forwarded second terminal to the first terminal according to the second server, so that the media data of the second terminal is forwarded by a server with a shorter distance and higher transmission efficiency, thereby solving the problems that in the related art, when a user accesses data from different network operators, the single-wire server has slower data transmission and unstable connection, reducing response time, and ensuring stability of network connection. In addition, the solution of the present embodiment is lower in cost compared to BGP networks.
In some embodiments, the server cluster includes a plurality of sub-clusters, at least one sub-cluster is determined according to the address of the second terminal, and the resource allocation condition of the sub-cluster of the address of the second terminal is obtained; and according to the resource allocation condition of the sub-cluster of the address where the second terminal is located, allocating a first-level server cluster for the second terminal in at least one sub-cluster.
The resource allocation conditions of the plurality of sub-clusters in the server cluster are preset in the server scheduling center, and the resource allocation can be performed according to the addresses of the sub-clusters, the number of servers in the sub-clusters, the server manufacturers and other actual conditions.
Assuming that there are a subset group a and a subset group B in the server cluster, the sub-cluster a and the subset group B serve cities 1 and 2, and the allocation ratio of server resources of the subset cluster a and the subset group B in the two cities is as follows:
Geographic location Sub-cluster numbering Proportion of
City 1 Sub-cluster A 90%
City 1 Sub-cluster B 10%
City 2 Sub-cluster B 100%
For better understanding, assume that city 1 has multiple second terminals, 10 servers are needed to provide service, with these 10 servers coming from 9 servers allocated in sub-cluster a of city 1 and 1 server allocated in sub-cluster B of city 2, respectively. If a user requests to access media data of a certain second terminal in city 1, a sub-cluster A or a sub-cluster B can be selected as a primary server cluster to provide media data forwarding service for the request, and specifically, one of the sub-clusters can be selected as the primary server cluster according to the use condition of resources in cluster A and cluster B when the request is initiated. In some embodiments, the device may be further fixedly associated to a certain sub-cluster, and the primary server cluster may be determined according to the identification information of the second terminal. In some embodiments, it is also determined on which sub-cluster (primary server cluster) the server for receiving the media data of the second terminal falls on, based on the device serial number and the cluster allocation proportion.
In some embodiments, after determining the secondary server cluster in the primary server cluster according to an operator to which the second terminal belongs, acquiring a device serial number of the second terminal according to a terminal identifier of the second terminal; and distributing a second server for the first terminal in the second server cluster according to the equipment serial number of the second terminal.
The terminal identifier may be an IP address of the terminal, and device information such as a device serial number of the second terminal may be obtained according to the IP address of the second terminal.
In this embodiment, the device serial number is used as key information for associating with the server, and the corresponding second server can be determined according to the device serial number.
In some embodiments, the identifiers of the servers in the secondary server cluster are stored one by one into a plurality of preset storage spaces, a target storage space in the plurality of preset storage spaces is determined according to the equipment serial number of the second terminal, and the second server is determined according to the server identifiers stored in the target storage space.
Specifically, each server in the secondary server cluster may be sequentially stored in the array, the identifier of each server is an index of a storage position of each server in the array, after the device serial number is obtained, the location of the target server in the secondary server cluster is located according to the device serial number, or the storage space located for the first time may be used as the target storage space, and the server corresponding to the server identifier stored in the target storage space is used as the second server. If the server resources in the storage space which is positioned for the first time are occupied, so that service can not be provided any more, the storage space adjacent to the storage space which is positioned for the first time is used as a target storage space, and therefore resource balance is guaranteed.
The method of the embodiment can ensure that even if a plurality of terminals simultaneously request the media data of the second terminal, the media data of the second terminal can be forwarded to the greatest extent only through the same server, and the same media data does not need to be forwarded to the plurality of servers respectively, so that the transmission efficiency is improved while server resources are saved, and meanwhile, the balance of cluster resources can be maintained to a certain extent. In some embodiments, when the method of the present embodiment is used to determine the second server, the server forwarding path may also be stored, and when the second terminal is accessed again, the second server for forwarding the media data of the second terminal may be determined according to the previously stored server forwarding path, and when it is determined that the second server can provide the service according to the resource occupation condition of the second server, the server may be directly used for forwarding the media data of the second terminal.
In some embodiments, determining a second server cluster of the first terminal in the first server clusters according to the first server cluster allocated to the second terminal and an operator to which the first terminal belongs; and then distributing a first server for the first terminal in the second-level service cluster of the first terminal.
Specifically, the server scheduling center sets a plurality of secondary server clusters in the primary server clusters in advance for the request terminal (such as the first terminal in the embodiment) and the target terminal (such as the second terminal in the embodiment), respectively, and the secondary server clusters are differentiated according to operators.
As shown in fig. 3, which is a hierarchical schematic diagram of a server cluster, since a user initiates a request through an APP (application program) to request media data in a certain device in general, for convenience of distinction, in fig. 3, a secondary server cluster of a requesting terminal is represented by an APP side media forwarding server, and a secondary server cluster of a target terminal is represented by a device side media forwarding server.
As shown in fig. 3, a secondary server cluster is set in each sub-cluster for the APP side and the device side, and the secondary server cluster includes server clusters of multiple operators. For example, the subset group a is determined according to the address of the second terminal as a first server cluster, the second terminal belongs to the operator b, and the first terminal belongs to the operator a, then the server cluster where the operator a of the APP side media forwarding server is located in the subset group a is used as a second server cluster of the first terminal, the first server is determined in the second server cluster, the server cluster where the operator b of the device side media forwarding server is located in the subset group a is used as a second server cluster of the second terminal, and the first server is determined in the second server cluster.
Fig. 4 is a schematic diagram of media data forwarding in this embodiment, after a first terminal initiates a request message of media data of a second terminal, the media data of the second terminal is sent to an APP end through a device side media forwarding server of the second terminal and an APP side media forwarding server of the first terminal.
Further, in some embodiments, after the second server is allocated to the first terminal, acquiring the equipment serial number of the second terminal according to the terminal identifier of the second terminal; the method comprises the steps of storing identifiers of servers in a second-level server cluster of a first terminal into a plurality of preset storage spaces one by one, determining a target storage space in the plurality of preset storage spaces according to a device serial number of a second terminal, and determining a first server according to the server identifiers stored in the target storage space.
Specifically, each server in the secondary server cluster of the first terminal may be sequentially stored in the array, the identifier of each server is an index of a storage position of each server in the array, after the equipment serial number is obtained, the location of the target server in the secondary server cluster of the first terminal is located according to the equipment serial number, or the storage space located for the first time may be used as the target storage space, and the server corresponding to the server identifier stored in the target storage space is used as the first server. If the server resources in the storage space which is positioned for the first time are occupied, so that service can not be provided any more, the storage space adjacent to the storage space which is positioned for the first time is used as a target storage space, and therefore resource balance is guaranteed.
The method of the embodiment can ensure that when a plurality of first terminals simultaneously request the media data of the same second terminal, the media data of the second terminal can receive the media data forwarded by the second server to the greatest extent only through the same server and can not be forwarded to the plurality of servers respectively, so that the server resources are saved, the transmission efficiency is improved, and meanwhile, the balance of the cluster resources can be maintained to a certain extent. In some embodiments, when the method of the present embodiment is used to determine the first server, the server forwarding path may also be stored, and when the second terminal is accessed again, the first server for receiving the media data of the second server and forwarding the media data to the first terminal may be determined according to the server forwarding path stored previously, and when it is determined that the first server can provide the service according to the resource occupation condition of the first server, the server may be directly used to forward the media data sent by the second server to the first terminal.
In some embodiments, the port used for data transmission between the first server and the second server is obtained by obtaining a mapping relation table of the port and the server and according to the mapping relation table, the first server and the second server; and transmitting the media data generated by the second terminal to the first server through the port via the second server.
Fig. 5 is a schematic diagram of a mapping relationship between ports and a server, and in this embodiment, a server scheduling center sets the mapping relationship and the corresponding ports in advance. After the first server and the second server are determined, the port for data transmission between the first server and the second server can be determined according to the mapping relation and the corresponding port information.
It should be noted that the steps illustrated in the above-described flow or flow diagrams of the figures may be performed in a computer system, such as a set of computer-executable instructions, and that, although a logical order is illustrated in the flow diagrams, in some cases, the steps illustrated or described may be performed in an order other than that illustrated herein.
In this embodiment, there is also provided a media data forwarding server scheduling system, including: the scheduling center is in communication connection with the server cluster, and is used for realizing the scheduling method of the media data forwarding server in any embodiment, and description thereof is omitted.
In some of these embodiments, the media data forwarding server scheduling system further comprises at least one first terminal and at least one second terminal, wherein each first terminal and each second terminal are communicatively connected to the scheduling center, respectively.
The first terminal is used for initiating a media data request message, and the second terminal is used for storing and sending media data.
There is also provided in this embodiment an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, where the transmission device is connected to the processor, and the input/output device is connected to the processor.
Alternatively, in the present embodiment, the above-described processor may be configured to execute the following steps by a computer program:
Step S201, a media data request message initiated by a first terminal is obtained, a second terminal is determined according to the media data request message, and a primary server cluster is allocated to the second terminal according to the address of the second terminal, wherein the second terminal stores media data.
Step S202, determining an operator to which the second terminal belongs according to the terminal identification of the second terminal, determining a secondary server cluster in the primary server cluster according to the operator to which the second terminal belongs, and distributing a second server to the first terminal in the secondary server cluster according to the terminal identification of the second terminal.
In step S203, a first server is allocated to the first terminal according to the second server, where the first server is communicatively connected to the second server.
In step S204, the media data generated by the second terminal is forwarded to the first server via the second server, and the media data is forwarded to the first terminal via the first server.
It should be noted that, specific examples in this embodiment may refer to examples described in the foregoing embodiments and alternative implementations, and are not described in detail in this embodiment.
In addition, in combination with the media data forwarding server scheduling method provided in the above embodiment, a storage medium may also be provided to implement this embodiment. The storage medium has a computer program stored thereon; the computer program, when executed by a processor, implements any of the media data forwarding server scheduling methods of the above embodiments.
It should be understood that the specific embodiments described herein are merely illustrative of this application and are not intended to be limiting. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure in accordance with the embodiments provided herein.
It is to be understood that the drawings are merely illustrative of some embodiments of the present application and that it is possible for those skilled in the art to adapt the present application to other similar situations without the need for inventive work. In addition, it should be appreciated that while the development effort might be complex and lengthy, it would nevertheless be a routine undertaking of design, fabrication, or manufacture for those of ordinary skill having the benefit of this disclosure, and thus should not be construed as a departure from the disclosure.
The term "embodiment" in this disclosure means that a particular feature, structure, or characteristic described in connection with the embodiment may be included in at least one embodiment of the application. The appearances of such phrases in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive. It will be clear or implicitly understood by those of ordinary skill in the art that the embodiments described in the present application can be combined with other embodiments without conflict.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the patent claims. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.

Claims (10)

1. A method for scheduling a media data forwarding server, the method comprising:
Acquiring a media data request message initiated by a first terminal, determining a second terminal according to the media data request message, and distributing a first-level server cluster for the second terminal according to the address of the second terminal, wherein the second terminal stores media data;
Determining an operator to which the second terminal belongs according to the terminal identifier of the second terminal, determining a secondary server cluster in the primary server cluster according to the operator to which the second terminal belongs, and distributing a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal; distributing a first server to the first terminal according to the second server, wherein the first server is in communication connection with the second server;
The step of distributing the first server to the first terminal according to the second server comprises the following steps:
Determining a second-level server cluster of the first terminal in the first-level server cluster according to the first-level server cluster distributed for the second terminal and an operator to which the first terminal belongs;
distributing a first server for the first terminal in a second-level service cluster of the first terminal;
The step of distributing a first server to the first terminal in the second-level service cluster of the first terminal comprises the following steps:
Acquiring a device serial number of the second terminal according to the terminal identifier of the second terminal;
The method comprises the steps of storing identifiers of servers in a secondary server cluster of a first terminal into a plurality of preset storage spaces one by one, determining target storage spaces in the preset storage spaces according to equipment serial numbers of a second terminal, and determining the first server according to the server identifiers stored in the target storage spaces;
the media data generated by the second terminal is forwarded to the first server via the second server, and the media data is forwarded to the first terminal via the first server.
2. The method of claim 1, wherein the server cluster comprises a plurality of sub-clusters, and wherein assigning a primary server cluster to the second terminal based on the address of the second terminal comprises:
determining at least one sub-cluster according to the address of the second terminal, and acquiring the resource allocation condition of the sub-cluster of the address of the second terminal;
And distributing the primary server cluster for the second terminal in the at least one sub-cluster according to the resource distribution condition of the sub-cluster of the address where the second terminal is located.
3. The method according to claim 1, wherein assigning the second server to the first terminal in the secondary server cluster according to the terminal identification of the second terminal comprises:
Acquiring a device serial number of the second terminal according to the terminal identifier of the second terminal;
and distributing a second server for the first terminal in the second server cluster according to the equipment serial number of the second terminal.
4. A method of scheduling media data forwarding servers according to claim 3, wherein assigning a second server to the first terminal in the secondary server cluster based on the device serial number of the second terminal comprises:
And storing the identifiers of the servers in the secondary server cluster one by one into a plurality of preset storage spaces, determining a target storage space in the plurality of preset storage spaces according to the equipment serial number of the second terminal, and determining the second server according to the server identifiers stored in the target storage space.
5. The media data forwarding server scheduling method of claim 1, wherein forwarding media data generated by the second terminal to the first server via the second server comprises:
obtaining a mapping relation table of a port and a server, and obtaining a port for data transmission between the first server and the second server according to the mapping relation table, the first server and the second server;
The media data generated by the second terminal is sent to the first server through the port by the second server.
6. The method according to any one of claims 1 to 5, wherein the media data request message initiated by the first terminal comprises a terminal identification of the first terminal and a terminal identification of the second terminal, wherein the terminal identification comprises an IP address.
7. A media data forwarding server scheduling system, comprising: a scheduling center and a server cluster, the scheduling center being communicatively connected to the server cluster, the scheduling center being configured to perform the media data forwarding server scheduling method of any one of claims 1 to 6.
8. The media data forwarding server scheduling system of claim 7, further comprising:
and the first terminals and the second terminals are respectively connected with the dispatching center in a communication way.
9. An electronic device comprising a memory and a processor, wherein the memory has stored therein a computer program, the processor being arranged to run the computer program to perform the media data forwarding server scheduling method of any of claims 1 to 6.
10. A computer readable storage medium having stored thereon a computer program, characterized in that the computer program when executed by a processor realizes the steps of the media data forwarding server scheduling method of any of claims 1 to 6.
CN202210111539.9A 2022-01-29 2022-01-29 Method and system for scheduling media data forwarding server Active CN114615272B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210111539.9A CN114615272B (en) 2022-01-29 2022-01-29 Method and system for scheduling media data forwarding server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210111539.9A CN114615272B (en) 2022-01-29 2022-01-29 Method and system for scheduling media data forwarding server

Publications (2)

Publication Number Publication Date
CN114615272A CN114615272A (en) 2022-06-10
CN114615272B true CN114615272B (en) 2024-05-03

Family

ID=81859427

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210111539.9A Active CN114615272B (en) 2022-01-29 2022-01-29 Method and system for scheduling media data forwarding server

Country Status (1)

Country Link
CN (1) CN114615272B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115022411B (en) * 2022-06-16 2024-06-04 深圳市欢太科技有限公司 WebRTC-based media server scheduling system, method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262931A (en) * 2020-01-15 2020-06-09 安徽文香信息技术有限公司 Media resource deployment system, method, device, storage medium and processor
CN111314293A (en) * 2020-01-15 2020-06-19 安徽文香信息技术有限公司 Media resource service system, method, device, storage medium and processor

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331150B (en) * 2016-09-18 2018-05-18 北京百度网讯科技有限公司 For dispatching the method and apparatus of Cloud Server
US11178218B2 (en) * 2019-01-02 2021-11-16 Citrix Systems, Inc. Bidirectional communication clusters

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111262931A (en) * 2020-01-15 2020-06-09 安徽文香信息技术有限公司 Media resource deployment system, method, device, storage medium and processor
CN111314293A (en) * 2020-01-15 2020-06-19 安徽文香信息技术有限公司 Media resource service system, method, device, storage medium and processor

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《流媒体服务器负载均衡算法研究与应用》;杨炳钊;《信息科技》;20190915(第2019年第09期);全文 *
Hui Zhao ; Jing Wang ; Feng Liu ; Quan Wang ; Nan Luo ; Weizhan Zhang.《Resource Allocation for Virtual Streaming Media Server Cluster in Cloud-based Multi-version VoD》.《2018 IEEE 22nd International Conference on Computer Supported Cooperative Work in Design ((CSCWD))》.2018,全文. *

Also Published As

Publication number Publication date
CN114615272A (en) 2022-06-10

Similar Documents

Publication Publication Date Title
US11071092B2 (en) Response message transmission method and apparatus
CN102377686A (en) Message subscription system, method and device
CN103312605A (en) Gateway device identity setting method and management gateway device
CN114338594B (en) ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment
US20180332519A1 (en) Signal Strength Measurement Method And Device
JP2019500792A (en) Group multicast method, group creation method, and mobile network platform
CN111786998A (en) Authority management method and device based on micro-service calling and storage medium
CN105827687A (en) Cluster management method and management system thereof
JP7086853B2 (en) Network access methods, related equipment and systems
CN104394242A (en) IP (internet protocol) address allocation method and device
CN114615272B (en) Method and system for scheduling media data forwarding server
CN113498110B (en) Service message transmission method and related equipment
CN105656978A (en) Resource sharing method and device
CN114585026A (en) Frequency point switching method, terminal, base station and storage medium
CN102185881A (en) Household digital equipment wireless multi-protocol space sharing storage manager and method
CN106535112B (en) Method, device and system for realizing terminal access
CN110868762B (en) Data stream processing method, device and system
KR20150095507A (en) Method and apparatus for allocating ip address of machine type communication terminal
WO2015085573A1 (en) Method and device for communication using white spectrum
CN115119286B (en) Method and device for accessing equipment to network
CN114866854B (en) Video access mode dynamic allocation method, system, electronic equipment and storage medium
EP3041293A1 (en) Wtp access method, management method, apparatus and system
CN112584373A (en) Event subscription method and device
WO2023024956A1 (en) Network device management method, apparatus, and system, and storage medium
WO2015157945A1 (en) Information transmission method, device, and system

Legal Events

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