CN109257227B - Coupling management method, device and system in data transmission - Google Patents

Coupling management method, device and system in data transmission Download PDF

Info

Publication number
CN109257227B
CN109257227B CN201811241990.2A CN201811241990A CN109257227B CN 109257227 B CN109257227 B CN 109257227B CN 201811241990 A CN201811241990 A CN 201811241990A CN 109257227 B CN109257227 B CN 109257227B
Authority
CN
China
Prior art keywords
coupling
socket
priority
resource
socket resource
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
CN201811241990.2A
Other languages
Chinese (zh)
Other versions
CN109257227A (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.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems 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 Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN201811241990.2A priority Critical patent/CN109257227B/en
Publication of CN109257227A publication Critical patent/CN109257227A/en
Application granted granted Critical
Publication of CN109257227B publication Critical patent/CN109257227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5019Ensuring fulfilment of SLA
    • H04L41/5022Ensuring fulfilment of SLA by giving priorities, e.g. assigning classes of service
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms

Abstract

The invention relates to a coupling management method, a coupling management device, a coupling management terminal and a coupling management system in data transmission, wherein the coupling management method in data transmission comprises the following steps: migrating each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of the first socket resources is the same as the number of the high-priority couplings; and migrating each low-priority coupling to each second socket resource in the socket resource group according to the average distribution rule. The embodiment of the invention can realize the management of a large number of couplings under the condition of limited socket resources, effectively use the socket resources, improve the integral concurrent throughput and improve the coupling management efficiency.

Description

Coupling management method, device and system in data transmission
Technical Field
The present invention relates to the field of communication transmission technologies, and in particular, to a coupling management method, apparatus, and system in data transmission.
Background
SCTP (Stream Control Transmission Protocol) is a transport layer Protocol defined by IETF (The Internet Engineering Task Force), and provides a reliable data packet Transmission Protocol oriented to connection. SCTP inherits and improves more perfect congestion Control of TCP (Transmission Control Protocol), provides more characteristics such as multi-host, multi-stream, initialization protection, message framing, and smooth closing, is mainly applied to transmitting scn (signaling Communication network) narrowband signaling messages through an IP (Internet Protocol, Protocol for interconnection between networks) network, and is also widely applied to interfaces such as S1, S6a, Sgs, and Sv in a core network. At present, data transmission based on SCTP is mainly realized by a coupling management mode.
In the implementation process, the inventor finds that at least the following problems exist in the conventional technology: in the traditional data transmission process, the concurrent throughput of socket resources and data is difficult to reach balance, and the coupling management efficiency is low.
Disclosure of Invention
Therefore, it is necessary to provide a coupling management method, device and system in data transmission, aiming at the problem of low coupling management efficiency in the conventional data transmission process.
In order to achieve the above object, an embodiment of the present invention provides a coupling management method in data transmission, including the following steps:
migrating each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of the first socket resources is the same as the number of the high-priority couplings;
and migrating each low-priority coupling to each second socket resource in the socket resource group according to the average distribution rule.
In one embodiment, the step of migrating each low priority couple to each second socket resource in the socket resource group according to the average allocation rule comprises:
inquiring the socket serial number of the second socket resource which is equal to the index value, and confirming the second socket resource corresponding to the socket serial number as the target socket resource; the index value is obtained by taking the modulus of the number of the second socket resources to the number of the coupling numbers of the low-priority couplings;
migrating the low priority coupling to the target socket resource.
In one embodiment, the step of migrating the low priority couplings to the target socket resource is preceded by:
if the target socket resource is in the unavailable state, the identity information corresponding to the monitored socket resource is separated according to the monitored socket resource, and the identity information is endowed to the target socket resource.
In one embodiment, the identity information includes a local address and port information.
In one embodiment, the step of obtaining the target socket resource comprises the steps of:
generating a COMM _ UP event corresponding to the low-priority coupling according to a stream control transmission protocol;
the number of couples corresponding to the low priority couple in the COMM _ UP event is obtained.
In one embodiment, the step of migrating the high priority couplings to the first socket resources in the socket resource group in a one-to-one correspondence includes:
and caching the coupling data of the high-priority coupling to a corresponding buffer area of the first socket resource.
In one embodiment, the step of migrating each low priority couple to each second socket resource in the socket resource group according to the average allocation rule comprises the following steps:
and caching the coupling data of the low-priority coupling to a corresponding buffer area of the second socket resource.
On the other hand, an embodiment of the present invention further provides a coupling management apparatus in data transmission, including:
a high-priority coupling migration unit, configured to migrate each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence; the number of the first socket resources is the same as the number of the high-priority couplings;
and the low-priority coupling migration unit is used for migrating each low-priority coupling to each second socket resource in the socket resource group according to the average allocation rule.
On the other hand, an embodiment of the present invention further provides a coupling management system in data transmission, including a memory and a processor, where the memory stores a computer program, and is characterized in that when the processor executes the computer program, the coupling management system implements any one of the steps of the coupling management method in data transmission.
In another aspect, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of any one of the above coupling management methods in data transmission.
One of the above technical solutions has the following advantages and beneficial effects:
in data transmission, when high-priority couplings need to be associated with socket resources, the high-priority couplings can be migrated to first socket resources in a socket resource group in a one-to-one correspondence mode, wherein the number of the first socket resources is the same as that of the high-priority couplings, so that a user layer can assign independent socket resources (first socket resources) to the high-priority couplings to be associated according to actual service requirements, and higher throughput performance is provided for the high-priority couplings. In data transmission, for low-priority couplings in a coupling group, each low-priority coupling can be migrated to each second socket resource in a socket resource group according to an average allocation rule, so that a large amount of couplings can be managed under the condition of limited socket resources, the overall concurrent throughput is improved while the socket resources are effectively used, and the coupling management efficiency is improved.
Drawings
FIG. 1 is a diagram of an exemplary implementation of a coupling management method in data transmission;
FIG. 2 is a first flowchart of a coupling management method in data transmission according to an embodiment;
FIG. 3 is a first flow diagram of a low priority coupled migration step in one embodiment;
FIG. 4 is a second flow diagram of a low priority coupled migration step in one embodiment;
FIG. 5 is a third flow diagram illustrating a low priority coupled migration step in one embodiment;
FIG. 6 is a second flowchart of a coupling management method in data transmission according to an embodiment;
FIG. 7 is a third flowchart of a coupling management method in data transmission according to an embodiment;
FIG. 8 is a diagram illustrating an exemplary coupling management apparatus for data transmission;
fig. 9 is a schematic structural diagram of a coupling management system in data transmission according to an embodiment.
Detailed Description
To facilitate an understanding of the present application, the present application will now be described more fully with reference to the accompanying drawings. Preferred embodiments of the present application are shown in the drawings. This application may, however, be embodied in many different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
In the conventional data transmission process, coupling management is generally performed in two ways, for example, the Linux Kernel module lksctp (Linux Kernel sctp) provides two coupling management ways for the server application.
In the first coupling management method called udp-style like, the system provides a socket resource of SOCK _ SEQPACKET type, and after the monitoring is started, all couplings connected to the monitoring port are associated with the socket resource, so as to form a many-to-one relationship in which a plurality of couplings are bound to the same socket resource. The coupling management mode has a poor support effect on the multi-thread concurrent access, and because the data from a plurality of couplings are stored in the same receiving (or sending) buffer area, the multi-thread access from the user layer is executed in a serialized manner in the system kernel, the real effect of the concurrent access cannot be achieved, and the performance bottleneck in the case of large throughput is easy to occur. In a second coupling management mode called tcp-style like, the system provides socket resources of an SOCK _ STREAM type, and after a listening port is started, any coupling connected with the listening port can be associated with the coupling by creating a new socket resource, so that a one-to-one relationship that each coupling is individually bound with one socket resource is formed. The coupling management mode is suitable for multithreading to access different socket resources respectively, can give full play to the concurrency performance of the system, and has the defect that socket resources are consumed too fast, and are not beneficial to connection and management of a large number of couplings.
Compared with the udp-style link coupling management mode, the coupling management method, the coupling management device and the coupling management system in data transmission can completely access and process different couplings belonging to different socket resources in parallel, and improve the concurrency rate and the throughput to the maximum extent; compared with a tcp-style like coupling management mode, one socket resource is not limited to binding one coupling, and a large number of couplings can be accommodated and managed more effectively.
The coupling management method in data transmission provided by the present invention can be applied to the application environment shown in fig. 1, in which the terminal 102 communicates with the server 104 through a network. When the user layer needs to perform priority migration on the high-priority couplings, a request can be sent to a server through a terminal, and the high-priority couplings are migrated to first socket resources in a socket resource group in a one-to-one correspondence mode through the server; and migrating each low-priority coupling to each second socket resource in the socket resource group according to an average allocation rule, so that the concurrent throughput of the socket resources and the data is balanced, and the coupling management efficiency is improved. The terminal 102 may be, but not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers.
In one embodiment, as shown in fig. 2, a coupling management method in data transmission is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step S210, migrating each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of first socket resources is the same as the number of high priority couplings.
Wherein, coupling refers to a corresponding relationship between two SCTP endpoints. The association contains the two SCTP endpoints and protocol state information including information such as the authentication tag and the transport sequence number. High priority couplings refer to couplings having a high priority level, wherein the priority level of the coupling may be customized by the user layer. For example, the user layer may set a portion of the special couplings as high-priority couplings according to actual traffic needs. Socket refers to a communication mechanism by which development of a client/server system can occur either locally on a stand-alone machine or across a network. For example, the functions provided by Linux (e.g., print services, ftp, etc.) are typically communicated through sockets. The socket resources include a source IP address, a destination IP address, a source port number, a destination port number, and the like. The first socket resource refers to a socket resource for associating high priority couplings. The socket resource group is composed of a certain number of socket resources preset in the system.
Specifically, all the couplings may be prioritized according to the actual service requirements. The high-priority couplings can be migrated to the first socket resources in the socket resource group in a one-to-one correspondence manner, wherein the number of the first socket resources is the same as the number of the high-priority couplings, so that one high-priority coupling is associated with a single first socket resource, and better throughput performance is provided for the high-priority couplings.
Step S220, migrate each low priority couple to each second socket resource in the socket resource group according to the average allocation rule.
Wherein the average allocation rule is used to allocate each low priority couple to each second socket resource. For example, if there are 6 low priority couplings allocated to 3 second socket resources on average, each second socket resource allocation results in 2 low priority couplings, that is, 2 low priority couplings are migrated to one second socket resource. And 7 low-priority couplings are averagely distributed to 3 second socket resources, each second socket resource is distributed to obtain 2 low-priority couplings, and the rest low-priority couplings are randomly distributed to any second socket resource. The second socket resource refers to a socket resource for associating low priority couplings.
Specifically, all the couplings may be prioritized according to the actual service requirements. For low-priority couplings, each low-priority coupling can be migrated to each second socket resource in the socket resource group according to an average allocation rule, so that the data concurrency rate and the throughput are improved to the maximum extent.
In a specific embodiment, if there is no special coupling according to the actual traffic demand, it is required to provide higher priority and throughput performance, i.e. there is no need to set high priority couplings. All the couplings can default to low priority couplings and each low priority coupling can be migrated to each second socket resource in the socket resource group according to the average allocation rule. The method realizes the management of a large number of couplings under the limited socket resource, and improves the overall concurrent throughput while effectively using the socket resource.
In the above embodiment, in data transmission, when there is a high-priority coupling that needs to be associated with a socket resource, each high-priority coupling may be migrated to each first socket resource in a socket resource group in a one-to-one correspondence manner, where the number of the first socket resources is the same as the number of the high-priority couplings, so that a user layer may designate a separate socket resource (first socket resource) for the high-priority coupling to be associated according to an actual service requirement, and provide higher throughput performance for the high-priority coupling. In data transmission, for low-priority couplings in a coupling group, each low-priority coupling can be migrated to each second socket resource in a socket resource group according to an average allocation rule, so that a large amount of couplings can be managed under the condition of limited socket resources, the overall concurrent throughput is improved while the socket resources are effectively used, and the coupling management efficiency is improved.
In one embodiment, as shown in FIG. 3, a first flow diagram of a low priority coupled migration step is shown. Wherein migrating each low-priority coupling to each second socket resource in the socket resource group according to the average allocation rule comprises:
step S310, inquiring the socket serial number of the second socket resource which is equal to the index value, and confirming the second socket resource corresponding to the socket serial number as the target socket resource; the index value is obtained by taking the modulus of the number of the second socket resources to the number of the coupling numbers of the low-priority couplings.
The target socket resource refers to a second socket resource with a socket sequence number equal to the index value. The socket number refers to the number of the second socket resource. For example, all the second socket resources may be numbered in an order from 1 to n, where the socket number is any one of numbers from 1 to n, and n is a positive integer. The coupling number value refers to the number of the low priority coupling. For example, all low priority couplings may be numbered in an order of 1 to n, so that the coupling number is any one number from 1 to n, and n is a positive integer. The index value is obtained by taking the modulus of the number of the second socket resource to the number of the low-priority coupled coupling numbers.
Specifically, according to the number of the second socket resources, a modulus is taken for the coupling number value of the low-priority coupling to obtain an index value corresponding to the low-priority coupling; the socket serial number equal to the index value can be obtained by inquiring the socket serial number of the second socket resource, and the second socket resource corresponding to the socket serial number is confirmed as the target socket resource. And further, the target socket resource is obtained.
Step S320, migrating the low-priority coupling to the target socket resource.
Specifically, when a target socket resource corresponding to a low-priority coupling is obtained, the low-priority coupling may be migrated to the target socket resource. The association of the low-priority coupling with the target socket resource is achieved.
For example, the number of the low-priority couplings and the number of the second socket resources are modulo to obtain the index value m, then the second socket resource with the socket serial number m is selected as the target socket resource, and the low-priority couplings are migrated to the target socket resource. Furthermore, one socket resource is not limited to be associated with one coupling, so that the socket resource is more effectively used for accommodating and managing a large number of couplings, and the coupling management efficiency is improved.
In one embodiment, as shown in FIG. 4, a second flow diagram of a low priority coupled migration step is shown. The method comprises the following steps:
step S410, inquiring the socket serial number of the second socket resource which is equal to the index value, and confirming the second socket resource corresponding to the socket serial number as the target socket resource; the index value is obtained by taking the modulus of the number of the second socket resources to the number of the coupling numbers of the low-priority couplings.
The specific content process of step S410 may refer to the above content, and is not described herein again.
Step S420, if the target socket resource is in the unavailable state, the identity information corresponding to the monitored socket resource is separated according to the monitored socket resource, and the identity information is assigned to the target socket resource.
Wherein, listening socket resource refers to socket resource with listening function. Identity information refers to information indicating the identity of a socket resource.
Preferably, the identity information comprises local address and port information.
Specifically, when a target socket resource having a socket sequence number equal to the index value is acquired, it may be checked whether the target socket resource has been used and allocated in association. If the target socket resource is in the unavailable state, the identity information which is the same as the monitoring socket resource can be separated according to the preset monitoring socket resource, and the identity information is endowed to the target socket resource. And then separating to obtain a second socket resource which is used for the same identity information with the monitoring socket resource, and taking the second socket resource as the target socket resource.
Further, if the target socket resource is found to be in an available state, the corresponding low-priority coupling is directly migrated to the target socket resource.
Step S430, migrate the low-priority coupling to the target socket resource.
The specific content process of step S430 may refer to the above content, and is not described herein again.
In a specific embodiment, step S410 is preceded by:
generating a COMM _ UP event corresponding to the low-priority coupling according to a stream control transmission protocol;
the number of couples corresponding to the low priority couple in the COMM _ UP event is obtained.
Stream Control Transmission Protocol (SCTP) is a protocol for simultaneously transmitting a plurality of data streams between two ends of a network connection. The COMM _ UP event refers to a connection setup complete event.
Specifically, when the SCTP handshake completes the connection establishment, a COMM _ UP event corresponding to a low-priority coupling may be generated through a COMMUNICATIONs UP notification primitive, and further, a coupling number value corresponding to the low-priority coupling in the COMM _ UP event may be obtained.
It should be noted that, when capturing a COMM _ UP event, information such as event state information corresponding to low-priority coupling, an opposite-end destination address list, an outgoing flow number, an incoming flow number, and the like may also be acquired.
In the above embodiment, in data transmission, for a low-priority coupling in a coupling group, an index value m may be obtained according to a coupling number value modulo polling rule, that is, according to a coupling number value of the low-priority coupling and a total number of second socket resources modulo, and then an mth second socket resource is selected to be associated with the low-priority coupling. The method and the device realize the management of a large number of couplings under the limited socket resource, improve the overall concurrent throughput and improve the coupling management efficiency while effectively using the socket resource.
In a specific embodiment, as shown in FIG. 5, a third flow diagram of the low priority coupled migration step is shown. The specific working process of the low-priority coupled migration may include the following steps (step 1 to step 5):
step 1, when SCTP completes connection establishment (for example, connection establishment is performed through 4-way handshake), it may notify a primitive through COMM _ UP to generate a COMM _ UP event, and by capturing the COMM _ UP event, a coupling number value corresponding to a low-priority coupling may be obtained, for example, the coupling number value is 1 to 2n (n is a positive integer).
And 2, obtaining an index value n by taking a module according to the obtained number value of the low-priority coupling and the total number n of the second socket resources, and migrating the low-priority coupling corresponding to the index value n to the nth second socket resource for management.
And 3, checking whether the nth second socket resource is used and allocated for migration, and if the nth second socket resource is not available, performing the step 4.
And 4, applying for socket resources according to a preset monitoring socket source, and separating a socket resource which has the same local address and port information with the monitoring socket resource.
And 5, establishing an association relation between the low-priority coupling with the corresponding index value n and the second socket resource by taking the monitoring socket resource, the coupling number value and the second socket resource as input parameters under the condition that the nth second socket resource is available, and realizing the transfer of the low-priority coupling to the second socket resource.
Based on the embodiment, by changing the incidence relation between the low-priority couplings and the second socket resources, the many-to-one and one-to-one relation of the traditional coupling management mode is expanded, and the many-to-many relation of binding a plurality of low-priority couplings and the non-single second socket resources is formed. The concurrency rate and the throughput of data transmission are improved to the maximum extent, and the coupling management efficiency is improved.
In one embodiment, as shown in fig. 6, a coupling management method in data transmission is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step S610, migrating each high priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of first socket resources is the same as the number of high priority couplings.
The specific content process of step S610 may refer to the above content, and is not described herein again.
Step S620, cache the coupled data with high priority coupling to the corresponding buffer area of the first socket resource.
Specifically, the high-priority couplings are migrated to the first socket resource, that is, after the high-priority couplings are associated with the first socket resource, the coupling data of the high-priority couplings may be cached in a buffer of the first socket resource. The buffer may be a receiving buffer of the first socket resource, or may be a transmitting buffer of the first socket resource. The coupling data refers to unprocessed data associated with the high priority coupling. The method realizes the change of the incidence relation between the high-priority coupling and the first socket resource, and simultaneously transfers the unprocessed data related to the high-priority coupling to the buffer area of the first socket resource.
Step S630, migrate each low priority coupling to each second socket resource in the socket resource group according to the average allocation rule.
The specific content process of step S630 may refer to the above content, and is not described herein again.
In the above embodiment, when there is a high-priority coupling that needs to be associated with a socket resource in data transmission, each high-priority coupling may be migrated to each first socket resource in the socket resource group in a one-to-one correspondence manner, and the coupling data of the high-priority coupling is cached in the buffer area of the corresponding first socket resource. The user layer can assign independent socket resources (first socket resources) to the high-priority coupling according to actual service requirements to be associated, and higher throughput performance is provided for the high-priority coupling. In data transmission, for low-priority couplings in a coupling group, each low-priority coupling can be migrated to each second socket resource in a socket resource group according to an average allocation rule, so that a large amount of couplings can be managed under the condition of limited socket resources, the overall concurrent throughput is improved while the socket resources are effectively used, and the coupling management efficiency is improved.
In one embodiment, as shown in fig. 7, a coupling management method in data transmission is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step S710, migrating each high priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of first socket resources is the same as the number of high priority couplings.
Step S720, the coupled data with high priority coupling is cached to the buffer area of the corresponding first socket resource.
Step S730, migrate each low priority coupling to each second socket resource in the socket resource group according to the average allocation rule.
The specific content processes of step S710, step S720 and step S730 may refer to the above contents, and are not described herein again.
Step S740, the coupled data with low priority coupling is cached to the corresponding buffer area of the second socket resource.
Specifically, after the low-priority coupling is migrated to the second socket resource, that is, the low-priority coupling is associated with the second socket resource, the coupling data of the low-priority coupling may be buffered in a buffer of the second socket resource. The buffer may be a receiving buffer of the second socket resource, or may be a transmitting buffer of the second socket resource. Coupled data of a low priority coupling refers to unprocessed data associated with the low priority coupling. The method realizes the change of the association relationship between the low-priority coupling and the second socket resource, and simultaneously transfers the unprocessed data related to the low-priority coupling to the buffer area of the second socket resource.
In the above embodiment, for the high-priority coupling, a single thread may be used to associate with the first socket resource, and for the low-priority coupling, a second socket resource may be associated according to an average allocation rule, so as to implement parallel data access and processing on the socket layer. The method effectively reduces the excessive occupation of system thread resources and socket resources, achieves the balance between the socket resources and the data concurrent throughput, and improves the coupling management efficiency.
It should be understood that, although the steps in the flowcharts of fig. 2 to 7 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performing the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 8, a coupling management apparatus in data transmission is provided. The device includes:
a high-priority coupling migration unit 810, configured to migrate each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence; the number of first socket resources is the same as the number of high priority couplings.
A low-priority coupling migration unit 820, configured to migrate each low-priority coupling to each second socket resource in the socket resource group according to the average allocation rule.
For specific limitations of the coupling management device in data transmission, reference may be made to the above limitations of the adaptive positioning method, which are not described herein again. The modules in the management device in the data transmission can be implemented in whole or in part by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in a coupling management system in data transmission, and can also be stored in a memory in the positioning device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 9, a coupling management system in data transmission is provided, which includes a memory and a processor, the memory storing a computer program.
The processor, when executing the computer program, implements the steps of:
migrating each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of the first socket resources is the same as the number of the high-priority couplings;
and migrating each low-priority coupling to each second socket resource in the socket resource group according to the average distribution rule.
Further, the processor may be further configured to perform the steps of:
inquiring the socket serial number of the second socket resource which is equal to the index value, and confirming the second socket resource corresponding to the socket serial number as the target socket resource; the index value is obtained by taking the modulus of the number of the second socket resources to the number of the coupling numbers of the low-priority couplings;
migrating the low priority coupling to the target socket resource.
Further, the processor may be further configured to perform the steps of:
if the target socket resource is in the unavailable state, the identity information corresponding to the monitored socket resource is separated according to the monitored socket resource, and the identity information is endowed to the target socket resource.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
migrating each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of the first socket resources is the same as the number of the high-priority couplings;
and migrating each low-priority coupling to each second socket resource in the socket resource group according to the average distribution rule.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the division methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A coupling management method in data transmission is characterized by comprising the following steps:
migrating each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence manner; the number of the first socket resources is the same as the number of the high-priority couplings;
according to the average distribution rule, inquiring the socket serial number of the second socket resource equal to the index value, and confirming the second socket resource corresponding to the socket serial number as the target socket resource; the index value is obtained by taking the number of the second socket resources modulo the number of the low-priority coupled coupling numbers; migrating the low-priority coupling to the target socket resource.
2. The method of claim 1, wherein migrating the low priority coupling to the target socket resource comprises:
if the target socket resource is in the unavailable state, according to the monitoring socket resource, identity information corresponding to the monitoring socket resource is separated, and the identity information is endowed to the target socket resource.
3. Coupling management method in data transmission according to claim 2, characterized in that the identity information comprises local address and port information.
4. The coupling management method in data transmission according to claim 1, wherein the step of obtaining the target socket resource comprises:
generating a COMM _ UP event corresponding to the low priority coupling according to a stream control transmission protocol;
and acquiring a coupling number value corresponding to the low-priority coupling in the COMM _ UP event.
5. The method of claim 1, wherein migrating the high priority couplings to the first socket resources in the socket resource group in a one-to-one correspondence manner comprises:
and caching the coupling data with the high-priority coupling to a corresponding buffer area of the first coupling resource.
6. The method of claim 1, wherein migrating low priority couplings to second socket resources in the socket resource group according to an average allocation rule comprises:
and caching the coupling data of the low-priority coupling to a corresponding buffer area of the second coupling resource.
7. A coupling management apparatus in data transmission, comprising:
a high-priority coupling migration unit, configured to migrate each high-priority coupling to each first socket resource in the socket resource group in a one-to-one correspondence; the number of the first socket resources is the same as the number of the high-priority couplings;
the low-priority coupling migration unit is used for inquiring the socket serial number of the second socket resource with the same index value according to the average allocation rule and confirming the second socket resource corresponding to the socket serial number as the target socket resource; and the index value is obtained by performing modulus on the number of the second socket resource to the number of the low-priority coupling, and the low-priority coupling is migrated to the target socket resource.
8. A coupling management system in data transmission, comprising a memory and a processor, the memory storing a computer program, characterized in that the processor implements the steps of the coupling management method in data transmission according to any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the coupling management method in data transmission according to any one of claims 1 to 6.
CN201811241990.2A 2018-10-24 2018-10-24 Coupling management method, device and system in data transmission Active CN109257227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811241990.2A CN109257227B (en) 2018-10-24 2018-10-24 Coupling management method, device and system in data transmission

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811241990.2A CN109257227B (en) 2018-10-24 2018-10-24 Coupling management method, device and system in data transmission

Publications (2)

Publication Number Publication Date
CN109257227A CN109257227A (en) 2019-01-22
CN109257227B true CN109257227B (en) 2021-09-24

Family

ID=65045509

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811241990.2A Active CN109257227B (en) 2018-10-24 2018-10-24 Coupling management method, device and system in data transmission

Country Status (1)

Country Link
CN (1) CN109257227B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116184B (en) * 2022-01-28 2022-04-29 腾讯科技(深圳)有限公司 Data processing method and device in virtual scene, equipment and medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102217282B (en) * 2009-02-19 2014-11-05 阿尔卡特朗讯 Method and device for dynamically closing/opening function of SCTP socket listening connection
CN102118877B (en) * 2011-01-27 2013-07-10 大唐移动通信设备有限公司 Method and device for data transmission
CN102946362B (en) * 2012-09-13 2016-08-31 杭州华三通信技术有限公司 A kind of socket resource allocation methods and equipment
US9485177B2 (en) * 2014-05-30 2016-11-01 Apple Inc. Client applications communicating via a user tunnel
US10064112B2 (en) * 2015-05-29 2018-08-28 Apple Inc. Apparatus, systems and methods for switching between radio access technologies
CN109155777B (en) * 2016-06-02 2021-09-14 瑞典爱立信有限公司 Method and network node for handling SCTP packets

Also Published As

Publication number Publication date
CN109257227A (en) 2019-01-22

Similar Documents

Publication Publication Date Title
CN107637029B (en) Communication system and communication method for providing wireless terminal with access to IP network
CN110896355B (en) Network slice selection method and device
CN109618002B (en) Micro-service gateway optimization method, device and storage medium
JP3382953B2 (en) Client management flow control method and apparatus on finite memory computer system
CN110958281B (en) Data transmission method and communication device based on Internet of things
US8539089B2 (en) System and method for vertical perimeter protection
WO2020019743A1 (en) Traffic control method and device
US20140067914A1 (en) Computer system and packet transfer method
CN105516086B (en) Method for processing business and device
US11689646B2 (en) Network packet processing method and apparatus and network server
WO2014082562A1 (en) Method, device, and system for information processing based on distributed buses
CN111756776B (en) Server, message distribution device, program handover system, and program handover method
CN112153013B (en) Socket data forwarding method and device, electronic equipment and storage medium
JPWO2018220708A1 (en) Resource allocation system, management device, method and program
US11316916B2 (en) Packet processing method, related device, and computer storage medium
CN111371694B (en) Shunting method, device and system, processing equipment and storage medium
CN109257227B (en) Coupling management method, device and system in data transmission
CN116204487A (en) Remote data access method and device
US20050188070A1 (en) Vertical perimeter framework for providing application services
CN107534678B (en) Method, device and system for establishing connection between VNFM and VIM
US10791088B1 (en) Methods for disaggregating subscribers via DHCP address translation and devices thereof
US7290055B2 (en) Multi-threaded accept mechanism in a vertical perimeter communication environment
CN112449012A (en) Data resource scheduling method, system, server and read storage medium
CN111240867A (en) Information communication system and method
CN111245794B (en) Data transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20200108

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Communication System (China) Co., Ltd.

Address before: 510663 Shenzhou Road 10, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangzhou, Guangdong

Applicant before: Jingxin Communication System (China) Co., Ltd.

Applicant before: Jingxin Communication System (Guangzhou) Co., Ltd.

Applicant before: Jingxin Communication Technology (Guangzhou) Co., Ltd.

Applicant before: TIANJIN COMBA TELECOM SYSTEMS CO., LTD.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant after: Jingxin Network System Co.,Ltd.

Address before: 510663 Shenzhou Road, Guangzhou Science City, Guangzhou economic and Technological Development Zone, Guangdong, 10

Applicant before: Comba Telecom System (China) Ltd.

GR01 Patent grant
GR01 Patent grant