CN106506434B - Service data transmission method and device - Google Patents

Service data transmission method and device Download PDF

Info

Publication number
CN106506434B
CN106506434B CN201510564566.1A CN201510564566A CN106506434B CN 106506434 B CN106506434 B CN 106506434B CN 201510564566 A CN201510564566 A CN 201510564566A CN 106506434 B CN106506434 B CN 106506434B
Authority
CN
China
Prior art keywords
transmission
layer
service
parameter
packet loss
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
CN201510564566.1A
Other languages
Chinese (zh)
Other versions
CN106506434A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201510564566.1A priority Critical patent/CN106506434B/en
Priority to PCT/CN2016/087308 priority patent/WO2017041569A1/en
Publication of CN106506434A publication Critical patent/CN106506434A/en
Application granted granted Critical
Publication of CN106506434B publication Critical patent/CN106506434B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • 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]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Abstract

The invention discloses a service data transmission method and device, and belongs to the technical field of internet. The method comprises the following steps: in the process that a transmission layer transmits service data of a first service through a first transmission protocol and first transmission parameters, the transmission service layer receives transmission state information, wherein the transmission state information at least comprises the transmission layer state information, and the first transmission protocol and the first transmission parameters are the transmission protocol and the transmission parameters which are currently configured to the transmission layer; the transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information; and the transmission service layer sends the second transmission protocol and the second transmission parameters to the transmission layer, so that the transmission layer transmits the subsequent service data of the first service based on the second transmission protocol and the second transmission parameters. The invention avoids the phenomena of congestion, data packet loss and the like in the process of transmitting the service data by adjusting the transmission protocol and the transmission parameters of the transmission layer, and improves the speed and the quality of service data transmission.

Description

