CN114157727A - Application method and device of TCP acceleration in OSU - Google Patents

Application method and device of TCP acceleration in OSU Download PDF

Info

Publication number
CN114157727A
CN114157727A CN202111507649.9A CN202111507649A CN114157727A CN 114157727 A CN114157727 A CN 114157727A CN 202111507649 A CN202111507649 A CN 202111507649A CN 114157727 A CN114157727 A CN 114157727A
Authority
CN
China
Prior art keywords
tcp
osu
window size
connection
message
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.)
Granted
Application number
CN202111507649.9A
Other languages
Chinese (zh)
Other versions
CN114157727B (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.)
Beijing Huahuan Electronics Co Ltd
Original Assignee
Beijing Huahuan Electronics 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 Beijing Huahuan Electronics Co Ltd filed Critical Beijing Huahuan Electronics Co Ltd
Priority to CN202111507649.9A priority Critical patent/CN114157727B/en
Publication of CN114157727A publication Critical patent/CN114157727A/en
Application granted granted Critical
Publication of CN114157727B publication Critical patent/CN114157727B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Landscapes

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

Abstract

The application relates to a method and equipment for applying TCP acceleration in an OSU (open service Unit), wherein the method comprises the following steps: identifying the type of the message received by the Ethernet interface in real time, judging the type of the TCP message when the message is the TCP message, and modifying the window size correlation value of the TCP message according to the pre-calculated window size correlation value available for the local TCP connection and the type of the TCP message. Because the window size related value available for the TCP connection at the home terminal is calculated according to the bandwidth currently allocated to the OSU connection established at the home terminal and the available buffer space of the home terminal equipment, the window size of the TCP message is changed accordingly by correspondingly modifying the window size related value of the TCP message, the bandwidth of the OSU channel can be fully and completely utilized when the TCP message is transmitted, and the transmission rate is improved. And finally, executing a corresponding sending process on the TCP message according to the type of the TCP message, so that the TCP message can be transmitted quickly and efficiently.

Description

