CN115150420B - Service processing method and device and related equipment - Google Patents

Service processing method and device and related equipment Download PDF

Info

Publication number
CN115150420B
CN115150420B CN202110335704.4A CN202110335704A CN115150420B CN 115150420 B CN115150420 B CN 115150420B CN 202110335704 A CN202110335704 A CN 202110335704A CN 115150420 B CN115150420 B CN 115150420B
Authority
CN
China
Prior art keywords
information
service
address
equipment
addresses
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
CN202110335704.4A
Other languages
Chinese (zh)
Other versions
CN115150420A (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

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 device processes the first service according to the matching condition of the IP information of the first device 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 and 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 device and related equipment.
Background
With the development of the internet of things technology, the power system side is responsible for the services of distribution network automation, metering, charging piles, voltage monitoring, power transmission monitoring and the like, and is more convenient because power equipment is connected to the network.
At present, the power equipment is connected to the network, and more based on the traditional connection network connection method, namely, different network protocol (Internet Protocol, IP) address fields are directly divided for different power services. For example, the power system side opens a batch of internet of things cards for clients of a certain power service, and the power equipment can be connected to the service platform through the IP address allocated by the internet of things cards and 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 services, so that multiple electric devices in the same IP segment may correspond to multiple different services, and the electric power system side cannot track a certain type of service by monitoring the IP segment. As can be seen, the prior art lacks effective monitoring of IP information during service processing.
Disclosure of Invention
The embodiment of the invention provides a service processing method, a device and related equipment, which are used for solving the problem that the prior art lacks effective monitoring of IP information in the service processing process of network equipment.
To solve the above problems, the present invention is achieved 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 device processes the first service according to the matching condition of the IP information of the first device 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 receiving module is used for receiving message information sent by the first equipment based on the 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;
the matching module is used for determining whether the first equipment processes the first service according to the matching condition of the IP information of the first equipment and the preset IP information;
and the first determining module is used for determining that the first equipment continues to process the first service if the IP information of the first equipment is matched with the preset 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, embodiments of the present invention also provide a readable storage medium storing a program which, when executed by a processor, implements the steps of the method as described in the foregoing first aspect.
In the embodiment of the invention, the IP address of the first equipment and the service type of the first service to be processed in the message information can be obtained by receiving the message information sent by the first equipment based on the first service to be processed, so as to judge whether the IP address of the first equipment is matched with the pre-configured IP information corresponding to the service type of the first service, and under the condition that the IP information of the first equipment is matched with the pre-configured IP information, the IP information distributed by the first equipment is in an expected service scene, so that the first equipment can continuously process the first service, and the effective monitoring of the IP information in the service processing process is realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention 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 other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a schematic flow chart of a service processing method according to an embodiment of the present invention;
FIG. 2 is a system block diagram provided by an embodiment of the present invention;
FIG. 3 is a second flow chart of a business processing method according to an embodiment of the present invention;
fig. 4 is a block diagram of a service processing apparatus according to an embodiment of the present invention;
fig. 5 is a block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The terms "first," "second," and the like in embodiments of the present invention are used for distinguishing between similar objects 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. Furthermore, the use of "and/or" in this application means at least one of the connected objects, such as a and/or B and/or C, is meant to encompass the 7 cases of a alone, B alone, C alone, and both a and B, both B and C, both a and C, and both A, B and C.
Referring to fig. 1, fig. 1 is a flow chart 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 steps of:
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 a service type of a service.
Step 102, determining whether the first device processes the first service according to the matching condition of the IP information of the first device and the pre-configured IP information.
Step 103, if the IP information of the first device matches with the preconfigured IP information, determining that the first device continues to process the first service.
In the step 101, the first device may be any device that processes the first service. Taking the electric power service as an example, the electric power service may include sub-services such as an automatic distribution network, service metering, and charging pile, the first service may be any one of the services, and the first device may be a network device or a communication device for processing any one of the services, which is not further limited herein.
Specifically, the first device may acquire a corresponding IP address through the SIM card, and communicate with the server through a communication module of the first device, so as to implement sending of the message information. It should be understood that the message information may be sent periodically, so that regular monitoring of IP information in the service processing process may be implemented.
The message information can 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 exists in a service identifier form.
For different services, corresponding IP address fields are usually set correspondingly, devices for processing different service types usually correspond to different IP address fields, so that the IP address field corresponding to the service type can be obtained through the service type processed by the first device, and whether the IP address of the first device is in the corresponding address field is detected, so that whether the IP address allocated to the first device is applied to the expected service type can be judged.
In the step 102, the server may detect whether the IP information of the first device in the message information matches with preset IP information. Specifically, after the server receives the message information, the service type corresponding to the first service can be obtained through the second IP information in the message information, then the IP address segment corresponding to the service type can be queried according to the service type, and the IP address indicated by the first IP information is matched with the IP address segment.
In the embodiment of the present invention, the preconfigured IP information may be an IP address field corresponding to a service type of the first service, and the matching of the IP information may be a process of determining whether an 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 may be determined that the IP information of the first device matches the preset IP information. At this time, it is indicated 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, if the IP address is not in the IP address field, it may be determined that the IP information of the first device does not match the preset IP information. At this time, it is indicated that the first service to be executed by the first device does not belong to the 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 the IP address, limiting access of the IP address, or the like, to prohibit the first device from continuing to execute the unexpected service through the IP address.
In the embodiment of the invention, the IP address of the first equipment and the service type of the first service to be processed can be obtained by receiving the message information sent by the first equipment based on the first service to be processed, so as to judge whether the IP address of the first equipment is matched with the pre-configured IP information corresponding to the service type of the first service, and when the IP information of the first equipment is matched with the pre-configured IP information, the IP information distributed by the first equipment is indicated to be in an expected service scene, so that the first equipment can continuously process the first service, and when the IP information of the first equipment is not matched with the pre-configured IP information, the IP information distributed by the first equipment is indicated to be not in the expected service scene, and the first equipment can be forbidden to continuously process the first service, thereby realizing effective monitoring of the IP information in the 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 recycling the IP address of the first equipment to the 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 the embodiment of the present invention, the server may first 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 and recover the IP address of the first device when the IP information of the first device is not matched with the preconfigured IP information.
It will be appreciated that the step of recovering the IP address of the first device to the idle IP address set may be performed after the preset period of time of outputting the first alarm information, or may be performed immediately after outputting the first alarm information, which 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 a mail message or a sms message sent to the device user. Of course, in some embodiments, the first alarm information may be an acoustic alarm information sent by an acoustic alarm built in the first device, or a light alarm information sent by a light alarm built in the first device, which may be specifically set according to actual needs.
Further, the method may further include:
and distributing the IP addresses 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 recovers the IP address that is not in the expected service scenario, in order to improve the utilization ratio of the IP address, in some embodiments, the server may allocate 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 when receiving the service request of the at least one second device.
It should be understood that the at least one second device may be used to execute services of different service types, and the service request may carry an identifier indicating the service type, so that the server may assign an IP address to the at least one second device according to the priority of the service, that is, the second device with a high service priority may be preferentially assigned to the IP address, so that processing efficiency of the service with a high priority may be ensured.
Further, 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 includes:
distributing corresponding IP addresses to the at least one second device according to the order of the priority of the service from high to low, wherein the IP addresses corresponding to the second device are matched with the service of the second device;
and if a plurality of second devices with the same priority of the service 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 distributing the IP address, the server side can acquire an IP address segment corresponding to the service type through preconfigured IP information according to the service type corresponding to the second equipment, and distributes the IP address in the IP address segment to the corresponding second equipment in the idle IP address set, so that the newly distributed IP address is in an expected service scene.
If there are multiple second devices with the same service priority, corresponding IP addresses can be sequentially allocated to the multiple second devices according to the recovery time of the IP addresses in the idle IP address set, namely, the IP addresses recovered first can be obtained according to the preconfigured IP information, when there are multiple second devices with the same service priority, 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 moment of acquiring the network traffic information;
determining that the state of the first device is an operation state under the condition that the network flow indicated by the network flow information is larger than a first preset value;
and under the condition that the network flow indicated by the network flow information is smaller than or equal to the first preset value, determining that the state of the first equipment is a disabled state, and outputting second alarm information.
In the embodiment of the present invention, after determining that the IP address of the first device is in the expected service scenario, the server may further obtain the network traffic information of the first device, so as to determine the running 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 the 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 is indicated that the current device is in a deactivated state, at this time, the state identifier of the first device may be modified to be in a deactivated state, and second alarm information may be output, so as to prompt the device user that the current first device is in a deactivated state, and meanwhile, continue to periodically obtain the network traffic information of the first device in the historical 24 hours, and determine whether the first device is recovered in the next period.
It should be appreciated that the period may be set to a period greater than the target history period, for example, 24 hours 15 minutes, 24 hours 30 minutes, 25 hours, or the like, i.e., every 24 hours +15 minutes, 30 minutes, or 1 hour, the network traffic information of the first device described above is acquired once within 24 hours of history.
If the network flow information of the first device indicates that the network flow in the target historical time period is greater than 0, the current device is in the active state, and the server side can continue to periodically acquire the network flow information of the first device without executing other operations. According to the embodiment of the invention, the running state of the first equipment can be judged by periodically inquiring the network flow information of the first equipment, so that the running state of the first equipment is monitored at fixed time.
Further, after outputting the second alarm information, the method further includes:
counting the times of continuously outputting the second alarm information;
and recovering the IP address of the first equipment under the condition that the times are larger than or equal to a second preset value.
In the embodiment of the present invention, if the first device is in a long-term disabled state, in order to save IP resources, the IP address of the first device may be recovered. 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 a second preset value, so that the IP address is 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, or 5 times, or the like, and may be specifically set according to actual needs.
The sending mode of the second alarm information can also be set according to actual needs. In some embodiments, the second alarm information may be mail information sent to the device user. In some embodiments, the second alarm information may also be a short message sent to the device user.
Optionally, after recovering the IP address of the first device, a prompt message may be sent to the user to inform the user that the IP address has been 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 described above may be generated based on a predefined network protocol, including at least one of:
an integrated circuit card identification code (Integrate circuit card identity, ICCID) field of the SIM card; an IP address field; an ID field of a power distribution network terminal; a service ID field; a traffic statistics field; an extension field; MD5 check bit field.
In the embodiment of the present invention, the predefined network protocol may be an electric power service IP usage protocol (Electrical IP Usage Protocol, EIPUP), and the core of the "EIPUP" protocol is to use an integrated circuit card identification code (Integrate Circuit Card Identity, 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 be networked by assigning an IP address to 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, 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 currently sending the message; the service ID field, i.e. the second IP information in the above embodiment, may indicate a service type of the first service handled 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, wherein the extension field can be used for supporting other industries or other sub-services of the power industry; and when verification is started, filling in check bit data, and adopting an MD5 algorithm.
The various optional embodiments described in the embodiments of the present invention may be implemented in combination with each other without collision, or may be implemented separately, which is not limited to the embodiments of the present invention.
For ease of understanding, referring to fig. 2, fig. 2 is a schematic diagram of a possible system architecture of the present invention, and the specific implementation of the present invention will be described in detail below by taking 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 a core capability service platform of the power industry and an internet of things platform of an operator, and the first device may be a power distribution network terminal, be allocated to a corresponding IP address through a SIM card, and be in communication with the core capability service platform of the power industry and the internet of things platform of the operator through a communication module. Referring to fig. 3, in the service processing process, the process of monitoring the IP information by the server may specifically be:
step 301, an operator internet of things platform receives message information periodically reported by a first device.
Step 302, the internet of things platform of the operator detects whether the IP information is matched with preset IP information according to a predefined network protocol, so as to determine whether the service usage scenario of the SIM card meets the expectations.
In the step 302, the step of determining whether the service usage scenario of the SIM card meets the expectations is performed by acquiring the IP address corresponding to the SIM card and the service type executed by the first device through the message information, and determining whether the IP address is in the IP segment where the service type is located, if so, indicating that the service usage scenario of the SIM card meets the expectations.
The predefined network protocol may be an electric power service IP usage protocol (Electrical IP Usage Protocol, EIPUP), and the core of the "EIPUP" protocol is to use an integrated circuit card identification code (Integrate Circuit Card Identity, 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.
Based on an effective processing protocol EIPUP of the IP service of the power equipment, protocol incoming message information such as a message header, a service ID, a processing method, a verification field and an extension field is defined, so that the use requirements of various power services for detecting the IP address of the power equipment and the requirements for dividing the service according to the IP section can be met.
Detailed definition table referring to table 1:
TABLE 1
Wherein, 1) ICCID is the unique identification number of SIM card, totally 20 digits are formed, its code format is: XXXX 0MFSS YYGXX XXXXXX. A total of 20 bytes 160 bits are needed, leaving 32 bits free.
2) The IP address of the communication module is 128 bits, namely: 128 bits.
3) The power distribution network terminal ID is limited to be no more than 32 characters in length and is expressed by 32 bytes.
4) Service ID, defined length not exceeding 4 characters, expressed in 4 bytes; the service type is integer, expressed by 2-N, whether expansion is needed is expressed by 0 or 1, the most significant bit of the byte is set, 7 bits and the next byte are left, and when expansion is needed, the length of an expansion field is filled, and the length is not more than 2 (7+16) at most.
5) The flow statistics are represented by single-precision floating point type, 32 bits, 4 bytes, card state, whether checking is needed or not, whether state is changed or not is represented by 0 or 1, and the data are placed at the highest bit of the bytes, and the 7 bits are left to be free.
6) The selection mode of the automatic notification mechanism is expressed by integer: 1. short message 2 mail 3, both.
7) When the extension field exists, the extension field data is filled in, and the extension field can be used for supporting other industries or other sub-services of the power industry; and when verification is started, filling in check bit data, and adopting an MD5 algorithm.
8) The formats of the processing result message and the request message are basically consistent, and the difference is that the corresponding automatic notification mechanism and the offline recovery mechanism are triggered according to the judgment condition in the processing result, which is not described herein.
Step 303, if the service is in line with the expectation, it proves that the IP corresponding to the first device is used on the service expected by the power industry after being connected to the network, and in this case, the service condition of the card flow of the last 24 hours can be queried by the 5G power network integrated management platform of the operator according to the ICCID and the ID of the SIM card.
If the card statistical flow value is greater than 0, the card of the Internet of things is in an 'in-use' state; no additional processing is required and the test is repeated at 30 minutes intervals according to step 303.
Step 304, if the card statistics flow value is 0, it is indicated that the card is in the "deactivated" state, the system automatically triggers an alarm mechanism, informs the user through short messages, mails and the like, and makes a status mark.
If the "deactivated" state changes to the "active" state within 24 hours, it is detected as per step 303 above every 30 minutes.
Step 305, if the "deactivated" state is unchanged within 24 hours, the system continues to inform the user by means of short messages, mails, etc., and continues to maintain the marked state, waiting for the reply of the client. If the state is still unchanged for more than 3 times (i.e. the state is still unchanged after 72 hours), and the state is still in the 'disabled' state, the client is informed of offline recovery of the IP, and if the Internet of things card is in the disabled state, the Internet of things card needs to be restarted.
Step 306, if the network card does not meet the expectations, the network card is used in unexpected business of the power industry after the network card is connected with the Internet. Under the condition, an alarm mechanism is triggered, the system informs the client in a mode of short messages, mails and the like, recovers the IP address after 24 hours, and cancels the use of the card in related business of non-power equipment. The card is in a disabled state and needs to be turned back on if it is to be used.
In step 307, all recovered IP addresses are reassigned by means of a multi-level priority queue.
In this step, the multi-level priority queue mainly involves two dimensions of traffic and time: firstly, a service priority policy, namely, equipment of a service with high priority is used for distributing IP addresses preferentially, and secondly, the service with the same priority is recycled earlier according to the reverse recycling time, and is distributed more preferentially.
In the embodiment of the invention, the server can rapidly, efficiently and intelligently detect whether the appointed IP is used on the appointed service through the mode, so that the problem of disordered appointed IP address section service can be avoided when the multi-type service is processed, and the utilization rate of the IP address can be improved.
Referring to fig. 4, fig. 4 is one of the block diagrams of the service processing apparatus according to the embodiment of the present invention. As shown in fig. 4, the service processing apparatus 400 includes:
a receiving module 401, configured to receive packet information sent by a first device based on a first service to be processed, where the packet 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 situation between the IP information of the first device and the 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 the preconfigured IP information.
In the embodiment of the present invention, the receiving module 401 may receive the message information sent by the first device based on the first service to be processed, so as to obtain the IP address of the first device in the message information and the service type of the first service to be processed, so as to determine, by using the matching module 402, whether the IP address of the first device matches with the preconfigured IP information corresponding to the service type of the first service, and if 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 the first determining module 403 may determine that the first device continues to process the first service, thereby implementing effective monitoring on the IP information in the service processing process.
Optionally, the apparatus may further include:
the first output module is used for outputting first alarm information;
and the first recycling module is used for recycling the IP address of the first equipment to the idle IP address set.
Optionally, the service processing apparatus 400 may further include:
and the distribution module is used for distributing the IP addresses 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 allocation 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 order from high to low of the priority of the service, and the IP addresses corresponding to the second device are matched with the service of the second device;
and the second allocation unit is used for sequentially allocating the corresponding IP addresses to the plurality of second devices according to the recovery time of the IP addresses in the idle IP address set if the plurality of second devices with the same service priority exist.
Optionally, the service processing apparatus 400 may further include:
the 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 moment of acquiring the network traffic information;
the second determining module is used for determining that the state of the first equipment is an operation state under the condition that the network flow indicated by the network flow information is larger than a first preset value;
and the second output module is used for determining the state of the first equipment to be the inactive state and outputting second alarm information under the condition that the network flow indicated by the network flow information is smaller than or equal to the first preset value.
Optionally, the service processing apparatus 400 may further include:
the statistics module is used for counting the times of continuously outputting the second alarm information;
and the second recycling module is used for recycling the IP address of the first equipment under the condition that the times are larger than or equal to a second preset value.
The service processing apparatus 400 can implement the processes of the method embodiment of fig. 1 in the embodiment of the present invention, and achieve the same beneficial effects, and in order to avoid repetition, a detailed description is omitted here.
The embodiment of the invention also provides electronic equipment. Referring to fig. 5, a communication device may include a processor 501, a memory 502, and a program 5021 stored on the memory 502 and executable on the processor 501.
The program 5021, when executed by the processor 501, may implement any steps and achieve the same advantageous effects in the method embodiment corresponding to fig. 1, which will not be described herein.
Those of ordinary skill in the art will appreciate that all or a portion of the steps of implementing the methods of the embodiments described above may be implemented by hardware associated with program instructions, where the program may be stored on a readable medium. The embodiment of the present invention further provides a readable storage medium, where a computer program is stored, where the computer program when executed by a processor may implement any step in the method embodiment corresponding to fig. 1, and may achieve the same technical effect, so that repetition is avoided, and no further description is given here.
Such as Read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic or optical disk, etc.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that various modifications and adaptations can be made without departing from the principles of the present invention, and such modifications and adaptations are intended to be comprehended within the scope of the present invention.

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 device processes the first service according to the matching condition of the IP information of the first device and the pre-configured IP information, wherein the pre-configured IP information comprises an IP address field corresponding to the service type of the first service;
if the IP information of the first device is matched with the pre-configured IP information, determining that the first device continues to process the first service;
the determining whether the first device processes the first service according to the matching condition of the IP information of the first device and the preconfigured IP information includes:
and determining whether the first equipment processes the first service according to the matching condition of the IP address indicated by the IP information and the IP address field corresponding to the service type of the first service.
2. The method according to claim 1, wherein 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 recycling the IP address of the first equipment to the idle IP address set.
3. The method according to claim 2, wherein the method further comprises:
and distributing the IP addresses 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. A method according to claim 3, wherein said assigning IP addresses in said set of free IP addresses to at least one second device according to priorities of services corresponding to the second devices comprises:
distributing corresponding IP addresses to the at least one second device according to the order of the priority of the service from high to low, wherein the IP addresses corresponding to the second device are matched with the service of the second device;
and if a plurality of second devices with the same priority of the service 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:
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 moment of acquiring the network traffic information;
determining that the state of the first device is an operation state under the condition that the network flow indicated by the network flow information is larger than a first preset value;
and under the condition that the network flow indicated by the network flow information is smaller than or equal to the first preset value, determining that the state of the first equipment is a disabled state, and outputting second alarm information.
6. The method of claim 5, wherein after outputting the second alarm information, the method further comprises:
counting the times of continuously outputting the second alarm information;
and recovering the IP address of the first equipment under the condition that the times are larger than or equal to a second preset value.
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 a power distribution network terminal; a service ID field; a traffic statistics field; an extension field; MD5 check bit field.
8. A service processing apparatus, comprising:
the receiving module is used for receiving message information sent by the first equipment based on the 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;
the matching module is used for determining that the first equipment continues to process the first service under the condition that the IP information of the first equipment is matched with the pre-configured IP information, wherein the pre-configured IP information comprises an IP address field corresponding to the service type of the first service;
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;
the matching module is used for:
and determining whether the first equipment processes the first service according to the matching condition of the IP address indicated by the IP information and the IP address field corresponding to the service type of the first service.
9. An electronic device, comprising: a memory, a processor, and a program stored on the memory and executable on the processor; -characterized in that the processor is arranged to read a program in a memory for implementing the steps of the service processing method according to any of claims 1 to 7.
10. A readable storage medium storing a program, wherein the program when executed by a processor implements the steps of the business processing method of any one 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 CN115150420A (en) 2022-10-04
CN115150420B true 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 business processing method and apparatus
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 business processing method and apparatus
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》.2018,全文. *
基于SoC的千兆以太网QoS研究与验证;张红伟;《中国优秀硕士学位论文全文数据库》;20190215;全文 *

