[go: up one dir, main page]

WO2016074362A1 - Data packet distribution method, device, and broadband access device - Google Patents

Data packet distribution method, device, and broadband access device Download PDF

Info

Publication number
WO2016074362A1
WO2016074362A1 PCT/CN2015/072690 CN2015072690W WO2016074362A1 WO 2016074362 A1 WO2016074362 A1 WO 2016074362A1 CN 2015072690 W CN2015072690 W CN 2015072690W WO 2016074362 A1 WO2016074362 A1 WO 2016074362A1
Authority
WO
WIPO (PCT)
Prior art keywords
line card
user port
polling
data packet
port
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.)
Ceased
Application number
PCT/CN2015/072690
Other languages
French (fr)
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
Publication of WO2016074362A1 publication Critical patent/WO2016074362A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/30Definitions, standards or architectural aspects of layered protocol stacks
    • H04L69/32Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
    • H04L69/322Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
    • H04L69/325Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the network layer [OSI layer 3], e.g. X.25

Definitions

  • the present invention relates to the field of logic control, and in particular, to a method and an apparatus for transmitting a data packet, and a broadband access device.
  • the broadband access device is mainly composed of a control board and a plurality of line cards, and each line card has multiple user ports for the downlink direction (the number of user ports of one line card can be flexibly set according to service requirements).
  • the broadband access device When the data traffic is delivered, the broadband access device first buffers the data traffic sent from the upstream, and then configures the data packet to be sent to each user port in a polling manner, and the data packet configured by the user port is sent to the user side. .
  • the polling method ensures that each user port can allocate bandwidth resources fairly.
  • the user port of the line card of the current broadband access device is different for the bandwidth requirement.
  • the access mode is the maximum bandwidth of the user port on the fiber-optic line card, which is obviously much larger than the user port of the copper line card, and the control board allocates the size of the data packet required for the user port to be delivered once. It is fixed, so the polling method obviously cannot reasonably utilize the bandwidth requirements of each line card user port.
  • the imaginable solution is to implement a differentially configured data packet for different bandwidth line cards in a logically more complex weighted round-robin scheduling algorithm.
  • this method requires more logical resources and is difficult to implement.
  • the broadband access device when the broadband access device only has a small number of line cards inserted, and there are only a small number of users on the user ports on the line cards (such as remote areas in the early morning hours, the number of Internet users is relatively high. Less), the user port may get too much bandwidth resources and exceed the rate carrying capacity (that is, the high frequency of the control board is allocated to a user port), causing packet loss.
  • the usual practice is to perform traffic shaping and rate limiting on user ports, but it also requires a lot of logic control, which takes up a lot of logical resources.
  • the embodiment of the invention provides a method for sending a data packet, a device, and a broadband access device, which can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, by using only two logically simple polling mechanisms.
  • an embodiment of the present invention provides a method for sending a data packet, including:
  • the target user port of the downlink data packet to be configured is determined in the user port configured by each line card; wherein one line card currently has only one at most The target user port, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port;
  • the line card of the broadband access device is selected, and the scheduling request initiated by the selected line card is responded to, so that the target port of the selected line card is configured to the downlink data packet, and then the downlink data packet is performed. Forward.
  • a target user port of the downlink data packet to be configured is determined in each of the user ports configured by each line card, including:
  • Each line card of the broadband access device selects a user port configured by the line card in a polling manner
  • Each line card of the broadband access device determines whether there is a downlink data packet to be configured for the selected user port, and if so, determines the selected user port as the target user port, and if not, polls the line card. The next user port configured.
  • a target user port of the downlink data packet to be configured is determined in the user port configured for each line card, and further includes:
  • Each line card of the broadband access device starts its own timer to determine the time after determining the respective target user ports;
  • each line card of the broadband access device prohibits polling the next user port before the respective timers have not reached the preset time.
  • the line card of the broadband access device is selected, and the scheduling request initiated by the selected line card is responded to, so that the destination port of the selected line card is forwarded to the downlink data packet after being configured to the downlink data packet.
  • the control board selects a line card of the broadband access device in a polling manner
  • the control board determines, according to the scheduling application corresponding to the selected line card, the target user port of the selected line card, and configures a downlink data packet for the target user port;
  • the control board cancels the scheduling request corresponding to the selected line card, and re-selects the next line card of the broadband access device in a polling manner.
  • the scheduling request corresponding to each line card carries the port description information of the target user port, and the packet description information of the downlink data packet that needs to be configured on the target user port;
  • the control board determines the target user port of the selected line card according to the scheduling application corresponding to the selected line card, and configures a downlink data packet for the target user port, including:
  • the control board determines, according to the port description information of the scheduling application corresponding to the selected line card, the target user port of the selected line card;
  • the control board retrieves the delivered data packet that needs to be configured on the target user port of the selected line card from the cached data of the broadband access device according to the package description information of the scheduling application corresponding to the selected line card;
  • the control board configures the acquired downlink data packet to the target user port of the selected line card.
  • a broadband access device comprising a plurality of line cards and a control board, wherein:
  • Each line card includes: a polling scheduling module, configured to determine, in a polling manner, a target user port of a downlink data packet to be configured in a user port of the line card to which the line card belongs; wherein one line card currently has at most one a target user port, and the number of user ports of the line card configured by the low speed port is greater than the line card of the high speed port; and the initiating module is configured to initiate a scheduling request to the control board for the target user port of the line card to which the line card belongs, the scheduling Applying for the requesting control board to configure a downlink data packet for the target user port of the line card to which the initiating module belongs;
  • the control board includes: a polling configuration module, configured to select a line card of the broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the target port of the selected line card is obtained. After the downlink data packet is configured, the downlink data packet is forwarded.
  • a polling configuration module configured to select a line card of the broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the target port of the selected line card is obtained. After the downlink data packet is configured, the downlink data packet is forwarded.
  • the polling scheduling module includes:
  • the first polling sub-module is configured to select a user port of the line card to which the first polling sub-module belongs in a polling manner, and determine that the sub-module does not exist in the selected user port. After the packet, polling the next user port of the line card to which the first polling submodule belongs;
  • a judging sub-module configured to determine whether there is a downlink data packet to be configured on the user port selected by the polling sub-module
  • the first determining sub-module is configured to determine, when the user port selected by the polling sub-module is determined by the determining sub-module to be a downlink data packet that needs to be configured, determine the user port as a target user port.
  • the first polling sub-module is further configured to: after the first determining sub-module determines the target user port, start a timer to perform timing, and prohibit polling before the timer timing does not reach the preset time. A user port.
  • the polling configuration module includes:
  • a second polling sub-module configured to select a line card of the broadband access device in a polling manner
  • the configuration sub-module is configured to determine a target user port of the selected line card according to the scheduling application sent by the line card selected by the second polling sub-module, and configure the delivered data for the target user port. package;
  • the second polling sub-module is further configured to: after the configuration sub-module configures the downlink data packet for the target user port of the line card selected by the second polling sub-module, re-polling , select the next line card of the broadband access device.
  • Each scheduling application carries the port description information of the target user port of the corresponding line card, and the packet description information of the downlink data packet that needs to be configured on the target user port;
  • the configuration submodule includes:
  • a determining unit configured to determine, according to the port description information of the scheduling application sent by the line card selected by the second polling submodule, the target user port of the selected line card;
  • a calling unit configured to retrieve, according to the package description information of the scheduling application sent by the line card selected by the second polling submodule, the target of the selected line card from the cached data of the broadband access device The downstream data packet that needs to be configured on the user port;
  • a configuration unit configured to configure, by the calling unit, the downlink data packet to be sent to the target user port of the line card selected by the second polling submodule.
  • a data delivery device includes:
  • the first polling processing module is configured to determine, for each line card of the broadband access device, a target user port of the downlink data packet to be configured in each of the user ports configured by each line card in a polling manner;
  • a line card currently has only one target user port at a time, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port;
  • a scheduling application module configured to initiate a request for scheduling a downlink data packet for a target user port of each line card
  • the second polling processing module is configured to select a line card of the broadband access device in a polling manner, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to the downlink data packet. After that, the downlink packet is forwarded.
  • the embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.
  • the polling mode between the line cards fairly waits for the completion of the scheduling application, and the plurality of user ports in the same line card are equally waiting in the polling manner to be confirmed as belonging.
  • the only target user port for the line card is smaller than that of the low-speed port line card.
  • the user port of the high-bandwidth line card can There are more chances to be identified as the target user port so that it can be assigned to downstream packets more times. In this way, the user port of the high-bandwidth line card gets more bandwidth resources than the user port of the low-bandwidth line card. It can be seen that the method in this embodiment can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.
  • FIG. 1 is a schematic diagram of steps of a method for sending a data packet according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of a logical relationship of a broadband access device in a method for sending a data packet according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of determining a target port by a line card in a polling manner according to a method for sending a data packet according to an embodiment of the present invention
  • FIG. 4 is a flow diagram of a process of configuring a downlink data packet of a target port of a line card in a polling manner in a method for sending a data packet according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a broadband access device according to an embodiment of the present invention.
  • FIG. 6 is a schematic structural diagram of a device for sending a data packet according to an embodiment of the present invention.
  • an embodiment of the present invention provides a method for sending a data packet, including:
  • Step 11 For each line card of the broadband access device, determine, in a polling manner, a target user port of the downlink data packet to be configured in each user port configured by each line card; wherein one line card is currently the most There is only one target user port, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port;
  • Step 12 Initiating a scheduling application requesting configuration data packet for a target user port of each line card
  • Step 13 In the polling mode, select the line card of the broadband access device, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to the downlink data packet, and then the downlink data is configured.
  • the package is forwarded.
  • the polling mode between the line cards fairly waits for the completion of the scheduling application, and the user ports in the same line card also wait for the fairness in the polling manner. Confirm as the only target user port of the line card to which it belongs.
  • the number of user ports of a high-bandwidth line card configuration is smaller than that of a low-bandwidth line card.
  • the user port of the high-bandwidth line card can have more chances to be identified as the target user port, thereby enabling more times.
  • the ground is assigned to the downstream packet. In this way, the user port of the high-bandwidth line card gets more bandwidth resources than the user port of the low-bandwidth line card. It can be seen that the method in this embodiment can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.
  • step 11 it should be avoided to determine that there is no user port that needs to forward downlink packets to the user as the target user port. That is, in the above step 11, it may further include:
  • Step 111 Each line card of the broadband access device selects a configured user port in a polling manner
  • Step 112 Each line card of the broadband access device determines whether there is a downlink data packet to be configured for the selected user port, and if yes, determines the selected user port as the target user port, and if yes, polls the next user. Its configured user port.
  • each line card of the broadband access device After determining the respective target user ports, each line card of the broadband access device starts a respective timer for timing; wherein each line card of the broadband access device is clocked in its own timer. Polling the next user port is prohibited until the preset time has elapsed. In this way, even if the current target user port of the line card is configured to the downlink data packet, if the preset time is not reached, the line card will not poll the next user port.
  • the above step 13 may include:
  • Step 131 The control board selects a line card of the broadband access device in a polling manner
  • Step 132 The control board determines, according to the scheduling application corresponding to the selected line card, the target user port of the selected line card, and configures a downlink data packet for the line card;
  • Step 133 the control board cancels the scheduling application corresponding to the selected line card, and re-sends the polling In this way, select the next line card of the broadband access device.
  • the scheduling request corresponding to each line card carries the port description information of the target user port and the packet description information of the downlink data packet that needs to be configured on the target user port;
  • the control board determines the target user port of the selected line card according to the port description information of the scheduling application corresponding to the selected line card; the control board performs scheduling according to the selected line card.
  • the packet description information of the application from the cached data of the broadband access device, the configured data packet to be configured by the target user port of the selected line card; and then the downlink data packet configuration that the control board will retrieve Go to the target user port of the selected line card.
  • the broadband access device has three line cards, that is, the line card 1 of the fiber access mode and the line card 2 and the line card 3 of the copper line access mode.
  • the line card 1 to the configuration of two user ports, the line card 2 and the line card 3 are allocated only 10 user ports.
  • Each polling line card determines its own target user port. The detailed steps are as shown in Figure 3, including:
  • Step A1 Polling starts from the first user port configured locally.
  • Step A2 Read the value of the local timer to determine whether the time interval has been greater than the preset time from the previous round of polling to the present, and if yes, execute step A3.
  • Step A3 Clear the timer to 0 and restart the timing.
  • Step A4 Obtain the information of the current user port that is polled, including whether the user port has a downlink data packet to be configured, and a downlink state of the user port.
  • Step A5 Determine whether the current user port can forward the downlink data packet to the user. If the current user port has a downlink data packet to be sent, and the downlink corresponding to the current port is normal, it is determined that the current user port can forward the downlink data packet to the user, and then step A6 is performed; if the current user port does not have the downlink data packet, it needs to be sent. If the downlink corresponding to the current port is abnormal, go to step A8.
  • Step A6 Use the current user port as the target user port, and initiate a scheduling request to the control panel, and then wait for feedback from the control panel.
  • Step A7 The control board feeds back that the current target client port has configured the downlink data packet, and proceeds to step A8.
  • Step A8 Poll the next user port.
  • Step A9 Determine whether the polled current user port is the first user port of the line card. If it is not the first user port, step A4 is performed to determine whether the current user port can send data; if it is the first user port, step A1 is performed.
  • the preset time of the timer can be set according to the maximum bandwidth of the line card, and the preset time of the high bandwidth line card is smaller than the low bandwidth line card.
  • control board polls each line card for scheduling, including the following steps:
  • Step B1 Lock the scheduling application initiated by each line card to ensure that there is only one application scheduling for each line card.
  • Step B2 Polling the first line card, responding to the scheduling request initiated by the line card.
  • the response process includes: determining, according to the scheduling request of the current line card, the target user port and the downlink data packet that the target user port is waiting to forward, and then extracting, from the downlink data buffer in FIG. 2, the downlink data packet that the target user port is waiting to forward, The extracted downstream packets are assigned to the target user port for forwarding.
  • Step B3 After the data sending module feeds back the downlink data packet allocation, the process proceeds to step B4.
  • Step B4 feeding back the allocated information to the current line card, so that the current line card performs the above step A2, and at the same time, the control board cancels the current line card to the initiated scheduling application;
  • Step B5 If the current round line card is not polled, proceed to step B6; if the current line card has been polled, perform step B1 to re-lock all line card scheduling applications and start a new round of scheduling.
  • Step B6 Poll the next line card.
  • the implementation mode allocates bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.
  • another embodiment of the present invention further provides a broadband access device, including Multiple line cards and control boards, where:
  • Each line card includes: a polling scheduling module, configured to: in a polling manner, determine a target user port of a downlink data packet to be configured in a user port of the line card to which the line card belongs; wherein, one line card currently only has a maximum of only There is a target user port, and the number of user ports configured by the line card of the low speed port is greater than the line card of the high speed port; the initiating module is set to: initiate scheduling to the control board of the broadband access device for the target user port of the line card to which it belongs Applying, the scheduling application is used to request the control panel to configure a downlink data packet for the target user port of the line card to which it belongs;
  • the control board includes: a polling configuration module, configured to: select a line card of the broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the target of the selected line card is obtained. After the port is configured to the downlink data packet, the downlink packet is forwarded.
  • a polling configuration module configured to: select a line card of the broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the target of the selected line card is obtained. After the port is configured to the downlink data packet, the downlink packet is forwarded.
  • the polling scheduling module includes:
  • the first polling sub-module is configured to: select a user port of the line card to which it belongs in a polling manner, and poll the selected user port after the judging sub-module determines that there is no data packet to be delivered. The user port of the next line card to which it belongs;
  • the determining sub-module is configured to: determine whether the user port selected by the polling sub-module has a downlink data packet to be configured;
  • the first determining sub-module is configured to: when the user port selected by the polling sub-module is determined by the determining sub-module to be a downlink data packet to be configured, the user port is determined as the target user port.
  • the first polling sub-module After the first determining sub-module determines the target user port, the first polling sub-module starts a timer to perform timing, and prohibits polling the next user before the timer timing does not reach the preset time. port.
  • the polling configuration module includes:
  • the second round of the sub-module module is set to: select a line card of the broadband access device in a polling manner;
  • the configuration sub-module is configured to: according to the scheduling application sent by the line card selected by the second polling sub-module, determine a target user port of the selected line card, and configure a data packet to be delivered;
  • the second polling sub-module re-selects the next line of the broadband access device in a polling manner after the configuration sub-module configures the downlink data packet for the target user port of the selected line card. card.
  • Each of the scheduling applications carries the port description information of the target user port of the corresponding line card, and the packet description information of the downlink data packet that needs to be configured on the target user port;
  • the configuration submodule includes:
  • a determining unit configured to: determine, according to the port description information of the scheduling application sent by the line card selected by the second polling submodule, the target user port of the selected line card;
  • the calling unit is configured to: according to the package description information of the scheduling application sent by the line card selected by the second polling sub-module, retrieve the selected line card from the cached data of the broadband access device The downlink data packet to be configured on the target user port;
  • a configuration unit configured to: the downlink data packet retrieved by the calling unit is configured to a target user port of the line card selected by the second polling submodule.
  • the broadband access device of this embodiment corresponds to the method for sending data packets according to the embodiment of the present invention, and the same technical effects can be achieved.
  • FIG. 6 Another embodiment of the present invention further provides a data packet sending device, as shown in FIG. 6, including:
  • the first polling processing module is configured to: determine, for each line card of the broadband access device, a target user port of the downlink data packet to be configured in the user port configured by each line card in a polling manner; Wherein, one line card currently has only one target user port at present, and the number of user ports configured by the line card of the low speed port is greater than the line card of the high speed port;
  • the scheduling application module is configured to: initiate a request for scheduling a downlink data packet for a target user port of each line card;
  • the second polling processing module is configured to: select a line card of the broadband access device in a polling manner, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to downlink data. After the packet, the downlink packet is forwarded.
  • the polling party between the line cards It waits for the completion of the scheduling application fairly, and the user ports in the same line card also wait in a polling manner for the target user port that is confirmed to be the only one of the line cards.
  • the number of user ports of a high-bandwidth line card configuration is smaller than that of a low-bandwidth line card.
  • the user port of the high-bandwidth line card can have more chances to be identified as the target user port, thereby enabling more times.
  • the ground is assigned to the downstream packet. In this way, the user port of the high-bandwidth line card gets more bandwidth resources than the user port of the low-bandwidth line card. It can be seen that the method in this embodiment can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the method in the embodiment of the present invention allocates bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.