Application method and device of TCP acceleration in OSU
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for applying TCP acceleration to an OSU.
Background
The conventional Optical Transport Network (OTN) technology has the advantages of large bandwidth, hard pipe, multi-service carrying capability, and an Operation and Maintenance management (OAM) mechanism at a carrier level, and is a carrying technology widely adopted in the industry, and is deployed in a backbone Network and a metropolitan area Network in a large scale. With the development of informatization and cloud technology, the bearing requirements of special line and video service are more and more flourishing. These services are characterized by small bandwidth, large quantity and simple and fast bandwidth flexible adjustment. Against this background of demand, Optical Service Unit (OSU) technology has emerged. The OSU provides finer time slot granularity and a simpler bandwidth lossless adjustment mechanism on the premise of keeping the technical advantages of a traditional OTN hard pipeline, rich OAM and the like, supports the high-efficiency bearing of client services with the speed of 2M-100 Gbps, and enables the OTN to have the capability of sinking from a backbone core to an access terminal.
In recent years, with the rapid development and popularization of the internet in the world, the number of netizens increases, and the dependence of all aspects in life on the internet is enhanced, so that the amount of internet access is explosively increased. A Transmission Control Protocol (TCP) is also increasingly used by various application software, and due to the particularity of the design of the current TCP Protocol stack, various congestion Control algorithms are introduced to ensure the stability and fairness of TCP Transmission, but the problem of insufficient utilization rate still exists in the use of network bandwidth.
In the conventional OTN technology, a hard pipeline for service cross distribution is a technical characteristic thereof, and is used to guarantee bandwidth of a bound service, but the granularity of the pipeline bandwidth is too large, which causes a great problem in the utilization rate of the bandwidth. The emerging OSU technology aims to solve the problems of large granularity and insufficient bandwidth utilization rate of the traditional OTN service. Although the OSU has a lossless bandwidth adjustment technology to improve the utilization rate of the pipeline bandwidth, the TCP type service is constrained by the protocol design, and cannot fully utilize the characteristics of the OSU pipeline, and the transmission rate and the bandwidth utilization rate are limited by the congestion control algorithm of the OSU.
Disclosure of Invention
In order to overcome the problem that the OSU pipeline cannot be fully utilized by TCP type services in the related art at least to a certain extent, the application provides a method and equipment for applying TCP acceleration in an OSU.
The scheme of the application is as follows:
according to a first aspect of the embodiments of the present application, there is provided an application method of TCP acceleration in an OSU, including:
identifying the type of the message received by the Ethernet interface in real time;
when the message is a TCP message, judging the type of the TCP message;
modifying the window size correlation value of the TCP message according to the pre-calculated available window size correlation value of the home terminal TCP connection and the type of the TCP message; the relevant value of the size of the available window of the TCP connection of the local end is obtained by calculation according to the bandwidth currently allocated by the OSU connection established by the local end and the available buffer space of the local end equipment;
and executing a corresponding sending process on the TCP message according to the type of the TCP message.
Preferably, in an implementation manner of the present application, the method further includes:
acquiring a bandwidth currently allocated by an OSU connection established by a local terminal and an available cache space of local terminal equipment;
calculating the size value of the available window of the TCP connection at the local end according to the currently allocated bandwidth of the OSU connection and the available cache space of the local end equipment, and storing the size value as a global variable;
and the size value of the available window of the local TCP connection takes the smaller value of the bandwidth currently allocated by the OSU connection and the available buffer space of the local equipment, and the size value of the available window of the local TCP connection is not less than the product of the bandwidth currently allocated by the OSU connection and the current round-trip delay of the OSU connection.
Preferably, in an implementation manner of the present application, the method further includes:
initializing a relevant value of the size of an available window of the TCP connection at the home terminal;
obtaining a home terminal TCP connection available window size related value corresponding to the home terminal TCP connection available window size value according to the home terminal TCP connection available window size value and a weighting calculation formula of the home terminal TCP connection available window size related value;
and saving the relevant value of the available window size of the local TCP connection.
Preferably, in an implementation manner of the present application, the modifying the window size related value of the TCP packet according to the pre-calculated available window size related value of the local TCP connection and the type of the TCP packet includes:
if the TCP message is an uplink TCP message;
and modifying the window size correlation value of the TCP message into the usable window size correlation value of the home terminal TCP connection.
Preferably, in an implementation manner of the present application, the modifying the window size related value of the TCP packet according to the pre-calculated available window size related value of the local TCP connection and the type of the TCP packet further includes:
if the TCP message is a downlink TCP message;
calculating the window size of the TCP message according to the window size correlation value of the TCP message;
and when the window size of the TCP message is larger than the size value of the available window of the home terminal TCP connection, modifying the window size related value of the TCP message into the size related value of the available window of the home terminal TCP connection.
Preferably, in an implementation manner of the present application, the executing a corresponding sending process on the TCP packet according to the type of the TCP packet includes:
if the TCP message is an uplink TCP message, searching whether the established OSU connection exists in the TCP service;
if the OSU connection is not established, a new OSU connection is established, an OSU label for marking an OSU channel is generated and stored in a global table item;
marking an OSU label on the uplink TCP message;
sending the uplink TCP message to an OTN through an OSU channel;
and if the established OSU connection exists, the uplink TCP message is directly sent to the OTN through the OSU channel.
Preferably, in an implementation manner of the present application, the executing a corresponding sending process on the TCP packet according to the type of the TCP packet further includes:
and if the TCP message is a downlink TCP message, deleting an OSU label contained in the downlink TCP message, and sending the downlink TCP message to an Ethernet interface connected and mapped by an OSU.
Preferably, in an implementation manner of the present application, before modifying the window size correlation value of the TCP packet according to the pre-calculated available window size correlation value of the local TCP connection and the type of the TCP packet, the method further includes:
verifying whether the window size related value of the TCP message meets the preset requirement or not according to the window size related value available for the local TCP connection;
when the window size correlation value of the TCP message meets the preset requirement, executing a corresponding sending process on the TCP message directly according to the type of the TCP message;
the preset requirements include: the window size value of the TCP message obtained according to the window size related value of the TCP message is smaller than the available window size value of the local TCP connection obtained according to the available window size related value of the local TCP connection; and the difference value between the window size value of the TCP message and the available window size value of the local TCP connection is in a preset range.
Preferably, in an implementation manner of the present application, the method further includes: and monitoring the currently allocated bandwidth of the OSU connection in real time.
According to a second aspect of the embodiments of the present application, there is provided an application device in an OSU based on TCP acceleration, including:
a processor and a memory;
the processor and the memory are connected through a communication bus:
the processor is used for calling and executing the program stored in the memory;
the memory is used for storing a program, and the program is at least used for executing the application method of TCP acceleration in the OSU.
The technical scheme provided by the application can comprise the following beneficial effects: the application method of the TCP acceleration in the OSU comprises the following steps: identifying the type of the message received by the Ethernet interface in real time, judging the type of the TCP message when the message is the TCP message, and modifying the window size correlation value of the TCP message according to the pre-calculated window size correlation value available for the local TCP connection and the type of the TCP message. Because the window size related value available for the TCP connection at the home terminal is calculated according to the bandwidth currently allocated to the OSU connection established at the home terminal and the available buffer space of the home terminal equipment, the window size of the TCP message is changed accordingly by correspondingly modifying the window size related value of the TCP message, the bandwidth of the OSU channel can be fully and completely utilized when the TCP message is transmitted, and the transmission rate is improved. And finally, executing a corresponding sending process on the TCP message according to the type of the TCP message, so that the TCP message can be transmitted quickly and efficiently.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
Fig. 1 is a method for applying TCP acceleration to an OSU according to an embodiment of the present application;
fig. 2 is a diagram of a virtual device structure corresponding to an application method of TCP acceleration in an OSU according to an embodiment of the present application;
fig. 3 is a block diagram of an application device in an OSU for TCP acceleration according to an embodiment of the present application.
Reference numerals: a processor-21; a memory-22.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
A method for applying TCP acceleration in an OSU, referring to fig. 1, includes:
s11: identifying the type of the message received by the Ethernet interface in real time;
fig. 2 is a virtual device model structure diagram corresponding to the application method of TCP acceleration in the OSU provided in this embodiment when implemented. The method is based on sensing and identifying the flow of the equipment, mainly faces to the Ethernet service, and realizes the sensing of the flow at the interface of the customer service side. The virtual device mainly comprises a service side interface, an ethernet processing/switching module, an OSU cross module, an ODUk cross module and an OTN line side interface. In order to support the flow sensing function, two modules of flow monitoring and OSU connection decision are introduced behind an Ethernet service interface and are used for flow sensing and connection decision. Since the method needs to monitor both the uplink and downlink traffic, the traffic monitoring module can be located before or after the ethernet processing.
In this embodiment, the traffic monitoring module monitors and identifies the type of the packet received by the ethernet interface in real time.
S12: when the message is a TCP message, judging the type of the TCP message;
in this embodiment, the manner of modifying the window size correlation value is also different for different types of TCP messages.
S13: modifying the window size correlation value of the TCP message according to the pre-calculated available window size correlation value of the home terminal TCP connection and the type of the TCP message; the relevant value of the size of the available window of the TCP connection of the local end is obtained by calculation according to the bandwidth currently allocated by the OSU connection established by the local end and the available buffer space of the local end equipment;
in this embodiment, the relevant value of the size of the available window of the local TCP connection needs to be calculated in advance, and the specific process is as follows:
acquiring a bandwidth currently allocated by an OSU connection established by a local terminal and an available cache space of local terminal equipment;
calculating the size value of a local TCP connection available window according to the currently allocated bandwidth and the local device available cache space of OSU connection, and storing the size value as a global variable;
the size value of the available window of the TCP connection at the home terminal takes the smaller value of the bandwidth currently allocated by the OSU connection and the available buffer space of the equipment at the home terminal, and the size value of the available window of the TCP connection at the home terminal is not less than the product of the bandwidth currently allocated by the OSU connection and the current round-trip delay of the OSU connection.
Initializing a relevant value of the size of an available window of the TCP connection at the home terminal;
obtaining a corresponding local TCP connection available window size related value corresponding to the local TCP connection available window size value according to the local TCP connection available window size value and a weighting calculation formula of the local TCP connection available window size related value;
and storing the relevant value of the available window size of the TCP connection at the home terminal.
The amount of data that a sender of a TCP connection can send at a certain time is controlled by a sliding window, and the size of the sliding window is mainly determined by an advertisement window of a receiver. The window value is in the TCP protocol header information and is sent to the sending end along with the ACK packet of the data, the window value indicates how much remaining space is left in the TCP protocol buffer of the receiving end, the sending end must ensure that the sent data does not exceed the remaining space so as to avoid buffer overflow, the notification window is used for flow limitation by the receiving end, and in the transmission process, the size of the notification window is related to the speed of the process of the receiving end for taking out the data. The congestion window of another sending end can also determine the amount of data to be sent, and the method in this embodiment mainly solves the window limitation of the receiving end, thereby improving the TCP transmission efficiency and the bandwidth utilization rate, so this embodiment of the congestion window of the sending end is not explained.
The transmission rate of the TCP is related to the currently allocated bandwidth B and the round trip time RTT connected to the sliding window size value W, OSU, when W < B × RTT, the most direct factor affecting the TCP sending data rate is the size of the sliding window; when W > B RTT, what affects the rate is the bandwidth size. For the latter case, the bandwidth adjustment capability of the OSU can be solved, and therefore, the main purpose of the method in this embodiment is to solve the problem of the limitation of the size value of the sliding window in the former case.
In this embodiment, the size value of the available window of the local TCP connection, that is, the size of the data size local _ w _ size that can be received by the local TCP connection, is calculated according to the currently allocated bandwidth of the OSU connection and the available buffer space of the device. The size of the local _ w _ size is as large as possible on the premise of ensuring that the size is not smaller than the product of the bandwidth B currently allocated to the OSU connection and the current round trip delay RTT of the OSU connection, and the upper limit value is smaller in the bandwidth currently allocated to the OSU connection and the available buffer space of the local terminal equipment.
The size of the TCP receive Window is obtained from Window size ^ 2 Window scale in the header of the packet, and in this embodiment, two local TCP connection available Window size correlation values local _ size and local _ scale are set. So that the available window size value of the local TCP connection is obtained by the relevant value local _ size ^ 2 local _ scale of the available window size of the local TCP connection. And further, the relevant value of the size of the available window of the local TCP connection corresponding to the size value of the available window of the local TCP connection can be obtained according to the weighted calculation formula of the size of the available window of the local TCP connection and the relevant value of the size of the available window of the local TCP connection.
In this embodiment, for different TCP packet types, the manner of modifying the window size correlation value is also different, which is specifically as follows:
1) if the TCP message is an uplink TCP message;
and modifying the window size correlation value of the TCP message into a home terminal TCP connection available window size correlation value.
For the uplink message of the Ethernet service interface, after the traffic sensing module identifies the TCP type, the local _ Size and the local _ scale stored locally are taken out to replace the Window Size and the Window scale in the message header.
2) If the TCP message is a downlink TCP message;
calculating the window size of the TCP message according to the window size correlation value of the TCP message;
and when the window size of the TCP message is larger than the size value of the available window of the home terminal TCP connection, modifying the window size related value of the TCP message into the size related value of the available window of the home terminal TCP connection.
When the TCP message is a downlink TCP message, the window size of the TCP message is calculated according to the window size related value of the TCP message, and when the window size of the TCP message is larger than the window size value available for the local TCP connection, the window size related value of the TCP message is modified into the window size related value available for the local TCP connection. The purpose of the comparison step is to avoid that when the size of the receiving window of the home terminal device is smaller than that of the remote terminal device, the amount of data sent by the user side is larger than that of the receiving window of the home terminal device, which results in that the message is discarded at the home terminal due to insufficient cache.
S14: and executing a corresponding sending process on the TCP message according to the type of the TCP message.
Specifically, the method comprises the following steps:
1) if the TCP message is an uplink TCP message, searching whether the established OSU connection exists in the TCP service;
if the OSU connection is not established, a new OSU connection is established, an OSU label for marking an OSU channel is generated and stored in a global table item;
marking an OSU label on an uplink TCP message;
sending the uplink TCP message to an OTN through an OSU channel;
and if the established OSU connection exists, the uplink TCP message is directly sent to the OTN through the OSU channel.
The Ethernet service interface receives the user message, and before sending the user message to the Ethernet switching/processing module, the flow monitoring module senses and identifies whether the user message is a TCP type message. If the message is of a TCP type, a flow _ index is created to identify the TCP service of the configuration. In this embodiment, the OSU autonomous connection decision module searches whether the TCP service has already established the OSU connection, and if the connection is not established, a new OSU connection is created, and OSU _ index for identifying the OSU channel is generated and stored in the global entry. While the autonomous connection decision module performs the above operation, the ethernet switching module marks a label (OSU label) containing OSU _ index on the TCP packet. And then the OSU cross module decides to send the optical network from the designated OTN interface.
2) And if the TCP message is a downlink TCP message, deleting an OSU label contained in the downlink TCP message, and sending the downlink TCP message to an Ethernet interface connected and mapped by the OSU.
For downlink TCP messages, the OSU connection establishment process is not needed. When the downlink TCP message is sent to the Ethernet switching module by the OSU cross module, the OSU _ index label contained in the downlink TCP message is directly deleted, and then the downlink TCP message is sent out by the Ethernet switching module through the Ethernet service interface.
The application method and the device of the TCP acceleration in the OSU in the embodiment comprise the following steps: identifying the type of the message received by the Ethernet interface in real time, judging the type of the TCP message when the message is the TCP message, and modifying the window size correlation value of the TCP message according to the pre-calculated window size correlation value available for the local TCP connection and the type of the TCP message. Because the window size related value available for the TCP connection at the home terminal is calculated according to the bandwidth currently allocated to the OSU connection established at the home terminal and the available buffer space of the home terminal equipment, the window size of the TCP message is changed accordingly by correspondingly modifying the window size related value of the TCP message, the bandwidth of the OSU channel can be fully and completely utilized when the TCP message is transmitted, and the transmission rate is improved. And finally, executing a corresponding sending process on the TCP message according to the type of the TCP message, so that the TCP message can be transmitted quickly and efficiently.
In some embodiments, before modifying the window size correlation value of the TCP packet according to the pre-calculated available window size correlation value of the local TCP connection and the type of the TCP packet, the method of applying the TCP acceleration in the OSU further includes:
verifying whether the window size related value of the TCP message meets the preset requirement or not according to the available window size related value of the home terminal TCP connection;
when the window size correlation value of the TCP message meets the preset requirement, executing a corresponding sending process on the TCP message directly according to the type of the TCP message;
the preset requirements include: the window size value of the TCP message obtained according to the window size related value of the TCP message is smaller than the available window size value of the local TCP connection obtained according to the available window size related value of the local TCP connection; and the difference value between the window size value of the TCP message and the available window size value of the local TCP connection is in a preset range.
In this embodiment, before modifying the window size correlation value of the TCP packet according to the pre-calculated home-end TCP connection available window size correlation value and the type of the TCP packet, it is further verified whether the window size correlation value of the TCP packet meets the preset requirement according to the home-end TCP connection available window size correlation value, that is, the window size value of the TCP packet and the size of the home-end TCP connection available window size value are compared, and when the window size value of the TCP packet is smaller than the home-end TCP connection available window size value and the difference value is within the preset range, the corresponding sending process is directly executed on the TCP packet according to the type of the TCP packet, so as to improve the forwarding efficiency.
Preferably, the predetermined range is 10%.
The application method of the TCP acceleration in the OSU in some embodiments further comprises: the currently allocated bandwidth of the OSU connection is monitored in real time.
In this embodiment, the bandwidth currently allocated by the OSU connection is also monitored in real time, the service data stream is periodically sampled, the bandwidth and the time delay of each service are counted, and the bandwidth or the time delay of the service stream is continuously 2/3 times close to the upper limit value, it is determined that the bandwidth of the client service needs to be adjusted, and a bandwidth adjustment application is initiated. After the bandwidth adjustment, the local TCP connection available window size value local _ w _ size is recalculated according to the new local device available buffer and OSU bandwidth local _ bw.
An application device in an OSU based on TCP acceleration, referring to fig. 3, includes:
a processor 21 and a memory 22;
the processor 21 is connected to the memory 22 by a communication bus:
the processor 21 is configured to call and execute a program stored in the memory 22;
a memory 22 for storing a program for executing at least one of the TCP acceleration application methods in the OSU in any of the above embodiments.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware related to instructions of a program, which may be stored in a computer readable storage medium, and when the program is executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A method for applying TCP acceleration in an OSU (open service Unit) is characterized by comprising the following steps:
identifying the type of the message received by the Ethernet interface in real time;
when the message is a TCP message, judging the type of the TCP message;
modifying the window size correlation value of the TCP message according to the pre-calculated available window size correlation value of the home terminal TCP connection and the type of the TCP message; the relevant value of the size of the available window of the TCP connection of the local end is obtained by calculation according to the bandwidth currently allocated by the OSU connection established by the local end and the available buffer space of the local end equipment;
and executing a corresponding sending process on the TCP message according to the type of the TCP message.
2. The method of claim 1, further comprising:
acquiring a bandwidth currently allocated by an OSU connection established by a local terminal and an available cache space of local terminal equipment;
calculating the size value of the available window of the TCP connection at the local end according to the currently allocated bandwidth of the OSU connection and the available cache space of the local end equipment, and storing the size value as a global variable;
and the size value of the available window of the local TCP connection takes the smaller value of the bandwidth currently allocated by the OSU connection and the available buffer space of the local equipment, and the size value of the available window of the local TCP connection is not less than the product of the bandwidth currently allocated by the OSU connection and the current round-trip delay of the OSU connection.
3. The method of claim 2, further comprising:
initializing a relevant value of the size of an available window of the TCP connection at the home terminal;
obtaining a home terminal TCP connection available window size related value corresponding to the home terminal TCP connection available window size value according to the home terminal TCP connection available window size value and a weighting calculation formula of the home terminal TCP connection available window size related value;
and saving the relevant value of the available window size of the local TCP connection.
4. The method according to claim 1, wherein said modifying the window size related value of the TCP packet according to the pre-calculated home TCP connection available window size related value and the type of the TCP packet comprises:
if the TCP message is an uplink TCP message;
and modifying the window size correlation value of the TCP message into the usable window size correlation value of the home terminal TCP connection.
5. The method according to claim 2, wherein said modifying the window size related value of the TCP packet according to the pre-calculated home TCP connection available window size related value and the type of the TCP packet further comprises:
if the TCP message is a downlink TCP message;
calculating the window size of the TCP message according to the window size correlation value of the TCP message;
and when the window size of the TCP message is larger than the size value of the available window of the home terminal TCP connection, modifying the window size related value of the TCP message into the size related value of the available window of the home terminal TCP connection.
6. The method according to claim 1, wherein the performing the corresponding sending procedure on the TCP packet according to the type of the TCP packet comprises:
if the TCP message is an uplink TCP message, searching whether the established OSU connection exists in the TCP service;
if the OSU connection is not established, a new OSU connection is established, an OSU label for marking an OSU channel is generated and stored in a global table item;
marking an OSU label on the uplink TCP message;
sending the uplink TCP message to an OTN through an OSU channel;
and if the established OSU connection exists, the uplink TCP message is directly sent to the OTN through the OSU channel.
7. The method according to claim 1, wherein the performing the corresponding sending process on the TCP packet according to the type of the TCP packet further comprises:
and if the TCP message is a downlink TCP message, deleting an OSU label contained in the downlink TCP message, and sending the downlink TCP message to an Ethernet interface connected and mapped by an OSU.
8. The method according to claim 1, wherein before modifying the window size correlation value of the TCP packet according to the pre-calculated home TCP connection available window size correlation value and the type of the TCP packet, the method further comprises:
verifying whether the window size related value of the TCP message meets the preset requirement or not according to the window size related value available for the local TCP connection;
when the window size correlation value of the TCP message meets the preset requirement, executing a corresponding sending process on the TCP message directly according to the type of the TCP message;
the preset requirements include: the window size value of the TCP message obtained according to the window size related value of the TCP message is smaller than the available window size value of the local TCP connection obtained according to the available window size related value of the local TCP connection; and the difference value between the window size value of the TCP message and the available window size value of the local TCP connection is in a preset range.
9. The method of claim 6, further comprising: and monitoring the currently allocated bandwidth of the OSU connection in real time.
10. An application device in an OSU based on TCP acceleration, comprising:
a processor and a memory;
the processor and the memory are connected through a communication bus:
the processor is used for calling and executing the program stored in the memory;
the memory for storing a program for at least performing a method of applying TCP acceleration in an OSU as claimed in any of claims 1 to 9.
CN202111507649.9A 2021-12-10 2021-12-10 Application method and device of TCP acceleration in OSU Active CN114157727B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111507649.9A CN114157727B (en) 2021-12-10 2021-12-10 Application method and device of TCP acceleration in OSU

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111507649.9A CN114157727B (en) 2021-12-10 2021-12-10 Application method and device of TCP acceleration in OSU

