CN105429896A - Coupled message credit releasing method and system - Google Patents

Coupled message credit releasing method and system Download PDF

Info

Publication number
CN105429896A
CN105429896A CN201510881872.8A CN201510881872A CN105429896A CN 105429896 A CN105429896 A CN 105429896A CN 201510881872 A CN201510881872 A CN 201510881872A CN 105429896 A CN105429896 A CN 105429896A
Authority
CN
China
Prior art keywords
message
coupling
credit
type
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.)
Granted
Application number
CN201510881872.8A
Other languages
Chinese (zh)
Other versions
CN105429896B (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

Abstract

The embodiment of the invention discloses a coupled message credit releasing method and system. The method comprises the following steps: receiving a message sent by a message output module; judging whether the message is a coupled message or not; if yes, caching each type of sub-messages in the coupled message according to message types, and recording the message type information of the coupled message; judging whether all types of sub-messages of the coupled message are read by corresponding passage message receiving modules according to the message type information; and if yes, releasing a credit to the message output module. Therefore, only when all the sub-messages of the coupled messages are read, can the credit be released to the message output module, and then the message output module can send the credit to a next coupled message, that is, the processing capabilities of a sending terminal and a receiving terminal are balanced, the resource expense is low, and the implementation manner 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 field, more particularly, relate to a kind of coupling message credit method for releasing and system.
Background technology
At present in order to reduce interface signal quantity, adopt the same transmission channel transmission of dissimilar message, in the mode of receiving terminal subchannel difference caching process.Wherein, every message is usually only containing a kind of type of message, and every type message has independently diameter credit control and releasing mechanism, but in some cases, in order to improve efficiency of transmission, adopts coupling message transmissions mode.Coupling message is a message, a kind of form containing multiple message types.Wherein, every inner type of message comprised of coupling message is not unique, every type message one at the most.Coupling message credit the consumption of information transmitting terminal and the message of independent type similar, but discharge because the type comprised is different with quantity in the credit of receiving terminal, the opportunity of reading after message subchannel is different, and just more independent type message complexity is many for its credit releasing mechanism.
Therefore, how to discharge the credit of coupling message, thus the disposal ability of balance transmitting terminal and receiving terminal is the problem needing now to solve.
Summary of the invention
The object of the present invention is to provide a kind of coupling message credit method for releasing and system, to discharge the credit of coupling message, thus the disposal ability of balance transmitting terminal and receiving terminal.
For achieving the above object, following technical scheme is embodiments provided:
A kind of coupling message credit method for releasing, comprising:
Receive the message that message output module sends;
Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded;
According to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module;
If so, a credit is then discharged to described message output module.
Preferably, after recording the type of message information of described coupling message, comprising:
Each message in described coupling message is added coupling and indicates position.
Preferably, according to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module, comprising:
According to described type of message information, judge whether the numerical value of the coupling packet accouter that each message in described coupling message is corresponding is all greater than one; Wherein, the initial value of described coupling packet accouter is zero, after the message carrying coupling sign position is read, then adds one by with the numerical value of the packet accouter that is coupled corresponding to the message be read;
If so, then judge that often kind of message of described coupling message is all read by described each passage message receiver module.
Preferably, after discharging a credit to described message output module, comprising:
The numerical value of the coupling packet accouter corresponding to each message in described coupling message is all subtracted one, and by the type of message erasing of information of described coupling message.
A kind of coupling message credit delivery system, comprising:
Message output module, for exporting single type message and coupling message;
Message subchannel cache module, for receiving the message that message output module sends; Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded to coupling information logging modle;
Described coupling information logging modle is for recording the type of message information of described coupling message;
Each passage message receiver module, for reading message from described message subchannel cache module;
Credit release arbitration modules, for according to described type of message information, judges whether often kind of message of described coupling message is all read by described each passage message receiver module; If so, a credit is then discharged to described message output module.
Preferably, described message subchannel cache module, comprising:
Coupling indicates position adding device, indicates position for each message in described coupling message is added coupling.
Preferably, described credit release arbitration modules, comprising:
Judging unit, for according to described type of message information, judges whether the numerical value of the coupling packet accouter that each message in described coupling message is corresponding is all greater than one; Wherein, the initial value of described coupling packet accouter is zero, after the message carrying coupling sign position is read, then adds one by with the numerical value of the packet accouter that is coupled corresponding to the message be read;
If so, then judge that often kind of message of described coupling message is all read by described each passage message receiver module.
Preferably, described credit release arbitration modules, comprising:
Performance element, for all subtracting one by the numerical value of the coupling packet accouter corresponding to each message in described coupling message, and by the type of message erasing of information of described coupling message.
Known by above scheme, the one coupling message credit method for releasing that the embodiment of the present invention provides and system, comprising: receive the message that message output module sends; Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded; According to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module; If, then discharge a credit to described message output module, visible, in the present embodiment, after only having each message in coupling message to be all read, just can discharge to message output module credit, thus message output module just has a credit to send next coupling message, thus the disposal ability of balance transmitting terminal and receiving terminal, not only resource overhead is few, and implementation is simple.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the disclosed a kind of coupling message credit method for releasing schematic flow sheet of the embodiment of the present invention;
Fig. 2 is the disclosed a kind of coupling message credit delivery system structural representation of the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of coupling message credit method for releasing and system, to discharge the credit of coupling message, thus the disposal ability of balance transmitting terminal and receiving terminal.
See Fig. 1, the one coupling message credit method for releasing that the embodiment of the present invention provides, comprising:
The message that S101, reception message output module send;
S102, judge that whether described message is coupling message; If so, then perform S103, by the often kind of message buffer memory by type in described coupling message, and record the type of message information of described coupling message; If not, then S101 is performed;
Concrete, when this message is not coupling message, do not add indication information, and continue to receive the next record message processing output module and send.
Wherein, after recording the type of message information of described coupling message, comprising:
Each message in described coupling message is added coupling and indicates position.
Concrete, before message carries out buffer memory by transmission channel, can differentiate whether this message belongs to coupling message by type of message, if coupling message, then all types of messages that coupling message comprises all are added coupling flag bit, the message namely containing coupling flag bit is all the messages in coupling message; Again by coupling message by type of message respectively buffer memory enter the subchannel packet buffer module of first-in first-out.Wherein, in subchannel packet buffer module, the buffer memory that dissimilar message is corresponding is separate, during subsequent module reading process, and not Existence dependency relationship each other.
Wherein, when the message that is coupled writes subchannel packet buffer module, by the type of message information of coupling message, namely comprise the information which plants message, also write the coupling information logging modle of first-in first-out simultaneously.
S104, according to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module;
If so, S105, release credit is then performed to described message output module; If not, then continue to perform S104.
Concrete, the all type of messages comprised due to coupling message share a credit, so after only having all type of messages comprised when coupling message to be all read process, just can carry out the release of this credit, otherwise the message such as deadlock or spilling can be caused cannot to obtain the phenomenon of correct process.
Wherein, according to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module, comprising:
According to described type of message information, judge whether the numerical value of the coupling packet accouter that each message in described coupling message is corresponding is all greater than one; Wherein, the initial value of described coupling packet accouter is zero, after the message carrying coupling sign position is read, then adds one by with the numerical value of the packet accouter that is coupled corresponding to the message be read;
If so, then judge that often kind of message of described coupling message is all read by described each passage message receiver module.
Concrete, in message subchannel cache module, every type message passage all arranges the packet accouter that is independently coupled, when the coupling information flag of the message be read is effective, then the numerical value of the coupling packet accouter that this type message is corresponding adds one, otherwise the numerical value of coupling packet accouter remains unchanged.Wherein, representated by coupling packet accouter value, the coupling message comprising the type message at this passage by subsequent module reading process, but the undelivered quantity of coupling message credit of correspondence.Regulation coupling packet accouter initial value is 0, in order to make Counter Value overflow, specifies the maximum counter value that its bit wide can represent to be not less than the maximum of coupling information message credit.
And in the present embodiment, the type of message information of coupling message is all recorded, so according to the order of first-in first-out, according to the type of message information of coupling information logging modle record, judge whether the numerical value of the coupling packet accouter of all messages that this type of message information comprises is non-zero, if be non-zero, then judge that often kind of message of coupling message is all read by each passage message receiver module, then discharge a coupling message credit, and enter and discharge arbitration process next time, otherwise, continue to wait for until meet release conditions.
Wherein, after discharging a credit to described message output module, comprising:
The numerical value of the coupling packet accouter corresponding to each message in described coupling message is all subtracted one, and by the type of message erasing of information of described coupling message.
Concrete, the record in the present embodiment in coupling information logging modle, can determine whether there is and write message subchannel cache module, but the basis for estimation that the coupling credit of correspondence does not also discharge.If coupling information logging modle is empty, show not exist the coupling message needing to discharge credit, otherwise enter coupling credit release arbitration process.Therefore after release credit to message output module, the numerical value of the coupling packet accouter in the coupling message of release corresponding to each message is subtracted one, and the type of message information of this coupling message is read from coupling information logging modle and abandons.
The one coupling message credit method for releasing that the embodiment of the present invention provides, comprising: receive the message that message output module sends; Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded; According to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module; If, then discharge a credit to described message output module, visible, in the present embodiment, after only having each message in coupling message to be all read, just can discharge to message output module credit, thus message output module just has a credit to send next coupling message, thus the disposal ability of balance transmitting terminal and receiving terminal, not only resource overhead is few, and implementation is simple.
Be introduced the one coupling message credit delivery system that the embodiment of the present invention provides below, one coupling message credit delivery system described below is coupled message credit method for releasing with above-described one can be cross-referenced.
See Fig. 2, the one coupling message credit delivery system that the embodiment of the present invention provides, comprising:
Message output module 100, for exporting single type message and coupling message;
Concrete, the channel of message output module 100 primary responsibility list type message in the present embodiment and coupling message sends and controls.Wherein, whether message output module 100 can send message and depend on that whether this message also has the corresponding credit that sends to use.Every independent type message every only comprises a kind of type of message, and every type only takies the independent credit of an own type message, reads when this message is received module and returns transmitting terminal credit after processing; Every coupling message comprises multiple message types, shares a coupling message credit, only has when all types of messages in this coupling message are all read after process completes, could reclaim a credit.
Message subchannel cache module 200, for receiving the message that message output module 100 sends; Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded to coupling information logging modle 300;
Wherein, described message subchannel cache module, comprising:
Coupling indicates position adding device, indicates position for each message in described coupling message is added coupling.
Concrete, message subchannel cache module 200 is for receiving transmission channel message, and distinguish buffer memory according to the type of message of every message, its buffer memory degree of depth is not less than the maximum available credit sum of often kind of message that message output module 100 sends, the buffer memory of every type message is separate, the order that each passage buffer memory message exports and write buffer memory sequence consensus, first-in first-out, and every is buffered the coupling whether message is all coupling message with and indicates position.
Described coupling information logging modle 300 is for recording the type of message information of described coupling message;
Concrete, the type of message information of the coupling message that what coupling information logging modle 300 recorded is from message output module 100.
Each passage message receiver module 400, for reading message from described message subchannel cache module;
Concrete, each passage of each passage message receiver module 400 is respectively at message subchannel cache module 200 one_to_one corresponding in the present embodiment, independent each other, respectively according to respective disposition, the message of the different passages of reading process message subchannel cache module 200 correspondence.
Credit release arbitration modules 500, for according to described type of message information, judges whether often kind of message of described coupling message is all read by described each passage message receiver module; If so, a credit is then discharged to described message output module 100.
Wherein, described credit release arbitration modules 500, comprising:
Judging unit, for according to described type of message information, judges whether the numerical value of the coupling packet accouter that each message in described coupling message is corresponding is all greater than one; Wherein, the initial value of described coupling packet accouter is zero, after the message carrying coupling sign position is read, then adds one by with the numerical value of the packet accouter that is coupled corresponding to the message be read;
If so, then judge that often kind of message of described coupling message is all read by described each passage message receiver module.
Wherein, described credit release arbitration modules 500, comprising:
Performance element, for all subtracting one by the numerical value of the coupling packet accouter corresponding to each message in described coupling message, and by the type of message erasing of information of described coupling message.
Concrete, credit release arbitration modules 500 is for each passage of each passage message receiver module 400, be provided with all separately special coupling packet accouter, therefore according to the type of message information of the coupling information logging modle 300 obtained and the numerical value of coupling packet accouter, whether ruling coupling message credit discharges, and after being responsible for the credit of release one coupling message, reading and remove the type of message information in coupling information logging modle 200 corresponding to this coupling message.
In this specification, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (8)

1. the message credit that an is coupled method for releasing, is characterized in that, comprising:
Receive the message that message output module sends;
Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded;
According to described type of message information, judge whether often kind of message of described coupling message is all read by each passage message receiver module;
If so, a credit is then discharged to described message output module.
2. coupling message credit method for releasing according to claim 1, is characterized in that, after recording the type of message information of described coupling message, comprising:
Each message in described coupling message is added coupling and indicates position.
3. coupling message credit method for releasing according to claim 2, is characterized in that, according to described type of message information, judges whether often kind of message of described coupling message is all read by each passage message receiver module, comprising:
According to described type of message information, judge whether the numerical value of the coupling packet accouter that each message in described coupling message is corresponding is all greater than one; Wherein, the initial value of described coupling packet accouter is zero, after the message carrying coupling sign position is read, then adds one by with the numerical value of the packet accouter that is coupled corresponding to the message be read;
If so, then judge that often kind of message of described coupling message is all read by described each passage message receiver module.
4. coupling message credit method for releasing according to claim 3, is characterized in that, after discharging a credit to described message output module, comprising:
The numerical value of the coupling packet accouter corresponding to each message in described coupling message is all subtracted one, and by the type of message erasing of information of described coupling message.
5. the message credit that an is coupled delivery system, is characterized in that, comprising:
Message output module, for exporting single type message and coupling message;
Message subchannel cache module, for receiving the message that message output module sends; Judge whether described message is coupling message; If so, then by the often kind of message buffer memory by type in described coupling message, and the type of message information of described coupling message is recorded to coupling information logging modle;
Described coupling information logging modle is for recording the type of message information of described coupling message;
Each passage message receiver module, for reading message from described message subchannel cache module;
Credit release arbitration modules, for according to described type of message information, judges whether often kind of message of described coupling message is all read by described each passage message receiver module; If so, a credit is then discharged to described message output module.
6. coupling message credit delivery system according to claim 5, is characterized in that, described message subchannel cache module, comprising:
Coupling indicates position adding device, indicates position for each message in described coupling message is added coupling.
7. coupling message credit delivery system according to claim 6, is characterized in that, described credit release arbitration modules, comprising:
Judging unit, for according to described type of message information, judges whether the numerical value of the coupling packet accouter that each message in described coupling message is corresponding is all greater than one; Wherein, the initial value of described coupling packet accouter is zero, after the message carrying coupling sign position is read, then adds one by with the numerical value of the packet accouter that is coupled corresponding to the message be read;
If so, then judge that often kind of message of described coupling message is all read by described each passage message receiver module.
8. coupling message credit delivery system according to claim 7, is characterized in that, described credit release arbitration modules, comprising:
Performance element, for all subtracting one by the numerical value of the coupling packet accouter corresponding to each message in described coupling message, and by the type of message erasing of information of described coupling message.
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 true CN105429896A (en) 2016-03-23
CN105429896B 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)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020087720A1 (en) * 2000-12-28 2002-07-04 Davis Arlin R. System and method for communications management and control over an unreliable communications network
US20040076116A1 (en) * 2000-03-29 2004-04-22 Hefty Mark S. Methods and systems for flow control of transmissions over channel-based switched fabric connections
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040076116A1 (en) * 2000-03-29 2004-04-22 Hefty Mark S. Methods 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
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
CN105429896B (en) 2018-10-02

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
CN101616083B (en) Message forwarding method and device
CN100440184C (en) DMA controller and transmit method capable of simultaneously carrying out read-write operation
CN100426275C (en) Bus interface devices and method
CN103905300B (en) A kind of data message sending method, equipment and system
CN101547150B (en) method and device for scheduling data communication input port
CN102193874B (en) For cache manager and the method for diode-capacitor storage
CN101426270A (en) Method for providing a buffer status report in a mobile communication network
CN103986585A (en) Message preprocessing method and device
CN105656807A (en) Network chip multi-channel data transmission method and transmission device
CN104021097A (en) Data transmission method and device and direct memory access
CN101877666A (en) Method and device for receiving multi-application program message based on zero copy mode
CN101901199B (en) Method and system for data transparent transmission
CA2653257A1 (en) Bandwidth allocation method, optical line terminator, optical network unit, communication system, and recording medium recording program of device
US20080313365A1 (en) Controlling write transactions between initiators and recipients via interconnect logic
CN106506303A (en) A kind of main station system of controller real-time ethernet EtherCAT
CN105429896A (en) Coupled message credit releasing method and system
CN102143053A (en) Method, device and system for transmitting data
CN103701721A (en) Message transmission method and device
CN101634956B (en) Dispatching method and dispatcher of information of polynuclear processor
CN102857443B (en) Data writing method, device and system
CN103888211B (en) A kind of method and device carried out data transmission between cross chips
CN102238436A (en) Method and device for processing data in optical transmission
US20060020721A1 (en) Configurable ping-pong buffers for USB buffer descriptor tables

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