Landscapes

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

Abstract

Disclosed is a data packet distribution method, device, and broadband access device, and the method comprises: for each line card of the broadband access device, determining in a round-robin way respectively the target user interface of the downlink data packet to be configured in the user interfaces configured in each line card, wherein one line card at most has one target user interface currently, and the number of the user interfaces configured for the line card with low-speed interface is greater than the number of the user interfaces configured for the line card with high-speed interface; for the target user interface of each line card, initiating a scheduling application for requesting to configure the downlink data packet; selecting the line card in the broadband access device in a round-robin way, and responding to the scheduling application initiated by the selected line card, so that the target interface of the selected line card forwards the downlink data packet after the interface is configured with the downlink data packet .

Description

一种数据包的下发方法、装置及宽带接入设备Method and device for transmitting data packet and broadband access device 技术领域Technical field

本发明涉及逻辑控制领域,特别是一种数据包的下发方法、装置及宽带接入设备。The present invention relates to the field of logic control, and in particular, to a method and an apparatus for transmitting a data packet, and a broadband access device.

背景技术Background technique

宽带接入设备主要由控制板和多个线卡组成,每个线卡对于下行方向具有多个用户端口(一个线卡的用户端口数量可根据业务需求灵活设置)。The broadband access device is mainly composed of a control board and a plurality of line cards, and each line card has multiple user ports for the downlink direction (the number of user ports of one line card can be flexibly set according to service requirements).

