CN115150420A - Service processing method, device and related equipment - Google Patents

Service processing method, device and related equipment Download PDF

Info

Publication number
CN115150420A
CN115150420A CN202110335704.4A CN202110335704A CN115150420A CN 115150420 A CN115150420 A CN 115150420A CN 202110335704 A CN202110335704 A CN 202110335704A CN 115150420 A CN115150420 A CN 115150420A
Authority
CN
China
Prior art keywords
information
service
address
equipment
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110335704.4A
Other languages
Chinese (zh)
Other versions
CN115150420B (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.)
China Mobile Communications Group Co Ltd
China Mobile Shanghai ICT Co Ltd
CM Intelligent Mobility Network Co Ltd
Original Assignee
China Mobile Communications Group Co Ltd
China Mobile Shanghai ICT Co Ltd
CM Intelligent Mobility Network 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 China Mobile Communications Group Co Ltd, China Mobile Shanghai ICT Co Ltd, CM Intelligent Mobility Network Co Ltd filed Critical China Mobile Communications Group Co Ltd
Priority to CN202110335704.4A priority Critical patent/CN115150420B/en
Publication of CN115150420A publication Critical patent/CN115150420A/en
Application granted granted Critical
Publication of CN115150420B publication Critical patent/CN115150420B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a service processing method, a device and related equipment, wherein the method comprises the following steps: receiving message information sent by first equipment based on a first service to be processed, wherein the message information comprises network protocol (IP) information of the first equipment; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service; determining whether the first equipment processes the first service or not according to the matching condition of the IP information of the first equipment and the pre-configured IP information; and if the IP information of the first equipment is matched with the pre-configured IP information, determining that the first equipment continues to process the first service. The embodiment of the invention can realize effective monitoring of the IP information in the service processing process.

Description

