Development system and development method of network communication protocol stack

A technology for network communication protocol and protocol stack development, applied in the field of network communication protocol stack development, can solve the problems of long development cycle, long module stabilization cycle, and high debugging cost, reducing stabilization time, short module stabilization cycle, and improving The effect of development efficiency

Inactive Publication Date: 2008-08-27
蔡晓岩
0 Cites 6 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0007] The technical problem to be solved by the present invention is that when the protocol stack is developed in an embedded system, the result is not intuitive, the debugging cost is high, and the module stabilization period is long...
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

Method used

Adopt development system and development method of the present invention, in No. 7 signaling protocol stack and ATM protocol stack and other protocol stack developments, carry out the tracking debugging of protocol stack single-step process by adopting the mode of UDP carrying pr...
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

Abstract

The invention discloses a development system and the development method of a network communication protocol stack. The system comprises at least one host machine in which an application layer data unit and at least one protocol stack unit in which a UDP communication module is arranged; the UDP communication module is used for completing the receiving and the transmitting of the bottom data of the protocol stack; a source protocol stack unit is connected with the application layer data unit and used for processing application data to produce protocol stack data which are packaged into a UDP data packet through the UDP communication module and then transmitted to the UDP communication of a target protocol stack unit. With the proposal and in the development of the protocol stack, the invention adopts the mode that the UDP loads the protocol stack data to achieve the single-step process trace debug of the protocol stack and constitutes various testing processes to achieve the testing of all processing processes of the protocol stack. The invention has the advantages of directviewing result, low debug cost and short module stable period; improves the development efficiency and reduces the protocol stable time.

Application Domain

Technology Topic

Real-time computingProtocol Application +5

Image

  • Development system and development method of network communication protocol stack
  • Development system and development method of network communication protocol stack
  • Development system and development method of network communication protocol stack

Examples

  • Experimental program(1)

Example Embodiment