在下发数据流量时,宽带接入设备先缓存上游传递过来的数据流量,之后以轮询的方式为每个用户端口配置下发的数据包,用户端口将配置到的数据包向用户侧下发。轮询的方式可以保证了各个用户端口能够公平地分配带宽资源。但是,目前的宽带接入设备的线卡的用户端口对于带宽要求是不一样的。例如,接入方式是光纤的线卡上的用户端口的最大带宽,显然要比铜线的线卡的用户端口大上许多,而控制板为用户端口分配一次下发所需的数据包的大小是固定不变的,因此,轮询方式显然不能合理地利用各线卡用户端口的带宽要求。When the data traffic is delivered, the broadband access device first buffers the data traffic sent from the upstream, and then configures the data packet to be sent to each user port in a polling manner, and the data packet configured by the user port is sent to the user side. . The polling method ensures that each user port can allocate bandwidth resources fairly. However, the user port of the line card of the current broadband access device is different for the bandwidth requirement. For example, the access mode is the maximum bandwidth of the user port on the fiber-optic line card, which is obviously much larger than the user port of the copper line card, and the control board allocates the size of the data packet required for the user port to be delivered once. It is fixed, so the polling method obviously cannot reasonably utilize the bandwidth requirements of each line card user port.

对此,可以想象到的解决方式是,以一种逻辑上更为复杂的加权循环调度算法,实现对不同带宽的线卡进行有区别地配置数据包。但是,这种方法需要的逻辑资源较多,也难以实现。In this regard, the imaginable solution is to implement a differentially configured data packet for different bandwidth line cards in a logically more complex weighted round-robin scheduling algorithm. However, this method requires more logical resources and is difficult to implement.

此外,不管采用轮询方式还是加权循环调度方式,当宽带接入设备只插有少量的线卡,并且线卡上的用户端口上只有少量用户时(如凌晨时间的偏远地区,上网人数相对较少),用户端口可能得到过多的带宽资源而超过速率承载能力(即控制板高频率为一个用户端口分配数据包),造成丢包现象。通常的做法是对用户端口进行流量整形和速率限制,但同样需要使用大量的逻辑控制,占用逻辑资源非常大。 In addition, regardless of the polling mode or the weighted round-robin scheduling mode, when the broadband access device only has a small number of line cards inserted, and there are only a small number of users on the user ports on the line cards (such as remote areas in the early morning hours, the number of Internet users is relatively high. Less), the user port may get too much bandwidth resources and exceed the rate carrying capacity (that is, the high frequency of the control board is allocated to a user port), causing packet loss. The usual practice is to perform traffic shaping and rate limiting on user ports, but it also requires a lot of logic control, which takes up a lot of logical resources.

发明内容Summary of the invention

本发明实施例提供一种数据包的下发方法、装置及宽带接入设备,能够只通过两个逻辑非常简单的轮询机制,即可根据用户端口所属线卡的性能要求,分配带宽资源。The embodiment of the invention provides a method for sending a data packet, a device, and a broadband access device, which can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, by using only two logically simple polling mechanisms.

为解决上述技术问题,本发明的实施例提供数据包的下发方法,包括:To solve the above technical problem, an embodiment of the present invention provides a method for sending a data packet, including:

针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;For each line card of the broadband access device, in the polling mode, respectively, the target user port of the downlink data packet to be configured is determined in the user port configured by each line card; wherein one line card currently has only one at most The target user port, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port;

针对每个线卡的目标用户端口,发起一请求配置下行数据包的调度申请;Initiating a request for scheduling a downlink data packet for a target user port of each line card;

以轮询方式,选取宽带接入设备的线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。In the polling mode, the line card of the broadband access device is selected, and the scheduling request initiated by the selected line card is responded to, so that the target port of the selected line card is configured to the downlink data packet, and then the downlink data packet is performed. Forward.

可选地,Optionally,

针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口,包括:For each line card of the broadband access device, in a polling manner, a target user port of the downlink data packet to be configured is determined in each of the user ports configured by each line card, including:

宽带接入设备的每个线卡,以轮询方式,选取一个该线卡配置的用户端口;Each line card of the broadband access device selects a user port configured by the line card in a polling manner;

宽带接入设备的每个线卡,判断各自选取到的用户端口是否存在需要配置的下行数据包,若是,则将选取到的用户端口确定为目标用户端口,若否,轮询所述线卡配置的下一个用户端口。Each line card of the broadband access device determines whether there is a downlink data packet to be configured for the selected user port, and if so, determines the selected user port as the target user port, and if not, polls the line card. The next user port configured.

可选地,Optionally,

针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口,还包括:For each line card of the broadband access device, in a polling manner, respectively, a target user port of the downlink data packet to be configured is determined in the user port configured for each line card, and further includes:

宽带接入设备的每个线卡在确定出各自的目标用户端口后,启动各自的计时器进行计时;Each line card of the broadband access device starts its own timer to determine the time after determining the respective target user ports;

其中,宽带接入设备的每个线卡,在各自计时器计时未达到预设时间前,禁止轮询下一个用户端口。 Among them, each line card of the broadband access device prohibits polling the next user port before the respective timers have not reached the preset time.

可选地,Optionally,

以轮询方式,选取宽带接入设备中线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发,包括:In the polling mode, the line card of the broadband access device is selected, and the scheduling request initiated by the selected line card is responded to, so that the destination port of the selected line card is forwarded to the downlink data packet after being configured to the downlink data packet. ,include:

控制板以轮询方式,选取宽带接入设备的一个线卡;The control board selects a line card of the broadband access device in a polling manner;

控制板根据选取到的线卡对应的调度申请,确定出该选取到的线卡的目标用户端口,并为所述目标用户端口配置下行数据包;The control board determines, according to the scheduling application corresponding to the selected line card, the target user port of the selected line card, and configures a downlink data packet for the target user port;

控制板解除该选取到的线卡对应的调度申请,并重新以轮询方式,选取宽带接入设备的下一个线卡。The control board cancels the scheduling request corresponding to the selected line card, and re-selects the next line card of the broadband access device in a polling manner.

可选地,Optionally,

每个线卡对应的调度申请携带有其目标用户端口的端口描述信息,以及其目标用户端口所需要配置的下行数据包的包描述信息;The scheduling request corresponding to each line card carries the port description information of the target user port, and the packet description information of the downlink data packet that needs to be configured on the target user port;

