CN107547414A - File transmitting method and device - Google Patents

File transmitting method and device Download PDF

Info

Publication number
CN107547414A
CN107547414A CN201610471812.3A CN201610471812A CN107547414A CN 107547414 A CN107547414 A CN 107547414A CN 201610471812 A CN201610471812 A CN 201610471812A CN 107547414 A CN107547414 A CN 107547414A
Authority
CN
China
Prior art keywords
message
flow control
flow
flow information
level
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.)
Withdrawn
Application number
CN201610471812.3A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201610471812.3A priority Critical patent/CN107547414A/en
Priority to PCT/CN2017/087095 priority patent/WO2017219847A1/en
Publication of CN107547414A publication Critical patent/CN107547414A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides a kind of file transmitting method and device, is related to communication technical field.This method includes:Obtain the first flow information for the message that line card issues;First order flow control is carried out to the message according to the first flow information, and obtains the second flow information of message received after progress first order flow control;Second level flow control is carried out to the message according to the second flow information, and obtains the 3rd flow information of message received after progress second level flow control;Message after the progress second level flow control is sent into channelizing queue corresponding to the message, and third level flow control is carried out to the message in the channelizing queue according to the 3rd flow information;By carry out third level flow control after message be sent into the message corresponding to sending port be transmitted.The flow control of different stage when the solution of the present invention can realize message forwarding.

Description

