CN101754424A - Interaction method of MAC layer and network layer and dual core embedded system - Google Patents
Interaction method of MAC layer and network layer and dual core embedded system Download PDFInfo
- Publication number
- CN101754424A CN101754424A CN200910243878A CN200910243878A CN101754424A CN 101754424 A CN101754424 A CN 101754424A CN 200910243878 A CN200910243878 A CN 200910243878A CN 200910243878 A CN200910243878 A CN 200910243878A CN 101754424 A CN101754424 A CN 101754424A
- Authority
- CN
- China
- Prior art keywords
- layer
- network layer
- mac layer
- network
- dsp
- 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.)
- Granted
Links
- 230000003993 interaction Effects 0.000 title claims abstract description 34
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000009977 dual effect Effects 0.000 title claims description 5
- 230000008569 process Effects 0.000 claims abstract description 14
- 230000006870 function Effects 0.000 claims description 27
- 238000004891 communication Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 10
- 230000002452 interceptive effect Effects 0.000 claims description 5
- 238000012360 testing method Methods 0.000 abstract description 6
- 238000004088 simulation Methods 0.000 abstract description 2
- 230000000007 visual effect Effects 0.000 abstract description 2
- 239000010410 layer Substances 0.000 description 260
- 238000013461 design Methods 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 3
- 238000010586 diagram Methods 0.000 description 3
- 239000011229 interlayer Substances 0.000 description 3
- UJKWLAZYSLJTKA-UHFFFAOYSA-N edma Chemical compound O1CCOC2=CC(CC(C)NC)=CC=C21 UJKWLAZYSLJTKA-UHFFFAOYSA-N 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000009432 framing Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 239000003550 marker Substances 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Landscapes
- Small-Scale Networks (AREA)
- Communication Control (AREA)
Abstract
The invention provides an interaction method of an MAC layer and a network layer, which comprises a function of completing the network layer on an ARM, a function of completing the MAC layer on a DSP, and realization of message interaction of the network layer and the MAC layer by an interface message sent from the MAC layer to the network layer, an interface message sent from the network layer to the MAC layer, an MAC layer service primitive and a network layer service primitive, wherein the network layer function at least comprises routing and addressing; and the MAC layer function at least comprises access, queue scheduling and time slot reservation. After using a C++ simulation platform developed by Microsoft Visual Studio.Net on a Windows operating platform to test the data sending and receiving processes among nodes, the interaction method connects the DSP and the ARM to carry out combined test on the data interaction of the MAC layer and the network layer. The test result shows that the data interaction is normally completed.
Description
Technical Field
The invention belongs to the field of wireless Mesh network communication, and particularly relates to an interaction method of an MAC layer and a network layer designed based on an IEEE802.16d protocol, and a dual-core embedded system.
Background
The wireless mesh network consists of mesh routers and mesh clients, wherein the mesh routers form a backbone network, are connected with a wired internet network and are responsible for providing multi-hop wireless internet connection for the mesh clients. A wireless Mesh network (wireless Mesh network), also called a "multi-hop" network, is a new wireless network technology that is completely different from a conventional wireless network.
In a wireless Mesh network, any wireless device node can simultaneously act as an AP and a router, each node in the network can send and receive signals, and each node can directly communicate with one or more peer nodes. The greatest benefit of this structure is: if the nearest AP is congested due to excessive traffic, the data may be automatically rerouted to a neighboring node with a smaller traffic volume for transmission. And so on, the data packet can be further routed to the next node closest to the data packet for transmission according to the situation of the network until the final destination is reached.
The time-varying property of the wireless channel environment and the continuous change of the network topology in the wireless Mesh network require that all layers of network communication can exchange information with each other, and quickly react to improve the network performance. For information interaction between the network layer and the MAC layer, the MAC layer should know information such as the type, communication mode, and transmission power of the network layer data in time, and the network layer also needs to obtain the state of the node, such as the received power and the on-network state, through the MAC layer, so that a standard communication flow needs to be determined between the MAC layer and the network layer to realize information interaction between the network layer and the MAC layer.
The IEEE802.16d protocol specifies the air interface between the MAC layer and the physical layer of the wireless metropolitan area network in detail, but the protocol only gives the processing framework and flow of data at the MAC layer from the perspective of the MAC layer, and does not consider interaction with the network layer from the global perspective, which leaves a research space for protocol developers.
In summary, one technical problem that needs to be solved by those skilled in the art is: how to improve the protocol of the IEEE802.16d MAC layer and provide an implementation scheme of a specific interaction process of data between a network layer and the MAC layer.
Disclosure of Invention
The technical problem to be solved by the invention is to provide an interaction method of an MAC layer and a network layer designed based on an IEEE802.16d protocol and a dual-core embedded system, and the interaction of data between the network layer and the MAC layer is realized by designing a hardware interface for communication between the MAC layer and the network layer and designing interlayer interface messages, service primitives and an interaction process thereof.
In order to solve the above problems, the present invention discloses an interactive method of an MAC layer and a network layer, comprising: completing the functions of a network layer on an ARM, wherein the functions of the network layer at least comprise routing and addressing; the method comprises the steps of completing the functions of an MAC layer on a DSP, wherein the functions of the MAC layer at least comprise access, queue scheduling and time slot reservation; between ARM and DSP, through MAC layer to network layer interface message, network layer to MAC layer interface message, and MAC layer service primitive and network layer service primitive to realize network layer and MAC layer message interaction; the interface message is a message which is sent to the N/N +1 layer along with the data of the N +1/N layer and is used by the N/N +1 layer, and the service primitive is used for the N +1/N layer to send an instruction to the N/N +1 layer so as to realize the dialogue between different layers in the protocol stack.
Preferably, when the host needs to communicate with the DSP, an interrupt is sent to the DSP through the interrupt bit DSPINT, and the DSP processes data through a DMA; when the DSP has data to communicate with the host, an interrupt is sent to the host by the DSP control HINT bit, and the host is informed to read the data through the HPI.
Preferably, the interface message from the network layer to the MAC layer includes: a data type of a network layer; a communication mode of network layer data; the maximum transmission power determined by the network layer through topology control; the type of network layer IP packets; length of network layer IP packet; and, a next hop IP address.
Preferably, the interface message from the MAC layer to the network layer includes: the receiving power of the radio frequency to the MAC layer; the MAC layer receives the source IP address of the network layer data; the network layer carries out relevant routing operation according to the receiving power value given by the MAC layer; the network layer establishes a reverse route according to the source IP address.
Preferably, the service primitives from the network layer to the MAC layer include the following two types: IP address advertisement messages and multicast address update primitives.
Preferably, the service primitives of the MAC to the network layer include the following two types: a network access primitive and a network neighbor update primitive.
According to another embodiment of the present invention, there is also disclosed a dual core embedded system for implementing the interaction between the MAC layer and the network layer, comprising:
the ARM processor is used for completing the functions of a network layer, and the functions of the network layer at least comprise routing and addressing;
the DSP is used for finishing the functions of an MAC layer, and the functions of the MAC layer at least comprise access, queue scheduling and time slot reservation;
the interface unit comprises a bus interface connected with the ARM processor and an HPI interface connected with the DSP processor, and the bus interface and the HPI interface are communicated through a parallel bus; the ARM processor as a host and the CPU of the DSP can access the HPI;
between the ARM processor and the DSP processor, the interaction of the network layer and the MAC layer information is realized through the interface information from the MAC layer to the network layer, the interface information from the network layer to the MAC layer, the MAC layer service primitive and the network layer service primitive; the interface message is a message which is sent to the N/N +1 layer along with the data of the N +1/N layer and is used by the N/N +1 layer, and the service primitive is used for the N +1/N layer to send an instruction to the N/N +1 layer so as to realize the dialogue between different layers in the protocol stack.
Preferably, when the ARM processor serving as the host needs to communicate with the DSP, the DSPINT sends an interrupt to the DSP through the HPI, and the DSP processes data in a DMA mode; when the DSP has data to communicate with the host, an interrupt is sent to the host by the DSP control HINT bit, and the host is informed to read the data through the HPI.
Compared with the prior art, the invention has the following advantages:
the invention improves the protocol of the IEEE802.16d MAC layer and provides a realization scheme of a specific interaction process of data between a network layer and the MAC layer. In the hardware implementation, based on an ARM + DSP dual-core embedded system, the invention designs an interface for hardware communication between a DSP for realizing the MAC layer function and an ARM for realizing the network layer function, namely, an interaction method of data of the MAC layer and the network layer between the ARM and DSP hardware is realized through an HPI interface which can be accessed by a host and a DSP CPU. Furthermore, the invention provides interface message and service primitive used when the MAC layer and the network layer interact and the using method thereof on the aspect of software implementation.
Drawings
FIG. 1 is a schematic structural diagram of a dual-core embedded system for implementing interaction between a MAC layer and a network layer according to the present invention;
FIG. 2 is a diagram of interface message frame format during the interaction between the MAC layer and the network layer according to the present invention;
fig. 3 is a frame format diagram of a service primitive in the interactive process of the MAC layer and the network layer according to the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
The core concept of the invention is that: the inventor of the present patent proposes a method for implementing communication between a MAC layer and a network layer from an application perspective by analyzing an IEEE802.16d protocol and designing a communication flow between the MAC layer and the network layer that is not specified in the protocol, which specifically includes: designing hardware interfaces of an MAC layer and a network layer, and designing software interface information and an interaction process thereof; the combined application of the two realizes the communication flow of the MAC layer and the network layer.
After a C + + simulation platform developed by Microsoft Visual studio.Net is used for testing the data sending and receiving flows among the nodes on a Windows operating platform, the DSP and the ARM are connected for jointly testing the interaction of the MAC layer and the network layer data, and the test result shows that the data interaction is normally finished. The invention fills the blank of the communication mechanism of the network layer and the MAC layer which are not specified by the IEEE802.16d protocol.
Referring to fig. 1, there is shown a dual core embedded system for implementing the interaction between the MAC layer and the network layer according to the present invention, including:
the ARM processor 101 is used for completing functions of a network layer, and the functions of the network layer at least comprise routing and addressing;
the DSP processor 102 is used for completing the functions of an MAC layer, wherein the functions of the MAC layer at least comprise access, queue scheduling and time slot reservation;
the interface unit 103 comprises a bus interface 1031 connected with the ARM processor and an HPI interface 1032 connected with the DSP processor, and the bus interface and the HPI interface are communicated through a parallel bus; the ARM processor as a host and the CPU of the DSP can access the HPI;
between the ARM processor and the DSP processor, the interaction of the network layer and the MAC layer information is realized through the interface information from the MAC layer to the network layer, the interface information from the network layer to the MAC layer, the MAC layer service primitive and the network layer service primitive; the interface message is a message which is sent to the N/N +1 layer along with the data of the N +1/N layer and is used by the N/N +1 layer, and the service primitive is used for the N +1/N layer to send an instruction to the N/N +1 layer so as to realize the dialogue between different layers in the protocol stack.
HPI (Host-Port Interface) Host interfaces typically use a 16-bit/32-bit wide parallel Port. Host access to the CPU address space may be achieved by an EDMA controller. Access to the HPI interface is typically implemented primarily through three special purpose registers: an HPI control register (HPIC), an HPI address register (HPIA), and an HPI data register (HPID).
When an ARM processor serving as a host needs to communicate with a DSP, an interrupt bit DSPINT sends an interrupt to the DSP through an HPI, and the DSP processes data in a DMA mode; when the DSP has data to communicate with the host, an interrupt is sent to the host by the DSP control HINT bit, and the host is informed to read the data through the HPI.
The specific design content of the hardware interface of the MAC layer and the network layer comprises the following steps: the functions of access, scheduling, time slot allocation and the like of the MAC layer are downloaded to the DSP for realization, and the functional module of the network layer is encapsulated on the ARM for realization; the whole system is realized based on an ARM + DSP dual-core embedded system. In order to realize the communication between the ARM and the DSP, a hardware interface for the communication between the ARM and the DSP is also designed.
As shown in fig. 1, the hardware interface for communication between the MAC layer and the network layer is, from the perspective of the MAC layer, an HPI interface that can be accessed by both the host and the DSP CPU; through the HPI interface, data exchange between the host and the DSP can be realized. When the host writes data to a certain address of the DSP storage space, an interrupt is sent to the DSP through the DSPINT bit, and the DSP processes the data through a DMA mode. When the DSP has data to communicate with the host, the DSP controls the HINT bit to send an interrupt to the host to inform the host to read the data through the HPI, thereby realizing the data exchange between the host and the DSP.
DSPINT is an on-chip pin for the host to send an interrupt signal to the HPI register to inform the HPI register to read or write data; HINT is an on-chip pin for sending an interrupt signal to the host computer by the DSP to inform the host computer of reading data; the HPI registers are classified into three types, HPIC (control), HPIA (address) and HPID (data), which are accessible by the host, and the DSP CPU can access the HPIC and HPIA registers. The realization flow of the data among the hardware is that a section of address space on the DSP is appointed to store the data from the network layer to the MAC layer and from the MAC layer to the network layer. When data are sent to the MAC layer by the network layer, HPI operation is carried out by the host to write the data into the appointed storage space, and then an interrupt signal is sent to inform the MAC layer of data fetching; when the MAC layer has data to send to the network layer, the host is notified to read the data from the specified memory space by operating the HPIA register and sending an interrupt signal. Therefore, the interaction between the MAC layer and the network layer data through hardware is realized.
The invention also provides an interactive implementation scheme of the MAC layer and the network layer on the dual-core embedded system of the ARM and the DSP, which comprises the following steps:
completing the functions of a network layer on an ARM, wherein the functions of the network layer at least comprise routing and addressing; a
The method comprises the steps of completing the functions of an MAC layer on a DSP, wherein the functions of the MAC layer at least comprise access, queue scheduling and time slot reservation;
between ARM and DSP, through MAC layer to network layer interface message, network layer to MAC layer interface message, and MAC layer service primitive and network layer service primitive to realize network layer and MAC layer message interaction;
the interface message is a message which is sent to the N/N +1 layer along with the data of the N +1/N layer and is used by the N/N +1 layer, and the service primitive is used for the N +1/N layer to send an instruction to the N/N +1 layer so as to realize the dialogue between different layers in the protocol stack.
When the host needs to communicate with the DSP, an interrupt is sent to the DSP through a write interrupt bit DSPINT, and the DSP processes data in a DMA mode; when the DSP has data to communicate with the host, an interrupt is sent to the host by the DSP control HINT bit, and the host is informed to read the data through the HPI.
The invention also includes the design aiming at the interface message and the interaction flow thereof besides the design of the hardware interfaces of the MAC layer and the network layer. Specifically, the interaction flow includes: interface information which is sent to the N/N +1 layer along with the data of the N +1/N layer and provides parameters required by the subsequent operation for the N/N +1 layer; inter-layer request, reply, indication and response to primitive messages of the message dialog.
The MAC layer and network layer interface messages specifically include: the MAC layer gives the network layer and the network layer gives the MAC layer interface information in two directions. Similarly, the service primitives are also classified into MAC layer service primitives and network layer service primitives.
The format of the data in the MAC layer is called as a frame, and the MAC layer achieves the purpose of framing the data by adding a frame head and a frame tail to a data unit MAC-PDU of a transmission message of the MAC layer; the frame check sequence FCS is used for controlling the data error of the MAC layer; CMD is used to distinguish MAC layer message type to indicate and control corresponding data processing flow; LEN indicates the data length excluding the end of the frame header.
The format of the interface message and the service primitive is different, and the frame format of the interface message is shown in fig. 2, and the frame format of the interface message comprises a frame header 201 with the length of 1 byte, a frame tail 202 with the length of 1 byte; CMD203 for distinguishing message classes, length 1 byte; the length of the frame, LEN204, excluding the frame head and the frame tail, is 2 bytes; an inter-layer interface message 205 of length 8 bytes; the frame check sequence FCS206 is 1 byte long. The MAC-PDU207 is a unit of a MAC layer transfer message, and may typically occupy 4480 bytes.
The frame format of the service primitive is shown in fig. 3, and includes a 1-byte header 301, a 1-byte trailer 302, a 1-byte CMD303, a 1-byte FCS304, and 8-byte service primitive information 305.
The interface message is distinguished from the service primitive in that the interface message is transmitted to a corresponding protocol layer along with transmission data, which provides the corresponding protocol layer with a message required to process the data. A service primitive is an instruction that, once received, responds accordingly, while an interface message does not respond immediately.
The following describes each interface message and service primitive in detail.
The interface message from the network layer to the MAC layer includes: a data type of a network layer; a communication mode of network layer data; the maximum transmission power determined by the network layer through topology control; the type of network layer IP packets; length of network layer IP packet; and, a next hop IP address.
Specifically, the interface message format from the network layer to the MAC layer is as shown in table 1 below,
CMD=0x80
parameter(s) | Identification | Placeholder | Detailed Description |
Control/data flags | flag_contrl_data | 2bit | 0x 1: controlling; 0x 0: data of |
Broadcast/unicast/multicast flag | flag_brod_muti_uni | 2bits | 0x 0: broadcasting; 0x 1: unicast; 0x 2: multicast |
Maximum transmission power | tx_power_max | 4bits | NET layer informs MAC layer of maximum transmission power |
Rate of change | |||
Service type flag bit | flag_service | 8bits | NET layer informs MAC layer data unicast/multicast service type |
Length of IP packet | ip_length | 16bits | Maximum length of IP packet is 216 |
Next hop MAC ID/multicast ID address | next_ip_addr | 32bits | Broadcast/unicast/multicast flag bit |
Wherein, flag _ control _ data is 0 to represent Ip data packet of network layer, and flag _ control _ data is 1 to represent control message of network layer such as Hello message, REQ, RERR, ARP request, etc.;
flag _ brod _ multi _ uni represents a communication mode of network layer data, and flag _ brod _ multi _ uni represents broadcast, unicast and multicast, respectively, with 0 and 2.
tx _ power _ max represents the maximum transmit power determined by the network layer through topology control, and the IEEE802.16 protocol specifies that the power value should start at 8dBm and increment by 2dBm, such as 1111 for 38 dBm.
The flag _ service represents the category of the network layer IP data packet, the flag _ service is 0x0 to represent UGS service, 0x1 to represent Rtps service, 0x2 to represent Nrtps service, and 0x3 to represent BE service.
Ip _ length represents the length of the network layer Ip packet;
the next _ IP _ addr represents a next hop IP address, if the network layer data is broadcast, i.e. flag _ short _ multi _ uni is 0, the next _ IP _ addr is 0 xffffffffff, if the network layer data is unicast, the next _ IP _ addr is the unicast next hop IP address, and if the network layer data is multicast, the next _ IP _ addr is the multicast IP address.
The MAC layer distinguishes the data type of the network layer according to the flag _ control _ data flag bit in the network layer interface message and carries out corresponding processing, the MAC layer sends the control message in the DSCH sending time slot, and carries out time slot reservation and connection request before sending the IP data. The MAC layer carries out corresponding processing on the broadcast, unicast and multicast data through flag _ bright _ multi _ uni and next _ ip _ addr, and different communication modes correspond to different data routing modes on the MAC layer. The MAC layer classifies and queues the data of the network layer through flag _ service; and calculating the PDU length according to the ip _ length so as to perform packet packaging on the data.
The interface message from the MAC layer to the network layer includes: the receiving power of the radio frequency to the MAC layer; the MAC layer receives the source IP address of the network layer data; the network layer carries out relevant routing operation according to the receiving power value given by the MAC layer; the network layer establishes a reverse route according to the source IP address. The interface message format of the MAC layer to the network layer is as follows in table 2,
CMD=0x00
parameter(s) | Identification | Placeholder | Detailed Description |
Received power | recv_power | 8its | Starting at 8dBm, 2dBm increments |
Received last hop IP address/multicast ID | prev_ip_addr | 32bits | This message is carried in a Mesh subheader |
Reserved bit | reserved | 24bits | MAC → NET and NET → MAC interface size keep consistent |
Wherein, recv _ power represents the receiving power of the radio frequency to the MAC layer, and prev _ IP _ addr represents the source IP address of the network layer data received by the MAC layer. The network layer carries out operations such as route maintenance, positioning, ranging and the like according to the recv _ power value given by the MAC layer; reverse routing is established through prev _ ip _ addr.
There are two kinds of service primitives from the network layer to the MAC layer: IP address advertisement messages and multicast address update primitives. Wherein,
the format of the IP address advertisement primitive is as follows in table 3,
CMD=0x81
parameter(s) | Identification | Placeholder | Detailed Description |
IP address of local node | device_ip_addr | 32bits | The network layer receives the access primitive and immediately sends the message to the MAC layer |
If the node receives the MAC layer access primitive, the node replies an IP address notification primitive to the MAC layer.
The format of the multicast address update primitive is as follows in table 4,
CMD=0x82
parameter(s) | Identification | Placeholder | Detailed Description |
Multicast IP update | next_group_ip | 32bits | Network layer multicast address update |
When the network layer finds the multicast address change, it sends the update primitive of multicast address to the MAC layer to inform the MAC layer of the new multicast IP address.
The service primitives of the MAC to the network layer include the following two types: a network access primitive and a network neighbor update primitive.
Wherein, the format of the network access primitive is as the following table 5,
CMD=0x01
parameter(s) | Identification | Placeholder | Detailed Description |
Node access network identification | flag_access | 8bits | 0: node access network |
If the node is accessed to the network, the MAC layer sends a service primitive with the flag _ access of 1 to the network layer, and the network layer replies the node IP to the MAC layer through the service primitive of the IP address announcement of the network layer once receiving the message, so that the MAC layer enables the node ID and the IP address to be in one-to-one correspondence.
The format of the network neighbor update primitive is as follows in table 6,
CMD=0x02
parameter(s) | Identification | Placeholder | Detailed Description |
Marker bit | flag_type | 8bits | 0: invalid neighbor address 1: valid neighbor address |
Neighbor IP address | invalid_node_ip | 32bits | Next hop address |
After receiving the network layer interface message, if the next _ IP _ addr in the interface message cannot be found in the node neighbor list, the MAC layer sets flag _ type in the primitive message to 0 to indicate that the neighbor address is invalid, and notifies the invalid IP address to the network layer through invalid _ node _ IP to update the routing table.
The dual-core embedded system of ARM and DSP and the interactive implementation scheme of MAC layer and network layer based on the dual-core embedded system of ARM and DSP provided by the present invention are introduced in detail above, and specific examples are applied in this document to explain the principle and implementation manner of the present invention, and the description of the above embodiments is only used to help understanding the method and core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (8)
1. An interactive method between a MAC layer and a network layer is characterized by comprising the following steps:
completing the functions of a network layer on an ARM, wherein the functions of the network layer at least comprise routing and addressing;
the method comprises the steps of completing the functions of an MAC layer on a DSP, wherein the functions of the MAC layer at least comprise access, queue scheduling and time slot reservation;
between ARM and DSP, through MAC layer to network layer interface message, network layer to MAC layer interface message, and MAC layer service primitive and network layer service primitive to realize network layer and MAC layer message interaction;
the interface message is a message which is sent to the N/N +1 layer along with the data of the N +1/N layer and is used by the N/N +1 layer, and the service primitive is used for the N +1/N layer to send an instruction to the N/N +1 layer so as to realize the dialogue between different layers in the protocol stack.
2. The method of claim 1, wherein:
when the host needs to communicate with the DSP, an interrupt is sent to the DSP through a write interrupt bit DSPINT, and the DSP processes data in a DMA mode;
when the DSP has data to communicate with the host, an interrupt is sent to the host by the DSP control HINT bit, and the host is informed to read the data through the HPI.
3. The method of claim 1, wherein the network layer interface message to the MAC layer comprises:
a data type of a network layer; a communication mode of network layer data; the maximum transmission power determined by the network layer through topology control; the type of network layer IP packets; length of network layer IP packet; and, a next hop IP address.
4. The method of claim 1,
the interface message from the MAC layer to the network layer includes: the receiving power of the radio frequency to the MAC layer; the MAC layer receives the source IP address of the network layer data;
the network layer carries out relevant routing operation according to the receiving power value given by the MAC layer; the network layer establishes a reverse route according to the source IP address.
5. The method of claim 1, wherein the service primitives from the network layer to the MAC layer include the following two types:
IP address advertisement messages and multicast address update primitives.
6. The method of claim 1, wherein the service primitives of the MAC to the network layer include the following two types:
a network access primitive and a network neighbor update primitive.
7. A dual core embedded system for realizing interaction between MAC layer and network layer, comprising:
the ARM processor is used for completing the functions of a network layer, and the functions of the network layer at least comprise routing and addressing;
the DSP is used for finishing the functions of an MAC layer, and the functions of the MAC layer at least comprise access, queue scheduling and time slot reservation;
the interface unit comprises a bus interface connected with the ARM processor and an HPI interface connected with the DSP processor, and the bus interface and the HPI interface are communicated through a parallel bus; the ARM processor as a host and the CPU of the DSP can access the HPI;
between the ARM processor and the DSP processor, the interaction of the network layer and the MAC layer information is realized through the interface information from the MAC layer to the network layer, the interface information from the network layer to the MAC layer, the MAC layer service primitive and the network layer service primitive; the interface message is a message which is sent to the N/N +1 layer along with the data of the N +1/N layer and is used by the N/N +1 layer, and the service primitive is used for the N +1/N layer to send an instruction to the N/N +1 layer so as to realize the dialogue between different layers in the protocol stack.
8. The dual core embedded system of claim 7, wherein:
when an ARM processor serving as a host needs to communicate with a DSP, an interrupt bit DSPINT sends an interrupt to the DSP through an HPI, and the DSP processes data in a DMA mode;
when the DSP has data to communicate with the host, an interrupt is sent to the host by the DSP control HINT bit, and the host is informed to read the data through the HPI.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910243878 CN101754424B (en) | 2009-12-24 | 2009-12-24 | Interaction method of MAC layer and network layer and dual core embedded system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910243878 CN101754424B (en) | 2009-12-24 | 2009-12-24 | Interaction method of MAC layer and network layer and dual core embedded system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101754424A true CN101754424A (en) | 2010-06-23 |
CN101754424B CN101754424B (en) | 2012-12-26 |
Family
ID=42480606
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910243878 Expired - Fee Related CN101754424B (en) | 2009-12-24 | 2009-12-24 | Interaction method of MAC layer and network layer and dual core embedded system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101754424B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951349A (en) * | 2014-03-24 | 2015-09-30 | 昆山耐特康托软件科技有限公司 | Networked control algorithm real-time simulator NetSimulator |
CN108769968A (en) * | 2018-06-13 | 2018-11-06 | 深圳众享互联科技有限公司 | Block chain distributed information Transmission system based on bluetooth Mesh and method |
CN107241777B (en) * | 2017-06-20 | 2019-12-13 | 北京机械设备研究所 | Wireless transmission routing method based on multiple channels |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN201327515Y (en) * | 2008-12-18 | 2009-10-14 | 浙江工业大学 | Distributed electrical energy quality online monitoring instrument based on dual-CPU |
-
2009
- 2009-12-24 CN CN 200910243878 patent/CN101754424B/en not_active Expired - Fee Related
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104951349A (en) * | 2014-03-24 | 2015-09-30 | 昆山耐特康托软件科技有限公司 | Networked control algorithm real-time simulator NetSimulator |
CN107241777B (en) * | 2017-06-20 | 2019-12-13 | 北京机械设备研究所 | Wireless transmission routing method based on multiple channels |
CN108769968A (en) * | 2018-06-13 | 2018-11-06 | 深圳众享互联科技有限公司 | Block chain distributed information Transmission system based on bluetooth Mesh and method |
Also Published As
Publication number | Publication date |
---|---|
CN101754424B (en) | 2012-12-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110891026B (en) | Traffic scheduling method, equipment and system | |
CN107483370B (en) | Method for transmitting IP and CAN service on FC network | |
CN111212089B (en) | Protocol conversion method for EtherCAT and IPv6 network | |
JP4882555B2 (en) | Wireless bridge communication device | |
US20230283554A1 (en) | BIER Packet Forwarding Method, Device, and System | |
KR101079137B1 (en) | Method for allowing a family-based address in a wireless sensor network, and method for hierarchical routing a path setting using the same | |
CN113302885A (en) | Ethernet and controller area network protocol conversion for vehicular networks | |
US20130215810A1 (en) | Method and device for transmitting an ipv6 over low power wireless personal area network data packet | |
JP2015502113A (en) | Wireless bridging in hybrid communication networks | |
WO2018228069A1 (en) | Bras system-based message packaging method and device | |
CN101268668A (en) | Multiple interface mobile node with simultaneous home- and foreign network connection | |
JP2006527538A (en) | Beacon packet with traffic indicator flag | |
CN112532756B (en) | Interface expansion method, device and system | |
JP6121548B2 (en) | Method, routing bridge, and system for transmitting packets | |
JP5763216B2 (en) | Wireless multi-communication mode packet routing mechanism | |
JP2012248956A (en) | Communication system, network device, gateway device, computer program, data transmission method, and data transfer method | |
JP2007194763A (en) | Network system | |
CN101754424B (en) | Interaction method of MAC layer and network layer and dual core embedded system | |
CN103546990B (en) | The method that the networking of a kind of car accesses internet | |
CN110062060A (en) | A kind of system and method for IP address distribution | |
US20230318974A1 (en) | BIER Packet Forwarding Method, Device, and System | |
CN106789534B (en) | A kind of data transmission method and device based on wireless network | |
CN102082674B (en) | Simulation method and simulation system for data channel | |
WO2021254454A1 (en) | Bier oam detection method, and device and system | |
KR20080072778A (en) | Gateway and method of interoperating between internet protocol-ubiquitous sensor network and simple network management protocol network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20121226 Termination date: 20141224 |
|
EXPY | Termination of patent right or utility model |