CN109347930A - A kind of task processing method and device - Google Patents

A kind of task processing method and device Download PDF

Info

Publication number
CN109347930A
CN109347930A CN201811135025.7A CN201811135025A CN109347930A CN 109347930 A CN109347930 A CN 109347930A CN 201811135025 A CN201811135025 A CN 201811135025A CN 109347930 A CN109347930 A CN 109347930A
Authority
CN
China
Prior art keywords
networking
task
depending
server
primary 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.)
Granted
Application number
CN201811135025.7A
Other languages
Chinese (zh)
Other versions
CN109347930B (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.)
Visionvera Information Technology Co Ltd
Original Assignee
Visionvera Information 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 Visionvera Information Technology Co Ltd filed Critical Visionvera Information Technology Co Ltd
Priority to CN201811135025.7A priority Critical patent/CN109347930B/en
Publication of CN109347930A publication Critical patent/CN109347930A/en
Application granted granted Critical
Publication of CN109347930B publication Critical patent/CN109347930B/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
    • H04L67/00Network-specific arrangements or communication protocols supporting networked applications
    • H04L67/32Network-specific arrangements or communication protocols supporting networked applications for scheduling or organising the servicing of application requests, e.g. requests for application data transmissions involving the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements or protocols for real-time communications
    • H04L65/40Services or applications

Abstract

The embodiment of the invention provides a kind of task processing methods, the method is applied to view networking, the view networking includes view networking tasks server, view networking primary server, view networking child servers group, view networked clients, the described method includes: described receive the task execution request that the view networked clients are sent depending on networking primary server, mission bit stream is extracted, the preset task list being stored in the view networking tasks server;If the task execution request number received is greater than preset threshold, described that task execution request is sent to the view networking child servers group depending on networking primary server;The view networking child servers group calls mission bit stream described in the preset task list, executes the task requests according to the mission bit stream and obtains implementing result, is back to the view networking primary server;It is described that the implementing result is sent to the view networked clients depending on networking primary server.Realize the purpose that view networked server executes multiple tasks.

Description

