[go: up one dir, main page]

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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • 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
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种业务数据传输方法及装置,属于互联网技术领域。所述方法包括:在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中,传输业务层接收传输状态信息,该传输状态信息至少包括传输层状态信息,第一传输协议和第一传输参数为当前配置给传输层的传输协议和传输参数;传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数;传输业务层将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据。本发明通过对传输层的传输协议和传输参数进行调整,避免业务数据传输过程中出现拥塞和数据包丢失等现象,提高了业务数据传输的速度和质量。

The invention discloses a service data transmission method and device, belonging to the technical field of the Internet. The method includes: during the process of the transport layer transmitting the service data of the first service through the first transport protocol and the first transport parameters, the transport service layer receives transmission status information, the transmission status information includes at least transport layer status information, the first The transmission protocol and the first transmission parameter are the transmission protocol and transmission parameters currently configured for the transport layer; the transmission service layer determines the second transmission protocol and the second transmission parameter based on the transmission status information; the transmission service layer uses the second transmission protocol and the first The second transmission parameter is sent 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. The invention adjusts the transmission protocol and transmission parameters of the transmission layer to avoid congestion and data packet loss in the process of service data transmission, and improves the speed and quality of service data transmission.

Description

业务数据传输方法及装置Service data transmission method and device

技术领域technical field

本发明涉及互联网技术领域,特别涉及一种业务数据传输方法及装置。The invention relates to the technical field of the Internet, in particular to a service data transmission method and device.

背景技术Background technique

随着互联网技术的快速发展,出现了越来越多诸如计算机、手机、平板电脑等终端,这些终端可以利用互联网进行业务数据传输。当终端使用视频通信、视频点播、网页浏览等业务时,为了获取业务数据,这些终端需要通过互联网进行业务数据传输。With the rapid development of Internet technology, more and more terminals such as computers, mobile phones, and tablet computers have appeared, and these terminals can use the Internet for business data transmission. When terminals use services such as video communication, video-on-demand, and web page browsing, in order to obtain service data, these terminals need to transmit service data through the Internet.

目前,当终端利用互联网进行业务数据传输时,该终端的应用层将拟使用的业务所需的业务需求参数发送给传输业务层(英文:Transport Layer,简称:TAPS),该业务需求参数是指该业务处于正常状态时所需的参数,也即是,该业务处于正常状态时所能容忍的门限参数,该参数可以包括传输时延、丢包率、吞吐率等等,当TAPS接收到该业务需求参数时,基于该业务需求参数,确定该终端的用于传输所述业务的传输协议,并为所述传输协议配置相应的传输参数,之后,该终端的传输层基于该传输协议和传输参数业务数据传输为所述业务建立与通信对端的传输层连接,通过所述传输层连接传输所述业务的业务数据。At present, when a terminal uses the Internet to transmit service data, the application layer of the terminal sends the service requirement parameters required by the service to be used to the transmission service layer (English: Transport Layer, TAPS for short), and the service requirement parameters refer to The parameters required when the service is in a normal state, that is, the threshold parameters that can be tolerated when the service is in a normal state, this parameter may include transmission delay, packet loss rate, throughput rate, etc., when TAPS receives the In the case of service requirement parameters, based on the service requirement parameters, determine the terminal’s transmission protocol for transmitting the service, and configure corresponding transmission parameters for the transmission protocol, and then, the terminal’s transmission layer is based on the transmission protocol and transmission The parameter service data transmission establishes a transport layer connection with the communication peer for the service, and transmits the service data of the service through the transport layer connection.

由于TAPS是基于业务需求参数为该终端的传输层确定传输协议,并配置相应的传输参数,而一旦传输层的传输状态发生变化,或者网络出现拥塞等现象,将会导致被传输的业务数据丢失,从而降低业务数据传输的速度和质量。Since TAPS determines the transport protocol for the transport layer of the terminal based on the service requirement parameters and configures the corresponding transport parameters, once the transport status of the transport layer changes or the network is congested, the transmitted service data will be lost , thereby reducing the speed and quality of business data transmission.

发明内容Contents of the invention

为了解决现有技术的问题,本发明实施例提供了一种业务数据传输方法及装置。所述技术方案如下:In order to solve the problems in the prior art, embodiments of the present invention provide a service data transmission method and device. Described technical scheme is as follows:

第一方面,提供了一种业务数据传输方法,所述方法包括:In a first aspect, a service data transmission method is provided, the method comprising:

在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中,传输业务层接收传输状态信息,所述传输状态信息至少包括传输层状态信息,所述第一传输协议和所述第一传输参数为当前配置给所述传输层的传输协议和传输参数;During the process of the transport layer transmitting the service data of the first service through the first transport protocol and the first transport parameters, the transport service layer receives transmission status information, the transmission status information includes at least transport layer status information, and the first transport protocol and the first transmission parameter is the transmission protocol and transmission parameters currently configured for the transmission layer;

所述传输业务层基于所述传输状态信息,确定第二传输协议和第二传输参数;The transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information;

所述传输业务层将所述第二传输协议和所述第二传输参数发送给所述传输层,使所述传输层基于所述第二传输协议和所述第二传输参数传输所述第一业务的后续业务数据。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 first The follow-up business data of the business.

结合第一方面,在上第一方面的第一种可能的实现方式中,所述传输状态信息还包括网络层状态信息。With reference to the first aspect, in a first possible implementation manner of the above first aspect, the transmission status information further includes network layer status information.

结合第一方面或者第一方面的第一种可能的实现方式,在上第一方面的第二种可能的实现方式中,所述传输业务层接收传输状态信息之前,还包括:With reference to the first aspect or the first possible implementation of the first aspect, in the second possible implementation of the first aspect above, before the transmission service layer receives the transmission status information, it further includes:

接收应用层发送的业务需求参数,所述业务需求参数为所述应用层所提供的所述第一业务处于正常状态时所需的参数;receiving a service requirement parameter sent by the 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;

从所述业务需求参数中,获取门限参数;Obtaining a threshold parameter from the service requirement parameter;

基于所述门限参数,向相关层注册关键事件,所述关键事件用于当所述相关层的传输参数超过所述门限参数时,向所述传输业务层上报所述传输状态信息,所述相关层至少包括所述传输层。Based on the threshold parameter, register a key event with the relevant layer, and the key event is used to report the transmission status information to the transmission service layer when the transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant The layers include at least the transport layer.

结合第一方面或者第一方面的第一种可能的实现方式,在上第一方面的第三种可能的实现方式中,所述传输业务层接收传输状态信息之前,还包括:With reference to the first aspect or the first possible implementation of the first aspect, in the third possible implementation of the first aspect above, before the transmission service layer receives the transmission status information, it further includes:

将上报周期发送给所述相关层,使所述相关层每隔所述上报周期向所述传输业务层上报所述传输状态信息,所述相关层至少包括所述传输层。Sending the reporting period to the relevant layer, so that the relevant layer reports the transmission status information to the transmission service layer every reporting period, and the relevant layer includes at least the transmission layer.

结合第一方面或者第一方面的第一种可能的实现方式,在上第一方面的第四种可能的实现方式中,所述传输业务层接收传输状态信息之前,还包括:With reference to the first aspect or the first possible implementation of the first aspect, in the fourth possible implementation of the first aspect above, before the transmission service layer receives the transmission status information, it further includes:

当所述相关层传输业务数据的第一传输连接断开时,向所述传输业务层上报所述传输状态信息。Reporting the transmission status information to the transmission service layer when the first transmission connection for the transmission service data of the relevant layer is disconnected.

结合第一方面或者第一方面的第一种可能的实现方式,在上第一方面的第五种可能的实现方式中,所述传输业务层基于所述传输状态信息,确定第二传输协议和第二传输参数,包括:With reference to the first aspect or the first possible implementation of the first aspect, in the fifth possible implementation of the first aspect above, the transmission service layer determines the second transmission protocol and Second transfer parameters, including:

从所述传输状态信息中,获取传输时延和丢包率;Obtain the 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 to which the first service belongs and the network type of the network to which the network layer is currently connected;

基于所述传输时延、所述丢包率、所述传输状态、所述业务类型和所述网络类型,确定第二传输协议和第二传输参数。Based on the transmission delay, the packet loss rate, the transmission status, the service type and the network type, determine a second transmission protocol and a second transmission parameter.

结合第一方面的第五种可能的实现方式,在上述第一方面的第六种可能的实现方式中,所述基于所述传输时延和所述丢包率,确定所述相关层的传输状态,包括:With reference to the fifth possible implementation of the first aspect, in the sixth possible implementation of the first aspect above, the determination of the transmission of the relevant layer based on the transmission delay and the packet loss rate status, including:

当所述传输时延大于或等于第一指定时延且所述丢包率大于或等于第一指定丢包率时,确定所述相关层的传输状态为过载状态;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 the first specified packet loss rate, determine that the transmission state of the relevant layer is an overload 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, determine that the transmission state of the relevant layer is a light load state;

当所述传输时延小于所述第一指定时延且大于所述第二指定时延,或者所述丢包率小于所述第一指定丢包率且大于所述第二指定丢包率时,确定所述相关层的传输状态为正常状态。When the transmission delay is less than the first specified delay and greater than the second specified delay, or the packet loss rate is less than the first specified packet loss rate and greater than the second specified packet loss rate , determining that the transmission state of the relevant layer is a normal state.

结合第一方面的第五种可能的实现方式或者第一方面的第六种可能的实现方式,在上第一方面的第七种可能的实现方式中,所述基于所述传输时延、所述丢包率、所述传输状态、所述业务类型和所述网络类型,确定第二传输协议和第二传输参数,包括:With reference to the fifth possible implementation of the first aspect or the sixth possible implementation of the first aspect, in the seventh possible implementation of the first aspect above, the transmission delay based on the The packet loss rate, the transmission status, the service type and the network type are used to determine a second transmission protocol and a second transmission parameter, including:

基于所述业务类型和所述网络类型,确定所述第二传输协议;determining the second transmission protocol based on the service type and the network type;

基于所述传输时延、所述丢包率和所述传输状态,确定所述第二传输参数。Determine the second transmission parameter based on the transmission delay, the packet loss rate and the transmission status.

结合第一方面至第一方面的第七种可能的实现方式中任一种可能的实现方式,在上述第一方面的第八种可能的实现方式中,所述方法还包括:存储所述第二传输协议和所述第二传输参数;With reference to any possible implementation manner of the first aspect to the seventh possible implementation manner of the first aspect, in the eighth possible implementation manner of the first aspect above, the method further includes: storing the two transmission protocols and said second transmission parameters;

所述传输业务层将所述第二传输协议和第二传输参数发送给所述传输层,使所述传输层基于所述第一传输协议和所述第二传输参数传输所述第一业务的后续业务数据,包括:当所述传输层重新建立传输业务数据的第二传输连接时,将所述传输层的传输参数配置为所述第二传输参数,以及将所述传输层的传输协议配置为所述第二传输协议。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 information of the first service based on the first transmission protocol and the second transmission parameters Subsequent service data, including: when the transport layer re-establishes the second transport connection for transporting service data, configuring the transport parameters of the transport layer as the second transport parameters, and configuring the transport protocol of the transport layer is the second transmission protocol.