Publications (2)

Publication Number Publication Date
CN114157727A true CN114157727A (en) 2022-03-08
CN114157727B CN114157727B (en) 2024-05-14

Family

ID=80450426

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111507649.9A Active CN114157727B (en) 2021-12-10 2021-12-10 Application method and device of TCP acceleration in OSU

Country Status (1)

Country Link
CN (1) CN114157727B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070248120A1 (en) * 2006-04-25 2007-10-25 Siemens Aktiengesellschaft Device for increasing bandwidth in a cable network
US20090202245A1 (en) * 2008-02-13 2009-08-13 Fujitsu Limited System and Method for Increasing Upstream Capacity in an Optical Network
CN102143078A (en) * 2011-03-29 2011-08-03 华为技术有限公司 Forwarding equipment as well as method and system for processing message
CN102355462A (en) * 2011-10-09 2012-02-15 大唐移动通信设备有限公司 Method and device for realizing TCP (Transmission Control Protocol) transmission
CN102546832A (en) * 2012-02-29 2012-07-04 北京快网科技有限公司 Message transmission method based on transmission control protocol (TCP)
CN104065464A (en) * 2013-03-18 2014-09-24 中国移动通信集团公司 Method and device used for adjusting size of initial window of TCP connection
US20140355977A1 (en) * 2011-02-01 2014-12-04 Transpacket As Optical Switching
CN105634991A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Method and apparatus for achieving service bandwidth allocation
US20160255005A1 (en) * 2015-02-26 2016-09-01 Citrix Systems, Inc. System for bandwidth optimization with initial congestion window determination
WO2017114231A1 (en) * 2015-12-30 2017-07-06 华为技术有限公司 Packet sending method, tcp proxy, and tcp client
JP2018113563A (en) * 2017-01-11 2018-07-19 沖電気工業株式会社 Master station communication apparatus, optical communication network system, and communication system
CN112511915A (en) * 2020-02-28 2021-03-16 中兴通讯股份有限公司 Service processing method and device in optical transport network and electronic equipment

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070248120A1 (en) * 2006-04-25 2007-10-25 Siemens Aktiengesellschaft Device for increasing bandwidth in a cable network
US20090202245A1 (en) * 2008-02-13 2009-08-13 Fujitsu Limited System and Method for Increasing Upstream Capacity in an Optical Network
US20140355977A1 (en) * 2011-02-01 2014-12-04 Transpacket As Optical Switching
CN102143078A (en) * 2011-03-29 2011-08-03 华为技术有限公司 Forwarding equipment as well as method and system for processing message
CN102355462A (en) * 2011-10-09 2012-02-15 大唐移动通信设备有限公司 Method and device for realizing TCP (Transmission Control Protocol) transmission
CN102546832A (en) * 2012-02-29 2012-07-04 北京快网科技有限公司 Message transmission method based on transmission control protocol (TCP)
CN104065464A (en) * 2013-03-18 2014-09-24 中国移动通信集团公司 Method and device used for adjusting size of initial window of TCP connection
CN105634991A (en) * 2014-11-04 2016-06-01 中兴通讯股份有限公司 Method and apparatus for achieving service bandwidth allocation
US20160255005A1 (en) * 2015-02-26 2016-09-01 Citrix Systems, Inc. System for bandwidth optimization with initial congestion window determination
WO2017114231A1 (en) * 2015-12-30 2017-07-06 华为技术有限公司 Packet sending method, tcp proxy, and tcp client
JP2018113563A (en) * 2017-01-11 2018-07-19 沖電気工業株式会社 Master station communication apparatus, optical communication network system, and communication system
CN112511915A (en) * 2020-02-28 2021-03-16 中兴通讯股份有限公司 Service processing method and device in optical transport network and electronic equipment

