CN114615272A - Media data forwarding server scheduling method and system - Google Patents

Media data forwarding server scheduling method and system Download PDF

Info

Publication number
CN114615272A
CN114615272A CN202210111539.9A CN202210111539A CN114615272A CN 114615272 A CN114615272 A CN 114615272A CN 202210111539 A CN202210111539 A CN 202210111539A CN 114615272 A CN114615272 A CN 114615272A
Authority
CN
China
Prior art keywords
terminal
server
media data
cluster
allocating
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.)
Granted
Application number
CN202210111539.9A
Other languages
Chinese (zh)
Other versions
CN114615272B (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

Images

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 media data forwarding server scheduling method, a system, an electronic device and a storage medium, wherein the media data forwarding server scheduling method is used for acquiring a media data request message initiated from a first terminal to a second terminal; allocating a first-level server cluster to the second terminal according to the address of the second terminal; determining a secondary server cluster in the primary server cluster according to an operator to which the second terminal belongs, and distributing a second server for the first terminal in the secondary 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 data transmission is slow and connection is unstable when a user accesses data from different network operators in a single-wire server are solved, response time is shortened, and stability of network connection is guaranteed.

Description

Media data forwarding server scheduling method and system
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 families and enterprise users, real-time video preview, alarm message notification and alarm video watching can be carried out by simply adding equipment through APP, and a key effect is played in the fields of house keeping, shop watching and the like. The media forwarding function is the most important function in security video monitoring, the user experience is also very important, the deployment of the server is also required to be higher, and the access and the deployment in the near place are required to be achieved as far as possible.
At present, servers of cloud manufacturers are mostly used for service deployment, so that the purpose of rapid deployment is achieved. The server of the cloud manufacturer provides a BGP (border gateway Protocol) network access function, and the BGP server adopts a multi-line fusion technology, comprises telecommunication, Internet communication and mobile integration in an IP Address (Internet Protocol Address), and can easily realize single-IP high-speed access. However, the price of the BGP network on the cloud server often exceeds the price of the single-line server, and the BGP network is not necessarily available in the self-built operator room. From the cost perspective, a single-wire server is selected as the media forwarding server. However, when a user accesses data from different network operators, the single-wire server has slow data transmission and unstable connection, and cannot well meet the access requirements of all line users.
Aiming at the problems that in the prior art, when a single-wire server accesses data from different network operators, data transmission is slow and connection is unstable, an effective solution is not provided at present.
Disclosure of Invention
The embodiment provides a media data forwarding server scheduling method, a media data forwarding server scheduling system, an electronic device and a storage medium, so as to solve the problems that a single-line server in the related art has slow data transmission and unstable connection when a user accesses data from different network operators.
In a first aspect, in this embodiment, a method for scheduling a media data forwarding server is provided, 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 allocating a primary server cluster to 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 allocating a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal;
allocating 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 embodiments, the server cluster includes a plurality of sub-clusters, and allocating a primary server cluster to the second terminal according to the 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 of these embodiments, assigning a second server to the first terminal in the secondary server cluster based on the terminal identification of the second terminal comprises:
acquiring the equipment 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 secondary server cluster according to the equipment serial number of the second terminal.
In some of these embodiments, 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 identification of each server in the secondary server cluster 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 second server according to the server identification stored in the target storage space.
In some embodiments, assigning the first terminal to the first server according to the second server comprises:
determining a secondary server cluster of the first terminal in the primary server cluster according to a primary server cluster distributed for the second terminal and an operator to which the first terminal belongs;
and allocating a first server to the first terminal in the secondary service cluster of the first terminal.
In some embodiments, assigning a first server to the first terminal in the secondary service cluster of the first terminal comprises:
acquiring the equipment serial number of the second terminal according to the terminal identifier of the second terminal;
and storing the identification of each server 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 identification stored in the target storage space.
In some embodiments, forwarding, via the second server, the media data generated by the second terminal to the first server comprises:
acquiring a mapping relation table of a port and a server, and acquiring 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;
and 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 identifier of the first terminal and a terminal identifier of the second terminal, where the terminal identifiers include IP addresses.
In a second aspect, in this embodiment, a media data forwarding server scheduling system is provided, including: the scheduling center is in communication connection with the server cluster, and the scheduling center is configured to execute the media data forwarding server scheduling method according to the first aspect.
In some of these embodiments, the media data forwarding server scheduling system further comprises:
the system comprises at least one first terminal and at least one second terminal, wherein each first terminal and each second terminal are respectively in communication connection with the dispatching center.
In a third aspect, in this embodiment, an electronic device is provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the scheduling method of the media data forwarding server according to the first aspect is implemented.
In a fourth aspect, in the present embodiment, a storage medium is provided, on which a computer program is stored, which when executed by a processor implements the media data forwarding server scheduling method according to the first aspect.
Compared with the related art, the media data forwarding server scheduling method, system, electronic device and storage medium provided in this embodiment determine a second terminal according to a media data request message initiated by a first terminal by obtaining the media data request message, and allocate a primary server cluster to the second terminal according to an address of the second terminal, where 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 allocating a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal; allocating 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 prior art, when a user accesses data from different network operators, a single-wire server is slow in data transmission and unstable in connection are solved, the response time is shortened, and the stability of network connection is ensured.
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 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 application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a block diagram of a hardware structure of a terminal of a scheduling method of a media data forwarding server according to an embodiment of the present application;
fig. 2 is a flowchart of a scheduling method of 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 an embodiment of the present application;
fig. 5 is a schematic diagram of a mapping relationship between a port and a server according to an embodiment of the present application.
Detailed Description
For a clearer understanding of the objects, aspects and advantages of the present application, reference is made to the following description and accompanying drawings.
Unless defined otherwise, technical or scientific terms referred to herein shall have the same general meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of this application do not denote a limitation of quantity, either in the singular or the plural. The terms "comprises," "comprising," "has," "having," and any variations thereof, as referred to in this application, are intended to cover non-exclusive inclusions; for example, a process, method, and system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to the listed steps or modules, but may include other steps or modules (elements) not listed or inherent to such process, method, article, or apparatus. Reference in this application to "connected," "coupled," and the like is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference to "a plurality" in this application means two or more. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. In general, the character "/" indicates a relationship in which the objects associated before and after are an "or". The terms "first," "second," "third," and the like in this application are used for distinguishing between similar items and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the present embodiment may be executed in a terminal, a computer, or a similar computing device. For example, the method is executed on a terminal, and fig. 1 is a block diagram of a hardware structure of the terminal according to the scheduling method of the media data forwarding server in this embodiment. As shown in fig. 1, the terminal may include one or more processors 102 (only one shown in fig. 1) and a memory 104 for storing data, wherein the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA. The terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those of ordinary skill in the art that the structure shown in fig. 1 is merely an illustration and is not intended to limit the structure of the terminal described above. 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 a computer program, for example, a software program of an application software and a module, such as a computer program corresponding to the scheduling method of the media data forwarding server in the embodiment, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The 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 located remotely from the processor 102, which may be connected to the terminal over 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 described above includes a wireless network provided by a communication provider of the terminal. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected 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 used to communicate with the internet in a wireless manner.
Fig. 2 is a flowchart of a scheduling method of a media data forwarding server in this embodiment, and as shown in fig. 2, the flowchart includes the following steps:
step S201, acquiring a media data request message initiated by a first terminal, determining a second terminal according to the media data request message, and allocating a primary server cluster to the second terminal according to an address of the second terminal, where the second terminal stores media data.
The first terminal can be any terminal device capable of connecting with a network, such as a smart phone, a notebook computer, a tablet computer, and the like, and a user can initiate a 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 can 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, etc. The server cluster comprises a plurality of single-line servers.
In practical application, a plurality of primary server clusters are associated to each region and city in advance according to a near allocation principle, after a server scheduling center obtains 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, and the server with the shortest distance can be allocated to the second terminal as far as possible according to the near allocation principle so as to accelerate the speed of sending the media data of the second terminal to a first terminal.
Step S202, 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 allocating a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal.
The operators comprise providers providing network services such as China Mobile, China Unicom, China telecom, China radio and television, etc. 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 by only using the network service provided by a single operator, so that the data transmission efficiency and the data transmission stability are ensured.
Step S203, allocating 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 first server is a server which can establish communication connection with the second server and the first terminal in the primary server cluster.
Step S204, forwarding the media data generated by the second terminal to the first server via the second server, and forwarding the media data to the first terminal via the first server.
In the above steps S201 to S204, first, the primary server cluster is determined according to the address of the second terminal, then, the secondary server cluster is determined according to the operator of the second terminal, the second server for receiving and forwarding the media data from the second terminal is determined from the secondary server cluster, and then, the first server for receiving and forwarding the media data of the second terminal is determined according to the second server and forwarding the media data to the first terminal, so that the media data of the second terminal is forwarded by the server with shorter distance and higher transmission efficiency. In addition, the solution of the embodiment has lower cost compared with the BGP network.
In some embodiments, the server cluster includes a plurality of sub-clusters, determines at least one sub-cluster according to the address of the second terminal, and obtains the resource allocation condition of the sub-cluster of the address where the second terminal is located; and allocating a primary server cluster for the second terminal in at least one sub-cluster according to the resource allocation condition of the sub-cluster of the address where the second terminal is located.
The resource allocation conditions of a plurality of sub-clusters in the server cluster are preset in the server scheduling center, and the resource allocation can be carried out according to the actual conditions of addresses of the sub-clusters, the number of servers in the sub-clusters, server manufacturers and the like.
Assuming that there are a sub-cluster a and a sub-cluster B in the server cluster, and a city 1 and a city 2 are served by the sub-cluster a and the sub-cluster B, the allocation ratio of the server resources of the sub-cluster a and the sub-cluster B in the two cities is as follows:
geographic location Sub-cluster numbering Ratio of
City 1 Sub-cluster A 90%
City 1 Sub-cluster B 10%
City 2 Sub-cluster B 100%
For easier understanding, it is assumed that city 1 has a plurality of second terminals, and 10 servers are required to provide services, and the 10 servers are respectively from 9 servers allocated in the sub-cluster a of city 1 and 1 server allocated in the sub-cluster B of city 2. If a user requests to access media data of a second terminal in the city 1, the sub-cluster a or the sub-cluster B may be selected as a primary server cluster to provide media data forwarding service for the request, and specifically, one of the sub-clusters may be selected as the primary server cluster according to the use of resources in the cluster a and the cluster B when the request is initiated. In some embodiments, the device may be further fixedly associated with a certain sub-cluster, and the primary server cluster may be determined according to the identification information of the second terminal. In some embodiments, which sub-cluster (primary server cluster) the server for receiving the media data of the second terminal falls into is also determined according to the device serial number and the cluster allocation ratio.
In some embodiments, after determining a secondary server cluster in a primary server cluster according to an operator to which a second terminal belongs, an equipment serial number of the second terminal is obtained according to a terminal identifier of the second terminal; and allocating a second server to the first terminal in the secondary server cluster according to the equipment serial number of the second terminal.
The terminal identifier may be an IP address of the terminal, and the 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 associated 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 into the preset storage spaces one by one, a target storage space in the 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 identifier stored in the target storage space.
Specifically, each server in the secondary server cluster may be sequentially stored in the array, an identifier of each server is an index of a storage location of each server in the array, and 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, where the storage space located for the first time may be used as the target storage space, and a server corresponding to the server identifier stored in the target storage space is used as the second server. And if the server resources in the initially positioned storage space are occupied so that the service cannot be provided any more, taking the storage space adjacent to the initially positioned storage space as a target storage space, thereby ensuring resource balance.
The method of the embodiment can ensure that even if a plurality of terminals request the media data of the second terminal at the same time, the media data of the second terminal can be forwarded to the greatest extent only through the same server without respectively forwarding the same media data to a plurality of servers, so that the transmission efficiency is improved while the server resources are saved, and the balance of cluster resources can be maintained to a certain extent. In some embodiments, when the method of this embodiment is used to determine the second server, the server forwarding path may also be stored, 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 a service according to the resource occupation condition of the second server, the server may be directly used to forward the media data of the second terminal.
In some embodiments, a secondary server cluster of a first terminal is determined in a primary server cluster according to a primary server cluster allocated to a second terminal and an operator to which the first terminal belongs; and then distributing a first server for the first terminal in the secondary service cluster of the first terminal.
Specifically, the server scheduling center sets a plurality of secondary server clusters in advance in the primary server cluster for the requesting terminal (e.g., the first terminal in this embodiment) and the target terminal (e.g., the second terminal in this embodiment), respectively, and the secondary server clusters are distinguished according to different operators.
As shown in fig. 3, which is a hierarchical schematic diagram of a server cluster, in general, a user initiates a request through an APP (application program) to request media data in a certain device, and 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 respectively 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, it is determined that the sub-cluster a is a first-level server cluster according to an address of the second terminal, the second terminal belongs to an operator b, and the first terminal belongs to an operator a, a server cluster in which the operator a of the APP-side media forwarding server is located in the sub-cluster a is a second-level server cluster of the first terminal, and a first server is determined in the second-level server cluster, a server cluster in which the operator b of the device-side media forwarding server in the sub-cluster a is located is a second-level server cluster of the second terminal, and the first server is determined in the second-level server cluster.
As shown in fig. 4, which is a schematic diagram of forwarding media data 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 via 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, the device serial number of the second terminal is obtained according to the terminal identifier of the second terminal; the method comprises the steps of storing identification of each server in a secondary 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 a server identification stored in the target storage space.
Specifically, the servers in the secondary server cluster of the first terminal may be sequentially stored in an array, the identifier of each server is an index of the storage location of each server in the array, and after the device serial number is obtained, the location of the target server is located in the secondary server cluster of the first terminal according to the device serial number, where the storage space located for the first time is used as a target storage space, and the server corresponding to the server identifier stored in the target storage space is used as the first server. And if the server resources in the initially positioned storage space are occupied so that the service cannot be provided any more, taking the storage space adjacent to the initially positioned storage space as a target storage space, thereby ensuring resource balance.
The method of the embodiment can ensure that when a plurality of first terminals request the same media data of the second terminal at the same time, 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 cannot be forwarded to a plurality of servers respectively, so that the server resources are saved, the transmission efficiency is improved, and the balance of cluster resources can be maintained to a certain extent. In some embodiments, when the method of this embodiment is used to determine the first server, the server forwarding path may also be stored, 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 previously stored server forwarding path, and when it is determined that the first server can provide a 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, a port for data transmission between a first server and a second server is obtained by obtaining a mapping relation table between the port and the server, and obtaining the port according to the mapping relation table, the first server and the second server; and sending the media data generated by the second terminal to the first server through the port via the second server.
As shown in fig. 5, which is a schematic diagram of a mapping relationship between a port and a server, in this embodiment, a server scheduling center sets the mapping relationship and a corresponding port 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 diagrams or in the 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 different than here.
In this embodiment, a media data forwarding server scheduling system is further provided, including: the scheduling center is in communication connection with the server cluster, and the scheduling center is used for implementing the media data forwarding server scheduling method according to any of the above embodiments, which has already been described and is not described again.
In some embodiments, the media data forwarding server scheduling system further includes at least one first terminal and at least one second terminal, where each first terminal and each second terminal are respectively connected to the scheduling center in communication.
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 a computer program stored therein and a processor arranged to run the computer program to perform the steps of any of the above method embodiments.
Optionally, the electronic apparatus may further include a transmission device and an input/output device, wherein the transmission device is connected to the processor, and the input/output device is connected to the processor.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program:
step S201, acquiring a media data request message initiated by a first terminal, determining a second terminal according to the media data request message, and allocating a primary server cluster to the second terminal according to an address of the second terminal, where the second terminal stores media data.
Step S202, 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 allocating a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal.
Step S203, allocating a first server to the first terminal according to the second server, wherein the first server is in communication connection with the second server.
Step S204, forwarding the media data generated by the second terminal to the first server via the second server, and forwarding the media data to the first terminal via the first server.
It should be noted that, for specific examples in this embodiment, reference may be made to the examples described in the foregoing embodiments and optional implementations, and details are not described again in this embodiment.
In addition, in combination with the media data forwarding server scheduling method provided in the foregoing embodiment, a storage medium may also be provided in this embodiment to implement the method. The storage medium having stored thereon a computer program; the computer program, when executed by a processor, implements any one of the media data forwarding server scheduling methods in 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 derived by a person skilled in the art from the examples provided herein without any inventive step, shall fall within the scope of protection of the present application.
It is obvious that the drawings are only examples or embodiments of the present application, and it is obvious to those skilled in the art that the present application can be applied to other similar cases according to the drawings without creative efforts. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
The term "embodiment" is used herein to mean that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the present 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 of other embodiments. It is to be expressly or implicitly understood by one of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the patent protection. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.

Claims (12)

1. A media data forwarding server scheduling method, 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 allocating a primary server cluster to 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 allocating a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal;
allocating a first server to the first terminal according to the second server, wherein the first server is in communication connection with the second server;
forwarding media data generated by the second terminal to the first server via the second server, and forwarding the media data to the first terminal via the first server.
2. The method as claimed in claim 1, wherein the server cluster includes a plurality of sub-clusters, and allocating a primary server cluster to the second terminal according to 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 as claimed in claim 1, wherein allocating a second server to the first terminal in the secondary server cluster according to the terminal identifier of the second terminal comprises:
acquiring the equipment 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 secondary server cluster according to the equipment serial number of the second terminal.
4. The method as claimed in claim 3, wherein allocating a second server to the first terminal in the secondary server cluster according to the device serial number of the second terminal comprises:
and storing the identification of each server in the secondary server cluster 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 second server according to the server identification stored in the target storage space.
5. The media data forwarding server scheduling method according to claim 1, wherein allocating the first server to the first terminal according to the second server comprises:
determining a secondary server cluster of the first terminal in the primary server cluster according to a primary server cluster distributed for the second terminal and an operator to which the first terminal belongs;
and allocating a first server to the first terminal in the secondary service cluster of the first terminal.
6. The media data forwarding server scheduling method of claim 5, wherein allocating a first server to the first terminal in the secondary service cluster of the first terminal comprises:
acquiring the equipment serial number of the second terminal according to the terminal identifier of the second terminal;
and storing the identification of each server 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 identification stored in the target storage space.
7. The media data forwarding server scheduling method according to claim 1, wherein forwarding the media data generated by the second terminal to the first server via the second server comprises:
acquiring a mapping relation table of a port and a server, and acquiring 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;
and the media data generated by the second terminal is sent to the first server through the port by the second server.
8. The media data forwarding server scheduling method according to any one of claims 1 to 7, wherein the media data request message initiated by the first terminal includes a terminal identifier of the first terminal and a terminal identifier of the second terminal, wherein the terminal identifier includes an IP address.
9. A media data forwarding server scheduling system, comprising: a dispatching center and a server cluster, wherein the dispatching center is connected with the server cluster in a communication way, and the dispatching center is used for executing the media data forwarding server dispatching method in any one of claims 1 to 8.
10. The media data forwarding server scheduling system of claim 9, further comprising:
the system comprises at least one first terminal and at least one second terminal, wherein each first terminal and each second terminal are respectively in communication connection with the dispatching center.
11. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the media data forwarding server scheduling method according to any one of claims 1 to 8.
12. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the media data forwarding server scheduling method according to any one of claims 1 to 8.
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 true CN114615272A (en) 2022-06-10
CN114615272B 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)

