CN114598647A - Data processing method, system and storage medium - Google Patents

Data processing method, system and storage medium Download PDF

Info

Publication number
CN114598647A
CN114598647A CN202210114705.0A CN202210114705A CN114598647A CN 114598647 A CN114598647 A CN 114598647A CN 202210114705 A CN202210114705 A CN 202210114705A CN 114598647 A CN114598647 A CN 114598647A
Authority
CN
China
Prior art keywords
port
data
traffic data
switch
traffic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210114705.0A
Other languages
Chinese (zh)
Inventor
马红卫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba China Co Ltd
Original Assignee
Alibaba China Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba China Co Ltd filed Critical Alibaba China Co Ltd
Priority to CN202210114705.0A priority Critical patent/CN114598647A/en
Publication of CN114598647A publication Critical patent/CN114598647A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2416Real-time traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/29Flow control; Congestion control using a combination of thresholds

Landscapes

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

Abstract

The invention discloses a data processing method, a data processing system and a storage medium. Wherein, the method comprises the following steps: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port. The invention solves the technical problem of low efficiency of flow scheduling caused by the fact that the flow scheduling cannot be carried out accurately.

Description

Data processing method, system and storage medium
Technical Field
The invention relates to the fields of internet technology and data processing, in particular to a data processing method, a data processing system and a storage medium.
Background
At present, when traffic scheduling is performed, the traffic is usually scheduled by depending on a Domain Name System (DNS for short), but the traffic scheduling cannot be performed particularly accurately, the traffic scheduled to a corresponding node is small, and packet port traffic cannot run up — bandwidth is wasted; the traffic scheduled to the corresponding node is large, and then the packet port traffic will go beyond when the short-time traffic bursts, which affects the service quality, thereby having the technical problem of low efficiency of traffic scheduling.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
Embodiments of the present invention provide a data processing method, system, and storage medium, to at least solve the technical problem of low efficiency of traffic scheduling due to the inability to perform particularly accurate traffic scheduling.
According to an aspect of an embodiment of the present invention, there is provided a data processing method including: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
Optionally, the method further comprises: acquiring preset flow data of a switch; a target flow threshold is determined based on the predetermined flow data.
Optionally, predetermined traffic data of the switch is obtained, and the method includes: acquiring first type preset flow data corresponding to a first port of a switch; acquiring second type preset flow data corresponding to a second port of the switch; determining a target flow threshold based on the predetermined flow data, the method comprising: a target flow threshold is determined based on the first type of predetermined flow data and the second type of predetermined flow data.
Optionally, the scheduled traffic data to be scheduled is determined based on the current traffic data and the target traffic threshold, and the method includes: in response to the current traffic data exceeding the target traffic threshold, first scheduled traffic data that needs to be scheduled to the second port is determined.
Optionally, the method further includes forwarding the scheduled traffic data to a switch, and the method includes: and forwarding the first data packet to the second port through the server, wherein the first data packet is obtained by adding a first identifier to the first scheduling traffic data.
Optionally, the first identifier of the first packet is identified by the switch, and the first packet is forwarded to the second port by the switch, so as to reduce the current traffic data of the first port.
Optionally, the scheduled traffic data to be scheduled is determined based on the current traffic data and the target traffic threshold, and the method includes: in response to the current traffic data not exceeding the target traffic threshold, second scheduled traffic data that needs to be scheduled to the first port is determined.
Optionally, the method further includes forwarding the scheduled traffic data to a switch, and the method includes: and forwarding a second data packet to the first port through the server, wherein the second data packet is obtained by adding a second identifier to the second scheduling traffic data.
Optionally, the second identifier of the second packet is identified by the switch, and the second packet is forwarded to the first port by the switch, so as to increase the current traffic data of the first port.
Optionally, the method further comprises: and determining the corresponding virtual resource based on the adjusted current flow data.
According to an aspect of an embodiment of the present invention, there is provided a data processing method from a server side, including: obtaining scheduling traffic data to be scheduled, wherein the scheduling traffic data is obtained by current traffic data of a first port of a switch in a content distribution network and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
According to another aspect of the embodiments of the present invention, there is also provided a data processing apparatus, including: a first obtaining unit, configured to obtain current traffic data of a first port of an exchange in a content distribution network; the determining unit is used for determining scheduling traffic data needing to be scheduled based on the current traffic data and a target traffic threshold; the first forwarding unit is configured to forward the scheduled traffic data to the switch, where the scheduled traffic data is used to enable the second port or the first port of the switch to obtain the scheduled traffic data, so as to adjust current traffic data of the first port.
According to another aspect of the embodiments of the present invention, there is also provided, from a server side, a data processing apparatus including: a second obtaining unit, configured to obtain scheduling traffic data to be scheduled, where the scheduling traffic data is obtained from current traffic data of a first port of a switch in a content distribution network and a target traffic threshold; and the second forwarding unit is used for forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
The embodiment of the invention also provides a computer readable storage medium. The computer readable storage medium includes a stored program, wherein the program, when executed by a processor, controls an apparatus in which the computer readable storage medium is located to perform the method of data processing of an embodiment of the present disclosure.
The embodiment of the invention also provides a processor. The processor is used for running a program, wherein the program executes the data processing method of the embodiment of the invention when running.
An embodiment of the present invention further provides a data processing system, where the system may include: a processor; a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
In the embodiment of the invention, a new traffic forwarding mode is adopted, the scheduled traffic data to be scheduled is determined based on the current traffic data and the target traffic threshold, and then the scheduled traffic data is forwarded to the switch to adjust the current traffic data, so that the purpose of smoothing traffic scheduling is achieved, the technical effect of improving the efficiency of traffic scheduling is achieved, and the technical problem of low efficiency of traffic scheduling caused by incapability of performing particularly accurate traffic scheduling is solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a data processing method according to an embodiment of the present disclosure;
FIG. 2 is a flow diagram of a method of data processing according to an embodiment of the present invention;
FIG. 3 is a flow chart of a data processing method provided from the server side according to an embodiment of the present invention;
fig. 4 is a schematic diagram of a CDN providing a service to the outside according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of CDN service for an individual packet port node according to an embodiment of the disclosure;
fig. 6 is an architecture diagram of an egress scheduling approach for optimizing CDN charging according to an embodiment of the present disclosure;
FIG. 7 is a schematic diagram of a data processing apparatus according to the present embodiment;
fig. 8 is a schematic diagram of a data processing apparatus provided from the server side according to the present embodiment;
fig. 9 is a block diagram of a computer terminal according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, some terms or terms appearing in the description of the embodiments of the present application are applicable to the following explanations:
a Content Delivery Network (CDN) has a basic idea of avoiding bottlenecks and links on the internet that may affect data transmission speed and stability as much as possible, so that Content transmission is faster and more stable. By arranging a layer of intelligent virtual network on the basis of the existing internet, which is formed by node servers at each position of the network, the CDN system can redirect the request of a user to a service node closest to the user in real time according to the network flow, the connection of each node, the load condition, the distance to the user, the response time and other comprehensive information;
a domain name system, which is a distributed database on the Internet as a mapping between domain names and Internet Protocol (IP) addresses, and enables users to access the Internet more conveniently without remembering IP strings that can be read directly by machines;
charging for 95%, which may be charging for 95% of the bandwidth, and not charging for the highest 5%;
packet port charging, which requires operator payment regardless of use;
log analysis, which can be a module for performing traffic analysis according to the CDN access log;
the routing policy may be a policy for making traffic leave the switch.
Example 1
There is also provided, in accordance with an embodiment of the present invention, a method embodiment of data processing, it being noted that the steps illustrated in the flowchart of the figure may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than that presented herein.
The method provided by the first embodiment of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Fig. 1 shows a hardware configuration block diagram of a computer terminal (or mobile device) for implementing a data processing method. As shown in fig. 1, the computer terminal 10 (or mobile device 10) may include one or more processors (shown as 102a, 102b, … …, 102n in the figures) which may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA, a memory 104 for storing data, and a transmission module 106 for communication functions. Besides, the method can also comprise the following steps: a display, an input/output interface (I/O interface), a Universal Serial BUS (USB) port (which may be included as one of the ports of the BUS), a network interface, a power source, and/or a camera. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
It should be noted that the one or more processors and/or other data processing circuitry described above may be referred to generally herein as "data processing circuitry". The data processing circuitry may be embodied in whole or in part in software, hardware, firmware, or any combination thereof. Further, the data processing circuit may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the computer terminal 10 (or mobile device). As referred to in the embodiments of the application, the data processing circuit acts as a processor control (e.g. selection of a variable resistance termination path connected to the interface).
The memory 104 may be used to store software programs and modules of application software, such as program instructions/data storage devices corresponding to the data processing method in the embodiment of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, implementing the data processing method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission device 106 can be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the computer terminal 10 (or mobile device).
Fig. 1 shows a block diagram of a hardware structure, which may be taken as an exemplary block diagram of not only the computer terminal 10 (or the mobile device) described above, but also an exemplary block diagram of the server described above, and in an alternative embodiment, fig. 2 shows a block diagram of a computer terminal 10 (or a mobile device) described above in fig. 1 as an embodiment.
In the above operating environment, the present application provides a method of data processing as shown in fig. 2.
Fig. 2 is a flow chart of a data processing method according to an embodiment of the present invention. As shown in fig. 3, the data processing method may include the steps of:
step S202, current flow data of a first port of a switch in the content distribution network is obtained.
In the technical solution provided in the above step S202 of the present invention, the packet port charging is a charging method that requires paying for the operator regardless of whether the user is used, the 95 port charging is a charging method that charges 95% of the traffic of the bandwidth, the highest 5% of the traffic is not charged, and the 95 charging port and the packet port are two charging logics when the bandwidth is leased, and both of the charging logics form a new bandwidth combination method in the application.
In this embodiment, current traffic data of a first port of a switch in a content delivery network is obtained, for example, packet port traffic of a switch in a Content Delivery Network (CDN) is obtained.
In this embodiment, the current traffic data of the first port may be packet port traffic, and when the switch traffic rises or falls, a policy may be further formulated by acquiring the packet port traffic.
In this embodiment, optionally, predetermined traffic data of the switch is obtained, for example, the log (analysis) module counts traffic of 2 egress types of the switch, where the 2 egress types may be a packet port type and a 95 charging port type, and then determines a target traffic threshold based on the predetermined data, for example, the policy center module performs policy making on a corresponding threshold according to the uploaded switch traffic details, where the log (analysis) module may obtain traffic details of each advanced member (Very Important Person, abbreviated as VIP) for subsequent policy production, and may also obtain traffic details of the packet port type and the 95 charging port type of the switch for subsequent policy production.
Step S204, based on the current flow data and the target flow threshold, determining the scheduling flow data needing to be scheduled.
In the technical solution provided by step S204 of the present invention, the target traffic threshold may be a value determined according to the total traffic of the packet ports.
In this embodiment, scheduling traffic data that needs to be scheduled may be determined based on the current traffic data and the target traffic threshold, for example, when the total traffic of packet ports exceeds the set threshold, the policy center calculates the traffic that needs to be scheduled to the 95 charging port; and when the total flow of the packet ports is smaller than a set threshold value, the strategy center calculates the flow needing to be adjusted to the packet ports.
In this embodiment, it may be determined that first scheduled traffic data needs to be scheduled to a second port in response to the current traffic data exceeding a target traffic threshold, where the second port may be a 95 charging port, and the first scheduled traffic data may be 95 charging port traffic that needs to be scheduled, or it may be determined that second scheduled traffic data needs to be scheduled to a first port in response to the current traffic data not exceeding the target traffic threshold, where the first port may be a packet port, and the second scheduled traffic data may be packet port traffic that needs to be scheduled.
Step S206, forwarding the scheduled traffic data to the switch, where the scheduled traffic data is used to enable the second port or the first port of the switch to obtain the scheduled traffic data, so as to adjust the current traffic data of the first port.
In the technical solution provided in step S206 of the present invention, the scheduling traffic data may be forwarded to the switch, for example, when the packet port traffic exceeds the threshold, the traffic to be transferred to the 95 th charging port is calculated, the policy center calculates a new policy to be transferred to the 95 th charging according to the VIP traffic and the original policy, and transfers the policy to the execution module, the execution module issues the policy to all servers, and the servers forward the data packet to the switch to adjust the current traffic data of the packet port.
In this embodiment, the scheduled traffic data may be used to enable the second port or the first port of the switch to obtain the scheduled traffic data, so as to adjust the current traffic data of the first port, for example, when the current traffic data of the first port (packet port) of the switch exceeds a target traffic threshold, the scheduled traffic data that needs to be scheduled to the second port (95 charging port) is calculated, and after the switch receives a data packet corresponding to the scheduled traffic data, the second port (95 charging port) calls the scheduled traffic data from the first port (packet port), so as to decrease the current traffic data of the first port.
Through the above steps S202 to S206 of the present application, current traffic data of a first port of an exchange in a content distribution network is acquired; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; the method includes the steps of forwarding scheduled traffic data to a switch, wherein the scheduled traffic data is used for enabling a second port or a first port of the switch to acquire the scheduled traffic data so as to adjust current traffic data of the first port, that is, in the application, a new traffic forwarding mode is defined, the scheduled traffic data to be scheduled is determined based on the current traffic data and a target traffic threshold, and then the scheduled traffic data is forwarded to the switch so as to adjust the current traffic data, so that traffic scheduling is smoother, efficiency of traffic scheduling is improved, the technical problem of low efficiency of traffic scheduling is solved, and the technical effect of improving efficiency of traffic scheduling is achieved.
The above method of this embodiment is further described below.
As an optional implementation manner, in step S202, current traffic data of a first port of a switch in the content distribution network is obtained, and the method further includes: acquiring preset flow data of a switch; a target flow threshold is determined based on the predetermined flow data.
In this embodiment, predetermined traffic data of the switch is obtained, for example, the logging (analyzing) module counts the traffic sizes of 2 egress types of the switch, where the 2 egress types may be a packet port type and a 95 charging egress type.
In this embodiment, the target traffic threshold is determined based on the predetermined traffic data, for example, after the logging (analysis) module uploads the data to the policy center, the policy center module performs policy making on the corresponding threshold according to the uploaded switch traffic details.
As an optional implementation, obtaining the predetermined traffic data of the switch includes: acquiring first type preset flow data corresponding to a first port of a switch; acquiring second type preset flow data corresponding to a second port of the switch; determining a target flow threshold based on the predetermined flow data, including: a target flow threshold is determined based on the first type of predetermined flow data and the second type of predetermined flow data.
In this embodiment, the first type of predetermined traffic data may be packet port type traffic data and the second type of predetermined traffic data may be 95 billable port type traffic data.
In this embodiment, the target traffic threshold may be determined based on the first type of predetermined traffic data and the second type of predetermined traffic data, for example, after the logging (analysis) module uploads the data to the policy center, the policy center performs policy making according to the uploaded switch traffic details to determine the target traffic threshold.
As an optional implementation manner, in step S204, scheduled traffic data to be scheduled is determined based on the current traffic data and the target traffic threshold, and the method includes: in response to the current traffic data exceeding the target traffic threshold, first scheduled traffic data that needs to be scheduled to the second port is determined.
In this embodiment, the first scheduled traffic data that needs to be scheduled to the second port may be determined in response to the current traffic data exceeding the target traffic threshold, for example, when packet port traffic exceeding the threshold is detected, a signal indicating this information may be generated, and in response to this signal, the traffic that needs to be scheduled to the 95 th billed port may be calculated.
For example, when it is detected that the current traffic data of the first port (packet port) of the switch exceeds the target traffic threshold, the scheduling traffic data that needs to fall to the second port (95 charging port) is calculated, and after the switch receives the data packet corresponding to the scheduling traffic data, the second port (95 charging port) calls the scheduling traffic data from the first port (packet port), so that the current traffic data of the first port is reduced, and the purpose that the current traffic data of the first port (packet port) of the switch falls below the target traffic threshold is achieved, so that traffic scheduling is smoother, the efficiency of scheduling traffic is improved, and the technical effect of improving the efficiency of scheduling traffic is achieved.
As an optional implementation manner, in step S206, the dispatch traffic data is forwarded to the switch, and the method includes: and forwarding the first data packet to the second port through the server, wherein the first data packet is obtained by adding a first identifier to the first scheduling traffic data.
In this embodiment, the first data packet may be forwarded to the second port through the server, for example, when the packet port traffic exceeds a threshold, the traffic of the packet port that needs to be adjusted to 95 charging is calculated, the policy center calculates a new policy that needs to be adjusted to 95 charging according to the member (VIP for short) traffic and the original policy, and transfers the policy to the execution module, assuming that the VIP that needs to be adjusted is VIP-a1, the execution module issues the policy to all servers, the servers mark exit tags 1 on the data packets whose source IP is VIP-a1, and forward the data packets to the 95 charging port, and the exit tags 1 are used to indicate that the data packets are forwarded to the 95 charging port.
In this embodiment, the second identifier is used to indicate an egress tag 1 for forwarding the data packet to a 95 charging port, where the egress tag may be represented by 0, and is intended to distinguish a forwarding policy of the data packet by the server, and the representation form is not limited herein.
As an alternative embodiment, the first identifier of the first packet is recognized by the switch, and the first packet is forwarded to the second port by the switch, so as to reduce the current traffic data of the first port.
In this embodiment, a field of an egress label is added to a packet leaving the server, the switch recognizes this field and forwards the packet according to a predetermined rule, and 2 policy models are configured under the switch to perform matching forwarding on the label of the packet (the field of the egress label).
In this embodiment, the switch receives the corresponding data packet, performs hash calculation, and sends the calculated data packet to a certain 95 charging port, so that the port flow of the switch packet is reduced below the threshold.
As an alternative implementation, in step S204, scheduled traffic data to be scheduled is determined based on the current traffic data and a target traffic threshold, and the method includes: in response to the current traffic data not exceeding the target traffic threshold, second scheduled traffic data that needs to be scheduled to the first port is determined.
In this embodiment, in response to the current traffic datcA not exceeding the target traffic threshold, second scheduled traffic datcA that needs to be scheduled to the first port is determined, for example, when packet port traffic is detected to have been less than the threshold, cA signal representing this information is generated, and in response to this signal, the policy center selects an appropriate VIP according to the record, modifies the forwarding policy of the VIP to the packet-away port charging, assuming that the VIP that needs to be adjusted is VIP- cA.
As an optional implementation manner, in step S206, the dispatch traffic data is forwarded to the switch, and the method includes: and forwarding a second data packet to the first port through the server, wherein the second data packet is obtained by adding a second identifier to the second scheduling traffic data.
In this embodiment, the second datcA packet may be forwarded to the first port through the server, for example, when the flow of the packet port is smaller than the threshold, the policy center selects an appropriate VIP according to the record, modifies the forwarding policy of the VIP to charging the packet-passing port, assumes that the VIP to be adjusted is VIP- cA, the execution module issues the policy to all servers, and the server forwarding module posts an exit tag 0 on the datcA packet whose source IP is VIP- cA according to the policy, and forwards the datcA packet to the packet port, where the exit tag 0 is used to indicate that the datcA packet is forwarded to the packet port.
In this embodiment, the second identifier is used to indicate an egress tag 0 for forwarding the data packet to the packet port, where the egress tag may be represented by 0, and is intended to distinguish a forwarding policy of the data packet by the server, and the representation form is not limited herein.
As an alternative, the second identifier of the second packet is recognized by the switch, and the second packet is forwarded to the first port by the switch, so as to increase the current traffic data of the first port.
In this embodiment, a field of an egress label is added to a packet leaving the server, and the switch recognizes this field, and sends the packet to a packet port after receiving a corresponding packet through hash calculation, so that the flow rate of the packet port of the switch increases.
As an optional implementation, the method further comprises: and determining the corresponding virtual resource based on the adjusted current flow data.
In this embodiment, the virtual resource may be a fee that needs to be delivered to the operator.
In this embodiment, the corresponding virtual resource is determined based on the adjusted current traffic data, for example, the CDN must rent the bandwidth of the operator when providing the service to the outside, and the cost to be delivered to the operator may be determined based on the adjusted current traffic.
In the embodiment of the disclosure, the predetermined flow data of the switch is obtained; determining a target flow threshold based on the predetermined flow data; determining first scheduling traffic data needing to be scheduled to a second port in response to the current traffic data exceeding a target traffic threshold; determining second scheduling traffic data needing to be scheduled to the first port in response to the current traffic data not exceeding the target traffic threshold; the corresponding virtual resource is determined based on the adjusted current flow data, that is, the scheduling flow data to be scheduled is determined based on the current flow data and the target flow threshold value, and then the scheduling flow data is forwarded to the switch to adjust the current flow data, so that the flow scheduling is smoother, the efficiency of scheduling flow is improved, the technical problem of low efficiency of scheduling flow is solved, and the technical effect of improving the efficiency of scheduling flow is achieved.
The embodiment of the invention also provides a data processing method from the server side.
Fig. 3 is a flowchart of a data processing method provided from the server side according to an embodiment of the present invention. As shown in fig. 4, the method may include the steps of:
step S302, obtaining scheduling traffic data needing to be scheduled, wherein the scheduling traffic data is obtained by current traffic data of a first port of a switch in a content distribution network and a target traffic threshold.
In the technical solution provided in step S302 of the present invention, the server may obtain scheduling traffic data that needs to be scheduled, for example, the server obtains the scheduling traffic data that needs to be forwarded to the 95 charging port or the packet port according to the current traffic data of the packet port of the switch in the CDN and the target traffic threshold.
Step S304, the scheduled traffic data is forwarded to the switch, where the scheduled traffic data is used to enable the second port or the first port of the switch to obtain the scheduled traffic data, so as to adjust the current traffic data of the first port.
In the technical solution provided in step S304 of the present invention, the server may forward the scheduled traffic data to the switch, for example, after the server obtains the scheduled traffic data that needs to be forwarded to the 95 charging port or the packet port according to the current traffic data of the packet port of the switch in the CDN and the target traffic threshold, the server marks an exit label on the data packet and forwards the data packet to the switch, so as to adjust the current traffic data of the packet port.
Through the steps S302 to S304 described above, scheduling traffic data to be scheduled is obtained, where the scheduling traffic data is obtained from current traffic data of a first port of an exchange in a content distribution network and a target traffic threshold; and forwarding the scheduled traffic data to the switch, wherein the scheduled traffic data is used for enabling a second port or a first port of the switch to acquire the scheduled traffic data so as to adjust the current traffic data of the first port, that is, the scheduled traffic data to be scheduled is determined based on the current traffic data and a target traffic threshold, and then the scheduled traffic data is forwarded to the switch so as to adjust the current traffic data, so that traffic scheduling is smoother, the efficiency of traffic scheduling is improved, the technical problem of low efficiency of traffic scheduling is solved, and the technical effect of improving the efficiency of traffic scheduling is achieved.
Preferred embodiments of the above-described method of this embodiment are further described below.
Fig. 4 is a schematic diagram of a CDN providing a service to the outside according to an embodiment of the present disclosure. As shown in fig. 4, the CDN must lease the bandwidth of the operator when providing a service to the outside, and there are various charging logics, mainly 95 charging and packet port charging, when leasing the bandwidth. The overall bandwidth use cost of the CDN can be reduced by using the flow of the packet port as much as possible, but the DNS scheduling cannot be used for carrying out particularly accurate flow scheduling, the flow scheduled to the corresponding node is small, the flow of the packet port cannot run away, and the bandwidth is wasted; the flow scheduled to the corresponding node is large, and then the packet port flow can be overflowed when a short-time flow burst occurs, so that the service quality is influenced.
Fig. 5 is a schematic diagram of CDN services for a single packet port node according to an embodiment of the present disclosure. As shown in fig. 5, in the charging mode of only packet ports under a node, there may be a problem that the processing quality is affected by insufficient traffic or too high traffic.
Fig. 6 is an architecture diagram of an egress scheduling manner for optimizing CDN charging according to an embodiment of the present disclosure. As shown in fig. 6, the log analysis module may function as: obtaining the traffic details of each VIP through the log analysis module 605 for subsequent policy production; and obtaining the flow details of the 2 charging type ports of the switch 601 through log analysis for subsequent policy production.
The packet format may be expressed as follows:
a source address (MAC) destination address (MAC) egress labels a source IP destination IP Payload (Payload).
The normal IPV4 data format may be expressed as follows:
the source MAC destination MAC exports a label source IP destination IP Payload.
In this architecture, packets leaving the server 602 will be added with a field for the egress label, which the switch 601 will recognize and then forward according to established rules.
The switch policy can be to configure 2 policy models under the switch, and match and forward the label (field of the egress label) of the packet. For example, exit tag 0: transferring the data packet to a packet port; exit label 1: the packet is forwarded to 95 for billing.
The flow is illustrated as follows:
when the switch 601 traffic rises:
1) the logging (analysis) module 605 counts the traffic volume per VIP per minute; counting the flow of 2 outlet types of the switch;
2) the logging (analysis) module 605 uploads the data to the policy center;
3) the policy center 604 makes a policy in detail according to the flow of the switch that is sent, and when the flow of the packet port exceeds a threshold value; calculating the flow (total flow of packet ports-threshold) needing to be adjusted to the 95 charging port;
4) the policy center 604 calculates a new policy for adjusting to 95 charging according to the VIP traffic and the original policy, and transmits the policy to the execution module 603, where it is assumed that the VIP to be adjusted is VIP-a1 and records the VIP;
5) the execution module 603 issues the policy to all servers 602, and the server forwarding module marks an exit tag 1 on a data packet with a source IP of VIP-a1 according to the policy and forwards the data packet to the switch;
6) the switch 601 receives the corresponding receipt packet, calculates the receipt packet through hash (hash), and sends the receipt packet to a certain 95 charging port;
7) the switch packet 601 port traffic slips below a threshold.
When switch traffic drops:
1) the logging (analysis) module 605 counts the traffic volume per VIP per minute; counting the flow of 2 outlet types of the switch;
2) the logging (analysis) module 605 uploads the data to the policy center;
3) the policy center 604 makes a policy in detail according to the flow of the switch that is sent, and finds that the flow of the packet port is smaller than a threshold value;
4) selecting cA proper VIP according to the record, and modifying the forwarding strategy of the VIP into packet-passing port charging, wherein the VIP needing to be adjusted is assumed to be cA VIP-A;
5) the execution module 603 issues the policy to all servers 602, and the server forwarding module marks an exit tag 0 on cA datcA packet with cA source IP being VIP- cA according to the policy and forwards the datcA packet to the switch;
6) the switch 601 receives the corresponding receipt packet, calculates the hash and sends the calculated hash to a certain packet port;
7) the switch 601 packet port traffic goes up.
In the embodiment of the disclosure, a new forwarding mode is defined, which does not depend on a default route configured on a switch (the granularity of the default route is relatively coarse), and each server has a forwarding module, so that flow control is refined to a combination of a server and a VIP, so that traffic scheduling is smoother, the efficiency of traffic scheduling is improved, the technical problem of low efficiency of traffic scheduling is solved, and the technical effect of improving the efficiency of traffic scheduling is achieved.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
Through the above description of the embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but the former is a better implementation mode in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
Example 2
According to an embodiment of the present invention, there is also provided a data processing apparatus for implementing the data processing method shown in fig. 2.
Fig. 7 is a schematic diagram of a data processing apparatus according to the present embodiment. As shown in fig. 7, the data processing apparatus 700 may include: a first acquisition unit 701, a determination unit 702 and a first forwarding unit 703.
A first obtaining unit 701, configured to obtain current traffic data of a first port of an exchange in a content distribution network;
a determining unit 702, configured to determine scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold;
the first forwarding unit 703 is configured to forward the scheduled traffic data to the switch, where the scheduled traffic data is used to enable the second port or the first port of the switch to obtain the scheduled traffic data, so as to adjust the current traffic data of the first port.
Optionally, the first obtaining unit 701 includes: the device comprises a first obtaining module and a first determining module, wherein the first obtaining module may include: the first obtaining sub-unit and the second obtaining sub-unit, and the first determining module may include: a first determining subunit. The first acquisition module is used for acquiring the preset flow data of the switch; a first determination module for determining a target flow threshold based on predetermined flow data; the first acquisition subunit is used for acquiring first type preset flow data corresponding to the first port of the switch; the second acquisition subunit is used for acquiring second-type preset flow data corresponding to the second port of the switch; a first determining subunit, configured to determine a target traffic threshold based on the first type of predetermined traffic data and the second type of predetermined traffic data.
Optionally, the determining unit 702 includes: the device comprises a first determination module and a second determination module. The first determining module is used for determining first scheduling traffic data needing to be scheduled to the second port in response to the fact that the current traffic data exceeds a target traffic threshold; and the second determining module is used for determining second scheduling traffic data needing to be scheduled to the first port in response to the current traffic data not exceeding the target traffic threshold.
Optionally, the first forwarding unit 702 comprises: the first forwarding module and the second forwarding module, wherein the first forwarding module may include: the first forwarding subunit, the second forwarding module may include: a second forwarding sub-unit. The first forwarding module is configured to forward a first data packet to the second port through the server, where the first data packet is obtained by adding a first identifier to the first scheduling traffic data; the second forwarding module is configured to forward a second data packet to the first port through the server, where the second data packet is obtained by adding a second identifier to second scheduling traffic data; the first forwarding subunit is used for recognizing the first identifier of the first data packet by the switch, and forwarding the first data packet to the second port by the switch so as to reduce the current flow data of the first port; and the second forwarding subunit is used for recognizing the second identifier of the second data packet by the switch, and forwarding the second data packet to the first port by the switch so as to increase the current flow data of the first port.
Optionally, the apparatus further comprises: and a third determining module. And the third determining module is used for determining the corresponding virtual resource based on the adjusted current flow data.
In the embodiment of the present disclosure, a first obtaining unit 701 obtains current traffic data of a first port of an exchange in a content distribution network; a determining unit 702, configured to determine scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; the first forwarding unit 703 forwards the scheduled traffic data to the switch, where the scheduled traffic data is used to enable the second port or the first port of the switch to obtain the scheduled traffic data to adjust the current traffic data of the first port, that is, the scheduled traffic data to be scheduled is determined based on the current traffic data and the target traffic threshold, and then forwarded to the switch to adjust the current traffic data, so that traffic scheduling is smoother, the efficiency of traffic scheduling is improved, the technical problem of low efficiency of traffic scheduling is solved, and the technical effect of improving the efficiency of traffic scheduling is achieved.
It should be noted here that the first acquiring unit 701, the determining unit 702, and the first forwarding unit 703 correspond to steps S202 to S206 in embodiment 1, and the three units are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the first embodiment. It should be noted that the above modules as part of the apparatus may be run in the computer terminal 10 provided in the first embodiment.
According to an embodiment of the present invention, there is also provided, from the server side, a data processing apparatus for implementing the data processing method shown in fig. 3 described above.
Fig. 8 is a schematic diagram of a data processing apparatus provided from the server side according to the present embodiment. As shown in fig. 8, the data processing apparatus 800 may include: a second obtaining unit 801 and a second forwarding unit 802.
A second obtaining unit 801, configured to obtain scheduling traffic data to be scheduled, where the scheduling traffic data is obtained from current traffic data of a first port of a switch in a content distribution network and a target traffic threshold;
the second forwarding unit 802 is configured to forward the scheduled traffic data to the switch, where the scheduled traffic data is used to enable a second port or a first port of the switch to obtain the scheduled traffic data, so as to adjust current traffic data of the first port.
It should be noted here that the second obtaining unit 801 and the second forwarding unit 802 correspond to steps S302 to S304 in embodiment 1, and the two units are the same as the example and application scenarios realized by the corresponding steps, but are not limited to what is disclosed in the first embodiment. It should be noted that the modules described above as part of the apparatus may be run in the computer terminal 10 provided in the first embodiment.
Example 3
Embodiments of the present invention may provide a data processing system, which may be any one of computer terminal devices in a computer terminal group. Optionally, in this embodiment, the computer terminal may also be replaced with a terminal device such as a mobile terminal.
Optionally, in this embodiment, the computer terminal may be located in at least one network device of a plurality of network devices of a computer network.
In this embodiment, the computer terminal may execute the program code of the following steps in the data processing method according to the embodiment of the present disclosure: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
Alternatively, fig. 9 is a block diagram of a computer terminal according to an embodiment of the present invention. As shown in fig. 9, the computer terminal a may include: one or more processors 902 (only one shown), a memory 904, and a transmitting device 906.
The memory may be configured to store software programs and modules, such as program instructions/modules corresponding to the data processing method and apparatus in the embodiments of the present invention, and the processor executes various functional applications and data processing by running the software programs and modules stored in the memory, so as to implement the data processing method. The memory may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory may further include memory remotely located from the processor, and these remote memories may be connected to terminal a through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The processor can call the information and application program stored in the memory through the transmission device to execute the following steps: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
Optionally, the processor may further execute the program code of the following steps: acquiring preset flow data of a switch; a target flow threshold is determined based on the predetermined flow data.
Optionally, the processor may further execute the program code of the following steps: obtaining predetermined traffic data for the switch, comprising: acquiring first type preset flow data corresponding to a first port of a switch; acquiring second type preset flow data corresponding to a second port of the switch; determining a target flow threshold based on the predetermined flow data, including: a target flow threshold is determined based on the first type of predetermined flow data and the second type of predetermined flow data.
Optionally, the processor may further execute the program code of the following steps: in response to the current traffic data exceeding the target traffic threshold, first scheduled traffic data that needs to be scheduled to the second port is determined.
Optionally, the processor may further execute the program code of the following steps: and forwarding the first data packet to the second port through the server, wherein the first data packet is obtained by adding a first identifier to the first scheduling traffic data.
Optionally, the processor may further execute the program code of the following steps: the first identifier of the first packet is recognized by the switch, and the first packet is forwarded to the second port by the switch to reduce the current traffic data of the first port.
Optionally, the processor may further execute the program code of the following steps: in response to the current traffic data not exceeding the target traffic threshold, second scheduled traffic data that needs to be scheduled to the first port is determined.
Optionally, the processor may further execute the program code of the following steps: and forwarding a second data packet to the first port through the server, wherein the second data packet is obtained by adding a second identifier to the second scheduling traffic data.
Optionally, the processor may further execute the program code of the following steps: the second identifier of the second packet is recognized by the switch and the second packet is forwarded by the switch to the first port to add current traffic data of the first port.
Optionally, the processor may further execute the program code of the following steps: and determining the corresponding virtual resource based on the adjusted current flow data.
Optionally, the processor may further execute the program code of the following steps: acquiring scheduling traffic data to be scheduled, wherein the scheduling traffic data is obtained by current traffic data of a first port of a switch in a content distribution network and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling the second port or the first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
The embodiment of the invention provides a scheme for optimizing an exit scheduling mode of CDN charging. By defining a new traffic forwarding mode, based on the current traffic data and a target traffic threshold, determining scheduled traffic data to be scheduled, and then forwarding the scheduled traffic data to a switch to adjust the current traffic data, so that traffic scheduling is smoother, thereby achieving the purpose of improving the efficiency of traffic scheduling, and further solving the technical problem of low efficiency of traffic scheduling caused by the fact that especially accurate traffic scheduling cannot be performed.
It can be understood by those skilled in the art that the structure shown in fig. 9 is only an illustration, and the computer terminal may also be a terminal device such as a smart phone (e.g., an Android phone, an iOS phone, etc.), a tablet computer, a palmtop computer, a Mobile Internet Device (MID), a PAD, and the like. Fig. 9 is a diagram illustrating a structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components (e.g., network interfaces, display devices, etc.) than shown in FIG. 9, or have a different configuration than shown in FIG. 9.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by a program instructing hardware associated with the terminal device, where the program may be stored in a computer-readable storage medium, and the storage medium may include: flash disks, Read-Only memories (ROMs), Random Access Memories (RAMs), magnetic or optical disks, and the like.
The embodiment of the invention also provides a storage medium. Optionally, in this embodiment, the storage medium may be configured to store a program code executed by the data processing method provided in the first embodiment.
Optionally, in this embodiment, the storage medium may be located in any one of computer terminals in a computer terminal group in a computer network, or in any one of mobile terminals in a mobile terminal group.
Optionally, in this embodiment, the storage medium is configured to store program code for performing the following steps: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling a second port or a first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: acquiring preset flow data of a switch; a target flow threshold is determined based on the predetermined flow data.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: obtaining predetermined traffic data for the switch, comprising: acquiring first type preset flow data corresponding to a first port of a switch; acquiring second type preset flow data corresponding to a second port of the switch; determining a target flow threshold based on the predetermined flow data, including: a target flow threshold is determined based on the first type of predetermined flow data and the second type of predetermined flow data.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: in response to the current traffic data exceeding the target traffic threshold, first scheduled traffic data that needs to be scheduled to the second port is determined.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: and forwarding the first data packet to the second port through the server, wherein the first data packet is obtained by adding a first identifier to the first scheduling traffic data.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: the first identifier of the first packet is recognized by the switch, and the first packet is forwarded to the second port by the switch to reduce the current traffic data of the first port.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: in response to the current traffic data not exceeding the target traffic threshold, second scheduled traffic data that needs to be scheduled to the first port is determined.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: and forwarding a second data packet to the first port through the server, wherein the second data packet is obtained by adding a second identifier to the second scheduling traffic data.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: the second identifier of the second packet is recognized by the switch and the second packet is forwarded by the switch to the first port to add current traffic data of the first port.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: and determining the corresponding virtual resource based on the adjusted current flow data.
Optionally, the computer readable storage medium is further arranged to store program code for performing the steps of: acquiring scheduling traffic data to be scheduled, wherein the scheduling traffic data is obtained by current traffic data of a first port of a switch in a content distribution network and a target traffic threshold; forwarding the scheduling traffic data to the switch, wherein the scheduling traffic data is used for enabling the second port or the first port of the switch to acquire the scheduling traffic data so as to adjust the current traffic data of the first port
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic disk, or an optical disk, and various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (13)