A kind of task processing method and device
Technical field
The present invention relates to view networking technology fields, more particularly to a kind of task processing method and a kind of task processing dress It sets.
Background technique
With the fast development of the network technology, the two-way communications such as video conference, video teaching the life of user, work, Study etc. is widely available, and has played positive effect in life and work application.
Wherein, it since traditional task tupe cannot timely handle current task, is especially carried out in concurrent tasks When, server cannot handle to change trade in time and be engaged in or task be caused to lose when multiple client is performed simultaneously task, for Important meeting causes adverse effect and consequence.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind A kind of task processing method and a kind of corresponding Task Processing Unit to solve the above problems.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of task processing method, the method is applied to view Networking, the view networking include view networking tasks server, view networking primary server, view networking child servers group, view networking visitor Family end, the method include: it is described depending on networking primary server receive it is described view networked clients transmission task execution ask It asks, extracts the mission bit stream in the task requests;It is described that the mission bit stream is stored in the view depending on networking primary server Preset task list in networking tasks server;If the task execution request received depending on networking primary server It is described that task execution request is sent to the view networking sub-services depending on networking primary server when number is greater than preset threshold Device group;The view networking child servers group is requested according to the task execution, calls described in the preset task list Business information;The view networking child servers group executes the task requests according to the mission bit stream, obtains implementing result;It is described The implementing result is back to the view networking primary server depending on networking child servers group;View networking primary server is by institute It states implementing result and is sent to the view networked clients.
The embodiment of the invention also discloses a kind of Task Processing Unit, described device is applied to view networking, the view networking Including view networking tasks server, view networking primary server, multiple views networking child servers, view networked clients, the dress Setting includes: task execution request receiving module, receives the view networked clients transmission depending on networking primary server for described Task execution request, extract the mission bit stream in the task requests;Mission bit stream memory module, for view networking master The mission bit stream is stored in the preset task list in the view networking tasks server by server;Task execution request turns Module is sent out, if the number for the task execution request received depending on networking primary server is greater than preset threshold, It is described that task execution request is sent to the view networking child servers group depending on networking primary server;First task information tune With module, is requested, called in the preset task list according to the task execution for view networking child servers group The mission bit stream;First implementing result obtains module, is held depending on networking child servers group according to the mission bit stream for described The row task requests, obtain implementing result;First implementing result return module is used for view networking child servers group for institute It states implementing result and is back to the view networking primary server;Implementing result forwarding module, will for view networking primary server The implementing result is sent to the view networked clients.
The embodiment of the invention also discloses a kind of task processing system, the system is applied to view networking, the view networking Including view networking tasks server, view networking primary server, view networking child servers group, view networked clients, wherein with it is described Depending on the connected view networking tasks server of networking primary server, for receiving and storing appointing for view networking primary server transmission Business information, the mission bit stream is stored in preset task list;With the client being connected depending on networking primary server End, for sending task execution request to view networking primary server;With view networking primary server and the task The connected view networking child servers group of server, comprising multiple views networking child servers, for receiving the view networking master The task execution request that server is sent, and requested according to the task execution, it calls described in the preset task list Mission bit stream executes the task requests according to the mission bit stream, obtains each implementing result, is back to the main clothes of the view networking Business device.With it is described depending on networking tasks server and it is described depending on networking child servers group be connected the view networking primary server, The task execution request sent for receiving the view networked clients, and in the number of task execution request greater than default When threshold value, task execution request is sent to the view networking child servers group.
The embodiment of the present invention includes following advantages:
In the embodiment of the present invention, it is described depending on networking primary server receive it is described view networked clients transmission task execution ask It asks, extracts mission bit stream, the preset task list being stored in the view networking tasks server;If the task received Execution request number is greater than preset threshold, described that task execution request is sent to the view networking depending on networking primary server Child servers group;The view networking child servers group calls mission bit stream described in the preset task list, according to described Business information executes the task requests and obtains implementing result, is back to the view networking primary server;The main service of the view networking The implementing result is sent to the view networked clients by device.Service when multiple client is performed simultaneously task of solution Device cannot handle the problem of being engaged in or task is caused to lose of changing trade in time.
Detailed description of the invention
Fig. 1 is a kind of networking schematic diagram of view networking of the invention;
Fig. 2 is a kind of hardware structural diagram of node server of the invention;
Fig. 3 is a kind of hardware structural diagram of access switch of the invention;
Fig. 4 is the hardware structural diagram that a kind of Ethernet association of the invention turns gateway;
Fig. 5 is a kind of step flow chart of task processing method embodiment of the invention;
Fig. 6 is a kind of structural block diagram of Task Processing Unit embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Applying mode, the present invention is described in further detail.
It is the important milestone of network Development depending on networking, is a real-time network, can be realized HD video real-time Transmission, Push numerous Internet applications to HD video, high definition is face-to-face.
Real-time high-definition video switching technology is used depending on networking, it can be such as high in a network platform by required service Clear video conference, Intellectualized monitoring analysis, emergency command, digital broadcast television, delay TV, the Web-based instruction, shows video monitoring Field live streaming, VOD program request, TV Mail, individual character records (PVR), Intranet (manages) channel by oneself, intelligent video Broadcast Control, information publication All be incorporated into a system platform etc. services such as tens of kinds of videos, voice, picture, text, communication, data, by TV or Computer realizes that high-definition quality video plays.
Embodiment in order to enable those skilled in the art to better understand the present invention is introduced to depending on networking below:
Depending on networking, applied portion of techniques is as described below:
Network technology (Network Technology)
Traditional ethernet (Ethernet) is improved depending on the network technology innovation networked, with potential huge on network Video flow.(Circuit is exchanged different from simple network packet packet switch (Packet Switching) or lattice network Switching), Streaming demand is met using Packet Switching depending on networking technology.Has grouping depending on networking technology Flexible, the simple and low price of exchange, is provided simultaneously with the quality and safety assurance of circuit switching, it is virtually electric to realize the whole network switch type The seamless connection of road and data format.
Switching technology (Switching Technology)
Two advantages of asynchronous and packet switch that Ethernet is used depending on networking eliminate Ethernet under the premise of complete compatible and lack It falls into, has the end-to-end seamless connection of the whole network, direct user terminal, directly carrying IP data packet.User data is in network-wide basis It is not required to any format conversion.It is the more advanced form of Ethernet depending on networking, is a real-time exchange platform, can be realized at present mutually The whole network large-scale high-definition realtime video transmission that networking cannot achieve pushes numerous network video applications to high Qinghua, unitizes.
Server technology (Server Technology)
It is different from traditional server, its Streaming Media depending on the server technology in networking and unified video platform Transmission be built upon it is connection-oriented on the basis of, data-handling capacity is unrelated with flow, communication time, single network layer energy Enough transmitted comprising signaling and data.For voice and video business, handled depending on networking and unified video platform Streaming Media Complexity many simpler than data processing, efficiency substantially increase hundred times or more than traditional server.
Reservoir technology (Storage Technology)
The ultrahigh speed reservoir technology of unified video platform in order to adapt to the media content of vast capacity and super-flow and Using state-of-the-art real time operating system, the programme information in server instruction is mapped to specific hard drive space, media Content is no longer pass through server, and moment is directly delivered to user terminal, and user waits typical time less than 0.2 second.It optimizes Sector distribution greatly reduces the mechanical movement of hard disc magnetic head tracking, and resource consumption only accounts for the 20% of the internet ad eundem IP, but The concurrent flow greater than 3 times of traditional disk array is generated, overall efficiency promotes 10 times or more.
Network security technology (Network Security Technology)
Depending on the structural design networked by servicing independent licence system, equipment and the modes such as user data is completely isolated every time The network security problem that puzzlement internet has thoroughly been eradicated from structure, does not need antivirus applet, firewall generally, has prevented black The attack of visitor and virus, structural carefree secure network is provided for user.
It services innovative technology (Service Innovation Technology)
Business and transmission are fused together by unified video platform, whether single user, private user or a net The sum total of network is all only primary automatic connection.User terminal, set-top box or PC are attached directly to unified video platform, obtain rich The multimedia video service of rich colorful various forms.Unified video platform is traditional to substitute with table schema using " menu type " Complicated applications programming, considerably less code, which can be used, can be realized complicated application, realize the new business innovation of " endless ".
Networking depending on networking is as described below:
It is a kind of central controlled network structure depending on networking, which can be Tree Network, Star network, ring network etc. class Type, but centralized control node is needed to control whole network in network on this basis.
As shown in Figure 1, being divided into access net and Metropolitan Area Network (MAN) two parts depending on networking.
The equipment of access mesh portions can be mainly divided into 3 classes: node server, access switch, terminal (including various machines Top box, encoding board, memory etc.).Node server is connected with access switch, and access switch can be with multiple terminal phases Even, and it can connect Ethernet.
Wherein, node server is the node that centralized control functions are played in access net, can control access switch and terminal. Node server can directly be connected with access switch, can also directly be connected with terminal.
Similar, the equipment of metropolitan area mesh portions can also be divided into 3 classes: metropolitan area server, node switch, node serve Device.Metropolitan area server is connected with node switch, and node switch can be connected with multiple node servers.
Wherein, node server is the node server for accessing mesh portions, i.e. node server had both belonged to access wet end Point, and belong to metropolitan area mesh portions.
Metropolitan area server is the node that centralized control functions are played in Metropolitan Area Network (MAN), can control node switch and node serve Device.Metropolitan area server can be directly connected to node switch, can also be directly connected to node server.
It can be seen that be entirely a kind of central controlled network structure of layering depending on networking network, and node server and metropolitan area The network controlled under server can be the various structures such as tree-shaped, star-like, cyclic annular.
Visually claim, access mesh portions can form unified video platform (part in virtual coil), and multiple unified videos are flat Platform can form view networking;Each unified video platform can be interconnected by metropolitan area and wide area depending on networking.
Classify depending on networked devices
1.1 embodiment of the present invention can be mainly divided into 3 classes: server depending on the equipment in networking, interchanger (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).Depending on networking can be divided on the whole Metropolitan Area Network (MAN) (or National net, World Wide Web etc.) and access net.
1.2 equipment for wherein accessing mesh portions can be mainly divided into 3 classes: node server, access switch (including ether Net gateway), terminal (including various set-top boxes, encoding board, memory etc.).
The specific hardware structure of each access network equipment are as follows:
Node server:
As shown in Fig. 2, mainly including Network Interface Module 201, switching engine module 202, CPU module 203, disk array Module 204;
Wherein, Network Interface Module 201, the Bao Jun that CPU module 203, disk array module 204 are come in enter switching engine Module 202;Switching engine module 202 look into the operation of address table 205 to the packet come in, to obtain the navigation information of packet; And the packet is stored according to the navigation information of packet the queue of corresponding pack buffer 206;If the queue of pack buffer 206 is close It is full, then it abandons;All pack buffer queues of 202 poll of switching engine mould, are forwarded: 1) port if meeting the following conditions It is less than to send caching;2) the queue package counting facility is greater than zero.Disk array module 204 mainly realizes the control to hard disk, including The operation such as initialization, read-write to hard disk;CPU module 203 is mainly responsible between access switch, terminal (not shown) Protocol processes, to address table 205 (including descending protocol packet address table, uplink protocol package address table, data packet addressed table) Configuration, and, the configuration to disk array module 204.
Access switch:
As shown in figure 3, mainly including Network Interface Module (downstream network interface module 301, uplink network interface module 302), switching engine module 303 and CPU module 304;
Wherein, the packet (upstream data) that downstream network interface module 301 is come in enters packet detection module 305;Packet detection mould Whether mesh way address (DA), source address (SA), type of data packet and the packet length of the detection packet of block 305 meet the requirements, if met, It then distributes corresponding flow identifier (stream-id), and enters switching engine module 303, otherwise abandon;Uplink network interface mould The packet (downlink data) that block 302 is come in enters switching engine module 303;The data packet that CPU module 204 is come in enters switching engine Module 303;Switching engine module 303 look into the operation of address table 306 to the packet come in, to obtain the navigation information of packet; If the packet into switching engine module 303 is that downstream network interface is gone toward uplink network interface, in conjunction with flow identifier (stream-id) packet is stored in the queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, It abandons;If the packet into switching engine module 303 is not that downstream network interface is gone toward uplink network interface, according to packet Navigation information is stored in the data packet queue of corresponding pack buffer 307;If the queue of the pack buffer 307 is close full, Then abandon.
All pack buffer queues of 303 poll of switching engine module, are divided to two kinds of situations in embodiments of the present invention:
If the queue is that downstream network interface is gone toward uplink network interface, meets the following conditions and be forwarded: 1) It is less than that the port sends caching;2) the queue package counting facility is greater than zero;3) token that rate control module generates is obtained;
If the queue is not that downstream network interface is gone toward uplink network interface, meets the following conditions and is forwarded: 1) it is less than to send caching for the port;2) the queue package counting facility is greater than zero.
Rate control module 208 is configured by CPU module 204, to all downlink networks in programmable interval Interface generates token toward the pack buffer queue that uplink network interface is gone, to control the code rate of forwarded upstream.
CPU module 304 is mainly responsible for the protocol processes between node server, the configuration to address table 306, and, Configuration to rate control module 308.
Ethernet association turns gateway:
As shown in figure 4, mainly including Network Interface Module (downstream network interface module 401, uplink network interface module 402), switching engine module 403, CPU module 404, packet detection module 405, rate control module 408, address table 406, Bao Huan Storage 407 and MAC adding module 409, MAC removing module 410.
Wherein, the data packet that downstream network interface module 401 is come in enters packet detection module 405;Packet detection module 405 is examined Ethernet mac DA, ethernet mac SA, Ethernet length or frame type, the view networking mesh way address of measured data packet DA, whether meet the requirements depending on networking source address SA, depending on networking data Packet type and packet length, corresponding stream is distributed if meeting Identifier (stream-id);Then, MAC DA, MAC SA, length or frame type are subtracted by MAC removing module 410 (2byte), and enter corresponding receive and cache, otherwise abandon;
Downstream network interface module 401 detects the transmission caching of the port, according to the view of packet networking mesh if there is Bao Ze Address D A knows the ethernet mac DA of corresponding terminal, adds the ethernet mac DA of terminal, Ethernet assists the MAC for turning gateway SA, Ethernet length or frame type, and send.
The function that Ethernet association turns other modules in gateway is similar with access switch.
Terminal:
It mainly include Network Interface Module, Service Processing Module and CPU module;For example, set-top box mainly connects including network Mouth mold block, video/audio encoding and decoding engine modules, CPU module;Encoding board mainly includes Network Interface Module, video encoding engine Module, CPU module;Memory mainly includes Network Interface Module, CPU module and disk array module.
The equipment of 1.3 metropolitan area mesh portions can be mainly divided into 2 classes: node server, node switch, metropolitan area server. Wherein, node switch mainly includes Network Interface Module, switching engine module and CPU module;Metropolitan area server mainly includes Network Interface Module, switching engine module and CPU module are constituted.
2, networking data package definition is regarded
2.1 access network data package definitions
Access net data packet mainly include following sections: destination address (DA), source address (SA), reserve bytes, payload(PDU)、CRC。
As shown in the table, the data packet for accessing net mainly includes following sections:
DA SA Reserved Payload CRC
Wherein:
Destination address (DA) is made of 8 bytes (byte), and first character section indicates type (such as the various associations of data packet Discuss packet, multicast packet, unicast packet etc.), be up to 256 kinds of possibility, the second byte to the 6th byte is metropolitan area net address, Seven, the 8th bytes are access net address;
Source address (SA) is also to be made of 8 bytes (byte), is defined identical as destination address (DA);
Reserve bytes are made of 2 bytes;
The part payload has different length according to the type of different datagrams, is if it is various protocol packages 64 bytes are 32+1024=1056 bytes if it is single group unicast packets words, are not restricted to above 2 kinds certainly;
CRC is made of 4 bytes, and calculation method follows the Ethernet CRC algorithm of standard.
2.2 Metropolitan Area Network (MAN) packet definitions
The topology of Metropolitan Area Network (MAN) is pattern, may there is 2 kinds, connection even of more than two kinds, i.e. node switching between two equipment It can all can exceed that 2 kinds between machine and node server, node switch and node switch, node switch and node server Connection.But the metropolitan area net address of metropolitan area network equipment is uniquely, to close to accurately describe the connection between metropolitan area network equipment System, introduces parameter in embodiments of the present invention: label, uniquely to describe a metropolitan area network equipment.
(Multi-Protocol Label Switch, multiprotocol label are handed over by the definition of label and MPLS in this specification Change) label definition it is similar, it is assumed that between equipment A and equipment B there are two connection, then data packet from equipment A to equipment B just There are 2 labels, data packet also there are 2 labels from equipment B to equipment A.Label is divided into label, outgoing label, it is assumed that data packet enters The label (entering label) of equipment A is 0x0000, and the label (outgoing label) when this data packet leaves equipment A may reform into 0x0001.The networking process of Metropolitan Area Network (MAN) is to enter network process under centralized control, also means that address distribution, the label of Metropolitan Area Network (MAN) Distribution be all to be dominated by metropolitan area server, node switch, node server be all passively execute, this point with The label distribution of MPLS is different, and the distribution of the label of MPLS is the result that interchanger, server are negotiated mutually.
As shown in the table, the data packet of Metropolitan Area Network (MAN) mainly includes following sections:
DA SA Reserved Label Payload CRC
That is destination address (DA), source address (SA), reserve bytes (Reserved), label, payload (PDU), CRC.Its In, the format of label, which can refer to, such as gives a definition: label is 32bit, wherein high 16bit retains, only with low 16bit, its position Set is between the reserve bytes and payload of data packet.
Based on the above-mentioned characteristic of view networking, one of the core concepts of the embodiments of the present invention is proposed, it then follows regard the association of networking View receives the emergency command that the view networked terminals are sent by the task processing server of local terminal and requests, task processing server Accident information is ranked up according to the accident gradation information, emergency command request is sent to web clothes according to ranking results Business device, then view networked server is sent to by web server, realize that task processing terminal and view networked terminals carry out emergency command The purpose of video connection.
Referring to Fig. 5, a kind of step flow chart of task processing method embodiment of the invention is shown, this method is applied to Depending on networking, the view networking includes view networking tasks server, view networking primary server, view networking child servers group, view networking Client can specifically include following steps:
Step 501, described that the task execution request that the view networked clients are sent is received depending on networking primary server, it mentions Take the mission bit stream in the task requests;
In the embodiment of the present invention, by carry out view networked video meeting for, when multiple client to view network primary server When initiating video conference connection request, the task execution request depending on primary server of networking is sent to again comprising wanting to set up video council Discuss the task essential information, including object oriented, address, subordinate server etc. of connection.
Wherein, when receiving task execution request depending on networking primary server, task essential information therein is extracted.
Step 502, described that the mission bit stream is stored in the view networking tasks server depending on networking primary server Preset task list;
Specifically, after extracting task essential information depending on networking primary server, view networking tasks server is sent it to, is deposited Storage is in the task information list of threshold value, i.e., in threshold tasks list, so that Servers-all is called at any time, realizes distribution Formula is synchronous.
Preferably, after step 502 further include:
Step S1, the number of the task execution request received depending on networking primary server is no more than preset threshold When, the view networking primary server is requested according to the task execution, calls the task letter in the preset task list Breath;
Specifically, it requests to be not above preset threshold in the execution of same time received task when depending on networking primary server When, i.e., depending on networking primary server have the ability being performed simultaneously the number of the task when, then by view network primary server executed, and And the mission bit stream in the preset task list of calling.
Wherein, mission bit stream is not stored on view networking primary server, can uniformly pass through view with temporary cache Networking tasks server calls mission bit stream realizes United Dispatching.
Step S2, the view networking primary server execute the task requests according to the mission bit stream, obtain executing knot Fruit;
Specifically, which is executed, such as regarding after obtaining task execution object information by the mission bit stream of calling Network meeting in, by view networking communication protocol connect task execution object, i.e., by extract task execution request client with It executes and establishes connection between object.
Step S3, if described be sent to the view networked clients for the implementing result depending on networking primary server.
Specifically, when view networking primary server, which executes, completes the task in task execution request, for example, networking in view In meeting, successful connection will be established between the client for extracting task execution request and execution object, execute knot then being returned to Fruit.
Under normal conditions, implementing result be divided into successfully, failure or time-out, view networking primary server in respectively with difference Coding identified, such as successful not 001, be unsuccessfully 002, time-out is 003, view network primary server by implementing result with generation The form of code is back to corresponding view networked clients.
Step 503, if the number of the task execution request received depending on networking primary server is greater than default threshold It is described that task execution request is sent to the view networking child servers group depending on networking primary server when value;
Specifically, if in the same time, request is executed depending on networking primary server received task and is greater than preset threshold, It would be possible that the case where task of generation is lost and cannot be handled in time, needs to be distributed to task at other Server assistances at this time Reason.
It is to be appreciated that the task of view networking primary server distribution can be completed depending on being provided with child servers group in networking Request.
It is to be appreciated that the time set by preset threshold is by related technical personnel according to the negative of view networking primary server What loading capability was configured, it can be modified by related technical personnel according to specific implementation situation, the embodiment of the present invention is to this It is without restriction.
Step 504, the view networking child servers group is requested according to the task execution, calls the preset task list In the mission bit stream;
Specifically, it when receiving task execution request depending on networking child servers group, goes to adjust according to task execution request With the corresponding mission bit stream depending on being stored in networking tasks server in preset task list.
It is to be appreciated that include the view networked client client information for sending task requests in each task execution request, with And the information such as sending time, execution task type, execution task object further include moreover the unique of task execution request Identification marking can extract this in preset task list depending on networking child servers group by unique identifier therein Business information.
Wherein, the content for including in mission bit stream is not limited to foregoing description, and the embodiments of the present invention are not limited thereto.
Preferably, the view networking child servers group includes multiple views networking child servers, then step 504 includes:
Sub-step B1, any view networking child servers in the view networking child servers group, holds according to the task Row request, calls the mission bit stream in the preset task list.
Specifically, multiple view networking child servers be may include depending on networking child servers group.
Wherein, when receiving task execution request depending on networking child servers group, the view connection of any free time can be distributed to Net server is executed.
It is to be appreciated that can be networked sub-services by view when the task execution request of distribution view networking primary server forwarding Device group is scheduled by preset rules, for example, task type A is uniformly sent to view networking child servers A, task type B system One be sent to view networking child servers B, alternatively, by the C of region client send task execution request unified distribution to regard Network child servers C etc..
Wherein, multiple view networking child servers groups can be set in depending on networking, received depending on networking child servers group A Task execution request reach the upper limit after, can by view networking child servers group B continue to task execution request.
Certainly, in practical applications, it is not limited to depending on the task execution request scheduling rule in networking child servers group above-mentioned Description, the embodiments of the present invention are not limited thereto.
It should be understood that the mission bit stream storage in preset task list is the unique identification generation requested according to task execution Code carries out sequentially storage ground, i.e., is stored according to receiving time.
Step 505, the view networking child servers group executes the task requests according to the mission bit stream, is executed As a result;
Specifically, it executes after completing received task execution request, implementing result can be returned depending on networking child servers group Be back to view networking primary server, according to foregoing description, every kind of implementing result has a coding, such as succeeds not 001, unsuccessfully for 002, time-out is 003.
Step 506, described that the implementing result is back to the view networking primary server depending on networking child servers group;
Specifically, it once completes to hold depending on networking child servers depending on what execution task execution in networking child servers group was requested The coding is then back to view networking primary server by row.
Step 507, described that the implementing result is sent to the view networked clients depending on networking primary server.
Specifically, after the implementing result that view networking child servers return being received depending on networking primary server, it is forwarded to correspondence View networked clients.
Preferably, step 507, comprising: sub-step A1-A2;
Sub-step A1 will be described if described receive the implementing result depending on networking primary server within a preset time Implementing result is sent to the view networked clients.
Specifically, when the implementing result for receiving view networking child servers return within a preset time depending on networking primary server Afterwards, corresponding view networked clients are forwarded to.
It is to be appreciated that preset time is to require to be formulated by related technical personnel according to depending on the Internet services, such as join in view When net meeting connects, if do not responded within 10 seconds, connection request is re-initiated, certainly, the setting of preset time is not Within the scope of the restriction of the embodiment of the present invention.
Sub-step A2 is returned if described be not received by the implementing result depending on networking primary server within a preset time Return step 504.
Specifically, when the execution for being not received by view networking child servers return within a preset time depending on networking primary server As a result, being so returned to step 504, request view networking child servers group is requested according to the task execution, is called described preset The mission bit stream in task list re-executes above-mentioned task execution request, until obtaining implementing result.
Wherein, when the execution knot for being not received by view networking child servers return in preset time depending on networking primary server Fruit can also determine task execution time-out, return to step 503, will again request task execution depending on networking primary server It is sent to the view networking child servers group.
In embodiments of the present invention, method is applied to view networking, and the view networking includes view networking tasks server, view connection Host server, view networking child servers group, view networked clients, the method include: it is described view network primary server connect The task execution request that the view networked clients are sent is received, the mission bit stream in the task requests is extracted;The view connection The mission bit stream is stored in the preset task list in the view networking tasks server by host server;If the view connection When the number of the task execution that host server receives request is greater than preset threshold, the view networks primary server for institute It states task execution request and is sent to the view networking child servers group;The view networking child servers group is according to the task execution The mission bit stream in the preset task list is called in request;The view networking child servers group is believed according to the task Breath executes the task requests, obtains implementing result;It is described the implementing result is back to depending on networking child servers group it is described Depending on primary server of networking;It is described that the implementing result is sent to the view networked clients depending on networking primary server, it meets It can handle the demand of parallel multiple tasks depending on networking primary server.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented Necessary to example.
Referring to Fig. 6, a kind of structural block diagram of Task Processing Unit embodiment of the invention is shown, which is applied to view Networking, the view networking includes view networking tasks server, view networking primary server, multiple views networking child servers, view networking Client can specifically include following module:
Task execution request receiving module 601 receives the view networked clients depending on networking primary server for described The task execution of transmission is requested, and the mission bit stream in the task requests is extracted;
The mission bit stream is stored in the view depending on networking primary server for described by mission bit stream memory module 602 Preset task list in networking tasks server;
Preferably, further includes:
Second mission bit stream calling module, for the task execution request received depending on networking primary server When number is not more than preset threshold, the view networking primary server is requested according to the task execution, calls the preset task The mission bit stream in list;
Second implementing result obtains module, executes described appoint according to the mission bit stream for view networking primary server Business request, obtains implementing result;
Second implementing result return module, if each implementing result is sent to institute depending on networking primary server for described State view networked clients.
Task execution requests forwarding module 603, if for the task execution received depending on networking primary server It is described that task execution request is sent to the view networking depending on networking primary server when the number of request is greater than preset threshold Child servers group;
First task information calling module 604 is requested for view networking child servers group according to the task execution, Call the mission bit stream in the preset task list;
Preferably, the view networking child servers group includes multiple views networking child servers, the first task information tune With module 604, comprising:
First task information calls submodule, for the view networking sub-services any in view networking child servers group Device is requested according to the task execution, calls the mission bit stream in the preset task list.
First implementing result obtains module 605, is executed for view networking child servers group according to the mission bit stream The task requests, obtain implementing result;
The implementing result is back to for described depending on networking child servers group by the first implementing result return module 606 The view networking primary server;
The implementing result is sent to the view depending on networking primary server for described by implementing result forwarding module 607 Networked clients.
Preferably, the implementing result forwarding module 607, comprising:
First forwarding submodule, if receiving described execute knot within a preset time for view primary server of networking The implementing result is then sent to the view networked clients by fruit.
Second forwarding submodule, if being not received by the execution within a preset time depending on networking primary server for described As a result, then returning to the mission bit stream calling module.
In embodiments of the present invention, method is applied to view networking, and the view networking includes view networking tasks server, view connection Host server, multiple views networking child servers, view networked clients, the device include: that task execution request receives mould Block receives the task execution request that the view networked clients are sent depending on networking primary server for described, extracts described appoint Mission bit stream in business request;Mission bit stream memory module stores the mission bit stream depending on networking primary server for described Preset task list in the view networking tasks server;Task execution requests forwarding module, if networking for the view When the number of the task execution that primary server receives request is greater than preset threshold, the view networking primary server will described in Task execution request is sent to the view networking child servers group;First task information calling module, for view networking Server group is requested according to the task execution, calls the mission bit stream in the preset task list;First executes knot Fruit obtains module, executes the task requests according to the mission bit stream for view networking child servers group, is executed As a result;The implementing result is back to the view depending on networking child servers group for described by the first implementing result return module Networking primary server;Implementing result forwarding module, for it is described depending on networking primary server the implementing result is sent to it is described Depending on networked clients.Meet the demand that can handle parallel multiple tasks depending on networking primary server.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple Place illustrates referring to the part of embodiment of the method.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of task processing method provided by the present invention and a kind of Task Processing Unit, detailed Jie has been carried out It continues, used herein a specific example illustrates the principle and implementation of the invention, and the explanation of above embodiments is only It is to be used to help understand method and its core concept of the invention;At the same time, for those skilled in the art, according to this hair Bright thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not manage Solution is limitation of the present invention.

