CN114500436B - Data transmission method and device and electronic equipment - Google Patents

Data transmission method and device and electronic equipment Download PDF

Info

Publication number
CN114500436B
CN114500436B CN202111581999.XA CN202111581999A CN114500436B CN 114500436 B CN114500436 B CN 114500436B CN 202111581999 A CN202111581999 A CN 202111581999A CN 114500436 B CN114500436 B CN 114500436B
Authority
CN
China
Prior art keywords
port
push
request
data
pulling
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
CN202111581999.XA
Other languages
Chinese (zh)
Other versions
CN114500436A (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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202111581999.XA priority Critical patent/CN114500436B/en
Publication of CN114500436A publication Critical patent/CN114500436A/en
Application granted granted Critical
Publication of CN114500436B publication Critical patent/CN114500436B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/07User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail characterised by the inclusion of specific contents
    • H04L51/10Multimedia information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present invention relates to the field of computer science, and in particular, to a data transmission method and apparatus, and an electronic device. The method comprises the following steps: at least one pulling request is obtained through a target port, the pulling request carries an identifier of target data, pulling port information corresponding to each pulling request is obtained based on the identifier of the target data, data is pulled from the pulling port according to a processing process corresponding to each pulling port information, at least one pushing request is obtained through the target port, the pushing request carries the identifier of the target data, pushing port information corresponding to each pushing request is obtained based on the identifier of the target data, and data is output from the pushing port according to the processing process corresponding to each pushing port information. By expanding the capability of the traditional process, the port number of the traditional process is increased, the large-scale application of the traditional process is realized, and the working efficiency is greatly improved.

Description

Data transmission method and device and electronic equipment
Technical Field
The present invention relates to the field of computer science, and in particular, to a data transmission method and apparatus, and an electronic device.
Background
Streaming media is a media format that is continuously played in real time on a network through streaming technology, such as audio, video or multimedia files; the simple real-time messaging Protocol Server (SIMPLE REAL TIME MESSAGING Protocol Server, SRS) is one of the streaming media servers currently mainstream.
In the prior art, an asynchronous multi-process streaming media server can have sufficient service capability, but in design, because multi-process communication is complicated, in order to accurately pull live streams pushed to the streaming media server, data of the same live stream need to exist in a plurality of processes at the same time, so that data redundancy is caused, and server resources are wasted although the purpose can be achieved. For a single-threaded streaming media server, such as SRS, although one process can also bear considerable push-pull streaming service capability, because of limitation of the single thread, if the physical server where the single-threaded streaming media server is located is a multi-core machine, only one streaming media server process is simply operated, which causes waste of machine resources and is also insufficient in the case of dealing with large-scale push-pull streaming.
Therefore, a data transmission method and apparatus, and an electronic device are needed to overcome the above drawbacks.
Disclosure of Invention
In view of the above, the embodiments of the present invention provide a data transmission method and apparatus, and an electronic device, so as to solve the problem of low data transmission efficiency in the prior art.
According to a first aspect, an embodiment of the present invention provides a method for pulling a stream, including:
Acquiring at least one pulling request through a target port, wherein the pulling request carries an identifier of target data;
based on the identification of the target data, obtaining the corresponding streaming port information of each streaming request;
And pulling data from the pulling ports according to the processing process corresponding to each pulling port information.
With reference to the first aspect, in a first implementation manner of the first aspect, the obtaining, based on the identification of the target data, the pull port information corresponding to each pull request includes:
Based on the identification of the target data, sending query information to a media service center;
And receiving the stream pulling port information fed back by the media service center.
With reference to the first aspect or the first implementation manner of the first aspect, in a second implementation manner of the first aspect, the pull port information includes a pull address and a custom streaming service port, and the pulling data from the pull port according to a processing procedure corresponding to each pull port information includes:
Based on the self-defined streaming media service port, matching the processing process corresponding to each streaming request;
And pulling data from the pull stream address based on the processing procedure.
According to a second aspect, an embodiment of the present invention provides a plug-flow method, including:
Acquiring at least one push request through a target port, wherein the push request carries an identifier of target data;
based on the identification of the target data, obtaining push port information corresponding to each push request;
And outputting data from the push ports according to the processing processes corresponding to the push port information.
With reference to the second aspect, in a first implementation manner of the second aspect, the obtaining, based on the identification of the target data, push port information corresponding to each push request includes:
And sending record information to a media service center based on the identification of the target data so that the media service center records the identification of the target data.
With reference to the second aspect or the first implementation manner of the second aspect, in a second implementation manner of the second aspect, the push port information includes a push address and a custom streaming service port, and the outputting, according to a processing procedure corresponding to each push port information, data from the push port includes:
based on the self-defined streaming media service port, matching the processing process corresponding to each push request;
and outputting data from the push address based on the processing process.
According to the data transmission method provided by the embodiment of the invention, the port number of the traditional process is increased by expanding the capacity of the traditional process, the large-scale application of the traditional process is realized, and meanwhile, the corresponding pull stream port can be found in the process of carrying out data pull stream by determining the data identification, so that the working efficiency is greatly improved.
According to a third aspect, an embodiment of the present invention provides a data streaming apparatus, including:
The first processing unit is used for acquiring at least one pulling request through the target port, wherein the pulling request carries the identification of target data;
The second processing unit is used for obtaining the streaming port information corresponding to each streaming request based on the identification of the target data;
And the third processing unit is used for pulling data from the streaming ports according to the processing processes corresponding to the streaming port information.
According to a fourth aspect, an embodiment of the present invention provides a data push device, including:
the first processing unit is used for acquiring at least one push request through the target port, wherein the push request carries the identification of target data;
the second processing unit is used for obtaining the plug flow port information corresponding to each plug flow request based on the identification of the target data;
And the third processing unit is used for outputting data from the push port according to the processing process corresponding to each push port information.
According to a fifth aspect, an embodiment of the present invention provides an electronic device, including: the device comprises a memory and a processor, wherein the memory and the processor are in communication connection, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the data streaming method in the first aspect or any implementation manner of the first aspect, or execute the data streaming method in the second aspect or any implementation manner of the second aspect.
According to a sixth aspect, an embodiment of the present invention provides a computer readable storage medium storing computer instructions for causing a computer to perform the data streaming method described in the first aspect or any implementation manner of the first aspect, or to perform the data streaming method described in the second aspect or any implementation manner of the second aspect.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a data streaming method according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a data streaming method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a data push method according to an embodiment of the present invention;
Fig. 5 is a flowchart of a data transmission method according to an embodiment of the present invention;
fig. 6 is a flowchart of a data transmission method according to an embodiment of the present invention;
FIG. 7 is a block diagram of a data streaming apparatus according to an embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Fig. 9 is a block diagram of a data push device according to an embodiment of the present invention;
Fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made apparent and fully in view of the accompanying drawings, in which some, but not all embodiments of the invention are shown. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the description of the present invention, it should be noted that the directions or positional relationships indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the directions or positional relationships shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present application, it is to be noted that the term "and/or" as used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
In addition, the technical features of the different embodiments of the present invention described below may be combined with each other as long as they do not collide with each other.
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to fall within the scope of the invention.
According to the data transmission method provided by the embodiment of the invention, the random variation of the data enables the configured options to have diversity, further, the optimal configuration options can be reserved through the subsequent screening process, the optimal configuration effect is obtained through multiple iterations, the automatic data transmission is efficiently and highly ensured, and the working efficiency is greatly improved.
According to an embodiment of the present invention, there is provided a data transmission method embodiment, it being noted that the steps shown in the flowcharts of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that herein.
In this embodiment, a data transmission method is provided, which may be used in an electronic device, such as a computer, a server, a tablet computer, etc., fig. 1 is a flowchart of a data transmission method according to an embodiment of the present invention, and as shown in fig. 1, the flowchart includes the following steps:
s11, obtaining at least one pulling request through a target port, wherein the pulling request carries an identifier of target data;
Specifically, referring to fig. 2, it is assumed that there is an edge station a, and there are 3 SRS processes in the edge station, which are respectively SRS process 1, SRS process 2, and SRS process 3, where each of the three SRS processes has a 1935 port for receiving a pull request, and it is assumed that there are 3 pull requests, and all of the three pull requests carry the identification of the target data.
S12, based on the identification of the target data, obtaining the corresponding pull stream port information of each pull stream request;
Specifically, referring to fig. 3, taking the above-mentioned edge station a as an example, it is assumed that there is one source station main, three processes in the source station are respectively an SRS process m1, an SRS process m2, and an SRS process m3, and the corresponding pulling ports are respectively 2000, 2001, and 2002, and if the pulling port information acquired by the process in the edge station a is that the pulling is performed at the port 2000, the three processes in the edge station a all perform the pulling through the port 2000.
This step will be described in detail later in detail.
S13, pulling data from the streaming ports according to the processing process corresponding to each streaming port information.
Specifically, taking the source main as an example, when the needed information is obtained through the steps in the SRS process m1, the needed information is pulled through the port 2000.
This step will be described in detail later in detail.
S14, obtaining at least one push request through a target port, wherein the push request carries an identifier of target data;
specifically, referring to fig. 4, it is assumed that there is a source station main, there are 3 SRS processes in the source station, which are respectively an SRS process m1, an SRS process m2, and an SRS process m3, where each of the three SRS processes has a 1935 port for receiving a push request, and three custom ports for outputting information, and it is assumed that there are 3 pull requests, and all of the three pull requests carry the identification of the target data.
S15, based on the identification of the target data, obtaining the push port information corresponding to each push request;
Specifically, taking the source main as an example, assuming that, among the three push messages, the information a corresponds to the SRS process m1, the push port for recording the information a is 2000, similarly, assuming that the information b exists to correspond to the SRS process m2, the push port for recording the information b is 2001, and the information c corresponds to the SRS process m3, the push port for recording the information c is 2002.
This step will be described in detail later in detail.
S16, outputting data from the push ports according to the processing processes corresponding to the push port information.
Specifically, taking the source main as an example, it is assumed that when the information a is needed, the data a needs to be output through the port 2000 by pulling the stream through the port 2000.
This step will be described in detail later in detail.
According to the data transmission method provided by the embodiment of the invention, the port number of the traditional process is increased by expanding the capacity of the traditional process, the large-scale application of the traditional process is realized, and meanwhile, the corresponding pull stream port can be found in the process of carrying out data pull stream by determining the data identification, so that the working efficiency is greatly improved.
In this embodiment, a data transmission method is provided, which may be used in an electronic device, such as a computer, a server, a tablet computer, etc., and fig. 5 is a flowchart of the data transmission method according to an embodiment of the present invention, as shown in fig. 5, where the flowchart includes the following steps:
s21, obtaining at least one pulling request through a target port, wherein the pulling request carries an identifier of target data;
please refer to S11 in the embodiment shown in fig. 1 in detail, which is not described herein.
S22, based on the identification of the target data, obtaining the corresponding pull stream port information of each pull stream request;
Specifically, the step S22 includes:
S221, based on the identification of the target data, sending query information to a media service center;
Specifically, taking the source station main and the edge station a as an example, assuming that there is a pull request, the process of the edge station a does not know which process the information a is located in, so that a query needs to be initiated to the media center, and the media center informs that the information a is located in the SRS process m1 in the source station main, and needs to pull from the port 2000.
S222, receiving the stream pulling port information fed back by the media service center.
Specifically, taking the source main, the edge station a and the pull request as examples, after the information a is obtained in the SRS process m1 in the source main and the pull needs to be performed from the port 2000, it is assumed that the pull request is in the SRS process 1 of the edge station a, and at this time, the SRS process 1 of the edge station a receives the information.
S23, pulling data from the streaming ports according to the processing process corresponding to each streaming port information.
Specifically, the step S23 includes:
s231, based on the self-defined streaming media service port, matching the processing process corresponding to each streaming request;
specifically, taking the source main, the edge a and the pulling request as examples, the recording of the acquired information a in the record needs to be pulled through the port 2000, and at the same time, the process corresponding to the port 2000 is determined to be the SRS process m1.
S232, pulling data from the streaming address based on the processing process.
Specifically, still taking the source main, edge a and pull request as examples, in this case, information a is pulled through port 2000.
S24, obtaining at least one push request through a target port, wherein the push request carries an identifier of target data;
Please refer to the embodiment S14 in fig. 1 in detail, which is not described herein.
S25, based on the identification of the target data, obtaining the push port information corresponding to each push request;
Specifically, the step S25 includes:
s251, based on the identification of the target data, recording information is sent to a media service center so that the media service center records the identification of the target data.
Specifically, taking the above information a, information b and information c as examples, assuming that the information a corresponds to the SRS process m1, the push port for recording the information a is 2000, similarly, assuming that the information b exists to correspond to the SRS process m2, the push port for recording the information b is 2001, and the information c corresponds to the SRS process m3, the push port for recording the information c is 2002. The corresponding information in the above example is recorded in the media center.
In this embodiment, three processes are taken as examples, and in practical application, any number of processes may be used, which is only an example and will not be described in detail herein.
S26, outputting data from the push ports according to the processing process corresponding to the push port information.
Specifically, the step S22 includes:
s261, based on the self-defined streaming media service port, matching the processing process corresponding to each push request;
specifically, taking the above information a, information b and information c as examples, it is determined according to the above examples that the information a is promoted to the SRS process m1, the information b is promoted to the SRS process m2, and the information c is promoted to the SRS process m3.
S262, outputting data from the push address based on the processing process.
Specifically, assuming that the pull information is received, the corresponding process of the edge site pulls from the port 2000, the information a is output, and similarly, when the corresponding process of the edge site pulls from the port 2001, the information b is output, and when the corresponding process of the edge site pulls from the port 2002, the information c is output.
As a specific application example of the present embodiment, as shown in fig. 6, the data transmission method includes:
S1, sending the push data to a source station.
S2, the source station distributes the push stream data to any SRS process.
And S3, recording identification information of the push stream data and information of the SRS process, and reporting the identification information and the information to a media center.
S4, sending the pull stream requirement to the edge site.
S5, the source station distributes the pull stream requirement to any SRS process.
S6, inquiring the related information from the media center according to the streaming requirement.
S7, the streaming operation is completed through the information fed back by the media center.
The embodiment also provides a data transmission device, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a data streaming apparatus, as shown in fig. 7, including:
the first processing unit 71 is configured to obtain at least one pull request through a target port, where the pull request carries an identifier of target data;
A second processing unit 72, configured to obtain, based on the identification of the target data, the pull port information corresponding to each pull request;
And a third processing unit 73, configured to pull data from the pull ports according to a processing procedure corresponding to each of the pull port information.
The firmware refreshing means in this embodiment are presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions.
Further functional descriptions of the above respective modules are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides electronic equipment, which is provided with the data transmission device shown in the figure 7.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, as shown in fig. 8, the electronic device may include: at least one processor 81, such as a CPU (Central Processing Unit ), at least one communication interface 83, a memory 84, at least one communication bus 82. Wherein the communication bus 82 is used to enable connected communication between these components. The communication interface 83 may include a Display screen (Display) and a Keyboard (Keyboard), and the optional communication interface 83 may further include a standard wired interface and a wireless interface. The memory 84 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 84 may also optionally be at least one memory device located remotely from the aforementioned processor 81. Wherein the processor 81 may be in conjunction with the apparatus described in fig. 8, the application program is stored in the memory 84, and the processor 81 invokes the program code stored in the memory 84 for performing any of the method steps described above.
The communication bus 82 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The communication bus 82 may be divided into an address bus, a data bus, a control bus, and the like. For ease of illustration, only one thick line is shown in fig. 8, but not only one bus or one type of bus.
Wherein the memory 84 may include volatile memory (English) such as random-access memory (RAM); the memory may also include a nonvolatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk (English: HARD DISK DRIVE, abbreviation: HDD) or a solid state disk (English: solid-STATE DRIVE, abbreviation: SSD); the memory 84 may also include a combination of the types of memory described above.
The processor 81 may be a central processor (english: central processing unit, abbreviated: CPU), a network processor (english: network processor, abbreviated: NP) or a combination of CPU and NP.
The processor 81 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field-programmable gate array (English: field-programmable GATE ARRAY, abbreviated: FPGA), a general-purpose array logic (English: GENERIC ARRAY logic, abbreviated: GAL), or any combination thereof.
Optionally, the memory 84 is also used for storing program instructions. The processor 81 may invoke program instructions to implement the data transmission method as shown in any of the embodiments of the present application.
The embodiment provides a data push device, as shown in fig. 9, including:
The first processing unit 91 is configured to obtain at least one push request through a target port, where the push request carries an identifier of target data;
A second processing unit 92, configured to obtain, based on the identification of the target data, push port information corresponding to each push request;
And a third processing unit 93, configured to output data from the push ports according to a processing procedure corresponding to each of the push port information.
The firmware refreshing means in this embodiment are presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above-mentioned functions.
Further functional descriptions of the above respective modules are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides electronic equipment, which is provided with the data transmission device shown in the figure 9.
Referring to fig. 10, fig. 10 is a schematic structural diagram of an electronic device according to an alternative embodiment of the present invention, and as shown in fig. 10, the electronic device may include: at least one processor 101, such as a CPU (Central Processing Unit ), at least one communication interface 103, a memory 104, at least one communication bus 102. Wherein the communication bus 102 is used to enable connected communication between these components. The communication interface 103 may include a Display screen (Display) and a Keyboard (Keyboard), and the selectable communication interface 103 may further include a standard wired interface and a wireless interface. The memory 104 may be a high-speed RAM memory (Random Access Memory, volatile random access memory) or a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 104 may also optionally be at least one storage device located remotely from the aforementioned processor 101. Where the processor 101 may be as described in connection with fig. 10, the memory 104 stores an application program, and the processor 101 invokes the program code stored in the memory 104 for performing any of the method steps described above.
The communication bus 102 may be a peripheral component interconnect standard (PERIPHERAL COMPONENT INTERCONNECT, PCI) bus or an extended industry standard architecture (extended industry standard architecture, EISA) bus, among others. The communication bus 102 may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, only one thick line is shown in fig. 10, but not only one bus or one type of bus.
The memory 104 may include volatile memory (english) such as random-access memory (RAM); the memory may also include a nonvolatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk (English: HARD DISK DRIVE, abbreviation: HDD) or a solid state disk (English: solid-STATE DRIVE, abbreviation: SSD); the memory 104 may also include a combination of the types of memory described above.
The processor 101 may be a central processor (english: central processing unit, abbreviated: CPU), a network processor (english: network processor, abbreviated: NP) or a combination of CPU and NP.
The processor 101 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a Programmable Logic Device (PLD), or a combination thereof (English: programmable logic device). The PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviated: CPLD), a field-programmable gate array (English: field-programmable GATE ARRAY, abbreviated: FPGA), a general-purpose array logic (English: GENERIC ARRAY logic, abbreviated: GAL), or any combination thereof.
Optionally, the memory 104 is also used for storing program instructions. The processor 101 may invoke program instructions to implement a data transmission method as shown in any of the embodiments of the present application.
The embodiment of the invention also provides a non-transitory computer storage medium, which stores computer executable instructions that can execute the data transmission method in any of the above method embodiments. Wherein the storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a Flash Memory (Flash Memory), a hard disk (HARD DISK DRIVE, abbreviated as HDD), a Solid state disk (Solid-state-STATE DRIVE, SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (7)

1. A method of pulling a stream, applied to an edge site, comprising:
Acquiring at least one pulling request through a target port, wherein the pulling request carries an identifier of target data;
Based on the identification of the target data, obtaining the information of the pull stream port corresponding to each pull stream request comprises the following steps: based on the identification of the target data, sending query information to a media service center; receiving the information of the pull stream port fed back by the media service center;
Pulling data from a corresponding pulling port of a source station according to a processing process corresponding to each pulling port information, wherein the pulling port information comprises a pulling address and a self-defined streaming media service port, and the pulling port information comprises: based on the self-defined streaming media service port, matching the processing process corresponding to each streaming request; and pulling data from the pull stream address based on the processing procedure.
2. A push method for use in a source station, comprising:
Obtaining at least one push request through a target port, wherein the push request carries an identifier of target data, determining a target processing process corresponding to the target data in a source station, taking a port corresponding to the target processing process as a push port of the target data, and recording the push port in a media service center;
based on the identification of the target data, obtaining push port information corresponding to each push request;
Outputting data from the corresponding push port of the source station according to the processing process corresponding to each push port information, wherein the push port information comprises push addresses and custom streaming media service ports, and the push port information comprises: based on the self-defined streaming media service port, matching the processing process corresponding to each push request; and outputting data from the push address based on the processing process.
3. The method according to claim 2, wherein the obtaining, based on the identification of the target data, push port information corresponding to each push request includes:
And sending record information to a media service center based on the identification of the target data so that the media service center records the identification of the target data.
4. A pull-stream device for use in an edge station, comprising:
The first processing unit is used for acquiring at least one pulling request through the target port, wherein the pulling request carries the identification of target data;
The second processing unit is configured to obtain, based on the identification of the target data, the pull port information corresponding to each pull request, where the second processing unit includes: based on the identification of the target data, sending query information to a media service center; receiving the information of the pull stream port fed back by the media service center;
The third processing unit is configured to pull data from a corresponding pull port of the source station according to a processing procedure corresponding to each pull port information, where the pull port information includes a pull address and a custom streaming media service port, and includes: based on the self-defined streaming media service port, matching the processing process corresponding to each streaming request; and pulling data from the pull stream address based on the processing procedure.
5. A push device for use in a source station, comprising:
The first processing unit is used for acquiring at least one push request through a target port, wherein the push request carries an identifier of target data, the target data is determined to correspond to a target processing process in a source station, and a port corresponding to the target processing process is used as a push port of the target data and is recorded in a media service center;
the second processing unit is used for obtaining the plug flow port information corresponding to each plug flow request based on the identification of the target data;
The third processing unit is configured to output data from a corresponding push port of the source station according to a processing procedure corresponding to each push port information, where the push port information includes a push address and a custom streaming media service port, and includes: based on the self-defined streaming media service port, matching the processing process corresponding to each push request; and outputting data from the push address based on the processing process.
6. An electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the steps of the method of any one of claims 1 or 2-3.
7. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements the steps of the method according to any of claims 1 or 2-3.
CN202111581999.XA 2021-12-22 2021-12-22 Data transmission method and device and electronic equipment Active CN114500436B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111581999.XA CN114500436B (en) 2021-12-22 2021-12-22 Data transmission method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111581999.XA CN114500436B (en) 2021-12-22 2021-12-22 Data transmission method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN114500436A CN114500436A (en) 2022-05-13
CN114500436B true CN114500436B (en) 2024-07-05

Family

ID=81494753

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111581999.XA Active CN114500436B (en) 2021-12-22 2021-12-22 Data transmission method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN114500436B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114979695B (en) * 2022-05-25 2024-04-09 广东保伦电子股份有限公司 SRS-based multi-process live broadcast method and device, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959711A (en) * 2016-04-21 2016-09-21 乐视控股(北京)有限公司 Method and device for uploading live streaming media
CN110392020A (en) * 2018-04-18 2019-10-29 网宿科技股份有限公司 A kind of transmission method and system of streaming media resource

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101488871A (en) * 2009-02-24 2009-07-22 诚迈科技(南京)有限公司 Stream media quasi-broadcast level obtaining method and system under Internet environment
CN104734993B (en) * 2013-12-24 2018-05-18 杭州华为数字技术有限公司 Data distribution method and current divider
US10580404B2 (en) * 2016-09-01 2020-03-03 Amazon Technologies, Inc. Indicator for voice-based communications
CN108270732B (en) * 2016-12-30 2019-02-19 视联动力信息技术股份有限公司 A kind of Streaming Media processing method and system
CN108228366B (en) * 2017-12-29 2022-01-25 北京奇虎科技有限公司 Data stream processing method and device
US11290439B1 (en) * 2019-04-03 2022-03-29 Snap Inc. Multiple application list prioritization
CN110781014B (en) * 2019-10-28 2022-11-01 思必驰科技股份有限公司 Recording data multi-process distribution method and system based on Android device
CN112351296B (en) * 2020-10-29 2022-11-04 北京达佳互联信息技术有限公司 Pull stream push method and device of video stream, server and storage medium
CN113285931B (en) * 2021-05-12 2022-10-11 阿波罗智联(北京)科技有限公司 Streaming media transmission method, streaming media server and streaming media system
CN113727150A (en) * 2021-08-31 2021-11-30 安徽旭帆信息科技有限公司 Efficient nginx-based multi-process live stream sharing method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105959711A (en) * 2016-04-21 2016-09-21 乐视控股(北京)有限公司 Method and device for uploading live streaming media
CN110392020A (en) * 2018-04-18 2019-10-29 网宿科技股份有限公司 A kind of transmission method and system of streaming media resource

Also Published As

Publication number Publication date
CN114500436A (en) 2022-05-13

Similar Documents

Publication Publication Date Title
US10969983B2 (en) Method for implementing NVME over fabrics, terminal, server, and system
US20190079895A1 (en) System and method for maximizing bandwidth of pci express peer-to-peer (p2p) connection
CN109842781B (en) Monitoring video playing method, device, system, media server and storage medium
CN106874334B (en) Data processing method and device and information processing system
US11032584B2 (en) Picture storage method, apparatus and video monitoring system
US20210097259A1 (en) Intelligent analysis system, method and device
CN114500436B (en) Data transmission method and device and electronic equipment
US10944920B2 (en) Video switching method, device and video patrol system
CN111104232A (en) Method, device and medium for accelerating message writing of message queue
CN107579929B (en) Method, system and related device for setting reliable connection communication queue pair
CN111131470B (en) Terminal device, data processing method thereof and data processing system
US20060039405A1 (en) Systems and methods for frame ordering in wide port SAS connections
CN111835801B (en) File downloading method, device, server, edge equipment, terminal and medium
CN112035413A (en) Metadata information query method and device and storage medium
CN112527519A (en) High-performance local cache method, system, equipment and medium
EP3896931A1 (en) Spark shuffle-based remote direct memory access system and method
CN116346959A (en) DPU scene elastic network card efficient implementation method and device
WO2023035722A1 (en) Rdma data transmission system, rdma data transmission method, and network device
CN115866331A (en) Video frame extraction analysis method, device, equipment and storage medium
US20220052902A1 (en) Method for managing remote device through management device
CN111400327B (en) Data synchronization method and device, electronic equipment and storage medium
CN112003749B (en) Host information adding method, system and electronic equipment
CN107547601B (en) Method for sending message, routing equipment, server and system
CN109309583B (en) Information acquisition method and device based on distributed system, electronic equipment and medium
CN105389218A (en) Methods of server cabinet for processing basic input output system (BIOS) information, and nodes

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