第二方面,提供了一种业务数据传输装置,所述装置包括:In a second aspect, a service data transmission device is provided, and the device includes:

第一接收模块,用于在传输层通过第一传输协议和第一传输参数传输第一业务是业务数据的过程中,接收传输状态信息,所述传输状态信息至少包括传输层状态信息,所述第一传输协议和所述第一传输参数为当前配置给所述传输层的传输协议和传输参数;The first receiving module is configured to receive transmission status information during the process of the transmission layer transmitting the first service is service data through the first transmission protocol and the first transmission parameter, the transmission status information at least including the transmission layer status information, the The first transmission protocol and the first transmission parameter are the transmission protocol and transmission parameters currently configured for the transmission layer;

确定模块,用于基于所述传输状态信息,确定第二传输协议和第二传输参数;A determining module, configured to determine a second transmission protocol and a second transmission parameter based on the transmission state information;

第一发送模块,用于将所述第二传输协议和所述第二传输参数发送给所述传输层,使所述传输层基于所述第二传输协议和所述第二传输参数传输所述第一业务的后续业务数据。A first sending module, configured to send the second transmission protocol and the second transmission parameters to the transmission layer, so that the transmission layer transmits the transmission layer based on the second transmission protocol and the second transmission parameters Subsequent service data of the first service.

结合第二方面,在上述第二方面的第一种可能的实现方式中,所述传输状态信息还包括网络层状态信息。With reference to the second aspect, in the first possible implementation manner of the foregoing 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 the second possible implementation manner of the second aspect above, the device further includes:

第二接收模块,用于接收应用层发送的业务需求参数,所述业务需求参数为所述应用层所提供的所述第一业务处于正常状态时所需的参数;The second receiving module is configured to receive a service requirement parameter sent by the 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 acquisition module, configured to acquire threshold parameters from the business requirement parameters;

注册模块,用于基于所述门限参数,向相关层注册关键事件,所述关键事件用于当所述相关层的传输参数超过所述门限参数时,向传输业务层上报所述传输状态信息,所述相关层至少包括所述传输层。A registration module, configured to register a key event with a relevant layer based on the threshold parameter, and the key event is used to report the transmission status information to the transmission service layer when the transmission parameter of the relevant layer exceeds the threshold parameter, The relevant layers include at least the transport layer.

结合第二方面或者第二方面的第一种可能的实现方式,在上述第二方面的第三种可能的实现方式中,所述装置还包括:With reference to the second aspect or the first possible implementation manner of the second aspect, in the third possible implementation manner of the second aspect above, the device further includes:

第二发送模块,用于将上报周期发送给所述相关层,使所述相关层每隔所述上报周期向传输业务层上报所述传输状态信息,所述相关层至少包括所述传输层。The second sending module is configured to send the reporting period to the relevant layer, so that the relevant layer reports the transmission status information to the transmission service layer every the reporting period, and the relevant layer includes at least the transmission layer.

结合第二方面或者第二方面的第一种可能的实现方式,在上述第二方面的第四种可能的实现方式中,所述装置还包括:With reference to the second aspect or the first possible implementation manner of the second aspect, in the fourth possible implementation manner of the second aspect above, the device further includes:

上报模块,用于当所述相关层进行业务数据传输的传输连接断开时,向传输业务层上报所述传输状态信息。A reporting module, configured to report the transmission status information to the transmission service layer when the transmission connection for the service data transmission of the relevant layer is disconnected.

结合第二方面或者第二方面的第一种可能的实现方式,在上述第二方面的第五种可能的实现方式中,所述确定模块包括:With reference to the second aspect or the first possible implementation manner of the second aspect, in the fifth possible implementation manner of the second aspect above, the determination module includes:

获取单元,用于从所述传输状态信息中,获取传输时延和丢包率;an acquisition unit, configured to acquire transmission delay and packet loss rate from the transmission state information;

第一确定单元,用于基于所述传输时延和所述丢包率,确定所述相关层的传输状态;a first determining unit, configured to determine the transmission state of the relevant layer based on the transmission delay and the packet loss rate;

第二确定单元,用于确定所述第一业务所属的业务类型和网络层当前所连接网络的网络类型;A second determining unit, configured to determine the service type to which the first service belongs and the network type of the network currently connected to the network layer;

第三确定单元,用于基于所述传输时延、所述丢包率、所述传输状态、所述业务类型和所述网络类型,确定第二传输协议和第二传输参数。A third determining unit, configured to determine a second transmission protocol and a second transmission parameter based on the transmission delay, the packet loss rate, the transmission status, the service type, and the network type.

结合第二方面的第五种可能的实现方式,在上述第二方面的第六种可能的实现方式中,所述第一确定单元包括:With reference to the fifth possible implementation manner of the second aspect, in the sixth possible implementation manner of the second aspect above, the first determination 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 ;

第二确定子单元,用于当所述传输时延小于或等于第二指定时延且所述丢包率小于或等于第二指定丢包率时,确定所述相关层的传输状态为轻载状态;The second determination subunit is used to determine that the transmission state of the relevant layer is light load 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 state;

第三确定子单元,用于当所述传输时延小于所述第一指定时延且大于所述第二指定时延,或者所述丢包率小于所述第一指定丢包率且大于所述第二指定丢包率时,确定所述相关层的传输状态为正常状态。The third determining subunit is configured to: when the transmission delay is less than the first specified delay and greater than the second specified delay, or the packet loss rate is less than the first specified packet loss rate and greater than the specified When the second specified packet loss rate is specified, it is determined that the transmission state of the relevant layer is a normal state.

结合第二方面的第五种可能的实现方式或者第二方面的第六种可能的实现方式,在上述第二方面的第七种可能的实现方式中,所述第三确定单元包括:With reference to the fifth possible implementation of the second aspect or the sixth possible implementation of the second aspect, in the seventh possible implementation of the second aspect above, 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;

第五确定子单元,用于基于所述传输时延、所述丢包率和所述传输状态,确定所述第二传输参数。The fifth determination subunit is configured to determine the second transmission parameter based on the transmission delay, the packet loss rate and the transmission state.

结合第二方面至第二方面的第七种可能的实现方式中任一种可能的实现方式,在上述第二方面的第八种可能的实现方式中,所述装置还包括:存储器,用于存储所述第二传输协议和所述第二传输参数;With reference to any possible implementation manner of the second aspect to the seventh possible implementation manner of the second aspect, in the eighth possible implementation manner of the second aspect above, the device further includes: a memory configured to storing the second transmission protocol and the second transmission parameters;

所述第一发送模块具体用于当所述传输层重新建立传输业务数据的第二传输连接时,将所述传输层的传输参数配置为所述第二传输参数,以及将所述传输层的传输协议配置为所述第二传输协议。The first sending module is specifically configured to configure the transmission parameters of the transport layer as the second transmission parameters when the transport layer re-establishes a second transport connection for transporting service data, and configure the transport layer's The transmission protocol is configured as the second transmission protocol.

本发明实施例提供的技术方案带来的有益效果是:The beneficial effects brought by the technical solution provided by the embodiments of the present invention are:

在本发明实施例中,传输业务层在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中,接收传输状态信息,该传输状态信息至少包括传输层状态信息,传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数,将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据,从而可以利用更高效的第二传输协议传输该第一业务的业务数据,避免在业务数据传输过程中出现拥塞和数据包丢失等现象,提高了业务数据传输的速度和质量。In the embodiment of the present invention, the transport service layer receives transmission state information during the process of the transport layer transmitting the service data of the first service through the first transport protocol and the first transmission parameter, and the transmission state information includes at least transport layer state information, The transmission service layer determines the second transmission protocol and the second transmission parameters based on the transmission status information, and sends the second transmission protocol and the second transmission parameters to the transmission layer, so that the transmission layer transmits the second transmission protocol and the second transmission parameters based on the second transmission protocol and the second transmission parameters. Subsequent business data of a business, so that the business data of the first business can be transmitted using a more efficient second transmission protocol, avoiding congestion and data packet loss during business data transmission, and improving the speed and speed of business data transmission. quality.

附图说明Description of drawings

为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings that need to be used in the description of the embodiments will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For those skilled in the art, other drawings can also be obtained based on these drawings without creative effort.

图1是本发明实施例的提供的一种业务数据传输系统架构图;FIG. 1 is an architecture diagram of a service data transmission system provided by an embodiment of the present invention;

图2是本发明实施例的提供的一种业务数据传输方法流程图;Fig. 2 is a flow chart of a service data transmission method provided by an embodiment of the present invention;

图3是本发明实施例的提供的另一种业务数据传输方法流程图;FIG. 3 is a flow chart of another service data transmission method provided by an embodiment of the present invention;

图4是本发明实施例的提供的第一种业务数据传输装置结构示意图;FIG. 4 is a schematic structural diagram of a first service data transmission device provided by an embodiment of the present invention;

图5是本发明实施例的提供的第二种业务数据传输装置结构示意图;FIG. 5 is a schematic structural diagram of a second service data transmission device provided by an embodiment of the present invention;

图6是本发明实施例的提供的第三种业务数据传输装置结构示意图;FIG. 6 is a schematic structural diagram of a third service data transmission device provided by an embodiment of the present invention;

图7是本发明实施例的提供的第四种业务数据传输装置结构示意图;FIG. 7 is a schematic structural diagram of a fourth service data transmission device provided by an embodiment of the present invention;

图8是本发明实施例的提供的一种确定模块结构示意图;Fig. 8 is a schematic structural diagram of a determination module provided by an embodiment of the present invention;

图9是本发明实施例的提供的一种第一确定单元结构示意图;Fig. 9 is a schematic structural diagram of a first determining unit provided by an embodiment of the present invention;

图10是本发明实施例的提供的一种第三确定单元结构示意图;Fig. 10 is a schematic structural diagram of a third determining unit provided by an embodiment of the present invention;

图11是本发明实施例的提供的一种业务数据传输装置结构示意图。Fig. 11 is a schematic structural diagram of a service data transmission device provided by an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明实施方式作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

图1是本发明实施例提供的一种业务数据传输系统架构图。参见图1,该系统至少包括应用层、传输业务层、传输层和网络层。其中,应用层是该系统中的最高层,该应用层可以直接为当前正在进行的业务提供服务;传输业务层介于应用层与传输层之间,且传输业务层用于控制业务数据传输;传输层介于传输业务层和网络层之间,且传输层用于为端到端的业务数据传输连接提供传输服务;网络层用于管理网络中的数据通信,将数据从源端经过若干个中间节点传送到目的端,从而向传输层提供最基本的端到端的数据传送服务。FIG. 1 is an architecture diagram of a service data transmission system provided by an embodiment of the present invention. Referring to Fig. 1, the system at least includes an application layer, a transport service layer, a transport layer and a network layer. Among them, the application layer is the highest layer in the system, and the application layer can directly provide services for the current ongoing business; the transmission service layer is between the application layer and the transmission layer, and the transmission service layer is used to control the transmission of business data; The transport layer is between the transport business layer and the network layer, and the transport layer is used to provide transmission services for end-to-end business data transmission connections; the network layer is used to manage data communication in the network, passing data from the source through several intermediate The node transmits to the destination, thus providing the most basic end-to-end data transmission service to the transport layer.

