CN106993063A - Code stream retransmission method and equipment - Google Patents
Code stream retransmission method and equipment Download PDFInfo
- Publication number
- CN106993063A CN106993063A CN201710402441.8A CN201710402441A CN106993063A CN 106993063 A CN106993063 A CN 106993063A CN 201710402441 A CN201710402441 A CN 201710402441A CN 106993063 A CN106993063 A CN 106993063A
- Authority
- CN
- China
- Prior art keywords
- code stream
- stream forwarding
- load
- server
- forwarding server
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1004—Server selection for load balancing
- H04L67/1008—Server selection for load balancing based on parameters of servers, e.g. available memory or workload
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
- H04L67/1034—Reaction to server failures by a load balancer
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/18—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
- H04N7/181—Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
It is an object of the invention to provide a kind of code stream retransmission method and equipment, load state of the invention by obtaining multiple code stream forwarding servers, according to the load state of each code stream forwarding server, for the corresponding code stream forwarding server of code stream forwarding request distribution, many code stream forwarding servers can be introduced to complete the forwarding work of separate unit, the problem of a large amount of code streams are forwarded can not be born by solving separate unit stream forwarding server, simultaneously, the present invention is not only added in " a plurality of track " in the middle of web camera and distributed imaging system, it is also intelligent, dynamically remind vehicle selection " optimal lane ", eliminate or avoid the current bottleneck of centre, that is dynamic, the intelligently workload of each server of load balancing, ensure many code stream forwarding server load balancing.In addition, it is whether abnormal by monitoring each code stream forwarding server, load intelligence can be transferred to other normal code stream forwarding servers after certain server exception.
Description
Technical field
The present invention relates to computer realm, more particularly to a kind of code stream retransmission method and equipment.
Background technology
There is substantial amounts of web camera on existing catenet monitor supervision platform, these web cameras are needed by large-scale
Network monitoring platform concentrates upper wall display monitoring image.Needed when catenet monitor supervision platform is docked with distributed imaging system
Use code stream forwarding server to build the communication " bridge " between network monitoring platform and distributed imaging system, when two big
Between platform " traffic volume " than it is larger when, be accomplished by a kind of technology between each " bridge " and carry out equilibrium assignment " traffic volume ".
It is existing use connect framework for:Web camera and the relation that code stream forwarding server is multipair 1, code stream forwarding clothes
The display screen being engaged in device and distributed imaging system is the relation more than 1 pair, is many like two material is thus formed a bottleneck
It is that one-lane highway is the same in the middle of track, a middle track certainly will turn into wagon flow bottleneck.
The content of the invention
It is an object of the present invention to provide a kind of code stream retransmission method and equipment, the bottle of existing code stream forwarding can solve the problem that
Neck problem.
According to an aspect of the invention, there is provided a kind of code stream retransmission method, this method includes:
Obtain the load state of multiple code stream forwarding servers;
Receive code stream forwarding request;
It is the corresponding code stream forwarding of the code stream forwarding request distribution according to the load state of each code stream forwarding server
Server.
Further, in the above method, method according to claim 1 or 2, wherein, the load state includes
The maximum load capability and current load condition of each code stream forwarding server.
Further, it is that the code stream forwarding please according to the load state of each code stream forwarding server in the above method
The corresponding code stream forwarding server of distribution is sought, including:
According to the maximum load capability and current load condition of each code stream forwarding server, it is determined that each code stream forwarding clothes
The remaining load ability of business device;
It is the corresponding code stream of the code stream forwarding request distribution according to the remaining load ability of each code stream forwarding server
Forwarding server.
Further, in the above method, the load state of multiple code stream forwarding servers is obtained, including:
Set up the reception scheduler process of the code stream forwarding request;
The heart that the reception scheduler process is set up between communicating and safeguarding with the process of each code stream forwarding server
Jump, the heartbeat of the load state for receiving the real-time report that scheduler process is obtained from the process of each code stream forwarding server
Data.
Further, in the above method, the scheduler process that receives is obtained from the process of each code stream forwarding server
Real-time report load state heartbeat data after, in addition to:
The scheduler process safeguards a queue, and the process of each code stream forwarding server is recorded in the queue
Maximum load capability and current load condition.
Further, it is that the code stream forwarding please according to the load state of each code stream forwarding server in the above method
Ask and distribute after corresponding code stream forwarding server, in addition to:
Whether abnormal monitor each code stream forwarding server,
Serviced if so, the present load on the abnormal code stream forwarding server is distributed into other normal code stream forwardings
Device.
Further, in the above method, the present load on the abnormal code stream forwarding server is being distributed to other just
Normal code stream forwarding server, including:
Judge currently whether there is load on the abnormal code stream forwarding server,
If so, according to the maximum load capability and current load condition of other normal code stream forwarding servers, this is different
Other normal code stream forwarding servers are distributed in present load on normal code stream forwarding server.
According to another aspect of the present invention, a kind of code stream forwarding unit is additionally provided, the equipment includes:
Acquisition device, the load state for obtaining multiple code stream forwarding servers;
Reception device, for receiving code stream forwarding request;
Load balancing apparatus, is the code stream forwarding request for the load state according to each code stream forwarding server
Distribute corresponding code stream forwarding server.
Further, in the said equipment, the load state includes the maximum load capability of each code stream forwarding server
And current load condition.
Further, in the said equipment, the load balancing apparatus, for the maximum according to each code stream forwarding server
Load capacity and current load condition, it is determined that the remaining load ability of each code stream forwarding server;Forwarded according to each code stream
The remaining load ability of server, is the corresponding code stream forwarding server of the code stream forwarding request distribution.
Further, in the said equipment, the acquisition device, the reception scheduler for setting up the code stream forwarding request
Process;The heartbeat that the reception scheduler process is set up between communicating and safeguarding with the process of each code stream forwarding server,
The beats of the load state for receiving the real-time report that scheduler process is obtained from the process of each code stream forwarding server
According to.
Further, in the said equipment, the load balancing apparatus safeguards a queue for the scheduler process,
The maximum load capability and current load condition of the process of each code stream forwarding server are recorded in the queue.
Further, in the said equipment, the load balancing apparatus is additionally operable to whether monitor each code stream forwarding server
It is abnormal, if so, the present load on the abnormal code stream forwarding server is distributed into other normal code stream forwarding servers.
Further, in the said equipment, the load balancing apparatus is additionally operable to judge the abnormal code stream forwarding service
Currently whether there is load on device, if so, according to the maximum load capability of other normal code stream forwarding servers and present load
Situation, other normal code stream forwarding servers are distributed to by the present load on the abnormal code stream forwarding server.
According to the another side of the present invention, a kind of equipment based on calculating is also provided, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device:
Obtain the load state of multiple code stream forwarding servers;
Receive code stream forwarding request;
It is the corresponding code stream forwarding of the code stream forwarding request distribution according to the load state of each code stream forwarding server
Server.
Compared with prior art, the load state of the invention by obtaining multiple code stream forwarding servers, according to each code
The load state of forwarding server is flowed, is the corresponding code stream forwarding server of the code stream forwarding request distribution, can introduce many
Platform code stream forwarding server completes the forwarding work of separate unit, and to solve separate unit stream forwarding server can not bear a large amount of code streams forwardings
The problem of, meanwhile, the present invention not only adds " a plurality of track " in the middle of web camera and distributed imaging system, also intelligence
, vehicle selection " optimal lane " can be dynamically reminded, eliminate or avoid the current bottleneck of centre, i.e. dynamic, intelligence
The workload of each server of ground load balancing, it is ensured that many code stream forwarding server load balancing.In addition, each by monitoring
Whether code stream forwarding server is abnormal, load intelligence can be transferred into other normal code streams after certain server exception
Forwarding server.
Brief description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, of the invention is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 shows the schematic diagram of the code stream retransmission method of one embodiment of the invention;
Fig. 2 shows the flow chart of the code stream retransmission method of one embodiment of the invention.
Same or analogous reference represents same or analogous part in accompanying drawing.
Embodiment
The present invention is described in further detail below in conjunction with the accompanying drawings.
In one typical configuration of the application, terminal, the equipment of service network and trusted party include one or more
Processor (CPU), input/output interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory (RAM) and/or
The forms such as Nonvolatile memory, such as read-only storage (ROM) or flash memory (flash RAM).Internal memory is computer-readable medium
Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer-readable instruction, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase transition internal memory (PRAM), static RAM (SRAM), moved
State random access memory (DRAM), other kinds of random access memory (RAM), read-only storage (ROM), electric erasable
Programmable read only memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only storage (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, magnetic disk storage or other magnetic storage apparatus or
Any other non-transmission medium, the information that can be accessed by a computing device available for storage.Defined according to herein, computer
Computer-readable recording medium does not include the data-signal and carrier wave of non-temporary computer readable media (transitory media), such as modulation.
The present invention provides a kind of code stream retransmission method, and this method includes:
Step S1, obtains the load state of multiple code stream forwarding servers;Here, each code stream forwarding server is service
Person;
Step S2, receives code stream forwarding request;Can be from requestor such as distributed imaging system in code stream forwarding request
Receive;
Step S3, is that the code stream forwarding request distribution is corresponding according to the load state of each code stream forwarding server
Code stream forwarding server.Afterwards, the code stream forwarding request that the processing of code stream forwarding server is assigned to, continuously takes the photograph from network
Camera, which is obtained and handled, is sent to requestor after bit stream data.
Load state of the invention by obtaining multiple code stream forwarding servers, according to the negative of each code stream forwarding server
Load situation, is the corresponding code stream forwarding server of the code stream forwarding request distribution, can introduce many code stream forwarding servers
To complete the forwarding work of separate unit, the problem of a large amount of code streams are forwarded can not be born by solving separate unit stream forwarding server, meanwhile, this hair
It is bright not only to add " a plurality of track " in the middle of web camera and distributed imaging system, go back intelligence, dynamically remind vehicle
Select " optimal lane ", eliminate or avoid the current bottleneck of centre, i.e. dynamic, intelligently each service of load balancing
The workload of device, it is ensured that many code stream forwarding server load balancing.
In the embodiment of code stream retransmission method one of the present invention, the load state includes each code stream forwarding server most
Heavy load ability and current load condition.
Here, can accurately obtain each by the maximum load capability and current load condition of each code stream forwarding server
The load state of code stream forwarding server, such as can allow certain server can according to the performance parameter selectivity of every server
Load the code stream processing of more multichannel.
In the embodiment of code stream retransmission method one of the present invention, step S3, according to the load shape of each code stream forwarding server
Condition, is the corresponding code stream forwarding server of the code stream forwarding request distribution, including:
According to the maximum load capability and current load condition of each code stream forwarding server, it is determined that each code stream forwarding clothes
The remaining load ability of business device;For example, the maximum load capability of each code stream forwarding server is subtracted into its current load condition,
It can be obtained by the remaining load ability of the code stream forwarding server;
It is the corresponding code stream of the code stream forwarding request distribution according to the remaining load ability of each code stream forwarding server
Forwarding server.
Here, according to the remaining load ability of each code stream forwarding server, more accurately can be forwarded for the code stream
The corresponding code stream forwarding server of request distribution.
As shown in Fig. 2 in the embodiment of code stream retransmission method one of the present invention, step S1 obtains multiple code stream forwarding services
The load state of device, including:
Set up the reception scheduler process of the code stream forwarding request;
The heart that the reception scheduler process is set up between communicating and safeguarding with the process of each code stream forwarding server
Jump, the heartbeat of the load state for receiving the real-time report that scheduler process is obtained from the process of each code stream forwarding server
Data.Here, scheduler process is set up with each server's process communicates and maintains heartbeat, heartbeat data real-time report oneself
Disposal ability.
Specifically, as shown in figure 1, n code stream forwarding request, Ran Hougen can be received from requestor by receiving scheduler process
According to the heartbeat data of the load state of the real-time report obtained from the process of m code stream forwarding server, code stream is forwarded and asked
Distribute to corresponding code stream forwarding server (server).The present embodiment is turned by the reception scheduler process and each code stream
The heartbeat that the process of hair server is set up between communicating and safeguarding, can timely and accurately get each code stream forwarding server
Load state.
In the embodiment of code stream retransmission method one of the present invention, the scheduler process that receives is from each code stream forwarding server
Process obtain real-time report load state heartbeat data after, in addition to:
The scheduler process safeguards a queue, and the process of each code stream forwarding server is recorded in the queue
Maximum load capability and current load condition.
Here, scheduler process receives code stream forwarding request, optimal service is selected according to the information recorded in queue
Person's process gives this request service, and to updating the current load situation of this server's process.Safeguarded by scheduler process
One queue, records the maximum load capability and present load shape of the process of each code stream forwarding server in the queue
Condition, the load state of each code stream forwarding server can be monitored exactly.
In the embodiment of code stream retransmission method one of the present invention, step S3, according to the load shape of each code stream forwarding server
Condition, is that the code stream forwarding request is distributed after corresponding code stream forwarding server, in addition to:
Whether abnormal monitor each code stream forwarding server,
Serviced if so, the present load on the abnormal code stream forwarding server is distributed into other normal code stream forwardings
Device.
Here, it is whether abnormal by monitoring each code stream forwarding server, it be able to will be loaded after certain server exception
Intelligence is transferred to other normal code stream forwarding servers, for example, scheduler process monitoring is to some server's process exception, can
So that the existing load average of this server's process is distributed into other server's processes.
In the embodiment of code stream retransmission method one of the present invention, by the present load on the abnormal code stream forwarding server point
Other normal code stream forwarding servers of dispensing, including:
Judge currently whether there is load on the abnormal code stream forwarding server,
If so, according to the maximum load capability and current load condition of other normal code stream forwarding servers, this is different
Other normal code stream forwarding servers are distributed in present load on normal code stream forwarding server.
For example, as shown in Fig. 2 judging whether present load is 0 on the abnormal code stream forwarding server, if so, then
Restart the abnormal code stream forwarding server;If it is not, then the present load first on the abnormal code stream forwarding server is distributed to
After other normal code stream forwarding servers, the abnormal code stream forwarding server is restarted.
According to the another side of the present invention, a kind of code stream forwarding unit is also provided, the equipment includes:
Acquisition device, the load state for obtaining multiple code stream forwarding servers;Here, each code stream forwarding server
For server;
Reception device, for receiving code stream forwarding request;It can be imaged in code stream forwarding request from requestor as distributed
Received in system;
Load balancing apparatus, is the code stream forwarding request for the load state according to each code stream forwarding server
Distribute corresponding code stream forwarding server.Afterwards, the code stream forwarding request that the processing of code stream forwarding server is assigned to, continually
Ground, which is obtained and handled from web camera, is sent to requestor after bit stream data.
Load state of the invention by obtaining multiple code stream forwarding servers, according to the negative of each code stream forwarding server
Load situation, is the corresponding code stream forwarding server of the code stream forwarding request distribution, can introduce many code stream forwarding servers
To complete the forwarding work of separate unit, the problem of a large amount of code streams are forwarded can not be born by solving separate unit stream forwarding server, meanwhile, this hair
It is bright not only to add " a plurality of track " in the middle of web camera and distributed imaging system, go back intelligence, dynamically remind vehicle
Select " optimal lane ", eliminate or avoid the current bottleneck of centre, i.e. dynamic, intelligently each service of load balancing
The workload of device, it is ensured that many code stream forwarding server load balancing.
In the embodiment of code stream forwarding unit one of the present invention, the load state includes each code stream forwarding server most
Heavy load ability and current load condition.
Here, can accurately obtain each by the maximum load capability and current load condition of each code stream forwarding server
The load state of code stream forwarding server, such as can allow certain server can according to the performance parameter selectivity of every server
Load the code stream processing of more multichannel.
In the embodiment of code stream forwarding unit one of the present invention, the load balancing apparatus, for being forwarded according to each code stream
The maximum load capability and current load condition of server, it is determined that the remaining load ability of each code stream forwarding server, for example,
The maximum load capability of each code stream forwarding server is subtracted into its current load condition, it is possible to obtain code stream forwarding service
The remaining load ability of device;It is the code stream forwarding request distribution according to the remaining load ability of each code stream forwarding server
Corresponding code stream forwarding server.
Here, according to the remaining load ability of each code stream forwarding server, more accurately can be forwarded for the code stream
The corresponding code stream forwarding server of request distribution.
In the embodiment of code stream forwarding unit one of the present invention, the acquisition device, for setting up the code stream forwarding request
Reception scheduler process;The reception scheduler process is set up with the process of each code stream forwarding server and communicates and safeguards
Between heartbeat, the load shape for the real-time report that the reception scheduler process is obtained from the process of each code stream forwarding server
The heartbeat data of condition.Communicate here, scheduler process is set up with each server's process and maintain heartbeat, heartbeat data is real-time
Report the disposal ability of oneself.
Specifically, as shown in figure 1, n code stream forwarding request, Ran Hougen can be received from requestor by receiving scheduler process
According to the heartbeat data of the load state of the real-time report obtained from the process of m code stream forwarding server, code stream is forwarded and asked
Distribute to corresponding code stream forwarding server (server).The present embodiment is turned by the reception scheduler process and each code stream
The heartbeat that the process of hair server is set up between communicating and safeguarding, can timely and accurately get each code stream forwarding server
Load state.
In the embodiment of code stream forwarding unit one of the present invention, the load balancing apparatus, for scheduler process dimension
A queue is protected, the maximum load capability and present load shape of the process of each code stream forwarding server are recorded in the queue
Condition.
Here, scheduler process receives code stream forwarding request, optimal service is selected according to the information recorded in queue
Person's process gives this request service, and to updating the current load situation of this server's process.Safeguarded by scheduler process
One queue, records the maximum load capability and present load shape of the process of each code stream forwarding server in the queue
Condition, the load state of each code stream forwarding server can be monitored exactly.
In the embodiment of code stream forwarding unit one of the present invention, the load balancing apparatus is additionally operable to monitor each code stream turn
Whether abnormal server is sent out, if so, the present load on the abnormal code stream forwarding server is distributed into other normal codes
Flow forwarding server.
In the embodiment of code stream forwarding unit one of the present invention, the load balancing apparatus is additionally operable to judge described abnormal
Currently whether there is load on code stream forwarding server, if so, according to the maximum load energy of other normal code stream forwarding servers
Power and current load condition, distribute to other normal code streams by the present load on the abnormal code stream forwarding server and forward
Server.Here, it is whether abnormal by monitoring each code stream forwarding server, it be able to will be loaded after certain server exception
Intelligence is transferred to other normal code stream forwarding servers, for example, scheduler process monitoring is to some server's process exception, can
So that the existing load average of this server's process is distributed into other server's processes.
According to the another side of the present invention, a kind of equipment based on calculating is also provided, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the place when executed
Manage device:
Obtain the load state of multiple code stream forwarding servers;
Receive code stream forwarding request;
It is the corresponding code stream forwarding of the code stream forwarding request distribution according to the load state of each code stream forwarding server
Server.
In summary, the load state of the invention by obtaining multiple code stream forwarding servers, is forwarded according to each code stream
The load state of server, is the corresponding code stream forwarding server of the code stream forwarding request distribution, can introduce many code streams
Forwarding server completes the forwarding work of separate unit, and to solve separate unit stream forwarding server can not bear asking for a large amount of code streams forwardings
Topic, meanwhile, the present invention is not only added in " a plurality of track " in the middle of web camera and distributed imaging system, also intelligent, dynamic
Remind to state vehicle to select " optimal lane ", eliminate or avoid the current bottleneck of centre, i.e. dynamic, intelligently load
The workload of balanced each server, it is ensured that many code stream forwarding server load balancing.In addition, being turned by monitoring each code stream
Whether abnormal send out server, load intelligence can be transferred to other normal code stream forwardings and taken after certain server exception
Business device.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the application to the application
God and scope.So, if these modifications and variations of the application belong to the scope of the application claim and its equivalent technologies
Within, then the application is also intended to comprising including these changes and modification.
It should be noted that the present invention can be carried out in the assembly of software and/or software and hardware, for example, can adopt
Realized with application specific integrated circuit (ASIC), general purpose computer or any other similar hardware device.In one embodiment
In, software program of the invention can realize steps described above or function by computing device.Similarly, it is of the invention
Software program (including related data structure) can be stored in computer readable recording medium storing program for performing, for example, RAM memory,
Magnetically or optically driver or floppy disc and similar devices.In addition, some steps or function of the present invention can employ hardware to realize, example
Such as, as coordinating with processor so as to performing the circuit of each step or function.
In addition, the part of the present invention can be applied to computer program product, such as computer program instructions, when its quilt
When computer is performed, by the operation of the computer, the method according to the invention and/or technical scheme can be called or provided.
And the programmed instruction of the method for the present invention is called, it is possibly stored in fixed or moveable recording medium, and/or pass through
Broadcast or the data flow in other signal bearing medias and be transmitted, and/or be stored according to described program instruction operation
In the working storage of computer equipment.Here, including a device according to one embodiment of present invention, the device includes using
In the memory and processor for execute program instructions of storage computer program instructions, wherein, when the computer program refers to
When order is by the computing device, method and/or skill of the plant running based on foregoing multiple embodiments according to the present invention are triggered
Art scheme.
It is obvious to a person skilled in the art that the invention is not restricted to the details of above-mentioned one exemplary embodiment, Er Qie
In the case of without departing substantially from spirit or essential attributes of the invention, the present invention can be realized in other specific forms.Therefore, no matter
From the point of view of which point, embodiment all should be regarded as exemplary, and be nonrestrictive, the scope of the present invention is by appended power
Profit is required rather than described above is limited, it is intended that all in the implication and scope of the equivalency of claim by falling
Change is included in the present invention.Any reference in claim should not be considered as to the claim involved by limitation.This
Outside, it is clear that the word of " comprising " one is not excluded for other units or step, and odd number is not excluded for plural number.That is stated in device claim is multiple
Unit or device can also be realized by a unit or device by software or hardware.The first, the second grade word is used for table
Show title, and be not offered as any specific order.
Claims (15)
1. a kind of code stream retransmission method, wherein, this method includes:
Obtain the load state of multiple code stream forwarding servers;
Receive code stream forwarding request;
It is the corresponding code stream forwarding service of the code stream forwarding request distribution according to the load state of each code stream forwarding server
Device.
2. according to the method described in claim 1, wherein, method according to claim 1 or 2, wherein, the load shape
Condition includes the maximum load capability and current load condition of each code stream forwarding server.
3. method according to claim 2, wherein, it is the code according to the load state of each code stream forwarding server
The corresponding code stream forwarding server of circulation hair request distribution, including:
According to the maximum load capability and current load condition of each code stream forwarding server, it is determined that each code stream forwarding server
Remaining load ability;
It is the corresponding code stream forwarding of the code stream forwarding request distribution according to the remaining load ability of each code stream forwarding server
Server.
4. method according to claim 2, wherein, the load state of multiple code stream forwarding servers is obtained, including:
Set up the reception scheduler process of the code stream forwarding request;
The heartbeat that the reception scheduler process is set up between communicating and safeguarding with the process of each code stream forwarding server, institute
State the heartbeat data for the load state for receiving the real-time report that scheduler process is obtained from the process of each code stream forwarding server.
5. method according to claim 4, wherein, reception scheduler process the entering from each code stream forwarding server
After the heartbeat data of the load state for the real-time report that journey is obtained, in addition to:
The scheduler process safeguards a queue, and the maximum of the process of each code stream forwarding server is recorded in the queue
Load capacity and current load condition.
6. the method according to any one of claim 1 to 5, wherein, according to the load state of each code stream forwarding server,
After the corresponding code stream forwarding server of code stream forwarding request distribution, in addition to:
Whether abnormal monitor each code stream forwarding server,
If so, the present load on the abnormal code stream forwarding server is distributed into other normal code stream forwarding servers.
7. method according to claim 6, wherein, the present load on the abnormal code stream forwarding server is distributed to
Other normal code stream forwarding servers, including:
Judge currently whether there is load on the abnormal code stream forwarding server,
If so, according to the maximum load capability and current load condition of other normal code stream forwarding servers, by the exception
Other normal code stream forwarding servers are distributed in present load on code stream forwarding server.
8. a kind of code stream forwarding unit, wherein, the equipment includes:
Acquisition device, the load state for obtaining multiple code stream forwarding servers;
Reception device, for receiving code stream forwarding request;
Load balancing apparatus, is the code stream forwarding request distribution for the load state according to each code stream forwarding server
Corresponding code stream forwarding server.
9. equipment according to claim 8, wherein, the maximum that the load state includes each code stream forwarding server is born
Loading capability and current load condition.
10. equipment according to claim 9, wherein, the load balancing apparatus is serviced for being forwarded according to each code stream
The maximum load capability and current load condition of device, it is determined that the remaining load ability of each code stream forwarding server;According to each
The remaining load ability of code stream forwarding server, is the corresponding code stream forwarding server of the code stream forwarding request distribution.
11. equipment according to claim 9, wherein, the acquisition device, for setting up connecing for the code stream forwarding request
Receive scheduler process;The reception scheduler process and the process of each code stream forwarding server are set up between communicating and safeguarding
Heartbeat, the load state for the real-time report that the reception scheduler process is obtained from the process of each code stream forwarding server
Heartbeat data.
12. equipment according to claim 11, wherein, the load balancing apparatus is safeguarded for the scheduler process
One queue, records the maximum load capability and present load shape of the process of each code stream forwarding server in the queue
Condition.
13. the equipment according to any one of claim 8 to 12, wherein, the load balancing apparatus is additionally operable to monitoring each
Whether code stream forwarding server is abnormal, if so, the present load on the abnormal code stream forwarding server is being distributed into other just
Normal code stream forwarding server.
14. equipment according to claim 11, wherein, the load balancing apparatus is additionally operable to judge the abnormal code
Currently whether there is load on stream forwarding server, if so, according to the maximum load capability of other normal code stream forwarding servers
And current load condition, other normal code stream forwardings are distributed into the present load on the abnormal code stream forwarding server and taken
Business device.
15. a kind of equipment based on calculating, wherein, including:
Processor;And
It is arranged to store the memory of computer executable instructions, the executable instruction makes the processing when executed
Device:
Obtain the load state of multiple code stream forwarding servers;
Receive code stream forwarding request;
It is the corresponding code stream forwarding service of the code stream forwarding request distribution according to the load state of each code stream forwarding server
Device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710402441.8A CN106993063A (en) | 2017-06-01 | 2017-06-01 | Code stream retransmission method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710402441.8A CN106993063A (en) | 2017-06-01 | 2017-06-01 | Code stream retransmission method and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106993063A true CN106993063A (en) | 2017-07-28 |
Family
ID=59422029
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710402441.8A Pending CN106993063A (en) | 2017-06-01 | 2017-06-01 | Code stream retransmission method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106993063A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332710A (en) * | 2017-07-30 | 2017-11-07 | 深圳有麦科技有限公司 | The distributed disaster recovery method of heat deployment based on API and its system |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001365A (en) * | 2007-01-19 | 2007-07-18 | 北京华纬讯电信技术有限公司 | Method for implementing media flow balance dispatching in vedio service |
CN101510844A (en) * | 2009-03-25 | 2009-08-19 | 杭州华三通信技术有限公司 | Multimedia code stream transmission method and system and management server |
CN103491353A (en) * | 2013-10-09 | 2014-01-01 | 南京怀业信息技术有限公司 | Method for video-monitoring streaming media transmission optimal path under multistage multi-domain network |
CN104581219A (en) * | 2014-12-22 | 2015-04-29 | 浙江工业大学 | Control method of stream media forwarding server |
WO2016169308A1 (en) * | 2015-04-21 | 2016-10-27 | 杭州海康威视数字技术股份有限公司 | Method and system for cloud-based storage of video, and method and system for previewing cloud-stored video |
-
2017
- 2017-06-01 CN CN201710402441.8A patent/CN106993063A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001365A (en) * | 2007-01-19 | 2007-07-18 | 北京华纬讯电信技术有限公司 | Method for implementing media flow balance dispatching in vedio service |
CN101510844A (en) * | 2009-03-25 | 2009-08-19 | 杭州华三通信技术有限公司 | Multimedia code stream transmission method and system and management server |
CN103491353A (en) * | 2013-10-09 | 2014-01-01 | 南京怀业信息技术有限公司 | Method for video-monitoring streaming media transmission optimal path under multistage multi-domain network |
CN104581219A (en) * | 2014-12-22 | 2015-04-29 | 浙江工业大学 | Control method of stream media forwarding server |
WO2016169308A1 (en) * | 2015-04-21 | 2016-10-27 | 杭州海康威视数字技术股份有限公司 | Method and system for cloud-based storage of video, and method and system for previewing cloud-stored video |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107332710A (en) * | 2017-07-30 | 2017-11-07 | 深圳有麦科技有限公司 | The distributed disaster recovery method of heat deployment based on API and its system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10439937B2 (en) | Service addressing in distributed environment | |
AU2019295818A1 (en) | Block chain-based data processing method and device | |
CN106131213A (en) | A kind of service management and system | |
CN109995842B (en) | Grouping method and device for distributed server cluster | |
CN108512715B (en) | Load pressure test method of service link and related device | |
CN110442610A (en) | The method, apparatus of load balancing calculates equipment and medium | |
TWI686703B (en) | Method and device for data storage and business processing | |
US20070156903A1 (en) | Methods and apparatuses for managing resources within a collaboration system | |
CN106713028A (en) | Service degradation method and apparatus, and distributed task scheduling system | |
CN107463593A (en) | Stock reduces method and its equipment | |
CN107133087A (en) | A kind of resource regulating method and equipment | |
CN109982034A (en) | Access request processing method and processing device in video monitoring system | |
CN114884962B (en) | Load balancing method and device and electronic equipment | |
CN116050978A (en) | Distribution route planning method, distribution route planning device, server device and storage medium | |
CN106993063A (en) | Code stream retransmission method and equipment | |
CN104281587B (en) | A kind of method and device for establishing connection | |
CN112035524B (en) | List data query method, device, computer equipment and readable storage medium | |
CN106571935A (en) | Resource scheduling method and device | |
CN107402812A (en) | Cluster resource dispatching method, device, equipment and storage medium | |
CN111464574B (en) | Calling, loading, registering and managing method and route, server, node and medium | |
CN114710485B (en) | Processing method and processing device | |
CN109064105A (en) | A kind of resource transfers request processing method, device and electronic equipment | |
CN113553193A (en) | Mirror image data auditing and distributing processing method and system | |
CN101482816A (en) | Middleware bridge system and method | |
CN110855764A (en) | Network traffic scheduling method and device and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170728 |