CN107317762A - Jamming control method and field layer device based on industry internet field layer device - Google Patents

Jamming control method and field layer device based on industry internet field layer device Download PDF

Info

Publication number
CN107317762A
CN107317762A CN201710517542.XA CN201710517542A CN107317762A CN 107317762 A CN107317762 A CN 107317762A CN 201710517542 A CN201710517542 A CN 201710517542A CN 107317762 A CN107317762 A CN 107317762A
Authority
CN
China
Prior art keywords
ccf
port
exchange chip
congestion
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.)
Pending
Application number
CN201710517542.XA
Other languages
Chinese (zh)
Inventor
王连忠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
BEIJING CORE TECHNOLOGY Co Ltd
Beijing Dongtu Jinyue Technology Co Ltd
Original Assignee
BEIJING CORE TECHNOLOGY Co Ltd
Beijing Dongtu Jinyue Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by BEIJING CORE TECHNOLOGY Co Ltd, Beijing Dongtu Jinyue Technology Co Ltd filed Critical BEIJING CORE TECHNOLOGY Co Ltd
Priority to CN201710517542.XA priority Critical patent/CN107317762A/en
Publication of CN107317762A publication Critical patent/CN107317762A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2483Traffic characterised by specific attributes, e.g. priority or QoS involving identification of individual flows
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/625Queue scheduling characterised by scheduling criteria for service slots or service orders
    • H04L47/6275Queue scheduling characterised by scheduling criteria for service slots or service orders based on priority

Abstract

The invention discloses a kind of jamming control method and field layer device based on industry internet field layer device, the industry internet field layer equipment includes industrial flow control management module, isomery field devices integration module and field bus communication protocol module.The industrial flow control management module is used for information monitoring and/or collection, and the information that will be monitored and/or gather is sent to the field bus communication protocol module, the bus protocol module determines control strategy based on the information, and the relevant parameter of the isomery field devices integration module forwards and the control strategy is controlled, realize the control to industry internet system relevant device.The present invention is by designing a congestion data frame, congestion control can be carried out based on port, priority, effectively solve the irrational problem of congestion control in stacked chips, realize the stream control more become more meticulous, diversified quality of service guarantee is provided the user, the autonomous controllable key chip of production domesticization is made.

Description