1. A data processing method, comprising:
acquiring current flow data of a first port of a switch in a content distribution network;
determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold;
and forwarding the scheduling traffic data to the switch, where the scheduling traffic data is used to enable a second port or the first port of the switch to acquire the scheduling traffic data, so as to adjust the current traffic data of the first port.
2. The method of claim 1, further comprising:
acquiring preset flow data of the switch;
determining the target flow threshold based on the predetermined flow data.
3. The method of claim 2,
acquiring the preset flow data of the switch, comprising: acquiring first type preset flow data of the switch corresponding to the first port; acquiring second type preset flow data corresponding to the second port of the switch;
determining the target flow threshold based on the predetermined flow data, including: determining the target flow threshold based on the first type of predetermined flow data and the second type of predetermined flow data.
4. The method of claim 1, wherein determining scheduled traffic data to be scheduled based on the current traffic data and a target traffic threshold comprises:
determining first scheduling traffic data that needs to be scheduled to the second port in response to the current traffic data exceeding the target traffic threshold.
5. The method of claim 4, wherein forwarding the scheduled traffic data to the switch comprises:
forwarding, by a server, a first packet to the second port, where the first packet is obtained by adding a first identifier to the first scheduled traffic data.
6. The method of claim 5, wherein the first identifier of the first packet is identified by the switch, and wherein the first packet is forwarded by the switch to the second port to reduce the current traffic data of the first port.
7. The method of claim 1, wherein determining scheduled traffic data to be scheduled based on the current traffic data and a target traffic threshold comprises:
determining second scheduled traffic data that needs to be scheduled to the first port in response to the current traffic data not exceeding the target traffic threshold.
8. The method of claim 7, wherein forwarding the scheduled traffic data to the switch comprises:
forwarding, by a server, a second packet to the first port, where the second packet is obtained by adding a second identifier to the second scheduled traffic data.
9. The method of claim 8, wherein the second identification of the second packet is recognized by the switch and the second packet is forwarded by the switch to the first port to increase the current traffic data of the first port.
10. The method according to any one of claims 1-9, further comprising:
and determining corresponding virtual resources based on the adjusted current flow data.
11. A data processing method, comprising:
obtaining scheduling traffic data to be scheduled, wherein the scheduling traffic data is obtained by current traffic data of a first port of a switch in a content distribution network and a target traffic threshold;
and forwarding the scheduling traffic data to the switch, where the scheduling traffic data is used to enable a second port or the first port of the switch to acquire the scheduling traffic data, so as to adjust the current traffic data of the first port.
12. A computer-readable storage medium, comprising a stored program, wherein the program, when executed by a processor, controls an apparatus in which the computer-readable storage medium is located to perform the method of any of claims 1-11.
13. A data processing system, comprising:
a processor;
a memory coupled to the processor for providing instructions to the processor for processing the following processing steps: acquiring current flow data of a first port of a switch in a content distribution network; determining scheduling traffic data to be scheduled based on the current traffic data and a target traffic threshold; and forwarding the scheduling traffic data to the switch, where the scheduling traffic data is used to enable a second port or the first port of the switch to acquire the scheduling traffic data, so as to adjust the current traffic data of the first port.
CN202210114705.0A 2022-01-30 2022-01-30 Data processing method, system and storage medium Pending CN114598647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210114705.0A CN114598647A (en) 2022-01-30 2022-01-30 Data processing method, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210114705.0A CN114598647A (en) 2022-01-30 2022-01-30 Data processing method, system and storage medium