图2是本发明实施例提供的一种业务数据传输方法的流程图。参见图2,该方法包括:Fig. 2 is a flowchart of a service data transmission method provided by an embodiment of the present invention. Referring to Figure 2, the method includes:

步骤201:在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中,传输业务层接收传输状态信息,该传输状态信息至少包括传输层状态信息,该第一传输协议和第一传输参数为当前配置为该传输层的传输协议和传输参数。Step 201: During the process of the transport layer transmitting the service data of the first service through the first transport protocol and the first transport parameters, the transport service layer receives the transport status information, the transport status information includes at least the transport layer status information, the first transport The protocol and the first transmission parameter are the transmission protocol and transmission parameters currently configured as the transmission layer.

步骤202:传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数。Step 202: The transmission service layer determines a second transmission protocol and a second transmission parameter based on the transmission state information.

步骤203:传输业务层将该第二传输协议和第二传输参数发送给传输层,使传输层基于该第二传输协议和第二传输参数传输第一业务的后续业务数据。Step 203: The transport service layer sends the second transport protocol and the second transport parameters 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 parameters.

在本发明实施例中,传输业务层在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中接收传输状态信息,该传输状态信息至少包括传输层状态信息,传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数,将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输所述第一业务的后续业务数据,从而可以利用更高效的第二传输协议传输所述第一业务的业务数据,避免在业务数据传输过程中出现拥塞和数据包丢失等现象,从而提高了业务数据传输的速度和质量。In the embodiment of the present invention, the transport service layer receives the transmission status information during the process of the transport layer transmitting the service data of the first service through the first transmission protocol and the first transmission parameter, and the transmission status information includes at least the transport layer status information, and the transmission The business layer determines the second transmission protocol and the second transmission parameters based on the transmission status information, and 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, so that the service data of the first service can be transmitted using a more efficient second transmission protocol, avoiding congestion and data packet loss during service data transmission, thereby improving service data transmission speed and quality.

可选地,该传输状态信息还包括网络层状态信息。Optionally, the transmission status information also includes network layer status information.

可选地,在传输层通过第一传输协议和第一传输参数传输第一业务是业务数据的过程中,传输业务层接收传输状态信息之前,还包括:Optionally, in the process that the transport layer transmits the first service is service data through the first transport protocol and the first transport parameter, before the transport service layer receives the transport state information, further includes:

接收应用层发送的业务需求参数,该业务需求参数为应用层所提供的该第一业务处于正常状态时所需的参数;receiving a service requirement parameter sent by the application layer, where the service requirement parameter is a parameter required by the application layer when the first service is in a normal state;

从该业务需求参数中,获取门限参数;Obtain a threshold parameter from the business requirement parameter;

基于该门限参数,向相关层注册关键事件,该关键事件用于当相关层的传输参数超过门限参数时,向传输业务层上报传输状态信息,该相关层至少包括传输层。Based on the threshold parameter, a key event is registered to the relevant layer, and the key event is used to report transmission status information to the transmission service layer when the transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant layer includes at least the transport layer.

可选地,传输业务层接收传输状态信息之前,还包括:Optionally, before the transmission service layer receives the transmission status information, it also includes:

将上报周期发送给相关层,使相关层每隔上报周期向传输业务层上报传输状态信息,该相关层至少包括该传输层。The reporting period is sent to the relevant layer, so that the relevant layer reports the transmission status information to the transmission service layer every reporting period, and the relevant layer includes at least the transmission layer.

可选地,传输业务层接收传输状态信息之前,还包括:Optionally, before the transmission service layer receives the transmission status information, it also includes:

当相关层传输业务数据的第一传输连接断开时,向传输业务层上报传输状态信息。When the first transmission connection for transmitting service data of the relevant layer is disconnected, the transmission status information is reported to the transmission service layer.

可选地,基于该传输状态信息,确定第二传输协议和第二传输参数,包括:Optionally, based on the transmission state information, determining a second transmission protocol and a second transmission parameter includes:

从该传输状态信息中,获取传输时延和丢包率;Obtain transmission delay and packet loss rate from the transmission status information;

基于该传输时延和丢包率,确定相关层的传输状态;Based on the transmission delay and packet loss rate, determine the transmission status of the relevant layer;

确定该第一业务所属的业务类型和网络层当前所连接网络的网络类型;Determine the service type to which the first service belongs and the network type of the network to which the network layer is currently connected;

基于传输时延、丢包率、该传输状态、业务类型和网络类型,确定第二传输协议和第二传输参数。Based on the transmission delay, the packet loss rate, the transmission state, the service type and the network type, determine the second transmission protocol and the second transmission parameters.

可选地,基于该传输时延和丢包率,确定相关层的传输状态,包括:Optionally, based on the transmission delay and packet loss rate, determining the transmission state of the relevant layer includes:

当传输时延大于或等于第一指定时延且丢包率大于或等于第一指定丢包率时,确定相关层的传输状态为过载状态;When the transmission delay is greater than or equal to the first specified delay and the packet loss rate is greater than or equal to the first specified packet loss rate, it is determined that the transmission state of the relevant layer is an overload state;

当传输时延小于或等于第二指定时延且丢包率小于或等于第二指定丢包率时,确定相关层的传输状态为轻载状态;When the transmission delay is less than or equal to the second specified delay and the packet loss rate is less than or equal to the second specified packet loss rate, it is determined that the transmission state of the relevant layer is a light load state;

当传输时延小于第一指定时延且大于第二指定时延,或者丢包率小于第一指定丢包率且大于第二指定丢包率时,确定相关层的传输状态为正常状态。When the transmission delay is less than the first specified delay and greater than the second specified delay, or the packet loss rate is less than the first specified packet loss rate and greater than the second specified packet loss rate, it is determined that the transmission state of the relevant layer is a normal state.

可选地,基于该传输时延、丢包率、传输状态、业务类型和网络类型,确定第二传输协议和第二传输参数,包括:Optionally, based on the transmission delay, packet loss rate, transmission status, service type and network type, determine a second transmission protocol and a second transmission parameter, including:

基于业务类型和网络类型,确定第二传输协议;Determine the second transmission protocol based on the service type and the network type;

基于传输状态、传输时延和丢包率,确定第二传输参数。Based on the transmission status, transmission delay and packet loss rate, the second transmission parameter is determined.

可选地,所述方法还包括:存储第二传输协议和第二传输参数;Optionally, the method further includes: storing a second transmission protocol and a second transmission parameter;

该传输业务层将第二传输协议和第二传输参数发送给传输层,使传输层基于第一传输协议和第二传输参数传输该第一业务的后续业务数据,具体包括: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 first transmission protocol and the second transmission parameters, specifically including:

当该传输层重新建立传输业务数据的第二传输连接时,将传输层的传输参数配置为第二传输参数,以及将传输层的传输协议配置为第二传输协议。When the transport layer re-establishes the second transport connection for transporting service data, configure the transport layer's transport parameters as the second transport parameters, and configure the transport layer's transport protocol as the second transport protocol.

上述所有可选技术方案,均可按照任意结合形成本发明的可选实施例,本发明实施例对此不再一一赘述。All the above optional technical solutions can be combined in any way to form optional embodiments of the present invention, which will not be repeated in the embodiments of the present invention.

图3是本发明实施例提供的一种业务数据传输方法的流程图。参见图3,该方法包括:Fig. 3 is a flowchart of a service data transmission method provided by an embodiment of the present invention. Referring to Figure 3, the method includes:

步骤301:在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中,传输业务层接收传输状态信息,该传输状态信息至少包括传输层状态信息,第一传输协议和第一传输参数为当前配置给传输层的传输协议和传输参数。Step 301: During the process of the transport layer transmitting the service data of the first service through the first transport protocol and the first transport parameters, the transport service layer receives transmission status information, the transmission status information includes at least transport layer status information, the first transport protocol and the first transmission parameter are the transmission protocol and transmission parameters currently configured for the transport layer.

当该终端在使用视频通信、视频点播、网页浏览等业务的过程中,为了获取业务所需的数据,该终端需要通过网络进行业务数据传输,而由于业务数据在传输过程中,会受到传输层状态变化的影响,比如,当传输层出现传输拥塞时,会导致数据包丢失、数据包传输延迟等问题,因此,在业务数据传输过程中,为了针对不同的传输状态信息,及时地对传输协议和传输参数进行调整,该终端的传输业务层需要接收该信息在传输过程中的传输状态信息。When the terminal is using services such as video communication, video on demand, and web browsing, in order to obtain the data required by the service, the terminal needs to transmit service data through the network, and because the service data is transmitted, it will be affected by the transport layer. The impact of state changes, for example, when transmission congestion occurs at the transport layer, it will cause problems such as data packet loss and data packet transmission delay. and the transmission parameters, the transmission service layer of the terminal needs to receive the transmission status information of the information during transmission.

另外,在业务数据传输过程中,不仅传输层的传输状态会对业务数据传输会产生影响,网络层的网络状态同样也会对业务数据传输产生影响,比如,当网络层出现网络拥塞现象时,也会导致数据包丢失、数据包传输延迟等问题,因此,该传输状态信息不仅可以包括传输层状态信息,还可以包括网络层状态信息。In addition, in the process of business data transmission, not only the transmission status of the transport layer will have an impact on the business data transmission, but also the network status of the network layer will also have an impact on the business data transmission. For example, when network congestion occurs at the network layer, It will also cause problems such as data packet loss, data packet transmission delay, etc. Therefore, the transmission status information may not only include the status information of the transport layer, but also include the status information of the network layer.

进一步地,在传输业务层接收传输状态信息之前,该传输业务层可以通过如下(1)-(3)三种方法使传输层或者网络层将当前的传输状态信息上报给传输业务层,如下所述。Further, before the transmission service layer receives the transmission status information, the transmission service layer can make the transmission layer or the network layer report the current transmission status information to the transmission service layer through the following three methods (1)-(3), as follows stated.

(1)、该传输业务层接收应用层发送的业务需求参数,该业务需求参数为应用层所提供的第一业务处于正常状态时所需的参数,并从该业务需求参数中,获取门限参数,基于该门限参数,向相关层注册关键事件,该关键事件用于当该相关层的传输参数超过该门限参数时,向传输业务层上报该传输状态信息,该相关层至少包括传输层。(1), the transmission service layer receives the service requirement parameter sent by the application layer, and the service requirement parameter is the parameter required when the first service provided by the application layer is in a normal state, and obtains the threshold parameter from the service requirement parameter , based on the threshold parameter, register a key event with the relevant layer, and the key event is used to report the transmission status information to the transmission service layer when the transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant layer includes at least the transmission layer.