Jamming control method and field layer device based on industry internet field layer device
Technical field
The application is related to field of computer technology, more particularly to a kind of congestion control based on industry internet field layer device Method processed and field layer device.
Background technology
Industry internet is that global industry system is merged with senior calculating, analysis, induction technology and internet connection As a result.It is analyzed with reference to software and big data by the connection between intelligence machine and most man-machine connection at last, the global work of reconstruct Industry, excite productivity, allow the world it is finer, more rapidly, safer, more cleaning and more economical.
In industry internet, the congestion management in many exchange chip stacking process mainly passes through stack port to opposite end Chip sends the form of pause (Pause) frame to prevent opposite end from sending message to congestion port.Due to not carried in Pause frames The information of specific congestion port, using Pause frame stream controls, can block and all on the chip of opposite end be sended over by stack port Message, even if the destination interface of the message is not congestion port, also due to stacking opening is by Pause frame stream controls, and can not be just Often forwarding, this causes great waste to bandwidth.So, there is the congestion to the exchange chip in stacked chips in prior art Control irrational technical problem.
The content of the invention
The embodiment of the present application provides a kind of jamming control method and field layer dress based on industry internet field layer device Put, by the congestion data frame for being designed to transmit by standard ethernet port, port information, queue priority can be based on Message flow is flexibly controlled etc. information, the stream control more become more meticulous is realized, provides the user diversified quality of service guarantee.
The concrete technical scheme that the embodiment of the present application is provided is as follows:
In a first aspect, the embodiments of the invention provide a kind of congestion control side based on industry internet field layer device Method, the field layer device includes stacked chips, and the stacked chips include the first exchange chip, and the field layer device includes Field bus communication protocol module, industrial flow control management module, isomery field devices integration module, the industrial flow control Management module processed is used for information monitoring and/or collection, and the information that will be monitored and/or gather is sent to the field bus communication Protocol module, the bus protocol module determines control strategy based on the information, and controls the isomery field apparatus collection Into module forwards and the relevant parameter of the control strategy, the control to industry internet system relevant device, the side are realized Method includes:
The information of the industrial flow control management module based on monitoring and/or collection is determined in first exchange chip First priority query of first port is in congestion state;
The field bus communication protocol module is controlled based on the industrial flow the described in the determination of management module transfer The first priority query of first port is in the information of congestion state, generation congestion control information CCM in one exchange chip (Congestion Control Mechanism), wherein, the CCM carries the chip identification of first exchange chip, institute The congestion information of the port-mark of first port and the first priority query of the first port is stated, described first exchanges core Piece includes at least one port, each at least one priority query of port correspondence;Based on the CCM, congestion control frame is assembled CCF (Congestion Control Frame), the CCF include the CCM and life span TTL, and the TTL is used for Characterize the number of times that the CCF can be forwarded;
The field bus communication protocol module controls the isomery field devices integration module by the CCF by stacking Port sends the second exchange chip into the stacked chips, to enable second exchange chip to stop based on the CCF Only scheduling is sent to the message of the first priority query of the first port of first exchange chip.
In possible embodiment, before generation congestion control information CCM, methods described also includes:
Statistics is dispatched to the message flow of first priority query in preset time range;
When the message flow is more than predetermined threshold value, determine that first priority query of the first port is in Congestion state.
In possible embodiment, when assembling congestion control frame CCF, methods described also includes:
Obtain the bandwidth of the stack port;
Based on the bandwidth of the stack port, the transmission bandwidth of the CCF is determined, wherein, the transmission bandwidth of the CCF is N/mono-, N of the bandwidth of the stack port is the integer more than 1.
Second aspect, the embodiments of the invention provide a kind of congestion control side based on industry internet field layer device Method, the field layer device includes stacked chips, and the stacked chips include the second exchange chip, and the field layer device includes Field bus communication protocol module, industrial flow control management module, isomery field devices integration module, the industrial flow control Management module processed is used for information monitoring and/or collection, and the information that will be monitored and/or gather is sent to the field bus communication Protocol module, the bus protocol module determines control strategy based on the information, and controls the isomery field apparatus collection Into module forwards and the relevant parameter of the control strategy, the control to industry internet system relevant device, the side are realized Method includes:
The industrial flow control management module is received to be transmitted to the congestion of second exchange chip by stack port Control frame CCF, the CCF are the first exchange chip transmission in the stacked chips;
The field bus communication protocol module is parsed to the CCF, extracts the congestion control information in the CCF CCM;
The field bus communication protocol module is based on the CCM, determines the first port in first exchange chip The first priority query be in congestion state, stop second exchange chip scheduling is sent to first exchange chip the The message of first priority query of Single port.
It is described that the CCF is parsed in possible embodiment, extract the congestion control information in the CCF CCM, including:
Obtain the TTL in the CCF;
Judge whether the TTL is more than 0;
If it is, being parsed to the CCF, the congestion control information CCM in the CCF is extracted.
The third aspect, the embodiments of the invention provide a kind of industry internet field layer device, including stacked chips, is exchanged Chip is located in the stacked chips, and the field layer device includes field bus communication protocol module, industrial flow control pipe Module, isomery field devices integration module are managed, the industrial flow control management module is used for information monitoring and/or collection, and It will monitor and/or the information of collection sent to the field bus communication protocol module, the bus protocol module is based on The information determines control strategy, and controls isomery field devices integration module forwards ginseng related to the control strategy Number, realizes the control to industry internet system relevant device, and the field bus communication protocol module is specifically included:
The information of the industrial flow control management module based on monitoring and/or collection is determined first in the stacked chips The first priority query of first port is in congestion state in exchange chip;
The field bus communication protocol module is controlled based on the industrial flow the described in the determination of management module transfer The first priority query of first port is in the information of congestion state in one exchange chip, generates congestion control information CCM, its In, the CCM carries chip identification, the port-mark of the first port and the first end of first exchange chip The congestion information of first priority query of mouth, first exchange chip includes at least one port, and each port correspondence is extremely A few priority query;Based on the CCM, assembling congestion control frame CCF, when the CCF includes the CCM and existence Between TTL, the TTL be used for characterize the number of times that the CCF can be forwarded;
The field bus communication protocol module controls the isomery field devices integration module by the CCF by stacking Port sends the second exchange chip into the stacked chips, to enable second exchange chip to stop based on the CCF Only scheduling is sent to the message of the first priority query of the first port of first exchange chip;
The industrial flow control management module receives the congestion transmitted by stack port and cause second exchange chip Control frame CCF, the CCF are the first exchange chip transmission in the stacked chips;
The field bus communication protocol module is parsed to the CCF, extracts the congestion control information in the CCF CCM;
The field bus communication protocol module is based on the CCM, determines the first port in first exchange chip The first priority query be in congestion state, stop second exchange chip scheduling is sent to first exchange chip the The message of first priority query of Single port.
In possible embodiment, the industrial flow control management module is additionally operable to:
Before congestion information is produced, statistics is dispatched to the message of first priority query in preset time range Flow;
When the message flow is more than predetermined threshold value, determine that first priority query of the first port is in Congestion state.
In possible embodiment, the field bus communication protocol module is additionally operable to:
Obtain the bandwidth of the stack port;
Based on the bandwidth of the stack port, the transmission bandwidth of the CCF is determined, wherein, the transmission bandwidth of the CCF is N/mono-, N of the bandwidth of the stack port is the integer more than 1.
In possible embodiment, the analysis submodule is additionally operable to:
Judge whether the 2nd TTL is more than 0;
If it is, being parsed to the 2nd CCF, the 2nd CCM in the CCF is extracted.
Fourth aspect, the embodiments of the invention provide a kind of field layer device, including:One or more processors;And The program being stored with one or more computer-readable mediums, the computer-readable recording medium for congestion control, wherein, described program During by one or more of computing devices so that described device performs any one of above-mentioned first aspect and second aspect Method.
5th aspect, the embodiments of the invention provide one or more computer-readable mediums, is deposited on the computer-readable recording medium The program for congestion control is contained, wherein, when described program is executed by one or more processors so that field layer device is held The method of any one of the above-mentioned first aspect of row and second aspect.
Based on above-mentioned technical proposal, in the embodiment of the present invention, the first exchange chip in stacked chips is being detected When first priority query of first port is in congestion state, congestion control information is produced, and assemble generation congestion control CCF, the second exchange chip in stacked chips is sent to by stack port, and the second exchange chip leads to after the CCF is received Cross and parse the CCF, extract CCM, know that the first priority query of the first port of the first exchange chip is in congestion state, stop Only scheduling is sent to the message of the first priority query of the first port of the first exchange chip.Congestion control in the embodiment of the present invention Method processed can carry out congestion control based on port, priority, efficiently solve in the prior art to the exchange in stacked chips The irrational technical problem of congestion control of chip, realizes more flexible and accurately flow is controlled, make bandwidth resources It is utilized.
Brief description of the drawings
Figure 1A is the functional frame composition of industry internet operating system in the embodiment of the present application one;
Fig. 1 be the embodiment of the present application one in be applied to the first exchange chip field layer device jamming control method stream Cheng Tu;
The structural representation that Fig. 2 is CCF in the embodiment of the present application one;
Fig. 3 is the stack chip structure schematic diagram in the embodiment of the present application one using ring-type networking;
Fig. 4 is the queue schematic diagram in the embodiment of the present application one;
Fig. 5 be the embodiment of the present application two in be applied to the second exchange chip field layer device jamming control method stream Cheng Tu;
Fig. 6 is the structure of the field bus communication protocol module of the field layer device of exchange chip in the embodiment of the present application three Schematic diagram;
Schematic diagram when Fig. 7 is transmitted for CCF in the embodiment of the present application three between exchange chip A and exchange chip B.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present application, the technical scheme in the embodiment of the present application is carried out clear, complete Site preparation is described, it is clear that described embodiment is only some embodiments of the present application, is not whole embodiments.It is based on The embodiment of the present application, the every other implementation that those of ordinary skill in the art are obtained under the premise of creative work is not made Example, belongs to the scope of the application protection.
In actual applications, industry internet operating system is to realize networking Industry Control, cloud Industry Control, visualization The basic system of factory and industrial big data analysis etc., is also to realize control information stream, management information flow and information of supply chain stream Between interaction fusion integrated system, be the reliable guarantee for realizing industry spot controllability.Industry internet as shown in Figure 1A In the functional frame composition of operating system, industry internet operating system at least includes:Application layer, cloud key-course and field layer, its In, application layer at least includes:Unified industry modeling standard module, software definition industrial flow module and industrial visualized management Module;Cloud key-course at least includes:Real-time data base, industrial privately owned cloud platform and industrial big data analysis platform;Field layer is extremely Include less:Field bus communication protocol module, industrial flow control management module, isomery field devices integration module and industry pipe Manage software load-on module.In addition, industry internet operating system also includes the industry for covering application layer, cloud key-course and field layer Data security module.
For integrated various isomery field apparatus modules, flow control methods are provided from chip level, multi-chip heap is solved Congestion control problem in folded application.A congestion data frame that can be transmitted by standard ethernet port of present invention design, Flow can flexibly be controlled based on information such as port information, queue priorities, realize the stream control more become more meticulous, provide the user Diversified quality of service guarantee, makes the autonomous controllable key chip of production domesticization.
In order to be able to realize that the flow to the exchange chip during chip-stacked carries out accurate congestion control, the application is real Apply in example, a kind of jamming control method based on industry internet field layer device is devised, applied in the first exchange chip Field layer device, first exchange chip be located at stacked chips in, the field layer device include field bus communication association Module, industrial flow control management module, isomery field devices integration module are discussed, the industrial flow control management module is used for Information monitoring and/or collection, and will monitor and/or collection information send to the field bus communication protocol module, it is described Bus protocol module determines control strategy based on the information, and controls the isomery field devices integration module forwards and institute The relevant parameter of control strategy is stated, the control to industry internet system relevant device is realized, methods described includes:
The information of the industrial flow control management module based on monitoring and/or collection is determined in first exchange chip First priority query of first port is in congestion state;
The field bus communication protocol module is controlled based on the industrial flow the described in the determination of management module transfer The first priority query of first port is in the information of congestion state in one exchange chip, generates congestion control information CCM, its In, the CCM carries chip identification, the port-mark of the first port and the first end of first exchange chip The congestion information of first priority query of mouth, first exchange chip includes at least one port, and each port correspondence is extremely A few priority query;Based on the CCM, assembling congestion control frame CCF, when the CCF includes the CCM and existence Between TTL, the TTL be used for characterize the number of times that the CCF can be forwarded;
The field bus communication protocol module controls the isomery field devices integration module by the CCF by stacking Port sends the second exchange chip into the stacked chips, to enable second exchange chip to stop based on the CCF Only scheduling is sent to the message of the first priority query of the first port of first exchange chip.
Embodiment one
A kind of jamming control method based on industry internet field layer device in the present embodiment, the field layer dress Put including stacked chips, the stacked chips include the first exchange chip, as shown in Figure 1A, the field layer device includes scene Bus protocol module, industrial flow control management module, isomery field devices integration module, the industrial flow control pipe Managing module is used for information monitoring and/or collection, and the information that will be monitored and/or gather is sent to the field bus communication agreement Module, the bus protocol module determines control strategy based on the information, and controls the isomery field devices integration mould Block forwards the relevant parameter with the control strategy, realizes the control to industry internet system relevant device, congestion control side Method includes step as shown in Figure 1:
Step 101:The information of the industrial flow control management module based on monitoring and/or collection determines that described first hands over The first priority query for changing first port in chip is in congestion state;
Step 102:The field bus communication protocol module is based on industrial flow control management module transfer really The first priority query of first port is in the information of congestion state, generation congestion control letter in fixed first exchange chip CCM is ceased, wherein, the CCM carries chip identification, the port-mark of the first port and the institute of first exchange chip The congestion information of the first priority query of first port is stated, first exchange chip includes at least one port, Mei Geduan Mouth corresponds at least one priority query;Based on the CCM, assembling congestion control frame CCF, the CCF include the CCM with And life span TTL, the TTL are for characterizing the number of times that the CCF can be forwarded;
Step 103:The field bus communication protocol module controls the isomery field devices integration module by the CCF The second exchange chip into the stacked chips is sent by stack port, to enable second exchange chip to be based on institute State the message that CCF stops dispatching the first priority query of the first port for being sent to first exchange chip.
Wherein it is determined that the first priority query of first port can be by as follows in congestion state in the first exchange chip Mode:
Statistics is dispatched to the message flow of first priority query in preset time range;
When the message flow is more than predetermined threshold value, determine that first priority query of the first port is in Congestion state.
When assembling congestion control frame CCF, methods described also includes:Obtain the bandwidth of the stack port;Based on described The bandwidth of stack port, determines the transmission bandwidth of the CCF, wherein, the transmission bandwidth of the CCF is the band of the stack port Wide N/mono-, N is the integer more than 1.
Setting TTL initial value is needed in CCF, to limit the number of times that the CCF can be forwarded, so, in assembling congestion During control frame CCF, methods described also includes:Obtain the networking structure of the stacked chips;Based on the networking structure, institute is determined State TTL initial value.
Specifically, in the present embodiment, field layer device includes stacked chips, the stacked chips include the first exchange core QOS submodules in piece and the second exchange chip, the field bus communication protocol module of the field layer device are pre-configured with each end Mouthful priority query and judge priority query be in congestion state the first predetermined threshold value and recovery to non-congested shape Second predetermined threshold value of state, the first predetermined threshold value is more than the second predetermined threshold value.When the message flow for being dispatched to the priority query During more than the first predetermined threshold value, determine that the priority query is in congestion state, when the message flow for being dispatched to the priority query When amount is less than the second predetermined threshold value, determine that the priority query is in non-congested state.
Such as:First exchange chip has 32 ports, each 8 priority queries of port correspondence, each priority team Row are provided with corresponding predetermined threshold value.First port can be any one in 32 ports, it is assumed that first port is port 1, The port 1 of first exchange chip is configured with the queue that priority is 0~7, and the first priority query can be that priority is 0~7 In any one queue, it is assumed that the first priority query is the queue that priority is 0, and priority is corresponding pre- for 0 queue If threshold value is 10, the queue that the priority for detecting port 1 in QOS modules is 0 is dispatched to the queue in preset time range Message flow be 15, more than predetermined threshold value 10, the field bus communication protocol module of the field layer device of the first exchange chip Determine that the priority of port 1 is in congestion state for 0 queue, produce corresponding congestion control information CCM.And then can be based on The CCM, assembling generation CCF.In specific implementation process, priority query's number of each port configuration can be according to actual conditions Set, the corresponding predetermined threshold value of each priority query can also be set according to actual conditions, here, the application does not make Limit.
In order to be able to realize that the flow to the exchange chip during chip-stacked carries out accurate congestion control, the application is real Apply in example, devise a kind of congestion control CCF, the structure of the frame is as shown in Figure 2.Each in Fig. 2 domain is described as follows:
DMAC:Target MAC (Media Access Control) address, may be configured as fixed value 0xFFFFFFFFFFFF, take 6 bytes;
SMAC:Source MAC, occurrence can take 6 bytes by user configuring;
TYPE:Type of message, occurrence can take 2 bytes by user configuring;
TTL:Life span, for characterizing in the number of times that the CCF can be forwarded, CCF repeating process, often by a core Piece, the ttl value subtracts 1, takes 1 byte, and TTL initial value can be determined according to actual networking situation, such as:Stacked chips include 5 exchange chips, using the structure of ring-type networking, TTL initial value may be set to 2, and the CCF is forwarded 2 times can be by the CCF Propagate to 4 exchange chips of other in stacked chips.
Reserved:Retention, takes 5 bytes;
CCM:Congestion control information a, CCF includes N group CCM information, and N is the number of the priority query configured.Each CCM information identifies corresponding mask UID_MASK (3bit), exchange chip by exchange chip and identifies UID (User Identification) (5bit) and congestion information CCI (Congestion Control Information) compositions (32bit).Wherein, UID is the chip identification in actual network environment, for distinguishing the different chips in network, shows the CCM Affiliated chip.UID_MASK can be used for some of shielding UID bit (1:Shield bit0;2:Shield bit1~bit0;3:Screen Cover bit2~bit0;4:Shield bit3~bit0;0:All bit are effective;5~7:reserved).CCI carries 32 ports Congestion information, each bit carries the congestion information of a port, and bit is 1 to represent port congestion, and bit is 0 to represent port not Congestion.What the 0th group of CCM in CCF was carried is the 1st group of CCM carryings in the congestion information for 32 ports that priority is 0, CCF When priority for 1 32 ports congestion information, by that analogy, a CCF carries 32 ports of N number of priority altogether Congestion information.
Frame check code FCS (Frame Check Sequence):Take 4 bytes.
Further, when being transmitted due to CCF in stack port, the transmission belt of normal data message can be taken It is wide.Limitation CCF transmission bandwidth is needed, in the present embodiment, the corresponding transmission bandwidths of CCF are the default of the bandwidth of stack port Multiple, such as, CCF transmission bandwidth can be limited to the 1/10 bandwidth limitation CCF of stack port bandwidth, certainly, CCF biography Defeated bandwidth can be set according to the actual requirements, here, the application is not limited.So, it is possible to prevente effectively from because of CCF transmission The bandwidth of more stack port is taken, causes the problem of normal message transmission is limited.
In specific implementation process, field bus communication protocol module it is determined that the first exchange chip first port When one priority query is in congestion state, the first priority query of first port is indicated according to above-mentioned CCM form generation CCM in congestion state, and then, generated by above-mentioned CCF forms after CCF, the field bus communication protocol module controls institute State isomery field devices integration module and the CCF is sent into other exchange chips into stacked chips by stack port, such as:The Two exchange chips, and then when the second exchange chip receives the CCF, field bus communication protocol module extracts the CCF first TTL, it is determined that TTL value be more than 0 when, the CCF is parsed.
The field bus communication protocol module of layer device is parsed to the CCF transmitted to the second exchange chip at the scene When, the CCM in CCF is extracted, CCI and UID in CCM is obtained, and then according to UID and CCI, the first exchange chip can be known First priority query of first port is in congestion state.Such as:First exchange chip includes 32 ports, each port pair 8 priority queries are answered, when the priority of port 1 is in congestion state for 0 queue, the corresponding flag bit in port 1 is set to Position is 1, shows that congestion occurs in port 1, and the corresponding priority in port 1 is also set to 1 for the flag bit of 0 queue, shows Occur congestion in port 1 is the queue that priority is 0.Second exchange chip determines that the first exchange chip goes out by reading UID Existing congestion, it is 1 to read the corresponding flag bit in port 1, determines that congestion, 1 pair of read port occurs in the port 1 of the first exchange chip The flag bit for the queue that the priority answered is 0 is 1, you can the corresponding priority in port 1 for determining the first exchange chip is 0 team Row are in congestion, and then, field bus communication protocol module controls the second exchange chip to stop scheduling and is sent to the first exchange chip The corresponding priority in port 1 for 0 queue message.
In order to more fully understand the jamming control method in the present embodiment, it is given below one and complete is applied to heap The example of the jamming control method of the field layer device of the first exchange chip in folded chip.
Multi-chip stacking networking scene constitutes loop network as shown in figure 3, five exchange chips are stacked.Every friendship Chip is changed using two stack ports of A, B with other two exchange chips to be connected.By taking exchange chip 5 as an example, to use congestion control Function processed, need to do following configuration:
It is 2 to set the ttl value that the UID values of exchange chip 5 are 5, CCF, and CCF can be made to be delivered to exchange chip 3 and exchange Transmission is not continued to after chip 1, prevents CCF from circulating in the loop;It is 0xFFFFFFFFFFFF, fixed value to set DMAC values;If SMAC values are put for 0x0180C2000000, the value can be configured by user flexibility.
Assuming that the priority of the common port 0 of exchange chip 5 is blocked for 0 message, the biographies of CCF in a network are produced Broadcast flow as follows:
Exchange chip 5 transmits CCF respectively by stack port A and B.
Exchange chip 4 is received after CCF, and the field bus communication protocol module of field layer device, which is detected, to be transmitted to exchange The CCF of chip 4 ttl value is 2, then extracts the CCM in CCF, CCM is sent into dispatching management module, exchange is known based on CCM The priority of the port 0 of chip 5 is blocked for 0 message, and then stops the end that dispatching exchange chip 4 is sent to exchange chip 5 The priority of mouth 0 is 0 message, then subtracts 1 by ttl value, the TTL field in modification CCF, and CCF is forwarded into exchange chip 3.
Exchange chip 3 is received after CCF, and the field bus communication protocol module of field layer device, which is detected, to be transmitted to exchange The CCF of chip 3 ttl value is 1, then extracts the CCM in CCF, CCM is sent into dispatching management module, exchange is known based on CCM The priority of the port 0 of chip 5 is blocked for 0 message, and then stops dispatching exchange chip 3 toward the port 0 of exchange chip 5 Priority be 0 message.Because ttl value is 1, exchange chip 3 will not be forwarded CCF to next chips exchange chip 1.
Similarly, exchange chip 2 is received after CCF, and the field bus communication protocol module of field layer device detects transmission Ttl value to exchange chip 2 is 2, then extracts the CCM in CCF, CCM is sent into dispatching management module, friendship is known based on CCM The priority for changing the port 0 of chip 5 is blocked for 0 message, and then stopping dispatching exchange chip 2 is sent to exchange chip 5 The priority of port 0 is 0 message, then subtracts 1 by ttl value, the TTL field in modification CCF, and CCF is forwarded into exchange chip 1.
Exchange chip 1 is received after CCF, and the field bus communication protocol module of field layer device, which is detected, to be transmitted to exchange The CCF of chip 1 ttl value is 1, then extracts the CCM in CCF, CCM is sent into dispatching management module, exchange is known based on CCM The priority of the port 0 of chip 5 is blocked for 0 message, and then stops dispatching exchange chip 1 toward the port 0 of exchange chip 5 Priority be 0 message, because ttl value is 1, exchange chip 1 will not be forwarded CCF to next chips exchange chip 3.
And then, it is not that obstruction is sent to this chip port when for 0 congestion is occurring for the priority of the port 0 of exchange chip 5 Other chips (including chip 0 itself) are sent to the preferential of the port 0 of exchange chip 5 in 0 all flows, only stream control stacked chips Level is the flow of 0 queue, and being sent to the priority of the port 0 of exchange chip 5 can normally send for 1~7 flow.
So, the jamming control method in the present embodiment can carry out congestion control based on port, priority, effectively solve The irrational technical problem of congestion control in the prior art to the exchange chip in stacked chips, is realized more flexibly and essence Really flow is controlled, bandwidth resources is utilized.
Further, in order to when the message in queue is scheduled, be only scheduled to complete message, it is ensured that message Continuity, accurate control has initiated dispatch request but has not completed the quantity for the Cell for actually going out team also, reduction cache resources Consumption, in the present embodiment, the queue of each port is as shown in Figure 4 in exchange chip.Some messages are included in queue, and it is each Some Cell (element) are included in individual message.Tail pointer is used to point to the Cell of last in queue in queue.Message tail pointer Last Cell for pointing to the complete message of last in queue.Scheduling head pointer is used to point to newest initiation request tune The Cell of degree.Going out group head pointer is used to point to last Cell for completing scheduling.Dispatching message head pointer is used to point to one First Cell of message.So, exchange chip can just use the queue in the embodiment of the present application, in subsequent steps, Message is dispatched accordingly.
In the embodiment of the present application, exchange chip is as follows to the scheduling idiographic flow of message:
The state of joining the team of queue is monitored, it is determined that when the state representation message of joining the team is joined the team, to the message trailer of the queue Pointer is updated, wherein, the message tail pointer is used to pointing to last of last complete message in the queue Unit Cell;
Calculate the scheduling head pointer of the queue and go out the difference of group head pointer, obtain scheduling difference, wherein, the scheduling Head pointer be used for point to current request scheduling Cell, it is described go out group head pointer be used for point to last complete scheduling Cell;
Determine that the scheduling difference is less than predetermined threshold value, and the scheduling head pointer is less than the message tail pointer When, the message in the queue is scheduled.
Specifically, the scheduler module in exchange chip monitors the state of joining the team of queue, it is determined that state representation message of joining the team enters During team, the tail pointer of queue is updated, wherein, tail pointer is used to point to the Cell of last in queue.Then, tail is obtained The first description information for the Cell that pointer is pointed to, and based on the first description information, determine that the Cell that tail pointer is pointed to is a report During last Cell of text, message tail pointer is pointed into the Cell that tail pointer is pointed to.In this manner it is possible to be determined by tail pointer Last Cell in queue, and the complete message of last in queue is determined by message tail pointer, so that follow-up Dispatching message during, only complete message can be scheduled by message tail pointer.
And then, exchange chip can be according to the scheduling difference of acquisition, and when subsequently initiating dispatch request, accurate control is Initiate dispatch request but do not complete the quantity for the Cell for actually going out team also, so as to reduce the consumption of cache resources.
Finally, exchange chip determines that scheduling difference is less than predetermined threshold value, and dispatches head pointer less than message tail pointer When, based on scheduling head pointer, it is determined that the Cell that head pointer is pointed to is dispatched, as the first Cell, and to the next of the first Cell Cell initiates dispatch request, and scheduling head pointer is updated, and points to the first Cell next Cell.Then, exchange Chip is based on out group head pointer, determines the Cell that group head pointer is pointed to, as the 2nd Cell, and determines that the 2nd Cell's is next When individual Cell completes scheduling, group head pointer will be gone out and be updated, point to the 2nd Cell next Cell.Then, exchange chip Based on group head pointer is gone out after the scheduling head pointer after renewal or/and renewal, the message in queue is scheduled.So, hand over Group Cell of head pointer sensing can will just be gone out to each Cell dispatched between the Cell that head pointer is pointed to by changing chip, be entered successively Row goes out team, completes scheduling.
In the embodiment of the present application, last complete message of queue is determined by message tail pointer, so as to only right Complete message is scheduled, it is ensured that the continuity of message, and the scheduling head pointer by queue and the difference for going out group head pointer Value, can accurately control to have initiated dispatch request but not complete the quantity for the Cell for actually going out team also, so as to reduce caching The consumption of resource.
Embodiment two
The present embodiment provides a kind of jamming control method based on industry internet field layer device, the field layer device Including stacked chips, the stacked chips include the second exchange chip, as shown in Figure 1A, and it is total that the field layer device includes scene Line communication protocol module, industrial flow control management module, isomery field devices integration module, the industrial flow control management Module is used for information monitoring and/or collection, and the information that will be monitored and/or gather is sent to the field bus communication agreement mould Block, the bus protocol module determines control strategy based on the information, and controls the isomery field devices integration module Forwarding and the relevant parameter of the control strategy, realize the control to industry internet system relevant device, jamming control method Including step as shown in Figure 5:
Step 501:The industrial flow control management module, which receives to transmit to described second by stack port, exchanges core Congestion control the frame CCF, the CCF of piece are the first exchange chip transmission in the stacked chips;
Step 502:The field bus communication protocol module is parsed to the CCF, extracts the congestion in the CCF Control information CCM;
Step 503:The field bus communication protocol module is based on the CCM, determines in first exchange chip First priority query of first port is in congestion state, and stopping scheduling being sent to the first port of first exchange chip The message of first priority query.
Wherein, it is described that the CCF is parsed, the congestion control information CCM in the CCF is extracted, including:
Obtain the TTL in the CCF;
Judge whether the TTL is more than 0;
If it is, being parsed to the CCF, the congestion control information CCM in the CCF is extracted.
Specifically, in the present embodiment, field layer device includes stacked chips, the stacked chips include the first exchange core QOS submodules in piece and the second exchange chip, the field bus communication protocol module of the field layer device are pre-configured with each end Mouthful priority query and judge priority query be in congestion state the first predetermined threshold value and recovery to non-congested shape Second predetermined threshold value of state, the first predetermined threshold value is more than the second predetermined threshold value.When the message flow for being dispatched to the priority query During more than the first predetermined threshold value, determine that the priority query is in congestion state, when the message flow for being dispatched to the priority query When amount is less than the second predetermined threshold value, determine that the priority query is in non-congested state.
Such as:First exchange chip has 32 ports, each 8 priority queries of port correspondence, each priority team Row are provided with corresponding predetermined threshold value.First port can be any one in 32 ports, it is assumed that first port is port 1, The port 1 of first exchange chip is configured with the queue that priority is 0~7, and the first priority query can be that priority is 0~7 In any one queue, it is assumed that the first priority query is the queue that priority is 0, and priority is corresponding pre- for 0 queue If threshold value is 10, the queue that the priority for detecting port 1 in QOS modules is 0 is dispatched to the queue in preset time range Message flow be 15, more than predetermined threshold value 10, the field bus communication protocol module of the field layer device of the first exchange chip Determine that the priority of port 1 is in congestion state for 0 queue, produce corresponding congestion control information CCM.And then can be based on The CCM, assembling generation CCF.In specific implementation process, priority query's number of each port configuration can be according to actual conditions Set, the corresponding predetermined threshold value of each priority query can also be set according to actual conditions, here, the application does not make Limit.
In order to be able to realize that the flow to the exchange chip during chip-stacked carries out accurate congestion control, the application is real Apply in example, devise a kind of congestion control CCF, the structure of the frame is as shown in Figure 2.Each in Fig. 2 domain is described as follows:
DMAC:Target MAC (Media Access Control) address, may be configured as fixed value 0xFFFFFFFFFFFF, take 6 bytes;
SMAC:Source MAC, occurrence can take 6 bytes by user configuring;
TYPE:Type of message, occurrence can take 2 bytes by user configuring;
TTL:Life span, for characterizing in the number of times that the CCF can be forwarded, CCF repeating process, often by a core Piece, the ttl value subtracts 1, takes 1 byte, and TTL initial value can be determined according to actual networking situation, such as:Stacked chips include 5 exchange chips, using the structure of ring-type networking, TTL initial value may be set to 2, and the CCF is forwarded 2 times can be by the CCF Propagate to 4 exchange chips of other in stacked chips.
Reserved:Retention, takes 5 bytes;
CCM:Congestion control information a, CCF includes N group CCM information, and N is the number of the priority query configured.Each CCM information identifies corresponding mask UID_MASK (3bit), exchange chip by exchange chip and identifies UID (User Identification) (5bit) and congestion information CCI (Congestion Control Information) compositions (32bit).Wherein, UID is the chip identification in actual network environment, for distinguishing the different chips in network, shows the CCM Affiliated chip.UID_MASK can be used for some of shielding UID bit (1:Shield bit0;2:Shield bit1~bit0;3:Screen Cover bit2~bit0;4:Shield bit3~bit0;0:All bit are effective;5~7:reserved).CCI carries 32 ports Congestion information, each bit carries the congestion information of a port, and bit is 1 to represent port congestion, and bit is 0 to represent port not Congestion.What the 0th group of CCM in CCF was carried is the 1st group of CCM carryings in the congestion information for 32 ports that priority is 0, CCF When priority for 1 32 ports congestion information, by that analogy, a CCF carries 32 ports of N number of priority altogether Congestion information.
Frame check code FCS (Frame Check Sequence):Take 4 bytes.
Further, when being transmitted due to CCF in stack port, the transmission belt of normal data message can be taken It is wide.Limitation CCF transmission bandwidth is needed, in the present embodiment, the corresponding transmission bandwidths of CCF are the default of the bandwidth of stack port Multiple, such as, CCF transmission bandwidth can be limited to the 1/10 bandwidth limitation CCF of stack port bandwidth, certainly, CCF biography Defeated bandwidth can be set according to the actual requirements, here, the application is not limited.So, it is possible to prevente effectively from because of CCF transmission The bandwidth of more stack port is taken, causes the problem of normal message transmission is limited.
In specific implementation process, field bus communication protocol module it is determined that the first exchange chip first port When one priority query is in congestion state, the first priority query of first port is indicated according to above-mentioned CCM form generation CCM in congestion state, and then, generated by above-mentioned CCF forms after CCF, the field bus communication protocol module controls institute State isomery field devices integration module and the CCF is sent into other exchange chips into stacked chips by stack port, such as:The Two exchange chips, and then when the second exchange chip receives the CCF, field bus communication protocol module extracts the CCF first TTL, it is determined that TTL value be more than 0 when, the CCF is parsed.
The field bus communication protocol module of layer device is parsed to the CCF transmitted to the second exchange chip at the scene When, the CCM in CCF is extracted, CCI and UID in CCM is obtained, and then according to UID and CCI, the first exchange chip can be known First priority query of first port is in congestion state.Such as:First exchange chip includes 32 ports, each port pair 8 priority queries are answered, when the priority of port 1 is in congestion state for 0 queue, the corresponding flag bit in port 1 is set to Position is 1, shows that congestion occurs in port 1, and the corresponding priority in port 1 is also set to 1 for the flag bit of 0 queue, shows Occur congestion in port 1 is the queue that priority is 0.Second exchange chip determines that the first exchange chip goes out by reading UID Existing congestion, it is 1 to read the corresponding flag bit in port 1, determines that congestion, 1 pair of read port occurs in the port 1 of the first exchange chip The flag bit for the queue that the priority answered is 0 is 1, you can the corresponding priority in port 1 for determining the first exchange chip is 0 team Row are in congestion, and then, field bus communication protocol module controls the second exchange chip to stop scheduling and is sent to the first exchange chip The corresponding priority in port 1 for 0 queue message.
In order to more fully understand the jamming control method in the present embodiment, it is given below one and complete is applied to heap The example of the jamming control method of the field layer device of the first exchange chip in folded chip.
Multi-chip stacking networking scene constitutes loop network as shown in figure 3, five exchange chips are stacked.Every friendship Chip is changed using two stack ports of A, B with other two exchange chips to be connected.By taking exchange chip 5 as an example, to use congestion control Function processed, need to do following configuration:
It is 2 to set the ttl value that the UID values of exchange chip 5 are 5, CCF, and CCF can be made to be delivered to exchange chip 3 and exchange Transmission is not continued to after chip 1, prevents CCF from circulating in the loop;It is 0xFFFFFFFFFFFF, fixed value to set DMAC values;If SMAC values are put for 0x0180C2000000, the value can be configured by user flexibility.
Assuming that the priority of the common port 0 of exchange chip 5 is blocked for 0 message, the biographies of CCF in a network are produced Broadcast flow as follows:
Exchange chip 5 transmits CCF respectively by stack port A and B.
Exchange chip 4 is received after CCF, and the field bus communication protocol module of field layer device, which is detected, to be transmitted to exchange The CCF of chip 4 ttl value is 2, then extracts the CCM in CCF, CCM is sent into dispatching management module, exchange is known based on CCM The priority of the port 0 of chip 5 is blocked for 0 message, and then stops the end that dispatching exchange chip 4 is sent to exchange chip 5 The priority of mouth 0 is 0 message, then subtracts 1 by ttl value, the TTL field in modification CCF, and CCF is forwarded into exchange chip 3.
Exchange chip 3 is received after CCF, and the field bus communication protocol module of field layer device, which is detected, to be transmitted to exchange The CCF of chip 3 ttl value is 1, then extracts the CCM in CCF, CCM is sent into dispatching management module, exchange is known based on CCM The priority of the port 0 of chip 5 is blocked for 0 message, and then stops dispatching exchange chip 3 toward the port 0 of exchange chip 5 Priority be 0 message.Because ttl value is 1, exchange chip 3 will not be forwarded CCF to next chips exchange chip 1.
Similarly, exchange chip 2 is received after CCF, and the field bus communication protocol module of field layer device detects transmission Ttl value to exchange chip 2 is 2, then extracts the CCM in CCF, CCM is sent into dispatching management module, friendship is known based on CCM The priority for changing the port 0 of chip 5 is blocked for 0 message, and then stopping dispatching exchange chip 2 is sent to exchange chip 5 The priority of port 0 is 0 message, then subtracts 1 by ttl value, the TTL field in modification CCF, and CCF is forwarded into exchange chip 1.
Exchange chip 1 is received after CCF, and the field bus communication protocol module of field layer device, which is detected, to be transmitted to exchange The CCF of chip 1 ttl value is 1, then extracts the CCM in CCF, CCM is sent into dispatching management module, exchange is known based on CCM The priority of the port 0 of chip 5 is blocked for 0 message, and then stops dispatching exchange chip 1 toward the port 0 of exchange chip 5 Priority be 0 message, because ttl value is 1, exchange chip 1 will not be forwarded CCF to next chips exchange chip 3.
And then, it is not that obstruction is sent to this chip port when for 0 congestion is occurring for the priority of the port 0 of exchange chip 5 Other chips (including chip 0 itself) are sent to the preferential of the port 0 of exchange chip 5 in 0 all flows, only stream control stacked chips Level is the flow of 0 queue, and being sent to the priority of the port 0 of exchange chip 5 can normally send for 1~7 flow.
Embodiment three
Based on the same inventive concept of jamming control method in embodiment one and embodiment two, provide one in the present embodiment Industry internet field layer device, including stacked chips are planted, exchange chip is located in the stacked chips, as shown in Figure 1A, institute Stating field layer device includes field bus communication protocol module, industrial flow control management module, isomery field devices integration mould Block, the industrial flow control management module is used for information monitoring and/or collection, and the information that will be monitored and/or gather is sent To the field bus communication protocol module, the bus protocol module determines control strategy based on the information, and controls The isomery field devices integration module forwards and the relevant parameter of the control strategy, are realized related to industry internet system The control of equipment, the field bus communication protocol module is specifically included:
The information of the industrial flow control management module based on monitoring and/or collection is determined first in the stacked chips The first priority query of first port is in congestion state in exchange chip;
The field bus communication protocol module is controlled based on the industrial flow the described in the determination of management module transfer The first priority query of first port is in the information of congestion state in one exchange chip, generates congestion control information CCM, its In, the CCM carries chip identification, the port-mark of the first port and the first end of first exchange chip The congestion information of first priority query of mouth, first exchange chip includes at least one port, and each port correspondence is extremely A few priority query;Based on the CCM, assembling congestion control frame CCF, when the CCF includes the CCM and existence Between TTL, the TTL be used for characterize the number of times that the CCF can be forwarded;
The field bus communication protocol module controls the isomery field devices integration module by the CCF by stacking Port sends the second exchange chip into the stacked chips, to enable second exchange chip to stop based on the CCF Only scheduling is sent to the message of the first priority query of the first port of first exchange chip;
The industrial flow control management module receives the congestion transmitted by stack port and cause second exchange chip Control frame CCF, the CCF are the first exchange chip transmission in the stacked chips;
The field bus communication protocol module is parsed to the CCF, extracts the congestion control information in the CCF CCM;
The field bus communication protocol module is based on the CCM, determines the first port in first exchange chip The first priority query be in congestion state, stop second exchange chip scheduling is sent to first exchange chip the The message of first priority query of Single port.
Specifically, as shown in fig. 6, the field bus communication protocol module is specifically included:
Service quality (QOS) submodule 601, the of first port in the first exchange chip in detecting stacked chips When one priority query is in congestion state, congestion information is produced;
(Capture) submodule 602 is captured, for capturing the congestion information that the QOS modules are produced, congestion control is generated The CCM of information the first, wherein, the first CCM carries chip identification, the port-mark of the first port of the exchange chip And the congestion information of the first priority query of the first port;
(Generate) submodule 603 is generated, for based on the first CCM, the CCF of congestion control the first being assembled, by institute State the first CCF and other exchange chips into the stacked chips are sent by stack port, to receive described first CCF other exchange chips can be stopped based on the first CCF scheduling be sent to the exchange chip first port it is first excellent The message of first level queue, wherein, the first CCF includes the first CCM and the first life span TTL, described first TTL is used to characterize the number of times that the first CCF can be forwarded;
Transmit (Transport) submodule 604, for receive that a upper exchange chip in the stacked chips sends the Two CCF, obtain the 2nd TTL in the 2nd CCF, if second ttl value is more than 1, change the TTL in the 2nd CCF Domain, subtracts 1 by second ttl value, and amended 2nd CCF then is forwarded into next chips;
(Analyze) submodule 605 is analyzed, for parsing the 2nd CCF, second in the 2nd CCF is extracted CCM;
(SCH) submodule 606 is dispatched, the of the second port for determining the exchange chip indicated by the 2nd CCM Two priority queries are in congestion state, stop scheduling being sent to the second port for the exchange chip that the 2nd CCM is indicated the The message of two priority queries and the message for stopping dispatching the first priority query of the first port for being sent to this chip.
Wherein, QOS submodules 601 are additionally operable to:Before congestion information is produced, statistics is adjusted in the first preset time range Spend to the message flow of first priority query;When the message flow is more than predetermined threshold value, the first end is determined First priority query of mouth is in congestion state.
Transport submodules 604 are additionally operable to:Obtain the bandwidth of the stack port;Band based on the stack port Width, determines the transmission bandwidth of the CCF, wherein, the transmission bandwidth of the CCF is N/mono- of the bandwidth of the stack port, N is the integer more than 1.
The generation submodule is additionally operable to:When assembling a CCF, the networking structure of the stacked chips is obtained; Based on the networking structure, the initial value of the first TTL is determined.
The analysis submodule is additionally operable to:Judge whether the 2nd TTL is more than 0;If it is, to the 2nd CCF Parsed, extract the 2nd CCM in the CCF.
Specifically, in embodiments of the present invention, the QOS submodules 601 in exchange chip are pre-configured with the preferential of each port Level queue and judge priority query be in congestion state the first predetermined threshold value and recovery to the second of non-congested state Predetermined threshold value, the first predetermined threshold value is more than the second predetermined threshold value.When the message flow for being dispatched to the priority query is more than first During predetermined threshold value, determine that the priority query is in congestion state, when the message flow for being dispatched to the priority query is less than the During two predetermined threshold values, determine that the priority query is in non-congested state.
Such as:Exchange chip has 32 ports, and each 8 priority queries of port correspondence, each priority query sets It is equipped with corresponding predetermined threshold value.Such as:1 pair of the port of the configuration exchange chip of QOS submodules 601 should have the team that priority is 0~7 Row, the corresponding predetermined threshold value of queue that priority is 0 is 10.The team that the priority for detecting port 1 in QOS submodules 601 is 0 It is 15 to be listed in and the message flow of the queue is dispatched in preset time range, more than predetermined threshold value 10, determines the priority of port 1 Congestion state is in for 0 queue, congestion information is produced.Capture submodules 602 capture what the QOS submodules 601 were produced Congestion information, the first CCM is filled according to the information.Generate submodules 603 are based on the first CCM, assemble congestion control First CCF.In specific implementation process, priority query's number of each port configuration can be set according to actual conditions, The corresponding predetermined threshold value of each priority query can also be set according to actual conditions, here, the application is not construed as limiting.
In order to be able to realize that the flow to the exchange chip during chip-stacked carries out accurate congestion control, the application is real Apply in example, devise a kind of congestion control CCF, the structure of the frame is as shown in Figure 2.Each in Fig. 2 domain is described as follows:
DMAC:Target MAC (Media Access Control) address, may be configured as fixed value 0xFFFFFFFFFFFF, take 6 bytes;
SMAC:Source MAC, can take 6 bytes by user configuring;
TYPE:Type of message, it is self-defined, take 2 bytes;
TTL:Life span, for characterizing in the number of times that the CCF can be forwarded, CCF repeating process, often by a core Piece, the ttl value subtracts 1, takes 1 byte, and TTL initial value can be determined according to actual networking situation, such as:Stacked chips include 5 exchange chips, using the structure of ring-type networking, TTL initial value may be set to 2, and the CCF is forwarded 2 times can be by the CCF Propagate to 4 exchange chips of other in stacked chips.
Reserved:Retention, takes 5 bytes;
CCM:Congestion control information a, CCF includes N group CCM information, and N is the number of the priority query configured.Every group CCM information identifies corresponding mask UID_MASK (3bit), exchange chip by exchange chip and identifies UID (5bit) and congestion information CCI constitutes (32bit).Wherein, UID is the chip identification in actual network environment, for distinguishing the different chips in network, table Chip belonging to the bright CCM.UID_MASK can be used for some of shielding UID bit (1:Shield bit0;2:Shielding bit1~ bit0;3:Shield bit2~bit0;4:Shield bit3~bit0;0:All bit are effective;5~7:reserved).CCI is carried The congestion information of 32 ports, each bit carries the congestion information of a port, and bit represents port congestion for 1, and bit was 0 generation The non-congestion in table port.What the 0th group of CCM in CCF was carried is the 1st in the congestion information for 32 ports that priority is 0, CCF The when priority that group CCM is carried is the congestion information of 1 32 ports, and by that analogy, a CCF carries N number of priority altogether The congestion information of 32 ports.
Frame check code FCS:Take 4 bytes.
Further, when being transmitted due to CCF in stack port, the transmission belt of normal data message can be taken It is wide.Limitation CCF transmission bandwidth is needed, in the present embodiment, the corresponding transmission bandwidths of CCF are the default of the bandwidth of stack port Multiple, such as, CCF transmission bandwidth can be limited to the 1/10 bandwidth limitation CCF of stack port bandwidth, certainly, CCF biography Defeated bandwidth can be set according to the actual requirements, here, the application is not limited.So, it is possible to prevente effectively from because of CCF transmission The bandwidth of more stack port is taken, causes the problem of normal message transmission is limited.
In specific implementation process, the first priority query for determining first port in the first exchange chip is in congestion shape During state, Generate submodules 603 indicate that the first priority query of first port is according to above-mentioned CCM form generation and gathered around First CCM of plug-like state, and then, generated by above-mentioned CCF forms after the first CCF, the first CCF is sent by stack port Other exchange chips into the stacked chips, to enable other exchange chips for receiving the first CCF to be based on institute State the message that the first CCF stops dispatching the first priority query of the first port for being sent to the exchange chip.
Transport submodules 604 are additionally operable to receive the 2nd CCF that other exchange chips in stacked chips are sent, such as: Receive the 2nd CCF of the second exchange chip transmission.After Transport submodules 604 receive the 2nd CCF, second is obtained CCF the 2nd TTL, if the second ttl value is more than 1, subtracts 1 by the second ttl value, the second TTL field in the 2nd CCF of modification, then will 2nd CCF is forwarded to next exchange chip, and the 2nd CCF is forwarded to the Analyze submodules 605 in this chip, Analyze submodules 605 extract the 2nd CCF the 2nd TTL first, it is determined that the 2nd TTL value be more than 0 when to this second CCF is parsed, and extracts the 2nd CCM in the 2nd CCF, the 2nd CCM parsed is sent into SCH submodules 606.SCH Module 606 is based on the 2nd CCM, determines at the second priority query of second port of exchange chip indicated by the 2nd CCM In congestion state, stop dispatching the second priority query of the second port for being sent to the exchange chip that the 2nd CCM is indicated Message.
Analyze submodules 605 extract the 2nd CCM in the 2nd CCF when being parsed to the 2nd CCF, obtain second CCI and UID in CCM, and then according to UID and CCI, the corresponding priority team of the corresponding ports of the second exchange chip can be known Row are in congestion state.Such as:Second exchange chip includes 32 ports, each 8 priority queries of port correspondence, in port When 3 priority is in congestion state for 4 queue, the corresponding flag bit in port 3 is set to 1, shows that port 3 is gathered around Plug, and the corresponding priority in port 3 is also set to 1 for 4 flag bit of queue, show congestion occur in port 3 is excellent First level is 4 queue.Exchange chip in the present embodiment determines that congestion occurs in the second exchange chip by reading UID, reads The corresponding flag bit in port 3 is 1, determines that congestion occurs in the port 3 of the second exchange chip, the corresponding priority of read port 3 is 4 The flag bit of queue be 1, you can determine that the corresponding priority in port 3 of the second exchange chip is in congestion for 4 queue.Enter And, SCH submodules 606 stop scheduling and are sent to message of the corresponding priority in port 3 of the second exchange chip for 4 queue.
In order to more fully understand the jamming control method in the present embodiment, exchange chip A is given below and core is exchanged CCF repeating process in the middle of piece B.
As shown in fig. 7, Port A and Port B are two stack ports, certain port (can stack end in exchange chip A Mouth or common port) occur congestion, when exchange chip A, which detects certain port, occurs congestion, in exchange chip A Port and priority query information of the capture of Capture submodules from OQS submodules, CCM information is filled according to the information.
Capture submodules in exchange chip A send CCM information to SCH submodules, by the stopping pair of SCH submodules It is sent to the scheduling of the corresponding discharge of the congestion port of this chip.Capture submodules in exchange chip A send CCM information To Generate submodules, the CCM information of this chip is assembled into CCF by Generate submodules, sent by stack port Give exchange chip B.
Exchange chip B is received after CCF, is sent to Transport submodules and Analyze submodules, Transport Ttl value is subtracted 1 by module when the ttl value of the CCF is more than 1, and then the CCF is forwarded to next by the TTL field in modification CCF Chip.Analyze submodules then parse to the CCF when ttl value is more than 0, the CCM information parsed are sent into SCH Submodule, SCH submodules stop scheduling and are sent to exchange chip A according to the UID parsed, port numbers and priority query's information D corresponding port and the message of priority query.
Further, in order to when the message in queue is scheduled, be only scheduled to complete message, it is ensured that message Continuity, accurate control has initiated dispatch request but has not completed the quantity for the Cell for actually going out team also, reduction cache resources Consumption, in the present embodiment, the queue of each port is as shown in Figure 4 in exchange chip.Some messages are included in queue, and it is each Some Cell (element) are included in individual message.Tail pointer is used to point to the Cell of last in queue in queue.Message tail pointer Last Cell for pointing to the complete message of last in queue.Scheduling head pointer is used to point to newest initiation request tune The Cell of degree.Going out group head pointer is used to point to last Cell for completing scheduling.Dispatching message head pointer is used to point to one First Cell of message.So, exchange chip can just use the queue in the embodiment of the present application, in subsequent steps, Message is dispatched accordingly.
In the embodiment of the present application, SCH submodules are as follows to the scheduling idiographic flow of message in exchange chip:
The state of joining the team of queue is monitored, it is determined that when the state representation message of joining the team is joined the team, to the message trailer of the queue Pointer is updated, wherein, the message tail pointer is used to pointing to last of last complete message in the queue Unit Cell;
Calculate the scheduling head pointer of the queue and go out the difference of group head pointer, obtain scheduling difference, wherein, the scheduling Head pointer be used for point to current request scheduling Cell, it is described go out group head pointer be used for point to last complete scheduling Cell;
Determine that the scheduling difference is less than predetermined threshold value, and the scheduling head pointer is less than the message tail pointer When, the message in the queue is scheduled.
Specifically, the state of joining the team of the scheduling sublayer module monitors queue in exchange chip, it is determined that state representation message of joining the team When joining the team, the tail pointer of queue is updated, wherein, tail pointer is used to point to the Cell of last in queue.Then, obtain The first description information for the Cell that tail pointer is pointed to, and based on the first description information, determine that the Cell that tail pointer is pointed to is one During last Cell of message, message tail pointer is pointed into the Cell that tail pointer is pointed to.In this manner it is possible to true by tail pointer Determine last Cell in queue, and the complete message of last in queue is determined by message tail pointer, so that rear During continuous dispatching message, only complete message can be scheduled by message tail pointer.
And then, SCH submodules can be according to the scheduling difference of acquisition, and when subsequently initiating dispatch request, accurate control is Through initiating the quantity of dispatch request but the also unfinished Cell for actually going out team, so as to reduce the consumption of cache resources.
Finally, SCH submodules determine that scheduling difference is less than predetermined threshold value, and dispatch head pointer less than message tail pointer When, based on scheduling head pointer, it is determined that the Cell that head pointer is pointed to is dispatched, as the first Cell, and to the next of the first Cell Cell initiates dispatch request, and scheduling head pointer is updated, and points to the first Cell next Cell.Then, first Exchange chip is based on out group head pointer, determines the Cell that group head pointer is pointed to, and as the 2nd Cell, and determines the 2nd Cell's When next Cell completes scheduling, group head pointer will be gone out and be updated, point to the 2nd Cell next Cell.Then, first Exchange chip is scheduled based on group head pointer is gone out after the scheduling head pointer after renewal or/and renewal to the message in queue. So, the first exchange chip can will just go out Cell that group head pointer points to dispatching each between the Cell that head pointer is pointed to Cell, carries out out team successively, completes scheduling.
In the embodiment of the present application, last complete message of queue is determined by message tail pointer, so as to only right Complete message is scheduled, it is ensured that the continuity of message, and the scheduling head pointer by queue and the difference for going out group head pointer Value, can accurately control to have initiated dispatch request but not complete the quantity for the Cell for actually going out team also, so as to reduce caching The consumption of resource.Example IV
The present embodiment provides a kind of field layer device, including:One or more processors;And one or more computers The program being stored with computer-readable recording medium, the computer-readable recording medium for congestion control, wherein, described program is one or more of During computing device so that described device is performed such as the jamming control method in embodiment one or embodiment two.
Embodiment five
The present embodiment is provided to be stored with for congestion control on one or more computer-readable mediums, the computer-readable recording medium Program, wherein, when described program is executed by one or more processors so that field layer device is performed such as embodiment one or real Apply the jamming control method in example two.
Based on above-mentioned technical proposal, in the embodiment of the present invention, the first exchange chip in stacked chips is being detected When first priority query of first port is in congestion state, congestion control information is produced, and assemble generation congestion control CCF, the second exchange chip in stacked chips is sent to by stack port, and the second exchange chip leads to after the CCF is received Cross and parse the CCF, extract CCM, know that the first priority query of the first port of the first exchange chip is in congestion state, stop Only scheduling is sent to the message of the first priority query of the first port of the first exchange chip.Congestion control in the embodiment of the present invention Method processed can carry out congestion control based on port, priority, efficiently solve in the prior art to the exchange in stacked chips The irrational technical problem of congestion control of chip, realizes more flexible and accurately flow is controlled, make bandwidth resources It is utilized.
It should be understood by those skilled in the art that, the embodiment in the embodiment of the present application can be provided as method, system or meter Calculation machine program product.Therefore, using complete hardware embodiment, complete software embodiment or it can be combined soft in the embodiment of the present application The form of the embodiment of part and hardware aspect.Wherein include meter one or more moreover, can be used in the embodiment of the present application The computer-usable storage medium of calculation machine usable program code (includes but is not limited to magnetic disk storage, CD-ROM, optical memory Deng) on the form of computer program product implemented.
It is with reference to according to the method for embodiment, equipment (system) and calculating in the embodiment of the present application in the embodiment of the present application The flow chart and/or block diagram of machine program product is described.It should be understood that can by computer program instructions implementation process figure and/or Each flow and/or square frame in block diagram and the flow in flow chart and/or block diagram and/or the combination of square frame.It can carry For the processing of these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or other programmable datas The processor of equipment is to produce a machine so that pass through computer or the computing device of other programmable data processing devices Instruction produce for realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames refer to The device of fixed function.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment in the embodiment of the present application, those skilled in the art once know Basic creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to explain To include preferred embodiment and fall into being had altered and changing for scope in the embodiment of the present application.
Obviously, those skilled in the art can in the embodiment of the present application embodiment carry out it is various change and modification without Depart from the spirit and scope of embodiment in the embodiment of the present application.So, if in the embodiment of the present application embodiment these modification Belong to modification in the embodiment of the present application within the scope of claim and its equivalent technologies, be then also intended in the embodiment of the present application Including these changes and modification.

