CN101977130A - Method and device for monitoring bandwidth of Ethernet port in real time - Google Patents

Method and device for monitoring bandwidth of Ethernet port in real time Download PDF

Info

Publication number
CN101977130A
CN101977130A CN2010105173776A CN201010517377A CN101977130A CN 101977130 A CN101977130 A CN 101977130A CN 2010105173776 A CN2010105173776 A CN 2010105173776A CN 201010517377 A CN201010517377 A CN 201010517377A CN 101977130 A CN101977130 A CN 101977130A
Authority
CN
China
Prior art keywords
ethernet
ratio
band width
port
side port
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2010105173776A
Other languages
Chinese (zh)
Inventor
辜光辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2010105173776A priority Critical patent/CN101977130A/en
Publication of CN101977130A publication Critical patent/CN101977130A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method and device for monitoring the bandwidth of an Ethernet port in real time. The method comprises the following steps of: periodically acquiring the byte number of data transmitted at the Ethernet port; and calculating the occupancy rate of the bandwidth of the Ethernet port in real time according to the acquired byte number. According to the invention, the bandwidth occupied at the Ethernet port can be monitored in real time.

Description

A kind of method and device of real-time monitoring ethernet side port band width
Technical field
The present invention relates to communication technical field, more particularly, relate to a kind of method and device of real-time monitoring ethernet side port band width.
Background technology
Along with network and development of Communication Technique, traditional single, fixing professional presentation mode can not satisfy clients' demand.Data service occupies increasing proportion in network, operators did not stop the upgrading optimization to existing network and equipment, and the abundant business type improves network throughput by every means.Current SDH (Synchronous Digital Hierarchy, SDH (Synchronous Digital Hierarchy)) network has progressively begun to upgrade to grouping conveying network.In grouping conveying network, ethernet port disposes flexibly with it and is widely used.
The use of ethernet port at present has been not limited to client's side, and ethernet port also accounts for significant proportion in the application of network side.Based on ethernet port operators constantly for the user provide efficient, flexibly, the service of variation and differentiation.For the ease of safeguarding, various performance accounting methods are provided in the network, such as according to packet byte length statistics, according to QoS (service quality) the priority statistics of business, according to abnormal frame byte statistics, according to the frame type statistics etc.
Because Ethernet service is sudden more intense, region and time distribute also inhomogeneous.For operator, the utilance of existing resource in the awareness network clearly plays an important role to the arrangement and the adjusting of resource.Whether and according to prior art, operator can not know whether each port reaches certain professional saturation according to the utilance statistics of resource, exist some resources to utilize inadequate situation for a long time, and whether the long-time professional transition of certain port is saturated.
Summary of the invention
Technical problem to be solved by this invention provides a kind of real-time monitoring ethernet side port band width and method and apparatus, so that the bandwidth occupancy of the port in the Ethernet is monitored in real time.
In order to solve the problems of the technologies described above, the invention provides a kind of method of real-time monitoring ethernet side port band width, comprising:
Gather the byte number of ethernet port transmission data periodically;
Calculate the ratio that takies of ethernet side port band width in real time according to the byte number of described collection.
Further, said method also has following characteristics: described step of gathering the byte number of ethernet port transmission data periodically is specially:
Read the byte number of ethernet port transmission data periodically; Perhaps
Transmit the byte number of data periodically according to the frame length calculations ethernet port.
Further, said method also has following characteristics: the step that takies ratio that described byte number according to described collection calculates the ethernet side port band width in real time comprises:
Calculate the transmission rate of ethernet port in real time according to the byte number of described collection;
Calculate the ratio of the band width in physical of described transmission rate and described ethernet port, this ratio is the ratio that takies of described ethernet side port band width.
Further, said method also has following characteristics: described byte number according to described collection calculates after the step that takies ratio of ethernet side port band width in real time, also comprises:
Store described calculating constituent parts time ethernet side port band width take ratio;
According to the constituent parts time ethernet side port band width of storage take that ratio draws the ethernet side port band width take ratio and time relation curve chart.
Further, said method also has following characteristics: after the step that takies ratio of the ethernet side port band width of the constituent parts time of described storage computation, also comprise:
The ratio that takies that shows described ethernet side port band width.
Further, said method also has following characteristics: described byte number according to described collection calculates after the step that takies ratio of ethernet side port band width in real time, also comprises:
Surpass default threshold value if detect the ratio that takies of described ethernet side port band width, then trigger predetermined business.
Further, said method also has following characteristics: described ethernet port transmits data packets is drawn together:
The data that data that ethernet port receives or ethernet port send.
In order to address the above problem, the present invention also provides a kind of device of real-time monitoring ethernet side port band width, comprising:
Acquisition module is used for gathering periodically the byte number that ethernet port transmits data;
Monitoring module is used for calculating in real time according to the byte number of described collection the ratio that takies of ethernet side port band width.
Further, said apparatus also has following characteristics:
Described acquisition module specifically is used for reading the byte number that ethernet port transmits data periodically, perhaps reads the frame number of the various frames of ethernet port transmission data, calculates the byte number of transmission data according to frame number.
Further, said apparatus also has following characteristics:
Described monitoring module specifically is used for calculating in real time according to the byte number of described collection the transmission rate of ethernet port, calculates the ratio of the band width in physical of described transmission rate and described ethernet port, and this ratio is the ratio that takies of described ethernet side port band width.
Further, said apparatus also has following characteristics:
Memory module, be used to store described calculating constituent parts time ethernet side port band width take ratio;
The drawing module according to the ratio that takies of the constituent parts time ethernet side port band width of described memory module storage, is drawn the historical situation figure that takies ratio of ethernet side port band width.
Further, said apparatus also has following characteristics: also comprise: display module is used to show the ratio that takies of described ethernet side port band width.
Further, said apparatus also has following characteristics:
Described monitoring module also is used for reaching default threshold value if detect the ratio that takies of described ethernet side port band width, then triggers predetermined business.
Further, said apparatus also has following characteristics:
Described ethernet port transmits data packets is drawn together: the data that data that ethernet port receives or ethernet port send.
To sum up, the invention provides a kind of real-time monitoring ethernet side port band width and method and apparatus, bandwidth occupancy to the port in the Ethernet is monitored, can be for the user according to the bandwidth usage of each port on the monitored device, and further rationally reliable planning network resource; Can the trigger condition of the bandwidth occupancy ratio of ethernet port as intended service will be monitored in real time to equipment vendors.
Description of drawings
Fig. 1 is the schematic representation of apparatus of real-time monitoring ethernet side port band width of the present invention;
Fig. 2 is the flow chart of the method for real-time monitoring ethernet side port band width of the present invention;
Fig. 3 is the flow chart that takies ratio of calculating ethernet side port band width of the present invention;
Fig. 4 is the historical situation figure of the bandwidth occupancy ratio of ethernet port of the present invention.
Embodiment
In order to understand the present invention better, the present invention is done to describe further below in conjunction with the drawings and specific embodiments.
Fig. 1 is the schematic representation of apparatus of real-time monitoring ethernet side port band width of the present invention, and as shown in Figure 1, device of the present invention mainly comprises: acquisition module and monitoring module, wherein,
Acquisition module is used for gathering periodically the byte number that ethernet port transmits data;
Monitoring module is used for calculating in real time according to the byte number of described collection the ratio that takies of ethernet side port band width.
Wherein, set an acquisition time period T in acquisition module, the T value is more little, and to the tolerance of bandwidth with report can be timely more, but machine utilization can be big more.
Acquisition module can read the byte number that ethernet port receives data from exchange chip or network processes chip; Do not provide the performance that receives byte number as fruit chip, can add up the frame number of various frames this moment, and the frame number of the various frames that pass through multiply by the byte number that corresponding frame length obtains receiving.
Acquisition module can read the byte number that ethernet port sends data from exchange chip or network processes chip; With reception be same reason, if there is not the independent transmission frame number statistic property of chip, can calculate the byte number of transmission by frame number.
The collection of byte number is that the T circulation is carried out with the cycle.
Wherein, monitoring module specifically is used for calculating in real time according to the byte number of described collection the transmission rate of ethernet port, calculates the ratio of the band width in physical of described transmission rate and described ethernet port, and this ratio is the ratio that takies of described ethernet side port band width.
Particularly, the interior ethernet port of interval T computing time receives the byte number of data, by the byte number that receives data calculate current take ethernet port go into port band width (being the speed of current reception data), further calculate current ethernet port inlet bandwidth take ratio; And/or,
The interior ethernet port of interval T computing time sends the byte number of data, calculate the current outlet bandwidth (being the speed of current transmission data) that takies ethernet port by the byte number that sends data, further calculate current ethernet port outlet bandwidth take ratio.
Further, device of the present invention can also comprise memory module and drawing module, wherein,
Memory module, be used to store described calculating constituent parts time ethernet side port band width take ratio;
The drawing module according to the ratio that takies of the constituent parts time ethernet side port band width of described memory module storage, is drawn the historical situation figure that takies ratio of ethernet side port band width.
Device of the present invention can take ratio with current bandwidth and deposit history in, draw the condition diagram of the ethernet port bandwidth occupancy ratio of each time point according to history value, port bandwidth described here take than condition diagram with can with the statistics time be abscissa, ethernet port takies than being the curve image of ordinate or bar image.
Further, device of the present invention can also comprise display module, be used to show the ratio that takies of described ethernet side port band width, can show the condition diagram of described ethernet port bandwidth occupancy ratio, take ratio with inlet bandwidth occupancy ratio and the outlet bandwidth that offers the current ethernet port of user.
Monitoring module of the present invention also can be used for detecting in real time the situation about taking of ethernet side port band width, reaches default threshold value if detect the ratio that takies of described ethernet side port band width, then triggers predetermined business, for example switching services etc.
Fig. 2 is the flow chart of the method for real-time monitoring ethernet side port band width of the present invention, as shown in Figure 2, comprises following step:
S10, gather the byte number of ethernet port transmission data periodically;
S20, calculate the ratio that takies of ethernet side port band width in real time according to the byte number of described collection.
Wherein, in step S10, be responsible for obtaining of original transmitted byte number, need the current port of output to receive byte number and transmission byte number by above-mentioned acquisition module.This collecting work circulation is carried out.
The port band width of going into real-time monitoring ethernet port is that example describes below, and the method for the outlet bandwidth of monitoring ethernet port is similar with the method for going into port band width of monitoring ethernet port, here just no longer repeat specification:
Suppose that t1 constantly, enables the device of real-time monitoring ethernet side port band width of the present invention, it is T second that acquisition interval is set.Device of the present invention distributes one to gather storage space S 1 and S2, to the reception byte number n1 of S1 assignment ethernet port 1; Then, enable timing program, timing T is after the time arrives, to the reception byte number n2 of S2 assignment ethernet port 1; N1 and three parameters of n2, T are passed to monitoring module.
Step S20 can comprise following step, as shown in Figure 3:
S201, monitoring module receive three parameters such as byte number n1, n2 and time interval T;
S202, from the ethernet port configuration information, read the band width in physical B of ethernet port 1;
S203, calculating t2 be the current inlet rate b1 of ethernet port 1 constantly, b1=(n2-n1)/T;
S204, computation bandwidth take percentage p1=b1/B*100%, and p1 is passed to display module.
Further, display module is received after the p1 parameter, shows the current inlet rate of ethernet port 1 and takies ratio to the user.
Further, can memory allocated unit H, the p1 value is composed to history storage unit H[1] [1].The drawing module is according to H[1] [1] value draws out the position on curve chart in t2 moment, as shown in Figure 4.
According to the present invention, all ethernet ports all can be enabled port bandwidth of the present invention and monitor in real time on the equipment, and the monitoring of each port is separate, is independent of each other.
In the application facet of monitored results, can be for the user according to the bandwidth usage of each port on the monitored device, further rationally reliable planning network resource.The port traffic that is in saturation condition for a long time can be shared on other idle relatively device ports, perhaps to this generic port configuration protection.On the low side always for the port bandwidth occupancy, even be 0 port for a long time, the user can in time analyze reason, and such as whether this part port resource is in idle state always, whether this part port resource corresponding service is cancelled.The user can in time integrate existing idle port, puts in the new planning to make full use of existing resources.
In the application facet of monitored results, can the trigger condition of the bandwidth occupancy ratio of ethernet port as intended service (for example, miscellaneous services such as business, alarm, utilization rate of equipment and installations statistics are switched in protection) will be monitored in real time to equipment vendors.All can use in client's side and system side.For example; applying to protection switches in the business: the bandwidth usage threshold value that ethernet port can be set; trigger (partly or entirely) switching services when current ethernet port bandwidth usage surpasses threshold value, can alleviate like this by burst service and cause port to carry the saturated and loss of traffic that causes of transition.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to finish by program, described program can be stored in the computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuits to realize.Correspondingly, each the module/unit in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Below only be the preferred embodiments of the present invention; certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (14)

1. real-time method of monitoring ethernet side port band width comprises:
Gather the byte number of ethernet port transmission data periodically;
Calculate the ratio that takies of ethernet side port band width in real time according to the byte number of described collection.
2. the method for claim 1 is characterized in that, described step of gathering the byte number of ethernet port transmission data periodically is specially:
Read the byte number of ethernet port transmission data periodically; Perhaps
Transmit the byte number of data periodically according to the frame length calculations ethernet port.
3. the method for claim 1 is characterized in that, the step that takies ratio that described byte number according to described collection calculates the ethernet side port band width in real time comprises:
Calculate the transmission rate of ethernet port in real time according to the byte number of described collection;
Calculate the ratio of the band width in physical of described transmission rate and described ethernet port, this ratio is the ratio that takies of described ethernet side port band width.
4. the method for claim 1 is characterized in that, described byte number according to described collection calculates after the step that takies ratio of ethernet side port band width in real time, also comprises:
Store described calculating constituent parts time ethernet side port band width take ratio;
According to the constituent parts time ethernet side port band width of storage take that ratio draws the ethernet side port band width take ratio and time relation curve chart.
5. as each described method of claim 1-4, it is characterized in that, after the step that takies ratio of the ethernet side port band width of the constituent parts time of described storage computation, also comprise:
The ratio that takies that shows described ethernet side port band width.
6. as each described method of claim 1-4, it is characterized in that described byte number according to described collection calculates after the step that takies ratio of ethernet side port band width in real time, also comprises:
Surpass default threshold value if detect the ratio that takies of described ethernet side port band width, then trigger predetermined business.
7. as each described method of claim 1-4, it is characterized in that described ethernet port transmits data packets is drawn together:
The data that data that ethernet port receives or ethernet port send.
8. real-time device of monitoring ethernet side port band width comprises:
Acquisition module is used for gathering periodically the byte number that ethernet port transmits data;
Monitoring module is used for calculating in real time according to the byte number of described collection the ratio that takies of ethernet side port band width.
9. device as claimed in claim 8 is characterized in that,
Described acquisition module specifically is used for reading the byte number that ethernet port transmits data periodically, perhaps reads the frame number of the various frames of ethernet port transmission data, calculates the byte number of transmission data according to frame number.
10. device as claimed in claim 8 is characterized in that,
Described monitoring module specifically is used for calculating in real time according to the byte number of described collection the transmission rate of ethernet port, calculates the ratio of the band width in physical of described transmission rate and described ethernet port, and this ratio is the ratio that takies of described ethernet side port band width.
11. device as claimed in claim 8 is characterized in that, also comprises:
Memory module, be used to store described calculating constituent parts time ethernet side port band width take ratio;
The drawing module according to the ratio that takies of the constituent parts time ethernet side port band width of described memory module storage, is drawn the historical situation figure that takies ratio of ethernet side port band width.
12. as each described device of claim 8-11, it is characterized in that, also comprise:
Display module is used to show the ratio that takies of described ethernet side port band width.
13. as each described device of claim 8-11, it is characterized in that,
Described monitoring module also is used for reaching default threshold value if detect the ratio that takies of described ethernet side port band width, then triggers predetermined business.
14. as each described device of claim 8-11, it is characterized in that,
Described ethernet port transmits data packets is drawn together: the data that data that ethernet port receives or ethernet port send.
CN2010105173776A 2010-10-19 2010-10-19 Method and device for monitoring bandwidth of Ethernet port in real time Pending CN101977130A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105173776A CN101977130A (en) 2010-10-19 2010-10-19 Method and device for monitoring bandwidth of Ethernet port in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105173776A CN101977130A (en) 2010-10-19 2010-10-19 Method and device for monitoring bandwidth of Ethernet port in real time

Publications (1)

Publication Number Publication Date
CN101977130A true CN101977130A (en) 2011-02-16

Family

ID=43576977

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105173776A Pending CN101977130A (en) 2010-10-19 2010-10-19 Method and device for monitoring bandwidth of Ethernet port in real time

Country Status (1)

Country Link
CN (1) CN101977130A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102754390A (en) * 2012-04-28 2012-10-24 华为技术有限公司 Method, network device and system for ethernet ring protection switching
WO2017088374A1 (en) * 2015-11-27 2017-06-01 小米科技有限责任公司 Method of displaying network status information and device utilizing same
CN108882276A (en) * 2018-04-17 2018-11-23 南京创通微新通信有限公司 A kind of WIFI bandwidth saturation indicating means and equipment
CN109257304A (en) * 2017-07-12 2019-01-22 中兴通讯股份有限公司 A kind of bandwidth adjusting method, device, storage medium and the network equipment
CN115208786A (en) * 2022-06-21 2022-10-18 中汽创智科技有限公司 Method for monitoring bandwidth performance of vehicle-mounted Ethernet protocol stack and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155086A (en) * 2006-09-26 2008-04-02 中兴通讯股份有限公司 Network flux statistical method for broad band and narrow band integrated access equipment
CN101557321A (en) * 2009-05-21 2009-10-14 中兴通讯股份有限公司 Method for monitoring bandwidth of interface in distributed system and device
US20100110907A1 (en) * 2008-10-31 2010-05-06 Verizon Corporate Services Group, Inc. System and method for measuring interface utilization using policers
CN101729306A (en) * 2008-10-28 2010-06-09 中兴通讯股份有限公司 Method and system for testing downlink broadband of access line of broadband network user

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101155086A (en) * 2006-09-26 2008-04-02 中兴通讯股份有限公司 Network flux statistical method for broad band and narrow band integrated access equipment
CN101729306A (en) * 2008-10-28 2010-06-09 中兴通讯股份有限公司 Method and system for testing downlink broadband of access line of broadband network user
US20100110907A1 (en) * 2008-10-31 2010-05-06 Verizon Corporate Services Group, Inc. System and method for measuring interface utilization using policers
CN101557321A (en) * 2009-05-21 2009-10-14 中兴通讯股份有限公司 Method for monitoring bandwidth of interface in distributed system and device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102754390A (en) * 2012-04-28 2012-10-24 华为技术有限公司 Method, network device and system for ethernet ring protection switching
US9246751B2 (en) 2012-04-28 2016-01-26 Huawei Technologies Co., Ltd. Ethernet ring protection switching method, network device and system
WO2017088374A1 (en) * 2015-11-27 2017-06-01 小米科技有限责任公司 Method of displaying network status information and device utilizing same
CN109257304A (en) * 2017-07-12 2019-01-22 中兴通讯股份有限公司 A kind of bandwidth adjusting method, device, storage medium and the network equipment
CN108882276A (en) * 2018-04-17 2018-11-23 南京创通微新通信有限公司 A kind of WIFI bandwidth saturation indicating means and equipment
CN108882276B (en) * 2018-04-17 2021-06-22 南京创通微新通信有限公司 WIFI bandwidth saturation indication method and device
CN115208786A (en) * 2022-06-21 2022-10-18 中汽创智科技有限公司 Method for monitoring bandwidth performance of vehicle-mounted Ethernet protocol stack and storage medium

Similar Documents

Publication Publication Date Title
CN106850337B (en) Network quality detection method and device
US9282022B2 (en) Forensics for network switching diagnosis
US11108657B2 (en) QoE-based CATV network capacity planning and upgrade system
CN102045222B (en) Real-time overall test method of network system
US10333724B2 (en) Method and system for low-overhead latency profiling
US8081659B2 (en) Map message expediency monitoring and automatic delay adjustments in M-CMTS
US8792382B2 (en) System and method for tracking a line rate utilization
US11924681B2 (en) Adaptive in-band network telemetry for full network coverage
US20230231775A1 (en) Capacity planning and recommendation system
CN101977130A (en) Method and device for monitoring bandwidth of Ethernet port in real time
CN103634223B (en) A kind of dynamic control transmission method based on network service flow and device
CN104580018B (en) Bandwidth adjusting method and device in a kind of software defined network
CN103416022A (en) In-service throughput testing in distributed router/switch architectures
US11689426B2 (en) System and method for applying CMTS management policies based on individual devices
CN113810229B (en) IOAM quality performance data analysis method and device based on time schedule
CN101692303A (en) Method for acquiring power utilization data of large customer power utilization management terminals
CN100512162C (en) Method and system and device for collecting flow data
CN107846310A (en) Method is delimited in a kind of IPTV videos matter difference linkage testing based on customer resources tree
Michelinakis et al. Lightweight capacity measurements for mobile networks
CN103200585B (en) Signaling traffic subsystem, extension counter treatment system and method
CN116962213A (en) Operation maintenance management information processing method, network node and storage medium
CN110221998B (en) Data acquisition method, device and system and computer storage medium
CN116074191A (en) IOAM processing method, device, electronic equipment and computer readable storage medium
CN114567541A (en) Pre-activation detection method, electronic equipment and computer readable storage medium
CN113676364A (en) Intelligent operation and maintenance method and system for network equipment based on IOAM message encapsulation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110216