由于该业务需求参数包括该第一业务处于正常状态时所能容忍的最低门限参数,在业务数据传输过程中,如果用于传输信息的传输参数超过该最低门限参数,则该终端在进行该第一业务的过程中就会出现各种各样的问题,导致该第一业务无法正常进行,因此,为了保证该第一业务的正常使用,传输业务层接收应用层发送的业务需求参数之后,可以从该业务需求参数中,获取门限参数,基于该门限参数,传输业务层向相关层注册关键事件,该关键事件注册成功之后,当用于业务数据传输的传输参数超过该门限参数时,相关层将当前的传输状态信息上报给传输业务层。Since the service requirement parameter includes the minimum threshold parameter that can be tolerated when the first service is in a normal state, during the service data transmission process, if the transmission parameter used for transmitting information exceeds the minimum threshold parameter, the terminal is performing the first service. There will be various problems in the process of a business, resulting in the failure of the first business. Therefore, in order to ensure the normal use of the first business, after the transmission business layer receives the business requirement parameters sent by the application layer, it can The threshold parameter is obtained from the business requirement parameter. Based on the threshold parameter, the transport service layer registers a key event with the relevant layer. After the key event registration is successful, when the transmission parameter used for business data transmission exceeds the threshold parameter, the relevant layer Report the current transmission status information to the transmission service layer.

其中,由于该业务需求参数可以包括多个参数,当传输业务层从该业务需求参数中,获取门限参数时,该传输业务层可以确定应用层当前所提供的第一业务的业务标识,并基于应用层当前所提供业务的业务标识,从存储的业务标识与参数标识之间的对应关系中,获取对应的参数标识,基于获取的参数标识,从该业务需求参数包括的多个参数中,获取对应的参数,并将获取的参数确定为门限参数。Wherein, since the service requirement parameter may include multiple parameters, when the transport service layer obtains the threshold parameter from the service demand parameter, the transport service layer may determine the service identifier of the first service currently provided by the application layer, and based on The service identifier of the service currently provided by the application layer obtains the corresponding parameter identifier from the stored correspondence between the service identifier and the parameter identifier, and based on the obtained parameter identifier, obtains from the multiple parameters included in the business requirement parameter corresponding parameters, and determine the obtained parameters as threshold parameters.

由于在业务数据传输过程中,应用层与传输业务层之间会传输一些请求消息,该请求消息中可能会携带应用层当前所提供的第一业务的业务标识,因此,传输业务层可以从这些请求消息中获取应用层当前所提供业务的业务标识,比如,该请求消息可以为连接建立消息,本发明实施例对比不做具体限定。During the service data transmission process, some request messages will be transmitted between the application layer and the transport service layer, and the request message may carry the service identifier of the first service currently provided by the application layer. Therefore, the transport service layer can obtain from these The service identifier of the service currently provided by the application layer is obtained from the request message. For example, the request message may be a connection establishment message, which is not specifically limited in this embodiment of the present invention.

需要说明的是,该业务标识用于唯一标识该应用层当前所提供的第一业务,且该业务标识可以为应用层当前所提供的第一业务的业务名称、业务编号等等,本发明实施例对此不做具体限定。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 the service name, service number, etc. of the first service currently provided by the application layer. The example does not specifically limit this.

还需要说明的是,该参数标识用于唯一标识该参数,该参数标识可以为该参数的名称、该参数的表示符号、该参数的英文缩写等等,比如,业务需求参数包括的传输时延的标识可以为RTT、丢包率的标识可以为ρ,拥塞窗口的标识为CWND、网络带宽的标识可以为BW等等,本发明实施例对此不做具体限定。It should also be noted that the parameter identifier is used to uniquely identify the parameter, and the parameter identifier can be the name of the parameter, the symbol of the parameter, the English abbreviation of the parameter, etc., for example, the transmission delay included in the business requirement parameter The identifier of RTT may be RTT, the identifier of packet loss rate may be ρ, the identifier of congestion window may be CWND, and the identifier of network bandwidth may be BW, etc., which are not specifically limited in this embodiment of the present invention.

比如,应用层当前所提供业务的业务标识为ID1,传输业务层基于该业务标识ID1,从如下表1所示的业务标识与参数标识之间的对应关系中,获取对应的参数标识为RTT和ρ,传输业务层基于该参数标识RTT和ρ,从业务需求参数中获取传输时延RTT对应的参数为50ms,丢包率ρ对应的参数为0.04%,传输业务层将传输时延RTT 50ms和丢包率ρ0.04%确定为门限参数。For example, the service identifier of the service currently provided by the application layer is ID1. Based on the service identifier ID1, the transport service layer obtains the corresponding parameter identifiers as RTT and ρ, the transmission service layer identifies RTT and ρ based on this parameter, obtains the parameter corresponding to the transmission delay RTT from the service requirement parameter as 50ms, and the parameter corresponding to the packet loss rate ρ is 0.04%, and the transmission service layer sets the transmission delay RTT 50ms and The packet loss rate ρ0.04% is determined as the threshold parameter.

表1Table 1

需要说明的是,在本发明实施例中,仅以上述表1所示的业务标识与参数标识之间的对应关系为例进行说明,上述表1并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, only the corresponding relationship between the service identifier and the parameter identifier shown in the above Table 1 is used as an example for illustration, and the above Table 1 does not limit the embodiment of the present invention.

比如,该业务是视频点播业务,传输业务层接收应用层发送的业务需求参数包括传输时延、丢包率、发送端拥塞窗口、最大传输单元和吞吐率等等,传输业务层从该业务需求参数中,获取的门限参数为传输时延和丢包率,且传输时延为50ms,丢包率为0.04%,基于该传输时延50ms和丢包率0.04%,传输业务层向相关层注册关键事件,该关键事件注册成功之后,若业务数据传输过程中相关层的当前传输时延为60ms,当前传输时延60ms大于门限参数中的传输时延50ms,从而该相关层将当前的传输状态信息上报给传输业务层。For example, if the service is a video-on-demand service, the transport service layer receives the service requirement parameters sent by the application layer, including transmission delay, packet loss rate, congestion window at the sending end, maximum transmission unit, and throughput rate, etc. Among the parameters, the obtained threshold parameters are transmission delay and packet loss rate, and the transmission delay is 50ms, and the packet loss rate is 0.04%. Based on the transmission delay of 50ms and packet loss rate of 0.04%, the transmission service layer registers with the relevant layer Key event, after the key event registration is successful, if the current transmission delay of the relevant layer during the business data transmission process is 60ms, the current transmission delay of 60ms is greater than the transmission delay of 50ms in the threshold parameter, so the relevant layer will transfer the current transmission status The information is reported to the transport business layer.

(2)、传输业务层将上报周期发送给该相关层,使该相关层每隔该上报周期向该传输业务层上报该传输状态信息。(2) The transmission service layer sends the reporting period to the relevant layer, so that the relevant layer reports the transmission status information to the transmission service layer every reporting period.

为了保证该业务处于正常状态,也即是,保证传输层的业务数据传输正常进行,传输业务层还可以周期性地获取相关层的传输状态信息,这样既可以对传输层的业务数据传输进行实时地监控,又不会给相关层带来过重的负担。因此,传输业务层可以将上报周期发送给相关层,使相关层每隔该上报周期就向传输业务层上报该传输状态信息。In order to ensure that the business is in a normal state, that is, to ensure that the business data transmission of the transport layer is carried out normally, the transport service layer can also periodically obtain the transmission status information of the relevant layer, so that the business data transmission of the transport layer can be real-time It can be monitored in a timely manner without imposing an excessive burden on the relevant layers. Therefore, the transmission service layer may send the reporting period to the relevant layer, so that the relevant layer reports the transmission status information to the transmission service layer every the reporting period.

需要说明的是,该上报周期可以事先设置,比如,该上报周期为5min、10min、30min等等,本发明实施例对此不做具体限定。It should be noted that the reporting period may be set in advance, for example, the reporting period is 5 minutes, 10 minutes, 30 minutes, etc., which is not specifically limited in this embodiment of the present invention.

比如,该上报周期为10min,传输业务层将该上报周期10min发送给相关层,使相关层每隔10min就向传输业务层发送该传输状态信息。For example, the reporting period is 10 minutes, and the transmission service layer sends the reporting period of 10 minutes to the relevant layer, so that the relevant layer sends the transmission status information to the transmission service layer every 10 minutes.

(3)、当该相关层传输业务数据的第一传输连接断开时,向该传输业务层上报该传输状态信息。(3) When the first transmission connection of the relevant layer to transmit service data is disconnected, report the transmission state information to the transmission service layer.

由于在业务数据传输之前,传输业务层需要通过该相关层与服务器之间建立第一传输连接,并通过该第一传输连接进行业务数据传输,当该相关层进行业务数据传输的第一传输连接断开时,应用层无法获取当前所提供业务所需的数据,进而影响该业务的正常运行,因此,当该相关层进行业务数据传输的第一传输连接断开时,该相关层可以向传输业务层上报该传输状态信息。Before the business data is transmitted, the transport service layer needs to establish a first transmission connection between the relevant layer and the server, and perform business data transmission through the first transmission connection, when the relevant layer performs the first transmission connection of business data transmission When disconnected, the application layer cannot obtain the data required by the current service provided, which will affect the normal operation of the service. Therefore, when the first transmission connection of the relevant layer for business data transmission is disconnected, the relevant layer can transfer The business layer reports the transmission status information.

需要说明的是,在本发明实施例中,由于相关层至少包括传输层,当然,为了进一步提高业务数据传输的效率,相关层还可以包括网络层,因此,传输业务层不仅可以通过上述三种方法获取传输层状态信息,当然,传输业务层还可以通过上述三种方法同时获取传输层状态信息和网络层状态信息,也即是,传输业务层可以至少获取传输层状态信息,本发明实施例对此不做具体限定。It should be noted that, in the embodiment of the present invention, since the relevant layer includes at least the transport layer, of course, in order to further improve the efficiency of service data transmission, the relevant layer may also include the network layer, therefore, the transport service layer can not only pass the above three The method obtains the state information of the transport layer. Of course, the transport service layer can also obtain the state information of the transport layer and the state information of the network layer at the same time through the above three methods, that is, the transport service layer can at least obtain the state information of the transport layer. The embodiment of the present invention This is not specifically limited.

步骤302:从该传输状态信息中,获取传输时延和丢包率,基于该传输时延和丢包率,确定该相关层的传输状态。Step 302: Obtain transmission delay and packet loss rate from the transmission status information, and determine the transmission status of the relevant layer based on the transmission delay and packet loss rate.

当该传输业务层接收到传输状态信息时,为了确定当前业务数据传输的传输状态,并基于该传输状态对业务数据传输的过程进行及时地调整,以保证业务数据传输的正常进行,因此,该传输业务层可以从该传输状态信息中,获取传输时延和丢包率,并基于该传输时延和丢包率,确定该相关层的传输状态。When the transmission service layer receives the transmission status information, in order to determine the transmission status of the current business data transmission, and adjust the process of business data transmission in a timely manner based on the transmission status, so as to ensure the normal progress of business data transmission, therefore, the The transmission service layer can obtain the transmission delay and packet loss rate from the transmission status information, and determine the transmission status of the relevant layer based on the transmission delay and packet loss rate.

