CN112787879A - Gigabit Ethernet packet loss detection method and device thereof - Google Patents

Gigabit Ethernet packet loss detection method and device thereof Download PDF

Info

Publication number
CN112787879A
CN112787879A CN201911088725.XA CN201911088725A CN112787879A CN 112787879 A CN112787879 A CN 112787879A CN 201911088725 A CN201911088725 A CN 201911088725A CN 112787879 A CN112787879 A CN 112787879A
Authority
CN
China
Prior art keywords
gigabit ethernet
packet loss
packet
ethernet card
detection
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
CN201911088725.XA
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.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911088725.XA priority Critical patent/CN112787879A/en
Publication of CN112787879A publication Critical patent/CN112787879A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/12Applying verification of the received information
    • H04L63/123Applying verification of the received information received data contents, e.g. message integrity

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a gigabit Ethernet packet loss detection method and a gigabit Ethernet packet loss detection device. The gigabit Ethernet packet loss detection method comprises the following steps: initializing a kilomega Ethernet card connected with a network cable; acquiring an IP address of a target gateway connected with the gigabit Ethernet card; sending a detection data packet to the target gateway pointed by the IP address so that the target gateway can generate a feedback data packet according to the detection data packet; receiving the feedback data packet from the target gateway; and judging whether the gigabit Ethernet card has packet loss or not according to the detection data packet and the feedback data packet. The embodiment of the invention can realize the automatic packet loss detection of the gigabit Ethernet of the embedded equipment such as an asynchronous multimedia playing box, and improves the automatic packet loss detection efficiency of the gigabit Ethernet.

Description