Service data transmission method and device
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for transmitting service data.
Background
With the rapid development of internet technology, more and more terminals such as computers, mobile phones, tablet computers and the like are appeared, and the terminals can transmit business data by using the internet. When terminals use services such as video communication, video on demand, web browsing, and the like, in order to acquire service data, the terminals need to transmit the service data through the internet.
At present, when a terminal uses the internet to transmit service data, an application Layer of the terminal sends service requirement parameters required by a service to be used to a transmission service Layer (i.e. TAPS), the service requirement parameter refers to a parameter required when the service is in a normal state, that is, a threshold parameter that can be tolerated when the service is in a normal state, the parameters may include transmission delay, packet loss rate, throughput rate, etc., and when the TAPS receives the service requirement parameter, determining a transmission protocol of the terminal for transmitting the service based on the service requirement parameter, configuring corresponding transmission parameters for the transmission protocol, and then, the transmission layer of the terminal establishes a transmission layer connection with a communication opposite terminal for the service based on the transmission protocol and the transmission parameter service data transmission, and transmits the service data of the service through the transmission layer connection.
Because the TAPS determines a transmission protocol for the transport layer of the terminal based on the service requirement parameter and configures the corresponding transmission parameter, once the transmission state of the transport layer changes or the network is congested, the transmitted service data will be lost, thereby reducing the speed and quality of service data transmission.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for transmitting service data. The technical scheme is as follows:
in a first aspect, a method for transmitting service data is provided, where the method includes:
in the process that a transmission layer transmits service data of a first service through a first transmission protocol and first transmission parameters, the transmission service layer receives transmission state information, wherein the transmission state information at least comprises the transmission layer state information, and the first transmission protocol and the first transmission parameters are the transmission protocol and the transmission parameters which are currently configured to the transmission layer;
the transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information;
and the transmission service layer sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter.
With reference to the first aspect, in a first possible implementation manner of the first aspect, the transmission status information further includes network layer status information.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, before the receiving, by the transport service layer, transmission state information, the method further includes:
receiving a service demand parameter sent by an application layer, wherein the service demand parameter is a parameter required when the first service provided by the application layer is in a normal state;
acquiring a threshold parameter from the service demand parameter;
and registering a key event to a related layer based on the threshold parameter, wherein the key event is used for reporting the transmission state information to the transmission service layer when the transmission parameter of the related layer exceeds the threshold parameter, and the related layer at least comprises the transmission layer.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a third possible implementation manner of the first aspect, before the receiving, by the transport service layer, transmission state information, the method further includes:
and sending a reporting period to the related layers, so that the related layers report the transmission state information to the transmission service layer every other reporting period, wherein the related layers at least comprise the transmission layer.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a fourth possible implementation manner of the first aspect, before the receiving, by the transport service layer, transmission state information, the method further includes:
and when the first transmission connection of the related layer for transmitting the service data is disconnected, reporting the transmission state information to the transmission service layer.
With reference to the first aspect or the first possible implementation manner of the first aspect, in a fifth possible implementation manner of the first aspect, the determining, by the transport service layer, a second transmission protocol and a second transmission parameter based on the transmission state information includes:
acquiring transmission delay and packet loss rate from the transmission state information;
determining the transmission state of the relevant layer based on the transmission delay and the packet loss rate;
determining the service type of the first service and the network type of the network which is currently connected with the network layer;
and determining a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss rate, the transmission state, the service type and the network type.
With reference to the fifth possible implementation manner of the first aspect, in a sixth possible implementation manner of the first aspect, the determining a transmission state of the relevant layer based on the transmission delay and the packet loss ratio includes:
when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate, determining that the transmission state of the relevant layer is an overload state;
when the transmission delay is less than or equal to a second designated delay and the packet loss rate is less than or equal to a second designated packet loss rate, determining that the transmission state of the related layer is a light load state;
and when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate, determining that the transmission state of the related layer is a normal state.
With reference to the fifth possible implementation manner of the first aspect or the sixth possible implementation manner of the first aspect, in a seventh possible implementation manner of the first aspect, the determining a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss ratio, the transmission state, the service type, and the network type includes:
determining the second transport protocol based on the traffic type and the network type;
and determining the second transmission parameter based on the transmission delay, the packet loss rate and the transmission state.
With reference to any one possible implementation manner of the first aspect to the seventh possible implementation manner of the first aspect, in an eighth possible implementation manner of the first aspect, the method further includes: storing the second transmission protocol and the second transmission parameters;
the sending, by the transport service layer, the second transport protocol and the second transport parameter to the transport layer, so that the transport layer transmits subsequent service data of the first service based on the first transport protocol and the second transport parameter, includes: when the transport layer reestablishes a second transport connection for transporting the service data, configuring the transport parameters of the transport layer as the second transport parameters, and configuring the transport protocol of the transport layer as the second transport protocol.
In a second aspect, an apparatus for transmitting service data is provided, the apparatus comprising:
a first receiving module, configured to receive transmission status information in a process that a transport layer transmits, through a first transmission protocol and a first transmission parameter, that a first service is service data, where the transmission status information at least includes transport layer status information, and the first transmission protocol and the first transmission parameter are a transmission protocol and a transmission parameter currently configured for the transport layer;
a determining module, configured to determine a second transmission protocol and a second transmission parameter based on the transmission status information;
a first sending module, configured to send the second transmission protocol and the second transmission parameter to the transport layer, so that the transport layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter.
With reference to the second aspect, in a first possible implementation manner of the second aspect, the transmission status information further includes network layer status information.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, the apparatus further includes:
a second receiving module, configured to receive a service requirement parameter sent by an application layer, where the service requirement parameter is a parameter required when the first service provided by the application layer is in a normal state;
an obtaining module, configured to obtain a threshold parameter from the service requirement parameter;
a registering module, configured to register a key event with a relevant layer based on the threshold parameter, where the key event is used to report the transmission state information to a transmission service layer when a transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant layer at least includes the transmission layer.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, the apparatus further includes:
a second sending module, configured to send a reporting period to the relevant layers, so that the relevant layers report the transmission state information to a transmission service layer every other reporting period, where the relevant layers at least include the transmission layer.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a fourth possible implementation manner of the second aspect, the apparatus further includes:
and the reporting module is used for reporting the transmission state information to the transmission service layer when the transmission connection of the service data transmission of the related layer is disconnected.
With reference to the second aspect or the first possible implementation manner of the second aspect, in a fifth possible implementation manner of the second aspect, the determining module includes:
an obtaining unit, configured to obtain a transmission delay and a packet loss rate from the transmission state information;
a first determining unit, configured to determine a transmission state of the relevant layer based on the transmission delay and the packet loss rate;
a second determining unit, configured to determine a service type to which the first service belongs and a network type of a network to which a network layer is currently connected;
a third determining unit, configured to determine a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss ratio, the transmission state, the service type, and the network type.
With reference to the fifth possible implementation manner of the second aspect, in a sixth possible implementation manner of the second aspect, the first determining unit includes:
a first determining subunit, configured to determine that the transmission state of the relevant layer is an overload state when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate;
a second determining subunit, configured to determine that the transmission state of the relevant layer is a light-load state when the transmission delay is less than or equal to a second specified delay and the packet loss rate is less than or equal to a second specified packet loss rate;
a third determining subunit, configured to determine that the transmission state of the relevant layer is a normal state when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate.
With reference to the fifth possible implementation manner of the second aspect or the sixth possible implementation manner of the second aspect, in a seventh possible implementation manner of the second aspect, the third determining unit includes:
a fourth determining subunit, configured to determine the second transmission protocol based on the service type and the network type;
a fifth determining subunit, configured to determine the second transmission parameter based on the transmission delay, the packet loss ratio, and the transmission state.
With reference to any one possible implementation manner of the seventh possible implementation manner of the second aspect to the second aspect, in an eighth possible implementation manner of the second aspect, the apparatus further includes: a memory for storing the second transmission protocol and the second transmission parameters;
the first sending module is specifically configured to configure a transmission parameter of the transport layer as the second transmission parameter and configure a transmission protocol of the transport layer as the second transmission protocol when the transport layer reestablishes the second transmission connection for transmitting the service data.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in the embodiment of the invention, a transmission service layer receives transmission state information in the process of transmitting service data of a first service by a transmission layer through a first transmission protocol and a first transmission parameter, the transmission state information at least comprises the transmission layer state information, the transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information, and sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits the subsequent service data of the first service based on the second transmission protocol and the second transmission parameter, thereby utilizing the more efficient second transmission protocol to transmit the service data of the first service, avoiding the phenomena of congestion, data packet loss and the like in the service data transmission process, and improving the speed and quality of service data transmission.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a diagram of a service data transmission system architecture according to an embodiment of the present invention;
fig. 2 is a flowchart of a service data transmission method according to an embodiment of the present invention;
fig. 3 is a flowchart of another service data transmission method provided in the embodiment of the present invention;
fig. 4 is a schematic structural diagram of a first service data transmission apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a second service data transmission apparatus according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a third service data transmission apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a fourth service data transmission apparatus according to an embodiment of the present invention;
FIG. 8 is a block diagram of a determining module according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a first determining unit according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a third determining unit provided in the embodiment of the present invention;
fig. 11 is a schematic structural diagram of a service data transmission apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
Fig. 1 is a diagram of a service data transmission system architecture according to an embodiment of the present invention. Referring to fig. 1, the system includes at least an application layer, a transport service layer, a transport layer, and a network layer. The application layer is the highest layer in the system, and can directly provide service for the current ongoing service; the transmission service layer is arranged between the application layer and the transmission layer and is used for controlling service data transmission; the transmission layer is arranged between the transmission service layer and the network layer and is used for providing transmission service for end-to-end service data transmission connection; the network layer is used to manage data traffic in the network and transport data from a source end to a destination end via several intermediate nodes, thereby providing the most basic end-to-end data transport service to the transport layer.
Fig. 2 is a flowchart of a service data transmission method according to an embodiment of the present invention. Referring to fig. 2, the method includes:
step 201: in the process of transmitting the service data of the first service by the transport layer through the first transport protocol and the first transport parameters, the transport service layer receives transport state information, the transport state information at least includes transport layer state information, and the first transport protocol and the first transport parameters are transport protocols and transport parameters currently configured as the transport layer.
Step 202: the transport service layer determines a second transport protocol and a second transport parameter based on the transport state information.
Step 203: and the transmission service layer sends the second transmission protocol and the second transmission parameters to the transmission layer, so that the transmission layer transmits the subsequent service data of the first service based on the second transmission protocol and the second transmission parameters.
In the embodiment of the invention, a transmission service layer receives transmission state information in the process of transmitting service data of a first service by a transmission layer through a first transmission protocol and a first transmission parameter, the transmission state information at least comprises the transmission layer state information, the transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information, and sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits the subsequent service data of the first service based on the second transmission protocol and the second transmission parameter, thereby utilizing the more efficient second transmission protocol to transmit the service data of the first service, avoiding the phenomena of congestion, data packet loss and the like in the service data transmission process, and improving the speed and quality of service data transmission.
Optionally, the transmission status information further includes network layer status information.
Optionally, before the transmission service layer receives the transmission status information in the process that the transport layer transmits the first service is service data through the first transmission protocol and the first transmission parameter, the method further includes:
receiving a service demand parameter sent by an application layer, wherein the service demand parameter is a parameter required when the first service provided by the application layer is in a normal state;
obtaining a threshold parameter from the service demand parameter;
and registering a key event to a related layer based on the threshold parameter, wherein the key event is used for reporting transmission state information to a transmission service layer when the transmission parameter of the related layer exceeds the threshold parameter, and the related layer at least comprises a transmission layer.
Optionally, before the transmission service layer receives the transmission status information, the method further includes:
and sending the reporting period to a related layer, so that the related layer reports the transmission state information to the transmission service layer every reporting period, wherein the related layer at least comprises the transmission layer.
Optionally, before the transmission service layer receives the transmission status information, the method further includes:
and when the first transmission connection of the related layer for transmitting the service data is disconnected, reporting the transmission state information to the transmission service layer.
Optionally, determining a second transmission protocol and a second transmission parameter based on the transmission status information includes:
acquiring transmission delay and packet loss rate from the transmission state information;
determining the transmission state of a relevant layer based on the transmission delay and the packet loss rate;
determining the service type of the first service and the network type of the network which is currently connected with the network layer;
and determining a second transmission protocol and a second transmission parameter based on the transmission time delay, the packet loss rate, the transmission state, the service type and the network type.
Optionally, determining the transmission state of the relevant layer based on the transmission delay and the packet loss rate includes:
when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate, determining that the transmission state of the relevant layer is an overload state;
when the transmission delay is less than or equal to the second designated time delay and the packet loss rate is less than or equal to the second designated packet loss rate, determining that the transmission state of the related layer is a light load state;
and when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate, determining that the transmission state of the related layer is a normal state.
Optionally, determining a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss ratio, the transmission state, the service type, and the network type, includes:
determining a second transmission protocol based on the service type and the network type;
and determining a second transmission parameter based on the transmission state, the transmission time delay and the packet loss rate.
Optionally, the method further comprises: storing a second transmission protocol and a second transmission parameter;
the method for transmitting, by the transport service layer, the second transport protocol and the second transport parameter to the transport layer, so that the transport layer transmits subsequent service data of the first service based on the first transport protocol and the second transport parameter includes:
when the transport layer re-establishes the second transport connection for transporting the service data, the transport parameters of the transport layer are configured as the second transport parameters, and the transport protocol of the transport layer is configured as the second transport protocol.
All the above optional technical solutions can be combined arbitrarily to form an optional embodiment of the present invention, which is not described in detail herein.
Fig. 3 is a flowchart of a service data transmission method according to an embodiment of the present invention. Referring to fig. 3, the method includes:
step 301: in the process that a transport layer transmits service data of a first service through a first transport protocol and first transport parameters, the transport service layer receives transport state information, the transport state information at least comprises transport layer state information, and the first transport protocol and the first transport parameters are transport protocols and transport parameters currently configured to the transport layer.
When the terminal uses services such as video communication, video on demand, web browsing, and the like, the terminal needs to transmit service data through a network in order to obtain data required by the services, and the service data is affected by a change in a state of a transport layer during transmission, for example, when a transport layer is congested, problems such as data packet loss, data packet transmission delay, and the like may be caused.
In addition, in the process of transmitting service data, not only the transmission state of the transmission layer may affect the service data transmission, but also the network state of the network layer may also affect the service data transmission, for example, when a network congestion phenomenon occurs in the network layer, problems such as data packet loss and data packet transmission delay may also be caused.
Further, before the transport service layer receives the transmission state information, the transport service layer may enable the transport layer or the network layer to report the current transmission state information to the transport service layer through the following three methods (1) - (3), as described below.
(1) The transmission service layer receives a service demand parameter sent by an application layer, the service demand parameter is a parameter required when a first service provided by the application layer is in a normal state, a threshold parameter is obtained from the service demand parameter, a key event is registered to a related layer based on the threshold parameter, the key event is used for reporting the transmission state information to the transmission service layer when the transmission parameter of the related layer exceeds the threshold parameter, and the related layer at least comprises a transmission layer.
Since the service requirement parameter includes a lowest threshold parameter that can be tolerated when the first service is in a normal state, in a service data transmission process, if a transmission parameter for transmitting information exceeds the lowest threshold parameter, various problems may occur in the process of performing the first service by the terminal, so that the first service cannot be performed normally, therefore, in order to ensure normal use of the first service, after the transmission service layer receives the service requirement parameter sent by the application layer, the threshold parameter may be obtained from the service requirement parameter, based on the threshold parameter, the transmission service layer registers a key event to a related layer, and after the key event is registered successfully, when the transmission parameter for transmitting service data exceeds the threshold parameter, the related layer reports current transmission state information to the transmission service layer.
The service requirement parameter may include a plurality of parameters, and when the transmission service layer acquires the threshold parameter from the service requirement parameter, the transmission service layer may determine a service identifier of the first service currently provided by the application layer, acquire a corresponding parameter identifier from a correspondence between the stored service identifier and the parameter identifier based on the service identifier of the service currently provided by the application layer, acquire a corresponding parameter from the plurality of parameters included in the service requirement parameter based on the acquired parameter identifier, and determine the acquired parameter as the threshold parameter.
In the service data transmission process, some request messages may be transmitted between the application layer and the transport service layer, where the request messages may carry a service identifier of a first service currently provided by the application layer, and therefore, the transport service layer may obtain the service identifier of the service currently provided by the application layer from the request messages, for example, the request message may be a connection establishment message.
It should be noted that the service identifier is used to uniquely identify the first service currently provided by the application layer, and the service identifier may be a service name, a service number, and the like of the first service currently provided by the application layer.
It should be further noted that the parameter identifier is used to uniquely identify the parameter, and the parameter identifier may be a name of the parameter, an expression symbol of the parameter, an english abbreviation of the parameter, and the like, for example, an identifier of transmission delay included in the service requirement parameter may be RTT, an identifier of packet loss rate may be ρ, an identifier of a congestion window is CWND, and an identifier of a network bandwidth may be BW, and the like, which is not specifically limited in this embodiment of the present invention.
For example, a service identifier of a service currently provided by the application layer is ID1, the transmission service layer obtains corresponding parameter identifiers RTT and ρ from a correspondence between the service identifier and the parameter identifier shown in table 1 below based on the service identifier ID1, the transmission service layer obtains a parameter corresponding to transmission delay RTT from the service requirement parameter of 50ms and a parameter corresponding to packet loss ρ of 0.04% based on the parameter identifiers RTT and ρ, and the transmission service layer determines transmission delay RTT of 50ms and packet loss ρ of 0.04% as threshold parameters.
TABLE 1
In the embodiment of the present invention, only the correspondence between the service identifier and the parameter identifier shown in table 1 is taken as an example for description, and table 1 does not limit the embodiment of the present invention.
For example, the service is a video on demand service, the service requirement parameters sent by the application layer and received by the transmission service layer include transmission delay, packet loss rate, congestion window at the sending end, maximum transmission unit and throughput rate, etc., the threshold parameters obtained by the transmission service layer from the service requirement parameters are transmission delay and packet loss rate, the transmission delay is 50ms, the packet loss rate is 0.04%, and based on the transmission delay of 50ms and the packet loss rate of 0.04%, the transmission service layer registers a key event to the relevant layer, after the key event is successfully registered, if the current transmission delay of the relevant layer in the service data transmission process is 60ms, the current transmission delay of 60ms is greater than the transmission delay of 50ms in the threshold parameters, so that the relevant layer reports the current transmission state information to the transmission service layer.
(2) And the transmission service layer sends the reporting period to the related layer, so that the related layer reports the transmission state information to the transmission service layer every other reporting period.
In order to ensure that the service is in a normal state, that is, to ensure that the service data transmission of the transmission layer is normally performed, the transmission service layer may also periodically obtain the transmission state information of the relevant layer, so that the service data transmission of the transmission layer may be monitored in real time, and no excessive burden may be brought to the relevant layer. Therefore, the transmission service layer can send the reporting period to the related layer, so that the related layer reports the transmission state information to the transmission service layer every reporting period.
It should be noted that the reporting period may be set in advance, for example, the reporting period is 5min, 10min, 30min, and the like, which is not limited in this embodiment of the present invention.
For example, the reporting period is 10min, and the transmission service layer sends the reporting period of 10min to the relevant layer, so that the relevant layer sends the transmission state information to the transmission service layer every 10 min.
(3) And when the first transmission connection of the related layer for transmitting the service data is disconnected, reporting the transmission state information to the transmission service layer.
Before service data transmission, a transmission service layer needs to establish a first transmission connection with a server through a relevant layer and perform service data transmission through the first transmission connection, and when the first transmission connection for performing service data transmission by the relevant layer is disconnected, an application layer cannot acquire data required by a currently provided service, so that normal operation of the service is influenced.
It should be noted that, in the embodiment of the present invention, since the related layer at least includes the transport layer, certainly, in order to further improve the efficiency of service data transmission, the related layer may further include the network layer, and therefore, the transport service layer may obtain the transport layer state information by using the three methods, and certainly, the transport service layer may also obtain the transport layer state information and the network layer state information by using the three methods at the same time, that is, the transport service layer may obtain at least the transport layer state information, which is not specifically limited in this embodiment of the present invention.
Step 302: and acquiring the transmission delay and the packet loss rate from the transmission state information, and determining the transmission state of the relevant layer based on the transmission delay and the packet loss rate.
When the transmission service layer receives the transmission state information, in order to determine the transmission state of the current service data transmission and timely adjust the process of the service data transmission based on the transmission state to ensure the normal operation of the service data transmission, therefore, the transmission service layer can obtain the transmission delay and the packet loss rate from the transmission state information and determine the transmission state of the relevant layer based on the transmission delay and the packet loss rate.
Wherein, the operation of determining the transmission state of the relevant layer by the transmission service layer based on the transmission delay and the packet loss rate may be: when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate, determining that the transmission state of the relevant layer is an overload state; when the transmission delay is less than or equal to the second designated time delay and the packet loss rate is less than or equal to the second designated packet loss rate, determining that the transmission state of the related layer is a light load state; and when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate, determining that the transmission state of the related layer is a normal state.
It should be noted that the first specified time delay, the second specified time delay, the first specified packet loss rate, and the second specified packet loss rate may be set in advance, and the first specified time delay is greater than the second specified time delay, and the first specified packet loss rate is greater than the second specified packet loss rate, for example, the first specified time delay is 50ms, 55ms, and the like, the second specified time delay is 10ms, 20ms, and the like, the first specified packet loss rate is 0.04%, 0.05%, and the second specified packet loss rate is 0.01%, and the embodiment of the present invention is not limited specifically to this.
For example, the first specified time delay is 50ms, the second specified time delay is 10ms, the first specified packet loss rate is 0.04%, and the second specified packet loss rate is 0.01%, the transmission service layer obtains, from the transmission state information, a transmission time delay of 60ms and a packet loss rate of 0.06%, and since the transmission time delay of 60ms is greater than the first specified time delay of 50ms and the packet loss rate of 0.06% is greater than the first specified packet loss rate of 0.04%, the transmission service layer determines that the transmission state of the relevant layer is an overload state.
It should be noted that, since the transport service layer can at least obtain the transport layer status information, therefore, when the transport state information includes transport layer state information, the transport service layer may determine, from the transport layer state information, acquiring the transmission delay and the packet loss rate of the transmission layer, determining the transmission state of the transmission layer based on the transmission delay and the packet loss rate of the transmission layer, and when the transmission state information includes not only the transport layer state information but also the network layer state information, the transport service layer can not only obtain the transmission delay and the packet loss rate of the transport layer from the transport layer state information, but also determine the transmission state of the transport layer based on the transmission delay and the packet loss rate of the transport layer, meanwhile, the transmission delay and the packet loss rate of the network layer can be obtained from the network layer state information, and the transmission state of the network layer is determined based on the transmission delay and the packet loss rate of the network layer.
Step 303: and determining the service type of the first service and the network type of the network which is currently connected with the network layer.
In order to adjust the service data transmission process more accurately and specifically to ensure smooth service data transmission, improve the speed and quality of service data transmission, and enable the first service currently provided by the application layer to be in a normal state, the service transmission layer needs to determine the service type to which the first service belongs and the network type of the network currently connected by the network layer.
The operation of the transport service layer determining the service type to which the first service belongs may be: the transmission service layer acquires a service identifier of the first service, acquires a corresponding service type from a corresponding relation between the stored service identifier and the service type based on the service identifier, and determines the acquired service type as the service type to which the service currently provided by the application layer belongs.
For example, the transport service layer obtains the service identifier ID1 of the first service, and based on the service identifier ID1, the transport service layer obtains the corresponding service type as type 1 from the correspondence between the service identifier and the service type shown in table 2 below, and determines that the type 1 is the service type to which the first service belongs.
TABLE 2
In the embodiment of the present invention, only the correspondence between the service identifier and the service type shown in table 2 is taken as an example for description, and table 2 does not limit the embodiment of the present invention.
When the transmission service layer determines the network type of the network currently connected to the network layer, the transmission service layer may directly determine the network type of the network currently connected to the network layer based on the network currently connected to the terminal, may obtain a plurality of continuous transmission delays and packet loss rates from transmission state information continuously received for a plurality of times, and determines the network type of the network currently connected to the network layer based on the plurality of continuous transmission delays and packet loss rates.
The operation of determining, by the transmission service layer, the network type of the network currently connected to the network layer based on the multiple continuous transmission delays and packet loss rates may be: the transmission service layer obtains a maximum transmission delay value and a minimum transmission delay value from the plurality of continuous transmission delays, determines delay variation of the plurality of continuous transmission delays based on the maximum transmission delay value and the minimum transmission delay value, obtains a maximum packet loss rate value and a minimum packet loss rate value from the plurality of continuous packet loss rates, determines packet loss rate variation of the plurality of continuous packet loss rates based on the maximum packet loss rate value and the minimum packet loss rate value, determines the network type of the network currently connected to the network layer as a wireless network when the plurality of continuous transmission delays are all larger than a first threshold value, the delay variation is smaller than a second threshold value and the packet loss rate variation is smaller than a third threshold value, otherwise determines the network type of the network currently connected to the network layer as a non-wireless network, that is, when the obtained plurality of continuous transmission delays are all larger and packet loss happens occasionally, the transport service layer may determine that the network type of the network currently connected to the network layer is a wireless network, and otherwise, determine that the network type of the network currently connected to the network layer is a non-wireless network.
It should be noted that the first threshold, the second threshold, and the third threshold may be set in advance, for example, the first threshold is 30ms and 35ms, the second threshold is 5ms and 7ms, and the third threshold is 0.015% and 0.002%, which is not limited in this embodiment of the present invention.
In addition, the transmission service layer may determine the network type of the network currently connected to the network layer based on the multiple continuous transmission delays and packet loss rates, and certainly, in practical applications, the transmission service layer may also determine the network type of the network currently connected to the network layer based on the multiple continuous transmission delays and packet loss rates and other multiple continuous parameters, which is not specifically limited in this embodiment of the present invention.
Step 304: and determining a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss rate, the transmission state, the service type and the network type.
In order to ensure that a first service currently provided by an application layer can be in a normal state and avoid transmission congestion, data packet loss and other phenomena occurring in a service data transmission process, the transmission service layer needs to determine a second transmission protocol parameter and a second transmission protocol parameter based on the transmission delay, the packet loss rate, the transmission state, the service type and the network type. The operation of determining the second transmission and the second transmission protocol parameter based on the transmission delay, the packet loss ratio, the transmission state, the service type and the network type may be: determining a second transport protocol based on the service type and the network type; and determining a second transmission parameter based on the transmission delay, the packet loss rate and the transmission state.
When the transport service layer determines the second transport protocol based on the service type and the network type, the transport service layer may obtain the corresponding transport protocol from the stored correspondence between the service type, the network type, and the transport protocol based on the service type and the network type, and determine the obtained transport protocol as the second transport protocol.
For example, the network type is a wireless network, the transport service layer may obtain, based on the service type being type 1 and the wireless network, from the correspondence between the service type, the network type, and the transport protocol shown in table 3 below, that the corresponding transport protocol is protocol 1, and the transport service layer determines that the protocol 1 is the second transport protocol.
TABLE 3
It should be noted that, in the embodiment of the present invention, only the correspondence between the service type, the network type, and the transmission protocol shown in table 3 is taken as an example for description, and table 3 does not limit the embodiment of the present invention.
When the transmission service layer determines the second transmission parameter based on the transmission delay, the packet loss rate and the transmission state, if the transmission state is a normal state, the transmission service layer determines that the service data transmission is in the normal state, can fully utilize resources provided by a network layer and the transmission layer, and does not have the phenomena of congestion, packet loss and the like, so that the transmission service layer can directly determine the first transmission parameter as the second transmission parameter; if the transmission state is an abnormal state, that is, the transmission state is an overload state or a light load state, because the transmission parameters configured to the transmission layer are different for different transmission protocols, the transmission protocols can be divided into reliable transmission protocols and unreliable transmission protocols according to the reliability of service data transmission, for example, the TCP protocol is a typical reliable transmission protocol, and the UDP protocol is a typical unreliable transmission protocol. Therefore, for whether the second transmission protocol is a reliable transmission protocol, the transmission service layer determines the second transmission parameter based on the transmission delay and the packet loss rate, which includes two cases, as described below.
In the first case, when the second transmission protocol is an unreliable transmission protocol, the transmission service layer determines, based on the transmission delay and the packet loss ratio, a delay range to which the transmission delay belongs and a packet loss ratio range to which the packet loss ratio belongs, and obtains, based on the delay range to which the transmission delay belongs and the packet loss ratio range to which the packet loss ratio belongs, corresponding transmission parameters from corresponding relations among the stored delay range, packet loss ratio range, and transmission parameters, and determines the obtained transmission parameters as the second transmission parameters.
Based on the transmission delay and the packet loss rate, the operation of determining the delay range to which the transmission delay belongs and the packet loss rate range to which the packet loss rate belongs by the transmission service layer may be: the transmission service layer obtains a plurality of time delay ranges and a plurality of packet loss rate ranges which are included in the corresponding relation among the stored time delay ranges, the stored packet loss rate ranges and the transmission parameters, and for each time delay range in the plurality of time delay ranges, when the transmission time delay is larger than the minimum value of the time delay range and smaller than the maximum value of the time delay range, the transmission service layer determines the time delay range as the time delay range to which the transmission time delay belongs; similarly, for each packet loss rate range in the multiple packet loss rate ranges, when the packet loss rate is greater than the minimum value of the packet loss rate range and smaller than the maximum value of the packet loss rate range, the transmission service layer determines the packet loss rate range as the packet loss rate range to which the packet loss rate belongs.
Further, when the transmission state is an overload state, the transmission service layer determines that congestion occurs in service data transmission and the phenomenon of data packet loss is accompanied, and by adjusting the first transmission parameter, the congestion of the transmission layer and the phenomenon of data packet loss can be relieved, and the service currently provided by the application layer can be ensured to be in a normal state; if the transmission state is a light load state, the transmission service layer determines that fewer data packets are transmitted in the service data transmission process, the resources provided by the network layer and the transmission layer are not fully utilized, and the service currently provided by the application layer can be in a better state by adjusting the first transmission parameter, so that the service quality of the service is improved.
For example, the transmission status is an overload status, the transmission delay is 60ms, the packet loss rate is 0.06%, the transport service layer determines that congestion occurs in the service data transmission process of the transport layer and a phenomenon of data packet loss is accompanied, in order to slow down the loss of the data packet and ensure that the service currently provided by the application layer can be in a normal state, the service transmission layer determines the delay range of the transmission delay 60ms to be (50, 65) based on the transmission delay 60ms and the packet loss rate 0.06%, the packet loss ratio range to which the packet loss ratio of 0.06% belongs is (0.04%, 0.08%), so that the transport service layer, based on the delay range (50, 65) and the packet loss ratio range (0.04%, 0.08%), from the correspondence among the delay range, the packet loss ratio range and the transmission parameters as shown in the following table 4, and acquiring the corresponding transmission parameter as parameter 2, and determining the parameter 2 as a second transmission parameter.
TABLE 4
It should be noted that, in the embodiment of the present invention, only the correspondence between the delay range, the packet loss ratio range, and the transmission parameter shown in table 4 is taken as an example for description, and table 4 does not limit the embodiment of the present invention.
In a second case, when the second transmission protocol is a reliable transmission protocol, the transmission service layer determines, based on the transmission delay and the packet loss ratio, a delay range to which the transmission delay belongs and a packet loss ratio range to which the packet loss ratio belongs, and obtains, based on the delay range to which the transmission delay belongs and the packet loss ratio range to which the packet loss ratio belongs, a corresponding congestion algorithm from a correspondence between the stored delay range, packet loss ratio range, and congestion algorithm, and the transmission service layer determines the second transmission parameter based on the congestion algorithm.
Wherein, the transmission service layer determines, based on the transmission delay and the packet loss ratio, that a delay range to which the transmission delay belongs and a packet loss ratio range to which the packet loss ratio belongs are similar to those in the first case, and details are not repeated here in the embodiment of the present invention.
In addition, when the transport service layer determines the second transmission parameter based on the congestion algorithm, the transport service layer may obtain a corresponding adjustment ratio from a stored correspondence between the congestion algorithm and the adjustment ratio based on the congestion algorithm due to different congestion algorithms corresponding to different adjustment ratios, and multiply the adjustment ratio with the first transmission parameter to obtain the second transmission parameter.
For example, the second transmission protocol is a reliable transmission protocol, the transmission service layer determines that the transmission delay range of 60ms is (50, 65) based on the transmission delay of 60ms and the packet loss rate of 0.06%, the packet loss ratio range to which the packet loss ratio of 0.06% belongs is (0.04%, 0.08%), so that the transport service layer, based on the delay range (50, 65) and the packet loss ratio range (0.04%, 0.08%), from the correspondence between the delay range, the packet loss ratio range and the congestion algorithm as shown in the following table 5, the corresponding congestion algorithm is obtained as algorithm 2, and based on this algorithm 2, from the corresponding relationship between the congestion algorithm and the adjustment ratio as shown in table 6 below, and acquiring a corresponding adjustment proportion as proportion 2, and multiplying each parameter included in the first transmission parameter by the proportion 2 to adjust based on the proportion 2 to obtain a second transmission parameter.
TABLE 5
It should be noted that, in the embodiment of the present invention, only the correspondence between the delay range, the packet loss ratio range, and the congestion algorithm shown in table 5 is taken as an example for description, and table 5 does not limit the embodiment of the present invention.
TABLE 6
Congestion algorithm Adjusting the ratio
Algorithm 1 Ratio 1
Algorithm 2 Ratio 2
Algorithm 3 Ratio 3
…… ……
In the embodiment of the present invention, only the correspondence between the congestion algorithm and the adjustment ratio shown in table 6 is taken as an example for description, and table 6 does not limit the embodiment of the present invention.
Further, since the transmission status information may include not only the transport layer status information but also the network layer status information, the transport service layer may not only obtain the second transmission protocol and the second transmission protocol parameter through the above step 302 and 304 based on the transport layer status information, but also comprehensively determine the second transmission protocol and the second transmission protocol parameter based on the transport layer status information and the network layer status information, so that the adjusted second transmission protocol and the second transmission parameter may be more accurate, thereby ensuring that the service data transmission of the transport layer is performed smoothly, and improving the speed and quality of the service data transmission.
That is, in the embodiment of the present invention, determining, by the transport service layer, the second transport protocol and the second transport protocol parameter includes two methods: in the first method, a transport service layer determines a second transport protocol and a second transport protocol parameter based on transport layer state information; in a second method, a transport service layer determines a second transport protocol and second transport protocol parameters based on transport layer state information and network layer state information.
Step 305: and sending the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits the subsequent service data of the first service based on the second transmission protocol and the second transmission parameter.
When the transmission service layer determines the second transmission protocol and the second transmission parameter, the transmission service layer sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer performs service data transmission based on the second transmission protocol and the second transmission parameter, thereby realizing control of the service data transmission process, avoiding congestion, data packet loss and other phenomena occurring in the transmission layer or the network layer, enabling the service data transmission to fully utilize resources of the transmission layer and the network layer, improving the speed and quality of service data transmission, and simultaneously ensuring that the service currently provided by the application layer is in a normal state.
Further, after the transport service layer sends the second transport protocol and the second transport parameter to the transport layer, so that the transport layer performs service data transmission based on the second transport protocol and the second transport parameter, in order to enable next service data transmission to enter a normal state faster, so as to reduce the time for adjusting the transport protocol and the transport parameter of the transport layer, the transport service layer may store the second transport protocol and the second transport parameter, and when the transport layer reestablishes the second transport connection for transporting the service data, the transport service layer may directly configure the transport protocol and the transport parameter of the transport layer as the second transport protocol and the second transport parameter.
For example, the second transmission protocol is a TCP protocol, the second transmission parameter includes parameters such as a congestion window, a maximum transmission unit, a buffer, and a transmission bandwidth, and the congestion window is 20kb/s, the maximum transmission unit is 110bit, the buffer is 3M, and the transmission bandwidth is 5M/s, and the like, the transport service layer stores the congestion window 20kb/s, the maximum transmission unit 110bit, the buffer 3M, and the transmission bandwidth 5M/s, which are included in the second transmission protocol TCP protocol and the second transmission parameter, and when the transport layer reestablishes the second transmission connection for transmitting the service data, the transport service layer may directly configure the transmission protocol of the transport layer as the TCP protocol, configure the congestion window included in the transmission parameter as 20kb/s, the maximum transmission unit as 110bit, the buffer as 3M, and the transmission bandwidth as 5M/s, and the like, so that the service data transmission can enter the normal state more quickly.
In the embodiment of the invention, when a transmission layer transmits service data of a first service through a first transmission protocol and a first transmission parameter, the transmission service layer receives transmission state information, the transmission state information at least comprises the transmission layer state information, the transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information, and sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter, thereby transmitting the service data of the first service by using the more efficient second transmission protocol, avoiding the phenomena of congestion, data packet loss and the like in the service data transmission process, and improving the speed and quality of service data transmission.
Fig. 4 is a schematic structural diagram of a service data transmission apparatus according to an embodiment of the present invention, and referring to fig. 4, the apparatus includes: a first receiving module 401, a determining module 402, a first sending module 403.
A first receiving module 401, configured to, in a process that a transport layer transmits, through a first transport protocol and a first transport parameter, that a first service is service data, receive, by the transport service layer, transport state information, where the transport state information at least includes transport layer state information, and the first transport protocol and the first transport parameter are a transport protocol and a transport parameter currently configured for the transport layer;
a determining module 402, configured to determine, by the transport service layer, a second transport protocol and a second transport parameter based on the transport status information;
a first sending module 403, configured to send, by the transport service layer, the second transmission protocol and the second transmission parameter to a transport layer, so that the transport layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter.
Optionally, the transmission status information further includes network layer status information.
Optionally, referring to fig. 5, the apparatus further includes a second receiving module 404, an obtaining module 405, and a registering module 406.
A second receiving module 404, configured to receive a service requirement parameter sent by an application layer, where the service requirement parameter is a parameter required when a first service provided by the application layer is in a normal state;
an obtaining module 405, configured to obtain a threshold parameter from the service requirement parameter;
a registering module 406, configured to register a key event with a relevant layer based on the threshold parameter, where the key event is used to report transmission status information to a transmission service layer when a transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant layer at least includes the transmission layer.
Optionally, referring to fig. 6, the apparatus further includes a second sending module 407.
A second sending module 407, configured to send the reporting period to the relevant layer, so that the relevant layer reports the transmission state information to the transmission service layer every reporting period, where the relevant layer at least includes the transmission layer.
Optionally, referring to fig. 7, the apparatus further includes a reporting module 408.
The reporting module 408 is configured to report the transmission state information to the transmission service layer when the first transmission connection for transmitting the service data by the relevant layer is disconnected.
Alternatively, referring to fig. 8, the determining module 402 includes an acquiring unit 4021, a first determining unit 4022, a second determining unit 4023, and a third determining unit 4024.
An obtaining unit 4021, configured to obtain a transmission delay and a packet loss rate from the transmission state information;
a first determining unit 4022, configured to determine a transmission state of a relevant layer based on the transmission delay and the packet loss rate;
a second determining unit 4023, configured to determine a service type to which the first service belongs and a network type of a network to which a network layer is currently connected;
a third determining unit 4024, configured to determine a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss ratio, the transmission state, the service type, and the network type.
Alternatively, referring to fig. 9, the first determination unit 4022 includes a first determination subunit 40221, a second determination subunit 40222, and a third determination subunit 40223.
A first determining subunit 40221, configured to determine that a transmission state of a relevant layer is an overload state when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate;
a second determining subunit 40222, configured to determine that the transmission state of the relevant layer is a light load state when the transmission delay is less than or equal to the second specified time delay and the packet loss rate is less than or equal to the second specified packet loss rate;
a third determining subunit 40223, configured to determine that the transmission state of the relevant layer is a normal state when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate.
Alternatively, referring to fig. 10, the third determination unit 4024 includes a fourth determination subunit 40241 and a fifth determination subunit 40242.
A fourth determining subunit 40241, configured to determine a second transmission protocol based on the service type and the network type;
a fifth determining subunit 40242, configured to determine the second transmission parameter based on the transmission delay, the packet loss rate, and the transmission state.
Optionally, the apparatus further comprises a memory for storing the second transmission protocol and the second transmission parameters.
The first sending module 403 is specifically configured to configure the transmission parameter of the transport layer as the second transmission parameter and configure the transmission protocol of the transport layer as the second transmission protocol when the transport layer reestablishes the second transmission connection for transmitting the service data.
To sum up, in the embodiment of the present invention, in a process that a transport layer transmits first service, which is service data, through a first transport protocol and a first transport parameter, the transport service layer receives transport state information, where the transport state information at least includes transport layer state information, and the transport service layer determines a second transport protocol and a second transport parameter based on the transport state information, and sends the second transport protocol and the second transport parameter to the transport layer, so that the transport layer transmits subsequent service data of the first service based on the second transport protocol and the second transport parameter, thereby transmitting the service data of the first service by using a more efficient second transport protocol, avoiding phenomena such as congestion and packet loss during service data transmission, and improving speed and quality of service data transmission.
It should be noted that: in the service data transmission device provided in the foregoing embodiment, only the division of the functional modules is illustrated in the foregoing description, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the apparatus for transmitting service data and the method for transmitting service data provided by the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in the method embodiments and are not described herein again.
Referring to fig. 11, an embodiment of the present invention provides a service data transmission device, where the service data transmission device includes: a processor 1101, a memory 1102, a bus 1103, and a communication interface 1108;
the memory 1102 is used for storing computer execution instructions 11021, the processor 1101 is connected with the memory 1102 through the bus 1103, and when the device is operated, the processor 1101 executes the computer execution instructions stored in the memory 1102, so as to make the device execute the service data transmission method shown in fig. 2 or fig. 3.
In the embodiment of the invention, when a transmission service layer receives transmission state information in the process of transmitting service data of a first service by a transmission layer through a first transmission protocol and a first transmission parameter, the transmission state information at least comprises the transmission layer state information, the transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information, and sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter, thereby transmitting the service data of the first service by using the more efficient second transmission protocol, avoiding the phenomena of congestion, data packet loss and the like in the service data transmission process, and improving the speed and quality of service data transmission.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (16)

