CN110336759A - Protocol message transfer method and device based on RDMA - Google Patents

Protocol message transfer method and device based on RDMA Download PDF

Info

Publication number
CN110336759A
CN110336759A CN201910260947.9A CN201910260947A CN110336759A CN 110336759 A CN110336759 A CN 110336759A CN 201910260947 A CN201910260947 A CN 201910260947A CN 110336759 A CN110336759 A CN 110336759A
Authority
CN
China
Prior art keywords
service
type
protocol massages
entry queue
initial entry
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
CN201910260947.9A
Other languages
Chinese (zh)
Other versions
CN110336759B (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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Publication of CN110336759A publication Critical patent/CN110336759A/en
Application granted granted Critical
Publication of CN110336759B publication Critical patent/CN110336759B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/30Peripheral units, e.g. input or output ports
    • H04L49/3009Header conversion, routing tables or routing tags
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/50Overload detection or protection within a single switching element
    • H04L49/501Overload detection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/50Overload detection or protection within a single switching element
    • H04L49/505Corrective measures
    • H04L49/506Backpressure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/55Prevention, detection or correction of errors
    • H04L49/555Error detection

Abstract

The invention discloses a kind of protocol message transfer method and device based on RDMA, this method comprises: determining the first type of service of the protocol massages to be forwarded received;The corresponding first Initial Entry queue of first type of service is determined according to type of service and the corresponding relationship of Initial Entry queue;If it is determined that the first Initial Entry queue congestion, after the bandwidth load for then detecting the virtual channel between each Initial Entry queue and corresponding gate region again, back-pressure entry queue is selected from each Initial Entry queue based on the bandwidth load detected again;The protocol massages to be forwarded are added in the back-pressure entry queue.The program may insure that protocol massages to be forwarded can be forwarded normally, further ensure that data center's normal communication.

Description

Protocol message transfer method and device based on RDMA
Technical field
The present invention relates to fields of communication technology, espespecially a kind of to access (Remote Direct based on remote direct data Memory Access, RDMA) protocol message transfer method and device.
Background technique
Big data era is come into now, the data volume that the data flow of data center generates daily is all T rank, than Such as, trading volume is 1TB daily for New York Stock institute, and the data volume of every 100,000,000,000 photo of FaceBook is 1PB, the daily data of Tencent Amount is 300TB, etc..Since the data volume that data center generates daily is very big, in order to meet high bandwidth, low latency is wanted It asks, data center generallys use RDMA.RDMA passes through network the memory of the direct incoming service device of data, by data from one System moves quickly into remote system stored device, without having any impact to operating system.It eliminates external memory The expense of duplication and context switching, thus memory bandwidth and central processing unit (Central Processing can be liberated Unit, CPU) and then improve application system performance.
The message received first can be assigned to each entrance team when carrying out message forwarding by the network equipment of data center Column, each entry queue are connected by a virtual channel with corresponding gate region, and the priority of each entry queue is different, It is as shown in Figure 1 entry queue, the schematic diagram of virtual channel, gate region, then dispatches each gate region again and pass through network The interface of equipment forwards.When data center uses RDMA technology, the flow between the network equipment and server is very big, Each entry queue in the network equipment and the virtual channel between gate region easily generate congestion and cause packet loss, once association There is packet loss in view message, directly will affect the normal communication of data center, how to control congestion and be to ensure that the positive normal open of data center The key of letter.
Summary of the invention
The embodiment of the present invention provides a kind of protocol message transfer method and device based on RDMA, to solve the prior art Present in protocol massages the problem of packet loss occur, directly affecting the normal communication of data center.
According to embodiments of the present invention, a kind of protocol message transfer method based on RDMA is provided, is applied based on RDMA's In the network equipment, which is characterized in that the described method includes:
Determine the first type of service of the protocol massages to be forwarded received;
At the beginning of determining first type of service corresponding first with the corresponding relationship of Initial Entry queue according to type of service Beginning entry queue;
If it is determined that the first Initial Entry queue congestion, then detect each Initial Entry queue and corresponding outlet again After the bandwidth load of virtual channel between queue, based on the bandwidth load detected again from each Initial Entry queue Select back-pressure entry queue;
The protocol massages to be forwarded are added in the back-pressure entry queue and are forwarded.
Specifically, the bandwidth for detecting the virtual channel between each Initial Entry queue and corresponding gate region again is negative After load, back-pressure entry queue is selected from each Initial Entry queue, is specifically included:
It is detected by keep-alive and detects the virtual channel between each Initial Entry queue and corresponding gate region Bandwidth load;
The bandwidth load compared;
The corresponding Initial Entry queue of the smallest virtual channel of bandwidth load is chosen, the back-pressure entry queue is obtained.
Specifically, further include:
Determine all protocol massages of first type of service origin identification and terminate mark and it is described to be forwarded Sequence mark of the protocol massages in all protocol massages of first type of service;
The first type of service, origin identification, described is added in the header of the protocol massages to be forwarded Terminate mark and sequence mark.
Optionally, further includes:
Type of service, the origin identification, termination carried according to the protocol massages of each interface of network equipment forwarding Mark and sequence mark count the packet loss of the protocol massages of each type of service;
The packet loss of the protocol massages of each type of service is compared with given threshold respectively;
The protocol massages that packet loss is greater than the second type of service of the given threshold, which determine, occurs packet loss;
The corresponding second Initial Entry queue of second type of service is determined according to the corresponding relationship;
Determine the second Initial Entry queue congestion.
Specifically, the type of service carried according to the protocol massages of each interface of network equipment forwarding, starting are marked Know, terminate the packet loss that the mark that identifies and sort counts the protocol massages of each type of service, specifically includes:
For each type of service, execute:
Obtain the sequence mark for having lost protocol massages of present type of service;
Count the first quantity for having lost protocol massages of the present type of service;
According to the origin identification of all protocol massages of the present type of service and terminate the mark calculating current industry Second quantity of all protocol massages of service type;
Using ratio the losing as the protocol massages of the present type of service of first quantity and second quantity Packet rate.
According to embodiments of the present invention, a kind of protocol massages retransmission unit based on RDMA is also provided, is applied based on RDMA The network equipment in, described device includes:
First determining module, for determining the first type of service of the protocol massages to be forwarded received;
Second determining module, for determining first business according to type of service and the corresponding relationship of Initial Entry queue The corresponding first Initial Entry queue of type;
Module is chosen, for if it is determined that the first Initial Entry queue congestion, then detect each Initial Entry team again Column with after the bandwidth load of the virtual channel between corresponding gate region, based on the bandwidth load detected again from described each Back-pressure entry queue is selected in Initial Entry queue;
Adding module is forwarded for the protocol massages to be forwarded to be added in the back-pressure entry queue.
Specifically, the selection module, for being detected between each Initial Entry queue and corresponding gate region again Virtual channel bandwidth load after, select back-pressure entry queue from each Initial Entry queue, be specifically used for:
It is detected by keep-alive and detects the virtual channel between each Initial Entry queue and corresponding gate region Bandwidth load;
The bandwidth load compared;
The corresponding Initial Entry queue of the smallest virtual channel of bandwidth load is chosen, the back-pressure entry queue is obtained.
Optionally, first determining module is also used to determine rising for all protocol massages of first type of service The row of the mark that begins and termination mark and the protocol massages to be forwarded in all protocol massages of first type of service Sequence mark;
The adding module is also used to add first service class in the header of the protocol massages to be forwarded Type, the origin identification, termination mark and sequence mark.
Optionally, described device further include:
Statistical module, the type of service of the protocol massages carrying for being forwarded according to each interface of the network equipment, The packet loss of origin identification, the protocol massages for terminating mark and sorting each type of service of mark statistics;
Comparison module, for the packet loss of the protocol massages of each type of service to be compared with given threshold respectively;
Third determining module, the protocol massages for being greater than the second type of service of the given threshold for packet loss determine hair Raw packet loss;
4th determining module, for determining that second type of service corresponding second initially enters according to the corresponding relationship Mouth queue;Determine the second Initial Entry queue congestion.
Specifically, the statistical module, the protocol massages for being forwarded according to each interface of the network equipment are carried Type of service, origin identification, terminate mark and sequence mark count each type of service protocol massages packet loss, specifically For:
For each type of service, execute:
Obtain the sequence mark for having lost protocol massages of present type of service;
Count the first quantity for having lost protocol massages of the present type of service;
According to the origin identification of all protocol massages of the present type of service and terminate the mark calculating current industry Second quantity of all protocol massages of service type;
Using ratio the losing as the protocol massages of the present type of service of first quantity and second quantity Packet rate.
The present invention has the beneficial effect that:
The embodiment of the present invention provides a kind of protocol message transfer method and device based on RDMA, is received by determination First type of service of protocol massages to be forwarded;Described first is determined according to type of service and the corresponding relationship of Initial Entry queue The corresponding first Initial Entry queue of type of service;If it is determined that the first Initial Entry queue congestion, then detect each again After the bandwidth load of virtual channel between Initial Entry queue and corresponding gate region, based on the bandwidth load detected again Back-pressure entry queue is selected from each Initial Entry queue;The protocol massages to be forwarded are added to the back-pressure to enter In mouth queue.In the program, when forwarding protocol massages to be forwarded, the protocol massages corresponding first to be forwarded are determined initially After entry queue, can further determine that whether congestion initially enters if congestion can detect again from each for the first Initial Entry queue Back-pressure entry queue is selected in mouth queue, message to be forwarded is added to back-pressure entry queue and is forwarded, so as to ensure Protocol massages to be forwarded can be forwarded normally, further ensure that data center's normal communication.
Detailed description of the invention
Fig. 1 is a kind of flow chart of the protocol message transfer method based on RDMA in the embodiment of the present invention;
Fig. 2 is to identify and arrange according to the type of service, origin identification, termination that carry in protocol massages in the embodiment of the present invention Sequence mark determine each Initial Entry queue whether the flow chart of congestion;
Fig. 3 is a kind of structural schematic diagram of the protocol massages retransmission unit based on RDMA in the embodiment of the present invention;
Fig. 4 is the structural schematic diagram of protocol massages retransmission unit of the another kind based on RDMA in the embodiment of the present invention.
Specific embodiment
There is packet loss for protocol massages existing in the prior art, directly affects asking for the normal communication of data center Topic, the embodiment of the present invention provide a kind of protocol message transfer method based on RDMA, apply in the network equipment based on RDMA, The process of this method is as shown in Figure 1, execute that steps are as follows:
S11: the first type of service of the protocol massages to be forwarded received is determined.
Usual protocol massages have corresponding type of service, such as Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, VRRP) message, address resolution protocol (Address Resolution Protocol, ARP) report Text, dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) message, well-known multicast path By protocol massages etc., therefore, when receiving protocol massages to be forwarded, it is necessary first to determine the business of protocol massages to be forwarded Type can be defined as the first type of service.
S12: at the beginning of determining the first type of service corresponding first with the corresponding relationship of Initial Entry queue according to type of service Beginning entry queue.
The corresponding relationship that type of service Yu Initial Entry queue can generally be preset receives agreement report to be forwarded in this way It can determine which Initial Entry queue protocol massages to be forwarded are added according to the corresponding relationship after text, that determines initially enters Mouth queue can position the first Initial Entry queue.
S13: if it is determined that the first Initial Entry queue congestion, then detect each Initial Entry queue and corresponding outlet again After the bandwidth load of virtual channel between queue, selected from each Initial Entry queue based on the bandwidth load detected again Back-pressure entry queue.
After determining the first Initial Entry queue, due to being protocol massages to be forwarded, in order to ensure normally forward this to Retransmission protocol message, it is also necessary to further determine that the first Initial Entry queue whether congestion, if the first Initial Entry queue congestion, It then needs to redefine entry queue, it can be by being detected between each Initial Entry queue and corresponding gate region again The bandwidth load of virtual channel selects an Initial Entry queue from each Initial Entry queue, the Initial Entry queue selected It can be defined as back-pressure entry queue.
S14: protocol massages to be forwarded are added in back-pressure entry queue and are forwarded.
Protocol massages to be forwarded can be forwarded with the back-pressure entry queue determined in S13.
In the program, when forwarding protocol massages to be forwarded, the protocol massages corresponding first to be forwarded are determined initially After entry queue, can further determine that whether congestion initially enters if congestion can detect again from each for the first Initial Entry queue Back-pressure entry queue is selected in mouth queue, message to be forwarded is added to back-pressure entry queue and is forwarded, so as to ensure Protocol massages to be forwarded can be forwarded normally, further ensure that data center's normal communication.
Specifically, being detected again in above-mentioned S13 virtual logical between each Initial Entry queue and corresponding gate region After the bandwidth load in road, back-pressure entry queue is selected from each Initial Entry queue, realization process specifically includes:
The bandwidth for detecting the virtual channel between each Initial Entry queue and corresponding gate region is detected by keep-alive Load;
The bandwidth load compared;
The corresponding Initial Entry queue of the smallest virtual channel of bandwidth load is chosen, back-pressure entry queue is obtained.
Virtual channel between usual each Initial Entry queue and corresponding gate region will do it keep-alive detection, because This, can detect the void between each Initial Entry queue and corresponding gate region by means of keep-alive detection in the present embodiment The bandwidth load in quasi- channel, is then based on each bandwidth load detected, therefrom chooses the smallest virtual channel of bandwidth load Corresponding Initial Entry queue, the Initial Entry queue of bandwidth load minimum specification is the most idle, to obtain back-pressure entrance team Column, to ensure that protocol massages to be forwarded can be forwarded normally.
Optionally, the above-mentioned protocol message transfer method based on RDMA further include:
It determines the origin identification of all protocol massages of the first type of service and terminates mark and protocol massages to be forwarded Sequence mark in all protocol massages of the first type of service;
The first type of service, origin identification, termination mark and sequence mark are added in the header of protocol massages to be forwarded Know.
The quantity of all protocol massages of a usual type of service be it is determining, hence, it can be determined that the first service class The origin identification and termination mark of all protocol massages of type, for example, origin identification can be 1, terminating mark can be 100, It can also determine sequence mark of the protocol massages to be forwarded in all protocol massages in the first type of service, sequence mark Can any value between (1,100), then can add the first service class in the header of protocol massages to be forwarded Type, origin identification terminate mark and sequence mark.
Correspondingly, a kind of optional embodiment, can according to carried in protocol massages type of service, origin identification, Terminate mark and sequence mark determine each Initial Entry queue whether congestion, as shown in Fig. 2, specifically including:
S21: type of service, the origin identification, termination carried according to the protocol massages of each interface of network equipment forwarding Mark and sequence mark count the packet loss of the protocol massages of each type of service.
Be described above protocol massages to be forwarded can carry type of service, origin identification, terminate mark and sequence mark this A little information, then after protocol massages to be forwarded forward, so that it may the association based on each type of service of these Information Statistics The packet loss of view message, the type of service that can be specifically carried according to the protocol massages of each interface of network equipment forwarding rise Mark, termination mark and sequence mark begin to count.
S22: the packet loss of the protocol massages of each type of service is compared with given threshold respectively.
One given threshold can be set previously according to actual needs, then by the protocol massages packet loss of each type of service Rate is compared with it.
S23: the protocol massages that packet loss is greater than the second type of service of given threshold, which determine, occurs packet loss.
The protocol massages that packet loss is greater than the type of service of given threshold are defined as the protocol massages of the second type of service, can To determine that packet loss occurs for the protocol massages of the second type of service.
S24: the corresponding second Initial Entry queue of the second type of service is determined according to corresponding relationship.
It may further determine that the corresponding Initial Entry queue of the second type of service according to corresponding relationship before, be defined as Second Initial Entry queue.
S25: the second Initial Entry queue congestion is determined.
A kind of optional embodiment the second Initial Entry queue addition congestion can identify in corresponding relationship, so as to Go out the Initial Entry queue of congestion in subsequent Direct Recognition.
It may be implemented by S21-S25 according to the type of service carried in protocol massages, origin identification, terminate mark and row Sequence mark determine each Initial Entry queue whether congestion, in order to subsequent in the Initial Entry for determining protocol massages to be forwarded After queue, directly determine the Initial Entry queue whether congestion.
Specifically, in above-mentioned S21 according to each interface of the network equipment forwarding protocol massages carry type of service, rise Mark, termination mark and the sequence mark of beginning count the packet loss of the protocol massages of each type of service, and realization process specifically includes:
For each type of service, execute:
Obtain the sequence mark for having lost protocol massages of present type of service;
Count the first quantity for having lost protocol massages of present type of service;
According to the origin identification of all protocol massages of present type of service and terminate mark calculating present type of service Second quantity of all protocol massages;
Using the ratio of the first quantity and the second quantity as the packet loss of the protocol massages of present type of service.
According to current retransmission mechanism, after the network equipment issues message, opposite end can feed back the message not received, and network is set It is standby to determine the message of packet loss based on this and be retransmitted.In the present embodiment, since the protocol massages forwarded before can be taken Band type of service, terminates mark and sequence mark at origin identification, and the network equipment can directly acquire having lost for present type of service The sequence of the protocol massages fallen identifies, so as to count the quantity for having lost protocol massages of present type of service, the number Amount can be defined as the first quantity, it is assumed that the first quantity is 20;The starting mark of all protocol massages based on present type of service Know and terminate the quantity that mark can calculate all protocol massages of present type of service, is defined as the second quantity, it is assumed that Origin identification is 1, and termination is identified as 100, then the second quantity is 100;Using the ratio of the first quantity and the second quantity as current The packet loss of the protocol massages of type of service, the ratio 0.2 of the first quantity 20 and the second quantity 100 can serve as currently before The packet loss of the protocol massages of type of service.
The protocol message transfer method based on RDMA is described above, based on the same inventive concept, the embodiment of the present invention mentions For a kind of protocol massages retransmission unit based on RDMA, applied in the network equipment based on RDMA, the structure of the device such as Fig. 3 It is shown, comprising:
First determining module 31, for determining the first type of service of the protocol massages to be forwarded received;
Second determining module 32, for determining the first service class according to type of service and the corresponding relationship of Initial Entry queue The corresponding first Initial Entry queue of type;
Module 33 is chosen, for if it is determined that the first Initial Entry queue congestion, then detect each Initial Entry queue again After the bandwidth load of virtual channel between corresponding gate region, initially entered based on the bandwidth load detected again from each Back-pressure entry queue is selected in mouth queue;
Adding module 34 is forwarded for protocol massages to be forwarded to be added in back-pressure entry queue.
In the program, when forwarding protocol massages to be forwarded, the protocol massages corresponding first to be forwarded are determined initially After entry queue, can further determine that whether congestion initially enters if congestion can detect again from each for the first Initial Entry queue Back-pressure entry queue is selected in mouth queue, message to be forwarded is added to back-pressure entry queue and is forwarded, so as to ensure Protocol massages to be forwarded can be forwarded normally, further ensure that data center's normal communication.
Specifically, above-mentioned selection module 33, for detect again each Initial Entry queue and corresponding gate region it Between virtual channel bandwidth load after, select back-pressure entry queue from each Initial Entry queue, be specifically used for:
The bandwidth for detecting the virtual channel between each Initial Entry queue and corresponding gate region is detected by keep-alive Load;
The bandwidth load compared;
The corresponding Initial Entry queue of the smallest virtual channel of bandwidth load is chosen, back-pressure entry queue is obtained.
Optionally, above-mentioned first determining module 31 is also used to determine the starting of all protocol massages of the first type of service The sequence mark of mark and termination mark and protocol massages to be forwarded in all protocol massages of the first type of service;
Above-mentioned adding module 34 is also used to add the first type of service, starting in the header of protocol massages to be forwarded Mark terminates mark and sequence mark.
Optionally, the embodiment of the present invention provides another protocol massages retransmission unit based on RDMA, as shown in figure 4, On the basis of device as shown in Figure 3 further include:
Statistical module 35, the type of service of the protocol massages carrying for being forwarded according to each interface of the network equipment rise Mark, termination mark and the sequence mark of beginning count the packet loss of the protocol massages of each type of service;
Comparison module 36, for comparing the packet loss of the protocol massages of each type of service with given threshold respectively Compared with;
Third determining module 37, the protocol massages for being greater than the second type of service of given threshold for packet loss determine generation Packet loss;
4th determining module 38, for determining the second type of service corresponding second Initial Entry team according to corresponding relationship Column;Determine the second Initial Entry queue congestion.
Specifically, above-mentioned statistical module 35, what the protocol massages for being forwarded according to each interface of the network equipment carried Type of service, origin identification terminate the packet loss that the mark that identifies and sort counts the protocol massages of each type of service, specific use In:
For each type of service, execute:
Obtain the sequence mark for having lost protocol massages of present type of service;
Count the first quantity for having lost protocol massages of present type of service;
According to the origin identification of all protocol massages of present type of service and terminate mark calculating present type of service Second quantity of all protocol massages;
Using the ratio of the first quantity and the second quantity as the packet loss of the protocol massages of present type of service.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although alternative embodiment of the invention has been described, created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So the following claims are intended to be interpreted as include can It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, those skilled in the art can carry out various modification and variations without departing from this hair to the embodiment of the present invention The spirit and scope of bright embodiment.In this way, if these modifications and variations of the embodiment of the present invention belong to the claims in the present invention And its within the scope of equivalent technologies, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of protocol message transfer method based on remote direct data access RDMA, is applied in the network equipment based on RDMA In, which is characterized in that the described method includes:
Determine the first type of service of the protocol massages to be forwarded received;
Determine that first type of service corresponding first initially enters with the corresponding relationship of Initial Entry queue according to type of service Mouth queue;
If it is determined that the first Initial Entry queue congestion, then detect each Initial Entry queue and corresponding gate region again Between virtual channel bandwidth load after, selected from each Initial Entry queue based on the bandwidth load detected again Back-pressure entry queue;
The protocol massages to be forwarded are added in the back-pressure entry queue and are forwarded.
2. the method as described in claim 1, which is characterized in that detect each Initial Entry queue and corresponding outlet team again After the bandwidth load of virtual channel between column, selected from each Initial Entry queue based on the bandwidth load detected again Back-pressure entry queue out specifically includes:
The bandwidth for detecting the virtual channel between each Initial Entry queue and corresponding gate region is detected by keep-alive Load;
The bandwidth load compared;
The corresponding Initial Entry queue of the smallest virtual channel of bandwidth load is chosen, the back-pressure entry queue is obtained.
3. method according to claim 1 or 2, which is characterized in that further include:
It determines the origin identification of all protocol massages of first type of service and terminates mark and the agreement to be forwarded Sequence mark of the message in all protocol massages of first type of service;
First type of service, the origin identification, the termination are added in the header of the protocol massages to be forwarded Mark and sequence mark.
4. method as claimed in claim 3, which is characterized in that further include:
Type of service, origin identification, the termination mark carried according to the protocol massages of each interface of network equipment forwarding The packet loss of the protocol massages of each type of service is counted with sequence mark;
The packet loss of the protocol massages of each type of service is compared with given threshold respectively;
The protocol massages that packet loss is greater than the second type of service of the given threshold, which determine, occurs packet loss;
The corresponding second Initial Entry queue of second type of service is determined according to the corresponding relationship;
Determine the second Initial Entry queue congestion.
5. method as claimed in claim 4, which is characterized in that the agreement report forwarded according to each interface of the network equipment Type of service, origin identification, termination mark and sequence mark that text carries count the packet loss of the protocol massages of each type of service Rate specifically includes:
For each type of service, execute:
Obtain the sequence mark for having lost protocol massages of present type of service;
Count the first quantity for having lost protocol massages of the present type of service;
According to the origin identification of all protocol massages of the present type of service and terminate the mark calculating current business class Second quantity of all protocol massages of type;
Using the ratio of first quantity and second quantity as the packet loss of the protocol massages of the present type of service.
6. a kind of protocol massages retransmission unit based on RDMA, is applied in the network equipment based on RDMA, which is characterized in that institute Stating device includes:
First determining module, for determining the first type of service of the protocol massages to be forwarded received;
Second determining module, for determining first type of service according to type of service and the corresponding relationship of Initial Entry queue Corresponding first Initial Entry queue;
Choose module, be used for if it is determined that the first Initial Entry queue congestion, then detect again each Initial Entry queue with After the bandwidth load of virtual channel between corresponding gate region, based on the bandwidth load detected again from described each initial Back-pressure entry queue is selected in entry queue;
Adding module is forwarded for the protocol massages to be forwarded to be added in the back-pressure entry queue.
7. device as claimed in claim 6, which is characterized in that the selection module, for detecting each Initial Entry again After the bandwidth load of virtual channel between queue and corresponding gate region, based on the bandwidth load detected again from described each Back-pressure entry queue is selected in a Initial Entry queue, is specifically used for:
The bandwidth for detecting the virtual channel between each Initial Entry queue and corresponding gate region is detected by keep-alive Load;
The bandwidth load compared;
The corresponding Initial Entry queue of the smallest virtual channel of bandwidth load is chosen, the back-pressure entry queue is obtained.
8. device as claimed in claims 6 or 7, which is characterized in that first determining module is also used to determine described first The origin identification and termination mark of all protocol massages of type of service and the protocol massages to be forwarded are in first industry Sequence mark in all protocol massages of service type;
The adding module is also used to add first type of service, institute in the header of the protocol massages to be forwarded State origin identification, termination mark and sequence mark.
9. device as claimed in claim 8, which is characterized in that described device further include:
Statistical module, the type of service of the protocol massages carrying for being forwarded according to each interface of the network equipment, starting Mark terminates the packet loss that the mark that identifies and sort counts the protocol massages of each type of service;
Comparison module, for the packet loss of the protocol massages of each type of service to be compared with given threshold respectively;
Third determining module, the protocol massages determination for being greater than the second type of service of the given threshold for packet loss are lost Packet;
4th determining module, for determining the second type of service corresponding second Initial Entry team according to the corresponding relationship Column;Determine the second Initial Entry queue congestion.
10. device as claimed in claim 9, which is characterized in that the statistical module, for according to each of the network equipment Type of service, origin identification, termination mark and the sequence mark that the protocol massages of a interface forwarding carry count each service class The packet loss of the protocol massages of type, is specifically used for:
For each type of service, execute:
Obtain the sequence mark for having lost protocol massages of present type of service;
Count the first quantity for having lost protocol massages of the present type of service;
According to the origin identification of all protocol massages of the present type of service and terminate the mark calculating current business class Second quantity of all protocol massages of type;
Using the ratio of first quantity and second quantity as the packet loss of the protocol massages of the present type of service.
CN201910260947.9A 2018-12-26 2019-04-02 RDMA (remote direct memory Access) -based protocol message forwarding method and device Active CN110336759B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811604847 2018-12-26
CN2018116048475 2018-12-26

Publications (2)

Publication Number Publication Date
CN110336759A true CN110336759A (en) 2019-10-15
CN110336759B CN110336759B (en) 2022-04-26

Family

ID=68139261

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910260947.9A Active CN110336759B (en) 2018-12-26 2019-04-02 RDMA (remote direct memory Access) -based protocol message forwarding method and device

Country Status (1)

Country Link
CN (1) CN110336759B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024065481A1 (en) * 2022-09-29 2024-04-04 新华三技术有限公司 Data processing method and apparatus, and network device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075963A (en) * 2007-07-02 2007-11-21 中兴通讯股份有限公司 Method and device for controlling dynamically based on network QoS
CN102325092A (en) * 2011-10-27 2012-01-18 杭州华三通信技术有限公司 Message processing method and equipment
CN104756451A (en) * 2012-10-30 2015-07-01 瑞典爱立信有限公司 A method for dynamic load balancing of network flows on lag interfaces
CN106953742A (en) * 2017-02-16 2017-07-14 广州海格通信集团股份有限公司 A kind of wireless isomer network bandwidth safeguard method based on SDN
CN106982169A (en) * 2017-03-30 2017-07-25 新华三技术有限公司 Message forwarding method and device
CN107005483A (en) * 2014-12-27 2017-08-01 英特尔公司 Technology for high performance network structure safety
US20180343202A1 (en) * 2015-10-13 2018-11-29 Oracle International Corporation System and method for efficient network isolation and load balancing in a multi-tenant cluster environment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101075963A (en) * 2007-07-02 2007-11-21 中兴通讯股份有限公司 Method and device for controlling dynamically based on network QoS
CN102325092A (en) * 2011-10-27 2012-01-18 杭州华三通信技术有限公司 Message processing method and equipment
CN104756451A (en) * 2012-10-30 2015-07-01 瑞典爱立信有限公司 A method for dynamic load balancing of network flows on lag interfaces
CN107005483A (en) * 2014-12-27 2017-08-01 英特尔公司 Technology for high performance network structure safety
US20180343202A1 (en) * 2015-10-13 2018-11-29 Oracle International Corporation System and method for efficient network isolation and load balancing in a multi-tenant cluster environment
CN106953742A (en) * 2017-02-16 2017-07-14 广州海格通信集团股份有限公司 A kind of wireless isomer network bandwidth safeguard method based on SDN
CN106982169A (en) * 2017-03-30 2017-07-25 新华三技术有限公司 Message forwarding method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024065481A1 (en) * 2022-09-29 2024-04-04 新华三技术有限公司 Data processing method and apparatus, and network device and storage medium

