A method for loading instruction blocks, softswitch equipment and system

A soft-switching and instruction block technology, applied in the field of communication, can solve the problems of long compilation time of instruction blocks and affect the loading efficiency of instruction blocks, and achieve the effect of improving loading efficiency and saving code compilation time.

Active Publication Date: 2020-02-14
HUAWEI TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] However, there is a problem that the compiled POF of the prior art needs to compile the instruction block twice to obtain the binary machine code that can be recognized by the switching device, and the compilation time for the instruction block to be compiled twice is relatively long. Will affect the loading efficiency of instruction blocks

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for loading instruction blocks, softswitch equipment and system
  • A method for loading instruction blocks, softswitch equipment and system
  • A method for loading instruction blocks, softswitch equipment and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0087] The embodiment of the present invention provides a method for loading instruction blocks, which can be applied to softswitch equipment, such as figure 1 As shown, the instruction block loading method includes:

[0088] S101. The softswitch device receives a code file of an instruction block to be loaded issued by a controller, where the code file includes a source code of the instruction block to be loaded.

[0089] Among them, the programmer can use a high-level programming language to write the source code for each instruction block (instruction block to be loaded) on the controller, and the source code is used to edit or forward the message.

[0090] Exemplarily, the high-level programming language used by programmers to write the source code may be C language. Among them, programmers can use pointers in C language to replace the description of Field in POF technology, and use ordinary C language assignment, conditional judgment and other statements to intuitively r...

Embodiment 2

[0154] An embodiment of the present invention provides a soft switch device, such as Image 6 As shown, the softswitch device includes: a receiving unit 31 , a converting unit 32 , a compiling unit 33 and a loading unit 34 .

[0155] The receiving unit 31 is configured to receive the code file of the instruction block to be loaded delivered by the controller, the code file including the source code of the instruction block to be loaded.

[0156] The conversion unit 32 is configured to convert the source code received by the receiving unit 31 into an instruction block code, where the format of the instruction block code is a compiling format supported by the softswitch device.

[0157] The compiling unit 33 is configured to compile the instruction block code converted by the converting unit 32 into a binary machine code.

[0158] The loading unit 34 is configured to load the binary machine code compiled by the compiling unit 33 into a local process of the softswitch device.

...

Embodiment 3

[0187] An embodiment of the present invention provides a soft switch device, such as Figure 10 As shown, the soft switch device includes: a receiver 41 , a memory 42 and a processor 43 .

[0188] The receiver 41 is configured to receive the code file of the instruction block to be loaded issued by the controller, and the code file includes the source code of the instruction block to be loaded.

[0189] The memory 42 is used to store a set of program codes.

[0190] The processor 43 is configured to perform the following operations according to a set of program codes stored in the memory 41:

[0191] Converting the source code received by the receiver 41 into an instruction block code, the format of the instruction block code is a compiled format supported by the softswitch device;

[0192] Compile the instruction block code into binary machine code;

[0193] Loading the binary machine code to the local process of the softswitch device.

[0194] Further, the processor 43 i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

Embodiments of the invention disclose an instruction loading method and system, and a soft exchange device, and relate to the technical field of communications. The code compilation time in an instruction block sending process can be shortened, so that the instruction block loading efficiency is improved. According to the specific scheme, the soft exchange device receives a code file of a to-be-loaded instruction block sent by a controller, wherein the code file contains a source code of the to-be-loaded instruction block; the source code is converted into an instruction block code, wherein the format of the instruction block code is a compilation format supported by the soft exchange device; the instruction block code is compiled into a binary machine code; and the binary machine code is loaded to the soft exchange device. The instruction loading method and system, and the soft exchange device are used in an instruction block loading process.

Description

technical field [0001] The invention relates to the technical field of communication, in particular to a method for loading instruction blocks, softswitch equipment and a system. Background technique [0002] Software Defined Network (SDN) is a network architecture that can realize the separation of data forwarding plane and control plane. The Open Flow technology can be applied to SDN, and the separation of forwarding and control is realized through the Open Flow protocol. Data forwarding by Open Flow technology must follow existing network protocols. In order to get rid of restrictions on specific protocols, the industry proposes Protocol Oblivious Forwarding (POF) technology. The POF technology is a forwarding technology that the SDN forwarding plane is not aware of the protocol format. [0003] Among them, POF can be divided into interpreted POF and compiled POF. The instructions of the compiled POF are not included in the flow entry, but the instruction block (consis...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445
Inventor 喻径舟
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products