其中,该传输业务层基于该传输时延和丢包率,确定该相关层的传输状态的操作可以为:当传输时延大于或等于第一指定时延且丢包率大于或等于第一指定丢包率时,确定相关层的传输状态为过载状态;当传输时延小于或等于第二指定时延且丢包率小于或等于第二指定丢包率时,确定相关层的传输状态为轻载状态;当传输时延小于第一指定时延且大于第二指定时延,或者丢包率小于第一指定丢包率且大于第二指定丢包率时,确定相关层的传输状态为正常状态。Wherein, the operation of the transmission service layer to determine the transmission state of the relevant layer based on the transmission delay and packet loss rate may be: when the transmission delay is greater than or equal to the first specified delay and the packet loss rate is greater than or equal to the first specified When the packet loss rate is lower than or equal to the second specified packet loss rate, determine that the transmission state of the relevant layer is an overload state; when the transmission delay is less than or equal to the second specified delay and the packet loss rate is less than or equal to the second specified packet loss rate, determine that the transmission state of the relevant layer is light load state; when the transmission delay is less than the first specified delay and greater than the second specified delay, or the packet loss rate is less than the first specified packet loss rate and greater than the second specified packet loss rate, determine that the transmission status of the relevant layer is normal state.

需要说明的是,第一指定时延、第二指定时延、第一指定丢包率和第二指定丢包率均可以事先设置,且第一指定时延大于第二指定时延,第一指定丢包率大于第二指定丢包率,比如,第一指定时延为50ms、55ms等,第二指定时延为10ms、20ms等,第一指定丢包率为0.04%、0.05%等,第二指定丢包率为0.01%等,本发明实施例对此不做具体限定。It should be noted that the first specified delay, the second specified delay, the first specified packet loss rate, and the second specified packet loss rate can all be set in advance, and the first specified delay is greater than the second specified delay, and the first specified The specified packet loss rate is greater than the second specified packet loss rate. For example, the first specified delay is 50ms, 55ms, etc., the second specified delay is 10ms, 20ms, etc., and the first specified packet loss rate is 0.04%, 0.05%, etc., The second specified packet loss rate is 0.01%, etc., which is not specifically limited in this embodiment of the present invention.

比如,第一指定时延为50ms、第二指定时延为10ms、第一指定丢包率为0.04%、第二指定丢包率为0.01%,该传输业务层从该传输状态信息中,获取的传输时延为60ms、丢包率为0.06%,由于该传输时延60ms大于第一指定时延50ms,且该丢包率0.06%大于第一指定丢包率0.04%,因此,该传输业务层确定该相关层的传输状态为过载状态。For example, the first specified delay is 50ms, the second specified 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 status information The transmission delay is 60ms, and the packet loss rate is 0.06%. Since the transmission delay of 60ms is greater than the first specified 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 The layer determines that the transmission state of the associated layer is an overload state.

需要说明的是,由于传输业务层可以至少获取传输层状态信息,因此,当传输状态信息包括传输层状态信息时,传输业务层可以从传输层状态信息中,获取传输层的传输时延和丢包率,并基于传输层的传输时延和丢包率,确定传输层的传输状态,而当传输状态信息不仅包括传输层状态信息,还包括网络层状态信息时,传输业务层不仅可以从传输层状态信息中,获取传输层的传输时延和丢包率,并基于传输层的传输时延和丢包率,确定传输层的传输状态,同时还可以从网络层状态信息中,获取网络层的传输时延和丢包率,并基于网络层的传输时延和丢包率,确定网络层的传输状态。It should be noted that since the transport service layer can obtain at least the transport layer state information, when the transport state information includes the transport layer state information, the transport service layer can obtain the transmission delay and loss of the transport layer from the transport layer state information. Packet rate, and based on the transmission delay and packet loss rate of the transport layer, determine the transmission status of the transport layer, and when the transmission status information includes not only the status information of the transport layer, but also the status information of the network layer, the transport service layer can not only In the layer status information, the transmission delay and packet loss rate of the transport layer are obtained, and the transmission status of the transport layer is determined based on the transmission delay and packet loss rate of the transport layer. At the same time, the network layer can also be obtained from the network layer status information. The transmission delay and packet loss rate of the network layer, and based on the transmission delay and packet loss rate of the network layer, determine the transmission status of the network layer.

步骤303:确定该第一业务所属的业务类型和网络层当前所连接网络的网络类型。Step 303: Determine the service type to which the first service belongs and the network type of the network to which the network layer is currently connected.

为了对业务数据传输过程进行更准确、更有针对性地调整,以保证业务数据传输的顺利进行,提高业务数据传输的速度和质量,以及使应用层当前所提供的第一业务处于正常状态,该传输业务层需要确定该第一业务所属的业务类型和该网络层当前所连接网络的网络类型。In order to make more accurate and targeted adjustments to the business data transmission process, to ensure the smooth progress of business data transmission, to improve the speed and quality of business data transmission, and to keep the first business currently provided by the application layer in a normal state, The transport service layer needs to determine the service type to which the first service belongs and the network type of the network to which the network layer is currently connected.

其中,传输业务层确定该第一业务所属的业务类型的操作可以为:传输业务层获取第一业务的业务标识,并基于该业务标识,从存储的业务标识与业务类型之间的对应关系中,获取对应的业务类型,并将获取的业务类型确定为应用层当前所提供业务所属的业务类型。Wherein, the operation of the transport service layer to determine the service type to which the first service belongs may be as follows: the transport service layer obtains the service identifier of the first service, and based on the service identifier, obtains the corresponding relationship between the stored service identifier and the service type , acquire the corresponding service type, and determine the acquired service type as the service type to which the service currently provided by the application layer belongs.

比如,传输业务层获取第一业务的业务标识为ID1,传输业务层基于该业务标识ID1,从如下表2所示的业务标识与业务类型之间的对应关系中,获取对应的业务类型为类型1,并将该类型1确定为第一业务所属的业务类型。For example, the transport service layer acquires the service identifier of the first service as ID1, and the transport service layer obtains the corresponding service type as type from the correspondence between the service identifier and service type shown in Table 2 below based on the service identifier ID1. 1, and determine the type 1 as the service type to which the first service belongs.

表2Table 2

需要说明的是,在本发明实施例中,仅以上述表2所示的业务标识与业务类型之间的对应关系为例进行说明,上述表2并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, only the corresponding relationship between the service identifier and the service type shown in the above Table 2 is used as an example for illustration, and the above Table 2 does not limit the embodiment of the present invention.

其中,当传输业务层确定网络层当前所连接网络的网络类型时,传输业务层不仅可以基于该终端当前连接的网络,直接确定该网络层当前所连接网络的网络类型,还可以从多次连续接收的传输状态信息中获取多个连续的传输时延和丢包率,并基于该多个连续的传输时延和丢包率,确定网络层当前所连接网络的网络类型。Wherein, when the transport service layer determines the network type of the network currently connected to the network layer, the transport service layer can not only directly determine the network type of the network currently connected to the network layer based on the network currently connected to the terminal, but also can select from multiple consecutive Multiple consecutive transmission delays and packet loss rates are obtained from the received transmission status information, and based on the multiple continuous transmission delays and packet loss rates, the network type of the network currently connected to the network layer is determined.

而传输业务层基于该多个连续的传输时延和丢包率,确定网络层当前所连接网络的网络类型的操作可以为:传输业务层从该多个连续的传输时延中,获取传输时延最大值和传输时延最小值,并基于传输时延最大值和传输时延最小值,确定该多个连续传输时延的时延变化量,以及从该多个连续的丢包率中,获取丢包率最大值和丢包率最小值,并基于丢包率最大值和丢包率最小值,确定该多个连续丢包率的丢包率变化量,当该多个连续传输时延均大于第一阈值、该时延变化量小于第二阈值以及该丢包率变化量小于第三阈值时,确定网络层当前所连接网络的网络类型为无线网络,否则,确定该网络层当前所连接网络的网络类型为非无线网络,也即是,当获取的该多个连续的传输时延一直都较大且偶尔发生丢包时,传输业务层可以确定网络层当前所连接网络的网络类型为无线网络,否则,确定网络层当前所连接网络的网络类型为非无线网络。The operation of the transmission service layer to determine the network type of the network currently connected to the network layer based on the multiple continuous transmission delays and packet loss rates can be as follows: the transmission service layer obtains the transmission time from the multiple continuous transmission delays The maximum delay value and the minimum transmission delay value, and based on the maximum transmission delay value and the minimum transmission delay value, determine the delay variation of the multiple continuous transmission delays, and from the multiple continuous packet loss rates, Obtain the maximum value of the packet loss rate and the minimum value of the packet loss rate, and based on the maximum value of the packet loss rate and the minimum value of the packet loss rate, determine the variation of the packet loss rate of the multiple consecutive packet loss rates, when the multiple continuous transmission delays When all are greater than the first threshold, the delay variation is less than the second threshold and the packet loss rate variation is less than the third threshold, it is determined that the network type of the network currently connected to the network layer is a wireless network; otherwise, it is determined that the network layer is currently connected The network type of the connected network is a non-wireless network, that is, when the multiple continuous transmission delays obtained are always large and packet loss occurs occasionally, the transmission service layer can determine the network type of the network currently connected to the network layer is a wireless network, otherwise, determine that the network type of the network currently connected to the network layer is a non-wireless network.

需要说的是,第一阈值、第二阈值和第三阈值可以事先设置,比如,第一阈值为30ms、35ms,第二阈值为5ms、7ms,第三阈值为0.015%、0.002%等等,本发明实施例对此不做具体限定。What needs to be said is that the first threshold, the second threshold and the third threshold can be set in advance, for example, the first threshold is 30ms, 35ms, the second threshold is 5ms, 7ms, the third threshold is 0.015%, 0.002%, etc., This embodiment of the present invention does not specifically limit it.

另外,传输业务层不仅可以基于该多个连续的传输时延和丢包率,确定网络层当前所连接网络的网络类型,当然,在实际应用中,传输业务层还可以基于该多个连续的传输时延和丢包率,以及其他多个连续的参数,确定网络层当前所连接网络的网络类型,本发明实施例对此不做具体限定。In addition, the transport service layer can not only determine the network type of the network currently connected to the network layer based on the multiple continuous transmission delays and packet loss rates, of course, in practical applications, the transport service layer can also determine the network type based on the multiple continuous Transmission delay, packet loss rate, and other continuous parameters determine the network type of the network currently connected to the network layer, which is not specifically limited in the embodiment of the present invention.

步骤304:基于该传输时延、丢包率、传输状态、该业务类型和该网络类型,确定第二传输协议和第二传输参数。Step 304: Determine a second transmission protocol and a second transmission parameter based on the transmission delay, packet loss rate, transmission status, the service type and the network type.