Gigabit Ethernet packet loss detection method and device thereof
Technical Field
The invention relates to the technical field of display, in particular to a gigabit Ethernet packet loss detection method and device.
Background
Embedded devices have been widely used in various industries, and the world now has to be said to be an un-embedded and smart world. With the development of the embedded type, the data volume between the devices, between the devices and the cloud server, and the like, which interact through the network, is larger and larger, which puts higher requirements on the network stability and the data integrity of the embedded type devices.
The asynchronous multimedia playing box is a video playing box with strong performance and stable work, and is widely applied to the advertisement display industry. Asynchronous multimedia playback boxes typically carry gigabit ethernet cards. The multimedia advertisement machine is generally connected with a cloud server through a network, then transmits media to be played to an asynchronous multimedia playing box through the network, and finally displays the media on a display screen such as an LED display screen. This requires that the network of the asynchronous multimedia playing box is very stable and there is no problem of packet loss, because the video data to be played cannot be successfully played or the status and information of the playing box cannot be accurately obtained every time a packet is lost. The asynchronous multimedia playing box in the prior art does not determine the stability of network transmission by detecting whether the network has packet loss. Once a network problem occurs, a video cannot be played normally, and only a person can judge whether packet loss occurs and solve the packet loss, so that the efficiency is low, whether packet loss occurs in the gigabit ethernet network cannot be detected conveniently and quickly, the packet loss problem cannot be effectively prevented or solved, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a gigabit Ethernet packet loss detection method and a gigabit Ethernet packet loss detection device, which can realize automatic detection of the packet loss of a gigabit Ethernet of an embedded device such as an asynchronous multimedia playing box and improve the efficiency of packet loss detection of the gigabit Ethernet.
In one aspect, an embodiment of the present invention provides a method for detecting a gigabit ethernet packet loss, including: initializing a kilomega Ethernet card connected with a network cable; acquiring an IP address of a target gateway connected with the gigabit Ethernet card; sending a detection data packet to the target gateway pointed by the IP address so that the target gateway can generate a feedback data packet according to the detection data packet; receiving the feedback data packet from the target gateway; and judging whether the gigabit Ethernet card has packet loss or not according to the detection data packet and the feedback data packet.
The embodiment of the invention judges whether the packet loss exists or not by sending the detection data packet and receiving the two parameters of the feedback data packet from the target gateway, so as to determine whether the obtained data packet is complete or not, realize the automatic detection of the packet loss of the gigabit Ethernet and improve the efficiency of the packet loss detection of the gigabit Ethernet.
In an embodiment of the present invention, determining whether the packet loss of the gigabit ethernet card exists according to the detection data packet and the feedback data packet includes: calculating a packet loss rate according to the number of the detection data packets and the feedback data packets, wherein the packet loss rate is a ratio of the number difference of the detection data packets and the feedback data packets to the number of the detection data packets; and when the packet loss rate is not greater than the packet loss rate threshold value, judging that the gigabit Ethernet card has no packet loss, otherwise, judging that the gigabit Ethernet card has the packet loss.
In an embodiment of the present invention, the detection packet and the feedback packet are network control packet protocol packets, respectively.
In an embodiment of the present invention, when there is packet loss in the gigabit ethernet card, the transmission mode of the gigabit ethernet card is adjusted to the hundred mega mode.
In an embodiment of the present invention, the adjusting the transmission mode of the gigabit ethernet card to the hundred megabyte mode includes: adjusting the PHY chip of the gigabit Ethernet card to the hundred million mode; and adjusting the transmission rate of the PHY chip and the target gateway to a hundred megabyte mode.
On the other hand, an apparatus for detecting a gigabit ethernet packet loss according to an embodiment of the present invention includes: the network card initialization module initializes the gigabit Ethernet card connected with the network cable; the IP address acquisition module is used for acquiring the IP address of a target gateway connected with the gigabit Ethernet card; a data packet sending module, configured to send a detection data packet to the target gateway to which the IP address points, so that the target gateway generates a feedback data packet according to the detection data packet; a data packet receiving module, configured to receive the feedback data packet from the target gateway; and a packet loss determining module, configured to determine whether a packet loss exists in the gigabit ethernet card according to the detection data packet and the feedback data packet.
In an embodiment of the present invention, the determining whether the packet loss of the gigabit ethernet card exists according to the detection data packet and the feedback data packet includes: calculating a packet loss rate according to the number of the detection data packets and the feedback data packets, wherein the packet loss rate is a ratio of the number difference of the detection data packets and the feedback data packets to the number of the detection data packets; and when the packet loss rate is not greater than the packet loss rate threshold value, judging that the gigabit Ethernet card has no packet loss, otherwise, judging that the gigabit Ethernet card has packet loss.
In an embodiment of the present invention, the detection packet and the feedback packet are network control packet protocol packets, respectively.
In an embodiment of the present invention, when there is packet loss in the gigabit ethernet card, the transmission mode of the gigabit ethernet card is adjusted to the hundred mega mode.
In an embodiment of the present invention, the adjusting the transmission mode of the gigabit ethernet card to the hundred megabyte mode includes: adjusting the PHY chip of the gigabit Ethernet card to the hundred million mode; and adjusting the transmission rate of the PHY chip and the target gateway to a hundred megabyte mode.
One or more of the above technical solutions may have the following advantages or beneficial effects: the embodiment of the invention judges whether the gigabit Ethernet card has packet loss or not by sending the detection data packet to the target gateway and receiving the feedback data packet from the target gateway so as to determine whether the transmitted data is complete or not, realize automatic detection of the packet loss of the gigabit Ethernet and improve the efficiency of packet loss detection of the gigabit Ethernet. In addition, when packet loss is found, the problem that the video to be played cannot be played normally due to packet loss is solved by adjusting the transmission mode of the gigabit Ethernet card, and the user experience degree is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for detecting a gigabit ethernet packet loss according to a first embodiment of the present invention.
Fig. 2 is a detailed flowchart of a method for detecting a gigabit ethernet packet loss according to a first embodiment of the present invention.
Fig. 3a is a schematic block diagram of a gigabit ethernet packet loss detection apparatus according to a second embodiment of the present invention.
Fig. 3b is a schematic block diagram of another gigabit ethernet packet loss detection apparatus according to a second embodiment of the present invention.
Fig. 4 is a schematic structural diagram of a gigabit ethernet packet loss detection system according to a third embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a first embodiment of the present invention provides a gigabit ethernet packet loss detection method. Specifically, the method for detecting the packet loss of the gigabit ethernet network provided by the embodiment of the present invention includes, for example, the steps of:
s11: initializing a kilomega Ethernet card connected with a network cable;
s12: acquiring an IP address of a target gateway connected with the gigabit Ethernet card;
s13: sending a detection data packet to the target gateway pointed by the IP address so that the target gateway can generate a feedback data packet according to the detection data packet; the detection packet may be, for example, a network Control message protocol (ICMP) packet. The number of detection packets may be, for example, 100, or other number.
S14: receiving the feedback data packet from the target gateway; wherein the feedback packet may also be an ICMP packet, for example.
S15: and judging whether the gigabit Ethernet card has packet loss or not according to the detection data packet and the feedback data packet.
In another embodiment of the present invention, step S15 specifically includes:
calculating a packet loss rate according to the number of the detection data packets and the feedback data packets, wherein the packet loss rate is a ratio of the number difference of the detection data packets and the feedback data packets to the number of the detection data packets; and when the packet loss rate is not greater than a preset packet loss rate threshold value, judging that the gigabit Ethernet card has no packet loss, otherwise, judging that the gigabit Ethernet card has the packet loss.
In another embodiment of the present invention, the method for detecting gigabit ethernet packet loss further includes:
and when the gigabit Ethernet card has packet loss, adjusting the transmission mode of the gigabit Ethernet card to a hundred-million mode.
Further, the adjusting the transmission mode of the gigabit ethernet card to the hundred mega mode includes:
adjusting the PHY chip of the gigabit Ethernet card to the hundred million mode; and
and adjusting the transmission rate of the PHY chip and the target gateway to be in a hundred-million mode.
For the convenience of understanding the present invention, the steps of the gigabit ethernet packet loss detection method according to the present embodiment will be described in detail below with reference to fig. 2.
The gigabit Ethernet packet loss detection method provided by the embodiment of the invention can be applied to embedded equipment such as an asynchronous multimedia playing box. Typically, an asynchronous multimedia play box, for example, includes an embedded processor. The android5.1 system is installed on the embedded processor. The android5.1 system is an open source operating system based on Linux. The gigabit ethernet network packet loss detection method provided by the embodiment of the present invention can detect the packet loss problem of the gigabit ethernet card, for example, through software installed on an Android system, such as a gigabit ethernet packet loss detection process. The gigabit ethernet packet loss detection process may be run in the user space of the user layer of the Android system, for example, and run in the background. As shown in fig. 2, the gigabit ethernet packet loss method according to the embodiment of the present invention compares two parameters of a detection data packet sent after networking and a received feedback data packet to determine and determine whether a gigabit ethernet card has a packet loss, and the specific process is as follows.
After the asynchronous multimedia playing box is started, for example, the gigabit ethernet packet loss detection process is automatically started, and the gigabit ethernet packet loss detection process is in a monitoring mode. Firstly, whether the gigabit Ethernet card has a network cable inserted and connected is detected. When no network cable is inserted, the gigabit Ethernet packet loss detection process is always in a monitoring mode to monitor the network cable insertion. When a network cable is inserted, the state change of the network card is acquired and reported to a system user layer so that the system user layer can acquire information of a gigabit Ethernet packet loss detection process and a system kernel communication interface (netlink). And after the user layer acquires the netlink information, analyzing and judging whether the equipment with the network change is the gigabit Ethernet card or not, and if so, acquiring whether the plugging network state of the gigabit Ethernet card is changed from down to up. If not, restarting the gigabit Ethernet packet loss detection process. Then, after the status is "up", the gigabit ethernet card performs network initialization, for example, to detect whether the gigabit ethernet card is in link mode with the target gateway, and whether the gigabit ethernet card acquires the IP address allocated by the target gateway. The target gateway here may be, for example, a PC, a network router, and other internetworking devices.
Then, the IP address of the target gateway connected to the gigabit ethernet card is obtained to facilitate communication with the target gateway to detect the packet loss.
And then, detecting whether the gigabit Ethernet card has packet loss. Specifically, the gigabit ethernet packet loss detection process continuously sends detection data packets to the target gateway for multiple times, for example, continuously sends the detection data packets for 100 times, and sends one data packet each time, according to the IP address of the target gateway; after receiving a detection data packet sent by embedded equipment, a target gateway compares a target IP address of the detection data packet with an IP address of the target gateway, and if the target IP address of the detection data packet is consistent with the IP address of the target gateway, the target gateway receives the detection data packet; and if the two are not consistent, discarding the detection data packet. And after receiving the detection data packet, the target gateway checks the detection data packet, extracts and processes a corresponding IP data packet, and finally constructs an ICMP response packet, namely a feedback data packet, and feeds the ICMP response packet back to the embedded equipment. The transmission process of the feedback data packet is the same as the process of sending the detection data packet to the target gateway by the embedded equipment. And the embedded equipment receives the feedback data packet sent by the target gateway. Here, the detection packet and the feedback packet are both ICMP packets. And finally, determining the packet loss rate by the gigabit Ethernet packet loss detection process according to the detection data packet and the feedback data packet. Specifically, the packet loss rate may be, for example, a ratio of a difference between the number of the detection packets and the number of the feedback packets to the number of the detection packets. And when the packet loss rate is not greater than a preset packet loss rate threshold value, judging that the gigabit Ethernet card has no packet loss, otherwise, judging that the gigabit Ethernet card has the packet loss. The preset packet loss rate threshold here may be, for example, 0, that is, the packet loss rate is not greater than 0, that is, no packet is lost, and if the packet loss rate is greater than 0, it indicates that a packet loss phenomenon exists, so that a problem that the video cannot be played may occur. Of course, the packet loss rate threshold may be other values. Further, after the gigabit ethernet packet loss detection process obtains the packet loss detection result, the packet loss detection result can be automatically output to remind the user to perform corresponding processing. The result output mode may be, for example, a mode of voice, light flashing, information pushing, and the like. Therefore, automatic detection of the packet loss of the gigabit Ethernet card is realized, the working efficiency is improved, and the labor cost is saved.
Further, the method is carried out. When the gigabit Ethernet card has packet loss, adjusting the transmission mode of the gigabit Ethernet card to a hundred-megabyte mode; specifically, the PHY chip of the gigabit ethernet card is adjusted to the hundred mega mode, and the transmission rates of the PHY chip and the target gateway are adjusted to the hundred mega mode. The hundred megabit mode is, for example, in the order of 100Mbps, i.e., the transmission rate of a gigabit ethernet card is reduced. Therefore, when the gigabit Ethernet card loses packets, the network transmission mode is automatically adjusted to the stable hundred megabyte mode, the problem that the video to be played cannot be played normally due to the packet loss of the gigabit Ethernet card is solved, and the user experience is improved.
When the gigabit Ethernet card has no packet loss, the resources are directly released, and the gigabit Ethernet packet loss detection process enters the sleep mode again. If the network cable is plugged in the gigabit Ethernet packet loss detection process, the gigabit Ethernet packet loss detection process also releases resources, and the gigabit Ethernet card with the plugged network cable is subjected to packet loss detection in a monitoring mode again.
In summary, the invention determines whether the acquired data packet is complete by sending the detection data packet and receiving the two parameters of the feedback data packet from the target gateway to determine whether the packet is lost, thereby solving the problem that the packet loss detection of the gigabit ethernet card of the embedded device in the prior art judges the packet loss manually, improving the detection efficiency and saving the labor cost. In addition, when packet loss is found, the transmission mode of the gigabit Ethernet card is automatically adjusted to a hundred megabyte mode, so that the problem of incomplete data transmission caused by the gigabit Ethernet packet loss due to the hardware problem with the Ethernet function and the performance problem of equipment (a router, a firewall and a switch) is solved, the video to be played is stored incompletely after being received, the video cannot be played, and bad experience is brought to a client. Further, the method indirectly avoids the return of goods and repair of customers, and reduces labor cost, maintenance cost and after-sale cost.
[ second embodiment ]
As shown in fig. 3a, a second embodiment of the present invention provides a gigabit ethernet packet loss detection apparatus 300. The gigabit ethernet packet loss detection apparatus 300 includes, for example, a network card initialization module 310, an IP address acquisition module 320, a data packet sending module 330, a data packet receiving module 340, and a packet loss determination module 350.
The network card initialization module 310 is configured to initialize a gigabit ethernet card connected to a network cable.
An IP address obtaining module 320, configured to obtain an IP address of a target gateway connected to the gigabit ethernet card.
The data packet transceiver module 330 is configured to send a detection data packet to the target gateway pointed by the IP address, so that the target gateway generates a feedback data packet according to the detection data packet.
A packet receiving module 340, configured to receive the feedback packet from the target gateway.
A packet loss determining module 350, configured to determine whether a packet loss occurs in the gigabit ethernet card according to the detection data packet and the feedback data packet.
Further, as shown in fig. 3b, the gigabit ethernet packet loss detection apparatus 300 may further include a transmission mode adjustment module 360. The transmission mode adjustment module 360 is configured to adjust the transmission mode of the gigabit ethernet card to a hundred megabyte mode when the gigabit ethernet card loses packets. Further, the transmission mode adjustment module 360 is specifically configured to: and adjusting the PHY chip of the gigabit Ethernet card to the hundred-megabyte mode, and adjusting the transmission rate of the PHY chip and the target gateway to the hundred-megabyte mode.
For the specific working process and technical effects among the modules in the gigabit ethernet packet loss detection apparatus 300 in this embodiment, reference is made to the description of the foregoing first embodiment, and details are not repeated here.
[ third embodiment ]
As shown in fig. 4, a system 500 for detecting gigabit ethernet packet loss is provided in a third embodiment of the present invention. The gigabit ethernet packet loss detection system 500 includes, for example, a memory 510 and a processor 530 coupled to the memory 510. The memory 510 may be, for example, a non-volatile memory having stored thereon a computer program 511. Processor 530 may be, for example, an embedded processor. The processor 530 executes the computer program 511 to execute the gigabit ethernet packet loss detection method in the first embodiment.
For specific working procedures and technical effects of the gigabit ethernet packet loss detection system 500 in this embodiment, reference is made to the description of the foregoing first embodiment.
[ fourth example ] A
As shown in fig. 5, a fourth embodiment of the present invention provides a computer-readable storage medium 600. The computer-readable storage medium 600 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). Computer-readable storage medium 600 has stored thereon computer-executable instructions 610. The computer-readable storage medium 600 can be executed by one or more processors or processing devices to execute the computer-executable instructions 610 to implement the gigabit ethernet packet loss detection method in the first embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A gigabit Ethernet packet loss detection method is characterized by comprising the following steps:
initializing a kilomega Ethernet card connected with a network cable;
acquiring an IP address of a target gateway connected with the gigabit Ethernet card;
sending a detection data packet to the target gateway pointed by the IP address so that the target gateway can generate a feedback data packet according to the detection data packet;
receiving the feedback data packet from the target gateway; and
and judging whether the gigabit Ethernet card has packet loss or not according to the detection data packet and the feedback data packet.
2. The gigabit ethernet card packet loss detection method according to claim 1, wherein the determining whether the gigabit ethernet card has packet loss according to the detection packet and the feedback packet comprises:
calculating a packet loss rate according to the number of the detection data packets and the feedback data packets, wherein the packet loss rate is a ratio of the number difference of the detection data packets and the feedback data packets to the number of the detection data packets; and
and when the packet loss rate is not greater than a preset packet loss rate threshold value, judging that the gigabit Ethernet card has no packet loss, otherwise, judging that the gigabit Ethernet card has the packet loss.
3. The gigabit ethernet packet loss detection method according to claim 1, wherein the detection packet and the feedback packet are network control message protocol packets, respectively.
4. The gigabit ethernet packet loss detection method according to claim 1, further comprising:
and when the gigabit Ethernet card has packet loss, adjusting the transmission mode of the gigabit Ethernet card to a hundred-million mode.
5. The gigabit ethernet packet loss detection method according to claim 4, wherein the adjusting the transmission mode of the gigabit ethernet card to the hundred megabyte mode comprises:
adjusting the PHY chip of the gigabit Ethernet card to the hundred million mode; and
and adjusting the transmission rate of the PHY chip and the target gateway to be in a hundred-million mode.
6. A gigabit Ethernet packet loss detection device, comprising:
the network card initialization module initializes the gigabit Ethernet card connected with the network cable;
the IP address acquisition module is used for acquiring the IP address of a target gateway connected with the gigabit Ethernet card;
a data packet sending module, configured to send a detection data packet to the target gateway to which the IP address points, so that the target gateway generates a feedback data packet according to the detection data packet;
a data packet receiving module, configured to receive the feedback data packet from the target gateway; and
and the packet loss determining module is used for determining whether the gigabit Ethernet card has packet loss according to the detection data packet and the feedback data packet.
7. The gigabit ethernet packet loss detection device according to claim 6, wherein the packet loss determining module is specifically configured to:
calculating a packet loss rate according to the number of the detection data packets and the feedback data packets, wherein the packet loss rate is a ratio of the number difference of the detection data packets and the feedback data packets to the number of the detection data packets; and
and when the packet loss rate is not greater than a preset packet loss rate threshold value, judging that the gigabit Ethernet card has no packet loss, otherwise, judging that the gigabit Ethernet card has the packet loss.
8. The apparatus according to claim 6, wherein the detection packet and the feedback packet are network control message protocol packets, respectively.
9. The gigabit ethernet packet loss detection apparatus according to claim 6, further comprising:
and the transmission mode adjusting module is used for adjusting the transmission mode of the gigabit Ethernet card to a hundred mega mode when the gigabit Ethernet card loses packet.
10. The apparatus for detecting gigabit ethernet packet loss according to claim 9, wherein the transmission mode adjustment module is specifically configured to:
adjusting the PHY chip of the gigabit Ethernet card to the hundred million mode; and
and adjusting the transmission rate of the PHY chip and the target gateway to be in a hundred-million mode.
CN201911088725.XA 2019-11-08 2019-11-08 Gigabit Ethernet packet loss detection method and device thereof Pending CN112787879A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911088725.XA CN112787879A (en) 2019-11-08 2019-11-08 Gigabit Ethernet packet loss detection method and device thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911088725.XA CN112787879A (en) 2019-11-08 2019-11-08 Gigabit Ethernet packet loss detection method and device thereof

