Data transmission control method and device

A technology of data transmission and control method, which is applied in the field of data transmission and can solve problems such as terminal inability to transmit, network resource occupation, etc.

Active Publication Date: 2014-10-29
SHENZHEN GONGJIN ELECTRONICS CO LTD
4 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] However, if one or more terminals in a subnet simultaneously download BitTorrent through the same router of the subnet, most or all of the network resourc...
View more

Abstract

The invention provides a data transmission control method and device which is suitable for the data transmission field. The data transmission control method comprises monitoring a BT (Bit Torrent) session establishment request for a specified source node; performing statistics on the number of BT sections established for the specified source node when the BT session establishment request is monitored; responding to the BT session establishment request and establishing a new BT section specified by the BT session establishment request if the statistical number of BT sections is smaller than a set threshold value; not responding to the BT session establishment request if the statistical number of BT sections is equal to the set threshold value. Accordingly the number of BT sections of every specified source node is limited by a router and accordingly network resources are reserved for the transmission of important data.

Application Domain

Data switching networks

Technology Topic

Data transmissionBit torrent +1

Image

  • Data transmission control method and device
  • Data transmission control method and device
  • Data transmission control method and device

Examples

  • Experimental program(1)

Example Embodiment

[0025] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention. In order to illustrate the technical solutions of the present invention, specific examples are used below to illustrate.
[0026] The method for controlling data transmission provided in the embodiment of the present invention and the device for controlling data transmission provided in the embodiment of the present invention are mutually applicable. Wherein, the data transmission control device is included in a router, and the router and the source node in the embodiment of the present invention belong to the same subnet. Wherein, the source node described in the embodiment of the present invention includes a designated source node. It should be noted that the router can be connected to the external network, for example, the router can be connected to the Ethernet, so that the source node in the subnet can perform data transmission with the external network through the router, for example, the source node can transmit data to the external network through the router. The server in the network uploads data, and another example is that the source node downloads data from the server in the external network through the router. It should be noted that the embodiment of the present invention does not limit the data (such as downloaded or uploaded data) transmitted between the source node and the external network through the router. For example, the data can be text files, audio files, video files, applications and more.
[0027] For the control method of data transmission provided by the embodiment of the present invention, see figure 1; figure 1 The working flow of the data transmission control method provided by the embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0028] like figure 1 As shown, the data transmission control method includes step S1, step S2, step S3 and step S4.
[0029] Step S1, monitoring the bitstream BT session establishment request for the specified source node.
[0030] In the embodiment of the present invention, if there is a subnet that needs to limit the number of sessions, the source node in the subnet is used as the designated source node. In addition, if it is necessary to limit the number of sessions of one or more source nodes in a certain subnet, the source node is also used as the designated source node.
[0031] In the embodiment of the present invention, the device for controlling data transmission of the router maintains a monitoring state in real time, and the router can monitor as long as each source node in the subnet where the router is located sends a request to the router.
[0032] Specifically, if the user wishes to establish a BT session between a specified source node (one of the source nodes) and a node in the external network, the specified source node can be triggered to generate a BT session establishment request, and the specified source node sends a BT session establishment request to the subnet The router sends the BT session establishment request. It should be noted that the source node is an electronic terminal; the electronic terminal is composed of electronic components such as integrated circuits, transistors, and electron tubes, which have one or more functions through electronic technology or software technology; with the development of electronic terminals , already has electronic terminals such as smart TVs, desktop computers, smart appliances, and mobile terminals. The source node in the subnet is assigned one or more IP addresses belonging to the subnet; preferably, the number of IP addresses assigned to the source node is determined according to the number of network interfaces the source node has. Similarly, the node of the external network is also an electronic terminal. The nodes of the external network also have one or more IP addresses; the nodes of the external network (using their IP addresses) perform data transmission with the source node of the subnet (using their IP addresses) through the Internet.
[0033] Correspondingly, the data transmission control device of the router will monitor the BT session establishment request.
[0034] figure 2 An optimized workflow of the method for controlling data transmission provided by the embodiment of the present invention is shown. For ease of description, only parts related to the embodiment of the present invention are shown.
[0035] Based on figure 1 The improvement of the shown workflow, as a preferred embodiment of the present invention, as figure 2 As shown, before the step of monitoring the BT session establishment request for the specified source node, the data transmission control method further includes steps S5, S6 and S7.
[0036] Step S5, filter out the source node according to the subnet mask, so as to filter out the specified source node;
[0037] Step S6, receiving the session request sent by the designated source node from the dynamic port;
[0038] Step S7, judging whether the received session request is a BT session establishment request.
[0039] In this preferred embodiment, the router may have multiple IPs at the same time, and each IP is in a different subnet. Furthermore, the router can realize data transmission between different subnets and the external network.
[0040] In this preferred embodiment, for a subnet that needs to limit the number of sessions, the source node in the subnet is used as the designated source node.
[0041] Furthermore, in step S5, when the data transmission control device of the router receives a session request sent by a certain source node in a certain subnet, it first judges whether the source node belongs to a subnet that needs to limit the number of sessions, and the specific judgment method It uses the subnet mask to filter out the specified source nodes that belong to the subnet that needs to limit the number of sessions.
[0042] Furthermore, in step S6, for the operating system installed on the electronic terminal (designated source node), determine the dynamic port of the operating system; the dynamic port is a port that has not been designated by the operating system for specific services. Usually, when a designated source node needs to establish a BT session, it establishes the BT session through a dynamic port, for example, first sends a BT session establishment request to a router through a dynamic port. Correspondingly, when there is a requirement to limit the BT session, in order to save the time of searching the port and improve the search speed, the control device of the data transmission of the router directly screens the session request for the request sent by the specified source node from the dynamic port find.
[0043] Furthermore, in step S7, a matching search for the BT session establishment request is further performed on the session request sent by the designated source node from the dynamic port. If a BT session establishment request is found in a match, it means that the BT session establishment request sent by the specified source node has been monitored.
[0044] Step S2, counting the number of BT sessions established for the specified source node when the BT session establishment request is detected.
[0045]In the embodiment of the present invention, in order to limit the number of BT sessions established for the specified source node in the subnet; each time the BT session establishment request sent by the specified source node is monitored, a statistics will be carried out, and statistics have been made for the specified The number of BT sessions established by the source node.
[0046] Further, it is determined to execute step S3 or step S4 according to whether the counted number of BT sessions is smaller than the set threshold. It should be noted that the set threshold is: the maximum number of BT sessions that can only be established for the specified source node in the subnet.
[0047] image 3 Another optimized workflow of the data transmission control method provided by the embodiment of the present invention is shown. For ease of description, only parts related to the embodiment of the present invention are shown.
[0048] Based on figure 1 The improvement of the shown workflow, as a preferred embodiment of the present invention, as image 3 As shown, the step of counting the number of BT sessions established for the specified source node specifically includes step S21, step S22 and step S23.
[0049] Step S21 , matching and filtering the source IP addresses in the five-tuple with the IP address of the designated source node, and matching and filtering out a session corresponding to the designated source node.
[0050] In this preferred embodiment, the router correspondingly records a five-tuple for each established session, including source IP address, source port, destination IP address, destination port and transport layer protocol number.
[0051] Using the IP address of the specified source node, the source IP address in the recorded five-tuple is matched and searched to find out the session corresponding to the IP address of the specified source node, if the IP address corresponding to the specified source node is found For the session corresponding to the address, go to step S22.
[0052] Step S22, filtering out the BT conversations from the matching filtered conversations.
[0053] In this preferred embodiment, for the session corresponding to the IP address of the specified source node, step S22 is executed to find out the BT session through further matching.
[0054] Step S23, determine the number of BT sessions screened out, and use the determined number as the number of BT sessions.
[0055] In this preferred embodiment, if step S22 is performed to find BT sessions, the number of found BT sessions is counted, and the counted number is taken as the number of BT sessions established for the specified source node.
[0056] Step S3, if the counted number of BT sessions is less than the set threshold, respond to the BT session establishment request and create a new BT session specified in the BT session establishment request.
[0057] Step S4, if the counted number of BT sessions is equal to the set threshold, then do not respond to the BT session establishment request.
[0058] In the embodiment of the present invention, in actual situations, for different designated source nodes in the subnet, the amount of important data that needs to be transmitted through the router is different. When transmitting important data through the router, its transmission of important data Timeliness requirements are also different; therefore, the embodiment of the present invention sets thresholds as required for different specified source nodes.
[0059] Furthermore, the data transmission control device in the router will count the number of BT sessions established for the designated source node every time it monitors a BT session establishment request sent by a designated source node.
[0060] Then, judge whether the number of BT sessions counted is less than the set threshold, if less than, then respond to the BT session establishment request this time, and create a new BT session for the specified source node, specifically, the new BT session is : the BT session between the specified source node and the node (node ​​in the external network) specified in the BT session establishment request; thus, after responding to this BT session establishment request and creating a new BT session, The number of BT sessions established for the specified source node is incremented by 1.
[0061] However, it is determined that the counted number of BT sessions is equal to the set threshold, that is, when a BT session establishment request sent by a specified source node is received this time, the number of BT sessions established for the specified source node reaches the set threshold , then execute step S4, do not respond to the BT session establishment request, and do not create more BT sessions for the designated source node.
[0062] As a specific implementation of the present invention, a specific workflow of the data transmission control method provided by the embodiment of the present invention is given. For the convenience of description, only the parts related to the embodiment of the present invention are shown; the specific workflow Include the following steps:
[0063] Step A1, receiving the request sent by the source node, judging whether the request is a session establishment request, if not, performing a normal response according to the prior art, and if yes, performing step A2;
[0064] Step A2, judging whether the source node that sent the request in step A1 is the designated source node, if not, respond normally according to the prior art, if yes, execute step A3;
[0065] Step A3, judging whether the session establishment request sent by the designated source node in step A1 is a BT session establishment request, if not, respond normally according to the prior art, if yes, then perform step A4;
[0066] Step A4, the data transmission control device of the router counts the number of BT sessions established in the subnet (the subnet includes one or more designated source nodes). If the number of established BT sessions is equal to the total session limit threshold (the preset upper limit of the number of BT sessions that the router can carry), that is, the number of established BT sessions reaches the upper limit of the number of BT sessions allocated for this subnet , do not respond to the BT session establishment request sent by the specified source node, and do not create more BT sessions for any specified source node in the subnet. If the number of established BT sessions is less than the total session limit threshold, then perform step A5;
[0067] Step A5, judge whether the BT session establishment request sent by the designated source node belongs to an illegal request (check whether the rule of this BT session establishment request received is legal), judge whether the BT session requested by the designated source node to be established is legal (for example, check whether it is Establish a BT session with which node on the external network, whether the node carries illegal intrusion information, and for example, whether the node needs to specify the source node corresponding to the illegal request), if the BT session establishment request is illegal or the BT session requested to be established is illegal, Then refuse to respond to the BT session establishment request sent by the specified source node, and if the BT session establishment request is legal and the BT session requested to be established is legal, specify step A6.
[0068] Step A6, count the number of BT sessions that have been established for the designated source node (the designated source node that sends the BT session establishment request), if the counted number of BT sessions is less than the set threshold, then respond to the BT session establishment request and create a new one The BT session establishment request specifies the BT session; if the counted BT session number is equal to the set threshold, then the BT session establishment request is not responded to, and the specified source node (sends the specified BT session establishment request) source node) to create more BT sessions.
[0069] Based on figure 1 , figure 2 or image 3 As an improvement of the shown workflow, as a preferred embodiment of the present invention, the method for controlling data transmission further includes:
[0070] When the session limiting instruction is detected, one or more BT sessions are screened out from the BT sessions established for the designated source node, and the number of the screened out BT sessions is less than or equal to the defined threshold.
[0071] In this preferred embodiment, according to the limited requirements of the router for the BT session established in the subnet, if more important data needs to be transmitted through the router, the router needs to release certain network bandwidth resources as a way to release network bandwidth. One way to reduce resources is to disconnect some sessions, so as to revoke some sessions and reduce the number of sessions established through the router. As a specific way to release network bandwidth resources, it is to reset the upper limit of the number of BT sessions that can be carried by each designated source node, and adjust the upper limit of the number of BT sessions that can carry the designated source node to a limited threshold. It should be noted that different thresholds are set for different specified source nodes, and for a specific specified source node, the defined threshold set for it may be greater than the set threshold (in this embodiment of the present invention, the specified source node The preset upper limit for establishing BT sessions) can establish more BT sessions for the specified source nodes; The defined threshold is much smaller than the set threshold (the upper limit preset for establishing a BT session by the designated source node in the embodiment of the present invention). Of course, it is more likely to reduce the number of BT sessions established for each specified source node in the subnet as a whole, that is, for each specified source node in the subnet, the number of BT sessions allocated to it will be reduced from the set threshold to the threshold limit.
[0072] Furthermore, if a session limit instruction is detected, it means that more important data needs to be transmitted through the router, and the router needs to release a certain amount of network bandwidth resources. BT session; preferably, filter according to the priority of the BT session that has been established for the specified source node, and filter out one or more important BT sessions; level to filter out BT sessions that are less than or equal to the defined threshold. As a specific screening method, for determining the priority of the BT session, the amount of data currently transmitted by each BT session of the specified source node needs to be used as a reference.
[0073] Based on a further improvement of this preferred embodiment, as a specific implementation of this preferred embodiment, the step of screening out one or more BT sessions from the BT sessions established for the specified source node is specifically: screening BT sessions whose outgoing session traffic is less than the limited traffic.
[0074] In this specific embodiment, for each BT session that has been established for the specified source node, session flow control needs to be performed to avoid that a single BT session takes up too much bandwidth; When the number of BT sessions is reduced to the limited threshold, the session traffic of the BT sessions should also be considered during the process of screening the reserved BT sessions to ensure that the session traffic of the filtered BT sessions will not exceed the limited traffic. In this way, more network resources (such as network traffic) can be further saved for the router to ensure normal transmission of important data.
[0075] Those of ordinary skill in the art can also understand that all or part of the steps in the method of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, so The storage medium mentioned above includes ROM/RAM, magnetic disk, optical disk, etc.
[0076] It should be noted that the device for controlling data transmission provided in the embodiment of the present invention is applicable to the method for controlling data transmission provided in the embodiment of the present invention.
[0077] Figure 4 The composition structure of the device for controlling data transmission provided by the embodiment of the present invention is shown, and for the convenience of description, only the parts related to the embodiment of the present invention are shown.
[0078] The data transmission control device provided by this embodiment, such as Figure 4 As shown, the control device for the data transmission includes:
[0079] A monitoring unit 61, configured to monitor a bit stream BT session establishment request for a specified source node;
[0080] A statistical unit 62, configured to count the number of BT sessions established for the specified source node when the BT session establishment request is monitored;
[0081] A response unit 63, configured to respond to the BT session establishment request and create a new BT session establishment request specified by the BT session establishment request if the counted number of BT sessions is less than the set threshold;
[0082] The non-response unit 64 is configured to not respond to the BT session establishment request if the counted number of BT sessions is equal to the set threshold.
[0083] Figure 5 An optimized structure of the device for controlling data transmission provided by the embodiment of the present invention is shown. For ease of description, only parts related to the embodiment of the present invention are shown. Based on Figure 4 The further improvement of the composition structure of the control device of the shown data transmission, in a preferred implementation of the present invention, as Figure 5 As shown, the control device for the data transmission also includes:
[0084] The filtering unit 65 is used to filter out the source node according to the subnet mask, so as to filter out the specified source node;
[0085] A receiving unit 66, configured to receive the session request sent by the specified source node from the dynamic port;
[0086] A judging unit 67, configured to judge whether the received session request is a BT session establishment request.
[0087] Image 6 A specific structure of the statistical unit 62 is provided, and for ease of description, only the parts related to the embodiment of the present invention are shown. Based on the further improvement of the composition structure of the data transmission control device provided by the embodiment of the present invention, in a preferred implementation of the present invention, such as Image 6 As shown, the statistical unit 62 includes:
[0088] A matching and filtering unit 621, configured to match and filter the source IP address in the five-tuple with the IP address of the specified source node, and match and filter out the session corresponding to the specified source node;
[0089] A screening unit 622, configured to filter out the BT session from the sessions filtered out by matching;
[0090] The determining unit 623 is configured to determine the number of the filtered BT sessions, and use the determined number as the number of BT sessions.
[0091] Figure 7 Another optimized structure of the device for controlling data transmission provided by the embodiment of the present invention is shown. For ease of description, only parts related to the embodiment of the present invention are shown. Based on the further improvement of the composition structure of the data transmission control device provided by the embodiment of the present invention, in a preferred implementation of the present invention, such as Figure 7 As shown, the control device for the data transmission also includes:
[0092] The limiting unit 68 is configured to filter out one or more BT sessions from the BT sessions established for the specified source node when listening to the session limiting instruction, and the number of the filtered BT sessions is less than or equal to the limited threshold.
[0093] based on Image 6 The provided further improvement of the composition structure of the data transmission control device, in a preferred implementation of the present invention, the limiting unit 68 is also used to: filter out BT sessions whose session traffic is less than the limited traffic.
[0094] Those skilled in the art can understand that each unit included in the data transmission control device provided by the embodiment of the present invention is only divided according to functional logic, but is not limited to the above-mentioned division, as long as the corresponding functions can be realized; in addition , the specific names of each functional unit are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present invention.
[0095] An embodiment of the present invention also provides a router, where the router includes the above-mentioned device for controlling data transmission.
[0096] The above content is a further detailed description of the present invention in conjunction with specific preferred embodiments, and it cannot be assumed that the specific implementation of the present invention is limited to these descriptions. For those of ordinary skill in the technical field to which the present invention belongs, several equivalent substitutions or obvious modifications are made without departing from the concept of the present invention, and the performance or use is the same, all should be regarded as belonging to the present invention by the submitted claims The scope of patent protection determined by the book.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products