控制板根据选取到的线卡对应的调度申请,确定出该选取到的线卡的目标用户端口,并为所述目标用户端口配置下行数据包,包括:The control board determines the target user port of the selected line card according to the scheduling application corresponding to the selected line card, and configures a downlink data packet for the target user port, including:

控制板根据选取到的线卡对应的调度申请的端口描述信息,确定出该选取到的线卡的目标用户端口;The control board determines, according to the port description information of the scheduling application corresponding to the selected line card, the target user port of the selected line card;

控制板根据选取到的线卡对应的调度申请的包描述信息,从宽带接入设备的缓存数据中,调取该选取到的线卡的目标用户端口所需要配置的下发数据包;The control board retrieves the delivered data packet that needs to be configured on the target user port of the selected line card from the cached data of the broadband access device according to the package description information of the scheduling application corresponding to the selected line card;

控制板将调取到的下行数据包配置到该选取到的线卡的目标用户端口。The control board configures the acquired downlink data packet to the target user port of the selected line card.

一种宽带接入设备,包括多个线卡和控制板,其中:A broadband access device comprising a plurality of line cards and a control board, wherein:

每个线卡包括:轮询调度模块,设置为以轮询方式,在其所属线卡的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;以及发起模块,设置为针对其所属线卡的目标用户端口,向所述控制板发起调度申请,所述调度申请用于请求控制板为所述发起模块所属线卡的目标用户端口配置下行数据包; Each line card includes: a polling scheduling module, configured to determine, in a polling manner, a target user port of a downlink data packet to be configured in a user port of the line card to which the line card belongs; wherein one line card currently has at most one a target user port, and the number of user ports of the line card configured by the low speed port is greater than the line card of the high speed port; and the initiating module is configured to initiate a scheduling request to the control board for the target user port of the line card to which the line card belongs, the scheduling Applying for the requesting control board to configure a downlink data packet for the target user port of the line card to which the initiating module belongs;

所述控制板包括:轮询配置模块,设置为以轮询方式,选取宽带接入设备中线卡,并完成其选取到的线卡所发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。The control board includes: a polling configuration module, configured to select a line card of the broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the target port of the selected line card is obtained. After the downlink data packet is configured, the downlink data packet is forwarded.

可选地,Optionally,

所述轮询调度模块包括:The polling scheduling module includes:

第一轮询子模块,设置为以轮询方式,选取一个该第一轮询子模块所属线卡的用户端口,并在选到的用户端口被判断子模块确定出不存在需要下发的数据包后,轮询该第一轮询子模块所属线卡的下一个用户端口;The first polling sub-module is configured to select a user port of the line card to which the first polling sub-module belongs in a polling manner, and determine that the sub-module does not exist in the selected user port. After the packet, polling the next user port of the line card to which the first polling submodule belongs;

判断子模块,设置为判断所述轮询子模块选取到的用户端口是否存在需要配置的下行数据包;以及a judging sub-module, configured to determine whether there is a downlink data packet to be configured on the user port selected by the polling sub-module;

第一确定子模块,设置为在所述轮询子模块选取到的用户端口被所述判断子模块确定为存在需要配置的下行数据包,则将该用户端口确定为目标用户端口。The first determining sub-module is configured to determine, when the user port selected by the polling sub-module is determined by the determining sub-module to be a downlink data packet that needs to be configured, determine the user port as a target user port.

可选地,Optionally,

所述第一轮询子模块还设置为:在所述第一确定子模块确定出目标用户端口后,启动一计时器进行计时,并在计时器计时未达到预设时间前,禁止轮询下一用户端口。The first polling sub-module is further configured to: after the first determining sub-module determines the target user port, start a timer to perform timing, and prohibit polling before the timer timing does not reach the preset time. A user port.

可选地,Optionally,

所述轮询配置模块包括:The polling configuration module includes:

第二轮询子模块,设置为以轮询方式,选取宽带接入设备的一个线卡;以及a second polling sub-module, configured to select a line card of the broadband access device in a polling manner;

配置子模块,设置为根据所述第二轮询子模块选取到的线卡所发送的调度申请,确定出该选取到的线卡的目标用户端口,并为该目标用户端口配置下发的数据包;The configuration sub-module is configured to determine a target user port of the selected line card according to the scheduling application sent by the line card selected by the second polling sub-module, and configure the delivered data for the target user port. package;

其中,所述到第二轮询子模块还设置为:在所述配置子模块为该第二轮询子模块选取到的线卡的目标用户端口配置完下行数据包后,重新以轮询方式,选取宽带接入设备的下一个线卡。 The second polling sub-module is further configured to: after the configuration sub-module configures the downlink data packet for the target user port of the line card selected by the second polling sub-module, re-polling , select the next line card of the broadband access device.

可选地,Optionally,

每个调度申请均携带有其对应线卡的目标用户端口的端口描述信息,以及该目标用户端口所需要配置的下行数据包的包描述信息;Each scheduling application carries the port description information of the target user port of the corresponding line card, and the packet description information of the downlink data packet that needs to be configured on the target user port;

所述配置子模块包括:The configuration submodule includes:

确定单元,设置为根据所述第二轮询子模块选取到的线卡所发送的调度申请的端口描述信息,确定出该选取到的线卡的目标用户端口;a determining unit, configured to determine, according to the port description information of the scheduling application sent by the line card selected by the second polling submodule, the target user port of the selected line card;

调取单元,设置为根据所述第二轮询子模块选取到的线卡所发送的调度申请的包描述信息,从宽带接入设备的缓存数据中,调取该选取到的线卡的目标用户端口所需要配置的下行数据包;以及a calling unit, configured to retrieve, according to the package description information of the scheduling application sent by the line card selected by the second polling submodule, the target of the selected line card from the cached data of the broadband access device The downstream data packet that needs to be configured on the user port;

配置单元,设置为所述调取单元调取到的下行数据包配置到所述第二轮询子模块选取到的线卡的目标用户端口。And a configuration unit, configured to configure, by the calling unit, the downlink data packet to be sent to the target user port of the line card selected by the second polling submodule.

一种数据包的下发装置,包括:A data delivery device includes:

第一轮询处理模块,设置为针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;The first polling processing module is configured to determine, for each line card of the broadband access device, a target user port of the downlink data packet to be configured in each of the user ports configured by each line card in a polling manner; A line card currently has only one target user port at a time, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port;

调度申请模块,设置为针对每个线卡的目标用户端口,发起一请求配置下行数据包的调度申请;以及a scheduling application module, configured to initiate a request for scheduling a downlink data packet for a target user port of each line card;

第二轮询处理模块,设置为以轮询方式,选取宽带接入设备中线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。The second polling processing module is configured to select a line card of the broadband access device in a polling manner, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to the downlink data packet. After that, the downlink packet is forwarded.

本发明实施例还提供一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现上面所述的方法。The embodiment of the invention further provides a computer readable storage medium storing program instructions, which can be implemented when the program instructions are executed.

在本发明实施例的方案中,线卡之间的通过轮询方式公平地等待调度申请的完成,同一线卡中的多个用户端口之间,同样以轮询方式公平地等待被确认为所属线卡唯一的目标用户端口。但是,高速端口的线卡配置的用户端口数量要小于低速端口的线卡,在一段时间过后,高带宽线卡的用户端口能 够有更多次机会被确定为目标用户端口,从而能够更多次地被分配到下行数据包。这样一来,高带宽线卡的用户端口要比低带宽线卡的用户端口得到更多的带宽资源。可见,本实施例的方法只通过两个逻辑非常简单的轮询机制,即可根据用户端口所属线卡的性能要求,分配带宽资源。In the solution of the embodiment of the present invention, the polling mode between the line cards fairly waits for the completion of the scheduling application, and the plurality of user ports in the same line card are equally waiting in the polling manner to be confirmed as belonging. The only target user port for the line card. However, the number of user ports of the high-speed port line card configuration is smaller than that of the low-speed port line card. After a period of time, the user port of the high-bandwidth line card can There are more chances to be identified as the target user port so that it can be assigned to downstream packets more times. In this way, the user port of the high-bandwidth line card gets more bandwidth resources than the user port of the low-bandwidth line card. It can be seen that the method in this embodiment can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.

附图概述BRIEF abstract

图1为本发明实施例的数据包的下发方法的步骤示意图;FIG. 1 is a schematic diagram of steps of a method for sending a data packet according to an embodiment of the present invention;

图2为在本发明实施例的数据包的下发方法中,宽带接入设备的逻辑关系示意图;2 is a schematic diagram of a logical relationship of a broadband access device in a method for sending a data packet according to an embodiment of the present invention;

图3在为本发明实施例的数据包的下发方法中,线卡以轮询方式确定目标端口的流程示意图;3 is a schematic flowchart of determining a target port by a line card in a polling manner according to a method for sending a data packet according to an embodiment of the present invention;

