CN113905019B - Data transmission method, device, equipment and medium based on terminal address management - Google Patents

Data transmission method, device, equipment and medium based on terminal address management Download PDF

Info

Publication number
CN113905019B
CN113905019B CN202111148895.XA CN202111148895A CN113905019B CN 113905019 B CN113905019 B CN 113905019B CN 202111148895 A CN202111148895 A CN 202111148895A CN 113905019 B CN113905019 B CN 113905019B
Authority
CN
China
Prior art keywords
data transmission
transmission request
information
service
grouping
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111148895.XA
Other languages
Chinese (zh)
Other versions
CN113905019A (en
Inventor
罗珊珊
李小刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tianyi IoT Technology Co Ltd
Original Assignee
Tianyi IoT Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi IoT Technology Co Ltd filed Critical Tianyi IoT Technology Co Ltd
Priority to CN202111148895.XA priority Critical patent/CN113905019B/en
Publication of CN113905019A publication Critical patent/CN113905019A/en
Application granted granted Critical
Publication of CN113905019B publication Critical patent/CN113905019B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/06Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information
    • H04W28/065Optimizing the usage of the radio link, e.g. header compression, information sizing, discarding information using assembly or disassembly of packets

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a data transmission method, a device, equipment and a medium based on terminal address management, wherein the method comprises the following steps: and grouping the initial data transmission request received for the first time according to a service grouping rule to obtain service grouping information, inputting the initial data transmission request as a current data transmission request to a corresponding service module for processing, feeding back the processed request processing information to terminal equipment, judging whether the received newly added data transmission request and the current data transmission request belong to the same session, if so, adding address information of the newly added data transmission request to the service grouping information, and returning to execute the step of inputting the current data transmission request to the corresponding service module for processing. The invention belongs to the technical field of terminal wireless communication, and can manage the address information of terminal equipment so as to process the initial data transmission request sent by the same terminal based on different address information by the same service module, thereby greatly improving the data transmission efficiency of a communication server.

Description

Data transmission method, device, equipment and medium based on terminal address management
Technical Field
The present invention relates to the field of terminal wireless communications technologies, and in particular, to a data transmission method, apparatus, device, and medium based on terminal address management.
Background
Terminal equipment such as an internet of things terminal and the like is connected with a communication server of a telecom operator through a base station so that the terminal equipment is accessed to the Internet, however, in real life, a user can carry the terminal equipment to move, in general, in fixed equipment of the base station, the base station for providing service for the terminal equipment in the moving process of the terminal equipment is also switched along with the terminal equipment, terminal address information (IP address) distributed to the terminal equipment by a core network P-GW in the communication server is correspondingly changed, a plurality of different service modules are configured in the communication server for providing service for the terminal equipment, session data are not shared among the service modules in the communication server, a data request reported after the IP address of the same terminal equipment is changed is repeatedly received by the communication server, and service resources of the communication server are wasted due to the transmission of a large number of invalid data requests, so that the data transmission efficiency of the communication server is seriously influenced. Therefore, the prior art method has the problem that the efficiency of data transmission between the communication server and the terminal equipment is low.
Disclosure of Invention
The embodiment of the invention provides a data transmission method, a device, equipment and a medium based on terminal address management, which aim to solve the problem of low efficiency of data transmission between a communication server and terminal equipment in the prior art.
In a first aspect, an embodiment of the present invention provides a data transmission method based on terminal address management, where the method is applied to a communication server, where the communication server and a terminal device establish a network connection to implement transmission of data information, and the method includes:
if an initial data transmission request from the terminal equipment is received for the first time, grouping the initial data transmission request according to a preset service grouping rule to obtain corresponding service grouping information;
the initial data transmission request is used as a current data transmission request, and the current data transmission request is input to a service module corresponding to the service grouping information in the communication server for processing so as to obtain corresponding request processing information;
feeding back the request processing information to the terminal equipment according to the address information in the current data transmission request;
if a new data transmission request from the terminal equipment is received, judging whether the new data transmission request and the current data transmission request belong to the same session or not;
If the newly added data transmission request and the current data transmission request belong to the same session, adding address information of the newly added data transmission request into the service grouping information;
and taking the newly added data transmission request as a current data transmission request, and returning to execute the step of inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to acquire corresponding request processing information.
In a second aspect, an embodiment of the present invention provides a data transmission apparatus based on terminal address management, including:
the service grouping information acquisition unit is used for grouping the initial data transmission request according to a preset service grouping rule to acquire corresponding service grouping information if the initial data transmission request from the terminal equipment is received for the first time;
the request processing information acquisition unit is used for taking the initial data transmission request as a current data transmission request, inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to obtain corresponding request processing information;
The request processing information feedback unit is used for feeding back the request processing information to the terminal equipment according to the address information in the current data transmission request;
a new data transmission request judging unit, configured to judge whether the new data transmission request and the current data transmission request belong to the same session if a new data transmission request from the terminal device is received;
an address information adding unit, configured to add address information of the new data transmission request to the service packet information if the new data transmission request and the current data transmission request belong to the same session;
and the return execution unit is used for taking the newly added data transmission request as a current data transmission request and returning to execute the step of inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to acquire corresponding request processing information.
In a third aspect, an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor executes the computer program to implement the data transmission method based on terminal address management according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program when executed by a processor causes the processor to perform the data transmission method based on terminal address management according to the first aspect.
The embodiment of the invention provides a data transmission method, a device, equipment and a medium based on terminal address management. And grouping the initial data transmission request received for the first time according to a service grouping rule to obtain service grouping information, taking the initial data transmission request as a current data transmission request, inputting the current data transmission request to a corresponding service module for processing, feeding back request processing information obtained by processing to the terminal equipment, judging whether the new data transmission request and the current data transmission request belong to the same session if the new data transmission request is received, adding address information of the new data transmission request to the service grouping information if the new data transmission request and the current data transmission request belong to the same session, and returning to execute the step of inputting the current data transmission request to the corresponding service module for processing so as to obtain request processing information. By the method, the address information of the terminal equipment can be intelligently managed, the initial data transmission requests sent by the same terminal based on different address information are processed by the same service module, and the waste of service resources of the communication server caused by the transmission of invalid data requests is avoided, so that the data transmission efficiency of the communication server is greatly improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 2 is a schematic application scenario diagram of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 3 is a schematic sub-flowchart of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 4 is a schematic diagram of another sub-flow of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 5 is another schematic sub-flowchart of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 6 is a schematic diagram of another sub-flow of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 7 is another flow chart of a data transmission method based on terminal address management according to an embodiment of the present invention;
Fig. 8 is another flow chart of a data transmission method based on terminal address management according to an embodiment of the present invention;
fig. 9 is a schematic block diagram of a data transmission device based on terminal address management according to an embodiment of the present invention;
fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described 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.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a flow chart of a data transmission method based on terminal address management according to an embodiment of the present invention; fig. 2 is a schematic application scenario diagram of a data transmission method based on terminal address management according to an embodiment of the present invention; the data transmission method based on terminal address management is applied to the communication server 10, the data transmission method based on terminal address management is executed through application software installed in the communication server 10, and the communication server 10 is connected with the terminal device 20 through the base station 30 in a network manner to realize the transmission of data information; the communication server 10 is a server end constructed by a telecom operator and used for providing communication services for the terminal device 20, the communication server 10 can be used for executing a data transmission method based on terminal address management to perform data transmission with the terminal device 20, the terminal device 20 is a terminal device used for being used by a user and performing data transmission with the communication server 10, such as a notebook computer, a tablet computer, a mobile phone, a smart watch, a smart eye and the like, the terminal device 20 can be an internet of things terminal, the base station 30 is a communication base station used for providing wireless communication services, and the communication base station comprises a fixed base station and a vehicle-mounted mobile base station which are arranged at the top of a building, only one terminal device 20 and the communication server 10 are illustrated in fig. 2, and in practical application, the communication server 10 can also simultaneously establish communication connection with a plurality of terminal devices 20 to achieve data information transmission. As shown in fig. 1, the method includes steps S110 to S160.
S110, if an initial data transmission request from the terminal equipment is received for the first time, grouping the initial data transmission request according to a preset service grouping rule to acquire corresponding service grouping information.
And if the initial data transmission request from the terminal equipment is received for the first time, grouping the initial data transmission request according to a preset service grouping rule to acquire corresponding service grouping information. The terminal device is connected to the communication server through the base station, and distributes address information (IP address) to the terminal device through the core network P-GW in the communication server. After receiving the allocated address information, the terminal device can send an initial data transmission request based on the address information, wherein the initial data transmission request is request information sent to the communication server for the first time by the terminal device, and the communication server can process the data transmission request from the terminal device to obtain request processing information and feed back the request processing information to the terminal device, so that data transmission between the communication server and the terminal device is realized. In order to implement intelligent management of address information from any terminal device, an initial data transmission request may be first grouped according to a service grouping rule to obtain corresponding service grouping information. The communication server is usually set up in the form of a cluster server, and then the communication server includes a plurality of service modules, each service module can correspond to one sub-server in the cluster server, after service packet information is acquired, a data transmission request can be input into a service module corresponding to the service packet information for processing based on the service packet information, and then the same data transmission request can be processed by only one service module. The service grouping rule comprises a calculation rule and grouping identifiers, and each grouping identifier corresponds to one service module, namely the number of the grouping identifiers in the service grouping rule is equal to the number of the service modules.
In one embodiment, as shown in FIG. 3, step S110 includes sub-steps S111 and S112.
And S111, calculating the user identification code in the initial data transmission request according to the calculation rule, and determining a group identification corresponding to the user identification code as a target group identification according to a calculation result.
Specifically, the initial data transmission request includes, in addition to address information, a user identification code, which is identification code information for uniquely identifying the terminal device, where the user identification code is an identification code only including a number, and the user identification code may be an IMSI (International Mobile Subscriber Identity, international mobile subscriber identification code). The user identification code can be calculated according to the calculation rule to obtain a calculation result, and a group identification corresponding to the user identification code is determined as a target group identification according to the calculation result.
In one embodiment, as shown in FIG. 4, step S111 includes sub-steps S1111 and S1112.
S1111, performing modular operation on the user identification code according to the calculation rule and the number of the grouping identifiers to obtain a corresponding modular operation value.
The user identification code only contains numbers, and the user identification code can be subjected to modular operation according to the number of the obtained grouping identifications and according to the calculation rule and the number of the grouping identifications, and specifically, the process of performing the modular operation can be represented by adopting a formula (1):
Q=Y%M (1);
Wherein Q is the obtained modulo operation value, Y is the user identification code, M is the number of grouping identifications, and the obtained modulo operation value Q is an integer smaller than M.
In order to increase the randomness of the modulo operation value obtained after the modulo operation, the modulo operation process may be further represented by the formula (2):
Q′=(Y×m n )%M (2);
wherein Q 'is the obtained modulo operation value, Y is the user identification code, M is the number of grouping identifications, M is the number of bits in M, n is the number of more than ten bits in M, and the obtained modulo operation value Q' is an integer less than M. For example, if m=245, then m=5, n=24.
S1112, determining a corresponding group identifier as a target group identifier according to the modulo operation value.
And determining one grouping identifier in the calculation rule as a target grouping identifier according to the calculated modulo operation value, specifically, if the modulo operation value is 1, acquiring a first grouping identifier as the target grouping identifier, if the modulo operation value is 2, acquiring a second grouping identifier as the target grouping identifier … …, and if the modulo operation value is 0, acquiring a last grouping identifier as the target grouping identifier.
S112, combining the target packet identification with address information in the initial data transmission request to generate corresponding service packet information.
And combining the target packet identifier with the address information in the initial data transmission request to obtain service packet information, wherein the service packet information simultaneously comprises the target packet identifier and the address information.
S120, the initial data transmission request is used as a current data transmission request, and the current data transmission request is input into a service module corresponding to the service grouping information in the communication server for processing, so that corresponding request processing information is obtained.
And the initial data transmission request is used as a current data transmission request, the current data transmission request is input into a service module corresponding to the service grouping information in the communication server for processing, the service module can be used for processing the data transmission request of the terminal equipment so as to provide communication service for the terminal equipment, and the service module obtains corresponding request processing information after processing the current data transmission request. Specifically, each packet identifier corresponds to one service module, and the current data transmission request corresponds to address information in the service packet information, so that the current data transmission request can be sent to one service module corresponding to the packet identifier for processing according to the packet identifier in the service packet information.
S130, feeding back the request processing information to the terminal equipment according to the address information in the current data transmission request.
And feeding back the request processing information to the terminal equipment according to the address information in the current data transmission request. The service module processes the current data transmission request to obtain request processing information corresponding to the current data transmission request, and the communication server feeds back the obtained request processing information to the terminal equipment corresponding to the address information according to the address information in the current data transmission request.
And S140, if a new data transmission request from the terminal equipment is received, judging whether the new data transmission request and the current data transmission request belong to the same session.
If a new data transmission request from the terminal equipment is received, judging whether the new data transmission request and the current data transmission request belong to the same session or not. After finishing processing a data transmission request, the communication server may also receive a new data transmission request from the terminal device, where the new data transmission request is a data transmission request from the same terminal device received after the initial data transmission request. It can be determined whether the newly added data transmission request and the current data transmission request belong to a session, where a session is a generic term of a series of data transmission requests for processing the same service data service, and for completing processing of one service data, a series of data transmission requests from a terminal device are generally required to be sequentially processed. If the newly added data transmission request and the current data transmission request belong to the same session, the fact that the association exists between the newly added data transmission request and the current data transmission request is indicated, the newly added data transmission request with the association is processed through one service module corresponding to the current data transmission request, the continuity of processing the data transmission request can be greatly improved, the situation that the communication server repeatedly processes and transmits the previously processed current data transmission request is avoided, and the fact that service resources of the communication server are wasted due to the fact that invalid data requests are transmitted can be avoided. If the newly added data transmission request and the current data transmission request do not belong to the same session, the newly added data transmission request with relevance is not required to be processed through a service module corresponding to the current data transmission request.
In one embodiment, as shown in FIG. 5, step S140 includes sub-steps S141 and S142.
S141, acquiring one service node corresponding to the current data transmission request in a pre-stored service node map as a current service node.
The communication server is also pre-stored with a service node map, wherein the service node map is a map for carrying out node display on service data services which can be provided by the communication server, the service node map is formed by combining a plurality of service nodes, the service nodes can be connected by adopting unidirectional arrows, the directions of the arrows are used for indicating the upstream and downstream relations among the service nodes, each service node in the service node map is uniquely corresponding to one service identifier, and one service node corresponding to the service identifier in the service node map can be obtained as the current service node according to the service identifier in the current data transmission request.
S142, judging whether the service node of the newly added data transmission request is an upstream node or a downstream node of the current service node, so as to judge whether the newly added data transmission request and the current data transmission request belong to the same session.
And acquiring all upstream nodes and all downstream nodes of the current service node in the service node map, judging whether the service node corresponding to the service identifier in the newly added data transmission request corresponds to any upstream node or any downstream node of the current service node, wherein the judging process is to judge whether the service node of the newly added data transmission request is the upstream node or the downstream node of the current service node, if the service node of the newly added data transmission request is the upstream node or the downstream node of the current service node, judging that the newly added data transmission request and the current data transmission request belong to the same session, otherwise, judging that the newly added data transmission request and the current data transmission request do not belong to the same session.
And S150, if the newly added data transmission request and the current data transmission request belong to the same session, adding the address information of the newly added data transmission request into the service grouping information.
And if the newly added data transmission request and the current data transmission request belong to the same session, adding the address information of the newly added data transmission request into the service grouping information. The newly added data transmission request also comprises address information, and if the newly added data transmission request and the current data transmission request belong to the same session, the address information of the newly added data transmission request is added into service grouping information corresponding to the current data transmission request.
In one embodiment, as shown in fig. 6, step S150 includes steps S151 and S152.
S151, acquiring the current time as time identification information of the address information of the newly added data transmission request.
In order to distinguish the address information of the newly added data transmission request from other address information in the service packet information, the current address can be obtained as time identification information of the address information in the newly added data transmission request, and the time identification information is accurate to millisecond.
And S152, combining the time identification information with the address information of the newly added data transmission request and adding the combined time identification information and the address information into the service grouping information.
And combining the obtained time identification information with the address information of the newly added data transmission request, and adding the obtained combined information into the service grouping information. The address information corresponding to the initial data transmission request in the service packet information does not contain time identification information, and the address information corresponding to the subsequent newly-added data transmission request in the service packet information contains time identification information, so that the address information contained in the service packet information can be distinguished through the time identification information.
In an embodiment, as shown in fig. 7, step S140 further includes steps S1401 and S1402.
S1401, deleting service packet information corresponding to the current data transmission request if the new data transmission request and the current data transmission request do not belong to the same session.
If the newly added data transmission request and the current data transmission request do not belong to the same session, service grouping information needs to be regenerated based on the newly added data transmission request, so that the service grouping information corresponding to the current data transmission request can be deleted first to avoid occupying system resources of the communication server, the service grouping information corresponding to the newly added data transmission request can be regenerated, only one service grouping information corresponding to the terminal equipment can be ensured to exist in the communication server at the same time, and the utilization efficiency of system resources in the communication server is improved.
S1402, the newly added data transmission request is used as an initial data transmission request, and the step of grouping the initial data transmission request according to a preset service grouping rule to obtain corresponding service grouping information is executed.
The newly added data transmission request is taken as an initial data transmission request, and the step S110 is executed in a return mode so as to regenerate new service grouping information, and the data transmission request contained in the new session is processed through the newly generated service grouping information.
In an embodiment, as shown in fig. 8, step S1501 is further included before step S150.
S1501, judging whether the address information of the newly added data transmission request is the same as any address information in the service packet information; if the address information of the new data transmission request is different from any one of the service packet information, executing the step of adding the address information of the new data transmission request to the service packet information; and if the address information of the new data transmission request is the same as any address information in the service packet information, executing the step of taking the new data transmission request as the current data transmission request.
Before adding the address information of the new data transmission request to the service packet information, it may also be determined whether the service packet information already contains the address information corresponding to the new data transmission request, and if the service packet information already contains the address information corresponding to the new data transmission request, the step S160 is directly executed without repeatedly adding the same address information to the service packet information; if the service packet information does not include address information corresponding to the newly added data transmission request, other steps after steps S150 and S150 need to be performed.
S160, taking the newly added data transmission request as a current data transmission request, and returning to execute the step of inputting the current data transmission request to a service module corresponding to the service grouping information in the communication server for processing so as to acquire corresponding request processing information.
And taking the newly added data transmission request as a current data transmission request, and returning to execute the step of inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to acquire corresponding request processing information. After the address information of the newly added data transmission request is added to the service packet information, the newly added data transmission request can be used as the current data transmission request and returned to execute the step S120, so that uninterrupted communication service can be provided for the terminal equipment through the communication server when the address information of the terminal equipment is changed, and the waste of service resources of the communication server caused by the transmission of invalid data requests can be avoided, and the data transmission efficiency of the communication server can be greatly improved.
In the data transmission method based on terminal address management provided in the embodiment of the present invention, service packet information is obtained by grouping an initial data transmission request received for the first time according to a service packet rule, the initial data transmission request is used as a current data transmission request and is input to a corresponding service module for processing, request processing information obtained by processing is fed back to a terminal device, if a new data transmission request is received, whether the new data transmission request and the current data transmission request belong to the same session is determined, if yes, address information of the new data transmission request is added to the service packet information, and the step of inputting the current data transmission request to the corresponding service module for processing is performed to obtain the request processing information is performed. By the method, the address information of the terminal equipment can be intelligently managed, the initial data transmission requests sent by the same terminal based on different address information are processed by the same service module, and the waste of service resources of the communication server caused by the transmission of invalid data requests is avoided, so that the data transmission efficiency of the communication server is greatly improved.
The embodiment of the invention also provides a data transmission device based on terminal address management, which can be configured in a communication server and is used for executing any embodiment of the data transmission method based on terminal address management. Specifically, referring to fig. 9, fig. 9 is a schematic block diagram of a data transmission device based on terminal address management according to an embodiment of the present invention.
As shown in fig. 9, the terminal address management-based data transmission apparatus 100 includes a service packet information acquisition unit 110, a request processing information acquisition unit 120, a request processing information feedback unit 130, a new data transmission request judgment unit 140, an address information addition unit 150, and a return execution unit 160.
The service packet information obtaining unit 110 is configured to, if an initial data transmission request from the terminal device is received for the first time, group the initial data transmission request according to a preset service packet rule to obtain corresponding service packet information.
In a specific embodiment, the service packet information obtaining unit 110 includes a subunit: the target group identification acquisition unit is used for calculating the user identification code in the initial data transmission request according to the calculation rule so as to determine a group identification corresponding to the user identification code as a target group identification according to a calculation result; and a service packet information generating unit, configured to combine the target packet identifier with address information in the initial data transmission request to generate corresponding service packet information.
In a specific embodiment, the target packet identifier obtaining unit includes a subunit: the modular arithmetic unit is used for carrying out modular arithmetic on the user identification code according to the calculation rule and the number of the grouping identifiers to obtain a corresponding modular arithmetic value; and the target group identification determining unit is used for determining a corresponding group identification as a target group identification according to the modulo operation value.
The request processing information obtaining unit 120 is configured to take the initial data transmission request as a current data transmission request, and input the current data transmission request to a service module corresponding to the service packet information in the communication server for processing, so as to obtain corresponding request processing information.
And a request processing information feedback unit 130, configured to feed back the request processing information to the terminal device according to the address information in the current data transmission request.
And the new data transmission request judging unit 140 is configured to judge whether the new data transmission request and the current data transmission request belong to the same session if the new data transmission request from the terminal device is received.
In an embodiment, the new data transmission request determining unit 140 includes a subunit: a current service node obtaining unit, configured to obtain, as a current service node, one service node corresponding to the current data transmission request in a pre-stored service node map; and the service node judging unit is used for judging whether the service node of the new data transmission request is an upstream node or a downstream node of the current service node so as to judge whether the new data transmission request and the current data transmission request belong to the same session.
An address information adding unit 150, configured to add address information of the new data transmission request to the service packet information if the new data transmission request and the current data transmission request belong to the same session.
In a specific embodiment, the address information adding unit 150 includes a subunit: a time identification information acquisition unit for acquiring the current time as the time identification information of the address information of the newly added data transmission request; and the information adding unit is used for combining the time identification information with the address information of the newly added data transmission request and adding the combined time identification information and the address information into the service grouping information.
In a specific embodiment, the data transmission apparatus 100 based on terminal address management includes a further subunit: a service packet information deleting unit, configured to delete service packet information corresponding to the current data transmission request if the new data transmission request and the current data transmission request do not belong to the same session; and the grouping unit is used for taking the newly added data transmission request as an initial data transmission request and returning to the step of executing the grouping of the initial data transmission request according to a preset service grouping rule so as to acquire corresponding service grouping information.
In a specific embodiment, the data transmission apparatus 100 based on terminal address management includes a further subunit: an address information judging unit for judging whether the address information of the newly added data transmission request is the same as any address information in the service packet information; if the address information of the new data transmission request is different from any one of the service packet information, executing the step of adding the address information of the new data transmission request to the service packet information; and if the address information of the new data transmission request is the same as any address information in the service packet information, executing the step of taking the new data transmission request as the current data transmission request.
And the return execution unit is used for taking the newly added data transmission request as a current data transmission request and returning to execute the step of inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to acquire corresponding request processing information.
The data transmission device based on terminal address management provided in the embodiment of the present invention applies the data transmission method based on terminal address management, and performs grouping on an initial data transmission request received for the first time according to a service grouping rule to obtain service grouping information, processes the initial data transmission request as a current data transmission request and inputs the current data transmission request to a corresponding service module, and feeds back the processed request processing information to a terminal device, if the newly added data transmission request is received, judges whether the newly added data transmission request and the current data transmission request belong to the same session, if yes, adds the address information of the newly added data transmission request to the service grouping information and returns to execute the step of inputting the current data transmission request to the corresponding service module for processing so as to obtain request processing information. By the method, the address information of the terminal equipment can be intelligently managed, the initial data transmission requests sent by the same terminal based on different address information are processed by the same service module, and the waste of service resources of the communication server caused by the transmission of invalid data requests is avoided, so that the data transmission efficiency of the communication server is greatly improved.
The above-described data transmission apparatus based on terminal address management may be implemented in the form of a computer program which can be run on a computer device as shown in fig. 10.
Referring to fig. 10, fig. 10 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a communication server 10 for performing a data transmission method based on terminal address management for data transmission with a terminal device 20.
With reference to fig. 10, the computer device 500 includes a processor 502, a memory, and a network interface 505, which are connected by a system bus 501, wherein the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform a data transmission method based on terminal address management, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform a data transfer method based on terminal address management.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the structure shown in FIG. 10 is merely a block diagram of some of the structures associated with the present inventive arrangements and does not constitute a limitation of the computer device 500 to which the present inventive arrangements may be applied, and that a particular computer device 500 may include more or fewer components than shown, or may combine certain components, or may have a different arrangement of components.
The processor 502 is configured to execute a computer program 5032 stored in a memory, so as to implement the corresponding functions in the data transmission method based on terminal address management.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 10 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 10, and will not be described again.
It should be appreciated that in an embodiment of the invention, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium. The computer readable storage medium stores a computer program which when executed by a processor implements the steps involved in the terminal address management based data transmission method described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or part of what contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (9)

1. A data transmission method based on terminal address management, wherein the method is applied to a communication server, and the communication server establishes network connection with a terminal device to realize transmission of data information, the method comprising:
if an initial data transmission request from the terminal equipment is received for the first time, grouping the initial data transmission request according to a preset service grouping rule to obtain corresponding service grouping information;
the initial data transmission request is used as a current data transmission request, and the current data transmission request is input to a service module corresponding to the service grouping information in the communication server for processing so as to obtain corresponding request processing information;
Feeding back the request processing information to the terminal equipment according to the address information in the current data transmission request;
if a new data transmission request from the terminal equipment is received, judging whether the new data transmission request and the current data transmission request belong to the same session or not;
if the newly added data transmission request and the current data transmission request belong to the same session, adding address information of the newly added data transmission request into the service grouping information;
the newly added data transmission request is used as a current data transmission request, and the step of inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing is carried out in a return mode so as to acquire corresponding request processing information;
the service grouping rule includes a calculation rule and a grouping identifier, and the grouping the initial data transmission request according to the preset service grouping rule to obtain corresponding service grouping information includes:
calculating a user identification code in an initial data transmission request according to the calculation rule, and determining a group identification corresponding to the user identification code as a target group identification according to a calculation result;
And combining the target packet identification with address information in the initial data transmission request to generate corresponding service packet information.
2. The data transmission method based on terminal address management according to claim 1, wherein the calculating the user identification code in the initial data transmission request according to the calculation rule to determine a packet identification corresponding to the user identification code as a target packet identification according to the calculation result comprises:
performing modular operation on the user identification code according to the calculation rule and the number of the grouping identifications to obtain a corresponding modular operation value;
and determining a corresponding group identifier as a target group identifier according to the modulo operation value.
3. The terminal address management-based data transmission method according to claim 1, wherein the determining whether the newly added data transmission request and the current data transmission request belong to the same session comprises:
acquiring one service node corresponding to the current data transmission request in a pre-stored service node map as a current service node;
and judging whether the service node of the newly added data transmission request is an upstream node or a downstream node of the current service node, so as to judge whether the newly added data transmission request and the current data transmission request belong to the same session.
4. The terminal address management-based data transmission method according to claim 1, wherein the adding address information of the newly added data transmission request to the service packet information comprises:
acquiring the current time as time identification information of address information of the newly added data transmission request;
and combining the time identification information with the address information of the newly added data transmission request and adding the combined time identification information and the address information into the service grouping information.
5. The method for data transmission based on terminal address management according to claim 1, wherein after said determining whether the newly added data transmission request and the current data transmission request belong to the same session, further comprising:
if the newly added data transmission request and the current data transmission request do not belong to the same session, deleting service grouping information corresponding to the current data transmission request;
and taking the newly added data transmission request as an initial data transmission request, and returning to the step of executing the step of grouping the initial data transmission request according to a preset service grouping rule so as to acquire corresponding service grouping information.
6. The terminal address management-based data transmission method according to claim 1, wherein before adding the address information of the newly added data transmission request to the service packet information, further comprising:
Judging whether the address information of the newly added data transmission request is the same as any address information in the service grouping information;
if the address information of the new data transmission request is different from any one of the service packet information, executing the step of adding the address information of the new data transmission request to the service packet information;
and if the address information of the new data transmission request is the same as any address information in the service packet information, executing the step of taking the new data transmission request as the current data transmission request.
7. A data transmission apparatus based on terminal address management, the apparatus being assembled in a communication server, the communication server establishing a network connection with a terminal device to effect transmission of data information, the apparatus comprising:
the service grouping information acquisition unit is used for grouping the initial data transmission request according to a preset service grouping rule to acquire corresponding service grouping information if the initial data transmission request from the terminal equipment is received for the first time;
the request processing information acquisition unit is used for taking the initial data transmission request as a current data transmission request, inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to obtain corresponding request processing information;
The request processing information feedback unit is used for feeding back the request processing information to the terminal equipment according to the address information in the current data transmission request;
a new data transmission request judging unit, configured to judge whether the new data transmission request and the current data transmission request belong to the same session if a new data transmission request from the terminal device is received;
an address information adding unit, configured to add address information of the new data transmission request to the service packet information if the new data transmission request and the current data transmission request belong to the same session;
the return execution unit is used for taking the newly added data transmission request as a current data transmission request, and returning to execute the step of inputting the current data transmission request into a service module corresponding to the service grouping information in the communication server for processing so as to acquire corresponding request processing information;
the service grouping rule includes a calculation rule and a grouping identifier, and the grouping the initial data transmission request according to the preset service grouping rule to obtain corresponding service grouping information includes:
Calculating a user identification code in an initial data transmission request according to the calculation rule, and determining a group identification corresponding to the user identification code as a target group identification according to a calculation result;
and combining the target packet identification with address information in the initial data transmission request to generate corresponding service packet information.
8. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements a terminal address management based data transmission method according to any of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the terminal address management-based data transmission method according to any one of claims 1 to 6.
CN202111148895.XA 2021-09-29 2021-09-29 Data transmission method, device, equipment and medium based on terminal address management Active CN113905019B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111148895.XA CN113905019B (en) 2021-09-29 2021-09-29 Data transmission method, device, equipment and medium based on terminal address management

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111148895.XA CN113905019B (en) 2021-09-29 2021-09-29 Data transmission method, device, equipment and medium based on terminal address management

Publications (2)

Publication Number Publication Date
CN113905019A CN113905019A (en) 2022-01-07
CN113905019B true CN113905019B (en) 2023-12-01

Family

ID=79189212

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111148895.XA Active CN113905019B (en) 2021-09-29 2021-09-29 Data transmission method, device, equipment and medium based on terminal address management

Country Status (1)

Country Link
CN (1) CN113905019B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329788A (en) * 1998-12-04 2002-01-02 艾利森电话股份有限公司 Handover in communication system
CN101163264A (en) * 2007-11-14 2008-04-16 中兴通讯股份有限公司 Data traffic access control method in mobile communications system
KR20180021630A (en) * 2016-08-22 2018-03-05 삼성전자주식회사 Method and apparatus for requesting authorization between terminal and third party in wireless communication system
CN108933803A (en) * 2017-05-26 2018-12-04 杭州海康威视数字技术股份有限公司 Headend equipment, cloud storage service device, flow data directly deposit method and system
CN109428866A (en) * 2017-08-30 2019-03-05 中兴通讯股份有限公司 Method, system and the computer readable storage medium of subscriber identity information are provided
CN110197705A (en) * 2019-04-25 2019-09-03 胡盛寿 A kind of clinical data service system and method based on cloud platform
CN110856164A (en) * 2018-08-21 2020-02-28 中国电信股份有限公司 User identification method, server and system
CN110933180A (en) * 2019-12-10 2020-03-27 深信服科技股份有限公司 Communication establishing method and device, load equipment and storage medium
WO2020073855A1 (en) * 2018-10-08 2020-04-16 华为技术有限公司 Method and device for establishing session, and, method and device for transmitting packet
WO2021042398A1 (en) * 2019-09-06 2021-03-11 Oppo广东移动通信有限公司 Communication method and apparatus, network device and terminal device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020009757A1 (en) * 2018-07-06 2020-01-09 Boku, Inc. Network system with request redirect capability for msisdn header enrichment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1329788A (en) * 1998-12-04 2002-01-02 艾利森电话股份有限公司 Handover in communication system
CN101163264A (en) * 2007-11-14 2008-04-16 中兴通讯股份有限公司 Data traffic access control method in mobile communications system
KR20180021630A (en) * 2016-08-22 2018-03-05 삼성전자주식회사 Method and apparatus for requesting authorization between terminal and third party in wireless communication system
CN108933803A (en) * 2017-05-26 2018-12-04 杭州海康威视数字技术股份有限公司 Headend equipment, cloud storage service device, flow data directly deposit method and system
CN109428866A (en) * 2017-08-30 2019-03-05 中兴通讯股份有限公司 Method, system and the computer readable storage medium of subscriber identity information are provided
CN110856164A (en) * 2018-08-21 2020-02-28 中国电信股份有限公司 User identification method, server and system
WO2020073855A1 (en) * 2018-10-08 2020-04-16 华为技术有限公司 Method and device for establishing session, and, method and device for transmitting packet
CN110197705A (en) * 2019-04-25 2019-09-03 胡盛寿 A kind of clinical data service system and method based on cloud platform
WO2021042398A1 (en) * 2019-09-06 2021-03-11 Oppo广东移动通信有限公司 Communication method and apparatus, network device and terminal device
CN110933180A (en) * 2019-12-10 2020-03-27 深信服科技股份有限公司 Communication establishing method and device, load equipment and storage medium

Also Published As

Publication number Publication date
CN113905019A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
US11240159B2 (en) Service link selection control method and device
CN111522641B (en) Task scheduling method, device, computer equipment and storage medium
CN108024270B (en) Information sending method, unit and system
CN110691384B (en) Network slice using method and device
CN108810116B (en) Message processing method and related product
JP2019522428A (en) Cyber security management system, method and apparatus
CN109525412B (en) Method and device for managing network slices
CN111447143B (en) Business service data transmission method and device, computer equipment and storage medium
CN111163130A (en) Network service system and data transmission method thereof
CN105472597B (en) Application registration method and device
CN111641702A (en) Heartbeat message management method and device
CN113438172A (en) Data transmission method and device based on multi-level node network
CN113434293A (en) Method and apparatus for processing repeat request, storage medium, and electronic apparatus
CN106878030B (en) Charging method and device
US20190372825A1 (en) Communication apparatus, communication method, and recording medium
CN113905019B (en) Data transmission method, device, equipment and medium based on terminal address management
CN116567609A (en) User information association backfill method, device, equipment and storage medium
CN110609707B (en) Online data processing system generation method, device and equipment
CN108282752B (en) Method, system, device and storage medium for group callback in broadband cluster system
CN113966602A (en) Distributed storage of blocks in a blockchain
CN115378959A (en) Data transmission method, device, electronic equipment and storage medium
CN112584373B (en) Event subscription method and device
CN114302351A (en) Short message service processing method and device, computer equipment and storage medium
CN114173396A (en) Method and device for determining terminal networking time, electronic equipment and storage medium
KR20160086803A (en) Checking Method for Information about Client's Mobile Phone Number, Information Providing Server, Client Managing Server, and Telecommunications Company Server Used Therein

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