Publications (1)

Publication Number Publication Date
CN112787879A true CN112787879A (en) 2021-05-11

Family

ID=75748954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911088725.XA Pending CN112787879A (en) 2019-11-08 2019-11-08 Gigabit Ethernet packet loss detection method and device thereof

Country Status (1)

Country Link
CN (1) CN112787879A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599453A (en) * 2003-09-17 2005-03-23 联想(北京)有限公司 Method for dynamic regulating video transmission
CN101877658A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 Method and device for detecting network port performance of IPTV set-top box
CN102223202A (en) * 2010-04-16 2011-10-19 北京大学 Method and system for detecting loss reasons of radio broadcast data packet and method and system for adapting rate
CN103997433A (en) * 2014-05-16 2014-08-20 瑞斯康达科技发展股份有限公司 Packet loss rate measuring method, device and system
CN106059832A (en) * 2016-08-31 2016-10-26 上海斐讯数据通信技术有限公司 Method and system for automatically judging Internet-surfing way of WAN (Wide Area Network) port
CN106657997A (en) * 2016-12-06 2017-05-10 广东九联科技股份有限公司 Method for testing performance of network port of set-top box
CN107566222A (en) * 2017-10-18 2018-01-09 中国联合网络通信集团有限公司 A kind of method and device for calculating packet loss
CN108462727A (en) * 2017-02-17 2018-08-28 北京视联动力国际信息技术有限公司 A kind of data transmission method and device
CN109921962A (en) * 2019-04-16 2019-06-21 腾讯科技(深圳)有限公司 Bandwidth Measurement Method, device, computer readable storage medium and computer equipment

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1599453A (en) * 2003-09-17 2005-03-23 联想(北京)有限公司 Method for dynamic regulating video transmission
CN102223202A (en) * 2010-04-16 2011-10-19 北京大学 Method and system for detecting loss reasons of radio broadcast data packet and method and system for adapting rate
CN101877658A (en) * 2010-06-30 2010-11-03 中兴通讯股份有限公司 Method and device for detecting network port performance of IPTV set-top box
CN103997433A (en) * 2014-05-16 2014-08-20 瑞斯康达科技发展股份有限公司 Packet loss rate measuring method, device and system
CN106059832A (en) * 2016-08-31 2016-10-26 上海斐讯数据通信技术有限公司 Method and system for automatically judging Internet-surfing way of WAN (Wide Area Network) port
CN106657997A (en) * 2016-12-06 2017-05-10 广东九联科技股份有限公司 Method for testing performance of network port of set-top box
CN108462727A (en) * 2017-02-17 2018-08-28 北京视联动力国际信息技术有限公司 A kind of data transmission method and device
CN107566222A (en) * 2017-10-18 2018-01-09 中国联合网络通信集团有限公司 A kind of method and device for calculating packet loss
CN109921962A (en) * 2019-04-16 2019-06-21 腾讯科技(深圳)有限公司 Bandwidth Measurement Method, device, computer readable storage medium and computer equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金燕: "《基于RFC2544的千兆以太网性能测试的实现》", 《浙江工业大学学报》 *