File transmitting method and device
Technical field
The present invention relates to communication technical field, particularly relates to a kind of file transmitting method and device.
Background technology
SONET (Synchronous Optical Network, Synchronous Optical Network) is the synchronous transfer body that ANSI is defined System, is a kind of standard transmission protocol of globalization, using optical transport.
SDH (Synchronous Digital Hierarchy, Synchronous Digital Hierarchy) is CCITT (present ITU-T) fixed Justice, using synchronous multiplexing mode and flexible mapping structure, the branch road letter for inserting out low speed can be directly divided from SDH signals Number, without using substantial amounts of multiple connection/drop set, so as to reduce loss of signal and equipment investment.
When SDH signals regard as by low speed signal multiplexing form when, these low speed tributary signals are known as passage.CPOS (Channelized POS, i.e. CPOS interface, pos interface is in the packet of SONET/SDH transmission, i.e. Packet Over SONET/SDH), the characteristics of it takes full advantage of SDH systems, there is the ability to the fine division of bandwidth, can both reduce group To the quantitative requirement of equipment low speed physical port in net, strengthen the low-speed port aggregate capabilities of equipment, improve the special line of equipment again Access capability.CPOS interfaces are mainly used in improving aggregate capabilities of the equipment to Low rate access, and the interface rate of mainstream applications includes STM-1 (155.52Mbit/s), STM-4 (622M bit/s), STM-16 (2.5Gbit/s) etc..
Side, and a large amount of enterprise network access sides, POS/CPOS interface moulds are accessed in current mobile bearer network PTN, IPRAN Block still had a wide range of applications as the interface of UNI sides (subscriber unit interface) and part NNI sides (network element interface) and A large amount of new commercial demands.
Current most of access/convergence router all supports POS/CPOS interfaces, for supporting front inserting POS/CPOS to connect Mouth mold block is realized using scheme as shown in Figure 1 mostly on the router.The packet processing chip of network insertion flow is on road in Fig. 1 By on the line card of device, and preceding slotting POS/CPOS interface modules generally comprise link maps (link mapper) module, encapsulation (framer) module and several parts of physical interface.First inserted on message downlink direction after link mapping module carries out adaptation encapsulation In VC (virtual container) container of respective rate grade, after follow-up making module encapsulates layer by layer according to SDH transmission frame-forms Sent by STM ports.
Higher (the packet processing chip of main flow turn at present of packet processing chip forwarding speed on flow down direction due to line card Hair ability is all in more than 40Gbit/s), and POS, CPOS interface module exit port speed it is relatively low (STM-1 only has port 155M, STM-4 ports are 622M), generally require to carry out flow control on line card packet processing chip or interface module.
The flow of line card controls often TM modules (Traffic Management, the traffic management as built in packet processing chip Module) or special TM chips carry out port or channel level speed limit realizes (i.e. the GTS functions of port or channel level).And POS/ Each of the links speed only has 2Mbit/s after the channelizing of CPOS interface modules, and the channel level speed limiting function of line card TM modules is general Granularity is larger, accurately can not be limited according to 2Mbit/s low rate, and accurate channel level speed limit is to TM modules or TM cores The cost requirement of piece is higher, and the hardware cost of router can be greatly increased if polylith CPOS/POS interface modules are configured.
It is general using as schemed between line card and POS/CPOS interface modules for traditional flow control plan in interface module SPI4.2 the or interlaken interfaces of channelizing are supported shown in 1.Although SPI4.2 interfaces support the stream control of channelizing rank, But it can not support that whole port total bandwidth flow controls between line card and interface module, and SPI4.2 buses are more, are unfavorable for hard Part is realized and cost control.And Interlaken interfaces do not support the other flow control of port level equally yet, and due to the interface Single pass baud rate has reached 12.5Gbps, the low rate channelizing application for POS/CPOS 2Mbit/s, flow control Then seem very sensitive and be not easy stability contorting.
The content of the invention
It is an object of the invention to provide a kind of file transmitting method and device, it is possible to achieve the flow control of different stage.
To reach above-mentioned purpose, embodiments of the invention provide a kind of sending method of message, including:
Obtain the first flow information for the message that line card issues;
First order flow control is carried out to the message according to the first flow information, and obtains carrying out first order flow The second flow information of the message received after control;
Second level flow control is carried out to the message according to the second flow information, and obtains carrying out second level flow 3rd flow information of the message received after control;
Message after the progress second level flow control is sent into channelizing queue corresponding to the message, and according to described 3rd flow information carries out third level flow control to the message in the channelizing queue;
By carry out third level flow control after message be sent into the message corresponding to sending port be transmitted.
Wherein, the step of first flow information for obtaining the message that line card issues, includes:
Receive and cache the message that line card issues;
Obtain the first flow information of the message.
Wherein, first order flow control is carried out to the message according to the first flow information, and obtains carry out first The step of second flow information of the message received after level flow control, includes:
If the flow that the first flow information represents is more than the first thresholding, the first back-pressure message is sent to line card, its In, the first back-pressure message is used for the line card and carries out first order flow control to the message;
Obtain the second flow information of the message after the control of first order flow.
Wherein, also include after carrying out first order flow control to message:
The message is classified, obtains the output port corresponding to passage corresponding to the message, wherein, the message In have and carry the customized label of channel number.
Wherein, second level flow control is carried out to the message according to the second flow information, and obtains carry out second The step of three flow information of the message after level flow control, includes:
If the flow that the second flow information represents is more than the band of the output port corresponding to the message corresponding to passage Width, then the second back-pressure message is exported by back-pressure passage and second level flow control is carried out to the message;
Obtain the 3rd flow information of the message for carrying out being received after the flow control of the second level.
Wherein, third level flow control is carried out to the message in the channelizing queue according to the 3rd flow information Step includes:
If the flow that the 3rd flow information represents is more than the second thresholding, the 3rd back-pressure report is exported by back-pressure passage Text carries out third level flow control to the message.
Wherein, the step of message after the progress second level flow control being sent into channelizing queue corresponding to the message Including:
Message after the progress second level flow control is subjected to Shape correction, the message after being handled;
According to the channel number of the message after processing, smooth send the message after processing into channelizing corresponding to the channel number Queue.
Wherein, will carry out the message after third level flow control be sent into the message corresponding to the step that is transmitted of sending port Suddenly include:
The message after third level flow control will be carried out, be packaged according to respective channel number, and intersect and be mapped into pair The sending port answered, sent according to the speed of sending port.
Embodiments of the invention also provide a kind of packet transmission device, including:
Acquisition module, the first flow information of the message issued for obtaining line card;
First control module, for carrying out first order flow control to the message according to the first flow information, and Obtain the second flow information of message received after progress first order flow control;
Second control module, for carrying out second level flow control to the message according to the second flow information, and Obtain the 3rd flow information of message received after progress second level flow control;
Forwarding module, for the message after the progress second level flow control to be sent into channelizing team corresponding to the message Row;
3rd control module, for carrying out the 3rd to the message in the channelizing queue according to the 3rd flow information Level flow control;
Sending module, carried out for the message after progress third level flow control to be sent into sending port corresponding to the message Send.
Wherein, the acquisition module includes:
Receiving unit, the message issued for receiving line card;
Buffer unit, for caching the message;
Subelement is obtained, for obtaining the first flow information of the message.
Wherein, first control module is specifically used for:If the flow that the first flow information represents is more than first Limit, then the first back-pressure message is sent to line card, wherein, the first back-pressure message is used for the line card and carries out the to the message One-level flow controls;And obtain the second flow information of the message after carrying out first order flow control.
Wherein, above-mentioned packet transmission device also includes:
Identification module, for classifying to the message, the output port corresponding to passage corresponding to the message is obtained, Wherein, there is the customized label for carrying channel number in the message.
Wherein, second control module is specifically used for:
If the flow that the second flow information represents is more than the band of the output port corresponding to the message corresponding to passage Width, then the second back-pressure message is exported by back-pressure passage and second level flow control is carried out to the message;And obtain carry out second 3rd flow information of the message after level flow control.
Wherein, the 3rd control module is specifically used for:
If the flow that the 3rd flow information represents is more than the second thresholding, the 3rd back-pressure report is exported by back-pressure passage Text carries out third level flow control to the message.
Wherein, the forwarding module is specifically used for:Message after the progress second level flow control is carried out at shaping Reason, the message after being handled;And according to the channel number of the message after processing, smooth send the message after processing into the passage Channelizing queue corresponding to number.
Wherein, the sending module is specifically used for:By carry out third level flow control after message, according to respective passage Number it is packaged, and intersects and be mapped into corresponding sending port, is sent according to the speed of sending port.
The above-mentioned technical proposal of the present invention has the beneficial effect that:
The sending method of the message of the embodiment of the present invention, the first flow information of the message issued by obtaining line card;Root First order flow control is carried out to the message according to the first flow information, and obtains receiving after carrying out first order flow control The second flow information of the message arrived;Second level flow control is carried out to the message according to the second flow information, and obtained To the 3rd flow information of the message received after the flow control of the second level;After the progress second level flow control Message is sent into channelizing queue corresponding to the message, and according to the 3rd flow information to the message in the channelizing queue Carry out third level flow control;By carry out third level flow control after message be sent into the message corresponding to sending port sent out Send.So as to realize that the flow of different stage controls, including cache size, stream control number of active lanes and stream control granularity etc., compared to tradition The fixed interface module for being POS or CPOS greatly simplify hardware interface module species and reduce its cost of implementation.
Brief description of the drawings
Fig. 1 is traditional POS/CPOS interface modules implementation.
Fig. 2 is the flow chart of the sending method of the message of the present invention.
Fig. 3 is the module diagram of the dispensing device of the message of the present invention.
Fig. 4 is a specific implementation module frame chart of the dispensing device of the message of the present invention.
Fig. 5 is the module frame chart that the pos interface module flow control of the present invention is realized.
Fig. 6 is the flow chart of pos interface module flow control realization after the present invention.
Fig. 7 is the module frame chart that CPOS interface modules flow control of the present invention is realized.
Fig. 8 is the flow chart that CPOS interface modules flow control of the present invention is realized.
Embodiment
To make the technical problem to be solved in the present invention, technical scheme and advantage clearer, below in conjunction with accompanying drawing and tool Body embodiment is described in detail.
As shown in Fig. 2 embodiments of the invention provide a kind of file transmitting method, including:
Step 21, the first flow information for the message that line card issues is obtained;
Step 22, first order flow control is carried out to the message according to the first flow information, and obtains carry out the The second flow information of the message received after the control of one-level flow;
Step 23, second level flow control is carried out to the message according to the second flow information, and obtains carry out the 3rd flow information of the message received after two_stage flow control;
Step 24, the message after the progress second level flow control is sent into channelizing queue corresponding to the message;
Step 25, third level flow control is carried out to the message in the channelizing queue according to the 3rd flow information System;
Step 26, by carry out third level flow control after message be sent into the message corresponding to sending port be transmitted.
The file transmitting method of the embodiment of the present invention, the first flow information of the message issued by obtaining line card;According to The first flow information carries out first order flow control to the message, and obtains receiving after carrying out first order flow control Message second flow information;Second level flow control is carried out to the message according to the second flow information, and obtained Carry out the 3rd flow information of message received after the flow control of the second level;By the report after the progress second level flow control Text is sent into channelizing queue corresponding to the message, and the message in the channelizing queue is entered according to the 3rd flow information Row third level flow controls;By carry out third level flow control after message be sent into the message corresponding to sending port sent out Send.So as to realize that the flow of different stage controls, including cache size, stream control number of active lanes and stream control granularity etc., compared to tradition The fixed interface module for being POS or CPOS greatly simplify hardware interface module species and reduce its cost of implementation.
As shown in figure 3, embodiments of the invention also provide a kind of dispensing device 30 of message, including:
Acquisition module 31, the first flow information of the message issued for obtaining line card;
First control module 32, for carrying out first order flow control to the message according to the first flow information, And obtain the second flow information of message received after progress first order flow control;
Second control module 33, for carrying out second level flow control to the message according to the second flow information, And obtain the 3rd flow information of message received after progress second level flow control;
Forwarding module 34, for the message after the progress second level flow control to be sent into channelizing corresponding to the message Queue;
3rd control module 35, for carrying out the to the message in the channelizing queue according to the 3rd flow information Three-level flow controls;
Sending module 36, for by carry out third level flow control after message be sent into the message corresponding to sending port enter Row is sent.
The specific implementation of the device is as shown in Figure 4:Controlled for the flow in POS/CPOS interface module downlink traffics direction Device, it is main to include with lower module:
Input module, traffic management module are (equivalent to the first control module in the dispensing device of above-mentioned message, the second control Molding block, the 3rd control module and forwarding module), cache module and output module be (equivalent to the dispensing device of above-mentioned message In sending module);
Wherein, port is docked between input module and line card, and down direction receives and caches the downlink message of line card, specifically Port can be according to the access side interface type selecting of line card packet processing chip, here by taking Ethernet interface as an example, input module Including:Ethernet interface (GE/10G MAC) and the first caching;Ethernet interface receives the message that line card is sent, and message is sent into Cached in first caching.
Traffic management module mainly realizes descending input port level (the above-mentioned first order flow control for the message that line card is sent System), output SDH ports (above-mentioned second level flow control) and channelizing level (above-mentioned third level flow control) three-level flow control Function processed.
After message in first caching of input module is identified and classified by traffic management module, by the logical of each message Taoist monastic name, it is sent to corresponding channelizing queue.Three-level flow control function is managed collectively and triggered by the module.
Cache module is mainly the classification results according to traffic management module, down direction message is stored in respectively corresponding Channelizing queue.Channelizing queue can be reconstructed into link (Link) passage respectively, lead to according to the different configurations of POS/CPOS business The form of road (bundle) group and link channel+combination of channels;
The message of each passage in cache module is then encapsulated and maps to each output SDH ports by output module respectively.
The specific implementation flow of method shown in above-mentioned Fig. 2 includes:
Step 211, receive and cache the message that line card issues;
Step 212, the first flow information of the message is obtained.
Further, step 22 can include:
Step 213, if the flow that the first flow information represents is more than the first thresholding, the first back-pressure is sent to line card Message, first order flow control is carried out to the message according to first back-pressure by the line card;Such as, in the first back-pressure message The switch (i.e. back-pressure mark) for whether continuing to send message is carried, it is first anti-according to this after line card receives the first back-pressure message Switch in pressure message decides whether to continue to send message, if opening, then continues to send out, if closing, then can wait between the time Send out after, controlled so as to play the flow of the message sent to line card again;
Step 214, the second flow information of the message after carrying out first order flow control is obtained.
Further, method also includes:
Step 215, the message is classified, obtains the output port corresponding to passage corresponding to the message, wherein, There is the customized label for carrying channel number in the message.
Further, above-mentioned steps 23 include:
Step 216, if the flow that the second flow information represents is more than the output corresponding to the message corresponding to passage The bandwidth of port, then the second back-pressure message is exported by back-pressure passage and second level flow control is carried out to the message;Further Obtain the 3rd flow information of the message after carrying out second level flow control;In need flowed is carried in the second back-pressure message Channel number corresponding to the message of control is measured, to indicate that line card carries out flow control to the message of dedicated tunnel in back-pressure message, from And all passage message total bandwidths for ensureing to be ultimately destined for same output STM ports are no more than STM port standard bandwidth requirements;And Further, flow control can be carried out, such as to back-pressure to the message of the passage according to the channel number in the second back-pressure message The message of dedicated tunnel carries out flow control in message, so as to ensure to be ultimately destined for all passage reports of same output STM ports Literary total bandwidth is no more than STM port standard bandwidth requirements.
Step 217, the message after the progress second level flow control is sent into channelizing queue corresponding to the message;Tool Body, the message after the progress second level flow control can be subjected to Shape correction, the message after being handled;According to place The channel number of message after reason, smooth is sent into message after processing channelizing queue corresponding to the channel number.
Further, above-mentioned steps 25 can include:
Step 218, if the flow that the 3rd flow information represents is more than the second thresholding, the is exported by back-pressure passage Three back-pressure messages carry out third level flow control to the message;Progress flow control in need is carried in 3rd back-pressure message Channel number corresponding to message, it is still necessary to the transmission of dedicated tunnel message is controlled by line card;And it is further, can according to this Channel number in two back-pressure messages, flow control is carried out to the message of the passage.Ensure each passage caching or bundle cachings not More than respective threshold value.Transfinited as respective channel caches, then the caching channel number to transfinite is carried in back-pressure message;Such as bundle groups Caching is transfinited, then channel number all in the bundle groups is carried in back-pressure message.
Further, step 26 can include:
Step 219, by the message after progress third level flow control, it is packaged according to respective channel number, and intersect Corresponding sending port is mapped into, is sent according to the speed of sending port.
As shown in figure 4, the schematic diagram for the dispensing device of message corresponding to the specific implementation flow of the above method:
Wherein, traffic management module realizes that downlink traffic flow control procedure is as follows:
1st, such as GE/10G MAC of the input port controller in input module receive the downlink message that line card is sent and by the One is cached, and gives the reporting cached state of message in the first caching (input buffer) to traffic management module.
Whether traffic management module triggers input according to the empty full Determines of input buffer in input module first The flow control of mouth level;
When descending bursts of traffic is excessive, during back-pressure thresholding (the first thresholding as described above) more than input buffer, by flowing Flow control engine (flow control engine) module triggering ether controller measured in management module produces input port The stream control back-pressure message of level.For Ethernet interface, the defined streams of 802.3x can be used directly in the stream control of input port level Prosecutor formula is realized.
2nd, after the first caching, downlink message goes successively to traffic policing and the control that traffic management module carries out next stage System.This process can realize according to the actual requirements SDH output ports and traffic policing function.The module traffic policing function When realizing, downlink message needs to increase customized label head, i.e., the downlink message that line card packet handing module is sent needs increase can With the customized label head identified by this module.Message format with customized label head is as follows:
Wherein, TPID1, User tag1, TPID2 and User tag2 parts are customized label head point, and TPID is certainly The tag head type of definition, length 2byte, using customized value and needs and the Ethernet message type id of 802.3 definition Difference.
User tag are customized label, and length is 2 bytes, wherein containing the link (Link) corresponding to downlink message Channel number.
Message enter traffic management module after as follows step flow prison function:
The classification of message flow is carried out first.Channel number in customized label, which is tabled look-up, judges link corresponding to message (Link) or passage (bundle) organizes corresponding output STM ports;
Secondly, in SDH port policing modules (controlling monitoring module in SDH ports), traffic is utilized Metering modules (flow monitoring module) monitor the overall bandwidth for going to some STM port, as total bandwidth exceedes output port Speed then reports the flow of flow control engine modules triggering Special reverse pressure passageway output back-pressure message progress STM output port levels Control, back-pressure message include the channel number for needing flow to control;
Then, the message after flow controls is smooth after traffic shaping to send by shaping (Shaper) processing module Enter each link passages or bundle row of forming a team to be cached, prevent from inputing to rear class link buffer (link caching) or Bundle buffer (passage group caching) burst flow is excessive.
Finally, whether traffic management module triggers according to each link buffer or bundle buffer Determines The back-pressure message of link channel levels or bundle group levels, the link channel numbers with progress flow control in need in back-pressure message. Now realize message third level channelizing stream control in interface module.
3rd, each medium message to be sent of link buffer and bundle buffer is adapted encapsulation in the output module And the SDH output ports according to corresponding to being mapped into checking result intersection, finally sent according to STM-n standard speeds.
Fig. 5, Fig. 6 are the flow chart of pos interface module flow control realization after the present invention, when interface module is configured to POS Message flow control process is as follows during interface:
Step S101:Input port receives and caches downlink message, and by the full buffer status of input buffer sky Offer traffic management module;;
Step S102:Judge whether the input buffer of input port exceed the high waterline set, such as exceed and enter S103, otherwise into S104;
Step S103:Trigger ether controller and produce first order input port level stream control back-pressure message;
Step S104:Downlink message goes successively to traffic management module and carries out message identification, identifies corresponding to each message Link passages and table look-up and judge that message corresponds to STM exit ports, and realize the traffic policing of corresponding STM ports;
Step S105:Judge SDH port flows corresponding to message whether more than SDH port bandwidthsIt is to perform S106, it is no Then perform S107;
Step S106:The back-pressure message of STM port levels is sent by Special reverse pressure passageway or with interior back-pressure message;
Step S107:The smooth feeding of downlink message corresponds to link buffer and cached;
Step S108:Judge each link buffer buffer status, S109 performed if the high waterline more than each buffer, Otherwise S110 is performed;
Step S109:In triggering band or the outer back-pressure passage of band special sends the back-pressure message of link levels.
Step S110:Message in each link buffer be output module encapsulate and intersect be mapped into corresponding to SDH go out end Mouthful, sent according to STM-n standard speeds.
Such as Fig. 7 and Fig. 8, the flow chart realized is controlled for CPOS interface modules flow after the present invention, when interface module configures It is as follows into message flow control process during CPOS interfaces:
Step S201:Input port receives and caches downlink message, and by the full buffer status of input buffer sky Offer traffic management module;;
Step S202:Judge whether the input buffer of input port exceed the high waterline set, such as exceed and enter S203, otherwise into S204;
Step S203:Trigger ether controller and produce first order inbound port level stream control back-pressure message;
Step S204:Downlink message goes successively to traffic management module and carries out message identification, identifies corresponding to each message Link passages and table look-up and judge that message corresponds to STM exit ports, and realize the traffic policing of corresponding STM ports;
Step S205:Judge SDH port flows corresponding to message whether more than SDH port bandwidthsIt is to perform S206, it is no Then perform S207;
Step S206:The back-pressure message of STM port levels is sent by Special reverse pressure passageway or with interior back-pressure message;
Step S207:The smooth feeding of downlink message corresponds to bundle buffer and cached;
Step S208:Judge bundle buffer buffer status, the high waterline as set by more than bundle buffer S209 is then performed, otherwise performs S210;
Step S209:Triggering band is interior or the outer back-pressure passage of band special sends back-pressure message, and the channel number in message includes should All link passages in bundle buffer groups.
Step S210:Message in each bundle buffer is output module according to respective link channel numbers and encapsulates and hand over Fork is mapped into corresponding SDH exit ports, is sent according to STM-n standard speeds.
In POS/CPOS interface modules volume control device provided by the invention and implementation method, it is possible to achieve input port Level, export SDH port levels, logical channel to the flow controls at different levels such as bundle group levels so that flow control can basis Actual demand is accurate to different passages or port rank, significantly reduces to line card packet processing chip TM functions or special TM cores The control of piece downlink traffic requires that reduce whole line card realizes difficulty and cost.
The flow-control module of each rank all possesses restructural characteristic in the present invention in addition, you can with according to specific business Demand loads different configurations, so as to realize that the flow of different stage controls, including cache size, stream control number of active lanes and stream control Granularity etc., it greatly simplify hardware interface module species compared to the fixed interface module for being POS or CPOS of tradition and reduce it Cost of implementation.
Again as shown in figure 3, corresponding with the above method, embodiments of the invention also provide a kind of packet transmission device 30, Including:
Acquisition module 31, the first flow information of the message issued for obtaining line card;
First control module 32, for carrying out first order flow control to the message according to the first flow information, And obtain the second flow information of message received after progress first order flow control;
Second control module 33, for carrying out second level flow control to the message according to the second flow information, And obtain the 3rd flow information of message received after progress second level flow control;
Forwarding module 34, for the message after the progress second level flow control to be sent into channelizing corresponding to the message Queue;
3rd control module 35, for carrying out the to the message in the channelizing queue according to the 3rd flow information Three-level flow controls;
Sending module 36, for by carry out third level flow control after message be sent into the message corresponding to sending port enter Row is sent.
Wherein, the acquisition module 31 includes:
Receiving unit, the message issued for receiving line card;
Buffer unit, for caching the message;
Subelement is obtained, for obtaining the first flow information of the message.
Wherein, first control module 32 is specifically used for:If the flow that the first flow information represents is more than first Thresholding, then send the first back-pressure message to line card, and the first back-pressure message is used to carry out the to the message by the line card One-level flow controls;And obtain the second flow information of the message after carrying out first order flow control.
Wherein, the dispensing device of above-mentioned message also includes:
Identification module, for classifying to the message, the output port corresponding to passage corresponding to the message is obtained, Wherein, there is the customized label for carrying channel number in the message.
Wherein, second control module 33 is specifically used for:
If the flow that the second flow information represents is more than the band of the output port corresponding to the message corresponding to passage Width, then the second back-pressure message is exported by back-pressure passage and second level flow control is carried out to the message, and obtain carry out second 3rd flow information of the message after level flow control.
Wherein, the 3rd control module 35 is specifically used for:
If the flow that the 3rd flow information represents is more than the second thresholding, the 3rd back-pressure report is exported by back-pressure passage Text carries out third level flow control to the message.
Wherein, the forwarding module 34 is specifically used for:Message after the progress second level flow control is subjected to shaping Processing, the message after being handled;And according to the channel number of the message after processing, it is smooth message after processing is sent into this to lead to Channelizing queue corresponding to Taoist monastic name.
Wherein, the sending module 36 is specifically used for:By the message after progress third level flow control, lead to according to respective Taoist monastic name is packaged, and is intersected and be mapped into corresponding sending port, is sent according to the speed of sending port.
The foregoing is only a preferred embodiment of the present invention, is not intended to the restriction scope of the present invention.This area Technical staff should be understood that above-mentioned each module and each step can be realized using fpga by loading different fpga versions The hardware reconstruction of above-mentioned each module and each step.In addition can also be realized using general computing device, optionally can be with The software code that is able to carry out with computing device is realized.
Explanation is needed further exist for, this electronic equipment described in this description includes but is not limited to smart mobile phone, put down Plate computer etc., and described many functional parts are all referred to as module, specifically to emphasize the only of its implementation Vertical property.
This many functional part described in this description is all referred to as module, specifically to emphasize its realization side The independence of formula.
In the embodiment of the present invention, module can be realized with software, so as to by various types of computing devices.Citing comes Say, the executable code module of a mark can include the one or more physics or logical block of computer instruction, citing For, it can be built as object, process or function.Nevertheless, the executable code of institute's mark module is without physically It is located together, but the different instructions being stored in different positions can be included, is combined together when in these command logics When, it forms module and realizes the regulation purpose of the module.
In fact, executable code module can be the either many bar instructions of individual instructions, and can even be distributed On multiple different code segments, it is distributed among distinct program, and is distributed across multiple memory devices.Similarly, grasp Making data can be identified in module, and can be realized according to any appropriate form and be organized in any appropriate class In the data structure of type.The operation data can be collected as individual data collection, or can be distributed on diverse location (being included in different storage device), and only can be present at least in part as electronic signal in system or network.
When module can be realized using software, it is contemplated that the level of existing hardware technique, it is possible to implemented in software Module, in the case where not considering cost, those skilled in the art can build corresponding to hardware circuit come realize correspondingly Function, the hardware circuit includes conventional ultra-large integrated (VLSI) circuit or gate array and such as logic core The existing semiconductor of piece, transistor etc either other discrete elements.Module can also use programmable hardware device, such as Field programmable gate array, programmable logic array, programmable logic device etc. are realized.
Above-mentioned exemplary embodiment describes with reference to those accompanying drawings, many different forms and embodiment be it is feasible and Without departing from spirit of the invention and teaching, therefore, the present invention should not be construed as the limitation of exemplary embodiment is proposed at this. More precisely, these exemplary embodiments are provided so that the present invention can be perfect and complete, and can be by the scope of the invention It is communicated to those those of skill in the art.In those schemas, size of components and relative size are perhaps based on for the sake of clear And it is exaggerated.Term used herein is based only on description particular example embodiment purpose, and being not intended to, which turns into limitation, uses.Such as Use ground at this, unless the interior text clearly refers else, otherwise the singulative " one ", "one" and "the" be intended to by Those multiple forms are also included.Those term "comprising"s and/or " comprising " will become further apparent when being used in this specification, The presence of the feature, integer, step, operation, component and/or component is represented, but is not excluded for one or more further features, whole Number, step, operation, component, component and/or the presence of its group or increase.Unless otherwise indicated, narrative tense, a value scope bag Bound containing the scope and any subrange therebetween.
Described above is the preferred embodiment of the present invention, it is noted that for those skilled in the art For, on the premise of principle of the present invention is not departed from, some improvements and modifications can also be made, these improvements and modifications It should be regarded as protection scope of the present invention.