为了保证应用层当前所提供的第一业务能够处于正常状态,且避免在业务数据传输过程中出现传输拥塞、数据包丢失等现象,该传输业务层需要基于该传输时延、丢包率、传输状态、该业务类型和该网络类型,确定第二传输和第二传输协议参数。而基于该传输时延、丢包率、传输状态、该业务类型和该网络类型,确定第二传输和第二传输协议参数的操作可以为:基于该业务类型和该网络类型,确定第二传输协议;基于该传输时延、丢包率和传输状态,确定第二传输参数。In order to ensure that the first service currently provided by the application layer can be in a normal state, and to avoid transmission congestion and data packet loss during service data transmission, the transmission service layer needs to be based on the transmission delay, packet loss rate, transmission The state, the service type and the network type determine the second transmission and the second transmission protocol parameters. And based on the transmission delay, packet loss rate, transmission status, the service type and the network type, the operation of determining the second transmission and the second transmission protocol parameters can be: based on the service type and the network type, determining the second transmission A protocol: determining a second transmission parameter based on the transmission delay, packet loss rate and transmission status.

其中,当传输业务层基于该业务类型和该网络类型,确定第二传输协议时,传输业务层可以基于该业务类型和该网络类型,从存储的业务类型、网络类型与传输协议之间的对应关系中,获取对应的传输协议,并将获取的传输协议确定为第二传输协议。Wherein, when the transmission service layer determines the second transmission protocol based on the service type and the network type, the transmission service layer may, based on the service type and the network type, learn from the stored correspondence between the service type, the network type, and the transmission protocol In the relationship, the corresponding transmission protocol is obtained, and the obtained transmission protocol is determined as the second transmission protocol.

比如,该网络类型为无线网络,传输业务层可以基于该业务类型为类型1和无线网络,从如下表3所示的业务类型、网络类型与传输协议之间的对应关系中,获取对应的传输协议为协议1,传输业务层将该协议1确定为第二传输协议。For example, if the network type is a wireless network, the transmission service layer can obtain the corresponding transmission service layer from the correspondence between the service type, network type and transmission protocol as shown in Table 3 below based on the service type being type 1 and wireless network. The protocol is protocol 1, and the transport service layer determines the protocol 1 as the second transport protocol.

表3table 3

需要说明的是,在本发明实施例中,仅以上述表3所示的业务类型、网络类型与传输协议之间的对应关系为例进行说明,上述表3并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, only the corresponding relationship between the service type, the network type and the transmission protocol shown in the above Table 3 is used as an example for illustration, and the above Table 3 does not limit the embodiment of the present invention.

其中,当传输业务层基于该传输时延、丢包率和传输状态,确定第二传输参数时,若该传输状态为正常状态,传输业务层确定业务数据传输处于正常状态,且能够充分地利用网络层和传输层所提供的资源,同时又不会出现拥塞、数据包丢失等现象,从而传输业务层可以直接将第一传输参数确定为第二传输参数;若该传输状态为非正常状态,也即是,该传输状态为过载状态或者轻载状态时,由于针对不同的传输协议,配置给该传输层的传输参数也不同,而该传输协议按照业务数据传输的可靠性,可以分为可靠传输协议和不可靠传输协议,比如,TCP协议就是典型的可靠性传输协议,而UDP协议就是典型的不可靠性传输协议。因此,针对第二传输协议是否为可靠传输协议,传输业务层基于该传输时延和丢包率,确定第二传输参数可以包括两种情况,如下所述。Wherein, when the transmission service layer determines the second transmission parameter based on the transmission delay, packet loss rate and transmission state, if the transmission state is normal, the transmission service layer determines that the service data transmission is in the normal state, and can fully utilize The resources provided by the network layer and the transport layer will not cause congestion, data packet loss, etc., so that the transport service layer can directly determine the first transmission parameter as the second transmission parameter; if the transmission status is abnormal, That is, when the transmission state is overloaded or lightly loaded, the transmission parameters configured for the transmission layer are different for different transmission protocols, and the transmission protocol can be divided into reliable and reliable according to the reliability of business data transmission. Transmission protocol and unreliable transmission protocol, for example, TCP protocol is a typical reliable transmission protocol, and UDP protocol is a typical unreliable transmission protocol. Therefore, regarding 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 may include two situations, as described below.

第一种情况、当第二传输协议为不可靠性传输协议时,传输业务层基于该传输时延和丢包率,确定该传输时延所属的时延范围和该丢包率所属的丢包率范围,并基于该传输时延所属的时延范围和该丢包率所属的丢包率范围,从存储的时延范围、丢包率范围与传输参数之间的对应关系中,获取对应的传输参数,并将获取的传输参数确定为第二传输参数。In the first case, when the second transmission protocol is an unreliable transmission protocol, the transmission service layer determines the delay range to which the transmission delay belongs and the packet loss to which the packet loss rate belongs based on the transmission delay and the packet loss rate. rate range, and based on the delay range to which the transmission delay belongs and the packet loss rate range to which the packet loss rate belongs, the corresponding relationship between the stored delay range, packet loss rate range and transmission parameters is obtained. A transmission parameter, and determining the acquired transmission parameter as a second transmission parameter.

其中,传输业务层基于该传输时延和丢包率,确定该传输时延所属的时延范围和该丢包率所属的丢包率范围的操作可以为:传输业务层获取存储的时延范围、丢包率范围与传输参数之间的对应关系包括的时延范围和丢包率范围,得到多个时延范围和多个丢包率范围,对于该多个时延范围中的每个时延范围,当该传输时延大于该时延范围的最小值且小于该时延范围的最大值时,传输业务层将该时延范围确定为该传输时延所属的时延范围;同理,对于该多个丢包率范围中的每个丢包率范围,当该丢包率大于该丢包率范围的最小值且小于该丢包率范围的最大值时,传输业务层将该丢包率范围确定为该丢包率所属的丢包率范围。Wherein, based on the transmission delay and packet loss rate, the operation of the transmission service layer to determine the delay range to which the transmission delay belongs and the packet loss rate range to which the packet loss rate belongs may be: the transport service layer obtains the stored delay range , The correspondence between the packet loss rate range and the transmission parameters includes the delay range and the packet loss rate range, and multiple delay ranges and multiple packet loss rate ranges are obtained. For each time delay range in the multiple delay ranges Delay range, when the transmission delay is greater than the minimum value of the delay range and less than the maximum value of the delay range, the transmission service layer determines the delay range as the delay range to which the transmission delay belongs; similarly, For each packet loss rate range in the plurality of 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 transport service layer will drop the packet The rate range is determined as the packet loss rate range to which the packet loss rate belongs.

进一步,当该传输状态为过载状态时,传输业务层确定业务数据传输中出现拥塞,且伴随着数据包丢失的现象,通过对第一传输参数进行调整,可以缓解传输层的拥塞和数据包丢失的现象,保证应用层当前所提供的业务能够处于正常状态;若该传输状态为轻载状态,传输业务层确定业务数据传输过程中传输的数据包较少,未能充分地利用网络层和传输层所提供的资源,通过对第一传输参数进行调整,可以使应用层当前提供的业务能够处于一个更好的状态,以提高该业务的服务质量。Further, when the transmission state is overloaded, the transmission service layer determines that there is congestion in the transmission of service data, accompanied by the phenomenon of data packet loss, and by adjusting the first transmission parameter, the congestion and data packet loss of the transmission layer can be alleviated phenomenon, to ensure that the services currently provided by the application layer can be in a normal state; if the transmission state is a light load state, the transmission service layer determines that there are fewer data packets transmitted during the business data transmission process, and cannot fully utilize the network layer and transmission The resource provided by the application layer can make the service currently provided by the application layer in a better state by adjusting the first transmission parameter, so as to improve the service quality of the service.

比如,该传输状态为过载状态,该传输时延为60ms,该丢包率为0.06%,传输业务层确定该传输层的业务数据传输过程出现拥塞,且伴随着数据包丢失的现象,为了减缓数据包的丢失,保证应用层当前提供的业务能够处于正常状态,传输业务层基于该传输时延60ms和丢包率0.06%,确定该传输时延60ms所属的时延范围为(50,65],该丢包率0.06%所属的丢包率范围为(0.04%,0.08%],从而该传输业务层基于该时延范围(50,65]和丢包率范围(0.04%,0.08%],从如下表4所示的时延范围、丢包率范围与传输参数之间的对应关系中,获取对应的传输参数为参数2,并将该参数2确定为第二传输参数。For example, the transmission status is overloaded, the transmission delay is 60ms, and the packet loss rate is 0.06%. The transmission service layer determines that the service data transmission process of the transport layer is congested and accompanied by data packet loss. In order to slow down The loss of data packets ensures that the services currently provided by the application layer can be in a normal state. Based on the transmission delay of 60ms and the packet loss rate of 0.06%, the transmission service layer determines that the delay range of the transmission delay of 60ms is (50, 65] , the packet loss rate range of 0.06% is (0.04%, 0.08%], so that the transmission service layer is based on the delay range (50, 65] and the packet loss rate range (0.04%, 0.08%], From the correspondence between the delay range, the packet loss rate range, and the transmission parameters shown in Table 4 below, the corresponding transmission parameter is obtained as parameter 2, and the parameter 2 is determined as the second transmission parameter.

表4Table 4

需要说明的是,在本发明实施例中,仅以上述表4所示的时延范围、丢包率范围与传输参数之间的对应关系为例进行说明,上述表4并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, only the corresponding relationship between the delay range, the packet loss rate range and the transmission parameters shown in the above Table 4 is used as an example for illustration, and the above Table 4 is not specific to the embodiment of the present invention. constituting a limit.

第二种情况、当第二传输协议为可靠性传输协议时,传输业务层基于该传输时延和丢包率,确定该传输时延所属的时延范围和该丢包率所属的丢包率范围,并基于该传输时延所属的时延范围和该丢包率所属的丢包率范围,从存储的时延范围、丢包率范围与拥塞算法之间的对应关系中,获取对应的拥塞算法,传输业务层基于该拥塞算法,确定第二传输参数。In the second case, when the second transmission protocol is a reliable transmission protocol, the transmission service layer determines the delay range to which the transmission delay belongs and the packet loss rate to which the packet loss rate belongs based on the transmission delay and the packet loss rate range, and based on the delay range to which the transmission delay belongs and the packet loss rate range to which the packet loss rate belongs, the corresponding congestion algorithm, and the transmission service layer determines the second transmission parameter based on the congestion algorithm.

其中,传输业务层基于该传输时延和丢包率,确定该传输时延所属的时延范围和该丢包率所属的丢包率范围与上述第一种情况类似,本发明实施例在此不再赘述。Wherein, the transmission service layer determines the delay range to which the transmission delay belongs and the packet loss rate range to which the packet loss rate belongs based on the transmission delay and the packet loss rate, which is similar to the first case above, and the embodiment of the present invention is here No longer.

另外,当传输业务层基于该拥塞算法,确定第二传输参数时,由于不同的拥塞算法,对应不同的调整比例,传输业务层可以基于该拥塞算法,从存储的拥塞算法与调整比例之间的对应关系中,获取对应的调整比例,并将该调整比例与第一传输参数相乘,得到第二传输参数。In addition, when the transmission service layer determines the second transmission parameter based on the congestion algorithm, since different congestion algorithms correspond to different adjustment ratios, the transmission service layer can use the congestion algorithm stored based on the congestion algorithm and the adjustment ratio. In the corresponding relationship, the corresponding adjustment ratio is obtained, and the adjustment ratio is multiplied by the first transmission parameter to obtain the second transmission parameter.

