CN105429896B - A kind of coupling message credit method for releasing and system - Google Patents

A kind of coupling message credit method for releasing and system Download PDF

Info

Publication number
CN105429896B
CN105429896B CN201510881872.8A CN201510881872A CN105429896B CN 105429896 B CN105429896 B CN 105429896B CN 201510881872 A CN201510881872 A CN 201510881872A CN 105429896 B CN105429896 B CN 105429896B
Authority
CN
China
Prior art keywords
message
coupling
type
credit
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201510881872.8A
Other languages
Chinese (zh)
Other versions
CN105429896A (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.)
Inspur Beijing Electronic Information Industry Co Ltd
Original Assignee
Inspur Beijing Electronic Information Industry 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 Inspur Beijing Electronic Information Industry Co Ltd filed Critical Inspur Beijing Electronic Information Industry Co Ltd
Priority to CN201510881872.8A priority Critical patent/CN105429896B/en
Publication of CN105429896A publication Critical patent/CN105429896A/en
Application granted granted Critical
Publication of CN105429896B publication Critical patent/CN105429896B/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
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements

Landscapes

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

Abstract

The embodiment of the invention discloses a kind of coupling message credit method for releasing and systems, including:Receive the message that message output module is sent out;Judge whether the message is coupling message;If so, each message in the coupling message is cached by type, and record the type of message information of the coupling message;According to the type of message information, judge whether each message of the coupling message is read by each channel message receiving module;If, a credit is then discharged to the message output module, it can be seen that, in the present embodiment, after each message only in coupling message is read, one credit of message output module can be just released to, to which just there are one credits to send next coupling message for message output module, to the processing capacity at balance transmission end and receiving terminal, not only resource overhead is few, but also realization method is simple.

Description