Claims (16)

  1. A kind of 1. file transmitting method, it is characterised in that including:
    Obtain the first flow information for the message that line card issues;
    First order flow control is carried out to the message according to the first flow information, and obtains carrying out first order flow control The second flow information of the message received afterwards;
    Second level flow control is carried out to the message according to the second flow information, and obtains carrying out second level flow control 3rd flow information of the message received afterwards;
    Message after the progress second level flow control is sent into channelizing queue corresponding to the message, and according to the described 3rd Flow information carries out third level flow control to the message in the channelizing queue;
    By carry out third level flow control after message be sent into the message corresponding to sending port be transmitted.
  2. 2. file transmitting method according to claim 1, it is characterised in that obtain the first flow for the message that line card issues The step of information, includes:
    Receive and cache the message that line card issues;
    Obtain the first flow information of the message.
  3. 3. file transmitting method according to claim 1, it is characterised in that according to the first flow information to the report Text carries out first order flow control, and obtains the step of the second flow information of the message received after progress first order flow control Suddenly include:
    If the flow that the first flow information represents is more than the first thresholding, the first back-pressure message is sent to line card, wherein, institute State the first back-pressure message and be used for the line card to message progress first order flow control;
    Obtain the second flow information for the message for carrying out being received after first order flow control.
  4. 4. file transmitting method according to claim 3, it is characterised in that gone back after first order flow control is carried out to message Including:
    The message is classified, obtains the output port corresponding to passage corresponding to the message, wherein, have in the message There is the customized label for carrying channel number.
  5. 5. file transmitting method according to claim 1, it is characterised in that according to the second flow information to the report Text carries out second level flow control, and obtains the step of the 3rd flow information of the message received after progress second level flow control Suddenly include:
    If the flow that the second flow information represents is more than the bandwidth of the output port corresponding to the message corresponding to passage, Second back-pressure message is exported by back-pressure passage second level flow control is carried out to the message;
    Obtain the 3rd flow information of the message after carrying out second level flow control.
  6. 6. file transmitting method according to claim 1, it is characterised in that according to the 3rd flow information to described logical Message in road queue, which carries out the step of third level flow controls, to be included:
    If the flow that the 3rd flow information represents is more than the second thresholding, the 3rd back-pressure message pair is exported by back-pressure passage The message carries out third level flow control.
  7. 7. file transmitting method according to claim 1, it is characterised in that after the progress second level flow control Message, which is sent into the step of channelizing queue corresponding to the message, to be included:
    Message after the progress second level flow control is subjected to Shape correction, the message after being handled;
    According to the channel number of the message after processing, smooth is sent into the message after processing channelizing team corresponding to the channel number Row.
  8. 8. file transmitting method according to claim 1, it is characterised in that by the message after progress third level flow control The step of sending port corresponding to being sent into the message is transmitted includes:
    By carry out third level flow control after message, be packaged according to respective channel number, and intersect be mapped into corresponding to Sending port, sent according to the speed of sending port.
  9. A kind of 9. packet transmission device, it is characterised in that including:
    Acquisition module, the first flow information of the message issued for obtaining line card;
    First control module, for carrying out first order flow control to the message according to the first flow information, and obtain Carry out the second flow information of message received after first order flow control;
    Second control module, for carrying out second level flow control to the message according to the second flow information, and obtain Carry out the 3rd flow information of message received after the flow control of the second level;
    Forwarding module, for the message after the progress second level flow control to be sent into channelizing queue corresponding to the message;
    3rd control module, for carrying out third level stream to the message in the channelizing queue according to the 3rd flow information Amount control;
    Sending module, for by carry out third level flow control after message be sent into the message corresponding to sending port sent out Send.
  10. 10. packet transmission device according to claim 9, it is characterised in that the acquisition module includes:
    Receiving unit, the message issued for receiving line card;
    Buffer unit, for caching the message;
    Subelement is obtained, for obtaining the first flow information of the message.
  11. 11. packet transmission device according to claim 9, it is characterised in that first control module is specifically used for:If The flow that the first flow information represents is more than the first thresholding, then sends the first back-pressure message to line card, wherein, described first Back-pressure message is used for the line card and carries out first order flow control to the message;
    Obtain the second flow information for the message for carrying out being received after first order flow control.
  12. 12. packet transmission device according to claim 11, it is characterised in that also include:
    Identification module, for classifying to the message, the output port corresponding to passage corresponding to the message is obtained, its In, there is the customized label for carrying channel number in the message.
  13. 13. packet transmission device according to claim 9, it is characterised in that second control module is specifically used for:
    If the flow that the second flow information represents is more than the bandwidth of the output port corresponding to the message corresponding to passage, Second back-pressure message is exported by back-pressure passage second level flow control is carried out to the message;
    Obtain the 3rd flow information of the message after carrying out second level flow control.
  14. 14. packet transmission device according to claim 9, it is characterised in that the 3rd control module is specifically used for:
    If the flow that the 3rd flow information represents is more than the second thresholding, the 3rd back-pressure message pair is exported by back-pressure passage The message carries out third level flow control.
  15. 15. packet transmission device according to claim 9, it is characterised in that the forwarding module is specifically used for:By described in Carry out the message after the flow control of the second level and carry out Shape correction, the message after being handled;And according to the message after processing Channel number, smooth is sent into the message after processing channelizing queue corresponding to the channel number.
  16. 16. packet transmission device according to claim 9, it is characterised in that the sending module is specifically used for:It will carry out Message after the control of third level flow, is packaged according to respective channel number, and intersects and be mapped into corresponding sending port, presses Sent according to the speed of sending port.