比如,第二传输协议为可靠性传输协议,传输业务层基于该传输时延60ms和丢包率0.06%,确定该传输时延60ms所属的时延范围为(50,65],该丢包率0.06%所属的丢包率范围为(0.04%,0.08%],从而该传输业务层基于该时延范围(50,65]和丢包率范围(0.04%,0.08%],从如下表5所示的时延范围、丢包率范围与拥塞算法之间的对应关系中,获取对应的拥塞算法为算法2,传输业务层基于该算法2,从如下表6所示的拥塞算法与调整比例之间的对应关系中,获取对应的调整比例为比例2,基于该比例2,将第一传输参数包括的各参数乘以比例2以进行调整,得到第二传输参数。For example, the second transmission protocol is a reliable transmission protocol. Based on the transmission delay of 60ms and the packet loss rate of 0.06%, the transmission service layer determines that the delay range of the transmission delay of 60ms is (50, 65], the packet loss rate The packet loss rate range of 0.06% is (0.04%, 0.08%], so the transmission service layer is based on the delay range (50, 65] and the packet loss rate range (0.04%, 0.08%], as shown in Table 5 below In the corresponding relationship between the delay range, the packet loss rate range and the congestion algorithm shown, the corresponding congestion algorithm is obtained as Algorithm 2, and the transmission service layer is based on this algorithm 2, from the congestion algorithm and the adjustment ratio shown in Table 6 below In the corresponding relationship between, the corresponding adjustment ratio is obtained as ratio 2, and based on the ratio 2, each parameter included in the first transmission parameter is multiplied by the ratio 2 for adjustment to obtain the second transmission parameter.

表5table 5

需要说明的是,在本发明实施例中,仅以上述表5所示的时延范围、丢包率范围与拥塞算法之间的对应关系为例进行说明,上述表5并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, only the corresponding relationship between the delay range, the packet loss rate range and the congestion algorithm shown in Table 5 above is used as an example for illustration, and the above Table 5 is not specific to the embodiment of the present invention. constituting a limit.

表6Table 6

拥塞算法congestion algorithm 调整比例adjust the ratio 算法1Algorithm 1 比例1Scale 1 算法2Algorithm 2 比例2Scale 2 算法3Algorithm 3 比例3Scale 3 ……... ……...

需要说明的是,在本发明实施例中,仅以上述表6所示的拥塞算法与调整比例之间的对应关系为例进行说明,上述表6并不对本发明实施例构成限定。It should be noted that, in the embodiment of the present invention, only the correspondence between the congestion algorithm and the adjustment ratio shown in Table 6 is used as an example for illustration, and the above Table 6 does not limit the embodiment of the present invention.

进一步地,由于该传输状态信息不仅可以包括传输层状态信息,还可以包括网络层状态信息,因此,该传输业务层不仅可以基于传输层状态信息,通过上述步骤302-304得到第二传输和第二传输协议参数时,还可以基于传输层状态信息和网络层状态信息,综合性地确定第二传输协议和第二传输协议参数,从而可以使调整后的第二传输协议和第二传输参数更准确,以保证传输层的业务数据传输顺利进行,提高业务数据传输的速度和质量。Further, since the transmission status information can include not only the status information of the transport layer, but also the status information of the network layer, the transport service layer can not only obtain the second transmission and the second transmission based on the transport layer status information through the above steps 302-304. When the parameters of the second transmission protocol are used, the second transmission protocol and the second transmission protocol parameters can also be comprehensively determined based on the transmission layer state information and the network layer state information, so that the adjusted second transmission protocol and the second transmission parameters can be more accurate Accurate to ensure the smooth progress of business data transmission at the transport layer and improve the speed and quality of business data transmission.

也即是,在本发明实施例中,传输业务层确定第二传输协议和第二传输协议参数包括两种方法:第一种方法,传输业务层基于传输层状态信息,确定第二传输协议和第二传输协议参数;第二种方法,传输业务层基于传输层状态信息和网络层状态信息,确定第二传输协议和第二传输协议参数。That is, in the embodiment of the present invention, the transmission service layer determines the second transmission protocol and the second transmission protocol parameters include two methods: the first method, the transmission service layer determines the second transmission protocol and the second transmission protocol parameters based on the transport layer status information The second transmission protocol parameter; the second method, the transmission service layer determines the second transmission protocol and the second transmission protocol parameters based on the transmission layer status information and the network layer status information.

步骤305:将第二传输协议和第二传输参数发送给该传输层,使该传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据。Step 305: Send the second transmission protocol and the second transmission parameters to the transport layer, so that the transport layer transmits the subsequent service data of the first service based on the second transmission protocol and the second transmission parameters.

当传输业务层确定第二传输协议和第二传输参数时,传输业务层将第二传输协议和第二传输参数发送给该传输层,使该传输层基于第二传输协议和第二传输参数进行业务数据传输,以实现对该业务数据传输过程的控制,避免传输层或者网络层出现拥塞、数据包丢失等现象,也使业务数据传输能够充分利用传输层和网络层的资源,提高业务数据传输的速度和质量,同时保证该应用层当前所提供的业务处于正常状态。When the transmission service layer determines the second transmission protocol and the second transmission parameters, the transmission service layer sends the second transmission protocol and the second transmission parameters to the transmission layer, so that the transmission layer performs the transmission based on the second transmission protocol and the second transmission parameters. Business data transmission, in order to realize the control of the business data transmission process, avoid congestion and data packet loss at the transport layer or network layer, and also enable business data transmission to make full use of resources at the transport layer and network layer to improve business data transmission. speed and quality, while ensuring that the services currently provided by the application layer are in a normal state.

进一步地,当传输业务层将第二传输协议和第二传输参数发送给该传输层,使该传输层基于第二传输协议和第二传输参数进行业务数据传输之后,为了使下次的业务数据传输能够更快的进入正常状态,以减少调整传输层的传输协议和传输参数的时间,传输业务层可以存储第二传输协议和第二传输参数,当该传输层重新建立传输业务数据的第二传输连接时,传输业务层可以直接将该传输层的传输协议和传输参数配置为第二传输协议和第二传输参数。Further, when the transport service layer sends the second transport protocol and the second transport parameters to the transport layer, so that the transport layer performs service data transmission based on the second transport protocol and the second transport parameters, in order to make the next service data The transmission can enter the normal state faster, so as to reduce the time for adjusting the transmission protocol and transmission parameters of the transmission layer. The transmission service layer can store the second transmission protocol and the second transmission parameters. When the transmission layer re-establishes the second transmission service data During the transmission connection, the transmission service layer may directly configure the transmission protocol and transmission parameters of the transmission layer as the second transmission protocol and the second transmission parameters.

比如,第二传输协议为TCP协议,第二传输参数包括拥塞窗口、最大传输单元、缓冲区和传输带宽等参数,且拥塞窗口为20kb/s、最大传输单元为110bit、缓冲区为3M、传输带宽为5M/s等,传输业务层将第二传输协议TCP协议和第二传输参数包括的拥塞窗口20kb/s、最大传输单元110bit、缓冲区3M、传输带宽5M/s等进行存储,当该传输层重新建立传输业务数据的第二传输连接时,传输业务层可以直接将该传输层的传输协议配置为TCP协议,将传输参数包括的拥塞窗口配置为20kb/s、最大传输单元配置为110bit、缓冲区配置为3M、传输带宽配置为5M/s等,以使业务数据传输更快的进入正常状态。For example, the second transmission protocol is the TCP protocol, and the second transmission parameters include parameters such as congestion window, maximum transmission unit, buffer, and transmission bandwidth, and the congestion window is 20kb/s, the maximum transmission unit is 110bit, the buffer is 3M, and the transmission The bandwidth is 5M/s, etc., and the transmission service layer stores the congestion window 20kb/s, maximum transmission unit 110bit, buffer 3M, transmission bandwidth 5M/s, etc. included in the second transmission protocol TCP protocol and the second transmission parameters, when the When the transport layer re-establishes the second transport connection for transporting business data, the transport service layer can directly configure the transport protocol of the transport layer as the TCP protocol, configure the congestion window included in the transport parameters as 20kb/s, and configure the maximum transmission unit as 110bit , The buffer configuration is 3M, the transmission bandwidth is configured as 5M/s, etc., so that the business data transmission can enter the normal state faster.

在本发明实施例中,在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据时,该传输业务层接收传输状态信息,该传输状态信息至少包括传输层状态信息,传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数,将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据,从而可以利用更高效的第二传输协议传输该第一业务的业务数据,避免在业务数据传输过程中出现拥塞和数据包丢失等现象,提高了业务数据传输的速度和质量。In the embodiment of the present invention, when the transport layer transmits the service data of the first service through the first transport protocol and the first transport parameters, the transport service layer receives the transport status information, the transport status information includes at least the transport layer status information, and the transport Based on the transmission state information, the business layer determines the second transmission protocol and the second transmission parameters, sends the second transmission protocol and the second transmission parameters to the transmission layer, and makes the transmission layer transmit the first transmission protocol and the second transmission parameters based on the second transmission protocol and the second transmission parameters. The subsequent business data of the business, so that the business data of the first business can be transmitted using the more efficient second transmission protocol, avoiding congestion and data packet loss during business data transmission, and improving the speed and quality of business data transmission .

图4是本发明实施例提供了一种业务数据传输装置的结构示意图,参见图4,该装置包括:第一接收模块401,确定模块402,第一发送模块403。FIG. 4 is a schematic structural diagram of a service data transmission device provided by an embodiment of the present invention. Referring to FIG. 4 , the device includes: a first receiving module 401 , a determining module 402 , and a first sending module 403 .

第一接收模块401,用于在传输层通过第一传输协议和第一传输参数传输第一业务是业务数据的过程中,传输业务层接收传输状态信息,该传输状态信息至少包括传输层状态信息,该第一传输协议和第一传输参数为当前配置给该传输层的传输协议和传输参数;The first receiving module 401 is configured to receive transmission status information at the transmission service layer during the process of the transmission layer transmitting the first service is service data through the first transmission protocol and the first transmission parameter, and the transmission status information includes at least the transmission layer status information , the first transmission protocol and the first transmission parameter are the transmission protocol and transmission parameters currently configured for the transport layer;

确定模块402,用于该传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数;A determining module 402, configured for the transmission service layer to determine a second transmission protocol and a second transmission parameter based on the transmission state information;

第一发送模块403,用于该传输业务层将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据。The first sending module 403 is used for the transmission service layer to send 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.

可选地,该该传输状态信息还包括网络层状态信息。Optionally, the transmission status information also includes network layer status information.

可选地,参见图5,该装置还包括第二接收模块404,获取模块405,注册模块406。Optionally, referring to FIG. 5 , the device further includes a second receiving module 404 , an obtaining module 405 , and a registration module 406 .

第二接收模块404,用于接收应用层发送的业务需求参数,该业务需求参数为应用层所提供的第一业务处于正常状态时所需的参数;The second receiving module 404 is configured to receive a service requirement parameter sent by the 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;