Publications (1)

Publication Number Publication Date
CN114598647A true CN114598647A (en) 2022-06-07

Family

ID=81807009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210114705.0A Pending CN114598647A (en) 2022-01-30 2022-01-30 Data processing method, system and storage medium

Country Status (1)

Country Link
CN (1) CN114598647A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117228A1 (en) * 2010-11-09 2012-05-10 International Business Machines Corporation Dynamic traffic management in a data center
US20140204749A1 (en) * 2013-01-24 2014-07-24 Cisco Technology, Inc. Port-based fairness protocol for a network element
CN112073445A (en) * 2020-11-16 2020-12-11 浙江山迅网络科技有限公司 Hybrid port traffic scheduling method and device, readable storage medium and electronic equipment
WO2021121086A1 (en) * 2019-12-16 2021-06-24 中兴通讯股份有限公司 Traffic scheduling method, electronic device and storage medium
CN113037657A (en) * 2021-03-23 2021-06-25 北京汇钧科技有限公司 Traffic scheduling method and device, electronic equipment and computer readable medium
CN113507423A (en) * 2021-04-25 2021-10-15 清华大学 Flow-aware switch shared cache scheduling method and device
WO2022017249A1 (en) * 2020-07-21 2022-01-27 阿里巴巴集团控股有限公司 Programmable switch, traffic statistics method, defense method, and packet processing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120117228A1 (en) * 2010-11-09 2012-05-10 International Business Machines Corporation Dynamic traffic management in a data center
US20140204749A1 (en) * 2013-01-24 2014-07-24 Cisco Technology, Inc. Port-based fairness protocol for a network element
WO2021121086A1 (en) * 2019-12-16 2021-06-24 中兴通讯股份有限公司 Traffic scheduling method, electronic device and storage medium
WO2022017249A1 (en) * 2020-07-21 2022-01-27 阿里巴巴集团控股有限公司 Programmable switch, traffic statistics method, defense method, and packet processing method
CN112073445A (en) * 2020-11-16 2020-12-11 浙江山迅网络科技有限公司 Hybrid port traffic scheduling method and device, readable storage medium and electronic equipment
CN113037657A (en) * 2021-03-23 2021-06-25 北京汇钧科技有限公司 Traffic scheduling method and device, electronic equipment and computer readable medium
CN113507423A (en) * 2021-04-25 2021-10-15 清华大学 Flow-aware switch shared cache scheduling method and device