A kind of coupling message credit method for releasing and system
Technical field
The present invention relates to coupling message credit release tech fields, are released more specifically to a kind of coupling message credit Put method and system.
Background technology
Currently in order to reducing interface signal quantity, transmitted using the same transmission channel of different type message, in receiving terminal point Distinguish the mode of caching process in channel.Wherein, every message usually contains only a kind of type of message, and each type message has independence Diameter credit control and releasing mechanism, but in some cases, in order to improve efficiency of transmission, using coupling message transmissions mode.Coupling It is a message, a kind of form containing multiple message types to close message.Wherein, the message for being included inside every coupling message Type is not unique, each type message at most one.Couple consumption and independent class of the credit of message in information transmitting terminal The message of type is similar, but the release of the credit of receiving terminal due to comprising type and quantity it is different, read after message subchannel Opportunity is different, credit releasing mechanism just complicated more of more independent type message.
Therefore, the credit for how discharging coupling message, to which the processing capacity at balance transmission end and receiving terminal is to need now It solves the problems, such as.
Invention content
The purpose of the present invention is to provide a kind of coupling message credit method for releasing and systems, with the letter of release coupling message With to the processing capacity at balance transmission end and receiving terminal.
To achieve the above object, an embodiment of the present invention provides following technical solutions:
A kind of coupling message credit method for releasing, including:
Receive the message that message output module is sent out;
Judge whether the message is coupling message;If so, each message in the coupling message is delayed by type It deposits, and records the type of message information of the coupling message;
According to the type of message information, judge whether each message of the coupling message is received by each channel message Module is read;
If so, discharging a credit to the message output module.
Preferably, after the type of message information for recording the coupling message, including:
By each message addition coupling mark position in the coupling message.
Preferably, according to the type of message information, judge each message of the coupling message whether by each channel Message receiving module is read, including:
According to the type of message information, the corresponding coupling packet counting of each message in the coupling message is judged Whether the numerical value of device is all higher than one;Wherein, the initial value of the coupling packet accouter is zero, and mark position is coupled when carrying After message is read, then it will add one with the numerical value of the coupling packet accouter corresponding to the message that is read;
If so, each message of the judgement coupling message is read by each channel message receiving module.
Preferably, after discharging a credit to the message output module, including:
The numerical value of coupling packet accouter corresponding to each message in the coupling message is subtracted one, and will be described Couple the type of message erasing of information of message.
A kind of coupling message credit release system, including:
Message output module, for exporting single type message and coupling message;
Message subchannel cache module, the message sent out for receiving message output module;Judge the message whether be Couple message;If so, by it is described coupling message in each message cache by type, and by it is described coupling message message class Type information is recorded to coupling information logging modle;
The coupling information logging modle is used to record the type of message information of the coupling message;
Each channel message receiving module, for reading message from the message subchannel cache module;
Credit discharges arbitration modules, for according to the type of message information, judging each message of the coupling message Whether read by each channel message receiving module;If so, discharging a credit to the message output module.
Preferably, the message subchannel cache module, including:
Coupling mark position adding device, for each message in the coupling message to be added coupling mark position.
Preferably, the credit discharges arbitration modules, including:
Judging unit, for according to the type of message information, judging that each message in the coupling message is corresponding The numerical value of coupling packet accouter whether be all higher than one;Wherein, the initial value of the coupling packet accouter is zero, when taking After message with coupling mark position is read, then it will add with the numerical value of the coupling packet accouter corresponding to the message that is read One;
If so, each message of the judgement coupling message is read by each channel message receiving module.
Preferably, the credit discharges arbitration modules, including:
Execution unit, for the numerical value of the coupling packet accouter corresponding to each message in the coupling message is equal Subtract one, and by it is described coupling message type of message erasing of information.
By above scheme it is found that a kind of coupling message credit method for releasing provided in an embodiment of the present invention and system, packet It includes:Receive the message that message output module is sent out;Judge whether the message is coupling message;If so, the coupling is reported Each message in text caches by type, and records the type of message information of the coupling message;Believed according to the type of message Breath, judges whether each message of the coupling message is read by each channel message receiving module;If so, one letter of release With the extremely message output module, it is seen then that in the present embodiment, after each message only in coupling message is read, It can be released to one credit of message output module, to which just there are one credits to send next coupling message for message output module, To the processing capacity at balance transmission end and receiving terminal, not only resource overhead is few, but also realization method is simple.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of coupling message credit method for releasing flow diagram disclosed by the embodiments of the present invention;
Fig. 2 is that a kind of coupling message credit disclosed by the embodiments of the present invention discharges system structure diagram.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts Embodiment shall fall within the protection scope of the present invention.
The embodiment of the invention discloses a kind of coupling message credit method for releasing and systems, with the letter of release coupling message With to the processing capacity at balance transmission end and receiving terminal.
Referring to Fig. 1, a kind of coupling message credit method for releasing provided in an embodiment of the present invention, including:
S101, the message that message output module is sent out is received;
S102, judge whether the message is coupling message;If so, execute S103, will it is described coupling message in it is every Kind message caches by type, and records the type of message information of the coupling message;If it is not, then executing S101;
Specifically, when the message is not coupling message, instruction information is not added, and continues to processing output module hair The next record message gone out.
Wherein, after the type of message information for recording the coupling message, including:
By each message addition coupling mark position in the coupling message.
Specifically, before message is cached by transmission channel, it can differentiate that this message is by type of message It is no to belong to coupling message, if it is coupling message, then it will couple all types of messages that message includes and add coupling mark Position, that is, the message for containing coupling flag bit are the messages coupled in message;Coupling message is cached respectively by type of message again Into the subchannel packet buffer module of first in, first out.Wherein, in subchannel packet buffer module, different type message corresponds to Caching it is mutual indepedent, when subsequent module reading process, dependence is not present each other.
Wherein, when coupling message write-in subchannel packet buffer module, the type of message information of message will be coupled, that is, wrapped Information containing which kind message, while the coupling information logging modle of first in, first out is also written.
S104, according to the type of message information, judge whether each message of the coupling message is reported by each channel Literary receiving module is read;
If so, executing S105, one credit of release to the message output module;If it is not, then continuing to execute S104.
Specifically, since all type of messages that coupling message is included share a credit, so only when coupling report After all type of messages that text is included all are read processing, the release of this credit could be carried out, deadlock otherwise can be caused Or messages be unable to get correct processing the phenomenon that such as overflow.
Wherein, according to the type of message information, judge whether each message of the coupling message is reported by each channel Literary receiving module is read, including:
According to the type of message information, the corresponding coupling packet counting of each message in the coupling message is judged Whether the numerical value of device is all higher than one;Wherein, the initial value of the coupling packet accouter is zero, and mark position is coupled when carrying After message is read, then it will add one with the numerical value of the coupling packet accouter corresponding to the message that is read;
If so, each message of the judgement coupling message is read by each channel message receiving module.
Specifically, in message subchannel cache module, each type message channel is respectively provided with independent coupling message meter Number devices, when the coupling information flag for the message being read is effective, then the corresponding coupling packet accouter of this type message Numerical value add one, otherwise couple packet accouter numerical value remain unchanged.Wherein, it couples representated by packet accouter value, Including the coupling message of the type message in this channel by subsequent module reading process, but corresponding coupling message credit is not The quantity being released.Regulation coupling packet accouter initial value is 0, in order to make Counter Value not overflow, it is specified that its bit wide institute The maximum counter value that can be represented, is not less than the maximum value of coupling information message credit.
And the type of message information in the present embodiment, coupling message is all recorded, so according to the suitable of first in, first out Sequence judges all messages that the type of message information includes according to the type of message information that coupling information logging modle records Whether the numerical value for coupling packet accouter is non-zero, if being non-zero, judges each message for coupling message by each logical Road message receiving module is read, then discharges a coupling message credit, and enter and discharge arbitration process next time, otherwise, continue It waits for until meeting release conditions.
Wherein, after discharging a credit to the message output module, including:
The numerical value of coupling packet accouter corresponding to each message in the coupling message is subtracted one, and will be described Couple the type of message erasing of information of message.
Specifically, the record in coupling information logging modle in the present embodiment, it may be determined whether have been written into report Literary subchannel cache module, but the basis for estimation that corresponding coupling credit does not discharge also.If coupling information logging modle is sky, Show that there is no the coupling messages for needing release credit, otherwise enters coupling credit and discharge arbitration process.Therefore in release one After credit to message output module, the numerical value of the coupling packet accouter corresponding to each message in the coupling message of release is subtracted One, and the type of message information of the coupling message is read and abandoned from coupling information logging modle.
A kind of coupling message credit method for releasing provided in an embodiment of the present invention, including:Message output module is received to send out Message;Judge whether the message is coupling message;If so, each message in the coupling message is delayed by type It deposits, and records the type of message information of the coupling message;According to the type of message information, the every of the coupling message is judged Whether kind message is read by each channel message receiving module;If so, release one credit to the message output module, can See, in the present embodiment, after each message only in coupling message is read, can just be released to message output module one Credit, to which just there are one credits to send next coupling message for message output module, to balance transmission end and receiving terminal Processing capacity, not only resource overhead is few, but also realization method is simple.
A kind of coupling message credit release system provided in an embodiment of the present invention is introduced below, described below one Kind coupling message credit release system with it is above-described it is a kind of coupling message credit method for releasing can be cross-referenced.
Referring to Fig. 2, a kind of coupling message credit release system provided in an embodiment of the present invention, including:
Message output module 100, for exporting single type message and coupling message;
Specifically, message output module 100 in the present embodiment is mainly responsible for single type message and couples the letter of message Road is sent and control.Wherein, whether message output module 100 can send whether message also has corresponding hair depending on the message It delivers letters with can use.Every independent type message every includes only a kind of type of message, each type only take up one itself The independent credit of type message reads when the message is received module and returns to one credit of transmitting terminal after handle;Every coupling Message includes multiple message types, a coupling message credit is shared, only when all types of messages in the coupling message It is all read after the completion of processing, a credit could be recycled.
Message subchannel cache module 200, the message sent out for receiving message output module 100;Judge the message Whether it is coupling message;If so, each message in the coupling message is by type cached, and by the coupling message Type of message information is recorded to coupling information logging modle 300;
Wherein, the message subchannel cache module, including:
Coupling mark position adding device, for each message in the coupling message to be added coupling mark position.
Specifically, message subchannel cache module 200 is used to receive transmission channel message, and according to the message of every message Type caches respectively, and caching depth is not less than the sum of the maximum available credit of each message that message output module 100 is sent out, The caching of each type message is mutual indepedent, and the sequence of each channel caching message output caches sequence consensus with write-in, first enters First go out, and whether there are one be the coupling mark position for coupling message for every buffered message all bands.
The coupling information logging modle 300 is used to record the type of message information of the coupling message;
Specifically, the record of coupling information logging modle 300 is the message for coupling message from message output module 100 Type information.
Each channel message receiving module 400, for reading message from the message subchannel cache module;
Specifically, each channel of each channel message receiving module 400 is slow respectively at message subchannel in the present embodiment Storing module 200 corresponds, independent between each other, respectively according to respective disposition, reading process message subchannel caching The message in the corresponding different channels of module 200.
Credit discharges arbitration modules 500, for according to the type of message information, judging each report of the coupling message Whether text is read by each channel message receiving module;If so, discharging a credit to the message output module 100。
Wherein, the credit discharges arbitration modules 500, including:
Judging unit, for according to the type of message information, judging that each message in the coupling message is corresponding The numerical value of coupling packet accouter whether be all higher than one;Wherein, the initial value of the coupling packet accouter is zero, when taking After message with coupling mark position is read, then it will add with the numerical value of the coupling packet accouter corresponding to the message that is read One;
If so, each message of the judgement coupling message is read by each channel message receiving module.
Wherein, the credit discharges arbitration modules 500, including:
Execution unit, for the numerical value of the coupling packet accouter corresponding to each message in the coupling message is equal Subtract one, and by it is described coupling message type of message erasing of information.
Specifically, credit release arbitration modules 500 are directed to each channel of each channel message receiving module 400, all individually Provided with special coupling packet accouter, thus according to the type of message information of the coupling information logging modle 300 of acquisition and The numerical value of packet accouter is coupled, whether ruling coupling message credit discharges, and after the credit of one coupling message of responsible release, It reads and removes the type of message information in coupling information logging modle corresponding with the coupling message 200.
Each embodiment is described by the way of progressive in this specification, the highlights of each of the examples are with other The difference of embodiment, just to refer each other for identical similar portion between each embodiment.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest range caused.

