CN108540337B - Dual-network-port POS machine and network state monitoring system and method thereof - Google Patents

Dual-network-port POS machine and network state monitoring system and method thereof Download PDF

Info

Publication number
CN108540337B
CN108540337B CN201810185866.2A CN201810185866A CN108540337B CN 108540337 B CN108540337 B CN 108540337B CN 201810185866 A CN201810185866 A CN 201810185866A CN 108540337 B CN108540337 B CN 108540337B
Authority
CN
China
Prior art keywords
network
port
external
external network
dual
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.)
Active
Application number
CN201810185866.2A
Other languages
Chinese (zh)
Other versions
CN108540337A (en
Inventor
赵谊科
肖雪辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
PAX Computer Technology Shenzhen Co Ltd
Original Assignee
PAX Computer Technology Shenzhen 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 PAX Computer Technology Shenzhen Co Ltd filed Critical PAX Computer Technology Shenzhen Co Ltd
Priority to CN201810185866.2A priority Critical patent/CN108540337B/en
Publication of CN108540337A publication Critical patent/CN108540337A/en
Application granted granted Critical
Publication of CN108540337B publication Critical patent/CN108540337B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07GREGISTERING THE RECEIPT OF CASH, VALUABLES, OR TOKENS
    • G07G1/00Cash registers
    • G07G1/0009Details of the software in the checkout register, electronic cash register [ECR] or point of sale terminal [POS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/14Arrangements for monitoring or testing data switching networks using software, i.e. software packages

Abstract

The invention is suitable for the technical field of internet and provides a dual-network-port POS machine and a network state monitoring system and method thereof. The network state monitoring system includes: the system comprises a CPU module and a dual-network-port exchange chip, wherein the CPU module is connected with the dual-network-port exchange chip and comprises a system software module and an application software module; the system software module is used for identifying an external network port connected with an external network, detecting the network state of the external network port connected with the external network in real time, and sending abnormal information to the application software module when the network state of the external network port is abnormal; the application software module is used for terminating the transaction in real time according to the abnormal information. The network state of the dual-network-port POS machine can be monitored in real time, transaction failure caused by network abnormality is avoided, efficiency is improved, and user experience is improved. The problem that the network state of an external network port cannot be detected in real time in the conventional dual-network-port POS machine is effectively solved.

Description

Dual-network-port POS machine and network state monitoring system and method thereof
Technical Field
The invention belongs to the technical field of internet, and particularly relates to a dual-network-port POS machine and a network state monitoring system and method thereof.
Background
The POS machine (point of sales terminal) is a multifunctional terminal, and is installed in special commercial tenant and acceptance network point of credit card and connected with computer to form network so as to implement automatic transfer of electronic fund, and possesses the functions of supporting consumption, preauthorization, balance inquiry and transfer, etc. and its use is safe, quick and reliable. In order to facilitate payment and avoid wiring troubles, a dual-portal POS machine is derived in the traditional payment industry, one port of the dual-portal POS machine is connected with a network to realize transaction, and the other port of the dual-portal POS machine is provided for other equipment to use network resources. As shown in fig. 1, the computer and the dual-portal switching chip are connected through an internal portal port0, where the port0 is an RGMII Interface (Reduced Gigabit Media Independent Interface), and the connection status of the internal portal port0 is always successful. The user uses a first external port1 and a second external port2 which can plug and unplug network cables at will, monitors the network state of the system, such as the on-off of a link, data flow statistics, abnormal data packet statistics and the like, and sends a notification in real time when monitoring that the network state is abnormal, so that abnormal consumption is avoided. The existing system software only aims at a single-network port chip for detecting the connection and disconnection of the network port, and the double-network port exchange chip always succeeds in connection with the connection state of the internal network port0 and the computer, so that the real-time monitoring of the connection state of the computer and the double-network port exchange chip cannot be used for monitoring the network state of the external network port connected with the external network in real time.
In summary, the conventional dual-portal POS machine has a problem that the network state of the external portal cannot be detected in real time.
Disclosure of Invention
In view of this, embodiments of the present invention provide a dual-portal POS machine and a network state monitoring system and method thereof, so as to solve the problem that the existing dual-portal POS machine cannot detect the network state of an external portal in real time.
A first aspect of an embodiment of the present invention provides a network status monitoring system for a dual-portal POS device, where the network status monitoring system includes: the system comprises a CPU module and a dual-network-port exchange chip, wherein the CPU module is connected with the dual-network-port exchange chip and comprises a system software module and an application software module;
the system software module is used for identifying the external network port connected with the external network, detecting the network state of the external network port connected with the external network in real time, and sending abnormal information to the application software module when the network state of the external network port is abnormal;
the application software module is used for terminating the transaction in real time according to the abnormal information.
A second aspect of the embodiments of the present invention provides a network state monitoring method for a dual-portal POS machine, where the network state monitoring method includes:
identifying an external network port of a double-network-port exchange chip connected with an external network and detecting the network state of the external network port in real time;
and when the network state of the external network port is abnormal, sending an abnormal information prompt and terminating the transaction in real time according to the abnormal information.
A third aspect of the embodiments of the present invention provides a dual-portal POS device, where the dual-portal POS device includes a network state monitoring system of the dual-portal POS device.
The invention provides a double-network-port POS machine and a network state monitoring system and method thereof.A system software module identifies an external network port connected with an external network, detects the network state of the external network port connected with the external network in real time, and terminates the transaction in real time according to abnormal information by an application software module when the network state is abnormal. The network state of the dual-network-port POS machine can be monitored in real time, transaction failure caused by network abnormality is avoided, efficiency is improved, and user experience is improved. The problem that the network state of an external network port cannot be detected in real time in the conventional dual-network-port POS machine is effectively solved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described 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 inventive exercise.
FIG. 1 is a schematic diagram of a conventional dual-portal POS machine;
fig. 2 is a schematic structural diagram of a network status monitoring system of a dual-portal POS machine according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system software module 101 according to a second embodiment of the present invention;
fig. 4 is a schematic flow chart illustrating an implementation of a network status monitoring method for a dual-portal POS machine according to a third embodiment of the present invention;
fig. 5 is a schematic flow chart of the implementation of step S101 according to the fourth embodiment of the present invention;
fig. 6 is a schematic diagram of a terminal device according to a fifth embodiment of the present invention.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.
The embodiment of the invention aims to solve the problem that the existing double-network-port POS machine cannot detect the network state of an external network port in real time, and provides a double-network-port POS machine and a network state monitoring system and a network state monitoring method thereof. The network state of the dual-network-port POS machine can be monitored in real time, and transaction failure caused by network abnormality is avoided.
In order to explain the technical means of the present invention, the following description will be given by way of specific examples.
The first embodiment is as follows:
as shown in fig. 2, the present embodiment provides a network status monitoring system 100 of a dual-portal POS device, which includes: the CPU module 110 is connected with the dual-network-port switching chip 120, wherein the CPU module 110 comprises a system software module 111 and an application software module 112.
The system software module 111 is configured to identify an external portal connected to an external network, detect a network status of the external portal connected to the external network in real time, and send an exception message to the application software module 112 when the network status of the external portal is abnormal.
The application software module 112 is used to terminate the transaction in real time based on the exception information.
In a specific application, the dual-portal switching chip 120 includes a first external portal 1 and a second external portal 2, and one of the first external portal 1 and the second external portal 2 is connected to an external network. It is therefore necessary to identify, via system software module 111, an external portal (which may be first external portal port1 or second external portal port2) connected to an external network.
In a specific application, the CPU module 110 and the dual port switch chip 120 are connected through the internal port0 of the dual port switch chip 120.
In a specific application, the system software module 111 monitors the network state of the internal port0 of the dual-port switching chip 120 in real time, records a source MAC (Media Access Control) address of an ethernet packet whose destination IP address belongs to the IP address of the dual-port POS, and queries a corresponding external port through an internal learning linked list of the dual-port switching chip 120, where the queried external port is an external port connected to an external network.
In a specific application, the system software module 111 needs to provide the application software module 112 with the network states of the first external port1 and the second external port2 in real time, including the connection state of the ports, data traffic statistics, and abnormal traffic packets. The system software module 111 needs to query the internal register of the dual-portal switching chip 120 in real time to query the two external portals (the first external portal port1 and the second external portal port2) of the dual-portal switching chip 120, record the connection states and data traffic statistics of the two external portals (the first external portal port1 and the second external portal port2), and analyze the network states of the two external portals according to the connection states and data traffic statistics of the two external portals (the first external portal port1 and the second external portal port 2).
In a specific application, when receiving abnormal information that the network state is abnormal at an external port connected to an external network, the application software module 112 terminates the transaction in real time and notifies the user, thereby avoiding transaction failure and improving user experience. It should be noted that the above network state abnormality includes, but is not limited to, a network link disconnection, a network packet abnormality, and the like.
It should be noted that the network monitoring system provided in this embodiment may also be used to monitor the network status of the multi-portal POS, monitor the connection condition between the multi-portal POS and the external network in real time, and avoid a transaction fault caused by network anomaly.
In the network state monitoring system of the dual-portal POS machine provided in this embodiment, the external portal connected to the external network is identified by the system software module, the network state of the external portal connected to the external network is detected in real time, and when the network state is abnormal, the transaction is terminated in real time according to the abnormal information by the application software module. The network state of the dual-network-port POS machine can be monitored in real time, and transaction failure caused by network abnormality is avoided.
Example two:
as shown in fig. 3, in the present embodiment, the system software module 111 in the first embodiment includes a learning unit 111a and a monitoring unit 111 b.
The learning unit 111a is configured to query an external port connected to an external network according to the internal learning linked list of the dual-port switching chip 120.
The monitoring unit 111b is configured to monitor and record a network state of an external port of the dual-port switching chip 120 in real time, and send exception information to the application software module 112 when the network state of the external port connected to the external network is abnormal.
In a specific application, the learning unit 111a monitors the network state of the internal port0 of the dual-port switch chip 120 in real time, records the source MAC address of the ethernet packet whose destination IP address belongs to the IP address of the dual-port POS, and queries a corresponding external port (possibly the first external port1 or port2) through an internal learning linked list of the dual-port switch chip 120, where the queried external port is an external port connected to an external network.
In a specific application, after the driver software is normally loaded, the network data packet of the internal port0 is monitored in real time, no matter in a dynamic allocation IP mode or a static IP mode, a source MAC address of the network data packet whose destination IP address of the input network data packet belongs to the IP address of the POS machine is recorded, and then a physical port corresponding to the MAC address (i.e., the first external port1 or the second external port2) is queried, i.e., an external port connected to an external network is queried. In a specific application, the physical port corresponding to the recorded MAC address may be queried through the internal learning linked list of the dual-port switching chip 120. In specific application, a corresponding external network port is inquired, the network state of the external network port is recorded in a linked list mode, the external network port connected with the external network is marked, and the conditions of network link connection and disconnection, data flow, abnormal data packet occurrence and the like of the external network port can be maintained through the recorded linked list.
In a specific application, the monitoring module 111b queries an internal register of the dual-portal switching chip 120 in real time to query two external portals of the dual-portal switching chip 120, records connection states and data traffic statistics of the two external portals (the first external portal 1 and the second external portal 2), and analyzes network states of the two external portals (the first external portal 1 and the second external portal 2) according to the connection states and the data traffic statistics.
In a specific application, the internal registers of the dual-portal switching chip 120 are queried in real time through the maintenance table of the driver software to query the network states of the first external portal port1 and the second external portal port 2. Specifically, the connection state and the network data traffic statistics of the first external port1 and the second external port2 are queried, the application software module is notified at the first time when the network link of the external port is disconnected or the data packet is abnormal, the application software module can know the network state of the external port at the first time, the transaction is terminated and the user is notified when the network is abnormal, the transaction failure is avoided, and the user experience is improved.
In the network state monitoring system of the dual-portal POS machine provided by this embodiment, the learning unit identifies the external portal connected to the external network, the monitoring unit detects the network state of the external portal connected to the external network in real time, and the application software module terminates the transaction in real time according to the abnormal information when the network state is abnormal. The network state of the dual-network-port POS machine can be monitored in real time, and transaction failure caused by network abnormality is avoided.
Example three:
as shown in fig. 4, the present embodiment provides a method for monitoring a network state of a dual-portal POS machine, which specifically includes:
step S101: and identifying the external network port of the double-network-port exchange chip connected with the external network and detecting the network state of the external network port in real time.
In specific application, the system software module monitors the network state of the internal port0 of the dual-port exchange chip in real time, records the source MAC (Media Access Control) address of the ethernet packet whose destination IP address belongs to the IP address of the dual-port POS, and queries the corresponding external port through the internal learning linked list of the dual-port exchange chip 120, where the queried external port is the external port connected to the external network.
In a specific application, the system software module needs to provide the application software module 112 with the network states of the first external port1 and the second external port2 in real time, including the connection state of the ports, data traffic statistics, and abnormal traffic packets. The system software module needs to query an internal register of the dual-portal switching chip in real time to query two external portals (a first external portal port1 and a second external portal port2) of the dual-portal switching chip, record the connection states and data traffic statistics of the two external portals (a first external portal port1 and a second external portal port2), and analyze the network states of the two external portals according to the connection states and data traffic statistics of the two external portals (a first external portal port1 and a second external portal port 2).
Step S102: and when the network state of the external network port is abnormal, sending abnormal information prompt and terminating the transaction in real time according to the abnormal information.
In specific application, when the application software module receives abnormal information that the network state is abnormal at an external port connected with an external network, the transaction is terminated in real time and the user is informed, so that transaction failure is avoided, and user experience is improved. It should be noted that the above network state abnormality includes, but is not limited to, a network link disconnection, a network packet abnormality, and the like.
It should be noted that, the network state monitoring method for a dual-portal POS machine provided in this embodiment is based on the same concept as the network state monitoring system for a dual-portal POS machine provided in the first embodiment, and the technical effect brought by the method is the same as that of the system embodiment shown in fig. 1 of the present invention, and specific contents may refer to the description in the method embodiment shown in fig. 1 of the present invention, and are not described herein again.
Therefore, the network state monitoring system of the dual-portal POS machine provided in this embodiment identifies the external portal connected to the external network through the system software module, detects the network state of the external portal connected to the external network in real time, and terminates the transaction in real time according to the abnormal information through the application software module when the network state is abnormal. The network state of the dual-network-port POS machine can be monitored in real time, and transaction failure caused by network abnormality is avoided.
Example two:
as shown in fig. 5, in the present embodiment, the step S101 in the first embodiment specifically includes:
step S201: and inquiring an external network port connected with an external network according to the internal learning linked list of the double-network-port switching chip.
In a specific application, the learning unit monitors the network state of the internal port0 of the dual-port switch chip 120 in real time, records the source MAC address of the ethernet packet whose destination IP address belongs to the IP address of the dual-port POS, queries the corresponding external port (possibly the first external port1 or port2) through the internal learning linked list of the dual-port switch chip, and the queried external port is the external port connected to the external network.
In a specific application, after the driver software is normally loaded, the network data packet of the internal port0 is monitored in real time, no matter in a dynamic allocation IP mode or a static IP mode, a source MAC address of the network data packet whose destination IP address of the input network data packet belongs to the IP address of the POS machine is recorded, and then a physical port corresponding to the MAC address (i.e., the first external port1 or the second external port2) is queried, i.e., an external port connected to an external network is queried. In a specific application, the physical port corresponding to the recorded MAC address may be queried through the internal learning linked list of the dual-port switching chip 120. In specific application, a corresponding external network port is inquired, the network state of the external network port is recorded in a linked list mode, the external network port connected with the external network is marked, and the conditions of network link connection and disconnection, data flow, abnormal data packet occurrence and the like of the external network port can be maintained through the recorded linked list.
In an embodiment, the step S201 specifically includes the following steps:
step S2011: and monitoring the network state of the internal network port of the dual-network-port exchange chip in real time.
Step S2012: and recording the source MAC address of the Ethernet data packet of which the destination IP address belongs to the IP address of the dual-port POS machine.
Step S2013: and querying a corresponding external network port through an internal learning linked list of the double-network-port switching chip, wherein the queried external network port is the external network port connected with an external network.
Step S202: and monitoring and recording the network state of the external network port of the dual-network-port exchange chip in real time, and sending abnormal information to the application software module when the network state of the external network port connected with the external network is abnormal.
In a specific application, the monitoring module queries an internal register of the dual-portal switching chip in real time to query two external portals of the dual-portal switching chip, records connection states and data traffic statistics of the two external portals (the first external portal 1 and the second external portal 2), and analyzes network states of the two external portals (the first external portal 1 and the second external portal 2) according to the connection states and the data traffic statistics.
In a specific application, the internal registers of the dual-portal switching chip are queried in real time through the maintenance table of the driver software to query the network states of the first external portal 1 and the second external portal 2. Specifically, the connection state and the network data traffic statistics of the first external port1 and the second external port2 are queried, the application software module is notified at the first time when the network link of the external port is disconnected or the data packet is abnormal, the application software module can know the network state of the external port at the first time, the transaction is terminated and the user is notified when the network is abnormal, the transaction failure is avoided, and the user experience is improved.
In an embodiment, the step S202 specifically includes the following steps:
step S2021: and inquiring an internal register of the double-network-port exchange chip in real time, and recording the connection state and data flow statistics of two external network ports of the double-network-port exchange chip.
Step S2022: and analyzing the network states of the two external network ports according to the connection state and the data flow statistics.
Example five:
fig. 6 is a schematic diagram of a terminal device according to an embodiment of the present invention. As shown in fig. 6, the terminal device 6 of this embodiment includes: a processor 60, a memory 61, and a computer program 62, such as a program, stored in the memory 61 and executable on the processor 60. The processor 60, when executing the computer program 62, implements the steps in the various PID parameter adjustment method embodiments described above, such as steps S101 to S102 shown in fig. 4.
Illustratively, the computer program 62 may be divided into one or more modules/units, which are stored in the memory 61 and executed by the processor 60 to implement the present invention. One or more of the modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 62 in the terminal device 6. For example, the computer program 62 may be partitioned into an identification monitoring module and an exception alert processing module;
the identification monitoring module is used for identifying an external network port of the double-network-port exchange chip connected with an external network and detecting the network state of the external network port in real time;
the abnormity reminding processing module is used for sending abnormity information reminding when the network state of the external network port is abnormal and terminating the transaction in real time according to the abnormity information
The terminal device 6 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal device may include, but is not limited to, a processor 60, a memory 61. Those skilled in the art will appreciate that fig. 6 is merely an example of a terminal device 6 and does not constitute a limitation of terminal device 6 and may include more or less components than those shown, or some components may be combined, or different components, e.g., the terminal device may also include input output devices, network access devices, buses, etc.
The Processor 60 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The storage 61 may be an internal storage unit of the terminal device 6, such as a hard disk or a memory of the terminal device 6. The memory 61 may also be an external storage device of the terminal device 6, such as a plug-in hard disk provided on the terminal device 6, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like. Further, the memory 61 may also include both an internal storage unit of the terminal device 6 and an external storage device. The memory 61 is used for storing computer programs and other programs and data required by the terminal device. The memory 61 may also be used to temporarily store data that has been output or is to be output.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules, so as to perform all or part of the functions described above. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working process of the units and modules in the wireless terminal may refer to the corresponding process in the foregoing method embodiments, and details are not repeated here.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal device and method may be implemented in other ways. For example, the above-described embodiments of the apparatus/terminal device are merely illustrative, and for example, a module or a unit may be divided into only one logical function, and may be implemented in other ways, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
Units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow in the method according to the embodiments of the present invention may also be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of the embodiments of the method. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer readable medium may include: any entity or device capable of carrying computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may include any suitable increase or decrease as required by legislation and patent practice in the jurisdiction, for example, in some jurisdictions, computer readable media may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.
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; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

Claims (10)

1. A network state monitoring system of a dual-network-port POS machine is characterized by comprising: the system comprises a CPU module and a dual-network-port exchange chip, wherein the CPU module is connected with the dual-network-port exchange chip and comprises a system software module and an application software module;
the system software module is used for identifying an external network port connected with an external network according to a source MAC address of an Ethernet data packet, detecting the network state of the external network port connected with the external network in real time, and sending abnormal information to the application software module when the network state of the external network port is abnormal; the network state of the external network port connected with the external network comprises a connection state, data flow statistics and an abnormal flow data packet;
the application software module is used for terminating the transaction in real time according to the abnormal information.
2. The network status monitoring system of claim 1, wherein the system software module comprises a monitoring unit and a learning unit;
the learning unit is used for inquiring an external network port connected with an external network according to an internal learning linked list of the double-network-port switching chip;
the monitoring unit is used for monitoring and recording the network state of the external network port of the double-network-port exchange chip in real time, and sending abnormal information to the application software module when the network state of the external network port connected with the external network is abnormal.
3. The network status monitoring system according to claim 2, wherein the learning unit is specifically configured to: and monitoring the network state of the internal network port of the double-network-port exchange chip in real time, recording the source MAC address of the Ethernet data packet of which the destination IP address belongs to the IP address of the double-network-port POS machine, inquiring the corresponding external network port through the internal learning linked list of the double-network-port exchange chip, wherein the inquired external network port is the external network port connected with the external network.
4. The network status monitoring system according to claim 2, wherein the monitoring unit is specifically configured to: and inquiring an internal register of the double-network-port exchange chip in real time to inquire two external network ports of the double-network-port exchange chip, recording the connection state and data flow statistics of the two external network ports, and analyzing the network states of the two external network ports according to the connection state and the data flow statistics.
5. The network status monitoring system according to claim 1, wherein the CPU module is connected to the dual-port switching chip through an internal port of the dual-port switching chip.
6. A network state monitoring method of a dual-network-port POS machine is characterized by comprising the following steps:
identifying an external network port of a double-network-port switching chip connected with an external network according to a source MAC address of an Ethernet data packet and detecting the network state of the external network port in real time; the network state of the external network port connected with the external network comprises a connection state, data flow statistics and an abnormal flow data packet;
and when the network state of the external network port is abnormal, sending an abnormal information prompt and terminating the transaction in real time according to the abnormal information.
7. The method for monitoring network status according to claim 6, wherein the identifying the external portal connected to the external network by the dual-portal switching chip and detecting the network status of the external portal in real time comprises:
inquiring an external network port connected with an external network according to an internal learning linked list of the double-network-port switching chip;
and monitoring and recording the network state of the external network port of the double-network-port exchange chip in real time, and sending abnormal information to the application software module when the network state of the external network port connected with the external network is abnormal.
8. The method for monitoring network status according to claim 7, wherein the querying an external portal connected to an external network according to an internal learning linked list of the dual-portal switching chip specifically comprises:
monitoring the network state of the internal network port of the double-network-port exchange chip in real time;
recording the source MAC address of the Ethernet data packet of which the destination IP address belongs to the IP address of the dual-network-port POS machine;
and querying a corresponding external network port through the internal learning linked list of the dual-network-port switching chip, wherein the queried external network port is the external network port connected with an external network.
9. The method for monitoring a network state according to claim 7, wherein the monitoring and recording a network state of an external port of the dual-port switching chip in real time specifically comprises:
inquiring an internal register of the double-network-port exchange chip in real time, and recording the connection state and data flow statistics of two external network ports of the double-network-port exchange chip;
and analyzing the network states of the two external network ports according to the connection state and the data flow statistics.
10. A dual-portal POS machine, comprising a network condition monitoring system according to any one of claims 1 to 5.
CN201810185866.2A 2018-03-07 2018-03-07 Dual-network-port POS machine and network state monitoring system and method thereof Active CN108540337B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810185866.2A CN108540337B (en) 2018-03-07 2018-03-07 Dual-network-port POS machine and network state monitoring system and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810185866.2A CN108540337B (en) 2018-03-07 2018-03-07 Dual-network-port POS machine and network state monitoring system and method thereof

Publications (2)

Publication Number Publication Date
CN108540337A CN108540337A (en) 2018-09-14
CN108540337B true CN108540337B (en) 2020-12-22

Family

ID=63486489

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810185866.2A Active CN108540337B (en) 2018-03-07 2018-03-07 Dual-network-port POS machine and network state monitoring system and method thereof

Country Status (1)

Country Link
CN (1) CN108540337B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115239423A (en) * 2022-07-22 2022-10-25 新豪峰农业开发(珠海市)股份有限公司 Electronic commerce transaction platform based on big data and transaction information collection and monitoring method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0357719A1 (en) * 1988-02-11 1990-03-14 A.C. Nielsen Company Marketing research system for obtaining retail data
CN101631076A (en) * 2009-08-21 2010-01-20 杭州华三通信技术有限公司 Message transmission control method and fiber channel over Ethernet protocol system
CN101753284A (en) * 2009-12-25 2010-06-23 中国船舶重工集团公司第七○九研究所 10/100M Ethernet double interface switching method based upon carrier detect and device thereof
GB201111486D0 (en) * 2010-07-06 2011-08-17 Fujitsu Ltd Communication apparatus and communication method
CN102170358A (en) * 2011-04-12 2011-08-31 瑞斯康达科技发展股份有限公司 Backward feed equipment and a power supply control method thereof
CN103634228A (en) * 2013-11-25 2014-03-12 华为技术有限公司 Network message transmission method and equipment
CN104852820A (en) * 2015-05-29 2015-08-19 深圳市汇思易达科技有限公司 Method for determining position of master module in local side
CN105933162A (en) * 2016-06-24 2016-09-07 西安电子科技大学 Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure
CN106408797A (en) * 2016-08-30 2017-02-15 福建联迪商用设备有限公司 Wired POS machine
CN106559359A (en) * 2015-09-29 2017-04-05 日立金属株式会社 Relay and relay system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0357719A1 (en) * 1988-02-11 1990-03-14 A.C. Nielsen Company Marketing research system for obtaining retail data
CN101631076A (en) * 2009-08-21 2010-01-20 杭州华三通信技术有限公司 Message transmission control method and fiber channel over Ethernet protocol system
CN101753284A (en) * 2009-12-25 2010-06-23 中国船舶重工集团公司第七○九研究所 10/100M Ethernet double interface switching method based upon carrier detect and device thereof
GB201111486D0 (en) * 2010-07-06 2011-08-17 Fujitsu Ltd Communication apparatus and communication method
CN102170358A (en) * 2011-04-12 2011-08-31 瑞斯康达科技发展股份有限公司 Backward feed equipment and a power supply control method thereof
CN103634228A (en) * 2013-11-25 2014-03-12 华为技术有限公司 Network message transmission method and equipment
CN104852820A (en) * 2015-05-29 2015-08-19 深圳市汇思易达科技有限公司 Method for determining position of master module in local side
CN106559359A (en) * 2015-09-29 2017-04-05 日立金属株式会社 Relay and relay system
CN105933162A (en) * 2016-06-24 2016-09-07 西安电子科技大学 Low latency Ethernet repeater and low latency Ethernet forwarding method based on T structure
CN106408797A (en) * 2016-08-30 2017-02-15 福建联迪商用设备有限公司 Wired POS machine

Also Published As

Publication number Publication date
CN108540337A (en) 2018-09-14

Similar Documents

Publication Publication Date Title
US7519167B2 (en) System and method for communicating system management information during network interface teaming
CN108809757B (en) System alarm method, storage medium and server
US20150127814A1 (en) Monitoring Server Method
CN102870377A (en) Monitoring method and device for virtual port
CN111638690B (en) Data acquisition method, device, system and equipment based on general information model
CN110995497A (en) Method for unified operation and maintenance in cloud computing environment, terminal device and storage medium
CN105446657A (en) Method for monitoring RAID card
CN106502814B (en) Method and device for recording error information of PCIE (peripheral component interface express) equipment
CN108848006B (en) Port state monitoring method and device
CN103731663B (en) The testing method of a kind of intelligent television and device
CN108540337B (en) Dual-network-port POS machine and network state monitoring system and method thereof
CN107707571A (en) A kind of method and apparatus for managing network external connection
TWI723517B (en) Method for preventing distributed denial of service attack and related equipment
CN112214373A (en) Hardware monitoring method and device and electronic equipment
CN114448689B (en) Method, device, equipment and storage medium for determining boundary equipment of industrial control network
CN111159009A (en) Pressure testing method and device for log service system
WO2020014829A1 (en) Method for detecting network connection of payment gateway, and terminal device
CN112788551B (en) Message processing method and device, terminal equipment and storage medium
CN112214437B (en) Storage device, communication method and device and computer readable storage medium
US10498619B2 (en) Discovering connection of passive cables
CN110488772B (en) DCS centralized monitoring method and device and centralized monitoring terminal
CN113934566A (en) Exception handling method and device and electronic equipment
CN203825445U (en) IO module address overlap identification system in process control station
CN113271223B (en) Unified communication management method for charging module and terminal equipment
CN115643223B (en) Interrupt signal transmission method and device

Legal Events

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