Patent ID: 9253106
Filing Date: 2016-02-02
CPC Classification: H04L

Claim Text:
1. A traffic control-based data transmission method, comprising: obtaining, by a switch, a traffic control information for each service request, wherein the traffic control information includes sending time interval and sending data size; receiving, by the switch, a data packet, checking the data packet received, allocating a corresponding stream identifier and putting the packet data into a corresponding port receive buffer if the data packet meets a check requirement, wherein the checking comprises: checking whether destination address, source address, data packet type and packet length of the data packet meet the check requirement; putting the data packet into a packet buffer queue, wherein putting the data packet into the packet buffer queue is: reading the data packet from the port receive buffer, and putting the data packet into a packet buffer queue of a stream corresponding to the stream identifier; and polling, by the switch, the packet buffer queue, and taking a data packet from the packet buffer queue for sending according to the traffic control information; wherein the method further comprises: generating, by a node server with a centralized control function in a novel network, the check requirement for a service according to a service request protocol packet initiated by a terminal, wherein the novel network is consisted of a node server with a centralized control function, a switch connected with the node server and a terminal connected with the switch; and sending, by the node server, the check requirement for the service to a switch for traffic control on uplink; the method further comprises: generating a sending token according to the traffic control information, wherein the sending token contains the stream identifier; wherein, taking a data packet from the packet buffer queue for sending according to the traffic control information comprises: sequentially reading a data packet from the packet buffer queue of the stream corresponding to the stream identifier in the sending token, and putting the data packet into a port send buffer; and reading the data packet from the port send buffer and sending the data packet; wherein obtaining the traffic control information for each service request by a switch comprises: generating, by a node server with a centralized control function in a novel network, the traffic control information according to a service request protocol packet initiated by a terminal; and sending, by the node server, the traffic control information for a service to a switch for traffic control on uplink, wherein the switch for traffic control is a first switch of the terminal accessed; wherein, generating the traffic control information by the node server comprises: checking, by the node server, whether traffic resource remained on uplink and downlink for a service both meet the traffic resource required by the service, and if Yes, generating the traffic control information corresponding to the service; otherwise, rejecting the service request; before the checking, the method further comprises: maintaining, by the node server, an address information table, in which address occupation information in novel network, device description information and device resource description information are recorded, wherein the device resource description information includes a novel network address of an access network device connected to respective network port of a device and an uplink and downlink traffic count on each network port of the device; obtaining, by the node server, the uplink and downlink corresponding to the service according to the novel network address of the access network device connected to respective network port of the device in the address information table, and obtaining the traffic resource remained on the uplink and downlink for the service according to the uplink and downlink traffic count on each network port of the device; wherein, the maintaining comprises: initializing the address information table when the node server is powered on, wherein the initializing comprises: filling the novel network address of the node server in a blank item of the address information table, and marking the address occupation information as used; filling the device description information as the node server; and filling the device resource description information as port information of the node server: wherein, the maintaining further comprises: updating the address information table according to a setting of a downlink port to which each downlink protocol packet is to be oriented in an internal downlink protocol packet address table of the node server, wherein the updating comprises: filling an access network address to be allocated in each downlink protocol packet respectively into a blank item of the address information table, and marking the address occupation information as standby; wherein, the maintaining further comprises: updating the address information table according to a setting of a downlink port of other access device to which a port downlink protocol packet is to be oriented, wherein the updating comprises: filling an access network address to be allocated in each port downlink protocol packet respectively into a blank item of the address information table, and marking the address occupation information as standby; wherein, the maintaining further comprises: updating the address information table when the node server receives a network access command response sent by a switch, wherein the updating comprises: marking the address occupation information in an item corresponding to the novel network address of the switch as used; updating the device description information as the switch; and updating the device resource description information as port information of the switch and novel network address information of an access network device connected to a port of the switch; wherein, the maintaining further comprises: updating the address information table when the node server receives a network access command response sent by a terminal, wherein the updating comprises: marking the address occupation information in an item corresponding to the novel network address of the terminal as used; updating the device description information as the terminal; and updating the device resource description information as port information of the terminal and the novel network address of an access network device connected to a port of the terminal.