CN110401603A - Method and apparatus for handling information - Google Patents

Method and apparatus for handling information Download PDF

Info

Publication number
CN110401603A
CN110401603A CN201910676013.3A CN201910676013A CN110401603A CN 110401603 A CN110401603 A CN 110401603A CN 201910676013 A CN201910676013 A CN 201910676013A CN 110401603 A CN110401603 A CN 110401603A
Authority
CN
China
Prior art keywords
target
interface
flow
information
direction interface
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.)
Granted
Application number
CN201910676013.3A
Other languages
Chinese (zh)
Other versions
CN110401603B (en
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910676013.3A priority Critical patent/CN110401603B/en
Publication of CN110401603A publication Critical patent/CN110401603A/en
Application granted granted Critical
Publication of CN110401603B publication Critical patent/CN110401603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • User Interface Of Digital Computer (AREA)
  • Traffic Control Systems (AREA)

Abstract

Embodiment of the disclosure is related to field of cloud calculation, discloses the method and apparatus for handling information.One specific embodiment of this method includes: in response to detecting target information, obtain the flow information at least one forwarding end that target electronic device includes, wherein, the flow that target information is used to indicate target electronic device is greater than or equal to preset flow threshold value, and flow information is used to indicate the flow of forwarding end forwarding in the target histories period;Based on acquired flow information, determine that target forwards end from least one forwarding end;It obtains at least one flow sub-information for entering direction interface that target forwarding end includes and goes out the flow sub-information of direction interface at least one;It is based respectively on the acquired flow sub-information for entering direction interface and out the flow sub-information of direction interface, determines that target enters direction interface and target goes out direction interface;Direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing.This embodiment improves the efficiency of information processing.

Description

Method and apparatus for handling information
Technical field
Embodiment of the disclosure is related to field of computer technology, more particularly, to handles the method and apparatus of information.
Background technique
Under the production environment of public cloud, communication of the virtual machine with external network is generally by the network management device of centralization Carrying.And for network management device, when individual user's flow is uprushed, the pressure of whole network management equipment can be mentioned accordingly It rises, it is abnormal to will lead to the forwarding of whole network management equipment flow under extreme case.
In view of the above-mentioned problems, current solution is monitored to the flow of network management device, when flow is more than Artificial intervention when threshold value compares the flow of each user, selects the user of maximum flow, and carry out speed limit to it.
Summary of the invention
Embodiment of the disclosure proposes the method and apparatus for handling information.
In a first aspect, embodiment of the disclosure provides a kind of method for handling information, this method comprises: in response to It detects target information, obtains the flow information at least one forwarding end that target electronic device includes, wherein target information is used It is greater than or equal to preset flow threshold value in the flow of instruction target electronic device, forwarding end is corresponding with user, for being to correspond to User's converting flow, flow information is used to indicate the flow that forwarding end is forwarded in the target histories period;Based on acquired Flow information, determine that the most forwarding end of the flow that is forwarded within the target histories period is made from least one forwarding end End is forwarded for target;At least one flow sub-information for entering direction interface that acquisition target forwarding end includes goes out side at least one To the flow sub-information of interface, wherein flow sub-information is used to indicate the flow for passing through interface within the target histories period;Point The not flow sub-information of direction interface based on the acquired flow sub-information for entering direction interface and out, determines that target enters direction and connects Mouth and target go out direction interface;Direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing.
In some embodiments, at least one of acquisition target forwarding end enters the flow sub-information and at least one of direction interface The flow sub-information of a direction interface out includes: that at least one for including enters direction interface and at least one for target forwarding end Interface in the interface of direction out obtains the destination number flow sub-information of the interface, wherein destination number flow sub-information Destination number historical time period in the corresponding target histories period, flow sub-information are used to indicate in corresponding history Between in the period by the flow of interface.
In some embodiments, the acquired flow sub-information for entering direction interface and the out stream of direction interface are based respectively on Quantum information, determine target enter direction interface and target to go out direction interface include: in the destination number historical time period The historical time period, execute following steps: based on the historical time period it is corresponding enter direction interface flow sub-information, really The most direction interface that enters of constant flow enters direction interface as the historical time period corresponding candidate;Based on historical time week The flow sub-information of phase corresponding direction interface out determines that the most direction interface that goes out of flow is corresponded to as the historical time period Candidate go out direction interface;Enter direction interface based on identified destination number candidate, determines that target enters direction interface, and Based on the candidate direction interface out of identified destination number, determine that target goes out direction interface.
In some embodiments, direction interface is entered based on identified destination number candidate, determines that target enters direction and connects Mouthful, and based on identified destination number candidate direction interface out, determines that target goes out direction interface and comprises determining that and determine Destination number candidate enter whether direction interface identical and destination number it is candidate go out direction interface it is whether identical;Response In determining that it is identical that destination number candidate enters direction interface, and destination number it is candidate go out direction interface it is identical, by identical time Be selected into direction interface and be determined as target and enter direction interface, and by it is identical it is candidate go out direction interface be determined as target and go out direction connecing Mouthful.
In some embodiments, direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing packet It includes: determining and enter the flow of direction interface by target within the target histories period and go out the flow of direction interface by target Ratio;It is greater than or equal to the first predetermined coefficient in response to identified ratio, direction interface and the target side of entering is gone out to target respectively Speed limit processing is carried out to interface.
In some embodiments, direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing also It include: to go out direction interface less than the first predetermined coefficient in response to identified ratio from target and target enters in the interface of direction to select It selects interface and carries out speed limit processing.
In some embodiments, direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing packet It includes: based on such as lower inequality, direction interface being entered to target and interface that target goes out in the interface of direction carries out speed limit processing: S≤T*K +Ft-Fc, wherein S is for characterizing speed limit value;T is for characterizing preset flow threshold value;K is for characterizing the second predetermined coefficient;FtFor Characterize the flow of current goal electronic equipment;FcThe flow forwarded for characterizing current goal forwarding end.
In some embodiments, target electronic device belongs to predetermined electronic equipment cluster;And in response to detection To target information, the flow information for obtaining at least one forwarding end that target electronic device includes includes: in response to detecting mesh Information is marked, electronic equipment is chosen from electronic equipment cluster as target electronic device, and obtains target electronic device and includes At least one forwarding end flow information.
In some embodiments, this method further include: including for electronic equipment cluster, in addition to target electronic device Electronic equipment in electronic equipment, execute following steps: determining that in the electronic equipment, to enter direction interface with target corresponding Enter direction interface and with target go out direction it is corresponding go out direction interface;To it is in the electronic equipment, enter direction phase with target It is corresponding enter direction interface and with target go out direction interface it is corresponding go out direction interface in interface carry out speed limit processing.
Second aspect, embodiment of the disclosure provide a kind of for handling the device of information, which includes: first to obtain Unit is taken, is configured in response to detect target information, obtains the stream at least one forwarding end that target electronic device includes Measure information, wherein target information be used to indicate target electronic device flow be greater than or equal to preset flow threshold value, forwarding end with User is corresponding, and for being corresponding user's converting flow, flow information, which was used to indicate in the target histories period, forwards end institute The flow of forwarding;First determination unit is configured to determine from least one forwarding end based on acquired flow information The most forwarding end of the flow forwarded in the target histories period forwards end as target;Second acquisition unit is configured to It obtains at least one flow sub-information for entering direction interface that target forwarding end includes and goes out the flow of direction interface at least one Sub-information, wherein flow sub-information is used to indicate the flow for passing through interface within the target histories period;Second determination unit, It is configured to be based respectively on the acquired flow sub-information for entering direction interface and out the flow sub-information of direction interface, determines mesh It marks and goes out direction interface into direction interface and target;First speed limit unit, is configured to enter target direction interface and target goes out side Interface into interface carries out speed limit processing.
In some embodiments, second acquisition unit is further configured to: include for target forwarding end at least one It is a enter direction interface and at least one go out the interface in the interface of direction, obtain the destination number flow sub-information of the interface, In, destination number flow sub-information corresponds to the destination number historical time period in the target histories period, flow letter Breath is used to indicate the flow for passing through interface within the corresponding historical time period.
In some embodiments, the second determination unit includes: the first determining module, is configured to go through destination number The historical time period in the history time cycle executes following steps: based on historical time period it is corresponding enter direction interface Flow sub-information determines that the most direction interface that enters of flow enters direction interface as the historical time period corresponding candidate;Base In the flow sub-information of the historical time period corresponding direction interface out, determine that the most direction interface that goes out of flow is gone through as this History time cycle corresponding candidate direction interface out;Second determining module is configured to wait based on identified destination number It is selected into direction interface, determines that target enters direction interface, and based on the candidate direction interface out of identified destination number, determine Target goes out direction interface.
In some embodiments, the second determining module is further configured to: destination number determined by determining is candidate Enter whether direction interface is identical and whether the candidate direction interface out of destination number is identical;In response to determining destination number It is identical that candidate enters direction interface, and the candidate direction interface out of destination number is identical, and identical candidate is entered direction interface and is determined Enter direction interface for target, and identical candidate direction interface out is determined as target and goes out direction interface.
In some embodiments, the first speed limit unit includes: third determining module, is configured to determine in target histories Between enter the flow of direction interface by target in section and go out the ratio of the flow of direction interface by target;First speed limit module, Ratio determined by being configured in response to is greater than or equal to the first predetermined coefficient, goes out direction interface to target respectively and target enters Direction interface carries out speed limit processing.
In some embodiments, the first speed limit unit further include: the second speed limit module is configured in response to identified Ratio goes out direction interface from target and target enters in the interface of direction that interface is selected to carry out speed limit processing less than the first predetermined coefficient.
In some embodiments, the first speed limit unit is further configured to: based on such as lower inequality, entering direction to target Interface and target go out the interface in the interface of direction and carry out speed limit processing: S≤T*K+Ft-Fc, wherein S is for characterizing speed limit value;T is used In characterization preset flow threshold value;K is for characterizing the second predetermined coefficient;FtFor characterizing the flow of current goal electronic equipment;FcWith In the flow that characterization current goal forwarding end is forwarded.
In some embodiments, target electronic device belongs to predetermined electronic equipment cluster;And first obtain it is single Member is further configured to: in response to detecting target information, electronic equipment is chosen from electronic equipment cluster as target electricity Sub- equipment, and obtain the flow information at least one forwarding end that target electronic device includes.
In some embodiments, the device further include: the second speed limit unit, be configured to include for electronic equipment cluster , electronic equipment in electronic equipment in addition to target electronic device, execute following steps: determine it is in the electronic equipment, With target enter direction interface it is corresponding enter direction interface and with target go out direction it is corresponding go out direction interface;The electronics is set It is in standby, enter that direction is corresponding to be entered direction interface and to go out in the corresponding direction interface out of direction interface with target with target Interface carries out speed limit processing.
The third aspect, embodiment of the disclosure provide a kind of electronic equipment, comprising: one or more processors;Storage Device is stored thereon with one or more programs, when one or more programs are executed by one or more processors, so that one Or the method that multiple processors realize any embodiment in the above-mentioned method for handling information.
Fourth aspect, embodiment of the disclosure provide a kind of computer-readable medium, are stored thereon with computer program, The program realizes any embodiment in the above-mentioned method for handling information method when being executed by processor.
The method and apparatus for handling information that embodiment of the disclosure provides, by response to detecting that target is believed Breath obtains the flow information at least one forwarding end that target electronic device includes, wherein target information is used to indicate target electricity The flow of sub- equipment is greater than or equal to preset flow threshold value, and forwarding end is corresponding with user, for being corresponding user's forwarding flow Amount, flow information are used to indicate the flow that forwarding end is forwarded in the target histories period, are then believed based on acquired flow Breath determines the most forwarding end of the flow forwarded within the target histories period as target from least one forwarding end and turns Originator, at least one flow sub-information for entering direction interface that then acquisition target forwarding end includes go out direction at least one and connect The flow sub-information of mouth, wherein flow sub-information is used to indicate the flow for passing through interface within the target histories period, then divides The not flow sub-information of direction interface based on the acquired flow sub-information for entering direction interface and out, determines that target enters direction and connects Mouthful and target go out direction interface, direction interface finally entered to target and interface that target goes out in the interface of direction carries out speed limit processing, So as to which in the case where the flow of target electronic device transfinites, the interface for automatically treating speed limit is positioned and is limited Speed improves the efficiency of information processing;Also, the disclosure can embody speed limit to the target interface in forwarding end, compare In directly carrying out speed limit to forwarding end in the prior art, it can reduce speed limit and other in addition to target interface in forwarding end connect The influence of mouth, improves the specific aim and validity of speed limit.
Detailed description of the invention
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the disclosure is other Feature, objects and advantages will become more apparent upon:
Fig. 1 is that one embodiment of the disclosure can be applied to exemplary system architecture figure therein;
Fig. 2 is the flow chart according to one embodiment of the method for handling information of the disclosure;
Fig. 3 is according to an embodiment of the present disclosure for handling the schematic diagram of an application scenarios of the method for information;
Fig. 4 is the flow chart according to another embodiment of the method for handling information of the disclosure;
Fig. 5 is the structural schematic diagram according to one embodiment of the device for handling information of the disclosure;
Fig. 6 is adapted for the structural schematic diagram for the computer system for realizing the electronic equipment of embodiment of the disclosure.
Specific embodiment
The disclosure is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to Convenient for description, part relevant to related invention is illustrated only in attached drawing.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the disclosure can phase Mutually combination.The disclosure is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 is shown can be using the method for handling information of the disclosure or the implementation of the device for handling information The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include monitoring device 101, network 102 and server 103.Network 102 is used To provide the medium of communication link between monitoring device 101 and server 103.Network 102 may include various connection types, Such as wired, wireless communication link or fiber optic cables etc..
Monitoring personnel can be used monitoring device 101 and be interacted by network 102 with server 103, be disappeared with receiving or sending Breath etc..
Monitoring device 101 can be hardware, be also possible to software.When monitoring device 101 is hardware, can be has letter Cease the various electronic equipments of processing function, including but not limited to smart phone, tablet computer, pocket computer on knee and desk-top Computer etc..When monitoring device 101 is software, may be mounted in above-mentioned cited electronic equipment.It may be implemented At multiple softwares or software module (such as providing multiple softwares of Distributed Services or software module), also may be implemented into Single software or software module.It is not specifically limited herein.
Server 103 can be to provide the server of network service, specifically, server 103 can be used by user Terminal converting flow.And the flow that monitoring device 101 can forward server 103 is monitored, and in response to inspection The flow for measuring server 103 is greater than preset flow threshold value, for server 103, executes speed limit operation (such as to server The target interface that target forwarding end in 103 includes carries out speed limit processing)
It should be noted that for handling the method for information generally by monitoring device provided by embodiment of the disclosure 101 execute, and correspondingly, the device for handling information is generally positioned in monitoring device 101.
It should be noted that server can be hardware, it is also possible to software.When server is hardware, may be implemented At the distributed server cluster that multiple servers form, individual server also may be implemented into.It, can when server is software It, can also be with to be implemented as multiple softwares or software module (such as providing multiple softwares of Distributed Services or software module) It is implemented as single software or software module.It is not specifically limited herein.
It should be understood that the number of monitoring device, network and server in Fig. 1 is only schematical.According to realization need It wants, can have any number of monitoring device, network and server.
With continued reference to Fig. 2, the process of one embodiment of the method for handling information according to the disclosure is shown 200.The method for being used to handle information, comprising the following steps:
Step 201, in response to detecting target information, the stream at least one forwarding end that target electronic device includes is obtained Measure information.
It in the present embodiment, can be with for handling the executing subject (such as monitoring device shown in FIG. 1) of the method for information In response to, from target information is remotely-or locally detected, obtaining target electronic by wired connection mode or radio connection The flow information at least one forwarding end that equipment (such as server shown in FIG. 1) includes.Wherein, target information is used to indicate The flow of target electronic device is greater than or equal to preset flow threshold value, can include but is not limited at least one of following: text, number Word, symbol, image, audio, video.For example, target information can for symbol "!!!".In practice, target information may be use In the information of alarm.
Specifically, target information can be greater than or equal to for above-mentioned executing subject in the flow for detecting target electronic device The information generated when preset flow threshold value, or, or target electronic device is greater than or equal to preset flow threshold in flow It is generated when value, and is sent to the information of above-mentioned executing subject.
Target electronic device is the electronic equipment to carry out speed limit to its flow, target electronic device and above-mentioned executing subject Communication connection.Preset flow threshold value can be the pre-set flow maximum of technical staff.It should be noted that target electronic The flow of equipment refers specifically to the flow that target electronic device currently forwards.
Target electronic device may include at least one forwarding end.Forward end corresponding with user, for being corresponding use Family converting flow.In turn, target electronic device can forward end at least one user forwarding by least one included Flow.The flow that target electronic device currently forwards is the stream that each forwarding end currently forwards included by target electronic device The sum of amount.
It should be noted that forwarding end can be hardware, or software in practice.Each forwarding end may include At least one enters direction interface and at least one goes out direction interface.Entering direction interface is to flow into connecing for communication link for flow Mouthful, direction interface is the interface that communication link is flowed out for flow out.Different communication links can correspond to the different net of user Network application scenarios.
In the present embodiment, above-mentioned executing subject can be in response to detecting target information, from local or from target electronic Equipment obtains the flow information at least one forwarding end that target electronic device includes.Wherein, flow information is used to indicate target The flow that forwarding end is forwarded in historical time section can include but is not limited at least one of following: text, number, symbol, figure Picture.Specifically, flow information can be corresponded at least one of target electronic device forwarding end, and in turn, above-mentioned execution Main body is available to arrive at least one flow information, and each flow information therein is used to indicate in the target histories period corresponding The flow that is forwarded of forwarding end.
In the present embodiment, the target histories period can be for using current time as terminal, Shi Changwei preset duration be gone through The history period.For example, preset duration is ten minutes, then the target histories period can be ten minutes in the past.
In some optional implementations of the present embodiment, target electronic device may belong to predetermined electronics and set Standby cluster (such as network server cluster);And above-mentioned executing subject can be set in response to detecting target information from electronics Electronic equipment is chosen in standby cluster as target electronic device, and obtains at least one forwarding end that target electronic device includes Flow information.
Herein, the electronic equipment in electronic equipment cluster includes corresponding structure, and the flow forwarded is also identical.Mesh Mark information can serve to indicate that the flow of the electronic equipment in electronic equipment cluster is greater than or equal to preset flow threshold value.It can manage Solution, since the flow that the electronic equipment in electronic equipment cluster is forwarded is identical, so, if above-mentioned executing subject detects target Information, it can be said that the flow of each electronic equipment in bright electronic equipment cluster is both greater than or is equal to preset flow threshold value, into And above-mentioned executing subject can adopt and choose target electronic device from electronic equipment cluster in various manners, for example, can use The mode randomly selected is chosen, or can choose preset electronic equipment as target electronic device, wherein preset electronic equipment It can be for technical staff is predetermined, electronic equipment for carrying out speed limit processing.
It should be noted that structure that the electronic equipment in electronic equipment cluster includes, corresponding refers specifically to, use In the structure for realizing identical function.For example, electronic equipment cluster includes electronic equipment A and electronic equipment B, electronic equipment A includes It include then being forwarded for the forwarding end b for 1 converting flow of user for the forwarding end a for 1 converting flow of user, electronic equipment B End a is corresponding structure with forwarding end b.
Step 202, it based on acquired flow information, is determined within the target histories period from least one forwarding end The most forwarding end of the flow forwarded forwards end as target.
In the present embodiment, based on flow information obtained in step 201, above-mentioned executing subject can be set from target electronic Determine the most forwarding end of the flow forwarded within the target histories period as mesh in standby at least one forwarding end for including Mark forwarding end.
As an example, target electronic device includes three forwarding ends, respectively forwarding end a, end b and forwarding end b are forwarded.On Stating executing subject and getting forwarding end a, forwarding end b and forward the flow information of end c is respectively " 10MB ", " 12MB ", " 14MB ". In turn, since 14 are greater than 12 greater than 10, so forwarding end c can be determined as target forwarding end by above-mentioned executing subject.
Step 203, obtain target forwarding end include at least one enter direction interface flow sub-information and at least one The flow sub-information of direction interface out.
In the present embodiment, end is forwarded based on the target determined in step 202, above-mentioned executing subject can from it is local or from At least one flow sub-information for entering direction interface that target electronic device acquisition target forwarding end includes goes out side at least one To the flow sub-information of interface.Wherein, flow sub-information is used to indicate the stream for passing through interface within the above-mentioned target histories period Amount can include but is not limited at least one of following: text, number, symbol, image.
In the present embodiment, an interface can correspond at least one flow sub-information.Specifically, as an example, one Interface can correspond to a flow sub-information, and in turn, above-mentioned executing subject is available corresponding extremely to direction interface is entered A few flow sub-information and out at least one corresponding flow sub-information of direction interface.
In some optional implementations of the present embodiment, an interface can correspond to destination number flow letter Breath, and then at least one for including for target forwarding end enters direction interface and at least one goes out the interface in the interface of direction, on State the destination number flow sub-information of the available interface of executing subject.Wherein, destination number flow sub-information is corresponding The destination number historical time period in the target histories period.Flow sub-information was used to indicate in corresponding historical time week By the flow of interface in phase.
In this implementation, it is true in advance that the duration in historical time period can be the duration based on the target histories period Fixed.For example, the duration of target histories period is preset as ten minutes, then the duration in historical time period can be preset as five points Clock.In turn, destination number at this time is then 2.
Step 204, it is based respectively on the acquired flow sub-information for entering direction interface and flow of direction interface is believed out Breath, determines that target enters direction interface and target goes out direction interface.
In the present embodiment, based on the flow sub-information for entering direction interface obtained in step 203, above-mentioned executing subject can To determine that target enters direction interface, and based on the flow sub-information for going out direction interface obtained in step 203, above-mentioned execution master Body can determine that target goes out direction interface.Wherein, target enters direction interface and target goes out direction interface for carry out speed limit to it The interface of processing.
Specifically, above-mentioned executing subject can determine that target enters direction interface and target goes out direction and connects using various methods Mouthful.As an example, interface and flow sub-information correspond, then above-mentioned executing subject can be based on respectively corresponding into direction interface At least one flow sub-information, determine the flow that is passed through within the target histories period it is most enter direction interface, as Target enters direction interface;And it based at least one corresponding flow sub-information of direction interface is gone out, determines in target histories The most direction interface out of the flow passed through in period, enters direction interface as target.
In some optional implementations of the present embodiment, an interface corresponds to destination number flow sub-information, right Enter direction interface at least one that target forwarding end includes and at least one goes out the interface in the interface of direction, above-mentioned executing subject The destination number flow sub-information of the interface is got.Wherein, when destination number flow sub-information corresponds to target histories Between destination number historical time period in section.Flow sub-information is used to indicate within the corresponding historical time period by connecing The flow of mouth.In turn, above-mentioned executing subject can determine that target enters direction interface and target goes out direction interface by following steps:
The first step executes following steps for the historical time period in the destination number historical time period: being based on should The historical time period it is corresponding enter direction interface flow sub-information, determine flow it is most when entering direction interface as the history Between period corresponding candidate enter direction interface;Based on the flow sub-information of the historical time period corresponding direction interface out, really The most direction interface that goes out of constant flow goes out direction interface as the historical time period corresponding candidate.
As an example, the target histories period is ten minutes in the past.Destination number is 2.It includes into direction that target, which forwards end, Interface w and enters direction interface x, goes out direction interface y and direction interface z out.
For first five minutes (i.e. first historical time period) in past ten minutes, by entering direction interface w Flow be 5MB, through entering direction interface x flow be 6MB, through going out direction interface y flow be 4MB, by going out direction The flow of interface z is 2MB.In turn, since 6 are greater than 5, so above-mentioned executing subject can will enter direction interface x as first Candidate corresponding to five minutes enters direction interface;And since 4 greater than 2, so above-mentioned executing subject can will go out direction interface y Go out direction interface as first candidate corresponding to five minutes.
For second five minutes (i.e. second historical time period) in past ten minutes, by entering direction interface w Flow be 7MB, through entering direction interface x flow be 6MB, through going out direction interface y flow be 3MB, by going out direction The flow of interface z is 2MB.In turn, since 7 are greater than 6, so above-mentioned executing subject can will enter direction interface w as second Candidate corresponding to five minutes enters direction interface;And since 3 greater than 2, so above-mentioned executing subject can will go out direction interface y Go out direction interface as second candidate corresponding to five minutes.
It is appreciated that above-mentioned executing subject can determine that a candidate enters direction for each historical time period Interface and a candidate go out direction interface, and in turn, for the destination number historical time period, above-mentioned executing subject can be determined Destination number candidate enters direction interface and the candidate direction interface out of destination number out.
Second step enters direction interface based on identified destination number candidate, determines that target enters direction interface, Yi Jiji In the candidate direction interface out of identified destination number, determine that target goes out direction interface.
Herein, above-mentioned executing subject, which can be based respectively on destination number candidate and enter direction interface and destination number, waits Direction interface is selected, determines that target enters direction interface and target goes out direction interface using various methods.As an example, above-mentioned execution Main body, which can enter to randomly select a candidate from destination number candidate in the interface of direction and enter direction interface as target, enters direction Interface, from destination number it is candidate go out direction interface in randomly select a candidate and go out direction interface and go out direction as target to connect Mouthful.
In some optional implementations of the present embodiment, above-mentioned executing subject can also determine mesh by following steps It marks and goes out direction interface into direction interface and target:
Firstly, above-mentioned executing subject can determine that destination number candidate enters whether direction interface identical and number of targets Whether the candidate direction interface out of amount is identical.
Then, above-mentioned executing subject can be in response to determining that it is identical that destination number candidate enter direction interface, and number of targets Amount it is candidate go out direction interface it is identical, identical candidate entered direction interface be determined as target to enter direction interface, and will be identical Candidate go out direction interface and be determined as target to go out direction interface.
It is appreciated that if destination number candidate to enter direction interface identical, and destination number it is candidate go out direction interface phase Together, then it is metastable for can characterizing forwarding situation of the flow within the destination number historical time period, at this point it is possible to recognize Interface to cause the flow of target electronic device to transfinite is specific, and then identical candidate can be entered to direction interface and determined Enter direction interface for target, and identical candidate direction interface out is determined as target and goes out direction interface, with this, can be improved The accuracy and validity of speed limit.
Step 205, direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing.
In the present embodiment, direction interface is entered based on the target determined in step 204 and target goes out direction interface, it is above-mentioned Executing subject can enter direction interface to target and target goes out the interface in the interface of direction and carries out speed limit processing.
Specifically, above-mentioned executing subject can enter direction interface to target respectively and target goes out direction interface and carries out at speed limit Reason, can also enter direction interface from target and target goes out in the interface of direction that an interface is selected to carry out speed limit processing.Here, it selects The mode of interface can be arbitrary, such as can be randomly selected.
In practice, speed limit processing will be for that will pass through the flow restriction to target value of interface or less.Here, target value can be Preset value, or based on the value that the flow that current goal electronic equipment is forwarded is determined, for example, can be by current goal The difference of flow and preset flow that electronic equipment is forwarded is determined as target value.
In some optional implementations of the present embodiment, above-mentioned executing subject can be based on such as lower inequality, to mesh It marks direction interface and interface that target goes out in the interface of direction carries out speed limit processing:
S≤T*K+Ft-Fc,
Wherein, S is used to characterize speed limit value (flow for currently passing through interface);T is for characterizing preset flow threshold value;K is used In characterizing the second predetermined coefficient, the second predetermined coefficient can be that technical staff is pre-set be for carry out speed limit processing Number;FtFor characterizing the flow of current goal electronic equipment;FcThe flow forwarded for characterizing current goal forwarding end.It can be with Understand, " the T*K+F on the right side of above-mentioned inequalityt-Fc" it is the mesh determined based on the flow that current goal electronic equipment is forwarded Scale value.
Specifically, above-mentioned executing subject can enter direction interface to target using various methods and target goes out in the interface of direction Interface carry out speed limit processing, for example, above-mentioned executing subject can call pre-set speed limit program, to enter direction to target Interface and target go out the interface in the interface of direction and carry out speed limit processing, wherein speed limit program can preset for technical staff , program for carrying out speed limit processing.
In some optional implementations of the present embodiment, target electronic device belongs to above-mentioned electronic equipment cluster, then After step 205, the electronics in electronic equipment that include for electronic equipment cluster, in addition to target electronic device is set Standby, above-mentioned executing subject can execute following steps: determine it is in the electronic equipment, enter with target direction interface it is corresponding enter Direction interface and with target go out direction it is corresponding go out direction interface;To in the electronic equipment, with target to enter direction corresponding Enter direction interface and with target go out direction interface it is corresponding go out direction interface in interface carry out speed limit processing.
Herein, enter with target direction interface it is corresponding enter direction interface be can enter with target direction interface realization The interface of identical function.With target go out direction interface it is corresponding go out direction interface be can go out with target direction interface realize The interface of identical function.
This implementation can enter direction interface based on the target of target electronic device and target goes out direction interface, to electronics The corresponding interface that other electronic equipments in device clusters include carries out speed limit processing, with this, may be implemented for electronics The speed limit of device clusters improves the comprehensive of speed limit.
With continued reference to the signal that Fig. 3, Fig. 3 are according to the application scenarios of the method for handling information of the present embodiment Figure.
In the application scenarios of Fig. 3, monitoring device 301 first can be in response to detecting what target electronic device was sent 302 target informations 303, the flow information 3041 at three (i.e. at least one) forwarding end that acquisition target electronic device 302 includes, 3042,3043, wherein the flow that target information 303 is used to indicate target electronic device 302 is greater than or equal to preset flow threshold Value.Forward end corresponding with user, for being corresponding user's converting flow.Flow information 3041,3042,3043 is respectively used to Indicate the flow that three forwarding ends are forwarded in ten minutes (i.e. the target histories period) in the past.
Then, monitoring device 301 can be based on acquired flow information 3041,3042,3043, from three forwarding ends The most forwarding end of the flow forwarded within past ten minutes is determined as target and forwards end 305.
Then, two (i.e. at least one) that the available target of monitoring device 301 forwarding end 305 includes enter direction interface Flow sub-information 3061,3062 and two (i.e. at least one) the flow sub-informations 3071,3072 for going out direction interface, wherein Flow sub-information 3061,3062 is respectively used to indicate to enter the flow of direction interface by two within past ten minutes;Flow Information 3071,3072 is respectively used to indicate to go out the flow of direction interface by two within past ten minutes.
Then, monitoring device 301 can determine mesh based on the acquired flow sub-information 3061,3062 for entering direction interface It marks into direction interface 308, and determines that target goes out direction based on the acquired flow sub-information 3071,3072 for going out direction interface Interface 309.
Finally, monitoring device 301 can enter direction interface 308 to target and target go out interface in direction interface 309 into Row speed limit processing, for example, monitoring device 301 can enter direction interface 308 to target respectively and target goes out direction interface 309 and carries out Speed limit processing.
The method provided by the above embodiment of the disclosure can be in the case where the flow of target electronic device transfinites, automatically Treat speed limit interface with changing carries out positioning and speed limit, improves the efficiency of information processing;Also, the disclosure can have speed limit Body to forwarding end in target interface, compared to the prior art in directly to forwarding end carry out speed limit, can reduce speed limit pair The influence for forwarding other interfaces in end in addition to target interface, improves the specific aim and validity of speed limit.
With further reference to Fig. 4, it illustrates the processes 400 of another embodiment of the method for handling information.The use In the process 400 of the method for processing information, comprising the following steps:
Step 401, in response to detecting target information, the stream at least one forwarding end that target electronic device includes is obtained Measure information.
It in the present embodiment, can be with for handling the executing subject (such as monitoring device shown in FIG. 1) of the method for information In response to, from target information is remotely-or locally detected, obtaining target electronic by wired connection mode or radio connection The flow information at least one forwarding end that equipment (such as server shown in FIG. 1) includes.Wherein, flow information is used to indicate The flow that forwarding end is forwarded in the target histories period.
Step 402, it based on acquired flow information, is determined within the target histories period from least one forwarding end The most forwarding end of the flow forwarded forwards end as target.
In the present embodiment, based on flow information obtained in step 401, above-mentioned executing subject can be set from target electronic Determine the most forwarding end of the flow forwarded within the target histories period as mesh in standby at least one forwarding end for including Mark forwarding end.
Step 403, obtain target forwarding end include at least one enter direction interface flow sub-information and at least one The flow sub-information of direction interface out.
In the present embodiment, end is forwarded based on the target determined in step 402, above-mentioned executing subject can from it is local or from At least one flow sub-information for entering direction interface that target electronic device acquisition target forwarding end includes goes out side at least one To the flow sub-information of interface.Wherein, flow sub-information is used to indicate the stream for passing through interface within the above-mentioned target histories period Amount.
Step 404, it is based respectively on the acquired flow sub-information for entering direction interface and flow of direction interface is believed out Breath, determines that target enters direction interface and target goes out direction interface.
In the present embodiment, based on the flow sub-information for entering direction interface obtained in step 403, above-mentioned executing subject can To determine that target enters direction interface, and based on the flow sub-information for going out direction interface obtained in step 403, above-mentioned execution master Body can determine that target goes out direction interface.
Above-mentioned steps 401, step 402, step 403, step 404 can be respectively adopted and the step in previous embodiment 201, the similar mode of step 202, step 203 and step 204 executes, above with respect to step 201, step 202, step 203 and The description of step 204 is also applied for step 401, step 402, step 403 and step 404, and details are not described herein again.
Step 405, it determines and enters the flow of direction interface by target within the target histories period and go out side by target To the ratio of the flow of interface.
In the present embodiment, direction interface is entered based on the target determined in step 404 and target goes out direction interface, it is above-mentioned Executing subject, which can be determined, to be entered the flow of direction interface by target within the above-mentioned target histories period and goes out side by target To the ratio of the flow of interface.Wherein, ratio is less than or equal to 1.
Specifically, above-mentioned executing subject can use, target enters the corresponding flow of direction interface and target goes out direction interface pair Target enters the corresponding flow of direction interface in less flow-rate ratio in the flow answered and target goes out in the corresponding flow of direction interface More flow obtains ratio.
Step 406, it is greater than or equal to the first predetermined coefficient in response to identified ratio, direction interface is gone out to target respectively Enter direction interface with target and carries out speed limit processing.
In the present embodiment, above-mentioned executing subject can be greater than or equal to the first default system in response to identified ratio Number goes out direction interface to target respectively and target enters direction interface and carries out speed limit processing.Wherein, the first predetermined coefficient can be pre- If the coefficient of degree of convergence being arranged, for measuring flow, the first predetermined coefficient is less than or equal to 1.
Particularly, the first predetermined coefficient can be identical as above-mentioned second predetermined coefficient.
In practice, speed limit processing will be for that will pass through the flow restriction to target value of interface or less.Here, target value can be Preset value, or the value determined based on the flow that current goal electronic equipment is forwarded.
It is appreciated that ratio is greater than or equal to the first predetermined coefficient, it may be said that bright to enter the stream that direction interface flows into from target Amount is most of all to go out the outflow of direction interface from target, and then can characterize that flow enters direction interface in target and target goes out direction and connects It is restrained on the communication link that mouth is constituted, direction interface can be entered to target respectively at this time and target goes out direction interface and carries out speed limit Processing, to realize the speed limit to the communication link, thus, it is possible to further increase the validity of speed limit.
In some optional implementations of the present embodiment, above-mentioned executing subject may also respond to identified ratio Less than the first predetermined coefficient, goes out direction interface from target and target enters in the interface of direction that interface is selected to carry out speed limit processing.
Herein, ratio is less than the first predetermined coefficient, can characterize that flow enters direction interface in target and target goes out direction It is not restrained on the communication link that interface is constituted.Specifically, may include two kinds of situations, the first situation is that target enters direction and connects Mouth constitutes communication links with multiple direction interfaces out, wherein multiple direction interfaces out include that target goes out direction interface, and then inflow The flow that target enters direction interface will share multiple communication links, so flow enters direction interface in target and target goes out direction It is not restrained on the communication link that interface is constituted, direction interface can be gone out to target at this time and carry out speed limit processing, to reduce to mesh When marking into the progress speed limit processing of direction interface, to other communication links, (i.e. target enters the corresponding multiple communication links of direction interface In communication link in addition to target goes out the corresponding communication link of direction interface) influence.
Second situation be target go out direction interface and it is multiple enter direction interface constitute communication link, wherein multiple sides of entering It include that target enters direction interface, and then comes from multiple communication links by the flow that target goes out direction interface to interface, so stream Amount enters direction interface in target and target goes out on the communication link that direction interface is constituted and do not restrain, at this time can be to the target side of entering Speed limit processing is carried out to interface, when going out the progress speed limit processing of direction interface to target to reduce, to other communication link (i.e. targets Communication link in the corresponding multiple communication links of direction interface in addition to target enters the corresponding communication link of direction interface out) It influences.
Figure 4, it is seen that the method for handling information compared with the corresponding embodiment of Fig. 2, in the present embodiment Process 400 highlight after determining that target enters direction interface and target goes out direction interface, based in the target histories time Enter the flow of direction interface by target in section and go out the ratio of the flow of direction interface by target, direction interface is gone out to target Enter the step of interface in the interface of direction carries out speed limit processing with target.Specifically, being greater than or equal to the first default system in ratio When number, it can characterize that flow enters direction interface in target and target goes out on the communication link that direction interface is constituted to restrain, at this time Direction interface can be entered to target respectively and target goes out direction interface and carries out speed limit processing, to realize the limit to the communication link Speed, thus, it is possible to further increase the validity of speed limit.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, present disclose provides one kind for handling letter One embodiment of the device of breath, the Installation practice is corresponding with embodiment of the method shown in Fig. 2, which can specifically answer For in various electronic equipments.
As shown in figure 5, the device 500 for handling information of the present embodiment includes: that first acquisition unit 501, first is true Order member 502, second acquisition unit 503, the second determination unit 504 and the first speed limit unit 505.Wherein, first acquisition unit 501 are configured in response to detect target information, obtain the flow letter at least one forwarding end that target electronic device includes Breath, wherein the flow that target information is used to indicate target electronic device is greater than or equal to preset flow threshold value, forwards end and user Corresponding, for being corresponding user's converting flow, flow information, which was used to indicate in the target histories period, forwards end to be forwarded Flow;First determination unit 502 is configured to determine from least one forwarding end in mesh based on acquired flow information The most forwarding end of the flow forwarded in mark historical time section forwards end as target;Second acquisition unit 503 is configured to It obtains at least one flow sub-information for entering direction interface that target forwarding end includes and goes out the flow of direction interface at least one Sub-information, wherein flow sub-information is used to indicate the flow for passing through interface within the target histories period;Second determination unit 504 are configured to be based respectively on the acquired flow sub-information for entering direction interface and out the flow sub-information of direction interface, really It sets the goal and goes out direction interface into direction interface and target;First speed limit unit 505 is configured to enter target in direction interface and mesh The interface marked in the interface of direction carries out speed limit processing.
It in the present embodiment, can be in response to by wired for handling the first acquisition unit 501 of the device 500 of information Connection type or radio connection obtain target electronic device (such as Fig. 1 institute from target information is remotely-or locally detected The server shown) include at least one forwarding end flow information.Wherein, target information is used to indicate target electronic device Flow is greater than or equal to preset flow threshold value.
Target electronic device is the electronic equipment to carry out speed limit to its flow.Preset flow threshold value can be technical staff Pre-set flow maximum.Target electronic device may include at least one forwarding end.It forwards end corresponding with user, uses In for corresponding user's converting flow.
Forwarding end can be hardware, or software.Each forwarding end may include at least one enter direction interface and At least one goes out direction interface.Entering direction interface is the interface that communication link is flowed into for flow, and direction interface is for flowing out Measure the interface of outgoing communication link.
Flow information is used to indicate the flow that forwarding end is forwarded in the target histories period.The target histories period can be with For using current time as terminal, the historical time section of Shi Changwei preset duration.
In the present embodiment, the flow information obtained based on first acquisition unit 501, the first determination unit 502 can be from It determines that the flow forwarded within the target histories period is most at least one forwarding end that target electronic device includes to turn Originator forwards end as target.
In the present embodiment, end is forwarded based on the target that the first determination unit 502 determines, second acquisition unit 503 can be with From it is local or from target electronic device obtain at least one that target forwarding end includes enter direction interface flow sub-information and to Few one goes out the flow sub-information of direction interface.Wherein, flow sub-information is used to indicate passes through within the above-mentioned target histories period Cross the flow of interface.
In the present embodiment, the flow sub-information for entering direction interface obtained based on second acquisition unit 503, second determines Unit 504 can determine that target enters direction interface, and flow for going out direction interface obtained based on second acquisition unit 503 Information, the second determination unit 504 can determine that target goes out direction interface.Wherein, target enters direction interface and target goes out direction and connects Mouth is the interface to carry out speed limit processing to it.
In the present embodiment, the target determined based on the second determination unit 504 enters direction interface and target goes out direction and connects Mouthful, the first speed limit unit 505 can enter direction interface to target and target goes out the interface in the interface of direction and carries out speed limit processing.
In some optional implementations of the present embodiment, second acquisition unit 503 can be further configured to: right Enter direction interface at least one that target forwarding end includes and at least one goes out the interface in the interface of direction, obtains the interface Destination number flow sub-information, wherein destination number flow sub-information corresponds to the destination number in the target histories period A historical time period, flow sub-information are used to indicate the flow for passing through interface within the corresponding historical time period.
In some optional implementations of the present embodiment, the second determination unit 504 may include: the first determining module (not shown) is configured to execute following steps for the historical time period in the destination number historical time period: Based on the historical time period it is corresponding enter direction interface flow sub-information, determine flow it is most enter direction interface as should The historical time period, corresponding candidate entered direction interface;Flow letter based on the historical time period corresponding direction interface out Breath determines that the most direction interface that goes out of flow goes out direction interface as the historical time period corresponding candidate;Second determines mould Block (not shown) is configured to enter direction interface based on identified destination number candidate, determines that target enters direction and connects Mouthful, and based on the candidate direction interface out of identified destination number, determine that target goes out direction interface.
In some optional implementations of the present embodiment, the second determining module can be further configured to: be determined Identified destination number candidate enter whether direction interface identical and destination number it is candidate go out direction interface whether phase Together;In response to determining that it is identical that destination number candidate enters direction interface, and the candidate direction interface out of destination number is identical, by phase With candidate enter direction interface and be determined as target to enter direction interface, and by it is identical it is candidate go out direction interface be determined as target and go out Direction interface.
In some optional implementations of the present embodiment, the first speed limit unit 505 may include: third determining module (not shown) is configured to determine within the target histories period and enters the flow of direction interface by target and by target The ratio of the flow of direction interface out;It is big to be configured in response to identified ratio for first speed limit module (not shown) In or equal to the first predetermined coefficient, direction interface is gone out to target respectively and target enters direction interface and carries out speed limit processing.
In some optional implementations of the present embodiment, the first speed limit unit 505 can also include: the second speed limit mould Block (not shown), be configured in response to determined by ratio less than the first predetermined coefficient, from target go out direction interface and Target, which enters in the interface of direction, selects interface to carry out speed limit processing.
In some optional implementations of the present embodiment, the first speed limit unit 505 can be further configured to: base In such as lower inequality, direction interface entered to target and interface that target goes out in the interface of direction carries out speed limit processing: S≤T*K+Ft- Fc, wherein S is for characterizing speed limit value;T is for characterizing preset flow threshold value;K is for characterizing the second predetermined coefficient;FtFor characterizing The flow of current goal electronic equipment;FcThe flow forwarded for characterizing current goal forwarding end.
In some optional implementations of the present embodiment, target electronic device belongs to predetermined electronic equipment collection Group;And first acquisition unit 501 can be further configured to: in response to detecting target information, from electronic equipment cluster Middle selection electronic equipment is as target electronic device, and obtains the flow at least one forwarding end that target electronic device includes Information.
In some optional implementations of the present embodiment, device 500 can also include: the second speed limit unit (in figure It is not shown), the electronics being configured in electronic equipment that include for electronic equipment cluster, in addition to target electronic device is set It is standby, execute following steps: determine it is in the electronic equipment, enter with target direction interface it is corresponding enter direction interface and and target The corresponding direction interface out in direction out;To it is in the electronic equipment, enter with target direction it is corresponding enter direction interface and with The interface that target goes out in the corresponding direction interface out of direction interface carries out speed limit processing.
It is understood that all units recorded in the device 500 and each step phase in the method with reference to Fig. 2 description It is corresponding.As a result, above with respect to the operation of method description, the beneficial effect of feature and generation be equally applicable to device 500 and its In include unit, details are not described herein.
The device provided by the above embodiment 500 of the disclosure can in the case where the flow of target electronic device transfinites, The interface for automatically treating speed limit carries out positioning and speed limit, improves the efficiency of information processing;Also, the disclosure can will limit Speed embody to forwarding end in target interface, compared to the prior art in directly to forwarding end carry out speed limit, can reduce limit Influence of the speed to other interfaces in forwarding end in addition to target interface, improves the specific aim and validity of speed limit.
Below with reference to Fig. 6, it illustrates the electronic equipment (prison of example as shown in figure 1 for being suitable for being used to realize the embodiment of the present disclosure Control equipment) 600 structural schematic diagram.Electronic equipment in the embodiment of the present disclosure can include but is not limited to such as smart phone, The mobile terminal of laptop, PAD (tablet computer) etc. and such as number TV, desktop computer etc. are fixed eventually End.Electronic equipment shown in Fig. 6 is only an example, should not function to the embodiment of the present disclosure and use scope bring it is any Limitation.
As shown in fig. 6, electronic equipment 600 may include processing unit (such as central processing unit, graphics processor etc.) 601, random access can be loaded into according to the program being stored in read-only memory (ROM) 602 or from storage device 608 Program in memory (RAM) 603 and execute various movements appropriate and processing.In RAM 603, it is also stored with electronic equipment Various programs and data needed for 600 operations.Processing unit 601, ROM 602 and RAM 603 pass through the phase each other of bus 604 Even.Input/output (I/O) interface 605 is also connected to bus 604.
In general, following device can connect to I/O interface 605: including such as touch screen, touch tablet, keyboard, mouse, taking the photograph As the input unit 606 of head, microphone, accelerometer, gyroscope etc.;Including such as liquid crystal display (LCD), loudspeaker, vibration The output device 607 of dynamic device etc.;Storage device 608 including such as tape, hard disk etc.;And communication device 609.Communication device 609, which can permit electronic equipment 600, is wirelessly or non-wirelessly communicated with other equipment to exchange data.Although Fig. 6 shows tool There is the electronic equipment 600 of various devices, it should be understood that being not required for implementing or having all devices shown.It can be with Alternatively implement or have more or fewer devices.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be carried on computer-readable medium On computer program, which includes the program code for method shown in execution flow chart.In such reality It applies in example, which can be downloaded and installed from network by communication device 609, or from storage device 608 It is mounted, or is mounted from ROM 602.When the computer program is executed by processing unit 601, the embodiment of the present disclosure is executed Method in the above-mentioned function that limits.
It should be noted that computer-readable medium described in the disclosure can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the disclosure, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In open, computer-readable signal media may include in a base band or as the data-signal that carrier wave a part is propagated, In carry computer-readable program code.The data-signal of this propagation can take various forms, including but not limited to Electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer-readable and deposit Any computer-readable medium other than storage media, the computer-readable signal media can send, propagate or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: electric wire, optical cable, RF (radio frequency) etc. are above-mentioned Any appropriate combination.
Above-mentioned computer-readable medium can be included in above-mentioned electronic equipment;It is also possible to individualism, and not It is fitted into the electronic equipment.Above-mentioned computer-readable medium carries one or more program, when said one or more When a program is executed by the electronic equipment, so that the electronic equipment: in response to detecting target information, obtaining target electronic device Including at least one forwarding end flow information, wherein the flow that target information is used to indicate target electronic device be greater than or It equal to preset flow threshold value, forwards end corresponding with user, is used to be corresponding user's converting flow, flow information is used to indicate The flow that forwarding end is forwarded in the target histories period;Based on acquired flow information, from least one forwarding end really The most forwarding end of the flow forwarded in the target histories period is scheduled on as target and forwards end;Obtaining target forwarding end includes At least one enter direction interface flow sub-information and at least one go out the flow sub-information of direction interface, wherein flow Information is used to indicate the flow for passing through interface within the target histories period;It is based respectively on the acquired flow for entering direction interface The flow sub-information of sub-information and out direction interface determines that target enters direction interface and target goes out direction interface;To the target side of entering Go out the interface in the interface of direction to interface and target and carries out speed limit processing.
The calculating of the operation for executing the disclosure can be write with one or more programming languages or combinations thereof Machine program code, described program design language include object oriented program language-such as Java, Smalltalk, C+ +, it further include conventional procedural programming language-such as " C " language or similar programming language.Program code can Fully to execute, partly execute on the user computer on the user computer, be executed as an independent software package, Part executes on the remote computer or executes on a remote computer or server completely on the user computer for part. In situations involving remote computers, remote computer can pass through the network of any kind --- including local area network (LAN) Or wide area network (WAN)-is connected to subscriber computer, or, it may be connected to outer computer (such as utilize Internet service Provider is connected by internet).
Flow chart and block diagram in attached drawing are illustrated according to the system of the various embodiments of the disclosure, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of the module, program segment or code include one or more use The executable instruction of the logic function as defined in realizing.It should also be noted that in some implementations as replacements, being marked in box The function of note can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are actually It can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it to infuse Meaning, the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart can be with holding The dedicated hardware based system of functions or operations as defined in row is realized, or can use specialized hardware and computer instruction Combination realize.
Being described in unit involved in the embodiment of the present disclosure can be realized by way of software, can also be by hard The mode of part is realized.Wherein, the title of unit does not constitute the restriction to the unit itself under certain conditions, for example, the One acquiring unit is also described as " obtaining the unit of flow information ".
Above description is only the preferred embodiment of the disclosure and the explanation to institute's application technology principle.Those skilled in the art Member is it should be appreciated that the open scope involved in the disclosure, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic Scheme, while should also cover in the case where not departing from design disclosed above, it is carried out by above-mentioned technical characteristic or its equivalent feature Any combination and the other technical solutions formed.Such as features described above has similar function with (but being not limited to) disclosed in the disclosure Can technical characteristic replaced mutually and the technical solution that is formed.

Claims (20)

1. a kind of method for handling information, comprising:
In response to detecting target information, the flow information at least one forwarding end that target electronic device includes is obtained, wherein The flow that target information is used to indicate target electronic device is greater than or equal to preset flow threshold value, and forwarding end is corresponding with user, For for corresponding user's converting flow, flow information to be used to indicate the flow that forwarding end is forwarded in the target histories period;
Based on acquired flow information, determines from least one described forwarding end and turn within the target histories period The most forwarding end of the flow of hair forwards end as target;
Obtain at least one that target forwarding end includes enter direction interface flow sub-information and at least one go out direction and connect The flow sub-information of mouth, wherein flow sub-information is used to indicate the flow for passing through interface within the target histories period;
It is based respectively on the acquired flow sub-information for entering direction interface and out the flow sub-information of direction interface, determines that target enters Direction interface and target go out direction interface;
Direction interface entered to the target and interface that the target goes out in the interface of direction carries out speed limit processing.
2. according to the method described in claim 1, wherein, at least one described for obtaining target forwarding end enters direction interface Flow sub-information and at least one flow sub-information for going out direction interface include:
For the target forwarding end include at least one enter direction interface and at least one go out the interface in the interface of direction, obtain Take the destination number flow sub-information of the interface, wherein destination number flow sub-information corresponds to the target histories time Destination number historical time period in section, flow sub-information are used to indicate within the corresponding historical time period by interface Flow.
3. described to be based respectively on the acquired flow sub-information for entering direction interface according to the method described in claim 2, wherein The flow sub-information of direction interface out determines that target enters direction interface and target goes out direction interface and includes:
For the historical time period in the destination number historical time period, following steps are executed: when being based on the history Between the period it is corresponding enter direction interface flow sub-information, determine flow it is most enter direction interface as the historical time period Corresponding candidate enters direction interface;Based on the flow sub-information of the historical time period corresponding direction interface out, flow is determined Most goes out direction interface as the historical time period corresponding candidate direction interface out;
Enter direction interface based on identified destination number candidate, determines that target enters direction interface, and based on determined by The candidate direction interface out of destination number, determines that target goes out direction interface.
4. it is described that direction interface is entered based on identified destination number candidate according to the method described in claim 3, wherein, It determines that target enters direction interface, and based on the candidate direction interface out of identified destination number, determines that target goes out direction and connects Mouthful include:
Destination number candidate determined by determining enters whether direction interface is identical and the candidate direction interface out of destination number It is whether identical;
In response to determining that it is identical that destination number candidate enters direction interface, and the candidate direction interface out of destination number is identical, will Identical candidate, which enters direction interface and is determined as target, enters direction interface, and by it is identical it is candidate go out direction interface be determined as target Direction interface out.
It is described direction interface to be entered to the target and the target goes out direction and connects 5. according to the method described in claim 1, wherein Interface in mouthful carries out speed limit processing
It determines and enters the flow of direction interface by the target within the target histories period and go out side by the target To the ratio of the flow of interface;
It is greater than or equal to the first predetermined coefficient in response to identified ratio, direction interface and the mesh is gone out to the target respectively It marks and carries out speed limit processing into direction interface.
It is described direction interface to be entered to the target and the target goes out direction and connects 6. according to the method described in claim 5, wherein Interface in mouthful carries out speed limit processing further include:
It is less than first predetermined coefficient in response to identified ratio, goes out direction interface and the target side of entering from the target Interface is selected to carry out speed limit processing into interface.
It is described direction interface to be entered to the target and the target goes out direction and connects 7. according to the method described in claim 1, wherein Interface in mouthful carries out speed limit processing
Based on such as lower inequality, direction interface is entered to the target and the target goes out the interface in the interface of direction and carries out at speed limit Reason:
S≤T*K+Ft-Fc,
Wherein, S is for characterizing speed limit value;T is for characterizing preset flow threshold value;K is for characterizing the second predetermined coefficient;FtFor table Levy the flow of current goal electronic equipment;FcThe flow forwarded for characterizing current goal forwarding end.
8. method described in one of -7 according to claim 1, wherein the target electronic device belongs to predetermined electronics and sets Standby cluster;And
It is described in response to detecting target information, obtain the flow information packet at least one forwarding end that target electronic device includes It includes:
In response to detecting target information, electronic equipment is chosen from the electronic equipment cluster as target electronic device, with And obtain the flow information at least one forwarding end that target electronic device includes.
9. according to the method described in claim 8, wherein, the method also includes:
Electronic equipment in electronic equipment that include for the electronic equipment cluster, in addition to the target electronic device, Execute following steps: determine it is in the electronic equipment, enter with the target direction interface it is corresponding enter direction interface and with institute It states target and goes out the corresponding direction interface out in direction;To it is in the electronic equipment, enter with the target the corresponding side of entering in direction To interface and with the target go out direction interface it is corresponding go out direction interface in interface carry out speed limit processing.
10. a kind of for handling the device of information, comprising:
First acquisition unit is configured in response to detect target information, obtains target electronic device includes at least one Forward the flow information at end, wherein the flow that target information is used to indicate target electronic device is greater than or equal to preset flow threshold Value, forwarding end is corresponding with user, is used to be corresponding user's converting flow, flow information is used to indicate the target histories period The flow that interior forwarding end is forwarded;
First determination unit is configured to determine from least one described forwarding end in institute based on acquired flow information The most forwarding end of the flow forwarded in the target histories period is stated as target and forwards end;
Second acquisition unit is configured to obtain the flow letter that at least one that target forwarding end includes enters direction interface Breath goes out the flow sub-information of direction interface at least one, wherein flow sub-information was used to indicate in the target histories time By the flow of interface in section;
Second determination unit is configured to be based respectively on the acquired flow sub-information for entering direction interface and out direction interface Flow sub-information determines that target enters direction interface and target goes out direction interface;
First speed limit unit, is configured to enter the target direction interface and interface that the target goes out in the interface of direction carries out Speed limit processing.
11. device according to claim 10, wherein the second acquisition unit is further configured to:
For the target forwarding end include at least one enter direction interface and at least one go out the interface in the interface of direction, obtain Take the destination number flow sub-information of the interface, wherein destination number flow sub-information corresponds to the target histories time Destination number historical time period in section, flow sub-information are used to indicate within the corresponding historical time period by interface Flow.
12. device according to claim 11, wherein second determination unit includes:
First determining module is configured to execute the historical time period in the destination number historical time period Following steps: based on the historical time period it is corresponding enter direction interface flow sub-information, determine flow it is most enter direction Interface enters direction interface as the historical time period corresponding candidate;Based on the historical time period corresponding direction interface out Flow sub-information, determine flow it is most go out direction interface as the historical time period it is corresponding it is candidate go out direction interface;
Second determining module is configured to enter direction interface based on identified destination number candidate, determines that target enters direction Interface, and based on the candidate direction interface out of identified destination number, determine that target goes out direction interface.
13. device according to claim 12, wherein second determining module is further configured to:
Destination number candidate determined by determining enters whether direction interface is identical and the candidate direction interface out of destination number It is whether identical;
In response to determining that it is identical that destination number candidate enters direction interface, and the candidate direction interface out of destination number is identical, will Identical candidate, which enters direction interface and is determined as target, enters direction interface, and by it is identical it is candidate go out direction interface be determined as target Direction interface out.
14. device according to claim 10, wherein the first speed limit unit includes:
Third determining module is configured to determine the stream for entering direction interface by the target within the target histories period The ratio of amount and the flow for going out direction interface by the target;
First speed limit module is configured in response to identified ratio and is greater than or equal to the first predetermined coefficient, respectively to described Target goes out direction interface and the target enters direction interface and carries out speed limit processing.
15. device according to claim 14, wherein the first speed limit unit further include:
Second speed limit module is configured in response to identified ratio and is less than first predetermined coefficient, goes out from the target Direction interface and the target, which enter in the interface of direction, selects interface to carry out speed limit processing.
16. device according to claim 10, wherein the first speed limit unit is further configured to:
Based on such as lower inequality, direction interface is entered to the target and the target goes out the interface in the interface of direction and carries out at speed limit Reason:
S≤T*K+Ft-Fc,
Wherein, S is for characterizing speed limit value;T is for characterizing preset flow threshold value;K is for characterizing the second predetermined coefficient;FtFor table Levy the flow of current goal electronic equipment;FcThe flow forwarded for characterizing current goal forwarding end.
17. device described in one of 0-16 according to claim 1, wherein the target electronic device belongs to predetermined electricity Sub- device clusters;And
The first acquisition unit is further configured to:
In response to detecting target information, electronic equipment is chosen from the electronic equipment cluster as target electronic device, with And obtain the flow information at least one forwarding end that target electronic device includes.
18. device according to claim 17, wherein described device further include:
Second speed limit unit, be configured to it is including for the electronic equipment cluster, in addition to the target electronic device Electronic equipment in electronic equipment executes following steps: determining that in the electronic equipment, to enter direction interface with the target opposite Answer enter direction interface and with the target go out direction it is corresponding go out direction interface;To in the electronic equipment and mesh Mark direction it is corresponding enter direction interface and with the target go out direction interface it is corresponding go out direction interface in interface into The processing of row speed limit.
19. a kind of electronic equipment, comprising:
One or more processors;
Storage device is stored thereon with one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real The now method as described in any in claim 1-9.
20. a kind of computer-readable medium, is stored thereon with computer program, wherein the realization when program is executed by processor Method as described in any in claim 1-9.
CN201910676013.3A 2019-07-25 2019-07-25 Method and device for processing information Active CN110401603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910676013.3A CN110401603B (en) 2019-07-25 2019-07-25 Method and device for processing information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910676013.3A CN110401603B (en) 2019-07-25 2019-07-25 Method and device for processing information

Publications (2)

Publication Number Publication Date
CN110401603A true CN110401603A (en) 2019-11-01
CN110401603B CN110401603B (en) 2023-07-28

Family

ID=68325946

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910676013.3A Active CN110401603B (en) 2019-07-25 2019-07-25 Method and device for processing information

Country Status (1)

Country Link
CN (1) CN110401603B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887218A (en) * 2020-12-22 2021-06-01 新华三技术有限公司 Message forwarding method and device

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960314A (en) * 2005-11-02 2007-05-09 中兴通讯股份有限公司 Flow control system and method based on interface set
CN101123587A (en) * 2007-09-13 2008-02-13 杭州华三通信技术有限公司 Traffic control method and device for switch service flow
CN101136839A (en) * 2006-08-31 2008-03-05 中兴通讯股份有限公司 Method and equipment for discovering and controlling terminal-to-terminal equity network user flux
US7626938B1 (en) * 2005-03-31 2009-12-01 Marvell Israel (M.I.S.L) Ltd. Local area network switch using control plane packet mirroring to support multiple network traffic analysis devices
CN102356609A (en) * 2011-08-24 2012-02-15 华为技术有限公司 Flow control method of switched network and device
CN102594671A (en) * 2012-02-08 2012-07-18 中兴通讯股份有限公司 Speed-limiting method and device for users
JP2015050479A (en) * 2013-08-29 2015-03-16 株式会社オー・エフ・ネットワークス Packet switch, packet switching method and band control program
CN105703928A (en) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 Traffic adjustment method and traffic adjustment device
WO2016112656A1 (en) * 2015-01-12 2016-07-21 中兴通讯股份有限公司 Service processing method and device
CN106230741A (en) * 2016-09-18 2016-12-14 杭州迪普科技有限公司 A kind of method and apparatus that message is carried out speed limit
CN106878116A (en) * 2016-12-06 2017-06-20 新华三技术有限公司 Limit Rate method and apparatus
CN107770088A (en) * 2017-09-06 2018-03-06 阿里巴巴集团控股有限公司 A kind of flow control methods and device
US20180248714A1 (en) * 2015-09-28 2018-08-30 Intel Corporation Multipath traffic management
CN109246026A (en) * 2018-08-13 2019-01-18 中国平安人寿保险股份有限公司 Traffic management and control method, apparatus, equipment and storage medium
CN109756426A (en) * 2017-11-01 2019-05-14 南京烽火软件科技有限公司 Customer flow control device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7626938B1 (en) * 2005-03-31 2009-12-01 Marvell Israel (M.I.S.L) Ltd. Local area network switch using control plane packet mirroring to support multiple network traffic analysis devices
CN1960314A (en) * 2005-11-02 2007-05-09 中兴通讯股份有限公司 Flow control system and method based on interface set
CN101136839A (en) * 2006-08-31 2008-03-05 中兴通讯股份有限公司 Method and equipment for discovering and controlling terminal-to-terminal equity network user flux
CN101123587A (en) * 2007-09-13 2008-02-13 杭州华三通信技术有限公司 Traffic control method and device for switch service flow
CN102356609A (en) * 2011-08-24 2012-02-15 华为技术有限公司 Flow control method of switched network and device
CN102594671A (en) * 2012-02-08 2012-07-18 中兴通讯股份有限公司 Speed-limiting method and device for users
JP2015050479A (en) * 2013-08-29 2015-03-16 株式会社オー・エフ・ネットワークス Packet switch, packet switching method and band control program
CN105703928A (en) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 Traffic adjustment method and traffic adjustment device
WO2016112656A1 (en) * 2015-01-12 2016-07-21 中兴通讯股份有限公司 Service processing method and device
US20180248714A1 (en) * 2015-09-28 2018-08-30 Intel Corporation Multipath traffic management
CN106230741A (en) * 2016-09-18 2016-12-14 杭州迪普科技有限公司 A kind of method and apparatus that message is carried out speed limit
CN106878116A (en) * 2016-12-06 2017-06-20 新华三技术有限公司 Limit Rate method and apparatus
CN107770088A (en) * 2017-09-06 2018-03-06 阿里巴巴集团控股有限公司 A kind of flow control methods and device
CN109756426A (en) * 2017-11-01 2019-05-14 南京烽火软件科技有限公司 Customer flow control device
CN109246026A (en) * 2018-08-13 2019-01-18 中国平安人寿保险股份有限公司 Traffic management and control method, apparatus, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112887218A (en) * 2020-12-22 2021-06-01 新华三技术有限公司 Message forwarding method and device

Also Published As

Publication number Publication date
CN110401603B (en) 2023-07-28

Similar Documents

Publication Publication Date Title
CN109523187A (en) Method for scheduling task, device and equipment
CN109858445A (en) Method and apparatus for generating model
CN109324977A (en) Detection method, device and the electronic equipment of application program Caton
CN108880931A (en) Method and apparatus for output information
CN109426593A (en) The method and apparatus of automatic evaluation system performance
CN109815365A (en) Method and apparatus for handling video
CN109308490A (en) Method and apparatus for generating information
CN110213614A (en) The method and apparatus of key frame are extracted from video file
CN110502665A (en) Method for processing video frequency and device
CN109961141A (en) Method and apparatus for generating quantization neural network
CN108182472A (en) For generating the method and apparatus of information
CN110070076A (en) Method and apparatus for choosing trained sample
CN109902446A (en) Method and apparatus for generating information prediction model
CN115085196A (en) Power load predicted value determination method, device, equipment and computer readable medium
CN109949806A (en) Information interacting method and device
CN110401603A (en) Method and apparatus for handling information
CN109885564A (en) Method and apparatus for sending information
CN110503181A (en) Method and apparatus for generating multilayer neural network
CN111158881B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN110009101A (en) Method and apparatus for generating quantization neural network
CN110727558A (en) Information prompting method and device, storage medium and electronic equipment
CN109840072A (en) Information processing method and device
CN115187364A (en) Method and device for monitoring deposit risk under bank distributed scene
CN109976858A (en) The display control method of Application Program Interface, device and its equipment in electronic equipment
CN113034580B (en) Image information detection method and device and electronic 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
GR01 Patent grant
GR01 Patent grant