Service processing method, device and related equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a service processing method, a service processing device and related equipment.
Background
With the development of the internet of things technology, an electric power system side is responsible for services such as distribution automation, metering, charging pile, voltage monitoring and power transmission monitoring, and the network access of electric power equipment is more convenient.
At present, the network access of the power equipment is more based on a traditional network connection and access method, that is, different network Protocol (IP) address sections are directly divided for different power services. For example, a power system side opens a batch of internet of things cards to a customer of a certain power service, and the power equipment can be connected to the service platform by combining an IP address allocated by the internet of things cards with the communication module. However, because customers often manually allocate the internet of things cards, sometimes some internet of things cards are used in other electric power services, so that multiple electric power devices in the same IP segment may correspond to multiple different services, and the electric power system cannot track certain services by monitoring the IP segment. Therefore, the prior art lacks of effective monitoring of the IP information in the service processing process.
Disclosure of Invention
Embodiments of the present invention provide a service processing method, an apparatus, and a related device, so as to solve the problem that effective monitoring of IP information is lacking in a service processing process of a network device in the prior art.
In order to solve the problems, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a service processing method, where the method includes:
receiving message information sent by first equipment based on a first service to be processed, wherein the message information comprises network protocol (IP) information of the first equipment; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service;
determining whether the first equipment processes the first service or not according to the matching condition of the IP information of the first equipment and the pre-configured IP information;
and if the IP information of the first equipment is matched with the pre-configured IP information, determining that the first equipment continues to process the first service.
In a second aspect, an embodiment of the present invention further provides a service processing apparatus, including:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving message information sent by first equipment based on a first service to be processed, and the message information comprises network protocol (IP) information of the first equipment; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service;
the matching module is used for determining whether the first equipment processes the first service or not according to the matching condition of the IP information of the first equipment and the pre-configured IP information;
a first determining module, configured to determine that the first device continues to process the first service if the IP information of the first device matches with preconfigured IP information.
In a third aspect, an embodiment of the present invention further provides an electronic device, including: a memory, a processor, and a program stored on the memory and executable on the processor; wherein the processor is configured to read the program in the memory to implement the steps of the method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a readable storage medium, which is used for storing a program, and when the program is executed by a processor, the program implements the steps in the method according to the foregoing first aspect.
In the embodiment of the present invention, the IP address of the first device and the service type of the first service to be processed in the message information may be obtained by receiving the message information sent by the first device based on the first service to be processed, so as to determine whether the IP address of the first device matches with the preconfigured IP information corresponding to the service type of the first service, and when the IP information of the first device matches with the preconfigured IP information, it indicates that the IP information allocated to the first device is in an expected service scenario, and the first device may continue to process the first service, thereby implementing effective monitoring on the IP information in the service processing process.
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 of the present invention will be 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 that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
FIG. 2 is a block diagram of a system according to an embodiment of the present invention;
fig. 3 is a second schematic flowchart of a service processing method according to an embodiment of the present invention;
fig. 4 is a structural diagram of a service processing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device provided in an 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 some, not all, embodiments of the present invention. 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.
The terms "first," "second," and the like in the embodiments of the present invention are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Further, the use of "and/or" in this application means that at least one of the connected objects, e.g., a and/or B and/or C, means that 7 cases are included that include a alone, B alone, C alone, and both a and B, B and C, both a and C, and A, B and C.
Referring to fig. 1, fig. 1 is a schematic flow diagram of a service processing method according to an embodiment of the present invention. The service processing method shown in fig. 1 may be executed by a server. As shown in fig. 1, the service processing method may include the following steps:
step 101, receiving message information sent by a first device based on a first service to be processed, wherein the message information comprises network protocol (IP) information of the first device; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service.
And 102, determining whether the first equipment processes the first service or not according to the matching condition of the IP information of the first equipment and the pre-configured IP information.
Step 103, if the IP information of the first device matches with preconfigured IP information, determining that the first device continues to process the first service.
In step 101, the first device may be any device that processes the first service. Taking the power service as an example, the power service may include sub-services such as an automatic distribution network, a service metering, a charging pile, and the like, the first service may be any one of the services, and the first device may be a network device or a communication device that processes the any one of the services, which is not further limited herein.
Specifically, the first device may obtain the corresponding IP address through the SIM card, and communicate with the server through the communication module of the first device, so as to send the message information. It should be understood that the message information may be sent periodically, so that the IP information may be monitored periodically in the service processing process.
The message information may be generated based on a pre-configured network protocol, and the specific format of the message information is defined by the network protocol. The first IP information in the message information may indicate an IP address allocated to the first device, and the second IP information may indicate a service type of the first service, where the service type is in the form of a service identifier.
For different services, corresponding IP address segments are usually correspondingly set, and devices processing different service types usually correspond to different IP address segments, so that the IP address segment corresponding to the service type can be known from the service type processed by the first device, and whether the IP address of the first device is in the corresponding address segment is detected, that is, whether the IP address allocated to the first device is applied to an expected service type can be determined.
In step 102, the server may detect whether the IP information of the first device in the message information matches preset IP information. Specifically, after receiving the message information, the server may obtain the service type corresponding to the first service through the second IP information in the message information, then may query an IP address field corresponding to the service type according to the service type, and match the IP address indicated by the first IP information with the IP address field.
In this embodiment of the present invention, the preconfigured IP information may be an IP address field corresponding to the service type of the first service, and the matching of the IP information may be a process of determining whether the IP address of the first device is located in the IP address field corresponding to the service type of the first service.
In step 103, if the IP address is located in the IP address field, it is determined that the IP information of the first device matches the preset IP information. At this time, it is described that the first service to be executed by the first device belongs to an expected service type, and the first device may continue to execute the first service through the allocated IP address.
Accordingly, when the IP address is not in the IP address field, it can be determined that the IP information of the first device is not matched with the preset IP information. At this time, it is described that the first service to be executed by the first device does not belong to an expected service type, and at this time, the server may withdraw the authority of the first device to execute the first service, for example, by withdrawing an IP address, restricting an IP address access, and the like, the first device is prohibited from continuing to execute an unexpected service through the IP address.
In the embodiment of the present invention, the IP address of the first device and the service type of the first service to be processed in the message information may be obtained by receiving the message information sent by the first device based on the first service to be processed, so as to determine whether the IP address of the first device matches with the preconfigured IP information corresponding to the service type of the first service, and when the IP information of the first device matches with the preconfigured IP information, it indicates that the IP information allocated to the first device is in an expected service scenario, so that the first device may continue to process the first service, and when the IP information of the first device does not match with the preconfigured IP information, it indicates that the IP information allocated to the first device is not in the expected service scenario, so that the first device may be prohibited from continuing to process the first service, thereby implementing effective monitoring of the IP information in a service processing process.
Optionally, the method further comprises:
if the IP information of the first equipment is not matched with the pre-configured IP information, outputting first alarm information;
and recovering the IP address of the first device to an idle IP address set.
In order to reduce the influence of directly prohibiting the first device from processing the first service on the device user, in an embodiment of the present invention, the server may send first alarm information to the device user of the first device to notify the device user that the current IP address of the first device is not in an expected service scenario when the IP information of the first device is not matched with the preconfigured IP information, and recover the IP address of the first device.
It is to be understood that the step of recycling the IP address of the first device to the idle IP address set may be performed after the preset time period of outputting the first alarm information, or may be performed immediately after the first alarm information is output, and is not limited herein.
The sending mode of the first alarm information can be set according to actual needs. In some embodiments, the first alarm information may be an email message or a short message sent to the device user. Of course, in some embodiments, the first alarm information may be sound alarm information sent by a sound alarm device built in the first device, or light alarm information sent by a light alarm device built in the first device, and may be specifically set according to actual needs.
Further, the method may further include:
and allocating the IP address in the idle IP address set to at least one second device according to the priority of the service corresponding to the second device.
In the embodiment of the present invention, since the server may recycle the IP address that is not in the expected service scenario, in order to improve the utilization rate of the IP address, in some embodiments, the server may, when receiving a service request of at least one second device, assign the IP address in the idle IP address set to the at least one second device according to the priority of the service corresponding to the second device.
It should be understood that the at least one second device may be configured to execute services of different service types, and the service request may carry an identifier indicating a service type, so that the server may allocate an IP address to the at least one second device according to a priority of the service, that is, the second device with a higher priority of the service may be preferentially allocated to the IP address, thereby ensuring a processing efficiency of the service with the higher priority.
Further, the allocating an IP address in the idle IP address set to at least one second device according to the priority of the service corresponding to the second device includes:
allocating corresponding IP addresses to the at least one second device according to the sequence of the priority of the service from high to low, wherein the IP address corresponding to the second device is matched with the service of the second device;
and if a plurality of second devices with the same service priority exist, sequentially distributing corresponding IP addresses to the plurality of second devices according to the recovery time of the IP addresses in the idle IP address set.
In the process of allocating the IP address, the server may obtain, according to the service type corresponding to the second device, an IP address field corresponding to the service type through preconfigured IP information, and allocate, in the idle IP address set, the IP address located in the IP address field to the corresponding second device, so that the newly allocated IP address may be in an expected service scenario.
If a plurality of second devices with the same service priority exist, corresponding IP addresses can be sequentially allocated to the plurality of second devices according to the recovery time of the IP addresses in the idle IP address set, namely, the IP addresses recovered first, the expected service types of the second devices can be obtained according to preconfigured IP information, and when the plurality of second devices with the same service priority exist, the IP addresses are allocated to the second devices corresponding to the expected service types, so that the unused IP addresses can be allocated in time, and the utilization rate of the IP addresses is improved.
Optionally, after determining that the first device continues to process the first service, the method further includes:
periodically acquiring network traffic information of the first device in a target historical time period, wherein the target historical time period is a historical time period before the current time of acquiring the network traffic information;
determining that the state of the first device is an operating state under the condition that the network flow indicated by the network flow information is greater than a first preset value;
and under the condition that the network flow indicated by the network flow information is less than or equal to the first preset value, determining that the state of the first equipment is a stop-motion state, and outputting second alarm information.
In this embodiment of the present invention, after determining that the IP address of the first device is in an expected service scenario, the server may further obtain network traffic information of the first device, so as to determine an operating state of the first device. Specifically, the server may query the network traffic information of the first device through the IP address of the first device, for example, if the first device is assigned to a corresponding IP address through an SIM card, the server may query the SIM card traffic of the first device to obtain corresponding network traffic information.
For example, taking the first preset value equal to 0 and the target historical time period equal to 24 hours as an example, if the network traffic information of the first device indicates that the network traffic in the target historical time period is accumulated to 0, it indicates that the current device is in a deactivated state, at this time, the status identifier of the first device may be modified to a deactivated state, and second alarm information is output to prompt a device user that the current first device is in a deactivated state, meanwhile, network traffic information of the first device in the historical 24 hours is continuously and periodically acquired, and whether the first device is reused in a next period is determined.
It should be understood that the period may be set to a period greater than the target historical time period, for example, 24 hours 15 minutes, 24 hours 30 minutes, or 25 hours, and the like, that is, network traffic information of the first device in the historical 24 hours is acquired every 24 hours +15 minutes, 30 minutes, or 1 hour.
If the network traffic information of the first device indicates that the network traffic in the target historical time period is greater than 0, it indicates that the current device is in an in-use state, and the server may not perform other operations and continue to periodically acquire the network traffic information of the first device. The embodiment of the invention can judge the running state of the first equipment by periodically inquiring the network flow information of the first equipment, thereby realizing the timing monitoring of the running state of the first equipment.
Further, after outputting the second alert information, the method further includes:
counting the times of continuously outputting the second alarm information;
and under the condition that the times are greater than or equal to a second preset value, recovering the IP address of the first equipment.
In the embodiment of the present invention, if the first device is in a long-term disabled state, the IP address of the first device may be recovered in order to save IP resources. Specifically, the server may count the number of times of continuously outputting the second alarm information, and recover the IP address of the first device when the number of times is greater than or equal to the second preset value, so that the IP address may be prevented from being in a disabled state for a long time, and the utilization rate of the IP address is improved.
Specifically, the second preset value may be 2 times, 3 times, 5 times, or the like, and may be specifically set according to actual needs.
The sending mode of the second alarm information can be set according to actual needs. In some embodiments, the second alarm information may be an email message sent to the user of the device. In some embodiments, the second alarm information may also be short message information sent to the device user.
Optionally, after the IP address of the first device is recovered, a prompt message may be sent to the user to notify the user that the IP address is recovered, and if the IP address needs to be used, the user needs to apply for opening again.
It should be appreciated that the message information may be generated based on a predefined network protocol, including at least one of:
an Integrated Circuit Card Identification (ICCID) field of the SIM card; an IP address field; an ID field of the power distribution network terminal; a service ID field; a traffic statistics field; an extension field; the MD5 parity bit field.
In the embodiment of the present invention, the predefined network Protocol may be an Electrical service IP Usage Protocol (EIPUP), and the core of the EIPUP Protocol is to use an integrated Circuit Card identification code (ICCID) of an internet of things SIM Card, a corresponding IP of a communication module, and an ID number of a power distribution network terminal as a Protocol header to interact with an operator internet of things platform, and obtain information such as related Card traffic as a basis for determining whether the IP is normally used.
The first device may assign an IP address to network through the SIM card, so the message information may include an ICCID field of the SIM card to identify the SIM card currently used by the first device. Of course, the message information may also include an IP address field, that is, the first IP information in the foregoing embodiment, so as to identify the IP address currently used by the first device. The power distribution network terminal ID is the equipment ID of the first equipment so as to identify the equipment which sends the message currently; the service ID field, i.e. the second IP information in the above embodiment, may indicate a service type of the first service processed by the first device, and the traffic statistics field may indicate a usage status of the current IP address. The message information can also comprise an extension field and an MD5 check bit field, and the extension field can be used for supporting other industries or other sub-services in the power industry; when the verification is started, the verification bit data is filled, and the MD5 algorithm is adopted.
The various optional implementations described in the embodiments of the present invention may be implemented in combination with each other or implemented separately without conflict, and the embodiments of the present invention are not limited thereto.
For convenience of understanding, referring to fig. 2, fig. 2 is a diagram of a possible system architecture of the present invention, and a specific implementation process of the present invention is described in detail below by taking an electric power service as an example.
As shown in fig. 2, in the embodiment of the present invention, the service end may be respectively deployed with an electric power industry core capability service platform and an operator internet of things platform, and the first device may be an electric power distribution network terminal, and is allocated with a corresponding IP address through an SIM card, and communicates with the electric power industry core capability service platform and the operator internet of things platform through a communication module. Referring to fig. 3, in the service processing process, the process of monitoring the IP information by the service end may specifically be:
step 301, the operator internet of things platform receives message information periodically reported by the first device.
Step 302, the operator internet of things platform detects whether the IP information matches with the preset IP information according to the predefined network protocol, thereby determining whether the service usage scenario of the SIM card meets expectations.
In the step 302, the step of determining whether the service usage scenario of the SIM card meets the expectation is performed, that is, the IP address corresponding to the SIM card and the service type executed by the first device are obtained through the message information, and it is determined whether the IP address is in the IP segment where the service type is located, and if the IP address is in the IP segment where the service type is located, it indicates that the service usage scenario of the SIM card meets the expectation.
The predefined network Protocol may be an Electrical service IP Usage Protocol (EIPUP), and the core of the EIPUP Protocol is to use an integrated Circuit Card identification code (ICCID) of an internet of things SIM Card, a corresponding IP of a communication module, and an ID number of an Electrical power distribution network terminal as a Protocol header to interact with an operator internet of things platform, and obtain information such as related Card traffic as a basis for determining whether the IP is normally used.
An effective processing protocol EIPUP based on the IP service of the power equipment defines protocol incoming message information such as a message header, a service ID, a processing method, a verification field and an extension field, and can meet the use requirements of various power services for detecting the IP address of the power equipment and the requirements for dividing services according to the IP field.
Detailed definitions table referring to table 1:
TABLE 1
Figure BDA0002997475540000101
Wherein, 1) ICCID is the only identification number of SIM card, total 20 digits make up, its coding format is: XXXXXXX 0MFSS YYGXXXXXX. The total of 20 bytes is 160 bits, and the rest 32 bits are vacant.
2) The IP address of the communication module is 128 bits, namely: 128bit.
3) And the power distribution network terminal ID is limited to be not more than 32 characters in length and is represented by 32 bytes.
4) A service ID, defined to be not more than 4 characters in length, expressed in 4 bytes; the service type is integer, represented by 2^N, whether the expansion is needed or not represented by 0 or 1, the most significant bit of the byte is placed, 7 bits and the next byte are left, and when the expansion is needed, the length of the expansion field is filled, and the maximum length is not more than 2^ (7 + 16).
5) The flow statistics are represented by single-precision floating point type, 32 bits and 4 bytes, the card state, whether to be checked and whether to change the state are all represented by 0 or 1, the card state is placed at the highest bit of the byte, and 7 bits of space are left.
6) The automatic notification mechanism selection mode is expressed by integer: 1. note 2, mail 3, both.
7) When an extension field exists, filling extension field data, wherein the extension field can be used for supporting other industries or other sub-services in the power industry; when the check is enabled, check bit data is filled in, and an MD5 algorithm is adopted.
8) The processing result message and the request message have basically the same format, and the difference lies in that the processing result triggers a corresponding automatic notification mechanism and an offline recovery mechanism according to the determination condition, which are not described herein again.
Step 303, if the service condition meets expectations, it is proved that the IP corresponding to the first device is used in the expected service of the power industry after being networked, and in this case, the service condition of the card flow in the last 24 hours can be queried according to the ICCID and the ID of the SIM card by the 5G power network integrated management platform of the operator.
If the card statistical flow value is greater than 0, the internet of things card is in an 'in use' state; then no additional processing is needed and the test is repeated every 30 minutes as described above in step 303.
And step 304, if the card statistical flow value is 0, the card is in a 'stop' state, the system automatically triggers an alarm mechanism, informs a user in a short message, mail or other modes, and makes a state mark.
If the "off" state changes to the "on" state within 24 hours, the test may be performed at 30 minute intervals according to step 303.
And 305, if the 'stop' state is not changed in 24 hours, the system continuously informs the user by means of short messages, mails and the like, and continuously maintains the mark state to wait for the response of the client. If the state is not changed for more than 3 times (namely the state is not changed after 72 hours), the state is still in a 'stop' state, the client is informed of the off-line recovery of the IP, and the Internet of things card is in a failure state and needs to be restarted if the Internet of things card needs to be used.
And step 306, if the internet of things does not meet the expectation, the internet of things is used in unexpected services of the power industry after being connected to the network. Under the condition, an alarm mechanism is triggered, the system informs the client in the modes of short messages, mails and the like, and recovers the IP address after 24 hours, so that the use of the card in related services of non-power equipment is cancelled. The card is in a failure state and needs to be re-opened if needed.
And 307, redistributing all the recovered IP addresses in a multi-priority queue mode.
In this step, the multi-level priority queue mainly relates to two dimensions of service and time: firstly, a service priority strategy is adopted, namely, IP addresses are preferentially distributed to equipment of services with high priority, and secondly, the services with the same priority are distributed again according to the reverse order of the recovery time, wherein the earlier the services are recovered, the better the services are.
In the embodiment of the invention, the server can rapidly, efficiently and intelligently detect whether the designated IP is used on the designated service or not through the mode, so that the problem of service confusion of the designated IP address field can be avoided when various types of services are processed, and the utilization rate of the IP address can be improved.
Referring to fig. 4, fig. 4 is a structural diagram of a service processing apparatus according to an embodiment of the present invention. As shown in fig. 4, the service processing apparatus 400 includes:
a receiving module 401, configured to receive message information sent by a first device based on a first service to be processed, where the message information includes network protocol IP information of the first device; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service;
a matching module 402, configured to determine whether the first device processes the first service according to a matching condition between the IP information of the first device and preconfigured IP information;
a first determining module 403, configured to determine that the first device continues to process the first service if the IP information of the first device matches with preconfigured IP information.
In the embodiment of the present invention, a receiving module 401 may receive packet information sent by a first device based on a first service to be processed, so as to obtain an IP address of the first device in the packet information and a service type of the first service to be processed, so as to determine, by a matching module 402, whether the IP address of the first device matches with preconfigured IP information corresponding to the service type of the first service, and in a case that the IP information of the first device matches with the preconfigured IP information, it is indicated that the IP information allocated to the first device is in an expected service scenario, and a first determining module 403 may determine that the first device continues to process the first service, so that effective monitoring of the IP information in a service processing process is achieved.
Optionally, the apparatus may further include:
the first output module is used for outputting first alarm information;
a first recovery module, configured to recover the IP address of the first device to an idle IP address set.
Optionally, the service processing apparatus 400 may further include:
and the allocating module is used for allocating the IP address in the idle IP address set to at least one second device according to the priority of the service corresponding to the second device.
Optionally, the allocating module may specifically include:
the first allocation unit is used for allocating corresponding IP addresses to the at least one second device according to the sequence of the priorities of the services from high to low, and the IP addresses corresponding to the second devices are matched with the services of the second devices;
and if a plurality of second devices with the same service priority exist, the second distributing unit sequentially distributes corresponding IP addresses to the plurality of second devices according to the recovery time of the IP addresses in the idle IP address set.
Optionally, the service processing apparatus 400 may further include:
the network traffic information acquisition module is used for periodically acquiring the network traffic information of the first equipment in a target historical time period, wherein the target historical time period is a historical time period before the current time for acquiring the network traffic information;
the second determining module is used for determining that the state of the first equipment is an operating state under the condition that the network flow indicated by the network flow information is greater than a first preset value;
and the second output module is used for determining that the state of the first equipment is a stop state and outputting second alarm information under the condition that the network flow indicated by the network flow information is less than or equal to the first preset value.
Optionally, the service processing apparatus 400 may further include:
the counting module is used for counting the times of continuously outputting the second alarm information;
and the second recovery module is used for recovering the IP address of the first equipment under the condition that the times is greater than or equal to a second preset value.
The service processing apparatus 400 can implement each process of the method embodiment in fig. 1 in the embodiment of the present invention, and achieve the same beneficial effects, and is not described herein again to avoid repetition.
The embodiment of the invention also provides the electronic equipment. Referring to fig. 5, the communication device may include a processor 501, a memory 502, and a program 5021 stored on the memory 502 and operable on the processor 501.
When executed by the processor 501, the program 5021 may implement any steps in the method embodiment corresponding to fig. 1 and achieve the same beneficial effects, which are not described herein again.
Those skilled in the art will appreciate that all or part of the steps of the method according to the above embodiments may be implemented by hardware associated with program instructions, and the program may be stored in a readable medium. An embodiment of the present invention further provides a readable storage medium, where a computer program is stored on the readable storage medium, and when the computer program is executed by a processor, any step in the method embodiment corresponding to fig. 1 may be implemented, and the same technical effect may be achieved, and in order to avoid repetition, details are not repeated here.
The storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
While the foregoing is directed to the preferred embodiment of the present invention, it will be appreciated by those skilled in the art that various changes and modifications may be made therein without departing from the principles of the invention as set forth in the appended claims.