Similar Documents

Publication Publication Date Title
EP3866414A1 (en) Message processing method, apparatus, device and system
US11272396B2 (en) Frame aggregation method, network setting frame sending method, and device
EP3952216A1 (en) Message detection method, device and system
CN103684803A (en) Flow collecting device and system and method for directional flow accounting
US20120054079A1 (en) Charging system and charging method
CN102238149A (en) Method, device and system for terminal to access to services
CN101843134A (en) Method and monitoring component for network traffic monitoring
CN108173727A (en) A kind of intelligent appliance method of network entry and equipment
US20210084172A1 (en) Charging apparatus, method, system, and non-transitory medium
CN110855741B (en) Service self-adaptive access method and device, storage medium and electronic device
CN101951665A (en) Routing method of double-card mobile terminal and double-card mobile terminal
WO2020119325A1 (en) Charging processing method and device, storage medium, and electronic device
CN107950004A (en) Packet to rerouting in heterogeneous wireless communication system carries out charging
CN105208605B (en) Link information sending method and device and flow control method and device
CN108401231A (en) A kind of charging method, device and system
CN110087226B (en) Flow statistical method and device, storage medium and electronic device
CN104168553A (en) Sending and charging method and device for service messages
CN114095876A (en) Broadcast data processing method and device, storage medium and electronic device
CN114598647A (en) Data processing method, system and storage medium
CN110166518B (en) Session information transmission method, device, storage medium and electronic device
WO2023125056A1 (en) Network data control method and apparatus, and storage medium and electronic device
CN103858403B (en) Process the message related to multiple potential entities
CN110322250A (en) The recognition methods of inactive users courses of action, device, equipment and storage medium
CN103580959A (en) Distributed statistical reporting implementation method
CN110858957A (en) Information pushing system, method, device, medium and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination