Information processing method, device, equipment and storage medium
By writing service information into RIP packets and recording them in the router's service routing table in mobile edge computing, the problem of high latency in traditional cloud computing is solved, enabling direct sensing and forwarding of service information, reducing communication delays, and satisfying meet the needs of latency-sensitive applications.
Patent Information
- Application Number
- CN202110619115.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-06-03
AI Technical Summary
Traditional cloud computing has high latency and unstable network performance, and cannot effectively meet the needs of latency-sensitive applications. Especially in mobile edge computing, service requests need to be transmitted to the control center for scheduling, resulting in increased communication delays.
By determining the service information on the MEC server, including the service code, service port number and maximum service distance, writing it into the RIP packet and sending it to the router, the router records it in the service routing table to realize the perception and direct service information. Forward to avoid transmission to the control center.
It effectively reduces communication delays, meets the needs of delay-sensitive applications, improves service response speed, and reduces service redundancy and repeated establishment.
Smart Images

Figure CN115442751B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless technology, and in particular to an information processing method, device, equipment and storage medium. Background Art
[0002] With the emergence of new delay-sensitive applications, traditional cloud computing can no longer meet the needs of users. At present, methods such as mobile edge computing, mobile micro-cloud, and fog computing are proposed to solve the problems of high latency and unstable network performance in cloud computing. For example, a large number of mobile edge computing (MEC) servers are deployed near users to meet the needs of delay-sensitive applications. However, in actual applications, the services on MEC can only be scheduled by the control center in the network, resulting in the inability to effectively meet the needs of delay-sensitive applications. Summary of the invention
[0003] In view of this, embodiments of the present invention are intended to provide an information processing method, apparatus, device, and storage medium.
[0004] The technical solution of the embodiment of the present invention is achieved as follows:
[0005] At least one embodiment of the present invention provides an information processing method, which is applied to a MEC server, and the method includes:
[0006] Determine the service information to be broadcasted by the MEC server; the service information includes at least a service code, a service port number and a maximum service distance;
[0007] Writing the service information into a Routing Information Protocol (RIP) data packet;
[0008] The RIP data packet containing the service information is sent to a router in the network; the RIP data packet is used for the router to record the service information in a service routing table.
[0009] In addition, according to at least one embodiment of the present invention, the step of writing the service information into a RIP data packet comprises:
[0010] Writing the service information into at least two existing fields in the routing information of the RIP data packet;
[0011] or,
[0012] At least two fields are added to the routing information of the RIP data packet; and the service information is written into the at least two added fields.
[0013] In addition, according to at least one embodiment of the present invention, the writing of the service information into at least two existing fields in the routing information of the RIP data packet includes:
[0014] Writing the service code in the service information into the first field already in the routing information of the RIP data packet;
[0015] The service port and the maximum service distance in the service information are written into the second field already existing in the routing information of the RIP data packet.
[0016] In addition, according to at least one embodiment of the present invention, the writing of the service information into at least two existing fields in the routing information of the RIP data packet includes:
[0017] Writing the service code in the service information into the first field already in the routing information of the RIP data packet;
[0018] Writing the service port in the service information into the second field already in the routing information of the RIP data packet; the second field also includes a reserved field corresponding to the service code;
[0019] The maximum service distance in the service information is written into the third field in the RIP data packet; the third field also includes the routing hop count metric value in the routing information.
[0020] At least one embodiment of the present invention provides an information processing method, applied to a router, the method comprising:
[0021] Receive RIP data packets sent by MEC server;
[0022] The RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance;
[0023] The service information in the RIP data packet is recorded in a service routing table.
[0024] In addition, according to at least one embodiment of the present invention, after recording the service information in the RIP data packet in the service routing table, the method further includes:
[0025] When a RIP data packet is received, querying from the service routing table whether service information corresponding to the received RIP data packet is stored;
[0026] If the service information corresponding to the received RIP data packet is queried from the service routing table, a first message is returned to the corresponding MEC server; the first message is used to indicate that the MEC server does not need to repeatedly establish the corresponding service.
[0027] In addition, according to at least one embodiment of the present invention, the method further includes:
[0028] If the service information corresponding to the received RIP data packet is not found from the service routing table, a second message is returned to the corresponding MEC server; the second message is used to instruct the MEC server to establish the corresponding service.
[0029] In addition, according to at least one embodiment of the present invention, the RIP data packet also includes a routing hop count metric; and recording the service information in the RIP data packet in a service routing table includes:
[0030] Compare the routing hop count metric with the maximum service distance in the service information to obtain a comparison result;
[0031] When the comparison result indicates that the routing hop count metric value is greater than the maximum service distance, the service information is discarded.
[0032] In addition, according to at least one embodiment of the present invention, the RIP data packet also includes a router physical interface; when at least two RIP data packets are received, the method further includes:
[0033] Determine whether the at least two RIP packets contain the same service code; and determine whether the at least two RIP packets contain the same router physical interface;
[0034] When it is determined that the at least two RIP data packets contain the same service code and the same router physical interface, the service information of the RIP data packet received at the latest receiving time is recorded in the service routing table.
[0035] In addition, according to at least one embodiment of the present invention, the RIP data packet also includes a routing hop count metric; the method further includes:
[0036] When it is determined that the at least two RIP data packets contain the same service code and contain different router physical interfaces, determining a RIP data packet with a minimum hop count metric value from the at least two RIP data packets;
[0037] The service information of the determined RIP data packet is recorded in the service routing table.
[0038] At least one embodiment of the present invention provides an information processing device, including:
[0039] A first processing unit is used to determine service information to be broadcast by the MEC server; the service information includes at least a service code, a service port number and a maximum service distance;
[0040] A second processing unit, used for writing the service information into a RIP data packet;
[0041] The sending unit is used to send the RIP data packet written with the service information to the router in the network; the RIP data packet is used for the router to record the service information in the service routing table.
[0042] At least one embodiment of the present invention provides an information processing device, including:
[0043] A receiving unit, used to receive a RIP data packet sent by a MEC server;
[0044] The RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance;
[0045] The third processing unit is used to record the service information in the RIP data packet in a service routing table.
[0046] At least one embodiment of the present invention provides an information processing device, including:
[0047] The first processor is configured to determine service information to be broadcast by the MEC server; the service information includes at least a service code, a service port number, and a maximum service distance; and write the service information into a RIP data packet;
[0048] The first communication interface is used to send a RIP data packet containing the service information to a router in the network; the RIP data packet is used for the router to record the service information in a service routing table.
[0049] At least one embodiment of the present invention provides an information processing device, including:
[0050] A second communication interface is used to receive a RIP data packet sent by the MEC server; wherein the RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance;
[0051] The third processor is used to record the service information in the RIP data packet in the service routing table
[0052] At least one embodiment of the present invention provides a MEC server, including a processor and a memory for storing a computer program that can be run on the processor.
[0053] Wherein, when the processor is used to run the computer program, it executes the steps of any one of the above-mentioned methods on the MEC server side.
[0054] At least one embodiment of the present invention provides a router, comprising a processor and a memory for storing a computer program that can be run on the processor.
[0055] Wherein, the processor is used to execute the steps of any one of the above-mentioned methods on the router side when running the computer program.
[0056] At least one embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of any of the above methods when executed by a processor.
[0057] The information processing method, device, equipment and storage medium provided by the embodiments of the present invention determine the service information to be broadcasted by the MEC server; the service information includes at least a service code, a service port number and a maximum service distance; the service information is written into a RIP data packet; the RIP data packet written with the service information is sent to a router in the network; the RIP data packet is used for the router to record the service information in a service routing table. By adopting the technical solution provided by the embodiments of the present invention, the routers in the network can sense what kind of service the MEC server has placed, and can subsequently directly forward the service request to the corresponding MEC server for execution, without forwarding the service request to the control center, thereby avoiding communication delays and effectively meeting the needs of delay-sensitive applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 is a schematic diagram of a mobile edge computing architecture in the related art;
[0059] Figure 2 It is a schematic diagram of an implementation flow of an information processing method according to an embodiment of the present invention;
[0060] Figure 3 The embodiment of the present invention is a schematic diagram of the implementation process of writing service information into a RIP data packet. Figure 1 ;
[0061] Figure 4 It is a schematic diagram of the composition structure of a RIP data packet according to an embodiment of the present invention;
[0062] Figure 5 It is a schematic diagram of the composition structure of routing information in a RIP data packet according to an embodiment of the present invention;
[0063] Figure 6 The embodiment of the present invention is a schematic diagram of the implementation process of writing service information into a RIP data packet. Figure 2 ;
[0064] Figure 7 It is a schematic diagram of the implementation flow of another information processing method according to an embodiment of the present invention;
[0065] Figure 8 It is a schematic diagram of the implementation process of the router query service routing table according to the embodiment of the present invention;
[0066] Fig. 9 The embodiment of the present invention is a schematic diagram of the implementation process of the router recording service information in the service routing table Figure 1 ;
[0067] Fig.10 The embodiment of the present invention is a schematic diagram of the implementation process of the router recording service information in the service routing table Figure 2 ;
[0068] Fig.11 It is a schematic diagram of the structure of an information processing device according to an embodiment of the present invention;
[0069] Fig.12 It is a schematic diagram of the structure of another information processing device according to an embodiment of the present invention;
[0070] Fig.13 It is a schematic diagram of the composition structure of the MEC server according to an embodiment of the present invention;
[0071] Fig.14 It is a schematic diagram of the composition structure of the router according to the embodiment of the present invention. DETAILED DESCRIPTION
[0072] Before introducing the technical solution of the embodiment of the present invention, the related technology is first described.
[0073] In related technologies, with the emergence of new delay-sensitive applications such as augmented reality (AR), virtual reality (VR), and Internet of Vehicles, traditional cloud computing can no longer meet the needs of users. In order to solve the problems of high latency and unstable network performance in cloud computing, existing research has proposed methods such as mobile edge computing, mobile micro-cloud, fog computing, and follow-me cloud. Their common feature is that a large number of small-scale edge servers are deployed near users. Figure 1 It is a schematic diagram of the mobile edge computing architecture in the related technology. The edge server is deployed at the routing entrance or base station, and users can obtain services nearby without transmitting the task to the cloud computing center.
[0074] In the related art, there are two edge computing solutions. The first solution is that each edge server is responsible for executing service requests generated locally. Service requests that cannot be completed or do not need to be completed by the edge server are forwarded to the cloud computing center for execution, and the edge servers do not work together. The second solution is that a unified control and dispatch center is responsible for the load balancing and service scheduling of each edge server. The control center determines what kind of service each edge server should build based on the load conditions in each place and the changing rules of service requests. At the same time, any received service request can be dispatched to any location in the cluster for execution. In this solution, edge servers in the same edge cloud computing cluster can collaborate.
[0075] In summary, in the related art, although the independent execution of local service requests effectively reduces the distance over which service requests are forwarded, due to the limited performance of local edge servers, frequent switching between different services is required. Even in edge servers that adopt container architecture, such frequent service switching will greatly reduce the availability of services and server performance. In addition, centralized service control and scheduling solutions can place different services in different locations to ensure that services can run stably without frequent switching. However, since service requests need to be transmitted to the control center before they can be scheduled for execution, the communication distance is increased; and the control center cannot effectively perceive the communication delay between the user who initiates the service request and each edge server, and cannot effectively meet the needs of delay-sensitive services / applications.
[0076] Based on this, in various embodiments of the present invention, the service information to be broadcast by the MEC server is determined; the service information includes at least a service code, a service port number and a maximum service distance; the service information is written into a RIP data packet; the RIP data packet written with the service information is sent to a router in the network; the RIP data packet is used for the router to record the service information in a service routing table.
[0077] It should be noted that in the embodiment of the present invention, the routers adjacent to the MEC server in the network can sense what kind of service the MEC server has placed, and can subsequently directly forward the service request to the corresponding MEC server for execution without forwarding the service request to the control center, thereby avoiding communication delays and effectively meeting the needs of delay-sensitive services / applications.
[0078] The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments.
[0079] The embodiment of the present invention provides an information processing method, which is applied to a MEC server, such as Figure 2 As shown, the method includes:
[0080] Step 201: Determine the service information to be broadcast by the MEC server; the service information includes at least a service code, a service port number, and a maximum service distance.
[0081] It should be noted that the content of the service information is not limited in this application. In actual application, other content can be added to the service information according to actual conditions.
[0082] The maximum service distance represents the longest propagable hop number in the RIP protocol, which can be determined by the MEC server according to the service content.
[0083] Here, the more sensitive the MEC server is to latency, the smaller the maximum service distance is; conversely, the larger it is. However, the maximum limit of no more than 16 hops specified by the RIP protocol will also be retained.
[0084] It can be understood that the service refers to a service that has been uniformly registered, and the same service has the same service code, that is, services with the same service type are uniformly coded to obtain the same service code.
[0085] Step 202: Write the service information into a RIP data packet.
[0086] It can be understood that before the service information is written into the RIP data packet, the RIP data packet may consist of a RIP header and n routing information.
[0087] It should be noted that by improving the RIP protocol, RIP data packets can transmit service information related to the MEC server, such as service code, service port number, and maximum service distance. In this way, the service information related to the MEC server can be transmitted to the routers in the network through RIP data packets.
[0088] Step 203: Send the RIP data packet containing the service information to a router in the network; the RIP data packet is used by the router to record the service information in a service routing table.
[0089] It is understandable that the service information can be written into at least two existing fields in the routing information of the RIP data packet; or, at least two fields are added to the routing information of the RIP data packet; and the service information is written into the at least two added fields.
[0090] It should be noted that after the RIP data packet carrying the service information related to the MEC server is sent to the router in the network, the router can promptly perceive the service information related to the MEC server, so that the service request can be forwarded directly without forwarding it to the control center, thereby avoiding excessively long communication distances.
[0091] It can be understood that the information processing method provided by the embodiment of the present invention can be applied to future data communication networks oriented towards computing network convergence. The router can sense what kind of services are placed by the neighboring MEC servers, and directly forward the service requests to the corresponding MEC servers for execution, avoiding unnecessary communication overhead.
[0092] Figure 3 This is the process of writing service information into a RIP data packet in an embodiment of the present invention. Figure 3 As shown, it includes steps 301 to 303:
[0093] Step 301: Determine the service information to be broadcast by the MEC server; the service information includes at least a service code, a service port number, and a maximum service distance.
[0094] Step 302: Write the service code in the service information into the first field already existing in the routing information of the RIP data packet.
[0095] Figure 4 This is a schematic diagram of the composition structure of a RIP data packet, such as Figure 4 As shown, a RIP data packet may consist of a RIP header, routing information 1, routing information 2, ..., routing information n, where n is a positive integer.
[0096] Figure 5 This is a schematic diagram of the structure of routing information in a RIP data packet, such as Figure 5 As shown, the routing information in the RIP data packet includes: a protocol tag field, a routing tag field, a target network address field, a subnet mask field, a next hop address field, and a routing hop metric value field.
[0097] It should be noted that when writing the service code in the service information into the RIP data packet, any field may be selected from the routing information of the RIP data packet, for example, the target network address field may be selected.
[0098] Step 303: Write the service port and the maximum service distance in the service information into the second field already existing in the routing information of the RIP data packet.
[0099] It should be noted that when the service port and the maximum service distance in the service information are written into the RIP data packet, any field may be selected from the routing information of the RIP data packet, for example, the subnet mask field.
[0100] Table 1 is a schematic diagram of writing the service information in a RIP data packet. As shown in Table 1, the target network address field in the original RIP data packet is replaced with the service code, which occupies 4 bytes (4B). The subnet mask field in the original RIP data packet is replaced with the service port (occupying 4B) + the maximum service distance (occupying 4B).
[0101]
[0102] Table 1
[0103] In this embodiment, the service information related to the MEC server is written into the RIP data packet, which has the following advantages:
[0104] (1) An improved mechanism of the RIP protocol is proposed, that is, the service information is written into at least two existing fields in the routing information of the RIP data packet.
[0105] (2) By writing the maximum service distance into the RIP data packet for transmission, that is, by increasing the maximum number of propagable hops, the service range of the MEC server can be limited.
[0106] (3) A multi-MEC server collaboration mechanism is proposed, that is, by writing the service information into at least two existing fields in the routing information of the RIP data packet, the service information of the MEC server can be broadcast within a certain range. In this way, the neighboring MEC servers can obtain the service information created by the surrounding MEC servers, thereby avoiding the repeated establishment of services and reducing service redundancy.
[0107] Figure 6 This is the process of writing service information into a RIP data packet in an embodiment of the present invention. Figure 6 As shown, it includes steps 601 to 604:
[0108] Step 601: Determine the service information to be broadcast by the MEC server.
[0109] Here, the service information at least includes a service code, a service port number and a maximum service distance.
[0110] Step 602: Write the service code in the service information into the first field already existing in the routing information of the RIP data packet.
[0111] It should be noted that when writing the service code in the service information into the RIP data packet, any field may be selected from the routing information of the RIP data packet, for example, the target network address field may be selected.
[0112] Step 603: Write the service port in the service information into the second field already existing in the routing information of the RIP data packet; the second field also includes a reserved field corresponding to the service code.
[0113] It should be noted that when the service port in the service information is written into the RIP data packet, any field may be selected from the routing information of the RIP data packet, for example, the subnet mask field.
[0114] It is understandable that a reserved field corresponding to the service code may also be set, and the reserved field corresponding to the service code and the service port may be written into the subnet mask field.
[0115] Step 604: Write the maximum service distance in the service information into the third field in the RIP data packet; the third field also includes the routing hop count metric in the routing information.
[0116] It should be noted that when writing the maximum service distance in the service information into the RIP data packet, any field may be selected from the routing information of the RIP data packet, for example, the metric field.
[0117] It is understandable that when the maximum service distance in the service information is written into the RIP data packet, the original routing hop count metric field may also be retained.
[0118] Table 2 is a schematic diagram of writing the service information in a RIP data packet. As shown in Table 2, the target network address field in the original RIP data packet is replaced with the service code, which occupies 4 bytes (4B). The subnet mask field in the original RIP data packet is replaced with the service port (occupies 2B) + the reserved field corresponding to the service code (occupies 2B). The routing hop metric value field in the original RIP data packet is replaced with the maximum service distance (occupies 2B) + the routing hop metric value (occupies 2B).
[0119]
[0120] Table 2
[0121] In this embodiment, the service information related to the MEC server is written into the RIP data packet, which has the following advantages:
[0122] (1) Writing the service information into at least two existing fields in the routing information of the RIP data packet.
[0123] (2) By writing the maximum service distance into the RIP data packet for transmission, that is, by increasing the maximum number of propagable hops, the service range of the MEC server can be limited.
[0124] (3) A multi-MEC server collaboration mechanism is proposed, that is, by writing the service information into at least two existing fields in the routing information of the RIP data packet, the service information of the MEC server can be broadcast within a certain range. In this way, the neighboring MEC servers can obtain the service information created by the surrounding MEC servers, thereby avoiding the repeated establishment of services and reducing service redundancy.
[0125] In some embodiments, in addition to writing the service information into at least two existing fields in the routing information of the RIP data packet, at least two fields may be added to the routing information of the RIP data packet, and the service information may be written into the at least two added fields.
[0126] Table 3 is a schematic diagram of writing the service information in a RIP data packet. As shown in Table 3, three fields are added to the routing information of the RIP data packet, such as field 1, field 2, and field 3. The service code is written in field 1 (occupying 4B), the reserved field corresponding to the service code is written in field 2 (occupying 2B), and the service port number is written in field 3 (occupying 2B). The original routing hop metric value field in the routing information of the RIP data packet is converted into two parts, namely, the maximum service distance (occupying 2B) + the routing hop metric value (occupying 2B).
[0127]
[0128] Table 3
[0129] By adopting the technical solution provided by the embodiment of the present invention, the routers in the network can sense what kind of service the MEC server has placed, and can subsequently directly forward the service request to the corresponding MEC server for execution without forwarding the service request to the control center, thereby avoiding communication delays and effectively meeting the needs of delay-sensitive applications.
[0130] The embodiment of the present invention also provides an information processing method, which is applied to a router, such as Figure 7 As shown, the method includes:
[0131] Step 701: Receive a RIP data packet sent by the MEC server.
[0132] The RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance.
[0133] It should be noted that the content of the service information is not limited in this application. In actual application, other content can be added to the service information according to actual conditions.
[0134] Step 702: Record the service information in the RIP data packet in a service routing table.
[0135] Table 4 is a schematic diagram of a service routing table. As shown in Table 4, the service routing table may include a ServiceID field, a Port field, a MaxHop field, etc., wherein the ServiceID field is used to record the service code in the service information, the Port field is used to record the service port number in the service information, and the MaxHop field is used to record the maximum service distance in the service information.
[0136] Fields use ServiceID Record service code field Port Record the port number of the service NextHop Record the next hop address Interface Record the physical interface of the router required for forwarding MaxHop Record the maximum service distance of the service Metric Record the hop count from MEC to the route
[0137] Table 4
[0138] Here, the router records the service information in a service routing table, which has the following advantages:
[0139] (1) The service routing table records the service information related to the MEC server. In this way, the router can promptly perceive what kind of service the MEC server has established. Subsequently, the service request can be forwarded according to the local service routing table. There is no need to forward the service request to the control center or cloud center, thereby shortening the communication distance and effectively reducing the communication delay, thereby achieving the purpose of reducing the service response time.
[0140] (2) When a service request arrives at the router, the router forwards the service request to the corresponding MEC server according to the service routing table.
[0141] Figure 8 This is the process of the router querying the service routing table in the embodiment of the present invention, such as Figure 8 As shown, it includes step 801 to step 802:
[0142] Step 801: When a RIP data packet is received, query the service routing table to see whether service information corresponding to the received RIP data packet is stored.
[0143] It can be understood that the purpose of the router querying the service routing table may be to avoid repeated establishment of services of the same type to reduce service redundancy.
[0144] Step 802: If the service information corresponding to the received RIP data packet is queried from the service routing table, a first message is returned to the corresponding MEC server; the first message is used to indicate that the MEC server does not need to repeatedly establish the corresponding service.
[0145] It is understandable that if the service routing table stores service information corresponding to the received RIP data packet, it indicates that other MEC servers have established the service. Therefore, the router can instruct the MEC server that sends the RIP data packet that there is no need to repeatedly establish this type of service.
[0146] It can be understood that if the service information corresponding to the received RIP data packet is not queried from the service routing table, a second message is returned to the corresponding MEC server; the second message is used to instruct the MEC server to establish the corresponding service.
[0147] It is understandable that after the MEC server establishes the corresponding service, the router may also instruct other MEC servers in the network not to establish the service to avoid repeated establishment of the same service.
[0148] In this embodiment, the router queries the service routing table, which has the following advantages:
[0149] (1) When the MEC server adds a new service of a certain type, the service information of the new service can be carried in a RIP data packet and sent to the router, so that the router can record it in the local service routing table.
[0150] (2) The routing rules are improved. That is, after receiving the RIP data packet sent by other MEC servers, the ingress router where the MEC server is located queries whether the corresponding service is stored in the service routing table. If the corresponding service is stored in the service routing table, the MEC server is instructed not to add the service; otherwise, the ingress router where the MEC server is located instructs the MEC server to create the service, and at the same time, instructs other MEC servers in the network not to re-establish the service.
[0151] (3) Other routing rules remain unchanged, such as split horizon, hold timer, etc.
[0152] (4) Provide a multi-MEC server coordination mechanism, that is, pass the services established by the MEC server to other surrounding MEC servers, so that adjacent MEC servers can coordinate services, thereby avoiding frequent service switching or service redundancy. In addition, while ensuring a low communication distance, adjacent MEC servers can place different service contents, thereby ensuring the stability of the service content.
[0153] Fig. 9 This is the process in which the router of the embodiment of the present invention records the service information in the service routing table, such as Fig. 9 As shown, it includes steps 901 to 904:
[0154] Step 901: Record the service information in the RIP data packet in the service routing table.
[0155] It can be understood that the service information may be information related to the newly added services of the MEC server.
[0156] Step 902: Record the routing hop count metric in the RIP data packet in the service routing table.
[0157] It can be understood that the routing hop count metric value may be information related to routing information.
[0158] Step 903: Compare the routing hop count metric in the RIP data packet with the maximum service distance in the service information to obtain a comparison result.
[0159] Step 904: When the comparison result indicates that the routing hop count metric is greater than the maximum service distance, the service information is discarded.
[0160] In this embodiment, the router records the service information in the service routing table, which has the following advantages:
[0161] By comparing the routing hop count metric in the RIP data packet with the maximum service distance in the service information, the service range of the MEC server can be limited.
[0162] Fig.10 This is the process in which the router of the embodiment of the present invention records the service information in the service routing table, such as Fig.10 As shown, it includes steps 1001 to 1004:
[0163] Step 1001: When at least two RIP data packets are received, determine whether the at least two RIP data packets contain the same service code; and determine whether the at least two RIP data packets contain the same router physical interface; when it is determined that the at least two RIP data packets contain the same service code and the same router physical interface, execute step 1002; when it is determined that the at least two RIP data packets contain the same service code and contain different router physical interfaces, execute step 1003.
[0164] Step 1002: Record the service information of the RIP data packet received at the latest receiving time in the service routing table.
[0165] It is understandable that, for RIP data packets sent by the same router physical interface, only the service information of the RIP data packet received at the latest receiving time is recorded, so as to avoid recording the same service information multiple times.
[0166] Step 1003: Determine a RIP data packet with a minimum hop count metric value from at least two RIP data packets; and record service information of the determined RIP data packet in a service routing table.
[0167] It is understandable that for RIP packets sent by different router physical interfaces, only the service information of the RIP packet with the smallest hop count metric is recorded to limit the service scope of the MEC server.
[0168] In order to implement the information processing method of the embodiment of the present invention, the embodiment of the present invention further provides an information processing device, which is arranged on the MEC server. Fig.11 Schematic diagram of the structure of the information processing device according to the embodiment of the present invention; Fig.11 As shown, the device comprises:
[0169] The first processing unit 111 is used to determine the service information to be broadcasted by the MEC server; the service information at least includes a service code, a service port number and a maximum service distance;
[0170] The second processing unit 112 is used to write the service information into the RIP data packet;
[0171] The sending unit 113 is used to send the RIP data packet containing the service information to a router in the network; the RIP data packet is used for the router to record the service information in a service routing table.
[0172] In one embodiment, the second processing unit 112 is specifically configured to:
[0173] Writing the service information into at least two existing fields in the routing information of the RIP data packet;
[0174] or,
[0175] At least two fields are added to the routing information of the RIP data packet; and the service information is written into the at least two added fields.
[0176] In one embodiment, the second processing unit 112 is specifically configured to:
[0177] Writing the service code in the service information into the first field already in the routing information of the RIP data packet;
[0178] The service port and the maximum service distance in the service information are written into the second field already existing in the routing information of the RIP data packet.
[0179] In one embodiment, the second processing unit 112 is specifically configured to:
[0180] Writing the service code in the service information into the first field already in the routing information of the RIP data packet;
[0181] Writing the service port in the service information into the second field already in the routing information of the RIP data packet; the second field also includes a reserved field corresponding to the service code;
[0182] The maximum service distance in the service information is written into the third field in the RIP data packet; the third field also includes the routing hop count metric value in the routing information.
[0183] In actual application, the sending unit 113 can be implemented by a communication interface in an information processing device; the first processing unit 111 and the second processing unit 112 can be implemented by a processor in the information processing device.
[0184] It should be noted that: when the information processing device provided in the above embodiment performs information processing, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information processing device provided in the above embodiment and the information processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0185] In order to implement the information processing method of the embodiment of the present invention, the embodiment of the present invention further provides an information processing device, which is arranged on a router. Fig.12 Schematic diagram of the structure of the information processing device according to the embodiment of the present invention; Fig.12 As shown, the device comprises:
[0186] The receiving unit 121 is used to receive a RIP data packet sent by the MEC server; wherein the RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance;
[0187] The third processing unit 122 is used to record the service information in the RIP data packet in a service routing table.
[0188] In one embodiment, the third processing unit 122 is further configured to:
[0189] After recording the service information in the RIP data packet in the service routing table, when the RIP data packet is received, query whether the service information corresponding to the received RIP data packet is stored in the service routing table; if the service information corresponding to the received RIP data packet is queried from the service routing table, return a first message to the corresponding MEC server; the first message is used to indicate that the MEC server does not need to repeatedly establish the corresponding service.
[0190] In one embodiment, the third processing unit 122 is further configured to:
[0191] If the service information corresponding to the received RIP data packet is not found from the service routing table, a second message is returned to the corresponding MEC server; the second message is used to instruct the MEC server to establish the corresponding service.
[0192] In one embodiment, the third processing unit 122 is specifically configured to:
[0193] The RIP data packet also includes a routing hop metric value; the routing hop metric value is compared with the maximum service distance in the service information to obtain a comparison result; when the comparison result indicates that the routing hop metric value is greater than the maximum service distance, the service information is discarded.
[0194] In one embodiment, the third processing unit 122 is specifically configured to:
[0195] The RIP data packet also includes a router physical interface; when at least two RIP data packets are received, it is determined whether the at least two RIP data packets contain the same service code; and it is determined whether the at least two RIP data packets contain the same router physical interface; when it is determined that the at least two RIP data packets contain the same service code and the same router physical interface, the service information of the RIP data packet received at the latest receiving time is recorded in the service routing table.
[0196] In one embodiment, the third processing unit 122 is specifically configured to:
[0197] The RIP data packet also includes a routing hop count metric value; when it is determined that the at least two RIP data packets contain the same service code and contain different router physical interfaces, the RIP data packet with the smallest hop count metric value is determined from the at least two RIP data packets; and the service information of the determined RIP data packet is recorded in a service routing table.
[0198] In actual application, the receiving unit 121 can be implemented by a communication interface in an information processing device; and the third processing unit 122 can be implemented by a processor in the information processing device.
[0199] It should be noted that: when the information processing device provided in the above embodiment performs information processing, only the division of the above program modules is used as an example. In actual applications, the above processing can be assigned to different program modules as needed, that is, the internal structure of the device is divided into different program modules to complete all or part of the processing described above. In addition, the information processing device provided in the above embodiment and the information processing method embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0200] The embodiment of the present invention also provides a MEC server, such as Fig.13 As shown, including:
[0201] The first communication interface 131 is capable of exchanging information with other devices;
[0202] The first processor 132 is connected to the first communication interface 131 and is used to execute the method provided by one or more technical solutions on the smart device side when running a computer program. The computer program is stored in the first memory 133.
[0203] It should be noted that the specific processing process of the first processor 132 and the first communication interface 131 is detailed in the method embodiment and will not be repeated here.
[0204] Of course, in actual application, the various components in the MEC server 130 are coupled together through the bus system 134. It can be understood that the bus system 134 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 134 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.13 Various buses are labeled as bus system 134 .
[0205] The first memory 133 in the embodiment of the present application is used to store various types of data to support the operation of the MEC server 130. Examples of such data include: any computer program for operating on the MEC server 130.
[0206] The method disclosed in the above embodiment of the present application can be applied to the first processor 132, or implemented by the first processor 132. The first processor 132 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the first processor 132. The above-mentioned first processor 132 may be a general-purpose processor, a digital data processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The first processor 132 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module may be located in a storage medium, which is located in the first memory 133. The first processor 132 reads the information in the first memory 133 and completes the steps of the above method in combination with its hardware.
[0207] The embodiment of the present invention also provides a router, such as Fig.14 As shown, including:
[0208] The second communication interface 141 is capable of exchanging information with other devices;
[0209] The second processor 142 is connected to the second communication interface 141 and is used to execute the method provided by one or more technical solutions on the smart device side when running a computer program. The computer program is stored in the second memory 143.
[0210] It should be noted that: the specific processing process of the second processor 142 and the second communication interface 141 is detailed in the method embodiment, which will not be repeated here.
[0211] Of course, in actual application, the various components in the network device 140 are coupled together through the bus system 144. It is understandable that the bus system 144 is used to realize the connection and communication between these components. In addition to the data bus, the bus system 144 also includes a power bus, a control bus, and a status signal bus. However, for the sake of clarity, Fig.14 Various buses are labeled as bus system 144 .
[0212] The second memory 143 in the embodiment of the present application is used to store various types of data to support the operation of the router 140. Examples of such data include: any computer program used to operate on the router 140.
[0213] The method disclosed in the above embodiment of the present application can be applied to the second processor 142, or implemented by the second processor 142. The second processor 142 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the second processor 142. The above-mentioned second processor 142 may be a general-purpose processor, a digital data processor (DSP, Digital Signal Processor), or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The second processor 142 can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. The general-purpose processor may be a microprocessor or any conventional processor, etc. In combination with the steps of the method disclosed in the embodiment of the present application, it can be directly embodied as a hardware decoding processor to execute, or it can be executed by a combination of hardware and software modules in the decoding processor. The software module can be located in a storage medium, which is located in the second memory 143, and the second processor 142 reads the information in the second memory 143 and completes the steps of the above method in combination with its hardware.
[0214] In an exemplary embodiment, the MEC server 130 and the router 140 may be implemented by one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers (MCUs), microprocessors, or other electronic components to perform the aforementioned method.
[0215] It can be understood that the memory (first memory 133, second memory 143) of the embodiment of the present application can be a volatile memory or a non-volatile memory, and can also include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disc, or a compact disc read-only memory (CD-ROM); the magnetic surface memory can be a disk memory or a tape memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), synchronous static random access memory (SSRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DRRAM).The memories described in the embodiments of the present application are intended to include, but are not limited to, these and any other suitable types of memories.
[0216] In an exemplary embodiment, an embodiment of the present invention further provides a storage medium, namely a computer storage medium, specifically a computer-readable storage medium, for example, including a first memory 131 storing a computer program, and the computer program can be executed by the first processor 132 of the MEC server 130 to complete the steps of the aforementioned control server side method. The computer-readable storage medium can be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, Flash Memory, magnetic surface storage, optical disk, or CD-ROM.
[0217] It should be noted that: "first", "second", etc. are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0218] In addition, the technical solutions described in the embodiments of the present invention can be arbitrarily combined without conflict.
[0219] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention.
Claims
1. An information processing method, characterized in that: Applied to a mobile edge computing MEC server, the method comprises: Determine the service information to be broadcasted by the MEC server; the service information includes at least a service code, a service port number and a maximum service distance; Writing the service information into a Routing Information Protocol (RIP) data packet; The RIP data packet written with the service information is sent to a router in the network; the RIP data packet is used for the router to record the service information in a service routing table; the router is used to directly forward the service request to the corresponding MEC server according to the service routing table.
2. The method according to claim 1, characterized in that The step of writing the service information into a RIP data packet comprises: Writing the service information into at least two existing fields in the routing information of the RIP data packet; or, At least two fields are added to the routing information of the RIP data packet; and the service information is written into the at least two added fields.
3. The method according to claim 2, characterized in that The step of writing the service information into at least two existing fields in the routing information of the RIP data packet comprises: Writing the service code in the service information into the first field already in the routing information of the RIP data packet; The service port and the maximum service distance in the service information are written into the second field already existing in the routing information of the RIP data packet.
4. The method according to claim 2, characterized in that: The step of writing the service information into at least two existing fields in the routing information of the RIP data packet comprises: Writing the service code in the service information into the first field already in the routing information of the RIP data packet; Writing the service port in the service information into the second field already in the routing information of the RIP data packet; the second field also includes a reserved field corresponding to the service code; The maximum service distance in the service information is written into the third field in the RIP data packet; the third field also includes the routing hop count metric value in the routing information.
5. An information processing method, characterized in that: Applied to a router, the method comprises: Receive RIP data packets sent by MEC server; The RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance; The service information in the RIP data packet is recorded in the service routing table, and the service request is directly forwarded to the corresponding MEC server according to the service routing table.
6. The method according to claim 5, characterized in that After recording the service information in the RIP data packet in the service routing table, the method further comprises: When a RIP data packet is received, querying from the service routing table whether service information corresponding to the received RIP data packet is stored; If the service information corresponding to the received RIP data packet is queried from the service routing table, a first message is returned to the corresponding MEC server; the first message is used to indicate that the MEC server does not need to repeatedly establish the corresponding service.
7. The method according to claim 6, characterized in that The method further comprises: If the service information corresponding to the received RIP data packet is not found from the service routing table, a second message is returned to the corresponding MEC server; the second message is used to instruct the MEC server to establish the corresponding service.
8. The method according to claim 5, characterized in that The RIP data packet also includes a routing hop count metric; and recording the service information in the RIP data packet in a service routing table includes: Compare the routing hop count metric with the maximum service distance in the service information to obtain a comparison result; When the comparison result indicates that the routing hop count metric value is greater than the maximum service distance, the service information is discarded.
9. The method according to claim 5, characterized in that The RIP data packet also includes a router physical interface; when at least two RIP data packets are received, the method further includes: Determine whether the at least two RIP packets contain the same service code; and determine whether the at least two RIP packets contain the same router physical interface; When it is determined that the at least two RIP data packets contain the same service code and the same router physical interface, the service information of the RIP data packet received at the latest receiving time is recorded in the service routing table.
10. The method according to claim 9, characterized in that The RIP data packet also includes a routing hop count metric; the method also includes: When it is determined that the at least two RIP data packets contain the same service code and contain different router physical interfaces, determining a RIP data packet with a minimum hop count metric value from the at least two RIP data packets; The service information of the determined RIP data packet is recorded in the service routing table.
11. An information processing device, characterized in that: include: A first processing unit, configured to determine service information to be broadcast by the MEC server; The service information at least includes a service code, a service port number and a maximum service distance; A second processing unit, used for writing the service information into a RIP data packet; A sending unit, used for sending the RIP data packet written with the service information to a router in the network; The RIP data packet is used for the router to record the service information in a service routing table; The router is used to directly forward the service request to the corresponding MEC server according to the service routing table.
12. An information processing device, characterized in that: include: A receiving unit, configured to receive a RIP data packet sent by a MEC server; wherein the RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number, and a maximum service distance; The third processing unit is used to record the service information in the RIP data packet in a service routing table, and directly forward the service request to the corresponding MEC server according to the service routing table.
13. An information processing device, characterized in that: include: A first processor is used to determine service information to be broadcast by the MEC server; the service information includes at least a service code, a service port number and a maximum service distance; and writing the service information into a RIP data packet; A first communication interface, used to send a RIP data packet containing the service information to a router in the network; The RIP data packet is used for the router to record the service information in a service routing table; The router is used to directly forward the service request to the corresponding MEC server according to the service routing table.
14. An information processing device, characterized in that: include: A second communication interface is used to receive a RIP data packet sent by the MEC server; wherein the RIP data packet is obtained by the MEC server writing the determined service information to be broadcast into the RIP data packet; the service information at least includes a service code, a service port number and a maximum service distance; The third processor is used to record the service information in the RIP data packet in a service routing table, and directly forward the service request to the corresponding MEC server according to the service routing table.
15. A MEC server, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 1 to 4.
16. A router, characterized in that: comprising a processor and a memory for storing a computer program capable of being executed on the processor, Wherein, when the processor is used to run the computer program, it executes the steps of the method described in any one of claims 5 to 10.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 10 are implemented.