Claims (10)

1. A method for processing a service, the method comprising:
receiving message information sent by first equipment based on a first service to be processed, wherein the message information comprises network protocol (IP) information of the first equipment; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service;
determining whether the first equipment processes the first service or not according to the matching condition of the IP information of the first equipment and the pre-configured IP information;
and if the IP information of the first equipment is matched with the pre-configured IP information, determining that the first equipment continues to process the first service.
2. The method of claim 1, further comprising:
if the IP information of the first equipment is not matched with the pre-configured IP information, outputting first alarm information;
and recovering the IP address of the first device to an idle IP address set.
3. The method of claim 2, further comprising:
and allocating the IP address in the idle IP address set to at least one second device according to the priority of the service corresponding to the second device.
4. The method of claim 3, wherein the allocating the IP address in the idle IP address set to at least one second device according to the priority of the service corresponding to the second device comprises:
allocating a corresponding IP address to the at least one second device according to the sequence of the priority of the service from high to low, wherein the IP address corresponding to the second device is matched with the service of the second device;
and if a plurality of second devices with the same service priority exist, sequentially distributing corresponding IP addresses to the plurality of second devices according to the recovery time of the IP addresses in the idle IP address set.
5. The method of claim 1, wherein after determining that the first device continues to process the first traffic, the method further comprises:
the method comprises the steps of periodically obtaining network traffic information of first equipment in a target historical time period, wherein the target historical time period is a historical time period before the current moment of obtaining the network traffic information;
determining that the state of the first device is an operating state under the condition that the network flow indicated by the network flow information is greater than a first preset value;
and under the condition that the network flow indicated by the network flow information is less than or equal to the first preset value, determining that the state of the first equipment is a stop-motion state, and outputting second alarm information.
6. The method according to claim 5, wherein after outputting the second alert information, the method further comprises:
counting the times of continuously outputting the second alarm information;
and under the condition that the times are greater than or equal to a second preset value, recovering the IP address of the first equipment.
7. The method of claim 1, wherein the message information is generated based on a predefined network protocol, comprising at least one of:
an Integrated Circuit Card Identification (ICCID) field of the SIM card; an IP address field; an ID field of the power distribution network terminal; a service ID field; a traffic statistics field; an extension field; the MD5 parity bit field.
8. A traffic processing apparatus, comprising:
the device comprises a receiving module, a processing module and a processing module, wherein the receiving module is used for receiving message information sent by first equipment based on a first service to be processed, and the message information comprises network protocol (IP) information of the first equipment; the IP information comprises first IP information and second IP information; the first IP information is used for indicating an IP address, and the second IP information is used for indicating the service type of the service;
a matching module, configured to determine that the first device continues to process the first service when the IP information of the first device matches with preconfigured IP information;
a first determining module, configured to prohibit the first device from processing the first service if the IP information of the first device does not match the preconfigured IP information.
9. An electronic device, comprising: a memory, a processor, and a program stored on the memory and executable on the processor; processor for reading a program in a memory to implement the steps in the service processing method according to any one of claims 1 to 7.
10. A readable storage medium storing a program, characterized in that the program, when executed by a processor, implements the steps in the traffic processing method according to any of claims 1 to 7.
CN202110335704.4A 2021-03-29 2021-03-29 Service processing method and device and related equipment Active CN115150420B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110335704.4A CN115150420B (en) 2021-03-29 2021-03-29 Service processing method and device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110335704.4A CN115150420B (en) 2021-03-29 2021-03-29 Service processing method and device and related equipment