Claims (10)

1. a kind of jamming control method based on industry internet field layer device, the field layer device includes stacked chips, The stacked chips include the first exchange chip characterized in that, the field layer device includes field bus communication agreement mould Block, industrial flow control management module, isomery field devices integration module, the industrial flow control management module are used for information Monitor and/or gather, and the information that will be monitored and/or gather is sent to the field bus communication protocol module, the bus Communication protocol module determines control strategy based on the information, and controls the isomery field devices integration module forwards and the control The relevant parameter of strategy is made, the control to industry internet system relevant device is realized, methods described includes:
The information of the industrial flow control management module based on monitoring and/or collection is determined first in first exchange chip First priority query of port is in congestion state;
The field bus communication protocol module controls the first friendship described in the determination of management module transfer based on the industrial flow The first priority query for changing first port in chip is in the information of congestion state, generates congestion control information CCM, wherein, The CCM carries chip identification, the port-mark of the first port and the first port of first exchange chip The first priority query congestion information, first exchange chip includes at least one port, and each port correspondence is at least One priority query;Based on the CCM, assembling congestion control frame CCF, the CCF include the CCM and life span TTL, the TTL are used to characterize the number of times that the CCF can be forwarded;
The field bus communication protocol module controls the isomery field devices integration module that the CCF is passed through into stack port The second exchange chip into the stacked chips is sent, stops adjusting to enable second exchange chip to be based on the CCF Degree is sent to the message of the first priority query of the first port of first exchange chip.
2. the method as described in claim 1, it is characterised in that before generation congestion control information CCM, methods described is also wrapped Include:
Statistics is dispatched to the message flow of first priority query in preset time range;
When the message flow is more than predetermined threshold value, determine that first priority query of the first port is in congestion State.
3. the method as described in claim 1, it is characterised in that when assembling congestion control frame CCF, methods described also includes:
Obtain the bandwidth of the stack port;
Based on the bandwidth of the stack port, the transmission bandwidth of the CCF is determined, wherein, the transmission bandwidth of the CCF is described N/mono-, N of the bandwidth of stack port is the integer more than 1.
4. a kind of jamming control method based on industry internet field layer device, the field layer device includes stacked chips, The stacked chips include the second exchange chip, it is characterised in that the field layer device includes field bus communication agreement mould Block, industrial flow control management module, isomery field devices integration module, the industrial flow control management module are used for information Monitor and/or gather, and the information that will be monitored and/or gather is sent to the field bus communication protocol module, the bus Communication protocol module determines control strategy based on the information, and controls the isomery field devices integration module forwards and the control The relevant parameter of strategy is made, the control to industry internet system relevant device is realized, methods described includes:
The industrial flow control management module is received to be transmitted to the congestion control of second exchange chip by stack port Frame CCF, the CCF are the first exchange chip transmission in the stacked chips;
The field bus communication protocol module is parsed to the CCF, extracts the congestion control information CCM in the CCF;
The field bus communication protocol module is based on the CCM, determines the of first port in first exchange chip One priority query is in congestion state, stops the first end that the second exchange chip scheduling is sent to first exchange chip The message of first priority query of mouth.
5. method as claimed in claim 4, it is characterised in that described to be parsed to the CCF, is extracted in the CCF Congestion control information CCM, including:
Obtain the TTL in the CCF;
Judge whether the TTL is more than 0;
If it is, being parsed to the CCF, the congestion control information CCM in the CCF is extracted.
6. a kind of field layer device based on industry internet, including stacked chips, exchange chip are located in the stacked chips, Control management module, isomery existing characterized in that, the field layer device includes field bus communication protocol module, industrial flow Field device integration module, the industrial flow control management module is used for information monitoring and/or collection, and will monitor and/or adopt The information of collection is sent to the field bus communication protocol module, and the bus protocol module is based on the information and determines control Strategy, and the relevant parameter of the isomery field devices integration module forwards and the control strategy is controlled, realize mutual to industry The control of networked system relevant device, the field bus communication protocol module is specifically included:
The information of the industrial flow control management module based on monitoring and/or collection determines the first exchange in the stacked chips The first priority query of first port is in congestion state in chip;
The field bus communication protocol module controls the first friendship described in the determination of management module transfer based on the industrial flow The first priority query for changing first port in chip is in the information of congestion state, generates congestion control information CCM, wherein, The CCM carries chip identification, the port-mark of the first port and the first port of first exchange chip The first priority query congestion information, first exchange chip includes at least one port, and each port correspondence is at least One priority query;Based on the CCM, assembling congestion control frame CCF, the CCF include the CCM and life span TTL, the TTL are used to characterize the number of times that the CCF can be forwarded;
The field bus communication protocol module controls the isomery field devices integration module that the CCF is passed through into stack port The second exchange chip into the stacked chips is sent, stops adjusting to enable second exchange chip to be based on the CCF Degree is sent to the message of the first priority query of the first port of first exchange chip;
The industrial flow control management module receives the congestion control for being transmitted by stack port and causing second exchange chip Frame CCF, the CCF are the first exchange chip transmission in the stacked chips;
The field bus communication protocol module is parsed to the CCF, extracts the congestion control information CCM in the CCF;
The field bus communication protocol module is based on the CCM, determines the of first port in first exchange chip One priority query is in congestion state, stops the first end that the second exchange chip scheduling is sent to first exchange chip The message of first priority query of mouth.
7. field layer device as claimed in claim 6, it is characterised in that the industrial flow control management module is additionally operable to:
Before congestion information is produced, statistics is dispatched to the message flow of first priority query in preset time range Amount;
When the message flow is more than predetermined threshold value, determine that first priority query of the first port is in congestion State.
8. field layer device as claimed in claim 6, it is characterised in that the field bus communication protocol module is additionally operable to:
Obtain the bandwidth of the stack port;
Based on the bandwidth of the stack port, the transmission bandwidth of the CCF is determined, wherein, the transmission bandwidth of the CCF is described N/mono-, N of the bandwidth of stack port is the integer more than 1.
9. a kind of field layer device, it is characterised in that including:One or more processors;And one or more computers can The program being stored with medium, the computer-readable recording medium for congestion control is read, wherein, described program is by one or more of places When managing device execution so that described device performs the method as any one of claim 1 to 5.
10. one or more computer-readable mediums, it is characterised in that be stored with the computer-readable recording medium for congestion control Program, wherein, when described program is executed by one or more processors so that field layer device is performed as in claim 1 to 5 Method described in any one.
CN201710517542.XA 2017-06-29 2017-06-29 Jamming control method and field layer device based on industry internet field layer device Pending CN107317762A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710517542.XA CN107317762A (en) 2017-06-29 2017-06-29 Jamming control method and field layer device based on industry internet field layer device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710517542.XA CN107317762A (en) 2017-06-29 2017-06-29 Jamming control method and field layer device based on industry internet field layer device