CN201610471812.3A 2016-06-24 2016-06-24 File transmitting method and device Withdrawn CN107547414A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201610471812.3A CN107547414A (en) 2016-06-24 2016-06-24 File transmitting method and device
PCT/CN2017/087095 WO2017219847A1 (en) 2016-06-24 2017-06-02 Message sending method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610471812.3A CN107547414A (en) 2016-06-24 2016-06-24 File transmitting method and device

Publications (1)

Publication Number Publication Date
CN107547414A true CN107547414A (en) 2018-01-05

Family

ID=60783759

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610471812.3A Withdrawn CN107547414A (en) 2016-06-24 2016-06-24 File transmitting method and device

Country Status (2)

Country Link
CN (1) CN107547414A (en)
WO (1) WO2017219847A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111526097A (en) * 2020-07-03 2020-08-11 新华三半导体技术有限公司 Message scheduling method, device and network chip
CN111669334A (en) * 2020-05-15 2020-09-15 南京南瑞继保电气有限公司 Flow control method, device, equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501639A (en) * 2002-11-19 2004-06-02 ��Ϊ�������޹�˾ Traffic control method for MAN transmission apparatus
US20070211627A1 (en) * 2006-03-13 2007-09-13 Alcatel Distributed communication traffic control systems and methods
CN101039270A (en) * 2007-03-12 2007-09-19 杭州华为三康技术有限公司 Data transmission apparatus and method for supporting multi-channel data transmission
CN103416031A (en) * 2012-09-25 2013-11-27 华为技术有限公司 Flow control method, apparatus and network
CN104348749A (en) * 2014-07-28 2015-02-11 湖北誉恒科技有限公司 Flow control method, flow control device and flow control system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101572673B (en) * 2009-06-19 2013-03-20 杭州华三通信技术有限公司 Distributed packet switching system and distributed packet switching method of expanded switching bandwidth
US8452888B2 (en) * 2010-07-22 2013-05-28 International Business Machines Corporation Flow control for reliable message passing
CN101997772B (en) * 2010-10-13 2012-09-12 福建星网锐捷网络有限公司 Flow control method, device, system and network equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1501639A (en) * 2002-11-19 2004-06-02 ��Ϊ�������޹�˾ Traffic control method for MAN transmission apparatus
US20070211627A1 (en) * 2006-03-13 2007-09-13 Alcatel Distributed communication traffic control systems and methods
CN101039270A (en) * 2007-03-12 2007-09-19 杭州华为三康技术有限公司 Data transmission apparatus and method for supporting multi-channel data transmission
CN103416031A (en) * 2012-09-25 2013-11-27 华为技术有限公司 Flow control method, apparatus and network
CN104348749A (en) * 2014-07-28 2015-02-11 湖北誉恒科技有限公司 Flow control method, flow control device and flow control system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111669334A (en) * 2020-05-15 2020-09-15 南京南瑞继保电气有限公司 Flow control method, device, equipment and computer readable storage medium
CN111526097A (en) * 2020-07-03 2020-08-11 新华三半导体技术有限公司 Message scheduling method, device and network chip
CN111526097B (en) * 2020-07-03 2020-10-30 新华三半导体技术有限公司 Message scheduling method, device and network chip