Publications (2)

Publication Number Publication Date
CN115150420A true CN115150420A (en) 2022-10-04
CN115150420B CN115150420B (en) 2024-04-09

Family

ID=83404750

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110335704.4A Active CN115150420B (en) 2021-03-29 2021-03-29 Service processing method and device and related equipment

Country Status (1)

Country Link
CN (1) CN115150420B (en)

Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855820A (en) * 2005-04-29 2006-11-01 华为技术有限公司 Method for providing business according to its type
CN103297560A (en) * 2013-05-21 2013-09-11 江苏物联网研究发展中心 Data flow classification method and data flow classification server
CN103650436A (en) * 2013-07-25 2014-03-19 华为技术有限公司 Service path distribution method, router and service execution entity
CN105337894A (en) * 2014-06-24 2016-02-17 华为技术有限公司 Apparatus, system and method for providing QoS for service message
WO2016045056A1 (en) * 2014-09-25 2016-03-31 华为技术有限公司 Switch and service request packet processing method
CN105939305A (en) * 2015-06-24 2016-09-14 杭州迪普科技有限公司 Access control method and device
CN106453123A (en) * 2016-09-30 2017-02-22 广州视睿电子科技有限公司 Cross-region service processing method and device
CN106559838A (en) * 2015-09-24 2017-04-05 大唐移动通信设备有限公司 Business processing optimization method and device
WO2017133647A1 (en) * 2016-02-06 2017-08-10 华为技术有限公司 Packet processing method, traffic classifier, and service function instance
WO2017206576A1 (en) * 2016-06-01 2017-12-07 中兴通讯股份有限公司 Gateway service processing method and apparatus
CN107548098A (en) * 2016-06-23 2018-01-05 中兴通讯股份有限公司 A kind of method and device of differentiated service processing
CN107770296A (en) * 2016-08-18 2018-03-06 南京中兴软件有限责任公司 Method and device for allocating addresses
CN108011837A (en) * 2017-11-21 2018-05-08 新华三技术有限公司 Message processing method and device
CN108809916A (en) * 2017-05-05 2018-11-13 大唐移动通信设备有限公司 A kind of method for processing business and device
CN108848204A (en) * 2018-07-10 2018-11-20 新华三信息安全技术有限公司 A kind of NAT business immediate processing method and device
CN109558366A (en) * 2018-11-15 2019-04-02 浙江国利网安科技有限公司 A kind of firewall based on multiple processor structure

Patent Citations (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855820A (en) * 2005-04-29 2006-11-01 华为技术有限公司 Method for providing business according to its type
CN103297560A (en) * 2013-05-21 2013-09-11 江苏物联网研究发展中心 Data flow classification method and data flow classification server
CN103650436A (en) * 2013-07-25 2014-03-19 华为技术有限公司 Service path distribution method, router and service execution entity
CN105337894A (en) * 2014-06-24 2016-02-17 华为技术有限公司 Apparatus, system and method for providing QoS for service message
WO2016045056A1 (en) * 2014-09-25 2016-03-31 华为技术有限公司 Switch and service request packet processing method
CN105939305A (en) * 2015-06-24 2016-09-14 杭州迪普科技有限公司 Access control method and device
CN106559838A (en) * 2015-09-24 2017-04-05 大唐移动通信设备有限公司 Business processing optimization method and device
WO2017133647A1 (en) * 2016-02-06 2017-08-10 华为技术有限公司 Packet processing method, traffic classifier, and service function instance
WO2017206576A1 (en) * 2016-06-01 2017-12-07 中兴通讯股份有限公司 Gateway service processing method and apparatus
CN107548098A (en) * 2016-06-23 2018-01-05 中兴通讯股份有限公司 A kind of method and device of differentiated service processing
CN107770296A (en) * 2016-08-18 2018-03-06 南京中兴软件有限责任公司 Method and device for allocating addresses
CN106453123A (en) * 2016-09-30 2017-02-22 广州视睿电子科技有限公司 Cross-region service processing method and device
CN108809916A (en) * 2017-05-05 2018-11-13 大唐移动通信设备有限公司 A kind of method for processing business and device
CN108011837A (en) * 2017-11-21 2018-05-08 新华三技术有限公司 Message processing method and device
CN108848204A (en) * 2018-07-10 2018-11-20 新华三信息安全技术有限公司 A kind of NAT business immediate processing method and device
CN109558366A (en) * 2018-11-15 2019-04-02 浙江国利网安科技有限公司 A kind of firewall based on multiple processor structure

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ZONGTAO DUAN, LEI TANG, ZHILIANG KOU, AND YISHUI ZHU: "Hierarchical Matching of Traffic Information Services Using Semantic Similarity", 《HINDAWI》, 7 June 2018 (2018-06-07) *
张红伟: "基于SoC的千兆以太网QoS研究与验证", 《中国优秀硕士学位论文全文数据库》, 15 February 2019 (2019-02-15) *

Also Published As

Publication number Publication date
CN115150420B (en) 2024-04-09

Similar Documents

Publication Publication Date Title
US8842697B2 (en) Method and device for allocating MAC addresses in a carrier-current communication network
CN106850710B (en) Data cloud storage system, client terminal, storage server and application method
CN108810116B (en) Message processing method and related product
KR880008566A (en) Dynamic Buffer Management System for Data Link Access Protocol Control
CN105636241B (en) Deletion and registration method of M2M node and M2M node
US7243251B2 (en) Method and apparatus for notifying end user of excess power demand
CN104348928B (en) A kind of method, management equipment, request equipment and the system of distribution address resource
CN106470253B (en) IP address recovery method and device
CN105704256B (en) A kind of IP address management methods, devices and systems
CN108073408B (en) System updating method and device of self-service terminal
CN115150420B (en) Service processing method and device and related equipment
CN113660538A (en) Live broadcast plug flow source returning method and system
CN106021026B (en) Backup method and device
CN115118635A (en) Time delay detection method, device, equipment and storage medium
CN110213396B (en) Dynamic decision method and system for automatically allocating addresses to node equipment of Internet of things of airport
CN112100017B (en) Memory resource monitoring method and device
CN102255753B (en) A kind of business configuration synchronous method and system
CN112788778B (en) Data sending method and device
CN118214964A (en) Task allocation method, device, concentrator, meter reading system and readable storage medium
CN111416884B (en) CTDB virtual IP allocation method and device and distributed storage equipment
CN113127220B (en) Data issuing method and device and electronic equipment
CN116886181A (en) Method and device for backing up optical line terminal data and electronic equipment
CN118312275A (en) Message processing method and device
CN117425215A (en) Network resource allocation method and device, storage medium and electronic equipment
CN115567365A (en) Optical transport network special line alarm method, equipment and customer network management platform

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