Also Published As

Publication number Publication date
CN115150420A (en) 2022-10-04

Similar Documents

Publication Publication Date Title
US8842697B2 (en) Method and device for allocating MAC addresses in a carrier-current communication network
CN110619114B (en) Serial number generation method and system
CN111522641B (en) Task scheduling method, device, computer equipment and storage medium
CN108874562A (en) Distributed high concurrent message queue supplying system
CN112508474B (en) Express delivery method and express cabinet system
CN105704256B (en) A kind of IP address management methods, devices and systems
CN111436029B (en) Method, system and related equipment for carrying out charging processing on network slice example
CN115150420B (en) Service processing method and device and related equipment
CN110912947A (en) Data processing method and device
CN108830724B (en) Resource data packet processing method and terminal equipment
CN109286537B (en) Board management system and management method for frame type multi-service board
CN115297447B (en) Long short message merging method, system, equipment and storage medium
CN110545336A (en) IP address replacing method, device, computer equipment and storage medium
CN115065664A (en) Internet protocol address recovery method, electronic equipment and storage medium
CN110213396B (en) Dynamic decision method and system for automatically allocating addresses to node equipment of Internet of things of airport
CN113190347A (en) Edge cloud system and task management method
CN114726763A (en) Method and system for detecting service identification capability of DPI system
CN106210095B (en) Port processing method and device
CN112788778B (en) Data sending method and device
CN111953621A (en) Data transmission method and device, computer equipment and storage medium
CN113127220B (en) Data issuing method and device and electronic equipment
CN108572870B (en) Data acquisition method, device, electronic equipment, storage medium and system
CN112769889B (en) Service data pushing method and device, storage medium and electronic device
CN115694901B (en) VPN tunnel communication method and device and electronic equipment
CN111130919B (en) Interface monitoring method, device and system and storage medium

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