Also Published As

Publication number Publication date
WO2017219847A1 (en) 2017-12-28

Similar Documents

Publication Publication Date Title
US10225037B2 (en) Channelized ODUflex systems and methods
CN107438029B (en) Method and device for forwarding data
CN101656894B (en) Packet add/drop multiplexing equipment and data transmission method for same
US7583664B2 (en) Techniques for transmitting and receiving traffic over advanced switching compatible switch fabrics
EP3013017A1 (en) Channelized oduflex systems and methods for flexible ethernet and otn multiplexing
US7649843B2 (en) Methods and apparatus for controlling the flow of multiple signal sources over a single full duplex ethernet link
US11412074B2 (en) Method and device for transparently transmitting service frequency
EP3641237A1 (en) Transmission network system, and data exchange and transmission method, device and apparatus
US8374177B2 (en) Network element for switching time division multiplex signals
CN108989915A (en) A kind of method and system of the access net OLT slice based on ONU granularity
CN106506110A (en) Statistic multiplexing optical transfer network method and device
CN101815024A (en) Ethernet service intercommunication method and device
US8718069B2 (en) Transmission apparatus and signal transmission method for mapping packets in frames of synchronous network
US20060140226A1 (en) Techniques for processing traffic transmitted over advanced switching compatible switch fabrics
CN103973710B (en) Multi-protocols SDH conversion equipment
CN107547414A (en) File transmitting method and device
US20040114626A1 (en) System, method and device for time slot status messaging among SONET nodes
CN109936781A (en) A kind of method, apparatus and system of data transmission
CN100514935C (en) Network-unit apparatus management information transmission method and apparatus and network-unit apparatus
CN104539409B (en) Method and system for adapting multi-path Ethernet to multi-path E1 channel
CN106341352A (en) Method and device for transmitting inter-domain interface data in optical transport network
CN205265697U (en) Grouping optical transmission terminal chip based on tag switching
CN100563239C (en) A kind of method and apparatus of realizing that Flow Control is handled in the high band wide data transmission
US20040114640A1 (en) System, method and device for aggregating SONET links
US20050018661A1 (en) Methods and systems to process packet and non-packet data

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20180105