Cited By (1)

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

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180084039A1 (en) * 2016-09-18 2018-03-22 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for scheduling cloud server
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
US20200213387A1 (en) * 2019-01-02 2020-07-02 Citrix Systems, Inc. Bidirectional Communication Clusters

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180084039A1 (en) * 2016-09-18 2018-03-22 Beijing Baidu Netcom Science And Technology Co., Ltd. Method and apparatus for scheduling cloud server
US20200213387A1 (en) * 2019-01-02 2020-07-02 Citrix Systems, Inc. Bidirectional Communication Clusters
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
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))》, 16 September 2018 (2018-09-16) *
杨炳钊: "《流媒体服务器负载均衡算法研究与应用》", 《信息科技》, no. 2019, 15 September 2019 (2019-09-15) *

Cited By (2)

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

Also Published As

Publication number Publication date
CN114615272B (en) 2024-05-03

Similar Documents

Publication Publication Date Title
US11558346B2 (en) Address management method and system, and device
US11071092B2 (en) Response message transmission method and apparatus
US11240198B2 (en) Session management method and apparatus
CN110326345B (en) Method, device and system for configuring network slice
CN114902634A (en) Apparatus and method for providing information of application server in mobile communication system
CN114338594B (en) ARP (Address resolution protocol) response-substituting method, device, equipment and storage medium in Kubernetes environment
CN111786998A (en) Authority management method and device based on micro-service calling and storage medium
CN104144098A (en) Information pushing method and system and pushing server equipment
WO2022089163A1 (en) Method and apparatus for managing network slice data
KR102329095B1 (en) Network access method, related devices and systems
CN114615272B (en) Method and system for scheduling media data forwarding server
CN106851685B (en) Method and system for controlling bandwidth of mobile terminal
US10680962B2 (en) Method and system for managing traffic of application programs, and terminal device containing the system
CN110868762B (en) Data stream processing method, device and system
WO2015085573A1 (en) Method and device for communication using white spectrum
CN115119286B (en) Method and device for accessing equipment to network
CN111262779A (en) Method, device, server and system for acquiring data in instant messaging
CN105191460B (en) Information transmission method, equipment and system
CN112584373A (en) Event subscription method and device
CN114125038B (en) Service scheduling method, device and storage medium
CN115119316B (en) Resource allocation method, device and readable storage medium
CN114760348B (en) Service processing method and device, storage medium and electronic device
CN110995827B (en) Communication processing method and device, computer readable medium and electronic equipment
WO2020097942A1 (en) Method for identifying bandwidth capability of terminal, device, and system
WO2024131514A1 (en) Built-in session binding support function query method 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