Claims (8)

1. a kind of coupling message credit method for releasing, which is characterized in that including:
Receive the message that message output module is sent out;
Judge whether the message is coupling message;If so, each message in the coupling message is cached by type, and Record the type of message information of the coupling message;Wherein, coupling message is a message containing multiple message types, and every Each type of message at most one in pen coupling message;
According to the type of message information, judge each message of the coupling message whether by each channel message receiving module It reads;
If so, discharging a credit to the message output module.
2. coupling message credit method for releasing according to claim 1, which is characterized in that record the report of the coupling message After literary type information, including:
By each message addition coupling mark position in the coupling message.
3. coupling message credit method for releasing according to claim 2, which is characterized in that believed according to the type of message Breath, judges whether each message of the coupling message is read by each channel message receiving module, including:
According to the type of message information, the corresponding coupling packet accouter of each message in the coupling message is judged Whether numerical value is non-zero;Wherein, the initial value of the coupling packet accouter is zero, and the message for indicating position is coupled when carrying After being read, then it will add one with the numerical value of the coupling packet accouter corresponding to the message that is read;
If so, each message of the judgement coupling message is read by each channel message receiving module.
4. coupling message credit method for releasing according to claim 3, which is characterized in that one credit of release to the report After literary output module, including:
The numerical value of coupling packet accouter corresponding to each message in the coupling message is subtracted one, and by the coupling The type of message erasing of information of message.
5. a kind of coupling message credit discharges system, which is characterized in that including:
Message output module, for exporting single type message and coupling message;
Message subchannel cache module, the message sent out for receiving message output module;Judge whether the message is coupling Message;If so, each message in the coupling message is cached by type, and the type of message of the coupling message is believed Breath is recorded to coupling information logging modle;Wherein, coupling message is a message containing multiple message types, and every couples Each type of message at most one in message;
The coupling information logging modle is used to record the type of message information of the coupling message;
Each channel message receiving module, for reading message from the message subchannel cache module;
Credit discharges arbitration modules, for according to the type of message information, whether judging described each message for coupling message Read by each channel message receiving module;If so, discharging a credit to the message output module.
6. coupling message credit according to claim 5 discharges system, which is characterized in that the message subchannel caches mould Block, including:
Coupling mark position adding device, for each message in the coupling message to be added coupling mark position.
7. coupling message credit according to claim 6 discharges system, which is characterized in that the credit release arbitration mould Block, including:
Judging unit, for according to the type of message information, judging the corresponding coupling of each message in the coupling message Whether the numerical value for closing packet accouter is non-zero;Wherein, the initial value of the coupling packet accouter is zero, when carrying coupling Close mark position message be read after, then will add one with the numerical value of the coupling packet accouter corresponding to the message that is read;
If so, each message of the judgement coupling message is read by each channel message receiving module.
8. coupling message credit according to claim 7 discharges system, which is characterized in that the credit release arbitration mould Block, including:
Execution unit, for subtracting the numerical value of the coupling packet accouter corresponding to each message in the coupling message One, and by it is described coupling message type of message erasing of information.
CN201510881872.8A 2015-12-03 2015-12-03 A kind of coupling message credit method for releasing and system Active CN105429896B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510881872.8A CN105429896B (en) 2015-12-03 2015-12-03 A kind of coupling message credit method for releasing and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510881872.8A CN105429896B (en) 2015-12-03 2015-12-03 A kind of coupling message credit method for releasing and system