Claims (9)

1. a kind of task processing method, which is characterized in that the method is applied to view networking, and the view networking includes that view networking is appointed Business server, view networking child servers group, regards networked clients at view networking primary server, and the method includes:
It is described that the task execution request that the view networked clients are sent is received depending on networking primary server, it extracts the task and asks Mission bit stream in asking;
It is described to arrange the preset task that the mission bit stream is stored in the view networking tasks server depending on networking primary server Table;
If the number of the task execution request received depending on networking primary server is greater than preset threshold, the view connection Task execution request is sent to the view networking child servers group by host server;
The view networking child servers group is requested according to the task execution, calls the task in the preset task list Information;
The view networking child servers group executes the task requests according to the mission bit stream, obtains implementing result;
It is described that the implementing result is back to the view networking primary server depending on networking child servers group;
It is described that the implementing result is sent to the view networked clients depending on networking primary server.
2. the method according to claim 1, wherein described send the implementing result depending on networking primary server The step of to the view networked clients, comprising:
If described receive the implementing result depending on networking primary server within a preset time, the implementing result is sent to The view networked clients.
If described be not received by the implementing result depending on networking primary server within a preset time, view networking is returned The step of server group is requested according to the task execution, calls the mission bit stream in the preset task list.
3. the method according to claim 1, wherein the mission bit stream is deposited depending on networking primary server described Store up it is described view networking tasks server in preset task list the step of after, further includes:
When the number of the task execution request received depending on networking primary server is no more than preset threshold, the view connection Host server is requested according to the task execution, calls the mission bit stream in the preset task list;
The view networking primary server executes the task requests according to the mission bit stream, obtains implementing result;
If described be sent to the view networked clients for the implementing result depending on networking primary server.
4. the method according to claim 1, wherein view networking child servers group includes multiple views networking Server, the view networking child servers group are requested according to the task execution, are called described in the preset task list The step of mission bit stream, comprising:
Any view networking child servers, request according to the task execution, call institute in the view networking child servers group State the mission bit stream in preset task list.
5. a kind of Task Processing Unit, which is characterized in that described device is applied to view networking, and the view networking includes that view networking is appointed Business server, view networking primary server, multiple views networking child servers, view networked clients, the device include:
Task execution request receiving module receives times that the view networked clients are sent depending on networking primary server for described Business executes request, extracts the mission bit stream in the task requests;
The mission bit stream is stored in the view networking tasks depending on networking primary server for described by mission bit stream memory module Preset task list in server;
Task execution requests forwarding module, if the number for the task execution request received depending on networking primary server It is described that task execution request is sent to the view networking child servers depending on networking primary server when mesh is greater than preset threshold Group;
First task information calling module requests according to the task execution for view networking child servers group, calls institute State the mission bit stream in preset task list;
First implementing result obtains module, executes the task according to the mission bit stream for view networking child servers group Request, obtains implementing result;
The implementing result is back to the view connection depending on networking child servers group for described by the first implementing result return module Host server;
The implementing result is sent to the view networked client depending on networking primary server for described by implementing result forwarding module End.
6. device according to claim 5, which is characterized in that the implementing result forwarding module, comprising:
First forwarding submodule, if receiving the implementing result within a preset time depending on networking primary server for described, The implementing result is sent to the view networked clients.
Second forwarding submodule, if being not received by described execute knot within a preset time for view primary server of networking Fruit then returns to the mission bit stream calling module.
7. device according to claim 5, which is characterized in that further include:
Second mission bit stream calling module, the number for the task execution request received depending on networking primary server When no more than preset threshold, the view networking primary server is requested according to the task execution, calls the preset task list In the mission bit stream;
Second implementing result obtains module, is asked depending on networking primary server according to the mission bit stream execution task for described It asks, obtains implementing result;
Second implementing result return module, if each implementing result is sent to the view depending on networking primary server for described Networked clients.
8. device according to claim 5, which is characterized in that the view networking child servers group includes multiple views networking Server, the first task information calling module, comprising:
First task information calls submodule, is used for any view networking child servers in view networking child servers group, It is requested according to the task execution, calls the mission bit stream in the preset task list.
9. a kind of task processing system, which is characterized in that the system is applied to view networking, and the view networking includes that view networking is appointed Business server, view networking child servers group, regards networked clients at view networking primary server, wherein
With the view networking tasks server being connected depending on networking primary server, main service of networking is regarded for receiving and storing The mission bit stream that device is sent, the mission bit stream is stored in preset task list;
With the client being connected depending on networking primary server, it is used to send task execution to view networking primary server Request;
It include multiple with the view networking child servers group being connected depending on networking primary server and the task server Depending on child servers of networking, the task execution request sent for receiving the view networking primary server, and held according to the task Row request, calls the mission bit stream in the preset task list, executes the task requests according to the mission bit stream, Each implementing result is obtained, the view networking primary server is back to.
With it is described depending on networking tasks server and it is described network primary server depending on the view that is connected of networking child servers group, use It is requested in receiving the task execution that the view networked clients are sent, and is greater than default threshold in the number of task execution request When value, task execution request is sent to the view networking child servers group.
CN201811135025.7A 2018-09-27 2018-09-27 Task processing method and device Active CN109347930B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811135025.7A CN109347930B (en) 2018-09-27 2018-09-27 Task processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811135025.7A CN109347930B (en) 2018-09-27 2018-09-27 Task processing method and device