Similar Documents

Publication Publication Date Title
CN110661669B (en) Network topology automatic discovery method of network equipment based on ICMP, TCP and UDP protocols
US7991877B2 (en) Rogue router hunter
WO2021227556A1 (en) Network adapter node performance detection method and apparatus, device, and readable medium
US9838293B2 (en) Throughput test method and apparatus
US7725556B1 (en) Computer system with concurrent direct memory access
US20050207360A1 (en) Configuring a transmission mode between devices
CN108521341B (en) Message transmitting method and device
CN101562500B (en) Data transmission request method, data transmission method and data transmission device
CN111953782A (en) Method, device, medium and equipment for synchronizing multi-channel data
JP2010538551A (en) Method and system for automatically confirming connectivity status of an IP link on an IP network
KR20090084670A (en) Method and system for two-phase mechanism for discovering web services based management service
CN111416882A (en) BMC IP setting method and device, electronic equipment and system
CN112787879A (en) Gigabit Ethernet packet loss detection method and device thereof
WO2016110151A1 (en) Method and device for detecting link loopback of pon system
CN114650416B (en) Hidden camera finding method based on Internet monitoring
CN113794908B (en) Network state adjusting method and storage medium
CN110784337A (en) Cloud service quality monitoring method and related product
CN112667359B (en) Data transparent transmission method, electronic equipment and storage medium
US20090158300A1 (en) Network redundancy check application program management method
US6938086B1 (en) Auto-detection of duplex mismatch on an ethernet
CN106301832B (en) Method and device for processing system log message
CN114401127A (en) Data packet transmission method, device and equipment based on zeroMQ
US9596139B1 (en) Network system and method for detection and correction of duplex mismatch including duplex mode determination
CN114356593A (en) Data processing method, device, network equipment and medium
US10623422B2 (en) Protocol to detect a foreign device connected between network modules

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511

RJ01 Rejection of invention patent application after publication