图4在为本发明实施例的数据包的下发方法中,控制板以轮询方式为个线卡的目标端口的配置下行数据包的流程意图;4 is a flow diagram of a process of configuring a downlink data packet of a target port of a line card in a polling manner in a method for sending a data packet according to an embodiment of the present invention;

图5为本发明实施例的宽带接入设备的结构示意图;FIG. 5 is a schematic structural diagram of a broadband access device according to an embodiment of the present invention;

图6为本发明实施例的数据包的下发装置的结构示意图。FIG. 6 is a schematic structural diagram of a device for sending a data packet according to an embodiment of the present invention.

本发明的较佳实施方式Preferred embodiment of the invention

下面将结合附图对本发明的实施例进行详细描述。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.

如图1所示,本发明的实施例提供一种数据包的下发方法,包括:As shown in FIG. 1 , an embodiment of the present invention provides a method for sending a data packet, including:

步骤11,针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;Step 11: For each line card of the broadband access device, determine, in a polling manner, a target user port of the downlink data packet to be configured in each user port configured by each line card; wherein one line card is currently the most There is only one target user port, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port;

步骤12,针对每个线卡的目标用户端口,发起一请求配置数据包的调度申请;Step 12: Initiating a scheduling application requesting configuration data packet for a target user port of each line card;

步骤13,以轮询方式,选取宽带接入设备中线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。 Step 13: In the polling mode, select the line card of the broadband access device, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to the downlink data packet, and then the downlink data is configured. The package is forwarded.

通过上述描述可以知道,在本实施例的方法中,线卡之间的通过轮询方式公平地等待调度申请的完成,同一线卡中的用户端口之间,同样以轮询方式公平地等待被确认为所属线卡唯一的目标用户端口。但是,高带宽的线卡配置的用户端口数量要小于低带宽的线卡,在一段时间过后,高带宽线卡的用户端口能够有更多次机会被确定为目标用户端口,从而能够更多次地被分配到下行数据包。这样一来,高带宽线卡的用户端口要比低带宽线卡的用户端口得到更多的带宽资源。可见,本实施例的方法只通过两个逻辑非常简单的轮询机制,即可根据用户端口所属线卡的性能要求,分配带宽资源。As can be seen from the above description, in the method of the embodiment, the polling mode between the line cards fairly waits for the completion of the scheduling application, and the user ports in the same line card also wait for the fairness in the polling manner. Confirm as the only target user port of the line card to which it belongs. However, the number of user ports of a high-bandwidth line card configuration is smaller than that of a low-bandwidth line card. After a period of time, the user port of the high-bandwidth line card can have more chances to be identified as the target user port, thereby enabling more times. The ground is assigned to the downstream packet. In this way, the user port of the high-bandwidth line card gets more bandwidth resources than the user port of the low-bandwidth line card. It can be seen that the method in this embodiment can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.

此外,为了保证下行数据的传输效率,应避免将不存在需要向用户转发下行数据包的用户端口确定为目标用户端口。即在上步骤11中,还可以包括:In addition, in order to ensure the transmission efficiency of downlink data, it should be avoided to determine that there is no user port that needs to forward downlink packets to the user as the target user port. That is, in the above step 11, it may further include:

步骤111,宽带接入设备的每个线卡,以轮询方式,选取一个其配置的用户端口;Step 111: Each line card of the broadband access device selects a configured user port in a polling manner;

步骤112,宽带接入设备的每个线卡,判断各自选取到的用户端口是否存在需要配置的下行数据包,若是,则将选取到的用户端口确定为目标用户端口,若是,轮询下一个其配置的用户端口。Step 112: Each line card of the broadband access device determines whether there is a downlink data packet to be configured for the selected user port, and if yes, determines the selected user port as the target user port, and if yes, polls the next user. Its configured user port.

当宽带接入设备只插有少量的线卡,并且线卡上的配置了少量的用户端口,为避免一个用户端口被过多地分配到下行数据包,以超出其所能承受的最大带宽上限,在步骤111中,宽带接入设备的每个线卡在确定出各自的目标用户端口后,启动各自的计时器进行计时;其中,宽带接入设备的每个线卡,在各自计时器计时未达到预设时间前,禁止轮询下一个用户端口。这样一来,即便是线卡的当前目标用户端口配置到了下行数据包,如果未达到预设时间,线卡也不会轮询下一个用户端口。When a broadband access device has only a small number of line cards inserted, and a small number of user ports are configured on the line card, in order to prevent a user port from being excessively allocated to the downlink data packet, it exceeds the maximum bandwidth limit that can be withstood. In step 111, after determining the respective target user ports, each line card of the broadband access device starts a respective timer for timing; wherein each line card of the broadband access device is clocked in its own timer. Polling the next user port is prohibited until the preset time has elapsed. In this way, even if the current target user port of the line card is configured to the downlink data packet, if the preset time is not reached, the line card will not poll the next user port.

上述步骤13可以包括:The above step 13 may include:

步骤131,控制板以轮询方式,选取宽带接入设备的一个线卡;Step 131: The control board selects a line card of the broadband access device in a polling manner;

步骤132,控制板根据选取到的线卡对应的调度申请,确定出该选取到的线卡的目标用户端口,并为其配置下行数据包;Step 132: The control board determines, according to the scheduling application corresponding to the selected line card, the target user port of the selected line card, and configures a downlink data packet for the line card;

步骤133,控制板解除该选取到的线卡对应的调度申请,并重新以轮询 方式,选取宽带接入设备的下一个线卡。Step 133, the control board cancels the scheduling application corresponding to the selected line card, and re-sends the polling In this way, select the next line card of the broadband access device.

其中,不同用户端口下联不同的用户,因此需要配置的下行数据包也不同。因此,在上述实施例基础上,每个线卡对应的调度申请携带有其目标用户端口的端口描述信息,以及其目标用户端口所需要配置的下行数据包的包描述信息;Among them, different user ports are connected to different users, so the downlink data packets to be configured are also different. Therefore, on the basis of the foregoing embodiment, the scheduling request corresponding to each line card carries the port description information of the target user port and the packet description information of the downlink data packet that needs to be configured on the target user port;

在执行上述步骤132的过程中,控制板根据选取到的线卡对应的调度申请的端口描述信息,确定出该选取到的线卡的目标用户端口;控制板根据选取到的线卡对应的调度申请的包描述信息,从宽带接入设备的缓存数据中,调取该选取到的线卡的目标用户端口所需要配置的下发数据包;之后,控制板将调取到的下行数据包配置到该选取到的线卡的目标用户端口。In the process of performing the foregoing step 132, the control board determines the target user port of the selected line card according to the port description information of the scheduling application corresponding to the selected line card; the control board performs scheduling according to the selected line card. The packet description information of the application, from the cached data of the broadband access device, the configured data packet to be configured by the target user port of the selected line card; and then the downlink data packet configuration that the control board will retrieve Go to the target user port of the selected line card.

下面结合一个实现方式对本实施例的方法进行详细介绍。The method of this embodiment will be described in detail below in conjunction with an implementation manner.

如图2所示,假设本实现方式中,宽带接入设备有3个线卡,即光纤接入方式的线卡1以及铜线接入方式的线卡2、线卡3。其中,线卡1至配置两个用户端口,线卡2和线卡3分配只有10个用户端口。As shown in FIG. 2, it is assumed that in the implementation manner, the broadband access device has three line cards, that is, the line card 1 of the fiber access mode and the line card 2 and the line card 3 of the copper line access mode. Among them, the line card 1 to the configuration of two user ports, the line card 2 and the line card 3 are allocated only 10 user ports.

每个以轮询方式线卡确定各自的目标用户端口,详细步骤如图3所示,包括:Each polling line card determines its own target user port. The detailed steps are as shown in Figure 3, including:

步骤A1:从本地配置的第一个用户端口开始轮询。Step A1: Polling starts from the first user port configured locally.

步骤A2:读本地的定时器的数值,判断从上一轮轮询到现在,时间间隔是否已经大于预设时间,如果达到则执行步骤A3。Step A2: Read the value of the local timer to determine whether the time interval has been greater than the preset time from the previous round of polling to the present, and if yes, execute step A3.

步骤A3:把定时器清0,重新开始计时。Step A3: Clear the timer to 0 and restart the timing.

步骤A4:获取被轮询到的当前用户端口的信息,包括用户端口是否存在需要配置的下行数据包,用户端口的下行线路的状态。Step A4: Obtain the information of the current user port that is polled, including whether the user port has a downlink data packet to be configured, and a downlink state of the user port.

步骤A5:判断当前用户端口是否可以向用户转发下行数据包。如果当前用户端口有下行数据包需要发送,并且当前端口对应的下行线路正常,则确定当前用户端口可以向用户转发下行数据包,并则执行步骤A6;如果当前用户端口没有下行数据包需要发送,或者当前端口对应的下行线路不正常,执行步骤A8。 Step A5: Determine whether the current user port can forward the downlink data packet to the user. If the current user port has a downlink data packet to be sent, and the downlink corresponding to the current port is normal, it is determined that the current user port can forward the downlink data packet to the user, and then step A6 is performed; if the current user port does not have the downlink data packet, it needs to be sent. If the downlink corresponding to the current port is abnormal, go to step A8.