获取模块405,用于从该业务需求参数中,获取门限参数;An acquisition module 405, configured to acquire threshold parameters from the service requirement parameters;

注册模块406,用于基于该门限参数,向相关层注册关键事件,该关键事件用于当相关层的传输参数超过门限参数时,向传输业务层上报传输状态信息,该相关层至少包括传输层。The registration module 406 is configured to register a key event with the relevant layer based on the threshold parameter, and the key event is used to report the transmission status information to the transmission service layer when the transmission parameter of the relevant layer exceeds the threshold parameter, and the relevant layer includes at least the transmission layer .

可选地,参见图6,该装置还包括第二发送模块407。Optionally, referring to FIG. 6 , the device further includes a second sending module 407 .

第二发送模块407,用于将上报周期发送给相关层,使相关层每隔上报周期向传输业务层上报传输状态信息,该相关层至少包括该传输层。The second sending module 407 is configured to send the reporting period to the relevant layer, so that the relevant layer reports the transmission status information to the transport service layer every reporting period, and the relevant layer includes at least the transport layer.

可选地,参见图7,该装置还包括上报模块408。Optionally, referring to FIG. 7 , the device further includes a reporting module 408 .

上报模块408,用于当相关层传输业务数据的第一传输连接断开时,向传输业务层上报传输状态信息。The reporting module 408 is configured to report the transmission status information to the transmission service layer when the first transmission connection of the relevant layer to transmit service data is disconnected.

可选地,参见图8,确定模块402包括获取单元4021,第一确定单元4022,第二确定单元4023,第三确定单元4024。Optionally, 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 .

获取单元4021,用于从传输状态信息中,获取传输时延和丢包率;An acquiring unit 4021, configured to acquire the transmission delay and packet loss rate from the transmission status information;

第一确定单元4022,用于基于传输时延和丢包率,确定相关层的传输状态;The first determining unit 4022 is configured to determine the transmission state of the relevant layer based on the transmission delay and the packet loss rate;

第二确定单元4023,用于确定该第一业务所属的业务类型和网络层当前所连接网络的网络类型;The second determining unit 4023 is configured to determine the service type to which the first service belongs and the network type of the network currently connected to the network layer;

第三确定单元4024,用于基于传输时延、丢包率、传输状态、业务类型和网络类型,确定第二传输协议和第二传输参数。The third determining unit 4024 is configured to determine the second transmission protocol and the second transmission parameters based on transmission delay, packet loss rate, transmission status, service type and network type.

可选地,参见图9,第一确定单元4022包括第一确定子单元40221,第二确定子单元40222,第三确定子单元40223。Optionally, referring to FIG. 9 , the first determining unit 4022 includes a first determining subunit 40221 , a second determining subunit 40222 , and a third determining subunit 40223 .

第一确定子单元40221,用于当传输时延大于或等于第一指定时延且丢包率大于或等于第一指定丢包率时,确定相关层的传输状态为过载状态;The first determination subunit 40221 is used to determine that the transmission state of the relevant layer is an overload state when the transmission delay is greater than or equal to the first specified delay and the packet loss rate is greater than or equal to the first specified packet loss rate;

第二确定子单元40222,用于当传输时延小于或等于第二指定时延且丢包率小于或等于第二指定丢包率时,确定相关层的传输状态为轻载状态;The second determining subunit 40222 is used 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 delay and the packet loss rate is less than or equal to the second specified packet loss rate;

第三确定子单元40223,用于当传输时延小于第一指定时延且大于第二指定时延,或者丢包率小于第一指定丢包率且大于第二指定丢包率时,确定相关层的传输状态为正常状态。The third determining subunit 40223 is used to determine the relevant The transport status of the layer is normal.

可选地,参见图10,第三确定单元4024包括第四确定子单元40241,第五确定子单元40242。Optionally, referring to FIG. 10 , the third determining unit 4024 includes a fourth determining subunit 40241 and a fifth determining subunit 40242 .

第四确定子单元40241,用于基于该业务类型和该网络类型,确定第二传输协议;The fourth determining subunit 40241 is configured to determine the second transmission protocol based on the service type and the network type;

第五确定子单元40242,用于基于该传输时延、丢包率和传输状态,确定第二传输参数。The fifth determination subunit 40242 is configured to determine the second transmission parameter based on the transmission delay, packet loss rate and transmission status.

可选地,该装置还包括存储器,用于存储第二传输协议和第二传输参数。Optionally, the device further includes a memory for storing the second transmission protocol and the second transmission parameters.

该第一发送模块403具体用于当传输层重新建立传输业务数据的第二传输连接时,将传输层的传输参数配置为所述第二传输参数,以及将传输层的传输协议配置为所述第二传输协议。The first sending module 403 is specifically configured to configure the transmission parameters of the transport layer as the second transmission parameters when the transport layer re-establishes the second transmission connection for transmitting service data, and configure the transmission protocol of the transport layer as the Second transfer protocol.

综上所述,在本发明实施例中,在传输层通过第一传输协议和第一传输参数传输第一业务是业务数据的过程中该传输业务层接收传输状态信息,该传输状态信息至少包括传输层状态信息,传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数,将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据,从而可以利用更高效的第二传输协议传输该第一业务的业务数据,避免在业务数据传输过程中出现拥塞和数据包丢失等现象,提高了业务数据传输的速度和质量。To sum up, in the embodiment of the present invention, during the process of the transport layer transmitting the first service is service data through the first transport protocol and the first transmission parameter, the transport service layer receives transmission status information, and the transmission status information includes at least Transport layer status information, the transport service layer determines the second transmission protocol and the second transmission parameters based on the transmission status information, sends the second transmission protocol and the second transmission parameters to the transport layer, and makes the transport layer based on the second transmission protocol and the first The second transmission parameter transmits the follow-up service data of the first service, so that the service data of the first service can be transmitted using a more efficient second transmission protocol, avoiding congestion and data packet loss during service data transmission, and improving service Speed and quality of data transfer.

需要说明的是:上述实施例提供的业务数据传输装置在业务数据传输时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的业务数据传输的装置与业务数据传输的方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: the business data transmission device provided by the above embodiment only uses the division of the above-mentioned functional modules as an example for illustration during business data transmission. In practical applications, the above-mentioned function allocation can 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 functions described above. In addition, the service data transmission device and the service data transmission method embodiment provided by the above embodiment belong to the same idea, and the specific implementation process thereof is detailed in the method embodiment, and will not be repeated here.

参见图11,本发明实施例提供了一种业务数据传输设备,该设备包括:处理器1101、存储器1102、总线1103和通信接口1108;Referring to FIG. 11, an embodiment of the present invention provides a service data transmission device, which includes: a processor 1101, a memory 1102, a bus 1103, and a communication interface 1108;

存储器1102用于存储计算机执行指令11021,处理器1101与存储器1102通过该总线1103连接,当所述设备运行时,处理器1101执行存储器1102存储的计算机执行指令,以使所述设备执行图2或图3所示的业务数据传输方法。The memory 1102 is used to store computer-executable instructions 11021, and the processor 1101 and the memory 1102 are connected through the bus 1103. When the device is running, the processor 1101 executes the computer-executable instructions stored in the memory 1102, so that the device executes FIG. 2 or The service data transmission method shown in FIG. 3 .

在本发明实施例中,传输业务层在传输层通过第一传输协议和第一传输参数传输第一业务的业务数据的过程中接收传输状态信息时,该传输状态信息至少包括传输层状态信息,传输业务层基于该传输状态信息,确定第二传输协议和第二传输参数,将第二传输协议和第二传输参数发送给传输层,使传输层基于第二传输协议和第二传输参数传输第一业务的后续业务数据,从而可以利用更高效的第二传输协议传输该第一业务的业务数据,避免在业务数据传输过程中出现拥塞和数据包丢失等现象,提高了业务数据传输的速度和质量。In the embodiment of the present invention, when the transport service layer receives the transmission status information during the process of the transport layer transmitting the service data of the first service through the first transmission protocol and the first transmission parameter, the transmission status information includes at least the transport layer status information, The transmission service layer determines the second transmission protocol and the second transmission parameters based on the transmission status information, and sends the second transmission protocol and the second transmission parameters to the transmission layer, so that the transmission layer transmits the second transmission protocol and the second transmission parameters based on the second transmission protocol and the second transmission parameters. Subsequent business data of a business, so that the business data of the first business can be transmitted using a more efficient second transmission protocol, avoiding congestion and data packet loss during business data transmission, and improving the speed and speed of business data transmission. quality.

本领域普通技术人员可以理解实现上述实施例的全部或部分步骤可以通过硬件来完成,也可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可读存储介质中,上述提到的存储介质可以是只读存储器,磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, and can also be completed by instructing related hardware through a program. The program can be stored in a computer-readable storage medium. The above-mentioned The storage medium mentioned may be a read-only memory, a magnetic disk or an optical disk, and the like.

以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within range.

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)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113973134B (en) * 2020-07-23 2025-06-13 阿里巴巴集团控股有限公司 Data transmission method, device, electronic device and computer storage medium

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 mode terminal supporting different packet frame mode and its supporting method
KR100748710B1 (en) * 2006-02-14 2007-08-13 주식회사 엘지데이콤 Network communication service method using TC converter
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 device and data transmission system thereof
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 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
CN106506434A (en) 2017-03-15
WO2017041569A1 (en) 2017-03-16

Similar Documents

Publication Publication Date Title
US11558302B2 (en) Data transmission method and apparatus
EP3278514B1 (en) Data transmission
CN104158761B (en) A kind of method and apparatus of bypass flow
US10461986B2 (en) Data transmission method, apparatus, and system
WO2019029318A1 (en) Network congestion notification method, proxy node and computer device
US20190149475A1 (en) Unified streamlining for data traffic
US20150237525A1 (en) Traffic Shaping and Steering for a Multipath Transmission Control Protocol Connection
KR102267116B1 (en) Packet transmission method, proxy server and computer readable storage medium
US20130182601A1 (en) System and Method for Aggregating and Estimating the Bandwidth of Multiple Network Interfaces
WO2019179157A1 (en) Data traffic processing method and related network device
CN103532909A (en) Multi-stream service concurrent transmission method, sub-system, system and multi-interface terminal
US20170027016A1 (en) Communication device, wireless communication device, and communication method
WO2018219100A1 (en) Data transmission method and device
Wang et al. TCP congestion control algorithm for heterogeneous Internet
CN105376173A (en) Sending window flow control method and terminal
CN108234309A (en) A kind of transmission method of network data
US20220070736A1 (en) Traffic steering device
CN105262836A (en) Information push method of server and push information reception method of client
CN110944358A (en) Data transmission method and device
US11218910B2 (en) First node and a second node and methods of operating the same
US20240314080A1 (en) Parameter adjustment method and apparatus
CN106506434B (en) Service data transmission method and device
CN110876160B (en) Resource transmission control method and device based on multi-mode base station
EP3562108B1 (en) Load sharing between hybrid tunnels
US11956328B1 (en) Avoiding stuck subscriber sessions on a disaggregated broadband network gateway

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