Also Published As

Publication number Publication date
CN114157727B (en) 2024-05-14

Similar Documents

Publication Publication Date Title
CN108616458B (en) System and method for scheduling packet transmissions on a client device
US11558302B2 (en) Data transmission method and apparatus
CN112953848B (en) Traffic supervision method, system and equipment based on strict priority
FR2851708A1 (en) High priority voice and data packets transmitting method for Internet protocol transmission network, involves keeping bit in high priority packets protocol header at 1 and resuming low priority packet/packet fragment transmission
US9729459B2 (en) System and method for credit-based link level flow control
EP3758409A1 (en) Data traffic processing method and related network device
CN101547159A (en) Method and device for preventing network congestion
JP2006506845A (en) How to select a logical link for a packet in a router
CN115174490B (en) Data transmission method and network application terminal
CN112104562A (en) Congestion control method and device, communication network and computer storage medium
US20110022721A1 (en) Method and system for packetizing data for servicing traffic end-to-end
CN113141314B (en) Congestion control method and equipment
US20130003546A1 (en) System and Method for Achieving Lossless Packet Delivery in Packet Rate Oversubscribed Systems
CN101800702A (en) Method and network device for switching interface links
CN111224889A (en) Data transmission method and device
CN112787942A (en) TCP congestion control method, device, terminal and readable storage medium
CN116980342B (en) Method and system for transmitting data in multi-link aggregation mode
CA3137556A1 (en) System and method for congestion management in computer networks
CN113765812A (en) Method and device for marking message
CN114157727B (en) Application method and device of TCP acceleration in OSU
CN110708255B (en) Message control method and node equipment
CN112637898A (en) Downlink data stream session bandwidth limiting method, network element, device and medium
US20190230225A1 (en) Link adjustment method, server, and storage medium
CN117579543B (en) Data stream segmentation method, device, equipment and computer readable storage medium
CN115550242B (en) Communication link selection method, system, equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant