CN105306381A - Method and device for analyzing cache packet loss in network - Google Patents
Method and device for analyzing cache packet loss in network Download PDFInfo
- Publication number
- CN105306381A CN105306381A CN201510603603.5A CN201510603603A CN105306381A CN 105306381 A CN105306381 A CN 105306381A CN 201510603603 A CN201510603603 A CN 201510603603A CN 105306381 A CN105306381 A CN 105306381A
- Authority
- CN
- China
- Prior art keywords
- packet loss
- network
- switch
- port
- buffer memory
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/32—Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a method and a device for analyzing a cache packet loss in a network. The method comprises the following steps that: a switch mirrors the packet loss onto a network port of the switch, and modifies the packet loss in a way of adding port entering and exiting information and an arrival time of the packet loss; the switch transmits the modified packet loss to an analyzer through a network to analyze the packet loss; and a network deployment is optimized through a corresponding strategy according to data obtained by the analyzer through an analysis. Through adoption of the method and the device, the network deployment can be optimized, and the problem of congestion is solved fundamentally, thereby greatly enhancing the maintainability of the network, and better enhancing the communication quality of the network.
Description
Technical field
The present invention relates to a kind of Network Packet Loss treatment technology, especially relate to a kind of method and the device of analyzing buffer memory packet loss in network.
Background technology
Along with developing rapidly of network, network size is increasing, and structure is day by day complicated, and the new opplication on network also constantly occurs, if now network design is optimized not, network traffics can be caused even not, thus produce congested on some network nodes.And because switch cache resources is limited, general setting abandons the tail drop that mode is queue, namely once queue depth exceedes certain threshold value, message will be dropped, once packet loss, the re-transmission of TCP (TransferControlProtocol, transmission control protocol) can be caused, thus waste the bandwidth of whole network.
Network Packet Loss mainly creates congested due to network, and therefore Network Packet Loss is solved by congestion management at present, during packet loss, informing network keeper network creates packet loss, and network manager can reduce packet loss by adjustment speed and distribution buffer memory.Packet loss strategy can be adopted simultaneously, optionally abandon some unessential messages, reduce Network Packet Loss to the impact produced that communicates in network.
In existing network packet loss processing scheme, just deal with problems from switch itself, cannot network deployment issues be solved, as: do not know which message causes congested, these messages to come wherefrom, thus cannot solve network deployment issues at all.
Summary of the invention
The object of the invention is to the defect overcoming prior art, a kind of method and the device of analyzing buffer memory packet loss in network are provided, dispose with optimized network.
For achieving the above object, the present invention proposes following technical scheme: a kind of method analyzing buffer memory packet loss in network, comprising:
Packet loss is mirrored to its network port by switch, and makes an amendment packet loss, adds turnover port information and the time of advent of packet loss;
Amended packet loss is sent to analyzer analysis by network by switch;
According to the data that analyzer analyzes, take corresponding policy optimization network design.
Preferably, message enters into the queue of switch from the inlet side mouth of switch, and when message flow exceedes the cache resources of switch, described queue just takes corresponding packet loss strategy to produce described packet loss.
Preferably, described packet loss strategy comprises tail drop, namely refer to when the buffer queue in switch completely time, after enter queue message all will be dropped.
Preferably, described switch puts the mark that needs mirror image to while packet loss described packet loss, and is redirected a described network port to the packet loss of the described mark of band.
Preferably, the data that described analyzer analyzes comprise: cache size during five-tuple information, timestamp information, exchange source port, switching purpose port, the packet loss of packet loss.The five-tuple information of described packet loss is target ip address, source IP address, protocol number, tcp source port and TCP destination interface.
Preferably, can analyze the network layer of message and the information of transport layer according to the five-tuple information of described packet loss, if which TCP session is at packet loss, which object IP address is at packet loss.The time point of packet loss generation can being analyzed according to the timestamp information of described packet loss, as located some attack messages, the attack when it initiates can be known.The transmission path of packet loss can be analyzed according to the exchange source port of described packet loss and switching purpose port, can know packet loss from which port of switch is come in, and goes out again from which port.According to exchange source port and the switching purpose port of described packet loss, and in conjunction with the IP address of packet loss, current packet loss can be analyzed whether because of caused by routing issue, if routing issue, whether keeper then checks because route is not that optimum causes, namely occurred that many IP have selected a route, whether the Routing Protocol chosen is reasonable, and whether network topology (TOPO) has loop etc.Congestion situation when packet loss occurs can be analyzed according to cache size during described packet loss.
The invention allows for another kind of technical scheme: a kind of device analyzing buffer memory packet loss in network, the analyzer comprise switch, being connected by network with switch and network design optimize module, described switch comprises message inlet side mouth, message outbound port and the network port, described switch is used for the packet loss of generation to be mirrored to the described network port, and packet loss is made an amendment, add turnover port information and the time of advent of packet loss; Described analyzer is for receiving and analyzing the amended packet loss sended over from the network port of switch by network; Described network design optimizes the data that module is used for analyzing according to analyzer, takes corresponding policy optimization network design.
Preferably, described switch also comprises queue, and message enters into the queue of switch from the message inlet side mouth of switch, and when message flow exceedes the cache resources of switch, described queue is used for taking corresponding packet loss strategy to produce described packet loss.
Preferably, described switch also comprises mark packet loss module, and described mark packet loss module is used for putting the mark that needs mirror image to described packet loss while switch produces packet loss, and is redirected a described network port to the packet loss of the described mark of band.
The present invention is by packet loss mirror image and be sent to other the network port of switch, can be analyzed packet loss by the network port of monitoring mirror image, by the data analyzed, network manager just can know which business account for bandwidth, which message packet loss, what reason packet loss, better can analyze the state in network, thus corresponding strategy can be taked, optimized network is disposed, fundamentally solve congestion problems, so just greatly can improve the maintainability of network, and better improve the communication quality of network.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the present invention analyzes the method for buffer memory packet loss in network;
Fig. 2 is the principle schematic that the present invention analyzes the device of buffer memory packet loss in network;
Fig. 3 is the principle schematic that the embodiment of the present invention analyzes the method for buffer memory packet loss in network.
Embodiment
Below in conjunction with accompanying drawing of the present invention, clear, complete description is carried out to the technical scheme of the embodiment of the present invention.
Disclosed a kind of device analyzing buffer memory packet loss in network, as shown in Figure 2, comprise switch, analyzer and network design optimize module (not shown), switch has message inlet side mouth, queue, mark packet loss module, message outbound port and the network port, shown in composition graphs 1 and Fig. 2, message enters into the queue of switch from message inlet side mouth, when network occurs congested, message flow is excessive, when exceeding the cache resources of switch queue, corresponding packet loss strategy is just taked in queue, as tail drop, tail drop refers to when buffer queue is expired, the message entering queue below all will be dropped, under normal circumstances, only understand during packet loss in informing network keeper network and occurred packet loss phenomenon, and can not the message abandoned be analyzed.
Mark packet loss module is used for producing packet loss at switch and puts the mark that needs mirror image to packet loss simultaneously, and is redirected a network port to the packet loss of tape label.Packet loss in buffer queue is mirrored to the map network port of switch by switch of the present invention according to mark, and makes an amendment packet loss, adds turnover port information and the time of advent of packet loss.
Switch is connected with analyzer by network, and amended packet loss is sent to analyzer analysis by network by switch.The data that analyzer analyzes packet loss comprise the cache size when five-tuple information of packet loss, timestamp information, exchange source port, switching purpose port and packet loss, and the five-tuple information of packet loss comprises target ip address, source IP address, protocol number, tcp source port and TCP destination interface.
Network design optimizes module can analyze the network layer of message and the information of transport layer according to the five-tuple information of packet loss, and if which TCP session is at packet loss, which object IP address is at packet loss; The time point of packet loss generation can being analyzed according to the timestamp information of packet loss, as located some attack messages, the attack when it initiates can be known; The transmission path of packet loss can be analyzed according to the exchange source port of packet loss and switching purpose port, can know packet loss from which port of switch is come in, and goes out again from which port; According to exchange source port and the switching purpose port of packet loss, and in conjunction with the IP address of packet loss, current packet loss can be analyzed whether because of caused by routing issue, if routing issue, whether keeper then checks because route is not that optimum causes, namely occurred that many IP have selected a route, whether the Routing Protocol chosen is reasonable, and whether network topology (TOPO) has loop etc.; Congestion situation when packet loss occurs can be analyzed according to cache size during packet loss.
As interchangeable, network design optimizes this block also can not be needed corresponding module to realize, and is directly come artificially, from the data analyzed out, to be optimized deployment to network by network manager.
The operation principle that the present invention analyzes buffer memory packet loss in network is introduced below by a specific embodiment, as shown in Figure 3, if there are two sessions (session 1, session 2), session 1 and session 2 enter from switch A and switch b respectively, for the stream of going out from switch b, before optimization, routing path is forward from switch C, and at this moment session 1 and session 2 are all gone out from the port 3 of switch C.If the burst flow of two sessions is excessive, just can cause producing packet loss on outbound port 3, at this moment packet loss then can be mirrored to port 4 by switch C, analyzer obtains packet loss and analyzes session information, namely analyze is session 1 and session 2, can know that a session is from port one by switch source port information, a session enters switching equipment from port 2.Network manager then can check routing iinformation, obtains route unreasonable, needs to go out from switch b to arrive switch D, then can route optimization path.
Technology contents of the present invention and technical characteristic have disclosed as above; but those of ordinary skill in the art still may do all replacement and the modification that do not deviate from spirit of the present invention based on teaching of the present invention and announcement; therefore; scope should be not limited to the content that embodiment discloses; and various do not deviate from replacement of the present invention and modification should be comprised, and contained by present patent application claim.
Claims (10)
1. analyze a method for buffer memory packet loss in network, it is characterized in that, comprising:
Packet loss is mirrored to its network port by switch, and makes an amendment packet loss, adds turnover port information and the time of advent of packet loss;
Amended packet loss is sent to analyzer analysis by network by switch;
According to the data that analyzer analyzes, take corresponding policy optimization network design.
2. the method for buffer memory packet loss in analysis network according to claim 1, it is characterized in that, message enters into the queue of switch from the message inlet side mouth of switch, and when message flow exceedes the cache resources of switch, described queue just takes corresponding packet loss strategy to produce described packet loss.
3. the method for buffer memory packet loss in analysis network according to claim 1, is characterized in that, described switch puts the mark that needs mirror image to while packet loss described packet loss, and is redirected a described network port to the packet loss of the described mark of band.
4. the method for buffer memory packet loss in analysis network according to claim 1, it is characterized in that, the data that described analyzer analyzes comprise: cache size during five-tuple information, timestamp information, exchange source port, switching purpose port, the packet loss of packet loss.
5. the method for buffer memory packet loss in analysis network according to claim 4, is characterized in that, according to the network layer of five-tuple information analysis outgoing packet and the information of transport layer of described packet loss; The time point of packet loss generation is analyzed according to the timestamp information of described packet loss; The transmission path of packet loss is gone out according to the exchange source port of described packet loss and switching purpose port analysis; Congestion situation when packet loss occurs is analyzed according to cache size during described packet loss.
6. the method for buffer memory packet loss in analysis network according to claim 5, is characterized in that, according to exchange source port and the switching purpose port of described packet loss, and in conjunction with the IP address of packet loss, analyzes current packet loss whether because of caused by routing issue.
7. analyze the device of buffer memory packet loss in network for one kind, it is characterized in that, the analyzer comprise switch, being connected by network with switch and network design optimize module, described switch comprises message inlet side mouth, message outbound port and the network port, described switch is used for the packet loss of generation to be mirrored to the described network port, and packet loss is made an amendment, add turnover port information and the time of advent of packet loss; Described analyzer is for receiving and analyzing the amended packet loss sended over from the network port of switch by network; Described network design optimizes the data that module is used for analyzing according to analyzer, takes corresponding policy optimization network design.
8. the device of buffer memory packet loss in analysis network according to claim 7, it is characterized in that, described switch also comprises queue, message enters into the queue of switch from the message inlet side mouth of switch, when message flow exceedes the cache resources of switch, described queue is used for taking corresponding packet loss strategy to produce described packet loss.
9. the device of buffer memory packet loss in analysis network according to claim 7, it is characterized in that, described switch also comprises mark packet loss module, described mark packet loss module is used for putting the mark that needs mirror image to described packet loss while switch produces packet loss, and is redirected a described network port to the packet loss of the described mark of band.
10. the method for buffer memory packet loss in analysis network according to claim 7, it is characterized in that, the data that described analyzer analyzes comprise: cache size during five-tuple information, timestamp information, exchange source port, switching purpose port, the packet loss of packet loss.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510603603.5A CN105306381A (en) | 2015-09-21 | 2015-09-21 | Method and device for analyzing cache packet loss in network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510603603.5A CN105306381A (en) | 2015-09-21 | 2015-09-21 | Method and device for analyzing cache packet loss in network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105306381A true CN105306381A (en) | 2016-02-03 |
Family
ID=55203149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510603603.5A Pending CN105306381A (en) | 2015-09-21 | 2015-09-21 | Method and device for analyzing cache packet loss in network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105306381A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105704057A (en) * | 2016-03-24 | 2016-06-22 | 华为技术有限公司 | Method and apparatus for determining service type causing burst port congestion and packet loss |
CN107888457A (en) * | 2017-12-08 | 2018-04-06 | 新华三技术有限公司 | Port method for detecting packet loss, device and communication equipment |
CN108667898A (en) * | 2017-03-28 | 2018-10-16 | 特拉维夫迈络思科技有限公司 | The snapshot of content of buffer in network element is provided using outgoing mirror image |
CN115085890A (en) * | 2022-06-23 | 2022-09-20 | 杭州云合智网技术有限公司 | Method for optimizing TCP RTO retransmission waiting time by data center network chip |
CN116016277A (en) * | 2022-12-08 | 2023-04-25 | 苏州盛科通信股份有限公司 | Monitoring method and device for network congestion packet loss, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744534A (en) * | 2005-08-19 | 2006-03-08 | 杭州华为三康技术有限公司 | Message mirroring method and network equipment with message mirroring function |
US20070168505A1 (en) * | 2006-01-19 | 2007-07-19 | Hewlett-Packard Development Company, L.P. | Performance monitoring in a network |
CN101499974A (en) * | 2009-03-11 | 2009-08-05 | 中兴通讯股份有限公司 | Method and system for queue scheduling optimization |
CN201699731U (en) * | 2010-06-01 | 2011-01-05 | 新峤网络设备(上海)有限公司 | Packet loss tester |
-
2015
- 2015-09-21 CN CN201510603603.5A patent/CN105306381A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1744534A (en) * | 2005-08-19 | 2006-03-08 | 杭州华为三康技术有限公司 | Message mirroring method and network equipment with message mirroring function |
US20070168505A1 (en) * | 2006-01-19 | 2007-07-19 | Hewlett-Packard Development Company, L.P. | Performance monitoring in a network |
CN101499974A (en) * | 2009-03-11 | 2009-08-05 | 中兴通讯股份有限公司 | Method and system for queue scheduling optimization |
CN201699731U (en) * | 2010-06-01 | 2011-01-05 | 新峤网络设备(上海)有限公司 | Packet loss tester |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105704057A (en) * | 2016-03-24 | 2016-06-22 | 华为技术有限公司 | Method and apparatus for determining service type causing burst port congestion and packet loss |
CN105704057B (en) * | 2016-03-24 | 2019-01-08 | 华为技术有限公司 | The method and apparatus for determining the type of service of burst port congestion packet loss |
CN108667898A (en) * | 2017-03-28 | 2018-10-16 | 特拉维夫迈络思科技有限公司 | The snapshot of content of buffer in network element is provided using outgoing mirror image |
CN108667898B (en) * | 2017-03-28 | 2022-08-12 | 迈络思科技有限公司 | Network element and method for providing a snapshot of buffer content in a network element |
CN107888457A (en) * | 2017-12-08 | 2018-04-06 | 新华三技术有限公司 | Port method for detecting packet loss, device and communication equipment |
CN107888457B (en) * | 2017-12-08 | 2020-08-14 | 新华三技术有限公司 | Port packet loss detection method and device and communication equipment |
CN115085890A (en) * | 2022-06-23 | 2022-09-20 | 杭州云合智网技术有限公司 | Method for optimizing TCP RTO retransmission waiting time by data center network chip |
CN116016277A (en) * | 2022-12-08 | 2023-04-25 | 苏州盛科通信股份有限公司 | Monitoring method and device for network congestion packet loss, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11750483B2 (en) | In-line performance monitoring | |
CN108712292B (en) | Network flow type prediction method based on deep learning | |
CN105306381A (en) | Method and device for analyzing cache packet loss in network | |
CN101364999B (en) | QoS processing method, apparatus and system based on stream | |
WO2015074324A1 (en) | Data packet express forwarding method and apparatus | |
CN103532672B (en) | The out of order processing method of fragment message and application in a kind of SDN | |
US20090300209A1 (en) | Method and system for path based network congestion management | |
CN109314662A (en) | Data transmission method and device | |
WO2016161937A1 (en) | Method, device, and system for identifying traffic flow | |
CN102255765B (en) | Bidirectional forwarding detection method and device | |
CN102201966B (en) | Method, device and system for controlling network service data flow | |
US8787160B2 (en) | Method, apparatus, and system for judging path congestion | |
WO2022111724A1 (en) | Network congestion detection method and apparatus | |
WO2015070608A1 (en) | Oam performance monitoring method and apparatus | |
CN107852371A (en) | Data packet network | |
CN111699711B (en) | Service function chain congestion feedback | |
WO2023036042A1 (en) | Method, apparatus and system for determining network optimization policy | |
Rahman et al. | Performance analysis and the study of the behavior of MPLS protocols | |
CN101212412A (en) | MPLS network service scheduling system | |
CN107852372A (en) | Data packet network | |
CN112437017A (en) | Data flow control system, method, device, equipment and medium | |
CN103220585B (en) | A kind of network video transmission method supporting QoS | |
CN106664257A (en) | Signaling for transmission of coherent data flow within packet-switched network | |
CN100450078C (en) | Method and system of handling queue QoS | |
US9942166B2 (en) | Relay management apparatus, relay management method, program, and relay management system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20160203 |