1. A method for transmitting service data, the method comprising:
in the process that a transmission layer transmits service data of a first service through a first transmission protocol and first transmission parameters, the transmission service layer receives transmission state information, wherein the transmission state information at least comprises the transmission layer state information, and the first transmission protocol and the first transmission parameters are the transmission protocol and the transmission parameters which are currently configured to the transmission layer;
acquiring transmission delay and packet loss rate from the transmission state information;
determining the transmission state of a related layer based on the transmission delay and the packet loss rate;
determining the service type of the first service and the network type of the network which is currently connected with the network layer;
determining a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss rate, the transmission state, the service type and the network type;
and the transmission service layer sends the second transmission protocol and the second transmission parameter to the transmission layer, so that the transmission layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter.
2. The method of claim 1, wherein the transmission state information further comprises network layer state information.
3. The method of claim 1 or 2, wherein before the transmission service layer receives the transmission status information, further comprising:
receiving a service demand parameter sent by an application layer, wherein the service demand parameter is a parameter required when the first service provided by the application layer is in a normal state;
acquiring a threshold parameter from the service demand parameter;
and registering a key event to a related layer based on the threshold parameter, wherein the key event is used for reporting the transmission state information to the transmission service layer when the transmission parameter of the related layer exceeds the threshold parameter, and the related layer at least comprises the transmission layer.
4. The method of claim 1 or 2, wherein before the transmission service layer receives the transmission status information, further comprising:
and sending a reporting period to a related layer, so that the related layer reports the transmission state information to the transmission service layer every other reporting period, wherein the related layer at least comprises the transmission layer.
5. The method of claim 1 or 2, wherein before the transmission service layer receives the transmission status information, further comprising:
and when the first transmission connection of the related layer for transmitting the service data is disconnected, reporting the transmission state information to the transmission service layer.
6. The method of claim 1, wherein the determining the transmission status of the relevant layer based on the transmission delay and the packet loss rate comprises:
when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate, determining that the transmission state of the relevant layer is an overload state;
when the transmission delay is less than or equal to a second designated delay and the packet loss rate is less than or equal to a second designated packet loss rate, determining that the transmission state of the related layer is a light load state;
and when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate, determining that the transmission state of the related layer is a normal state.
7. The method of claim 1 or 6, wherein the determining a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss ratio, the transmission status, the traffic type, and the network type comprises:
determining the second transport protocol based on the traffic type and the network type;
and determining the second transmission parameter based on the transmission delay, the packet loss rate and the transmission state.
8. The method of claim 1, 2 or 6, further comprising:
storing the second transmission protocol and the second transmission parameters;
the sending, by the transport service layer, the second transport protocol and the second transport parameter to the transport layer, so that the transport layer transmits subsequent service data of the first service based on the second transport protocol and the second transport parameter, includes: when the transport layer reestablishes a second transport connection for transporting the service data, configuring the transport parameters of the transport layer as the second transport parameters, and configuring the transport protocol of the transport layer as the second transport protocol.
9. An apparatus for transmitting service data, the apparatus comprising:
a first receiving module, configured to receive transmission status information in a process that a transport layer transmits, through a first transmission protocol and a first transmission parameter, that a first service is service data, where the transmission status information at least includes transport layer status information, and the first transmission protocol and the first transmission parameter are a transmission protocol and a transmission parameter currently configured for the transport layer;
a determination module including an acquisition unit, a first determination unit, a second determination unit, and a third determination unit,
the obtaining unit is configured to obtain a transmission delay and a packet loss rate from the transmission state information;
the first determining unit is configured to determine a transmission state of a relevant layer based on the transmission delay and the packet loss rate;
the second determining unit is configured to determine a service type to which the first service belongs and a network type of a network to which a network layer is currently connected;
the third determining unit is configured to determine, based on the transmission delay, the packet loss ratio, the transmission state, the service type, and the network type, a second transmission protocol and a second transmission parameter:
a first sending module, configured to send the second transmission protocol and the second transmission parameter to the transport layer, so that the transport layer transmits subsequent service data of the first service based on the second transmission protocol and the second transmission parameter.
10. The apparatus of claim 9, wherein the transmission state information further comprises network layer state information.
11. The apparatus of claim 9 or 10, wherein the apparatus further comprises:
a second receiving module, configured to receive a service requirement parameter sent by an application layer, where the service requirement parameter is a parameter required when the first service provided by the application layer is in a normal state;
an obtaining module, configured to obtain a threshold parameter from the service requirement parameter;
a registering module, configured to register a key event with a relevant layer based on the threshold parameter, where the key event is used to report the transmission state information to a transmission service layer when a transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant layer at least includes the transmission layer.
12. The apparatus of claim 9 or 10, wherein the apparatus further comprises:
a second sending module, configured to send a reporting period to a relevant layer, so that the relevant layer reports the transmission state information to a transmission service layer every other reporting period, where the relevant layer at least includes the transmission layer.
13. The apparatus of claim 9 or 10, wherein the apparatus further comprises:
and the reporting module is used for reporting the transmission state information to the transmission service layer when the first transmission connection of the transmission service data of the related layer is disconnected.
14. The apparatus of claim 9, wherein the first determining unit comprises:
a first determining subunit, configured to determine that the transmission state of the relevant layer is an overload state when the transmission delay is greater than or equal to a first specified delay and the packet loss rate is greater than or equal to a first specified packet loss rate;
a second determining subunit, configured to determine that the transmission state of the relevant layer is a light-load state when the transmission delay is less than or equal to a second specified delay and the packet loss rate is less than or equal to a second specified packet loss rate;
a third determining subunit, configured to determine that the transmission state of the relevant layer is a normal state when the transmission delay is smaller than the first specified delay and larger than the second specified delay, or the packet loss rate is smaller than the first specified packet loss rate and larger than the second specified packet loss rate.
15. The apparatus of claim 9 or 14, wherein the third determining unit comprises:
a fourth determining subunit, configured to determine the second transmission protocol based on the service type and the network type;
a fifth determining subunit, configured to determine the second transmission parameter based on the transmission delay, the packet loss ratio, and the transmission state.
16. The apparatus of claim 9, 10 or 14, wherein the apparatus further comprises: a memory for storing the second transmission protocol and the second transmission parameters;
the first sending module is specifically configured to configure a transmission parameter of the transport layer as the second transmission parameter and configure a transmission protocol of the transport layer as the second transmission protocol when the transport layer reestablishes the second transmission connection for transmitting the service data.
CN201510564566.1A 2015-09-07 2015-09-07 Service data transmission method and device Active CN106506434B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510564566.1A CN106506434B (en) 2015-09-07 2015-09-07 Service data transmission method and device
PCT/CN2016/087308 WO2017041569A1 (en) 2015-09-07 2016-06-27 Service data transmission method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510564566.1A CN106506434B (en) 2015-09-07 2015-09-07 Service data transmission method and device