步骤A6:将当前用户端口作为目标用户端口,并向控制板发起调度申请,然后等待控制板的反馈。Step A6: Use the current user port as the target user port, and initiate a scheduling request to the control panel, and then wait for feedback from the control panel.

步骤A7:控制板反馈当前目标用户端端口已配置完下行数据包,进入步骤A8。Step A7: The control board feeds back that the current target client port has configured the downlink data packet, and proceeds to step A8.

步骤A8:轮询下一个用户端口。Step A8: Poll the next user port.

步骤A9:判断轮询到的当前用户端口是否是本线卡的第一个用户端口。如果不是第一个用户端口,则执行步骤A4,判断当前用户端口是否可以发送数据;如果是第一个用户端口,则执行步骤A1。Step A9: Determine whether the polled current user port is the first user port of the line card. If it is not the first user port, step A4 is performed to determine whether the current user port can send data; if it is the first user port, step A1 is performed.

在上述基础上,定时器的预设时间,可根据所属线卡的最大带宽的大小进行设置,高带宽线卡的预设时间小于低带宽线卡。On the basis of the above, the preset time of the timer can be set according to the maximum bandwidth of the line card, and the preset time of the high bandwidth line card is smaller than the low bandwidth line card.

与此同时,控制板对每个线卡进行轮询调度,包括如下步骤:At the same time, the control board polls each line card for scheduling, including the following steps:

步骤B1:锁定各线卡发起的调度申请,保证每个线卡当前只有一个申请调度。Step B1: Lock the scheduling application initiated by each line card to ensure that there is only one application scheduling for each line card.

步骤B2:轮询第一个线卡,响应该线卡发起的调度申请。响应过程包括:根据当前线卡的调度申请确定目标用户端口以及该目标用户端口等待转发的下行数据包,之后从图2中的下行数据缓存器中,提取目标用户端口等待转发的下行数据包,并将提取的下行数据包分配至目标用户端口,使其进行转发。Step B2: Polling the first line card, responding to the scheduling request initiated by the line card. The response process includes: determining, according to the scheduling request of the current line card, the target user port and the downlink data packet that the target user port is waiting to forward, and then extracting, from the downlink data buffer in FIG. 2, the downlink data packet that the target user port is waiting to forward, The extracted downstream packets are assigned to the target user port for forwarding.

步骤B3:当数据发送模块反馈下行数据包分配完毕后,进入步骤B4。Step B3: After the data sending module feeds back the downlink data packet allocation, the process proceeds to step B4.

步骤B4:向当前线卡反馈分配完毕的信息,使当前线卡执行上述步骤A2,同时,控制板解除当前线卡向所发起的调度申请;Step B4: feeding back the allocated information to the current line card, so that the current line card performs the above step A2, and at the same time, the control board cancels the current line card to the initiated scheduling application;

步骤B5:如果本轮线卡没有轮询完,则执行步骤B6;如果本轮线卡已经轮询完,执行步骤B1重新锁定所有线卡调度申请,开始新的一轮调度。Step B5: If the current round line card is not polled, proceed to step B6; if the current line card has been polled, perform step B1 to re-lock all line card scheduling applications and start a new round of scheduling.

步骤B6:轮询下一个线卡。Step B6: Poll the next line card.

综上所述,本实现方式只通过两个逻辑非常简单的轮询机制,即可根据用户端口所属线卡的性能要求,分配带宽资源。In summary, the implementation mode allocates bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.

此外,如图5所示,本发明另一实施例还提供一种宽带接入设备,包括 多个线卡和控制板,其中:In addition, as shown in FIG. 5, another embodiment of the present invention further provides a broadband access device, including Multiple line cards and control boards, where:

每个线卡包括有:轮询调度模块,设置为:以轮询方式,在其所属线卡的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;发起模块,设置为:针对其所属线卡的目标用户端口,向宽带接入设备的控制板发起调度申请,所述调度申请用于请求控制板为其所属线卡的目标用户端口配置下行数据包;Each line card includes: a polling scheduling module, configured to: in a polling manner, determine a target user port of a downlink data packet to be configured in a user port of the line card to which the line card belongs; wherein, one line card currently only has a maximum of only There is a target user port, and the number of user ports configured by the line card of the low speed port is greater than the line card of the high speed port; the initiating module is set to: initiate scheduling to the control board of the broadband access device for the target user port of the line card to which it belongs Applying, the scheduling application is used to request the control panel to configure a downlink data packet for the target user port of the line card to which it belongs;

所述控制板包括:轮询配置模块,设置为:以轮询方式,选取宽带接入设备中线卡,并完成其选取到的线卡所发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。The control board includes: a polling configuration module, configured to: select a line card of the broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the target of the selected line card is obtained. After the port is configured to the downlink data packet, the downlink packet is forwarded.

其中,所述轮询调度模块包括:The polling scheduling module includes:

第一轮询子模块,设置为:以轮询方式,选取一个其所属线卡的用户端口,并在选到的用户端口被判断子模块确定出不存在需要下发的数据包后,轮询下一个其所属线卡的用户端口;The first polling sub-module is configured to: select a user port of the line card to which it belongs in a polling manner, and poll the selected user port after the judging sub-module determines that there is no data packet to be delivered. The user port of the next line card to which it belongs;

判断子模块,设置为:判断所述轮询子模块选取到的用户端口是否存在需要配置的下行数据包;The determining sub-module is configured to: determine whether the user port selected by the polling sub-module has a downlink data packet to be configured;

第一确定子模块,设置为:在所述轮询子模块选取到的用户端口被所述判断子模块确定为存在需要配置的下行数据包,则将该用户端口确定为目标用户端口。The first determining sub-module is configured to: when the user port selected by the polling sub-module is determined by the determining sub-module to be a downlink data packet to be configured, the user port is determined as the target user port.

其中,所述第一轮询子模块在所述第一确定子模块确定出目标用户端口后,启动一计时器进行计时,并在计时器计时未达到预设时间前,禁止轮询下一用户端口。After the first determining sub-module determines the target user port, the first polling sub-module starts a timer to perform timing, and prohibits polling the next user before the timer timing does not reach the preset time. port.

在上述实施例的基础上,所述轮询配置模块包括:Based on the foregoing embodiment, the polling configuration module includes:

第二轮询子模块,设置为:以轮询方式,选取宽带接入设备的一个线卡;The second round of the sub-module module is set to: select a line card of the broadband access device in a polling manner;

配置子模块,设置为:根据所述第二轮询子模块选取到的线卡所发送的调度申请,确定出该选取到的线卡的目标用户端口,并为其配置下发的数据包; The configuration sub-module is configured to: according to the scheduling application sent by the line card selected by the second polling sub-module, determine a target user port of the selected line card, and configure a data packet to be delivered;

其中,所述到第二轮询子模块在所述配置子模块为其选取到的线卡的目标用户端口配置完下行数据包后,重新以轮询方式,选取宽带接入设备的下一个线卡。The second polling sub-module re-selects the next line of the broadband access device in a polling manner after the configuration sub-module configures the downlink data packet for the target user port of the selected line card. card.

其中,每个调度申请均携带有其对应线卡的目标用户端口的端口描述信息,以及该目标用户端口所需要配置的下行数据包的包描述信息;Each of the scheduling applications carries the port description information of the target user port of the corresponding line card, and the packet description information of the downlink data packet that needs to be configured on the target user port;

所述配置子模块包括:The configuration submodule includes:

确定单元,设置为:根据所述第二轮询子模块选取到的线卡所发送的调度申请的端口描述信息,确定出该选取到的线卡的目标用户端口;a determining unit, configured to: determine, according to the port description information of the scheduling application sent by the line card selected by the second polling submodule, the target user port of the selected line card;

调取单元,设置为:根据所述第二轮询子模块选取到的线卡所发送的调度申请的包描述信息,从宽带接入设备的缓存数据中,调取该选取到的线卡的目标用户端口所需要配置的下行数据包;The calling unit is configured to: according to the package description information of the scheduling application sent by the line card selected by the second polling sub-module, retrieve the selected line card from the cached data of the broadband access device The downlink data packet to be configured on the target user port;

配置单元,设置为:所述调取单元调取到的下行数据包配置到所述第二轮询子模块选取到的线卡的目标用户端口。And a configuration unit, configured to: the downlink data packet retrieved by the calling unit is configured to a target user port of the line card selected by the second polling submodule.

本实施例的宽带接入设备与本发明实施例的数据包的下发方法相对应,均能够达到同样的技术效果。The broadband access device of this embodiment corresponds to the method for sending data packets according to the embodiment of the present invention, and the same technical effects can be achieved.