[0024] The present invention will be described in detail below with reference to the drawings and specific embodiments.
[0025] The main idea of ​​the present invention is that the state machine of the protocol stack, data flow processing, etc. are not closely related to the embedded environment, and can be developed in an environment that is easier to track and debug; therefore, the present invention adopts a protocol stack bottom layer data transceiver Mechanism to perform process testing, debugging and tracking of the protocol stack itself. For the data receiving and sending part, UDP packets carrying the protocol stack data on the IP are used for receiving and sending. Therefore, when debugging, UDP data is used to drive the receiving of the protocol stack, and when sending data, the sent protocol stack data is adapted to UDP data for transmission. Therefore, in the development of the protocol stack, there is no need to care about the implementation details of the underlying specific physical data transmission and reception, and the protocol stack part can be quickly debugged and easily traced.
[0026] Such as figure 1 As shown, the present invention provides a network communication protocol stack development system, which includes at least one host computer, wherein the host computer is configured with an application layer data unit and at least one protocol stack unit, and the protocol stack unit is configured with UDP Communication module.
[0027] Wherein, the UDP communication module is used to complete the receiving and sending of data at the bottom of the protocol stack; for example, the UDP communication module includes a socket resource submodule, a data receiving thread submodule, and a data sending interface submodule; the socket The word resource submodule is respectively connected to the data receiving thread submodule and the data sending interface submodule, and is used to receive and send UDP datagrams; the data receiving thread submodule is used to receive UDP application data; the data The sending interface sub-module is used to send UDP application data.
[0028] Wherein, the source protocol stack unit is connected with the application layer data unit to process application data, generate protocol stack data, encapsulate it into a UDP data packet through its UDP communication module, and send it to the UDP communication module of the target protocol stack unit. It should be noted that the source protocol stack unit and the target protocol stack unit may be the same protocol stack unit, so that the self-loop test function of the protocol stack can be realized.
[0029] Preferably, the host computer is provided with at least two protocol stack units; wherein, the UDP communication module of the source protocol stack unit and the UDP communication module of the target protocol stack unit are connected by a UDP protocol.
[0030] For example, the protocol stack unit is further provided with a configuration module for maintaining the state of the protocol stack unit and configuring the protocol stack unit. This is conducive to real-time maintenance of the protocol stack unit and related configuration work in practical applications.
[0031] For another example, in the protocol stack unit, an application layer data module is also provided to replace the application layer data unit, that is, the application layer data unit is not set in the host machine, but instead is set in each protocol stack unit , Set the application layer data module accordingly.
[0032] Combine below figure 1 , A more specific description of the system provided by the present invention.
[0033] 1. Using the host as the environment for protocol stack development, start two protocol stack development projects on the host; they correspond to protocol stack entity 1 and protocol stack entity 2.
[0034] 2. Construct a UDP communication module to complete the receiving and sending of data at the bottom of the protocol stack; this module includes three parts: one is the socket resource, which is used to receive and send UDP datagrams; the other is a UDP data receiving thread , To receive UDP application data; the third is the UDP data transmission interface, which is used to transmit UDP application data.
[0035] 3. When the protocol stack entity 1 sends data at the application layer, the application layer data that needs to be sent is submitted to the UDP communication module as the load of the application layer data that needs to be sent after being processed by the protocol stack entity 1, and the UDP communication module encapsulates the protocol stack data Sent to protocol stack entity 2 in a UDP packet.
[0036] 4. After the UDP communication module of the protocol stack entity 2 receives the data of the protocol stack entity 1, it calls the receiving function of the protocol stack to drive the receiving processing flow of the protocol stack.
[0037] Such as figure 1 Shown is the architecture diagram of protocol stack development on the entire host. The Windows operating system can be used as the development platform. During the protocol stack development process, if the application layer or the protocol stack state maintenance and configuration functions have not been developed yet, function adaptation can be used to simulate these functions. For the UDP communication module part, the socket is initialized through socket programming, and the UDP data receiving thread is started to receive UDP data, providing a UDP sending function interface for the protocol stack layer.
[0038] The data sending and receiving process is as figure 2 As shown, after obtaining the basic configuration data, the protocol stack can start sending and processing the control signaling of the protocol stack itself. Protocol stack control signaling includes signaling such as link establishment between protocol entities.
[0039] Such as image 3 As shown, after the protocol stack layer link is established, the application layer data can be transmitted. The application layer needs to send application layer data of length L. After the application layer submits the data to the protocol stack entity 1, the protocol stack entity 1 processes the data and then submits it to the UDP communication module as protocol stack data for data transmission. After the protocol stack entity 2 UDP communication module receives the data sent by the protocol stack entity 1, it submits the data to the protocol stack entity 2. After the protocol stack entity 2 processes this part of the data, it submits the application layer data carried in the data to the application layer. In this way, the application layer can perform operations such as verification on this part of the data.
[0040] Such as Figure 4 Shown, it is the model that adopts this scheme to carry on the loopback test of the protocol stack. Application layer data is delivered to the UDP communication module through the protocol stack entity 1, and the UDP communication module directly sends this part of the data to the receiving thread of the module. Then the UDP communication module submits the received data to the protocol stack entity 1, and the protocol stack entity 1 submits the data to the application layer after processing. Thus, the loopback of protocol stack data is realized.
[0041] In addition, the present invention also provides a method for developing a network communication protocol stack, which includes the following steps: A1, data transmission and reception of the protocol stack on the host computer; A2, when debugging, the UDP data mode is used to drive the protocol stack to perform Data reception; when sending data, adapt the sent protocol stack data to UDP data packets for sending.
[0042] Even better, step A1 specifically performs the steps: start at least one protocol stack development project on the host computer; in general, two or more protocol stack development projects can be started on the host computer. In addition, step A2 specifically executes the following steps: A21. Build its UDP communication module for each protocol stack development project to complete the reception and transmission of the bottom layer data of the protocol stack; A22. When the source protocol stack development project sends data at the application layer, After processing the application layer data that needs to be sent, the protocol stack data is generated and submitted to its UDP communication module as a load; A23. The protocol stack data is encapsulated in a UDP data packet and sent to the UDP communication of the target protocol stack development project Module; A24, receive data, call the receive function, and perform data processing. Specifically, in step A2, the UDP communication module may send and receive UDP datagrams through socket resources, receive UDP application data through a UDP data receiving thread, and send UDP application data through a UDP data sending interface.
[0043] An example is, in step A1, a protocol stack development project is started on the host; and, in step A23, the following steps are also performed: in the UDP communication module of the source protocol stack development project, set the protocol stack data The sending destination UDP port and destination IP address are respectively the UDP port and IP address used by the source protocol stack development project to receive data. In this way, the method of the present invention can be used to carry out the protocol stack self-loop test. In the UDP communication module of the protocol stack entity 1, the data transmission destination UDP port and destination IP address are set as the UDP port and the destination IP address of the protocol stack entity 1 for receiving data. IP address. In order to realize the self-loop of the protocol stack, some self-loop verification tests can be performed.
[0044] Using the development system and development method of the present invention, in the development of the SS7 protocol stack, ATM protocol stack and other protocol stacks, the single-step process of the protocol stack is tracked and debugged by using UDP to carry the protocol stack data, and constructed Various test procedures are used to test the various processing procedures of the protocol stack, which greatly improves the development efficiency and reduces the stability time of the protocol stack, which is very convenient for development and application.
[0045] It should be understood that those of ordinary skill in the art can make improvements or changes based on the above description, and all these improvements and changes should fall within the protection scope of the appended claims of the present invention.
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

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
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

Similar technology patents

Method and device for carrying out intelligent system data transmission and control by using optical fiber

ActiveCN112994795AEconomicalThe result is intuitiveFibre transmissionStar-type electromagnetic networksData transmissionSystems engineering
Owner:中博信息技术研究院有限公司

Universal single primer, kit and method for identifying tridacna crocea, tridacna derasa and hippopus hippopus

ActiveCN111763748ASimple methodThe result is intuitiveMicrobiological testing/measurementDNA/RNA fragmentationMultiplexHippopus hippopus
Owner:SOUTH CHINA SEA INST OF OCEANOLOGY - CHINESE ACAD OF SCI

Classification and recommendation of technical efficacy words

  • Reduce commissioning costs
  • The result is intuitive

Visual programming method and operation system of truss mechanical arm

InactiveCN107378951ASpeed ​​up the debugging processReduce commissioning costsProgramme-controlled manipulatorProgrammable logic controllerManipulator
Owner:北京隆庆智能激光装备有限公司

CRISPR-Cas12a-based MOF-DNA hydrogel colorimetric detection kit and method

Owner:INST OF ENVIRONMENTAL MEDICINE & OCCUPATIONAL MEDICINE ACAD OF MILITARY MEDICINE ACAD OF MILITARY SCI

Pork instant-boiling processing suitability evaluation method

ActiveCN106290754AEasy to operateThe result is intuitiveTesting foodStability criterionChemistry
Owner:北京资源亚太食品有限公司
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