Publications (2)

Publication Number Publication Date
CN106506434A CN106506434A (en) 2017-03-15
CN106506434B true CN106506434B (en) 2019-12-24

Family

ID=58239813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510564566.1A Active CN106506434B (en) 2015-09-07 2015-09-07 Service data transmission method and device

Country Status (2)

Country Link
CN (1) CN106506434B (en)
WO (1) WO2017041569A1 (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158901A (en) * 2011-02-16 2011-08-17 大唐移动通信设备有限公司 Method for performing terminal operation configuration at network side and network side device
CN104349400A (en) * 2013-07-23 2015-02-11 华为技术有限公司 Wireless communication method, wired transmission detection method, and correlation device

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002032051A2 (en) * 2000-10-12 2002-04-18 Signafor, Inc. Advanced switching mechanism for providing high-speed communications with high quality of service
KR100548336B1 (en) * 2003-04-22 2006-02-02 엘지전자 주식회사 Dual band dual mode mobile terminal supporting diverse packet frame modes and supporting method therof
KR100748710B1 (en) * 2006-02-14 2007-08-13 주식회사 엘지데이콤 Network communication service method using tcp translator
CN101364939B (en) * 2007-08-07 2012-08-15 华为技术有限公司 Data packet forwarding method and device, data packet generating device and communication system
CN102045768A (en) * 2009-10-26 2011-05-04 宏碁股份有限公司 Data transmission method, user equipment and system
CN102255898A (en) * 2011-07-05 2011-11-23 上海悠络客电子科技有限公司 Method for ensuring stability of large data stream by tcp (Transmission Control Protocol)/udp (User Datagram Protocol) double-mode communication
CN103078831A (en) * 2011-10-26 2013-05-01 新太科技股份有限公司 Self-adaption method on basis of TCP (Transmission Control Protocol) and UDP (User Datagram Protocol) transmission supported by streaming media
CN103188721B (en) * 2011-12-28 2017-08-04 华为技术有限公司 A kind of data transmission method and device
CN104601521A (en) * 2013-10-30 2015-05-06 中国电信股份有限公司 Method, device and system for dynamically selecting communication transmission protocol

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158901A (en) * 2011-02-16 2011-08-17 大唐移动通信设备有限公司 Method for performing terminal operation configuration at network side and network side device
CN104349400A (en) * 2013-07-23 2015-02-11 华为技术有限公司 Wireless communication method, wired transmission detection method, and correlation device

Also Published As

Publication number Publication date
WO2017041569A1 (en) 2017-03-16
CN106506434A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
Zhang et al. Novel quick start (QS) method for optimization of TCP
US9842013B2 (en) Dynamic adaptive approach for failure detection of node in a cluster
EP3694160A1 (en) Date transmission method, apparatus and device
CN111769998B (en) Method and device for detecting network delay state
US11588703B2 (en) Systems and methods for determining a topology of a network comprising a plurality of intermediary devices and paths
US20210067453A1 (en) Data transmission method and apparatus
US20170027016A1 (en) Communication device, wireless communication device, and communication method
WO2015096149A1 (en) Tcp link configuration method, apparatus and device
CN109617810B (en) Data transmission method and device
Wang et al. TCP congestion control algorithm for heterogeneous Internet
CN105262836A (en) Information push method of server and push information reception method of client
CN113726681B (en) Network congestion control method and network equipment
EP3585013B1 (en) Data transmission method and apparatus
CN106789709B (en) Load balancing method and device
US11218910B2 (en) First node and a second node and methods of operating the same
CN106506434B (en) Service data transmission method and device
CN113347681B (en) Data transmission method and device, storage medium and electronic device
Wang et al. Adaptive congestion control framework and a simple implementation on high bandwidth-delay product networks
US11240164B2 (en) Method for obtaining path information of data packet and device
CN111147386B (en) Method, electronic device and computer readable medium for handling data transmission congestion
CN113612698A (en) Data packet sending method and device
CN112019443A (en) Multi-path data transmission method and device
CN111641698B (en) Data statistical method, system, equipment and storage medium
US9882751B2 (en) Communication system, communication controller, communication control method, and medium
CN116056149B (en) Simplex operation method, device, equipment and medium for IAB host node

Legal Events

Date Code Title Description
C06 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