Publications (1)

Publication Number Publication Date
CN107317762A true CN107317762A (en) 2017-11-03

Family

ID=60180296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710517542.XA Pending CN107317762A (en) 2017-06-29 2017-06-29 Jamming control method and field layer device based on industry internet field layer device

Country Status (1)

Country Link
CN (1) CN107317762A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404826A (en) * 2020-03-23 2020-07-10 盛科网络(苏州)有限公司 Flow planning method and device based on output port feedback

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447563A (en) * 2002-03-22 2003-10-08 华为技术有限公司 Stack speed process method in Ethernet exchanger
CN102025617A (en) * 2010-11-26 2011-04-20 中兴通讯股份有限公司 Method and device for controlling congestion of Ethernet
CN102510353A (en) * 2011-12-26 2012-06-20 北京映翰通网络技术有限公司 Expansion processing method under international telecommunication union telecommunication standardization sector (ITU-T) G.8032/Y.1344 multi-point fault
CN102611620A (en) * 2012-02-23 2012-07-25 福建星网锐捷网络有限公司 Congestion control method and message processing device
US20130329577A1 (en) * 2012-06-11 2013-12-12 Cisco Technology, Inc. System and method for distributed resource control of switches in a network environment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1447563A (en) * 2002-03-22 2003-10-08 华为技术有限公司 Stack speed process method in Ethernet exchanger
CN102025617A (en) * 2010-11-26 2011-04-20 中兴通讯股份有限公司 Method and device for controlling congestion of Ethernet
CN102510353A (en) * 2011-12-26 2012-06-20 北京映翰通网络技术有限公司 Expansion processing method under international telecommunication union telecommunication standardization sector (ITU-T) G.8032/Y.1344 multi-point fault
CN102611620A (en) * 2012-02-23 2012-07-25 福建星网锐捷网络有限公司 Congestion control method and message processing device
US20130329577A1 (en) * 2012-06-11 2013-12-12 Cisco Technology, Inc. System and method for distributed resource control of switches in a network environment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111404826A (en) * 2020-03-23 2020-07-10 盛科网络(苏州)有限公司 Flow planning method and device based on output port feedback
CN111404826B (en) * 2020-03-23 2022-04-22 苏州盛科通信股份有限公司 Flow planning method and device based on output port feedback

