CN116192932A - Service processing method, device, electronic equipment and storage medium - Google Patents

Service processing method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116192932A
CN116192932A CN202211565877.6A CN202211565877A CN116192932A CN 116192932 A CN116192932 A CN 116192932A CN 202211565877 A CN202211565877 A CN 202211565877A CN 116192932 A CN116192932 A CN 116192932A
Authority
CN
China
Prior art keywords
server
service
system terminal
target
instruction
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
Application number
CN202211565877.6A
Other languages
Chinese (zh)
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 CN202211565877.6A priority Critical patent/CN116192932A/en
Publication of CN116192932A publication Critical patent/CN116192932A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Computer And Data Communications (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a storage medium for processing business, wherein the method comprises the following steps: receiving a whole network service instruction transmitted layer by layer according to the layer relation of a plurality of servers, wherein the whole network service instruction is generated by a service system terminal and transmitted layer by layer from a server connected with the service system terminal, and comprises a target service instruction and a first server identification of a target server for processing the target service instruction; judging whether the current server receiving the whole network service instruction is a destination server or not based on the first server identifier; when the current server is judged to be the target server, the target service is executed in the current server, and the method and the device realize that the service system terminal establishes connection with the target server which is not directly connected, initiate the service, and process the service in the target server without logging in by a user, thereby improving the service processing efficiency.

Description

Service processing method, device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of service processing technologies, and in particular, to a service processing method, a device, an electronic device, and a storage medium.
Background
In the service of the video networking, the service communication between users of different servers needs to be performed based on the service system terminal under the condition that the servers on both sides are connected with the service system terminal and the users on both sides log in simultaneously, and related services are processed in the service system terminal.
When the service system terminal is only connected with one server and the network is not communicated with other servers, the service system terminal cannot establish communication connection with other servers and perform service operation. In addition, when the user receiving the service command is not online (i.e. does not log in the service system terminal), the service cannot be initiated.
Disclosure of Invention
In view of the foregoing, a method, an apparatus, an electronic device, and a storage medium for providing a business process that overcomes or at least partially solves the foregoing problems are provided, including:
a business processing method is applied to a master control device of a server, a plurality of servers are connected in a hierarchical mode, a business system terminal is connected with one of the servers, and the method comprises the following steps:
receiving a whole network service instruction transmitted layer by layer according to the hierarchical relation of the servers, wherein the whole network service instruction is generated for the service system terminal and transmitted layer by layer from a server connected with the service system terminal, and comprises a target service instruction and a first server identification of a destination server for processing the target service instruction;
Judging whether the current server receiving the target service instruction is a target server or not based on the first server identifier;
and executing the target business instruction in the current server when the current server is judged to be the target server.
Optionally, the method further comprises:
after the target service instruction is executed, generating a service response packet of the target service instruction, wherein the service response packet comprises a second server identifier of a server connected with the service system terminal;
and returning the service response packet to the service system terminal layer by layer according to the second server identification and the layer relation of the plurality of servers.
Optionally, the returning the service response packet to the service system terminal according to the second server identifier and the hierarchical relation of the plurality of servers, includes:
receiving service response packets transmitted layer by layer according to the layer relation of the plurality of servers;
judging whether the current server receiving the service response packet is a server connected with the service system terminal or not based on the second server identifier;
and when the current server is judged to be the server connected with the service system terminal, forwarding the service response packet to the service system terminal.
Optionally, when the current server is determined to be the server connected to the service system terminal, forwarding the service response packet to the service system terminal includes:
when the current server is judged to be the server connected with the service system terminal, determining the user login state of the service system terminal;
and when the user login state is an on-line state, forwarding the service response packet to the service system terminal.
Optionally, the method further comprises:
and discarding the service response packet when the user login state is an offline state.
Optionally, the method further comprises:
when judging that the current server is not a target server, determining the hierarchical relationship between the target server and the current server according to the first server identifier;
and forwarding the whole network service instruction to the destination server according to the hierarchical relationship.
Optionally, the server may further include one or more border routing servers, and forwarding the full-network service instruction to the destination server according to the hierarchical relationship, including:
determining the forwarding direction of the whole network service instruction according to the hierarchical relationship;
determining a target border routing device from one or more border routing devices based on the forwarding direction;
And sending the whole network service instruction to target boundary routing equipment, and forwarding the whole network service instruction to a target server by the target boundary routing equipment.
A service processing device, applied to a master control device of a server, wherein a plurality of servers are connected in a hierarchical manner, and a service system terminal is connected with one of the servers, the device comprises:
the system comprises a whole network service instruction receiving module, a whole network service instruction processing module and a whole network service instruction processing module, wherein the whole network service instruction receiving module is used for receiving whole network service instructions which are transmitted layer by layer according to the hierarchical relation of a plurality of servers, the whole network service instructions are generated for a service system terminal and are transmitted layer by layer from a server connected with the service system terminal, and the whole network service instructions comprise target service instructions and first server identifiers of destination servers for processing the target service instructions;
the first server identification judging module is used for judging whether the current server is a destination server or not based on the first server identification;
and the service execution module is used for executing the target service instruction in the current server when the current server receiving the target service instruction is judged to be the target server.
An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, implements a method of traffic handling as described above.
A computer readable storage medium having stored thereon a computer program which when executed by a processor implements a method of traffic handling as described above.
The embodiment of the invention has the following advantages:
the embodiment of the invention receives the whole network service instruction transmitted layer by layer according to the layer relation of a plurality of servers, wherein the whole network service instruction is generated by a service system terminal and starts to be transmitted layer by layer from the server connected with the service system terminal, and the whole network service instruction comprises a target service instruction and a first server identifier of a target server for processing the target service instruction; judging whether the current server receiving the whole network service instruction is a destination server or not based on the first server identifier; when the current server is judged to be the target server, the target service instruction is executed in the current server, so that the connection between the service system terminal and the target server which is not directly connected is established, the service is initiated across the servers, and the service can be processed in the target server without logging in by a user, thereby improving the service processing efficiency.
Drawings
In order to more clearly illustrate the technical solutions of the present invention, the drawings that are needed in the description of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort to a person skilled in the art.
FIG. 1 is a flow chart of steps of a method for processing services according to an embodiment of the present invention;
FIG. 2 is a flow chart of steps of another method for processing services according to an embodiment of the present invention;
FIG. 3a is a schematic diagram of a server-level connection according to an embodiment of the present invention;
FIG. 3b is a schematic diagram of a business process according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus for service processing according to an embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description. It will be apparent that the described embodiments are some, but not all, embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flowchart illustrating steps of a method for processing a service according to an embodiment of the present invention is applied to a master control device of a server, where a plurality of servers are connected by a hierarchy, and a service system terminal is connected to one of the servers, and may specifically include the following steps:
Step 101, receiving a whole network service instruction transmitted layer by layer according to the hierarchical relation of a plurality of servers, wherein the whole network service instruction is generated by a service system terminal and starts to be transmitted layer by layer from a server connected with the service system terminal, and the whole network service instruction comprises a target service instruction and a first server identifier of a target server for processing the target service instruction;
in the internet of view, a plurality of servers may be connected in a hierarchical manner, for example, a lower layer of the server a is connected to the server B, and a lower layer of the server B is connected to the server C, where an upper layer of the server B is the server a, and a lower layer of the server B is the server C. The connection among the server A, the server B and the server C is a hierarchical connection mode.
The server in the embodiment of the invention can be a core server, and the core server is central equipment in the communication process of the video networking and can be used for realizing the functions of forwarding the video networking instruction, establishing the video multicast address, distributing the video stream and the like. Each core server may include a master control device, where the master control device in the core server is a brain of the core server and may be configured to receive and process a command sent by a service layer (such as a service system terminal), and feed back a service result to the service layer.
A service processing flow, a forwarding flow and a issuing flow of the whole network service instruction can be specifically arranged in the main control equipment in the server; the service processing flow of the whole network service refers to a target service instruction encapsulated by the whole network service instruction executed in the main control equipment; the forwarding flow is to forward the whole network service instruction to other servers for processing; the issuing process is to send the data to the connected service system terminal under the condition that the user of the service system terminal logs in.
The whole network service instruction is a service instruction which can be transmitted across servers, so that the whole network service instruction can be transmitted between a plurality of servers connected in a hierarchical manner to a destination server; the whole network service instruction can comprise a target service instruction and a first server identifier, wherein the target service instruction is a service instruction to be processed, the first server identifier is a server identifier of a destination server for processing the target service instruction, each server is provided with a corresponding server identifier, and the server identifier is a unique identity identifier of the server.
The service system terminal may be connected to at least one server of the plurality of servers, and for a service user registered in the server to which the service system terminal is connected, the service user may log in to the connected server through the service system terminal to initiate a service.
After the user logs in the server connected with the user through the service system terminal, the user can input service data in the service system terminal, wherein the service data can comprise a server identifier, a service type and service parameters of the service processing server (namely, the destination server).
Taking a service system terminal as an example, a conference service is created, in the service system terminal, conference data may be input in the service system terminal in response to an input operation of a user, and the conference data may include: conference name, conference global identification, participant terminal global equipment number, etc.
The global device number may be divided into 4 segments, for example 00001-00002-00003-01001, the first 3 segments "00001-00002-00003" represent the prefix number of the server where the device is located (i.e. the server identifier of the destination server), each server has a prefix number unique to the whole network, and the last segment "01001" may represent the number of the reference device.
After the service data is input in the service system terminal, whether the service initiated by the user is processed by the server connected with the service system terminal or not can be judged according to the server identification of the destination server; when the service initiated by the user is the service processed by the server connected with the service system terminal, sending the service data to the server connected with the service system terminal to process the service; when the service to be processed by the server connected with the non-service system terminal initiated by the user is processed, the service data can be packaged into a full-network service instruction so as to transmit the full-network service instruction across the servers and transmit the full-network service instruction to the destination server.
The full network service instruction may include: an operation code (full network service), a sender server prefix, a sender device number, a receiver server prefix (i.e., a first server identification), a receiver device number, full network service content, etc. The sender server prefix is a server prefix number connected with the service system terminal; the sender equipment number is a user ID used by a service system terminal to log in a server; receiving a server prefix as a server prefix number where a reference member is located; the receiver device number is the master control device number of the server where the participant is located, defaulting to 99999. The whole network service content can be a custom protocol, and the main information can comprise a service code for creating the conference, a conference name, a conference global identification, a conference terminal equipment number and the like, for example, the conference.
After the service system terminal encapsulates the whole network service instruction, the whole network service instruction is sent to the server connected with the service system terminal, and the whole network service instruction is transmitted layer by layer from the server connected with the service system terminal according to the hierarchical relationship among a plurality of servers.
For example, when the service system terminal a generates a full-network service instruction a with the server C as the destination server, the service system terminal a sends the full-network service instruction a to the server a, the server a sends the full-network service instruction a to the server B according to the hierarchical relationship (a-B-C), and the server B sends the full-network service instruction a to the server C according to the hierarchical relationship (B-C) after receiving the full-network service instruction.
Step 102, judging whether a current server receiving the full-network service instruction is a destination server or not based on a first server identifier;
in the transmission process of the whole network service instruction among the plurality of servers, the servers can receive the whole network service instruction through the main control equipment, and further, the processing flow of the main control equipment on the whole network service instruction can be determined through analysis of the whole network service instruction.
For example, in the process that the whole network service instruction a is transmitted to the server C by the service system terminal a, after receiving the whole network service instruction, the server a, the server B and the server C of the path execute step 102 corresponding to the master control device to determine whether the whole network service instruction is to process the whole network service instruction itself.
In an example, the full-network service instruction may include a first server identifier of a destination server, and in a server currently receiving the full-network service instruction, the master control device of the current server may obtain a server identifier of a server where the master control device is located, and match the server identifier with the first server identifier to determine whether the current server is the destination server.
When the server identification of the server where the main control equipment is located is successfully matched with the first server identification, determining that the current server is a target server; and when the server identification of the server where the main control equipment is located fails to be matched with the first server identification, determining that the current server is not the target server.
And step 103, when the current server is judged to be the target server, executing the target service instruction in the current server.
When the current server is judged to be the target server, the main control equipment can analyze the target service instruction to be processed from the whole network service instruction, trigger the service processing flow of the main control equipment, further execute the target service instruction to be processed in the main control equipment, realize the cross-server service processing, and execute the target service instruction in the main control equipment after the target server main control equipment receives the whole network service instruction by setting the service processing flow in the main control equipment, and the target server serving as a receiver can process the service without logging in by a user in the service processing process, thereby improving the service processing efficiency.
In an embodiment of the present invention, the method may further include: when judging that the current server is not the target server, determining the hierarchical relationship between the target server and the current server according to the first server identification; and forwarding the whole network service instruction to a destination server according to the hierarchical relationship.
In practical applications, the server identities of the servers may be set according to a hierarchical relationship between the servers. When the server where the main control equipment is located is not the destination server, the forwarding flow of the main control equipment is triggered, and the hierarchical relationship between the destination server and the current server can be determined through the first server identification. And forwarding the whole network service instruction according to the hierarchical relationship.
In an example, a hierarchical relationship list between a plurality of servers may be stored in advance in a master device of the servers, and further after parsing to obtain a first server identifier, the master device may determine a hierarchical relationship between a current server and a destination server according to the first server identifier in the hierarchical relationship list.
For example: in the internet of view, the servers can be divided into 4 layers, and the server prefix (i.e., server identification) settings are as shown in table 1:
Figure BDA0003986591670000081
TABLE 1
The prefix number of the first layer server is fixed to 00000-00000-00000, and the whole video network is only one.
In the prefix number of the second tier server, the first segment indicates the number of the current server in the tier, and the second two segments are 0.
In the prefix number of the third tier server, the first segment indicates the number of the last tier server connected, the second segment indicates the number of the current server, and the last segment is 0.
In the prefix numbers of the prefix numbers in the fourth layer, the first two segments represent the connected upper layer server, and the third segment represents the number of the current server.
In an example, the server may further include one or more border routing devices for cascading and data forwarding between the multi-tier servers, and forwarding the full-network traffic instructions to the destination server according to the hierarchical relationship may include the sub-steps of:
Step S11, determining the forwarding direction of the whole network service instruction according to the hierarchical relationship;
in practical application, when the hierarchical relationship is that the destination server is the server of the previous hierarchy of the current server, the forwarding direction is determined to be forwarding upwards, and when the hierarchical relationship is that the destination server is that the server of the next hierarchy of the current server, the forwarding direction is determined to be forwarding downwards.
It should be noted that, the server of the previous level may be a directly connected server of the previous level, or may be a indirectly connected server of the previous level; the server of the next hierarchy may be a directly connected server of the next hierarchy or may be a indirectly connected server of the next hierarchy.
For example, the server a belongs to the server of the previous hierarchy with respect to the server B and the server C; server C belongs to the next level of servers with respect to server a and server B.
A substep S12 of determining a target border routing device from one or more border routing devices according to the forwarding direction;
the boundary routing device comprises an upper boundary routing device and one or more lower boundary routing devices, and the servers can be connected through the boundary routing devices. The upper boundary routing device in the server is connected with the lower boundary routing device of the nearest server of the upper hierarchy, and the lower boundary routing device in the server is connected with the upper boundary routing device of the nearest server of the lower hierarchy, so that the hierarchically connected server is constructed.
When the forwarding direction is upward forwarding, the upper boundary route equipment is used as target boundary route equipment; and when the forwarding direction is downward forwarding, the lower boundary routing equipment is used as target routing equipment.
And S13, transmitting the whole network service instruction to target boundary routing equipment, and forwarding the whole network service instruction to a target server by the target boundary routing equipment.
After determining the target boundary routing device, the master control device may send the full-network service instruction to the target boundary routing device, so that the full-network service instruction may be forwarded by the target boundary routing device to the master control device of the server of the other level, and steps 101 to 102 are continuously performed in the master control device of the other server until the full-network service instruction is sent to the destination server, and steps 101 to 103 are performed in the destination server.
For example, the server prefix of the service system terminal is 00001-00000-00000 (second layer), and the server prefix of the destination server is 00001-00001-00001 (fourth layer), so that the master control device in the server connected to the service system terminal forwards the encapsulated whole network service instruction to the next layer server (i.e. third layer) through the lower boundary routing device.
After receiving the full-network service instruction, the master control device in the third layer server analyzes the received server prefix, and if the received server prefix is not matched with the server prefix, the full-network service instruction is judged to be sent to the lower layer server according to the server prefix of the server prefix and the server prefix of the destination server, so that the full-network service instruction is forwarded to the lower boundary routing device corresponding to the lower layer server (namely, the fourth layer).
After receiving the whole network service instruction, the master control equipment in the fourth layer server analyzes the prefix of the receiving server, judges that the prefix is matched with the prefix of the receiving server, analyzes the whole network service content and executes a service processing flow.
In an example, the server may further include a sub-control device, where the sub-control device is cascaded under the main control device, and is used for forwarding data in the server, and the substep 13 specifically includes: and when the forwarding direction is downward forwarding, sending the whole network service instruction to the sub-control setting, and sending the whole network service instruction to the target boundary routing equipment by the sub-control equipment.
In the embodiment of the invention, by receiving the whole network service instruction transmitted layer by layer according to the layer relation of a plurality of servers, the whole network service instruction is generated for a service system terminal and is transmitted layer by layer from the server connected with the service system terminal, and the whole network service instruction comprises a target service instruction and a first server identifier of a destination server for processing the whole network service instruction; judging whether the current server is a destination server or not based on the first server identification; when the current server is judged to be the target server, the target service instruction is executed in the current server, so that the connection between the service system terminal and the target server which is not directly connected is established, the service is initiated, and the service can be processed in the target server without the need of user login, thereby improving the service processing efficiency.
Referring to fig. 2, a flowchart illustrating steps of another method for processing a service according to an embodiment of the present invention is applied to a master control device of a server, where a plurality of servers are connected by a hierarchy, and a service system terminal is connected to one of the servers, and may specifically include the following steps:
step 201, receiving a whole network service instruction transmitted layer by layer according to the hierarchical relationship of a plurality of servers, wherein the whole network service instruction is generated by a service system terminal and starts to be transmitted layer by layer from a server connected with the service system terminal, and the whole network service instruction comprises a target service instruction and a first server identifier of a target server for processing the target service instruction;
step 202, judging whether a current server receiving the full-network service instruction is a destination server or not based on a first server identifier;
in step 203, when it is determined that the current server is the destination server, the target service instruction is executed in the current server.
Step 204, after executing the target service instruction, generating a service response packet of the target service instruction, where the service response packet includes a second server identifier of a server connected to the service system terminal;
after the main control equipment of the destination server executes the target service instruction, a service response packet of the target service instruction can be generated, wherein the service response packet can comprise a second server identifier of the server connected with the service system terminal.
For example, in the conference creation service, the master control device parses the whole network service instruction, obtains the service code and the corresponding information for creating the conference according to the custom protocol, so as to perform service processing, and locally stores the server prefix (i.e. the second server identifier) of the whole network service instruction sender and the equipment number of the whole network service instruction sender in the master control device, so that a service response packet can be encapsulated, where the service response packet may include: an operation code (full-network service response), a server prefix of a current server, a number of a main control device of the current server, a server prefix of a full-network service instruction sender, a number of a full-network service instruction sender device, full-network service content, and the like.
Wherein, the whole network service content can comprise: business code to create meeting results, meeting name, meeting global identification, results (0 indicates success, other indicates failure), etc.
And step 205, returning the service response packet to the service system terminal according to the hierarchy relation of the plurality of servers by hierarchy according to the second server identification.
After the service response packet is generated, the service response packet can be returned to the service system terminal according to the original path of the transmission path of the whole network instruction, so as to feed back the service processing result of the whole network service instruction to the user at the service system terminal side.
In an embodiment of the present invention, step 205 may comprise the sub-steps of:
a substep S21 of receiving service response packets transmitted from level to level according to the hierarchical relationship of the plurality of servers;
in practical application, in the process of returning the service response packet from the destination server to the service system terminal, for any server in the path, the service response packet transmitted from level to level according to the level relationship of the plurality of servers can be received, and then the service response packet is analyzed, so as to determine the processing flow (forwarding flow, issuing flow or service processing flow) of the service response packet.
Step S22, judging whether the current server receiving the service response packet is a server connected with the service system terminal or not based on the second server identification;
when the server main control equipment receives the service response packet, the service response packet can be analyzed, a second server identifier in the service response packet is determined, whether the second server identifier is matched with the server identifier of the server receiving the service response packet is further judged, and when the second server identifier is matched with the current server identifier, the current server is determined to be the server connected with the service system terminal; and when the second server identification is not matched with the current server identification, determining a server connected with the current server non-business system terminal.
And S23, when the current server is judged to be the server connected with the service system terminal, forwarding the service response packet to the service system terminal.
When the current server is judged to be the server connected with the service system terminal, the issuing flow of the main control equipment can be triggered, and the main control equipment can forward the service response packet to the service system terminal.
When judging that the current server is not the server connected with the service system terminal, the forwarding flow of the main control equipment can be triggered, the hierarchical relation between the current server and the server connected with the service system terminal is determined according to the second server identifier, and then the service response packet is forwarded to the server connected with the service system terminal based on the hierarchical relation, and then the server can issue the service response packet to the service system terminal.
The specific process of forwarding the service response packet to the server connected to the service system terminal based on the hierarchical relationship may refer to a process of transmitting the whole network service instruction between the plurality of servers connected in the hierarchy.
In an embodiment of the present invention, the substep S23 includes:
when the current server is judged to be the server connected with the service system terminal, determining the user login state of the service system terminal; when the user login state is an on-line state, triggering the issuing flow of the main control equipment, and forwarding the service response packet to the service system terminal. And discarding the service response packet when the user login state is an off-line state.
In practical application, after the target server starts to process the target service instruction, the service response packet can be continuously returned to the server connected with the service system terminal according to the service processing state, the server can determine the processing mode of the service response packet according to the user login state of the service system terminal, specifically, when the user login state of the service system terminal is in an on-line state, the server connected with the service system terminal can directly send the returned service response packet to the service system terminal, and when the user login state of the service system terminal is in an off-line state, the returned service response packet can be discarded.
For example, in the process of processing the service by the destination server, the service response packet 1 and the service response packet 2 are sequentially generated. When the service response packet 1 is transmitted back to the server connected with the service system terminal, the service system terminal is not online, the server connected with the service system terminal discards the service response packet 1, and then when the service response packet 2 is transmitted back to the server connected with the service system terminal, if the user of the service system terminal is in a login state, the service response packet 2 is issued to the service system terminal.
In the embodiment of the invention, a whole network service instruction transmitted layer by layer according to the layer relation of a plurality of servers is received, the whole network service instruction is generated for a service system terminal, and the whole network service instruction is transmitted layer by layer from a server connected with the service system terminal, and comprises a target service instruction and a first server identifier of a target server for processing the target service instruction; judging whether the current server receiving the whole network service instruction is a destination server or not based on the first server identifier; and executing the target business instruction in the current server when the current server is judged to be the target server. After the target service instruction is executed, a service response packet of the target service instruction is generated, wherein the service response packet comprises a second server identifier of a server connected with the service system terminal; according to the second server identification, the service response package is returned to the service system terminal layer by layer according to the layer relation of the plurality of servers, so that the service system terminal sends a full-network instruction to the destination server which is not directly connected, the service is processed under the condition that the destination server does not need to log in by a user, and the service response package is returned, and the service processing efficiency is improved.
Embodiments of the present invention are illustrated below in conjunction with fig. 3 a-3 b:
in fig. 3a, a schematic diagram of hierarchical connection of a plurality of core servers in a view networking scenario is disclosed, where each core server may include a master control device, a sub control device, a plurality of terminal devices, an upper boundary routing device, and a lower boundary routing device. And the main control equipment is connected with the upper boundary routing equipment and the sub control equipment through a switching network, and the sub control equipment is connected with the plurality of terminal equipment and the lower boundary routing equipment through the switching network. Between the core servers, the upper border routing devices of the core servers connect to the core server of the nearest upper tier, and the lower border routing devices of the core servers connect to the core server of the nearest lower tier.
Fig. 3b is a schematic diagram of a business process according to the present invention.
The user registered by the core server in the service system logs in the core server, and then the user inputs service data in the service system, wherein the service data comprises a service processing core server (namely a target core server), a service type, service parameters and the like. And classifying the service system according to the prefix of the service processing core server to judge whether the service is processed in the core server connected with the service system, and packaging the whole network service instruction and sending the whole network service instruction to the main control equipment of the core server connected with the service system when the service is not processed in the core server connected with the service system.
In the core server connected with the service system, the main control device is used for acquiring the prefix (namely the first server identifier) of the core server of the receiving command, judging the data forwarding direction, further determining whether the receiver is at the next layer, and when determining that the receiver is at the next layer, the main control device sends the service packet (namely the full-network service instruction) to the lower boundary routing device through the sub-control device.
The lower border routing device sends the traffic packets to the upper border routing device of the lower core server.
In the lower core server, the upper boundary routing device sends the obtained service packet to the main control device.
In the lower-layer main control equipment, a receiving command core server prefix (namely a first server identifier) is acquired, a data forwarding direction is judged, and whether a data receiving party is the core server is judged.
When the data receiver is not the core server, judging whether the receiver is at the next layer or not, and forwarding the service packet according to the judging result so as to forward according to the hierarchical relation.
When the data receiver is the core server, the prefix and the equipment number of the core server of the command sender are saved, the whole network service content (namely the whole network service instruction) is analyzed to carry out service processing, a service processing response result is returned, the upper layer or the lower layer of the receiver is judged according to the prefix (namely the second server identifier) of the core server received by the service response packet, when the receiver is the lower layer, the service response packet is sent to the lower layer core server of the current core server, and when the receiving method is the upper layer, the service response packet is sent to the upper boundary routing equipment.
In the upper border routing apparatus, the service response packet is transmitted to the lower border routing apparatus of the upper layer.
The lower boundary routing device of the upper layer sends the service response packet to the master control device by the sub control device.
In the main control equipment, a core server prefix of a received response packet is acquired, a data forwarding direction is judged, and when the service response packet is processed by the core server, the number of a receiving device (i.e. the id of a service system logging on the core server) is analyzed and forwarded to a connected service system. When the service response packet is processed by the core server, judging whether the receiver is at the next layer, and forwarding upwards or downwards to other core servers.
In a business system, relevant business processing can be performed according to a business response packet.
Through the process, the cross-core server business processing is realized, and the core server can directly process business and return a response packet.
It should be noted that, for simplicity of description, the method embodiments are depicted as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 4, a schematic structural diagram of a service processing apparatus according to an embodiment of the present invention is shown, where the service processing apparatus is applied to a master control device of a server, and a plurality of servers are connected by a hierarchy, and a service system terminal is connected to one of the servers, and may specifically include the following modules:
a first service instruction receiving module 401, configured to receive a full-network service instruction transmitted from a hierarchical relationship of the plurality of servers in a hierarchical manner, where the full-network service instruction is generated by the service system terminal and transmitted from a server connected to the service system terminal in a hierarchical manner, and the full-network service instruction includes a target service instruction and a first server identifier of a destination server for processing the target service instruction;
a first server identifier determining module 402, configured to determine, based on the first server identifier, whether a current server that receives the full-network service instruction is a destination server;
the first service execution module 403 is configured to execute the target service instruction in the current server when it is determined that the current server is a target server.
In an embodiment of the invention, the apparatus further comprises:
The service response packet generation module is used for generating a service response packet of the target service instruction after executing the target service instruction, wherein the service response packet comprises a second server identifier of a server connected with the service system terminal;
and the service response packet transmission module is used for returning the service response packet to the service system terminal layer by layer according to the second server identification and the hierarchical relation of the servers.
In an embodiment of the present invention, the service response packet transmission module may include:
a service response packet receiving sub-module for receiving service response packets transmitted layer by layer according to the hierarchical relationship of the plurality of servers;
the second server identification judging sub-module is used for judging whether the current server receiving the service response packet is a server connected with the service system terminal or not based on the second server identification;
and the response packet forwarding sub-module is used for forwarding the service response packet to the service system terminal when the current server is judged to be the server connected with the service system terminal.
In an embodiment of the present invention, the response packet forwarding sub-module may include:
The user login state judging unit is used for determining the user login state of the service system terminal when the current server is judged to be the server connected with the service system terminal;
and the response packet forwarding unit is used for forwarding the service response packet to the service system terminal when the user login state is an online state.
In an embodiment of the present invention, the response packet forwarding sub-module may include:
and the response packet discarding unit is used for discarding the service response packet when the user login state is an off-line state.
In an embodiment of the invention, the apparatus further comprises:
the hierarchical relation determining module is used for determining the hierarchical relation between the destination server and the current server according to the first server identifier when the current server is judged to be not the destination server;
and the service instruction forwarding module is used for forwarding the whole network service instruction to the destination server according to the hierarchical relationship.
In an embodiment of the present invention, the server may further include one or more border routing devices, and the service instruction forwarding module includes:
a forwarding direction determining sub-module, configured to determine a forwarding direction of the full-network service instruction according to the hierarchical relationship;
A target border routing device determination submodule for determining a target border routing device from one or more border routing devices based on the forwarding direction;
and the service instruction forwarding sub-module is used for sending the whole network service instruction to the target boundary routing equipment, and the target boundary routing equipment forwards the whole network service instruction to the destination server.
An embodiment of the present invention also provides an electronic device, which may include a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program implements the method for processing services as described above when executed by the processor.
An embodiment of the present invention also provides a computer readable storage medium, on which a computer program is stored, which when executed by a processor implements a method for processing a service as above.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The foregoing has described in detail the method, apparatus, electronic device and storage medium for service processing, and specific examples have been presented herein to illustrate the principles and embodiments of the present invention, and the above examples are only for the purpose of aiding in the understanding of the method and core concept of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. The service processing method is characterized by being applied to a main control device of a server, wherein a plurality of servers are connected in a hierarchical mode, and a service system terminal is connected with one of the servers, and the method comprises the following steps:
receiving a whole network service instruction transmitted layer by layer according to the hierarchical relation of the servers, wherein the whole network service instruction is generated for the service system terminal and transmitted layer by layer from a server connected with the service system terminal, and comprises a target service instruction and a first server identification of a destination server for processing the target service instruction;
judging whether a current server receiving the full-network service instruction is a destination server or not based on the first server identifier;
and executing a target business instruction in the current server when the current server is judged to be a target server.
2. The method as recited in claim 1, further comprising:
after the target service instruction is executed, generating a service response packet of the target service instruction, wherein the service response packet comprises a second server identifier of a server connected with the service system terminal; and returning the service response packet to the service system terminal layer by layer according to the second server identification and the layer relation of the plurality of servers.
3. The method of claim 2, wherein returning the service response packet to the service system terminal according to the second server identification, level by level, according to the hierarchical relationship of the plurality of servers, comprises:
receiving service response packets transmitted layer by layer according to the layer relation of the plurality of servers;
judging whether the current server receiving the service response packet is a server connected with the service system terminal or not based on the second server identifier;
and when the current server is judged to be the server connected with the service system terminal, forwarding the service response packet to the service system terminal.
4. A method according to claim 3, wherein said forwarding the service response packet to the service system terminal upon determining that the current server is the server to which the service system terminal is connected, comprises:
when the current server is judged to be the server connected with the service system terminal, determining the user login state of the service system terminal;
and when the user login state is an on-line state, forwarding the service response packet to the service system terminal.
5. The method as recited in claim 4, further comprising:
and discarding the service response packet when the user login state is an offline state.
6. The method of claim 1 or 2 or 3 or 4 or 5, further comprising:
when judging that the current server is not a target server, determining the hierarchical relationship between the target server and the current server according to the first server identifier;
and forwarding the whole network service instruction to the destination server according to the hierarchical relationship.
7. The method of claim 6, wherein a server further comprises one or more border routing devices, said forwarding said full network traffic instructions to said destination server according to said hierarchical relationship, comprising:
determining the forwarding direction of the whole network service instruction according to the hierarchical relationship;
determining a target border routing device from one or more border routing devices based on the forwarding direction;
and sending the whole network service instruction to the target boundary routing equipment, and forwarding the whole network service instruction to a destination server by the target boundary routing equipment.
8. The utility model provides a business processing's device which characterized in that is applied to the master control equipment of server, adopts hierarchical connection between a plurality of servers, business system terminal is connected with one of them server, and the device includes:
the system comprises a whole network service instruction receiving module, a whole network service instruction processing module and a whole network service instruction processing module, wherein the whole network service instruction receiving module is used for receiving whole network service instructions which are transmitted layer by layer according to the hierarchical relation of a plurality of servers, the whole network service instructions are generated for a service system terminal and are transmitted layer by layer from a server connected with the service system terminal, and the whole network service instructions comprise target service instructions and first server identifiers of destination servers for processing the target service instructions;
the first server identification judging module is used for judging whether the current server receiving the whole network service instruction is a target server or not based on the first server identification;
and the service execution module is used for executing the target service instruction in the current server when the current server is judged to be the target server.
9. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, which computer program, when executed by the processor, implements the method of business processing according to any one of claims 1 to 7.
10. A computer readable storage medium, characterized in that the computer readable storage medium has stored thereon a computer program which, when executed by a processor, implements a method of service processing according to any of claims 1 to 7.
CN202211565877.6A 2022-12-07 2022-12-07 Service processing method, device, electronic equipment and storage medium Pending CN116192932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211565877.6A CN116192932A (en) 2022-12-07 2022-12-07 Service processing method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211565877.6A CN116192932A (en) 2022-12-07 2022-12-07 Service processing method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116192932A true CN116192932A (en) 2023-05-30

Family

ID=86445052

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211565877.6A Pending CN116192932A (en) 2022-12-07 2022-12-07 Service processing method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116192932A (en)

Similar Documents

Publication Publication Date Title
US20160087905A1 (en) Flow forwarding method, device, and system
CN108965912B (en) A kind of method, client and the server of video data processing
CN108462589B (en) A kind of method for connecting network and device of terminal
CN109068186B (en) Method and device for processing packet loss rate
CN109561072B (en) Link detection method and system
CN109787992A (en) A kind of method and apparatus by view networking access private network
CN104010001A (en) Method and system for carrying out connection communication on same networking requests in mobile terminal
CN108632234A (en) A kind of user login method and device
CN108965782A (en) A kind of meeting treating method and apparatus
CN111431966A (en) Service request processing method and device, electronic equipment and storage medium
CN110601989A (en) Network traffic balancing method and device
CN111596940B (en) Version upgrading method and device, electronic equipment and storage medium
CN109525463A (en) A kind of method and apparatus of 64 view networking protocol communication functions of detection
CN116192932A (en) Service processing method, device, electronic equipment and storage medium
CN111737029A (en) Server, data pushing method and data pushing system
CN111478882A (en) Terminal detection method and device
CN110049269A (en) A kind of method, server and the client of view networking conference management
CN109561080B (en) Dynamic network access communication method and device
CN111431930A (en) Flow cleaning method and related equipment
CN114679562B (en) Data transmission system and method for multi-platform video conference
CN110730154B (en) Service processing method and device for video network
CN116346515A (en) Service processing method, device, electronic equipment and storage medium
EP2979395B1 (en) Methods and nodes for distribution of content to consumers
CN110401809A (en) A kind of method and device for forcing to stop view networking meeting
CN110120938B (en) Control method and device for cooperative server

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