此外,本发明另一实施例还提供一种数据包的下发装置,如图6所示,包括:In addition, another embodiment of the present invention further provides a data packet sending device, as shown in FIG. 6, including:

第一轮询处理模块,设置为:针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;The first polling processing module is configured to: determine, for each line card of the broadband access device, a target user port of the downlink data packet to be configured in the user port configured by each line card in a polling manner; Wherein, one line card currently has only one target user port at present, and the number of user ports configured by the line card of the low speed port is greater than the line card of the high speed port;

调度申请模块,设置为:针对每个线卡的目标用户端口,发起一请求配置下行数据包的调度申请;The scheduling application module is configured to: initiate a request for scheduling a downlink data packet for a target user port of each line card;

第二轮询处理模块,设置为:以轮询方式,选取宽带接入设备中线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。The second polling processing module is configured to: select a line card of the broadband access device in a polling manner, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to downlink data. After the packet, the downlink packet is forwarded.

通过上述描述可以知道,在本实施例的装置中,线卡之间的通过轮询方 式公平地等待调度申请的完成,同一线卡中的用户端口之间,同样以轮询方式公平地等待被确认为所属线卡唯一的目标用户端口。但是,高带宽的线卡配置的用户端口数量要小于低带宽的线卡,在一段时间过后,高带宽线卡的用户端口能够有更多次机会被确定为目标用户端口,从而能够更多次地被分配到下行数据包。这样一来,高带宽线卡的用户端口要比低带宽线卡的用户端口得到更多的带宽资源。可见,本实施例的方法只通过两个逻辑非常简单的轮询机制,即可根据用户端口所属线卡的性能要求,分配带宽资源。As can be seen from the above description, in the apparatus of the embodiment, the polling party between the line cards It waits for the completion of the scheduling application fairly, and the user ports in the same line card also wait in a polling manner for the target user port that is confirmed to be the only one of the line cards. However, the number of user ports of a high-bandwidth line card configuration is smaller than that of a low-bandwidth line card. After a period of time, the user port of the high-bandwidth line card can have more chances to be identified as the target user port, thereby enabling more times. The ground is assigned to the downstream packet. In this way, the user port of the high-bandwidth line card gets more bandwidth resources than the user port of the low-bandwidth line card. It can be seen that the method in this embodiment can allocate bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.

本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.

可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.

上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.

上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

工业实用性Industrial applicability

本发明实施例的方法只通过两个逻辑非常简单的轮询机制,即可根据用户端口所属线卡的性能要求,分配带宽资源。 The method in the embodiment of the present invention allocates bandwidth resources according to the performance requirements of the line card to which the user port belongs, only through two logically simple polling mechanisms.

Claims (12)

一种数据包的下发方法,包括:A method for delivering a data packet, including: 针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;For each line card of the broadband access device, in the polling mode, respectively, the target user port of the downlink data packet to be configured is determined in the user port configured by each line card; wherein one line card currently has only one at most The target user port, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port; 针对每个线卡的目标用户端口,发起一请求配置下行数据包的调度申请;Initiating a request for scheduling a downlink data packet for a target user port of each line card; 以轮询方式,选取宽带接入设备的线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。In the polling mode, the line card of the broadband access device is selected, and the scheduling request initiated by the selected line card is responded to, so that the target port of the selected line card is configured to the downlink data packet, and then the downlink data packet is performed. Forward. 根据权利要求1所述的方法,其中,The method of claim 1 wherein 针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口,包括:For each line card of the broadband access device, in a polling manner, a target user port of the downlink data packet to be configured is determined in each of the user ports configured by each line card, including: 宽带接入设备的每个线卡,以轮询方式,选取一个该线卡配置的用户端口;Each line card of the broadband access device selects a user port configured by the line card in a polling manner; 宽带接入设备的每个线卡,判断各自选取到的用户端口是否存在需要配置的下行数据包,若是,则将选取到的用户端口确定为目标用户端口,若否,轮询所述线卡配置的下一个用户端口。Each line card of the broadband access device determines whether there is a downlink data packet to be configured for the selected user port, and if so, determines the selected user port as the target user port, and if not, polls the line card. The next user port configured. 根据权利要求2所述的方法,其中,The method of claim 2, wherein 针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口,还包括:For each line card of the broadband access device, in a polling manner, respectively, a target user port of the downlink data packet to be configured is determined in the user port configured for each line card, and further includes: 宽带接入设备的每个线卡在确定出各自的目标用户端口后,启动各自的计时器进行计时;Each line card of the broadband access device starts its own timer to determine the time after determining the respective target user ports; 其中,宽带接入设备的每个线卡,在各自计时器计时未达到预设时间前,禁止轮询下一个用户端口。Among them, each line card of the broadband access device prohibits polling the next user port before the respective timers have not reached the preset time. 根据权利要求1所述的方法,其中,The method of claim 1 wherein 以轮询方式,选取宽带接入设备中线卡,并响应所选取的线卡发起的调 度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发,包括:In the polling mode, select the line card of the broadband access device, and respond to the selected line card to initiate the adjustment. Applying, the target port of the selected line card is forwarded to the downlink data packet after being configured to the downlink data packet, including: 控制板以轮询方式,选取宽带接入设备的一个线卡;The control board selects a line card of the broadband access device in a polling manner; 控制板根据选取到的线卡对应的调度申请,确定出该选取到的线卡的目标用户端口,并为所述目标用户端口配置下行数据包;The control board determines, according to the scheduling application corresponding to the selected line card, the target user port of the selected line card, and configures a downlink data packet for the target user port; 控制板解除该选取到的线卡对应的调度申请,并重新以轮询方式,选取宽带接入设备的下一个线卡。The control board cancels the scheduling request corresponding to the selected line card, and re-selects the next line card of the broadband access device in a polling manner. 根据权利要求4所述的方法,其中,The method of claim 4, wherein 每个线卡对应的调度申请携带有其目标用户端口的端口描述信息,以及其目标用户端口所需要配置的下行数据包的包描述信息;The scheduling request corresponding to each line card carries the port description information of the target user port, and the packet description information of the downlink data packet that needs to be configured on the target user port; 控制板根据选取到的线卡对应的调度申请,确定出该选取到的线卡的目标用户端口,并为所述目标用户端口配置下行数据包,包括:The control board determines the target user port of the selected line card according to the scheduling application corresponding to the selected line card, and configures a downlink data packet for the target user port, including: 控制板根据选取到的线卡对应的调度申请的端口描述信息,确定出该选取到的线卡的目标用户端口;The control board determines, according to the port description information of the scheduling application corresponding to the selected line card, the target user port of the selected line card; 控制板根据选取到的线卡对应的调度申请的包描述信息,从宽带接入设备的缓存数据中,调取该选取到的线卡的目标用户端口所需要配置的下发数据包;The control board retrieves the delivered data packet that needs to be configured on the target user port of the selected line card from the cached data of the broadband access device according to the package description information of the scheduling application corresponding to the selected line card; 控制板将调取到的下行数据包配置到该选取到的线卡的目标用户端口。The control board configures the acquired downlink data packet to the target user port of the selected line card. 一种宽带接入设备,包括多个线卡和控制板,其中:A broadband access device comprising a plurality of line cards and a control board, wherein: 每个线卡包括:轮询调度模块,设置为以轮询方式,在其所属线卡的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;以及发起模块,设置为针对其所属线卡的目标用户端口,向所述控制板发起调度申请,所述调度申请用于请求控制板为所述发起模块所属线卡的目标用户端口配置下行数据包;Each line card includes: a polling scheduling module, configured to determine, in a polling manner, a target user port of a downlink data packet to be configured in a user port of the line card to which the line card belongs; wherein one line card currently has at most one a target user port, and the number of user ports of the line card configured by the low speed port is greater than the line card of the high speed port; and the initiating module is configured to initiate a scheduling request to the control board for the target user port of the line card to which the line card belongs, the scheduling Applying for the requesting control board to configure a downlink data packet for the target user port of the line card to which the initiating module belongs; 所述控制板包括:轮询配置模块,设置为以轮询方式,选取宽带接入设备中线卡,并完成其选取到的线卡所发起的调度申请,使得被选取到的线卡 的目标端口在配置到下行数据包后,将该下行数据包进行转发。The control board includes: a polling configuration module, configured to select a line card of a broadband access device in a polling manner, and complete a scheduling application initiated by the selected line card, so that the selected line card is selected After the target port is configured to the downlink data packet, the downlink data packet is forwarded. 根据权利要求6所述的宽带接入设备,其中,The broadband access device according to claim 6, wherein 所述轮询调度模块包括:The polling scheduling module includes: 第一轮询子模块,设置为以轮询方式,选取一个该第一轮询子模块所属线卡的用户端口,并在选到的用户端口被判断子模块确定出不存在需要下发的数据包后,轮询该第一轮询子模块所属线卡的下一个用户端口;The first polling sub-module is configured to select a user port of the line card to which the first polling sub-module belongs in a polling manner, and determine that the sub-module does not exist in the selected user port. After the packet, polling the next user port of the line card to which the first polling submodule belongs; 判断子模块,设置为判断所述轮询子模块选取到的用户端口是否存在需要配置的下行数据包;以及a judging sub-module, configured to determine whether there is a downlink data packet to be configured on the user port selected by the polling sub-module; 第一确定子模块,设置为在所述轮询子模块选取到的用户端口被所述判断子模块确定为存在需要配置的下行数据包,则将该用户端口确定为目标用户端口。The first determining sub-module is configured to determine, when the user port selected by the polling sub-module is determined by the determining sub-module to be a downlink data packet that needs to be configured, determine the user port as a target user port. 根据权利要求7所述的宽带接入设备,其中,The broadband access device according to claim 7, wherein 所述第一轮询子模块还设置为:在所述第一确定子模块确定出目标用户端口后,启动一计时器进行计时,并在计时器计时未达到预设时间前,禁止轮询下一用户端口。The first polling sub-module is further configured to: after the first determining sub-module determines the target user port, start a timer to perform timing, and prohibit polling before the timer timing does not reach the preset time. A user port. 根据权利要求6所述的宽带接入设备,其中,The broadband access device according to claim 6, wherein 所述轮询配置模块包括:The polling configuration module includes: 第二轮询子模块,设置为以轮询方式,选取宽带接入设备的一个线卡;以及a second polling sub-module, configured to select a line card of the broadband access device in a polling manner; 配置子模块,设置为根据所述第二轮询子模块选取到的线卡所发送的调度申请,确定出该选取到的线卡的目标用户端口,并为该目标用户端口配置下发的数据包;The configuration sub-module is configured to determine a target user port of the selected line card according to the scheduling application sent by the line card selected by the second polling sub-module, and configure the delivered data for the target user port. package; 其中,所述到第二轮询子模块还设置为:在所述配置子模块为该第二轮询子模块选取到的线卡的目标用户端口配置完下行数据包后,重新以轮询方式,选取宽带接入设备的下一个线卡。The second polling sub-module is further configured to: after the configuration sub-module configures the downlink data packet for the target user port of the line card selected by the second polling sub-module, re-polling , select the next line card of the broadband access device. 根据权利要求9所述的宽带接入设备,其中,The broadband access device according to claim 9, wherein 每个调度申请均携带有其对应线卡的目标用户端口的端口描述信息,以 及该目标用户端口所需要配置的下行数据包的包描述信息;Each scheduling request carries port description information of a target user port of its corresponding line card, And packet description information of the downlink data packet that needs to be configured on the target user port; 所述配置子模块包括:The configuration submodule includes: 确定单元,设置为根据所述第二轮询子模块选取到的线卡所发送的调度申请的端口描述信息,确定出该选取到的线卡的目标用户端口;a determining unit, configured to determine, according to the port description information of the scheduling application sent by the line card selected by the second polling submodule, the target user port of the selected line card; 调取单元,设置为根据所述第二轮询子模块选取到的线卡所发送的调度申请的包描述信息,从宽带接入设备的缓存数据中,调取该选取到的线卡的目标用户端口所需要配置的下行数据包;以及a calling unit, configured to retrieve, according to the package description information of the scheduling application sent by the line card selected by the second polling submodule, the target of the selected line card from the cached data of the broadband access device The downstream data packet that needs to be configured on the user port; 配置单元,设置为所述调取单元调取到的下行数据包配置到所述第二轮询子模块选取到的线卡的目标用户端口。And a configuration unit, configured to configure, by the calling unit, the downlink data packet to be sent to the target user port of the line card selected by the second polling submodule. 一种数据包的下发装置,包括:A data delivery device includes: 第一轮询处理模块,设置为针对宽带接入设备的每个线卡,以轮询方式,分别在每个线卡配置的用户端口中,确定一待配置下行数据包的目标用户端口;其中,一个线卡当前最多只存在一个目标用户端口,且低速端口的线卡配置的用户端口数量大于高速端口的线卡;The first polling processing module is configured to determine, for each line card of the broadband access device, a target user port of the downlink data packet to be configured in each of the user ports configured by each line card in a polling manner; A line card currently has only one target user port at a time, and the number of user ports configured on the line card of the low speed port is greater than the line card of the high speed port; 调度申请模块,设置为针对每个线卡的目标用户端口,发起一请求配置下行数据包的调度申请;以及a scheduling application module, configured to initiate a request for scheduling a downlink data packet for a target user port of each line card; 第二轮询处理模块,设置为以轮询方式,选取宽带接入设备中线卡,并响应所选取的线卡发起的调度申请,使得被选取到的线卡的目标端口在配置到下行数据包后,将该下行数据包进行转发。The second polling processing module is configured to select a line card of the broadband access device in a polling manner, and respond to the scheduling request initiated by the selected line card, so that the target port of the selected line card is configured to the downlink data packet. After that, the downlink packet is forwarded. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-5任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, can implement the method of any of claims 1-5.
PCT/CN2015/072690 2014-11-14 2015-02-10 Data packet distribution method, device, and broadband access device Ceased WO2016074362A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410649744.6A CN105591981B (en) 2014-11-14 2014-11-14 A method, device, and broadband access device for delivering data packets
CN201410649744.6 2014-11-14