Similar Documents

Publication Publication Date Title
CN103281252B (en) Message flow control method and device based on multi-path transmission
CN101075945B (en) Method for determining realtime Ethernet telecommunication
CN104243350B (en) A kind of exchange of electric power machine processing method for service stream and its system
CN105812340B (en) A kind of method and apparatus of virtual network access outer net
EP4024778A1 (en) Method for determining required bandwidth for data stream transmission, and devices and system
CN107851109A (en) The configuration of software defined network
CN102227137B (en) Network digital set top box and method for realizing multiple network access
CN105556916B (en) The information statistical method and device of network flow
CN104168144A (en) Method for auditing SDN
CN101789949B (en) Method and router equipment for realizing load sharing
CN103618677A (en) Network flow regulation method and system
CN102223263A (en) Method and device for monitoring packet loss rate based on an FPGA (Field Programmable Gate Array)
CN108566342A (en) Multi-service flow separate system based on SDN frameworks and streamed data processing method
CN103414594A (en) IP stream information statistical method for charging and monitoring
CN103634223B (en) A kind of dynamic control transmission method based on network service flow and device
CN105573193B (en) The method that telegram distinguishes order of priority in real time in network arrangement and fusion bearer network
CN100579059C (en) Parallel data link layer controllers in the network switching equipment
CN101719850B (en) Device and method for carrying out statistics on Ethernet packet loss rate as well as message switching device
CN105099721B (en) Safeguard the method and apparatus of multicast member
CN107682191A (en) A kind of power scheduling network information centralized management method and system
CN109245959A (en) Statistics enlivens method, the network equipment and the system of flow amount
CN112600684A (en) Bandwidth management and configuration method of cloud service and related device
CN107547430A (en) A kind of file transmitting method and device
CN101826999A (en) Method and device for online message flow monitoring and bandwidth compensation
CN102780630B (en) A kind of method and apparatus realizing QoS queue based on FPGA queue

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171103

RJ01 Rejection of invention patent application after publication