MEC Model Dev

A dev project about “Perception-Computing-Response” model

Index

This project includes the following mods:

Sys

  • UUID

  • HTTP/2

  • ConnectionTypeIdentification

  • ConnectionInfoStructure

    • ConnectionID

    • TaskID

    • ServiceInfo

  • MySQL DB

UUID

we make a random UUID with uuid lib in python:

  • uuid_generator()

import uuid
uuid.uuid4()

HTTP/2

HTTP/2 relies TLS to achieve security, thus we use UDP socket as a temporary transmission tool.

  • udp_socket_send(msg, ip, port)

s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.sendto(msg.encode(), (ip,port))
  • udp_socket_rev(ip, port)

s=socket.socket(socket.AF_INET,socket.SOCK_DGRAM)
s.bind((ip, port))
data=s.recv(1024)
print(data.decode())

ConnectionTypeIdentification

For the “Perception-Computing-Response” model, three values are used to indicate different transmission link between UE, MEC and MCC as follows:

  • "1" represents the "UE-MEC" link;

  • "2" represents the "MEC-MCC" link;

  • "3" represents the "UE-MCC" link.

ConnectionInfoStructure

ConnectionID

ConnectionID is a random UUID generated by UE. A sample is: b54d5fb8-9a5b-42fb-82eb-0917bfdea427.

TaskID

TaskID is designed for indicating a service of internet services provider. In order to realize flexible assignment of offload, TaskID includes two parts,ServiceID and SubserviceID, to indicate different task in a service. A sample is as follows:

1AA1 (TaskID) = 1A (ServiceID) A1 (SubserviceID)

ServiceInfo

For example, ServiceInfo can bring the necessary information of MEC for UE, which indicates the service status of MEC.

UE-MEC

The ServiceInfo of UE-MEC link is as follows:

ServiceInfo_ue_mec[0] = 1
ServiceInfo_ue_mec[1] = ConnectionID
ServiceInfo_ue_mec[2] = mec_ip
ServiceInfo_ue_mec[3] = mec_port
ServiceInfo_ue_mec[4] = TaskID

MEC-MCC

The ServiceInfo of MEC-MCC link is as follows:

ServiceInfo_mec_mcc[0] = 2
ServiceInfo_mec_mcc[1] = ConnectionID
ServiceInfo_mec_mcc[2] = ue_ip
ServiceInfo_mec_mcc[3] = ue_port
ServiceInfo_mec_mcc[4] = SubTaskID

UE-MCC

The ServiceInfo of UE-MCC link is as follows:

ServiceInfo_ue_mcc[0] = 3
ServiceInfo_ue_mcc[1] = ConnectionID
ServiceInfo_ue_mcc[2] = ue_ip
ServiceInfo_ue_mcc[3] = ue_port
ServiceInfo_ue_mcc[4] = TaskID

MySQL DB

As for a prototype verification, MySQL DB is a planned issue.

Last updated

Was this helpful?