Publications (1)

Publication Number Publication Date
WO2016074362A1 true WO2016074362A1 (en) 2016-05-19

Family

ID=55931209

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/072690 Ceased WO2016074362A1 (en) 2014-11-14 2015-02-10 Data packet distribution method, device, and broadband access device

Country Status (2)

Country Link
CN (1) CN105591981B (en)
WO (1) WO2016074362A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192944A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 A management method and system for communication device port information
CN101192949A (en) * 2006-11-24 2008-06-04 中兴通讯股份有限公司 An interface index method and system
CN101193045A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 Method for capturing and limiting speed of data packets via line card
CN101515860A (en) * 2008-02-20 2009-08-26 中兴通讯股份有限公司 Method and system for remotely managing customer premises equipment
EP2566118A1 (en) * 2011-09-01 2013-03-06 Alcatel Lucent Network element for switching time division multiplex signals

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192944A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 A management method and system for communication device port information
CN101193045A (en) * 2006-11-21 2008-06-04 中兴通讯股份有限公司 Method for capturing and limiting speed of data packets via line card
CN101192949A (en) * 2006-11-24 2008-06-04 中兴通讯股份有限公司 An interface index method and system
CN101515860A (en) * 2008-02-20 2009-08-26 中兴通讯股份有限公司 Method and system for remotely managing customer premises equipment
EP2566118A1 (en) * 2011-09-01 2013-03-06 Alcatel Lucent Network element for switching time division multiplex signals

Also Published As

Publication number Publication date
CN105591981B (en) 2019-10-25
CN105591981A (en) 2016-05-18

Similar Documents

Publication Publication Date Title
US10313768B2 (en) Data scheduling and switching method, apparatus, system
CN104067576B (en) System for transmitting concurrent streams of data over a network
KR101227121B1 (en) Delayed downloading video service using peer-to-peer(p2p) content distribution network
CN108173894A (en) Method, device and server equipment for server load balancing
CN106685847A (en) Message processing method, message processing device and message processing equipment
CN104794079B (en) The method, apparatus and system of a kind of bus arbitration
CN108702486A (en) A low-latency audio and video transmission method, device, and computer-readable storage medium
CN105610939A (en) Client and server file downloading control method, device and system
CN104158764A (en) Message processing method and device
WO2024066248A1 (en) Access control method and apparatus, device, and non-volatile readable storage medium
WO2019192318A1 (en) Traffic smoothing method, server, and forwarding device
WO2015110020A1 (en) Openflow-based group table processing method and device, and group table configuration unit
WO2016131299A1 (en) Packet reception method and apparatus for processor network interface inside device
JP5109748B2 (en) Virtual computer system, packet transmission control method, and network interface card used therefor
CN107645556B (en) It is a kind of to realize that SDN turns the isolated broadband access of control and keepalive method and device
CN109947081A (en) Networked vehicle control method and device
US9240896B2 (en) Method and system for USB connections over distinct network paths
US7697548B2 (en) Load balancing of broadband subscriber sessions
US8645584B2 (en) Method and system for partial USB enumeration and edge initiation
WO2012174838A1 (en) Method and system of parallel transmitting network element messages
WO2016074362A1 (en) Data packet distribution method, device, and broadband access device
CN111416776A (en) Method and network device for transmitting data
CN112995058B (en) Token adjusting method and device
CN101459598A (en) Method for implementing packet exchange and system thereof
US8578060B2 (en) Method and system for initiating distinct USB connections over a network

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15859561

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15859561

Country of ref document: EP

Kind code of ref document: A1