Publications (2)

Publication Number Publication Date
CN105429896A CN105429896A (en) 2016-03-23
CN105429896B true CN105429896B (en) 2018-10-02

Family

ID=55507841

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510881872.8A Active CN105429896B (en) 2015-12-03 2015-12-03 A kind of coupling message credit method for releasing and system

Country Status (1)

Country Link
CN (1) CN105429896B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114429407A (en) * 2021-12-21 2022-05-03 华能澜沧江水电股份有限公司 Auxiliary service assessment data processing method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7675929B1 (en) * 2006-01-03 2010-03-09 Emc Corporation Method and system for managing data flow in a data transmission system
CN101841477A (en) * 2010-04-27 2010-09-22 浪潮电子信息产业股份有限公司 Method for improving reliable message transmission credit of network control chip
CN102523168A (en) * 2011-12-23 2012-06-27 福建星网锐捷网络有限公司 Method and apparatus for message transmission
CN103890746A (en) * 2012-09-28 2014-06-25 华为技术有限公司 Packet sending control method, and processing method, device and system
CN104049955A (en) * 2014-06-27 2014-09-17 浪潮(北京)电子信息产业有限公司 Multistage cache consistency pipeline processing method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6735174B1 (en) * 2000-03-29 2004-05-11 Intel Corporation Method and systems for flow control of transmissions over channel-based switched fabric connections
US20020087720A1 (en) * 2000-12-28 2002-07-04 Davis Arlin R. System and method for communications management and control over an unreliable communications network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7675929B1 (en) * 2006-01-03 2010-03-09 Emc Corporation Method and system for managing data flow in a data transmission system
CN101841477A (en) * 2010-04-27 2010-09-22 浪潮电子信息产业股份有限公司 Method for improving reliable message transmission credit of network control chip
CN102523168A (en) * 2011-12-23 2012-06-27 福建星网锐捷网络有限公司 Method and apparatus for message transmission
CN103890746A (en) * 2012-09-28 2014-06-25 华为技术有限公司 Packet sending control method, and processing method, device and system
CN104049955A (en) * 2014-06-27 2014-09-17 浪潮(北京)电子信息产业有限公司 Multistage cache consistency pipeline processing method and device