Also Published As

Publication number Publication date
CN110336759B (en) 2022-04-26

Similar Documents

Publication Publication Date Title
US11876702B2 (en) System and method for facilitating efficient address translation in a network interface controller (NIC)
US11032205B2 (en) Flow control method and switching device
US9356844B2 (en) Efficient application recognition in network traffic
WO2022028456A1 (en) Congestion control method and apparatus, network node device and computer-readable storage medium
KR20070080177A (en) Apparatus and method of backward congestion notification on network
US10637792B2 (en) Real-time analysis of quality of service for multimedia traffic in a local area network
US20220078118A1 (en) Congestion control method, terminal and readable storage medium
CN102594676B (en) Bridge port expansion network and congestion control method thereof, port expander (PE) and control bridge
CN106330742A (en) Flow control method and network controller
Tian et al. P-PFC: Reducing tail latency with predictive PFC in lossless data center networks
CN110519302A (en) A kind of method and apparatus of anti-message aggression
CN115037700A (en) Complex network data packet transmission method, system, terminal and storage medium
CN112737940A (en) Data transmission method and device
Hu et al. Enabling load balancing for lossless datacenters
CN110336759A (en) Protocol message transfer method and device based on RDMA
CN113676423A (en) Port flow control method and device, exchange chip and storage medium
CN113765812A (en) Method and device for marking message
CN111404839A (en) Message processing method and device
EP4280561A1 (en) Information flow identification method, network chip, and network device
CN108322402B (en) Message processing method, device and system
WO2021109851A1 (en) Network communication method, apparatus and device, and storage medium
Hu et al. Load Balancing With Multi-Level Signals for Lossless Datacenter Networks
WO2014101047A1 (en) Method, device, and system for identifying network packet loss type
US11032206B2 (en) Packet-content based WRED protection
CN106559351B (en) Message processing method, SDN controller and network element

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