Publications (2)

Publication Number Publication Date
CN109347930A true CN109347930A (en) 2019-02-15
CN109347930B CN109347930B (en) 2021-04-27

Family

ID=65307412

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811135025.7A Active CN109347930B (en) 2018-09-27 2018-09-27 Task processing method and device

Country Status (1)

Country Link
CN (1) CN109347930B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417933A (en) * 2019-08-05 2019-11-05 视联动力信息技术股份有限公司 A kind of processing method of business object, device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222621A1 (en) * 2008-02-29 2009-09-03 International Business Machines Corporation Managing the allocation of task control blocks
CN102799467A (en) * 2011-05-27 2012-11-28 金蝶软件(中国)有限公司 Method and system for allocating tasks
KR101232561B1 (en) * 2011-02-07 2013-02-12 고려대학교 산학협력단 Apparatus and method for scheduling task and resizing cache memory of embedded multicore processor
CN104461710A (en) * 2014-12-12 2015-03-25 北京国双科技有限公司 Method and device for processing tasks
CN105373429A (en) * 2014-08-20 2016-03-02 腾讯科技(深圳)有限公司 Task scheduling method, device and system
CN105718315A (en) * 2016-02-17 2016-06-29 中国农业银行股份有限公司 Task processing method and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090222621A1 (en) * 2008-02-29 2009-09-03 International Business Machines Corporation Managing the allocation of task control blocks
KR101232561B1 (en) * 2011-02-07 2013-02-12 고려대학교 산학협력단 Apparatus and method for scheduling task and resizing cache memory of embedded multicore processor
CN102799467A (en) * 2011-05-27 2012-11-28 金蝶软件(中国)有限公司 Method and system for allocating tasks
CN105373429A (en) * 2014-08-20 2016-03-02 腾讯科技(深圳)有限公司 Task scheduling method, device and system
CN104461710A (en) * 2014-12-12 2015-03-25 北京国双科技有限公司 Method and device for processing tasks
CN105718315A (en) * 2016-02-17 2016-06-29 中国农业银行股份有限公司 Task processing method and server

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110417933A (en) * 2019-08-05 2019-11-05 视联动力信息技术股份有限公司 A kind of processing method of business object, device and storage medium
CN110417933B (en) * 2019-08-05 2021-09-10 视联动力信息技术股份有限公司 Business object processing method and device and storage medium

Also Published As

Publication number Publication date
CN109347930B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
CN108075920B (en) A kind of management method and system regarding networked terminals
CN108012106B (en) A kind of method and system regarding networking monitoring source synchronous
CN109617956A (en) A kind of data processing method and device
CN109474715A (en) A kind of resource allocation method and device based on view networking
CN109768963A (en) A kind of meeting unlatching method and system based on view networking
CN108965226A (en) A kind of data capture method and device based on view networking
CN109819198A (en) A kind of meeting measures and procedures for the examination and approval and device based on view networking
CN109889779A (en) A kind for the treatment of method and apparatus of packet out-ordering
CN109194901A (en) A kind of method for processing video frequency and device based on view networking
CN109491783A (en) A kind of acquisition methods and system of memory usage
CN109698859A (en) A kind of date storage method and device based on view networking
CN109347930A (en) A kind of task processing method and device
CN109714558A (en) A kind of communication connection detection method and system based on view networking
CN110048903A (en) A kind of association turns gateway status monitoring method and device
CN110139074A (en) A kind of apparatus control method and system based on view networking
CN110166363A (en) A kind of multicast link monitoring method and device
CN109617965A (en) A kind of communication connection method for building up and view networked system
CN109450603A (en) A kind of sending method and system regarding networking data
CN110022455A (en) A kind of system and method for Conference control
CN109688073A (en) A kind of data processing method and system based on view networking
CN109525635A (en) A kind of acquisition methods and system of memory usage
CN109729184A (en) A kind of method and apparatus of view networking service processing
CN109121017A (en) A kind of view intranet network method for evaluating quality and device
CN108574655A (en) A kind of meeting prison broadcasting method and device
CN108881965B (en) A kind of server processes operating method and device

Legal Events

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