Also Published As

Publication number Publication date
CN105429896A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
KR101110384B1 (en) Credit management when resource granularity is larger than credit granularity
RU2559727C2 (en) Method and apparatus for enabling identifier based streams over pci express bus
CN109412914A (en) Flow data and AXI interface communication equipment
EP2908251B1 (en) Method and device for processing data
JP6340481B2 (en) Data caching method, apparatus and storage medium
CN108595350A (en) A kind of data transmission method and device based on AXI
CN102073611B (en) I2C bus control system and method
CN115543882B (en) Data forwarding device and data transmission method between buses with different bit widths
CN104765701B (en) Data access method and equipment
CN103077147A (en) Linked list-based full-function 1553B bus IP (Internet Protocol) core
CN101877666A (en) Method and device for receiving multi-application program message based on zero copy mode
CN112698959A (en) Multi-core communication method and device
CN110457251A (en) Data communications method and device between a kind of multiprocessor
CN103731364B (en) X86 platform based method for achieving trillion traffic rapid packaging
CN113852533B (en) Multi-channel data communication system and method and electronic equipment
CN105429896B (en) A kind of coupling message credit method for releasing and system
US7610415B2 (en) System and method for processing data streams
CN101594305B (en) Method and device for processing messages
CN102932265A (en) Data caching management device and method
CN106899386B (en) Method for demodulating fragmented frame signals based on multi-channel communication receiving system
CN114900484A (en) Data transmission method, device, equipment and medium between different network interfaces
CN101883046A (en) Data cache architecture applied to EPON terminal system
CN109145397A (en) A kind of external memory arbitration structure for supporting parallel pipelining process to access
CN109285580A (en) Data prediction device, method and asynchronous double-end randon access memory system
CN105659216A (en) Cache directory processing method and directory controller of multi-core processor system

Legal Events

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